zax-dashboard 1.0.5
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/LICENSE +21 -0
- package/README.md +90 -0
- package/dist/3rdpartylicenses.txt +395 -0
- package/dist/bootstrap-icons.svg +1 -0
- package/dist/index.html +12 -0
- package/dist/main.298cc57d0117466d.js +1 -0
- package/dist/polyfills.fea4e6ca76815639.js +1 -0
- package/dist/runtime.73240a1adf9aaa65.js +1 -0
- package/dist/scripts.a5f9ba89ba671d94.js +1 -0
- package/dist/styles.3a731eb3c8a5a088.css +13 -0
- package/package.json +51 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkzax_dashboard=self.webpackChunkzax_dashboard||[]).push([[179],{562:(E,Y,T)=>{"use strict";function C(e,n,t,r,o,i,s){try{var a=e[i](s),c=a.value}catch(u){return void t(u)}a.done?n(c):Promise.resolve(c).then(r,o)}function v(e){return function(){var n=this,t=arguments;return new Promise(function(r,o){var i=e.apply(n,t);function s(c){C(i,r,o,s,a,"next",c)}function a(c){C(i,r,o,s,a,"throw",c)}s(void 0)})}}let A=null,L=1;const B=Symbol("SIGNAL");function V(e){const n=A;return A=e,n}function at(e){if((!re(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==L)){if(!e.producerMustRecompute(e)&&!we(e))return e.dirty=!1,void(e.lastCleanEpoch=L);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=L}}function we(e){bt(e);for(let n=0;n<e.producerNode.length;n++){const t=e.producerNode[n],r=e.producerLastReadVersion[n];if(r!==t.version||(at(t),r!==t.version))return!0}return!1}function nr(e,n){if(function ct(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}(e),bt(e),1===e.liveConsumerNode.length)for(let r=0;r<e.producerNode.length;r++)nr(e.producerNode[r],e.producerIndexOfThis[r]);const t=e.liveConsumerNode.length-1;if(e.liveConsumerNode[n]=e.liveConsumerNode[t],e.liveConsumerIndexOfThis[n]=e.liveConsumerIndexOfThis[t],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,n<e.liveConsumerNode.length){const r=e.liveConsumerIndexOfThis[n],o=e.liveConsumerNode[n];bt(o),o.producerIndexOfThis[r]=n}}function re(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function bt(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let no=null;function mt(e){return"function"==typeof e}function ha(e){const t=e(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const pa=ha(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function ga(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class un{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 i of t)i.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(mt(r))try{r()}catch(i){n=i instanceof pa?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{si(i)}catch(s){n=n??[],s instanceof pa?n=[...n,...s.errors]:n.push(s)}}if(n)throw new pa(n)}}add(n){var t;if(n&&n!==this)if(this.closed)si(n);else{if(n instanceof un){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)&&ga(t,n)}remove(n){const{_finalizers:t}=this;t&&ga(t,n),n instanceof un&&n._removeParent(this)}}un.EMPTY=(()=>{const e=new un;return e.closed=!0,e})();const ma=un.EMPTY;function Ar(e){return e instanceof un||e&&"closed"in e&&mt(e.remove)&&mt(e.add)&&mt(e.unsubscribe)}function si(e){mt(e)?e():e.unsubscribe()}const Tr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},No={setTimeout(e,n,...t){const{delegate:r}=No;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=No;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Li(e){No.setTimeout(()=>{const{onUnhandledError:n}=Tr;if(!n)throw e;n(e)})}function Ro(){}const ya=ai("C",void 0,void 0);function ai(e,n,t){return{kind:e,value:n,error:t}}let Nr=null;function Ui(e){if(Tr.useDeprecatedSynchronousErrorHandling){const n=!Nr;if(n&&(Nr={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=Nr;if(Nr=null,t)throw r}}else e()}class ci extends un{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Ar(n)&&n.add(this)):this.destination=Da}static create(n,t,r){return new io(n,t,r)}next(n){this.isStopped?ao(function va(e){return ai("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?ao(function Vi(e){return ai("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?ao(ya,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 ji=Function.prototype.bind;function oo(e,n){return ji.call(e,n)}class Oo{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){so(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){so(r)}else so(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){so(t)}}}class io extends ci{constructor(n,t,r){let o;if(super(),mt(n)||!n)o={next:n??void 0,error:t??void 0,complete:r??void 0};else{let i;this&&Tr.useDeprecatedNextContext?(i=Object.create(n),i.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&oo(n.next,i),error:n.error&&oo(n.error,i),complete:n.complete&&oo(n.complete,i)}):o=n}this.destination=new Oo(o)}}function so(e){Tr.useDeprecatedSynchronousErrorHandling?function _a(e){Tr.useDeprecatedSynchronousErrorHandling&&Nr&&(Nr.errorThrown=!0,Nr.error=e)}(e):Li(e)}function ao(e,n){const{onStoppedNotification:t}=Tr;t&&No.setTimeout(()=>t(e,n))}const Da={closed:!0,next:Ro,error:function ui(e){throw e},complete:Ro},Bi="function"==typeof Symbol&&Symbol.observable||"@@observable";function co(e){return e}function ir(e){return 0===e.length?co:1===e.length?e[0]:function(t){return e.reduce((r,o)=>o(r),t)}}let yt=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,o){const i=function Ca(e){return e&&e instanceof ci||function wa(e){return e&&mt(e.next)&&mt(e.error)&&mt(e.complete)}(e)&&Ar(e)}(t)?t:new io(t,r,o);return Ui(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=uo(r))((o,i)=>{const s=new io({next:a=>{try{t(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[Bi](){return this}pipe(...t){return ir(t)(this)}toPromise(t){return new(t=uo(t))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=n=>new e(n),e})();function uo(e){var n;return null!==(n=e??Tr.Promise)&&void 0!==n?n:Promise}const cu=ha(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let sr=(()=>{class e extends yt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new yn(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new cu}next(t){Ui(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){Ui(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){Ui(()=>{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:r,isStopped:o,observers:i}=this;return r||o?ma:(this.currentObservers=null,i.push(t),new un(()=>{this.currentObservers=null,ga(i,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:o,isStopped:i}=this;r?t.error(o):i&&t.complete()}asObservable(){const t=new yt;return t.source=this,t}}return e.create=(n,t)=>new yn(n,t),e})();class yn extends sr{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,n)}error(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.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,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==r?r:ma}}class An extends sr{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:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}function h(e){return mt(e?.lift)}function g(e){return n=>{if(h(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function p(e,n,t,r,o){return new l(e,n,t,r,o)}class l extends ci{constructor(n,t,r,o,i,s){super(n),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(c){n.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}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 m(e,n){return g((t,r)=>{let o=0;t.subscribe(p(r,i=>{r.next(e.call(n,i,o++))}))})}const I="https://g.co/ng/security#xss";class w extends Error{constructor(n,t){super(function X(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function ce(e){for(let n in e)if(e[n]===ce)return n;throw Error("Could not find renamed property on target object.")}function Fe(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function ve(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ve).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 ge(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const he=ce({__forward_ref__:ce});function ne(e){return e.__forward_ref__=ne,e.toString=function(){return ve(this())},e}function H(e){return ae(e)?e():e}function ae(e){return"function"==typeof e&&e.hasOwnProperty(he)&&e.__forward_ref__===ne}function O(e){return e&&!!e.\u0275providers}const R=ce({\u0275cmp:ce}),q=ce({\u0275dir:ce}),U=ce({\u0275pipe:ce}),j=ce({\u0275mod:ce}),W=ce({\u0275fac:ce}),be=ce({__NG_ELEMENT_ID__:ce}),Le=ce({__NG_ENV_ID__:ce});function se(e){return"string"==typeof e?e:null==e?"":String(e)}function Xe(e,n){throw new w(-201,!1)}function Bn(e,n){null==e&&function Ae(e,n,t,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${t} ${r} ${n} <=Actual]`))}(n,e,null,"!=")}function De(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Rr(e){return{providers:e.providers||[],imports:e.imports||[]}}function uu(e){return Om(e,du)||Om(e,Fm)}function Om(e,n){return e.hasOwnProperty(n)?e[n]:null}function lu(e){return e&&(e.hasOwnProperty(Zd)||e.hasOwnProperty(XM))?e[Zd]:null}const du=ce({\u0275prov:ce}),Zd=ce({\u0275inj:ce}),Fm=ce({ngInjectableDef:ce}),XM=ce({ngInjectorDef:ce});var Qe=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Qe||{});let Xd;function Pm(){return Xd}function Hn(e){const n=Xd;return Xd=e,n}function km(e,n,t){const r=uu(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&Qe.Optional?null:void 0!==n?n:void Xe()}const pt=globalThis;class de{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=De({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const ba={},nf="__NG_DI_FLAG__",fu="ngTempTokenPath",e1=/\n/gm,Vm="__source";let Hi;function Fo(e){const n=Hi;return Hi=e,n}function r1(e,n=Qe.Default){if(void 0===Hi)throw new w(-203,!1);return null===Hi?km(e,void 0,n):Hi.get(e,n&Qe.Optional?null:void 0,n)}function Ee(e,n=Qe.Default){return(Pm()||r1)(H(e),n)}function te(e,n=Qe.Default){return Ee(e,hu(n))}function hu(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function rf(e){const n=[];for(let t=0;t<e.length;t++){const r=H(e[t]);if(Array.isArray(r)){if(0===r.length)throw new w(900,!1);let o,i=Qe.Default;for(let s=0;s<r.length;s++){const a=r[s],c=o1(a);"number"==typeof c?-1===c?o=a.token:i|=c:o=a}n.push(Ee(o,i))}else n.push(Ee(r))}return n}function Ea(e,n){return e[nf]=n,e.prototype[nf]=n,e}function o1(e){return e[nf]}function lo(e){return{toString:e}.toString()}var pu=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(pu||{}),gr=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(gr||{});const Or={},st=[];var Ot=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Ot||{});function jm(e,n,t){let r=e.length;for(;;){const o=e.indexOf(n,t);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=n.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}t=o+1}}function sf(e,n,t){let r=0;for(;r<t.length;){const o=t[r];if("number"==typeof o){if(0!==o)break;r++;const i=t[r++],s=t[r++],a=t[r++];e.setAttribute(n,s,a,i)}else{const i=o,s=t[++r];Hm(i)?e.setProperty(n,i,s):e.setAttribute(n,i,s),r++}}return r}function Bm(e){return 3===e||4===e||6===e}function Hm(e){return 64===e.charCodeAt(0)}function xa(e,n){if(null!==n&&0!==n.length)if(null===e||0===e.length)e=n.slice();else{let t=-1;for(let r=0;r<n.length;r++){const o=n[r];"number"==typeof o?t=o:0===t||$m(e,t,o,null,-1===t||2===t?n[++r]:null)}}return e}function $m(e,n,t,r,o){let i=0,s=e.length;if(-1===n)s=-1;else for(;i<e.length;){const a=e[i++];if("number"==typeof a){if(a===n){s=-1;break}if(a>n){s=i-1;break}}}for(;i<e.length;){const a=e[i];if("number"==typeof a)break;if(a===t){if(null===r)return void(null!==o&&(e[i+1]=o));if(r===e[i+1])return void(e[i+2]=o)}i++,null!==r&&i++,null!==o&&i++}-1!==s&&(e.splice(s,0,n),i=s+1),e.splice(i++,0,t),null!==r&&e.splice(i++,0,r),null!==o&&e.splice(i++,0,o)}const zm="ng-template";function a1(e,n,t){let r=0,o=!0;for(;r<e.length;){let i=e[r++];if("string"==typeof i&&o){const s=e[r++];if(t&&"class"===i&&-1!==jm(s.toLowerCase(),n,0))return!0}else{if(1===i){for(;r<e.length&&"string"==typeof(i=e[r++]);)if(i.toLowerCase()===n)return!0;return!1}"number"==typeof i&&(o=!1)}}return!1}function Gm(e){return 4===e.type&&e.value!==zm}function c1(e,n,t){return n===(4!==e.type||t?e.value:zm)}function u1(e,n,t){let r=4;const o=e.attrs||[],i=function f1(e){for(let n=0;n<e.length;n++)if(Bm(e[n]))return n;return e.length}(o);let s=!1;for(let a=0;a<n.length;a++){const c=n[a];if("number"!=typeof c){if(!s)if(4&r){if(r=2|1&r,""!==c&&!c1(e,c,t)||""===c&&1===n.length){if(mr(r))return!1;s=!0}}else{const u=8&r?c:n[++a];if(8&r&&null!==e.attrs){if(!a1(e.attrs,u,t)){if(mr(r))return!1;s=!0}continue}const f=l1(8&r?"class":c,o,Gm(e),t);if(-1===f){if(mr(r))return!1;s=!0;continue}if(""!==u){let y;y=f>i?"":o[f+1].toLowerCase();const _=8&r?y:null;if(_&&-1!==jm(_,u,0)||2&r&&u!==y){if(mr(r))return!1;s=!0}}}}else{if(!s&&!mr(r)&&!mr(c))return!1;if(s&&mr(c))continue;s=!1,r=c|1&r}}return mr(r)||s}function mr(e){return 0==(1&e)}function l1(e,n,t,r){if(null===n)return-1;let o=0;if(r||!t){let i=!1;for(;o<n.length;){const s=n[o];if(s===e)return o;if(3===s||6===s)i=!0;else{if(1===s||2===s){let a=n[++o];for(;"string"==typeof a;)a=n[++o];continue}if(4===s)break;if(0===s){o+=4;continue}}o+=i?1:2}return-1}return function h1(e,n){let t=e.indexOf(4);if(t>-1)for(t++;t<e.length;){const r=e[t];if("number"==typeof r)return-1;if(r===n)return t;t++}return-1}(n,e)}function qm(e,n,t=!1){for(let r=0;r<n.length;r++)if(u1(e,n[r],t))return!0;return!1}function Wm(e,n){return e?":not("+n.trim()+")":n}function g1(e){let n=e[0],t=1,r=2,o="",i=!1;for(;t<e.length;){let s=e[t];if("string"==typeof s)if(2&r){const a=e[++t];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!mr(s)&&(n+=Wm(i,o),o=""),r=s,i=i||!mr(r);t++}return""!==o&&(n+=Wm(i,o)),n}function af(e){return lo(()=>{const n=Ym(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===pu.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||gr.Emulated,styles:e.styles||st,_:null,schemas:e.schemas||null,tView:null,id:""};Zm(t);const r=e.dependencies;return t.directiveDefs=gu(r,!1),t.pipeDefs=gu(r,!0),t.id=function w1(e){let n=0;const t=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of t)n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(t),t})}function v1(e){return Ke(e)||Qt(e)}function _1(e){return null!==e}function fo(e){return lo(()=>({type:e.type,bootstrap:e.bootstrap||st,declarations:e.declarations||st,imports:e.imports||st,exports:e.exports||st,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Km(e,n){if(null==e)return Or;const t={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r];let i,s,a=Ot.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),n?(t[i]=a!==Ot.None?[r,a]:r,n[i]=s):t[i]=r}return t}function Pe(e){return lo(()=>{const n=Ym(e);return Zm(n),n})}function Tn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ke(e){return e[R]||null}function Qt(e){return e[q]||null}function fn(e){return e[U]||null}function vn(e,n){const t=e[j]||null;if(!t&&!0===n)throw new Error(`Type ${ve(e)} does not have '\u0275mod' property.`);return t}function Ym(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||Or,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||st,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Km(e.inputs,n),outputs:Km(e.outputs),debugInfo:null}}function Zm(e){e.features?.forEach(n=>n(e))}function gu(e,n){if(!e)return null;const t=n?fn:v1;return()=>("function"==typeof e?e():e).map(r=>t(r)).filter(_1)}const Pt=0,ie=1,xe=2,$t=3,yr=4,_n=5,vr=6,$i=7,At=8,Nn=9,ho=10,je=11,Ma=12,Xm=13,zi=14,Ut=15,Sa=16,Gi=17,Fr=18,Ia=19,Jm=20,ko=21,mu=22,li=23,Ve=25,cf=1,Pr=7,qi=9,zt=10;var uf=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(uf||{});function Dn(e){return Array.isArray(e)&&"object"==typeof e[cf]}function wn(e){return Array.isArray(e)&&!0===e[cf]}function lf(e){return 0!=(4&e.flags)}function di(e){return e.componentOffset>-1}function vu(e){return 1==(1&e.flags)}function _r(e){return!!e.template}function df(e){return 0!=(512&e[xe])}function fi(e,n){return e.hasOwnProperty(W)?e[W]:null}class x1{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function ny(e,n,t,r){null!==n?n.applyValueToInputSignal(n,r):e[t]=r}function ar(){return ry}function ry(e){return e.type.prototype.ngOnChanges&&(e.setInput=S1),M1}function M1(){const e=iy(this),n=e?.current;if(n){const t=e.previous;if(t===Or)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function S1(e,n,t,r,o){const i=this.declaredInputs[r],s=iy(e)||function I1(e,n){return e[oy]=n}(e,{previous:Or,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new x1(u&&u.currentValue,t,c===Or),ny(e,n,o,t)}ar.ngInherit=!0;const oy="__ngSimpleChanges__";function iy(e){return e[oy]||null}const kr=function(e,n,t){},sy="svg";let cy=!1;function vt(e){for(;Array.isArray(e);)e=e[Pt];return e}function Ta(e,n){return vt(n[e])}function Rn(e,n){return vt(n[e.index])}function Na(e,n){return e.data[n]}function Wi(e,n){return e[n]}function Kn(e,n){const t=n[e];return Dn(t)?t:t[Pt]}function mf(e){return 128==(128&e[xe])}function Lr(e,n){return null==n?null:e[n]}function uy(e){e[Gi]=0}function F1(e){1024&e[xe]||(e[xe]|=1024,mf(e)&&Ra(e))}function dy(e){return 9216&e[xe]||e[li]?.dirty}function yf(e){dy(e)?Ra(e):64&e[xe]&&(function T1(){return cy}()?(e[xe]|=1024,Ra(e)):e[ho].changeDetectionScheduler?.notify())}function Ra(e){e[ho].changeDetectionScheduler?.notify();let n=hi(e);for(;null!==n&&!(8192&n[xe])&&(n[xe]|=8192,mf(n));)n=hi(n)}function _u(e,n){if(256==(256&e[xe]))throw new w(911,!1);null===e[ko]&&(e[ko]=[]),e[ko].push(n)}function hi(e){const n=e[$t];return wn(n)?n[$t]:n}const Ne={lFrame:wy(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function hy(){return Ne.bindingsEnabled}function k(){return Ne.lFrame.lView}function tt(){return Ne.lFrame.tView}function xt(e){return Ne.lFrame.contextLView=e,e[At]}function Mt(e){return Ne.lFrame.contextLView=null,e}function _t(){let e=py();for(;null!==e&&64===e.type;)e=e.parent;return e}function py(){return Ne.lFrame.currentTNode}function Vr(e,n){const t=Ne.lFrame;t.currentTNode=e,t.isParent=n}function _f(){return Ne.lFrame.isParent}function On(){const e=Ne.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function Ur(){return Ne.lFrame.bindingIndex++}function G1(e,n){const t=Ne.lFrame;t.bindingIndex=t.bindingRootIndex=e,wf(n)}function wf(e){Ne.lFrame.currentDirectiveIndex=e}function bf(e){Ne.lFrame.currentQueryIndex=e}function W1(e){const n=e[ie];return 2===n.type?n.declTNode:1===n.type?e[_n]:null}function _y(e,n,t){if(t&Qe.SkipSelf){let o=n,i=e;for(;!(o=o.parent,null!==o||t&Qe.Host||(o=W1(i),null===o||(i=i[zi],10&o.type))););if(null===o)return!1;n=o,e=i}const r=Ne.lFrame=Dy();return r.currentTNode=n,r.lView=e,!0}function Ef(e){const n=Dy(),t=e[ie];Ne.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function Dy(){const e=Ne.lFrame,n=null===e?null:e.child;return null===n?wy(e):n}function wy(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 Cy(){const e=Ne.lFrame;return Ne.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const by=Cy;function xf(){const e=Cy();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 Cn(){return Ne.lFrame.selectedIndex}function pi(e){Ne.lFrame.selectedIndex=e}function Ft(){const e=Ne.lFrame;return Na(e.tView,e.selectedIndex)}function Mf(){Ne.lFrame.currentNamespace=sy}let My=!0;function Du(){return My}function Lo(e){My=e}function wu(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t<r;t++){const i=e.data[t].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:d}=i;s&&(e.contentHooks??=[]).push(-t,s),a&&((e.contentHooks??=[]).push(t,a),(e.contentCheckHooks??=[]).push(t,a)),c&&(e.viewHooks??=[]).push(-t,c),u&&((e.viewHooks??=[]).push(t,u),(e.viewCheckHooks??=[]).push(t,u)),null!=d&&(e.destroyHooks??=[]).push(t,d)}}function Cu(e,n,t){Sy(e,n,3,t)}function bu(e,n,t,r){(3&e[xe])===t&&Sy(e,n,t,r)}function Sf(e,n){let t=e[xe];(3&t)===n&&(t&=16383,t+=1,e[xe]=t)}function Sy(e,n,t,r){const i=r??-1,s=n.length-1;let a=0;for(let c=void 0!==r?65535&e[Gi]:0;c<s;c++)if("number"==typeof n[c+1]){if(a=n[c],null!=r&&a>=r)break}else n[c]<0&&(e[Gi]+=65536),(a<i||-1==i)&&(J1(e,t,n,c),e[Gi]=(4294901760&e[Gi])+c+2),c++}function Iy(e,n){kr(4,e,n);const t=V(null);try{n.call(e)}finally{V(t),kr(5,e,n)}}function J1(e,n,t,r){const o=t[r]<0,i=t[r+1],a=e[o?-t[r]:t[r]];o?e[xe]>>14<e[Gi]>>16&&(3&e[xe])===n&&(e[xe]+=16384,Iy(a,i)):Iy(a,i)}const Yi=-1;class Fa{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function Af(e){return e!==Yi}function Pa(e){return 32767&e}function ka(e,n){let t=function rS(e){return e>>16}(e),r=n;for(;t>0;)r=r[zi],t--;return r}let Tf=!0;function Eu(e){const n=Tf;return Tf=e,n}const Ay=255,Ty=5;let oS=0;const jr={};function xu(e,n){const t=Ny(e,n);if(-1!==t)return t;const r=n[ie];r.firstCreatePass&&(e.injectorIndex=n.length,Nf(r.data,e),Nf(n,null),Nf(r.blueprint,null));const o=Mu(e,n),i=e.injectorIndex;if(Af(o)){const s=Pa(o),a=ka(o,n),c=a[ie].data;for(let u=0;u<8;u++)n[i+u]=a[s+u]|c[s+u]}return n[i+8]=o,i}function Nf(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Ny(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Mu(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,r=null,o=n;for(;null!==o;){if(r=Vy(o),null===r)return Yi;if(t++,o=o[zi],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return Yi}function Rf(e,n,t){!function iS(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(be)&&(r=t[be]),null==r&&(r=t[be]=oS++);const o=r&Ay;n.data[e+(o>>Ty)]|=1<<o}(e,n,t)}function Ry(e,n,t){if(t&Qe.Optional||void 0!==e)return e;Xe()}function Oy(e,n,t,r){if(t&Qe.Optional&&void 0===r&&(r=null),!(t&(Qe.Self|Qe.Host))){const o=e[Nn],i=Hn(void 0);try{return o?o.get(n,r,t&Qe.Optional):km(n,r,t&Qe.Optional)}finally{Hn(i)}}return Ry(r,0,t)}function Fy(e,n,t,r=Qe.Default,o){if(null!==e){if(2048&n[xe]&&!(r&Qe.Self)){const s=function lS(e,n,t,r,o){let i=e,s=n;for(;null!==i&&null!==s&&2048&s[xe]&&!(512&s[xe]);){const a=Py(i,s,t,r|Qe.Self,jr);if(a!==jr)return a;let c=i.parent;if(!c){const u=s[Jm];if(u){const d=u.get(t,jr,r);if(d!==jr)return d}c=Vy(s),s=s[zi]}i=c}return o}(e,n,t,r,jr);if(s!==jr)return s}const i=Py(e,n,t,r,jr);if(i!==jr)return i}return Oy(n,t,r,o)}function Py(e,n,t,r,o){const i=function cS(e){if("string"==typeof e)return e.charCodeAt(0)||0;const n=e.hasOwnProperty(be)?e[be]:void 0;return"number"==typeof n?n>=0?n&Ay:uS:n}(t);if("function"==typeof i){if(!_y(n,e,r))return r&Qe.Host?Ry(o,0,r):Oy(n,t,r,o);try{let s;if(s=i(r),null!=s||r&Qe.Optional)return s;Xe()}finally{by()}}else if("number"==typeof i){let s=null,a=Ny(e,n),c=Yi,u=r&Qe.Host?n[Ut][_n]:null;for((-1===a||r&Qe.SkipSelf)&&(c=-1===a?Mu(e,n):n[a+8],c!==Yi&&Ly(r,!1)?(s=n[ie],a=Pa(c),n=ka(c,n)):a=-1);-1!==a;){const d=n[ie];if(ky(i,a,d.data)){const f=aS(a,n,t,s,r,u);if(f!==jr)return f}c=n[a+8],c!==Yi&&Ly(r,n[ie].data[a+8]===u)&&ky(i,a,n)?(s=d,a=Pa(c),n=ka(c,n)):a=-1}}return o}function aS(e,n,t,r,o,i){const s=n[ie],a=s.data[e+8],d=function Su(e,n,t,r,o){const i=e.providerIndexes,s=n.data,a=1048575&i,c=e.directiveStart,d=i>>20,y=o?a+d:e.directiveEnd;for(let _=r?a:a+d;_<y;_++){const b=s[_];if(_<c&&t===b||_>=c&&b.type===t)return _}if(o){const _=s[c];if(_&&_r(_)&&_.type===t)return c}return null}(a,s,t,null==r?di(a)&&Tf:r!=s&&0!=(3&a.type),o&Qe.Host&&i===a);return null!==d?gi(n,s,d,a):jr}function gi(e,n,t,r){let o=e[t];const i=n.data;if(function Q1(e){return e instanceof Fa}(o)){const s=o;s.resolving&&function et(e,n){const t=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new w(-200,`Circular dependency in DI detected for ${e}${t}`)}(function le(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():se(e)}(i[t]));const a=Eu(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?Hn(s.injectImpl):null;_y(e,r,Qe.Default);try{o=e[t]=s.factory(void 0,i,e,r),n.firstCreatePass&&t>=r.directiveStart&&function X1(e,n,t){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=n.type.prototype;if(r){const s=ry(n);(t.preOrderHooks??=[]).push(e,s),(t.preOrderCheckHooks??=[]).push(e,s)}o&&(t.preOrderHooks??=[]).push(0-e,o),i&&((t.preOrderHooks??=[]).push(e,i),(t.preOrderCheckHooks??=[]).push(e,i))}(t,i[t],n)}finally{null!==u&&Hn(u),Eu(a),s.resolving=!1,by()}}return o}function ky(e,n,t){return!!(t[n+(e>>Ty)]&1<<e)}function Ly(e,n){return!(e&Qe.Self||e&Qe.Host&&n)}class en{constructor(n,t){this._tNode=n,this._lView=t}get(n,t,r){return Fy(this._tNode,this._lView,n,hu(r),t)}}function uS(){return new en(_t(),k())}function an(e){return lo(()=>{const n=e.prototype.constructor,t=n[W]||Of(n),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[W]||Of(o);if(i&&i!==t)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Of(e){return ae(e)?()=>{const n=Of(H(e));return n&&n()}:fi(e)}function Vy(e){const n=e[ie],t=n.type;return 2===t?n.declTNode:1===t?e[_n]:null}const Qi="__parameters__";function ts(e,n,t){return lo(()=>{const r=function Ff(e){return function(...t){if(e){const r=e(...t);for(const o in r)this[o]=r[o]}}}(n);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(c,u,d){const f=c.hasOwnProperty(Qi)?c[Qi]:Object.defineProperty(c,Qi,{value:[]})[Qi];for(;f.length<=d;)f.push(null);return(f[d]=f[d]||[]).push(s),c}}return t&&(o.prototype=Object.create(t.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function rs(e,n){e.forEach(t=>Array.isArray(t)?rs(t,n):n(t))}function jy(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Au(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function Yn(e,n,t){let r=os(e,n);return r>=0?e[1|r]=t:(r=~r,function By(e,n,t,r){let o=e.length;if(o==n)e.push(t,r);else if(1===o)e.push(r,e[0]),e[0]=t;else{for(o--,e.push(e[o-1],e[o]);o>n;)e[o]=e[o-2],o--;e[n]=t,e[n+1]=r}}(e,r,n,t)),r}function kf(e,n){const t=os(e,n);if(t>=0)return e[1|t]}function os(e,n){return function Hy(e,n,t){let r=0,o=e.length>>t;for(;o!==r;){const i=r+(o-r>>1),s=e[i<<t];if(n===s)return i<<t;s>n?o=i:r=i+1}return~(o<<t)}(e,n,1)}const Ru=Ea(ts("Optional"),8),Ou=Ea(ts("SkipSelf"),4),mi=new de(""),qy=new de("",-1),Uf=new de("");class Pu{get(n,t=ba){if(t===ba){const r=new Error(`NullInjectorError: No provider for ${ve(n)}!`);throw r.name="NullInjectorError",r}return t}}function RS(...e){return{\u0275providers:Wy(0,e),\u0275fromNgModule:!0}}function Wy(e,...n){const t=[],r=new Set;let o;const i=s=>{t.push(s)};return rs(n,s=>{const a=s;Lu(a,i,[],r)&&(o||=[],o.push(a))}),void 0!==o&&Ky(o,i),t}function Ky(e,n){for(let t=0;t<e.length;t++){const{ngModule:r,providers:o}=e[t];jf(o,i=>{n(i,r)})}}function Lu(e,n,t,r){if(!(e=H(e)))return!1;let o=null,i=lu(e);const s=!i&&Ke(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const c=e.ngModule;if(i=lu(c),!i)return!1;o=c}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of c)Lu(u,n,t,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let u;r.add(o);try{rs(i.imports,d=>{Lu(d,n,t,r)&&(u||=[],u.push(d))})}finally{}void 0!==u&&Ky(u,n)}if(!a){const u=fi(o)||(()=>new o);n({provide:o,useFactory:u,deps:st},o),n({provide:Uf,useValue:o,multi:!0},o),n({provide:mi,useValue:()=>Ee(o),multi:!0},o)}const c=i.providers;if(null!=c&&!a){const u=e;jf(c,d=>{n(d,u)})}}}return o!==e&&void 0!==e.providers}function jf(e,n){for(let t of e)O(t)&&(t=t.\u0275providers),Array.isArray(t)?jf(t,n):n(t)}const OS=ce({provide:String,useValue:ce});function Bf(e){return null!==e&&"object"==typeof e&&OS in e}function yi(e){return"function"==typeof e}const Hf=new de(""),Vu={},PS={};let $f;function Uu(){return void 0===$f&&($f=new Pu),$f}class Zn{}class ss extends Zn{get destroyed(){return this._destroyed}constructor(n,t,r,o){super(),this.parent=t,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Gf(n,s=>this.processProvider(s)),this.records.set(qy,as(void 0,this)),o.has("environment")&&this.records.set(Zn,as(void 0,this));const i=this.records.get(Hf);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Uf,st,Qe.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const t of n)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=Fo(this),r=Hn(void 0);try{return n()}finally{Fo(t),Hn(r)}}get(n,t=ba,r=Qe.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Le))return n[Le](this);r=hu(r);const i=Fo(this),s=Hn(void 0);try{if(!(r&Qe.SkipSelf)){let c=this.records.get(n);if(void 0===c){const u=function jS(e){return"function"==typeof e||"object"==typeof e&&e instanceof de}(n)&&uu(n);c=u&&this.injectableDefInScope(u)?as(zf(n),Vu):null,this.records.set(n,c)}if(null!=c)return this.hydrate(n,c)}return(r&Qe.Self?Uu():this.parent).get(n,t=r&Qe.Optional&&t===ba?null:t)}catch(a){if("NullInjectorError"===a.name){if((a[fu]=a[fu]||[]).unshift(ve(n)),i)throw a;return function i1(e,n,t,r){const o=e[fu];throw n[Vm]&&o.unshift(n[Vm]),e.message=function s1(e,n,t,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=ve(n);if(Array.isArray(n))o=n.map(ve).join(" -> ");else if("object"==typeof n){let i=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):ve(a)))}o=`{${i.join(", ")}}`}return`${t}${r?"("+r+")":""}[${o}]: ${e.replace(e1,"\n ")}`}("\n"+e.message,o,t,r),e.ngTokenPath=o,e[fu]=null,e}(a,n,"R3InjectorError",this.source)}throw a}finally{Hn(s),Fo(i)}}resolveInjectorInitializers(){const n=Fo(this),t=Hn(void 0);try{const o=this.get(mi,st,Qe.Self);for(const i of o)i()}finally{Fo(n),Hn(t)}}toString(){const n=[],t=this.records;for(const r of t.keys())n.push(ve(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new w(205,!1)}processProvider(n){let t=yi(n=H(n))?n:H(n&&n.provide);const r=function LS(e){return Bf(e)?as(void 0,e.useValue):as(Xy(e),Vu)}(n);if(!yi(n)&&!0===n.multi){let o=this.records.get(t);o||(o=as(void 0,Vu,!0),o.factory=()=>rf(o.multi),this.records.set(t,o)),t=n,o.multi.push(n)}this.records.set(t,r)}hydrate(n,t){return t.value===Vu&&(t.value=PS,t.value=t.factory()),"object"==typeof t.value&&t.value&&function US(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(n){if(!n.providedIn)return!1;const t=H(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){const t=this._onDestroyHooks.indexOf(n);-1!==t&&this._onDestroyHooks.splice(t,1)}}function zf(e){const n=uu(e),t=null!==n?n.factory:fi(e);if(null!==t)return t;if(e instanceof de)throw new w(204,!1);if(e instanceof Function)return function kS(e){if(e.length>0)throw new w(204,!1);const t=function ZM(e){return e&&(e[du]||e[Fm])||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new w(204,!1)}function Xy(e,n,t){let r;if(yi(e)){const o=H(e);return fi(o)||zf(o)}if(Bf(e))r=()=>H(e.useValue);else if(function Zy(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...rf(e.deps||[]));else if(function Yy(e){return!(!e||!e.useExisting)}(e))r=()=>Ee(H(e.useExisting));else{const o=H(e&&(e.useClass||e.provide));if(!function VS(e){return!!e.deps}(e))return fi(o)||zf(o);r=()=>new o(...rf(e.deps))}return r}function as(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function Gf(e,n){for(const t of e)Array.isArray(t)?Gf(t,n):t&&O(t)?Gf(t.\u0275providers,n):n(t)}function Vo(e,n){e instanceof ss&&e.assertNotDestroyed();const r=Fo(e),o=Hn(void 0);try{return n()}finally{Fo(r),Hn(o)}}function tv(e,n=null,t=null,r){const o=nv(e,n,t,r);return o.resolveInjectorInitializers(),o}function nv(e,n=null,t=null,r,o=new Set){const i=[t||st,RS(e)];return r=r||("object"==typeof e?void 0:ve(e)),new ss(i,n||Uu(),r||null,o)}let Kf,zn=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=ba;static#t=this.NULL=new Pu;static create(t,r){if(Array.isArray(t))return tv({name:""},r,t,"");{const o=t.name??"";return tv({name:o},t.parent,t.providers,o)}}static#n=this.\u0275prov=De({token:e,providedIn:"any",factory:()=>Ee(qy)});static#r=this.__NG_ELEMENT_ID__=-1}return e})();const Bu=new de("",{providedIn:"root",factory:()=>YS}),YS="ng",ov=new de(""),Bo=new de("",{providedIn:"platform",factory:()=>"unknown"}),iv=new de("",{providedIn:"root",factory:()=>function jo(){if(void 0!==Kf)return Kf;if(typeof document<"u")return document;throw new w(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function Xn(e){return e instanceof Function?e():e}function Gu(e){return 128==(128&e.flags)}var zo=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(zo||{});const Qf=new Map;let cI=0;const th="__ngContext__";function bn(e,n){Dn(n)?(e[th]=n[Ia],function lI(e){Qf.set(e[Ia],e)}(n)):e[th]=n}let nh;function rh(e,n){return nh(e,n)}function us(e,n,t,r,o){if(null!=r){let i,s=!1;wn(r)?i=r:Dn(r)&&(s=!0,r=r[Pt]);const a=vt(r);0===e&&null!==t?null==o?Sv(n,t,a):vi(n,t,a,o||null,!0):1===e&&null!==t?vi(n,t,a,o||null,!0):2===e?function Ju(e,n,t){const r=Zu(e,n);r&&function MI(e,n,t,r){e.removeChild(n,t,r)}(e,r,n,t)}(n,a,s):3===e&&n.destroyNode(a),null!=i&&function AI(e,n,t,r,o){const i=t[Pr];i!==vt(t)&&us(n,e,r,i,o);for(let a=zt;a<t.length;a++){const c=t[a];Qu(c[ie],c,e,n,r,i)}}(n,e,i,t,o)}}function Ku(e,n,t){return e.createElement(n,t)}function Ev(e,n){Qu(e,n,n[je],2,null,null)}function xv(e,n){const t=e[qi],r=t.indexOf(n);t.splice(r,1)}function $a(e,n){if(e.length<=zt)return;const t=zt+n,r=e[t];if(r){const o=r[Sa];null!==o&&o!==e&&xv(o,r),n>0&&(e[t-1][yr]=r[yr]);const i=Au(e,zt+n);!function _I(e,n){Ev(e,n),n[Pt]=null,n[_n]=null}(r[ie],r);const s=i[Fr];null!==s&&s.detachView(i[ie]),r[$t]=null,r[yr]=null,r[xe]&=-129}return r}function Yu(e,n){if(!(256&n[xe])){const t=n[je];t.destroyNode&&Qu(e,n,t,3,null,null),function wI(e){let n=e[Ma];if(!n)return ih(e[ie],e);for(;n;){let t=null;if(Dn(n))t=n[Ma];else{const r=n[zt];r&&(t=r)}if(!t){for(;n&&!n[yr]&&n!==e;)Dn(n)&&ih(n[ie],n),n=n[$t];null===n&&(n=e),Dn(n)&&ih(n[ie],n),t=n&&n[yr]}n=t}}(n)}}function ih(e,n){if(!(256&n[xe])){n[xe]&=-129,n[xe]|=256,n[li]&&function Rt(e){if(bt(e),re(e))for(let n=0;n<e.producerNode.length;n++)nr(e.producerNode[n],e.producerIndexOfThis[n]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}(n[li]),function xI(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let r=0;r<t.length;r+=2){const o=n[t[r]];if(!(o instanceof Fa)){const i=t[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){const a=o[i[s]],c=i[s+1];kr(4,a,c);try{c.call(a)}finally{kr(5,a,c)}}else{kr(4,o,i);try{i.call(o)}finally{kr(5,o,i)}}}}}(e,n),function EI(e,n){const t=e.cleanup,r=n[$i];if(null!==t)for(let i=0;i<t.length-1;i+=2)if("string"==typeof t[i]){const s=t[i+3];s>=0?r[s]():r[-s].unsubscribe(),i+=2}else t[i].call(r[t[i+1]]);null!==r&&(n[$i]=null);const o=n[ko];if(null!==o){n[ko]=null;for(let i=0;i<o.length;i++)(0,o[i])()}}(e,n),1===n[ie].type&&n[je].destroy();const t=n[Sa];if(null!==t&&wn(n[$t])){t!==n[$t]&&xv(t,n);const r=n[Fr];null!==r&&r.detachView(e)}!function dI(e){Qf.delete(e[Ia])}(n)}}function sh(e,n,t){return function Mv(e,n,t){let r=n;for(;null!==r&&40&r.type;)r=(n=r).parent;if(null===r)return t[Pt];{const{componentOffset:o}=r;if(o>-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===gr.None||i===gr.Emulated)return null}return Rn(r,t)}}(e,n.parent,t)}function vi(e,n,t,r,o){e.insertBefore(n,t,r,o)}function Sv(e,n,t){e.appendChild(n,t)}function Iv(e,n,t,r,o){null!==r?vi(e,n,t,r,o):Sv(e,n,t)}function Zu(e,n){return e.parentNode(n)}let ah,Nv=function Tv(e,n,t){return 40&e.type?Rn(e,t):null};function Xu(e,n,t,r){const o=sh(e,r,n),i=n[je],a=function Av(e,n,t){return Nv(e,n,t)}(r.parent||n[_n],r,n);if(null!=o)if(Array.isArray(t))for(let c=0;c<t.length;c++)Iv(i,o,t[c],a,!1);else Iv(i,o,t,a,!1);void 0!==ah&&ah(i,r,n,t,o)}function za(e,n){if(null!==n){const t=n.type;if(3&t)return Rn(n,e);if(4&t)return ch(-1,e[n.index]);if(8&t){const r=n.child;if(null!==r)return za(e,r);{const o=e[n.index];return wn(o)?ch(-1,o):vt(o)}}if(32&t)return rh(n,e)()||vt(e[n.index]);{const r=Ov(e,n);return null!==r?Array.isArray(r)?r[0]:za(hi(e[Ut]),r):za(e,n.next)}}return null}function Ov(e,n){return null!==n?e[Ut][_n].projection[n.projection]:null}function ch(e,n){const t=zt+e+1;if(t<n.length){const r=n[t],o=r[ie].firstChild;if(null!==o)return za(r,o)}return n[Pr]}function uh(e,n,t,r,o,i,s){for(;null!=t;){const a=r[t.index],c=t.type;if(s&&0===n&&(a&&bn(vt(a),r),t.flags|=2),32!=(32&t.flags))if(8&c)uh(e,n,t.child,r,o,i,!1),us(n,e,o,a,i);else if(32&c){const u=rh(t,r);let d;for(;d=u();)us(n,e,o,d,i);us(n,e,o,a,i)}else 16&c?Pv(e,n,r,t,o,i):us(n,e,o,a,i);t=s?t.projectionNext:t.next}}function Qu(e,n,t,r,o,i){uh(t,r,e.firstChild,n,o,i,!1)}function Pv(e,n,t,r,o,i){const s=t[Ut],c=s[_n].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++)us(n,e,o,c[u],i);else{let u=c;const d=s[$t];Gu(r)&&(u.flags|=128),uh(e,n,u,d,o,i,!0)}}function kv(e,n,t){""===t?e.removeAttribute(n,"class"):e.setAttribute(n,"class",t)}function Lv(e,n,t){const{mergedAttrs:r,classes:o,styles:i}=t;null!==r&&sf(e,n,r),null!==o&&kv(e,n,o),null!==i&&function NI(e,n,t){e.setAttribute(n,"style",t)}(e,n,i)}class Bv{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${I})`}}function Go(e){return e instanceof Bv?e.changingThisBreaksApplicationSecurity:e}const zI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var ds=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(ds||{});function mh(e){const n=function Wa(){const e=k();return e&&e[ho].sanitizer}();return n?n.sanitize(ds.URL,e)||"":function Ga(e,n){const t=function jI(e){return e instanceof Bv&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${I})`)}return t===n}(e,"URL")?Go(e):function fh(e){return(e=String(e)).match(zI)?e:"unsafe:"+e}(se(e))}class Zv{}let Xv=()=>null;function Eh(e,n,t=!1){return Xv(e,n,t)}class dA{}class n_{}class hA{resolveComponentFactory(n){throw function fA(e){const n=Error(`No component factory found for ${ve(e)}.`);return n.ngComponent=e,n}(n)}}let cl=(()=>{class e{static#e=this.NULL=new hA}return e})();function pA(){return gs(_t(),k())}function gs(e,n){return new Jn(Rn(e,n))}let Jn=(()=>{class e{constructor(t){this.nativeElement=t}static#e=this.__NG_ELEMENT_ID__=pA}return e})();class o_{}let yo=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function mA(){const e=k(),t=Kn(_t().index,e);return(Dn(t)?t:e)[je]}()}return e})(),yA=(()=>{class e{static#e=this.\u0275prov=De({token:e,providedIn:"root",factory:()=>null})}return e})();const Ih={};function ul(e){return!!function Ah(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}class s_{constructor(){}supports(n){return ul(n)}create(n){return new bA(n)}}const CA=(e,n)=>n;class bA{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||CA}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,r=this._removalsHead,o=0,i=null;for(;t||r;){const s=!r||t&&t.currentIndex<c_(r,o,i)?t:r,a=c_(s,o,i),c=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(t=t._next,null==s.previousIndex)o++;else{i||(i=[]);const u=a-o,d=c-o;if(u!=d){for(let y=0;y<u;y++){const _=y<i.length?i[y]:i[y]=0,b=_+y;d<=b&&b<u&&(i[y]=_+1)}i[s.previousIndex]=d-u}}a!==c&&n(s,a,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=[]),!ul(n))throw new w(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let o,i,s,t=this._itHead,r=!1;if(Array.isArray(n)){this.length=n.length;for(let a=0;a<this.length;a++)i=n[a],s=this._trackByFn(a,i),null!==t&&Object.is(t.trackById,s)?(r&&(t=this._verifyReinsertion(t,i,s,a)),Object.is(t.item,i)||this._addIdentityChange(t,i)):(t=this._mismatch(t,i,s,a),r=!0),t=t._next}else o=0,function wA(e,n){if(Array.isArray(e))for(let t=0;t<e.length;t++)n(e[t]);else{const t=e[Symbol.iterator]();let r;for(;!(r=t.next()).done;)n(r.value)}}(n,a=>{s=this._trackByFn(o,a),null!==t&&Object.is(t.trackById,s)?(r&&(t=this._verifyReinsertion(t,a,s,o)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,o),r=!0),t=t._next,o++}),this.length=o;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,r,o){let i;return null===n?i=this._itTail:(i=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,i,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,i,o)):n=this._addAfter(new EA(t,r),i,o),n}_verifyReinsertion(n,t,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?n=this._reinsertAfter(i,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),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,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,i=n._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(n,t,r),this._addToMoves(n,r),n}_moveAfter(n,t,r){return this._unlink(n),this._insertAfter(n,t,r),this._addToMoves(n,r),n}_addAfter(n,t,r){return this._insertAfter(n,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,r){const o=null===t?this._itHead:t._next;return n._next=o,n._prev=t,null===o?this._itTail=n:o._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new a_),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,r=n._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._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 a_),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 EA{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 xA{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 r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){const t=n._prevDup,r=n._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class a_{constructor(){this.map=new Map}put(n){const t=n.trackById;let r=this.map.get(t);r||(r=new xA,this.map.set(t,r)),r.add(n)}get(n,t){const o=this.map.get(n);return o?o.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 c_(e,n,t){const r=e.previousIndex;if(null===r)return r;let o=0;return t&&r<t.length&&(o=t[r]),r+n+o}function l_(){return new Th([new s_])}let Th=(()=>{class e{static#e=this.\u0275prov=De({token:e,providedIn:"root",factory:l_});constructor(t){this.factories=t}static create(t,r){if(null!=r){const o=r.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||l_()),deps:[[e,new Ou,new Ru]]}}find(t){const r=this.factories.find(o=>o.supports(t));if(null!=r)return r;throw new w(901,!1)}}return e})();function Xa(e,n,t,r,o=!1){for(;null!==t;){const i=n[t.index];null!==i&&r.push(vt(i)),wn(i)&&f_(i,r);const s=t.type;if(8&s)Xa(e,n,t.child,r);else if(32&s){const a=rh(t,n);let c;for(;c=a();)r.push(c)}else if(16&s){const a=Ov(n,t);if(Array.isArray(a))r.push(...a);else{const c=hi(n[Ut]);Xa(c[ie],c,a,r,!0)}}t=o?t.projectionNext:t.next}return r}function f_(e,n){for(let t=zt;t<e.length;t++){const r=e[t],o=r[ie].firstChild;null!==o&&Xa(r[ie],r,o,n)}e[Pr]!==e[Pt]&&n.push(e[Pr])}let h_=[];const RA={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{Ra(e.lView)},consumerOnSignalRead(){this.lView[li]=this}};function p_(e){return m_(e[Ma])}function g_(e){return m_(e[yr])}function m_(e){for(;null!==e&&!wn(e);)e=e[yr];return e}function Nh(e){return e.ngOriginalError}class vo{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&Nh(n);for(;t&&Nh(t);)t=Nh(t);return t||null}}const v_=new de("",{providedIn:"root",factory:()=>te(vo).handleError.bind(void 0)}),D_=new de("",{providedIn:"root",factory:()=>!1}),Be={};function me(e=1){E_(tt(),k(),Cn()+e,!1)}function E_(e,n,t,r){if(!r)if(3==(3&n[xe])){const i=e.preOrderCheckHooks;null!==i&&Cu(n,i,t)}else{const i=e.preOrderHooks;null!==i&&bu(n,i,0,t)}pi(t)}function ee(e,n=Qe.Default){const t=k();return null===t?Ee(e,n):Fy(_t(),t,H(e),n)}function M_(e,n,t,r,o,i){const s=V(null);try{let a=null;o&Ot.SignalBased&&(a=n[r][B]),null!==a&&void 0!==a.transformFn&&(i=a.transformFn(i)),o&Ot.HasDecoratorInputTransform&&(i=e.inputTransforms[r].call(n,i)),null!==e.setInput?e.setInput(n,a,i,t,r):ny(n,a,r,i)}finally{V(s)}}function fl(e,n,t,r,o,i,s,a,c,u,d){const f=n.blueprint.slice();return f[Pt]=o,f[xe]=204|r,(null!==u||e&&2048&e[xe])&&(f[xe]|=2048),uy(f),f[$t]=f[zi]=e,f[At]=t,f[ho]=s||e&&e[ho],f[je]=a||e&&e[je],f[Nn]=c||e&&e[Nn]||null,f[_n]=i,f[Ia]=function uI(){return cI++}(),f[vr]=d,f[Jm]=u,f[Ut]=2==n.type?e[Ut]:f,f}function ms(e,n,t,r,o){let i=e.data[n];if(null===i)i=function Rh(e,n,t,r,o){const i=py(),s=_f(),c=e.data[n]=function WA(e,n,t,r,o,i){let s=n?n.injectorIndex:-1,a=0;return function Ki(){return null!==Ne.skipHydrationRootTNode}()&&(a|=128),{type:t,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev: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,s?i:i&&i.parent,t,n,r,o);return null===e.firstChild&&(e.firstChild=c),null!==i&&(s?null==i.child&&null!==c.parent&&(i.child=c):null===i.next&&(i.next=c,c.prev=i)),c}(e,n,t,r,o),function z1(){return Ne.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=t,i.value=r,i.attrs=o;const s=function Oa(){const e=Ne.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return Vr(i,!0),i}function Ja(e,n,t,r){if(0===t)return-1;const o=n.length;for(let i=0;i<t;i++)n.push(r),e.blueprint.push(r),e.data.push(null);return o}function S_(e,n,t,r,o){const i=Cn(),s=2&r;try{pi(-1),s&&n.length>Ve&&E_(e,n,Ve,!1),kr(s?2:0,o),t(r,o)}finally{pi(i),kr(s?3:1,o)}}function Oh(e,n,t){if(lf(n)){const r=V(null);try{const i=n.directiveEnd;for(let s=n.directiveStart;s<i;s++){const a=e.data[s];a.contentQueries&&a.contentQueries(1,t[s],s)}}finally{V(r)}}}function Fh(e,n,t){hy()&&(function eT(e,n,t,r){const o=t.directiveStart,i=t.directiveEnd;di(t)&&function aT(e,n,t){const r=Rn(n,e),o=I_(t);let s=16;t.signals?s=4096:t.onPush&&(s=64);const a=hl(e,fl(e,o,null,s,r,n,null,e[ho].rendererFactory.createRenderer(r,t),null,null,null));e[n.index]=a}(n,t,e.data[o+t.componentOffset]),e.firstCreatePass||xu(t,n),bn(r,n);const s=t.initialInputs;for(let a=o;a<i;a++){const c=e.data[a],u=gi(n,e,a,t);bn(u,n),null!==s&&cT(0,a-o,u,c,0,s),_r(c)&&(Kn(t.index,n)[At]=gi(n,e,a,t))}}(e,n,t,Rn(t,n)),64==(64&t.flags)&&O_(e,n,t))}function Ph(e,n,t=Rn){const r=n.localNames;if(null!==r){let o=n.index+1;for(let i=0;i<r.length;i+=2){const s=r[i+1],a=-1===s?t(n,e):e[s];e[o++]=a}}}function I_(e){const n=e.tView;return null===n||n.incompleteFirstPass?e.tView=kh(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):n}function kh(e,n,t,r,o,i,s,a,c,u,d){const f=Ve+r,y=f+o,_=function BA(e,n){const t=[];for(let r=0;r<n;r++)t.push(r<e?null:Be);return t}(f,y),b="function"==typeof u?u():u;return _[ie]={type:e,blueprint:_,template:t,queries:null,viewQuery:a,declTNode:n,data:_.slice().fill(null,f),bindingStartIndex:f,expandoStartIndex:y,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 i?i():i,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:c,consts:b,incompleteFirstPass:!1,ssrId:d}}let A_=()=>null;function T_(e,n,t,r,o){for(let i in n){if(!n.hasOwnProperty(i))continue;const s=n[i];if(void 0===s)continue;r??={};let a,c=Ot.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=i;if(null!==o){if(!o.hasOwnProperty(i))continue;u=o[i]}0===e?N_(r,t,u,a,c):N_(r,t,u,a)}return r}function N_(e,n,t,r,o){let i;e.hasOwnProperty(t)?(i=e[t]).push(n,r):i=e[t]=[n,r],void 0!==o&&i.push(o)}function Qn(e,n,t,r,o,i,s,a){const c=Rn(n,t);let d,u=n.inputs;!a&&null!=u&&(d=u[r])?(Bh(e,t,d,r,o),di(n)&&function ZA(e,n){const t=Kn(n,e);16&t[xe]||(t[xe]|=64)}(t,n.index)):3&n.type&&(r=function YA(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,n.value||"",r):o,i.setProperty(c,r,o))}function Lh(e,n,t,r){if(hy()){const o=null===r?null:{"":-1},i=function nT(e,n){const t=e.directiveRegistry;let r=null,o=null;if(t)for(let i=0;i<t.length;i++){const s=t[i];if(qm(n,s.selectors,!1))if(r||(r=[]),_r(s))if(null!==s.findHostDirectiveDefs){const a=[];o=o||new Map,s.findHostDirectiveDefs(s,a,o),r.unshift(...a,s),Vh(e,n,a.length)}else r.unshift(s),Vh(e,n,0);else o=o||new Map,s.findHostDirectiveDefs?.(s,r,o),r.push(s)}return null===r?null:[r,o]}(e,t);let s,a;null===i?s=a=null:[s,a]=i,null!==s&&R_(e,n,t,s,o,a),o&&function rT(e,n,t){if(n){const r=e.localNames=[];for(let o=0;o<n.length;o+=2){const i=t[n[o+1]];if(null==i)throw new w(-301,!1);r.push(n[o],i)}}}(t,r,o)}t.mergedAttrs=xa(t.mergedAttrs,t.attrs)}function R_(e,n,t,r,o,i){for(let u=0;u<r.length;u++)Rf(xu(t,n),e,r[u].type);!function iT(e,n,t){e.flags|=1,e.directiveStart=n,e.directiveEnd=n+t,e.providerIndexes=n}(t,e.data.length,r.length);for(let u=0;u<r.length;u++){const d=r[u];d.providersResolver&&d.providersResolver(d)}let s=!1,a=!1,c=Ja(e,n,r.length,null);for(let u=0;u<r.length;u++){const d=r[u];t.mergedAttrs=xa(t.mergedAttrs,d.hostAttrs),sT(e,t,n,c,d),oT(c,d,o),null!==d.contentQueries&&(t.flags|=4),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(t.flags|=64);const f=d.type.prototype;!s&&(f.ngOnChanges||f.ngOnInit||f.ngDoCheck)&&((e.preOrderHooks??=[]).push(t.index),s=!0),!a&&(f.ngOnChanges||f.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(t.index),a=!0),c++}!function KA(e,n,t){const o=n.directiveEnd,i=e.data,s=n.attrs,a=[];let c=null,u=null;for(let d=n.directiveStart;d<o;d++){const f=i[d],y=t?t.get(f):null,b=y?y.outputs:null;c=T_(0,f.inputs,d,c,y?y.inputs:null),u=T_(1,f.outputs,d,u,b);const S=null===c||null===s||Gm(n)?null:uT(c,d,s);a.push(S)}null!==c&&(c.hasOwnProperty("class")&&(n.flags|=8),c.hasOwnProperty("style")&&(n.flags|=16)),n.initialInputs=a,n.inputs=c,n.outputs=u}(e,t,i)}function O_(e,n,t){const r=t.directiveStart,o=t.directiveEnd,i=t.index,s=function q1(){return Ne.lFrame.currentDirectiveIndex}();try{pi(i);for(let a=r;a<o;a++){const c=e.data[a],u=n[a];wf(a),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&tT(c,u)}}finally{pi(-1),wf(s)}}function tT(e,n){null!==e.hostBindings&&e.hostBindings(1,n)}function Vh(e,n,t){n.componentOffset=t,(e.components??=[]).push(n.index)}function oT(e,n,t){if(t){if(n.exportAs)for(let r=0;r<n.exportAs.length;r++)t[n.exportAs[r]]=e;_r(n)&&(t[""]=e)}}function sT(e,n,t,r,o){e.data[r]=o;const i=o.factory||(o.factory=fi(o.type)),s=new Fa(i,_r(o),ee);e.blueprint[r]=s,t[r]=s,function JA(e,n,t,r,o){const i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);const a=~n.index;(function QA(e){let n=e.length;for(;n>0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(s)!=a&&s.push(a),s.push(t,r,i)}}(e,n,r,Ja(e,t,o.hostVars,Be),o)}function Br(e,n,t,r,o,i){const s=Rn(e,n);!function Uh(e,n,t,r,o,i,s){if(null==i)e.removeAttribute(n,o,t);else{const a=null==s?se(i):s(i,r||"",o);e.setAttribute(n,o,a,t)}}(n[je],s,i,e.value,t,r,o)}function cT(e,n,t,r,o,i){const s=i[n];if(null!==s)for(let a=0;a<s.length;)M_(r,t,s[a++],s[a++],s[a++],s[a++])}function uT(e,n,t){let r=null,o=0;for(;o<t.length;){const i=t[o];if(0!==i)if(5!==i){if("number"==typeof i)break;if(e.hasOwnProperty(i)){null===r&&(r=[]);const s=e[i];for(let a=0;a<s.length;a+=3)if(s[a]===n){r.push(i,s[a+1],s[a+2],t[o+1]);break}}o+=2}else o+=2;else o+=4}return r}function F_(e,n,t,r){return[e,!0,0,n,null,r,null,t,null,null]}function P_(e,n){const t=e.contentQueries;if(null!==t){const r=V(null);try{for(let o=0;o<t.length;o+=2){const s=t[o+1];if(-1!==s){const a=e.data[s];bf(t[o]),a.contentQueries(2,n[s],s)}}}finally{V(r)}}}function hl(e,n){return e[Ma]?e[Xm][yr]=n:e[Ma]=n,e[Xm]=n,n}function jh(e,n,t){bf(0);const r=V(null);try{n(e,t)}finally{V(r)}}function pl(e,n){const t=e[Nn],r=t?t.get(vo,null):null;r&&r.handleError(n)}function Bh(e,n,t,r,o){for(let i=0;i<t.length;){const s=t[i++],a=t[i++],c=t[i++];M_(e.data[s],n[s],r,a,c,o)}}function fT(e,n,t,r){const o=n[xe];if(256==(256&o))return;n[ho].inlineEffectRunner?.flush(),Ef(n);let s=null,a=null;(function hT(e){return 2!==e.type})(e)&&(a=function AA(e){return e[li]??function TA(e){const n=h_.pop()??Object.create(RA);return n.lView=e,n}(e)}(n),s=function In(e){return e&&(e.nextProducerIndex=0),V(e)}(a));try{uy(n),function my(e){return Ne.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&S_(e,n,t,2,r);const c=3==(3&o);if(c){const f=e.preOrderCheckHooks;null!==f&&Cu(n,f,null)}else{const f=e.preOrderHooks;null!==f&&bu(n,f,0,null),Sf(n,0)}if(function pT(e){for(let n=p_(e);null!==n;n=g_(n)){if(!(n[xe]&uf.HasTransplantedViews))continue;const t=n[qi];for(let r=0;r<t.length;r++){F1(t[r])}}}(n),U_(n,0),null!==e.contentQueries&&P_(e,n),c){const f=e.contentCheckHooks;null!==f&&Cu(n,f)}else{const f=e.contentHooks;null!==f&&bu(n,f,1),Sf(n,1)}!function jA(e,n){const t=e.hostBindingOpCodes;if(null!==t)try{for(let r=0;r<t.length;r++){const o=t[r];if(o<0)pi(~o);else{const i=o,s=t[++r],a=t[++r];G1(s,i),a(2,n[i])}}}finally{pi(-1)}}(e,n);const u=e.components;null!==u&&B_(n,u,0);const d=e.viewQuery;if(null!==d&&jh(2,d,r),c){const f=e.viewCheckHooks;null!==f&&Cu(n,f)}else{const f=e.viewHooks;null!==f&&bu(n,f,2),Sf(n,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),n[mu]){for(const f of n[mu])f();n[mu]=null}n[xe]&=-73}catch(c){throw Ra(n),c}finally{null!==a&&(function jn(e,n){if(V(n),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(re(e))for(let t=e.nextProducerIndex;t<e.producerNode.length;t++)nr(e.producerNode[t],e.producerIndexOfThis[t]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}(a,s),function NA(e){e.lView[li]!==e&&(e.lView=null,h_.push(e))}(a)),xf()}}function U_(e,n){for(let t=p_(e);null!==t;t=g_(t))for(let r=zt;r<t.length;r++)j_(t[r],n)}function gT(e,n,t){j_(Kn(n,e),t)}function j_(e,n){mf(e)&&$h(e,n)}function $h(e,n){const r=e[ie],o=e[xe],i=e[li];let s=!!(0===n&&16&o);if(s||=!!(64&o&&0===n),s||=!!(1024&o),s||=!(!i?.dirty||!we(i)),i&&(i.dirty=!1),e[xe]&=-9217,s)fT(r,e,r.template,e[At]);else if(8192&o){U_(e,1);const a=r.components;null!==a&&B_(e,a,1)}}function B_(e,n,t){for(let r=0;r<n.length;r++)gT(e,n[r],t)}function Qa(e){for(e[ho].changeDetectionScheduler?.notify();e;){e[xe]|=64;const n=hi(e);if(df(e)&&!n)return e;e=n}return null}class ec{get rootNodes(){const n=this._lView,t=n[ie];return Xa(t,n,t.firstChild,[])}constructor(n,t,r=!0){this._lView=n,this._cdRefInjectingView=t,this.notifyErrorHandler=r,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[At]}set context(n){this._lView[At]=n}get destroyed(){return 256==(256&this._lView[xe])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[$t];if(wn(n)){const t=n[8],r=t?t.indexOf(this):-1;r>-1&&($a(n,r),Au(t,r))}this._attachedToViewContainer=!1}Yu(this._lView[ie],this._lView)}onDestroy(n){_u(this._lView,n)}markForCheck(){Qa(this._cdRefInjectingView||this._lView)}detach(){this._lView[xe]&=-129}reattach(){yf(this._lView),this._lView[xe]|=128}detectChanges(){this._lView[xe]|=1024,function Hh(e,n=!0){const t=e[ho],r=t.rendererFactory;r.begin?.();try{!function dT(e){$h(e,0);let n=0;for(;dy(e);){if(100===n)throw new w(103,!1);n++,$h(e,1)}}(e)}catch(i){throw n&&pl(e,i),i}finally{r.end?.(),t.inlineEffectRunner?.flush()}}(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Ev(this._lView[ie],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=n,yf(this._lView)}}let tc=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=mT}return e})();function mT(e){return function yT(e,n,t){if(di(e)&&!t){const r=Kn(e.index,n);return new ec(r,r)}return 47&e.type?new ec(n[Ut],n):null}(_t(),k(),16==(16&e))}let gl=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=wT;static#t=this.__NG_ENV_ID__=t=>t}return e})();class DT extends gl{constructor(n){super(),this._lView=n}onDestroy(n){return _u(this._lView,n),()=>function vf(e,n){if(null===e[ko])return;const t=e[ko].indexOf(n);-1!==t&&e[ko].splice(t,1)}(this._lView,n)}}function wT(){return new DT(k())}const H_=new Set;function _i(e){H_.has(e)||(H_.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function zh(e){return n=>{setTimeout(e,void 0,n)}}const Bt=class ST extends sr{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,t,r){let o=n,i=t||(()=>null),s=r;if(n&&"object"==typeof n){const c=n;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=zh(i),o&&(o=zh(o)),s&&(s=zh(s)));const a=super.subscribe({next:o,error:i,complete:s});return n instanceof un&&n.add(a),a}};function $_(...e){}class dt{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Bt(!1),this.onMicrotaskEmpty=new Bt(!1),this.onStable=new Bt(!1),this.onError=new Bt(!1),typeof Zone>"u")throw new w(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&t,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function IT(){const e="function"==typeof pt.requestAnimationFrame;let n=pt[e?"requestAnimationFrame":"setTimeout"],t=pt[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&t){const r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r);const o=t[Zone.__symbol__("OriginalDelegate")];o&&(t=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function NT(e){const n=()=>{!function TT(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(pt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,qh(e),e.isCheckStableRunning=!0,Gh(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),qh(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,o,i,s,a)=>{if(function RT(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(a))return t.invokeTask(o,i,s,a);try{return z_(e),t.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&n(),G_(e)}},onInvoke:(t,r,o,i,s,a,c)=>{try{return z_(e),t.invoke(o,i,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&n(),G_(e)}},onHasTask:(t,r,o,i)=>{t.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,qh(e),Gh(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,r,o,i)=>(t.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!dt.isInAngularZone())throw new w(909,!1)}static assertNotInAngularZone(){if(dt.isInAngularZone())throw new w(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,n,AT,$_,$_);try{return i.runTask(s,t,r)}finally{i.cancelTask(s)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}}const AT={};function Gh(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 qh(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function z_(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function G_(e){e._nesting--,Gh(e)}class q_{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Bt,this.onMicrotaskEmpty=new Bt,this.onStable=new Bt,this.onError=new Bt}run(n,t,r){return n.apply(t,r)}runGuarded(n,t,r){return n.apply(t,r)}runOutsideAngular(n){return n()}runTask(n,t,r,o){return n.apply(t,r)}}var Di=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Di||{});const W_={destroy(){}};function Y_(e,n){!n&&function qf(e){if(!Pm()&&!function n1(){return Hi}())throw new w(-203,!1)}();const t=n?.injector??te(zn);if(!function Ho(e){return"browser"===(e??te(zn)).get(Bo)}(t))return W_;_i("NgAfterNextRender");const r=t.get(nc),o=r.handler??=new X_,i=n?.phase??Di.MixedReadWrite,s=()=>{o.unregister(c),a()},a=t.get(gl).onDestroy(s),c=new Z_(t,i,()=>{s(),e()});return o.register(c),{destroy:s}}class Z_{constructor(n,t,r){this.phase=t,this.callbackFn=r,this.zone=n.get(dt),this.errorHandler=n.get(vo,null,{optional:!0})}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(n){this.errorHandler?.handleError(n)}}}class X_{constructor(){this.executingCallbacks=!1,this.buckets={[Di.EarlyRead]:new Set,[Di.Write]:new Set,[Di.MixedReadWrite]:new Set,[Di.Read]:new Set},this.deferredCallbacks=new Set}register(n){(this.executingCallbacks?this.deferredCallbacks:this.buckets[n.phase]).add(n)}unregister(n){this.buckets[n.phase].delete(n),this.deferredCallbacks.delete(n)}execute(){let n=!1;this.executingCallbacks=!0;for(const t of Object.values(this.buckets))for(const r of t)n=!0,r.invoke();this.executingCallbacks=!1;for(const t of this.deferredCallbacks)this.buckets[t.phase].add(t);return this.deferredCallbacks.clear(),n}destroy(){for(const n of Object.values(this.buckets))n.clear();this.deferredCallbacks.clear()}}let nc=(()=>{class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){const t=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const o of t)o();return!!this.handler?.execute()||t.length>0}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=De({token:e,providedIn:"root",factory:()=>new e})}return e})();function PT(e,n){const t=Kn(n,e),r=t[ie];!function kT(e,n){for(let t=n.length;t<e.blueprint.length;t++)n.push(e.blueprint[t])}(r,t);const o=t[Pt];null!==o&&null===t[vr]&&(t[vr]=Eh(o,t[Nn])),Wh(r,t,t[At])}function Wh(e,n,t){Ef(n);try{const r=e.viewQuery;null!==r&&jh(1,r,t);const o=e.template;null!==o&&S_(e,n,o,1,t),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&P_(e,n),e.staticViewQueries&&jh(2,e.viewQuery,t);const i=e.components;null!==i&&function LT(e,n){for(let t=0;t<n.length;t++)PT(e,n[t])}(n,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{n[xe]&=-5,xf()}}function ml(e,n,t){let r=t?e.styles:null,o=t?e.classes:null,i=0;if(null!==n)for(let s=0;s<n.length;s++){const a=n[s];"number"==typeof a?i=a:1==i?o=ge(o,a):2==i&&(r=ge(r,a+": "+n[++s]+";"))}t?e.styles=r:e.stylesWithoutHost=r,t?e.classes=o:e.classesWithoutHost=o}class J_ extends cl{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=Ke(n);return new rc(t,this.ngModule)}}function Q_(e){const n=[];for(const t in e){if(!e.hasOwnProperty(t))continue;const r=e[t];void 0!==r&&n.push({propName:Array.isArray(r)?r[0]:r,templateName:t})}return n}class UT{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,r){r=hu(r);const o=this.injector.get(n,Ih,r);return o!==Ih||t===Ih?o:this.parentInjector.get(n,t,r)}}class rc extends n_{get inputs(){const n=this.componentDef,t=n.inputTransforms,r=Q_(n.inputs);if(null!==t)for(const o of r)t.hasOwnProperty(o.propName)&&(o.transform=t[o.propName]);return r}get outputs(){return Q_(this.componentDef.outputs)}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function m1(e){return e.map(g1).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}create(n,t,r,o){let i=(o=o||this.ngModule)instanceof Zn?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new UT(n,i):n,a=s.get(o_,null);if(null===a)throw new w(407,!1);const f={rendererFactory:a,sanitizer:s.get(yA,null),inlineEffectRunner:null,afterRenderEventManager:s.get(nc,null),changeDetectionScheduler:s.get(Zv,null)},y=a.createRenderer(null,this.componentDef),_=this.componentDef.selectors[0][0]||"div",b=r?function HA(e,n,t,r){const i=r.get(D_,!1)||t===gr.ShadowDom,s=e.selectRootElement(n,i);return function $A(e){A_(e)}(s),s}(y,r,this.componentDef.encapsulation,s):Ku(y,_,function VT(e){const n=e.toLowerCase();return"svg"===n?sy:"math"===n?"math":null}(_));let S=512;this.componentDef.signals?S|=4096:this.componentDef.onPush||(S|=16);let F=null;null!==b&&(F=Eh(b,s,!0));const z=kh(0,null,null,1,0,null,null,null,null,null,null),P=fl(null,z,null,S,null,null,f,y,s,null,F);let fe,Me;Ef(P);try{const ke=this.componentDef;let wt,oi=null;ke.findHostDirectiveDefs?(wt=[],oi=new Map,ke.findHostDirectiveDefs(ke,wt,oi),wt.push(ke)):wt=[ke];const Kd=function BT(e,n){const t=e[ie],r=Ve;return e[r]=n,ms(t,r,2,"#host",null)}(P,b),i5=function HT(e,n,t,r,o,i,s){const a=o[ie];!function $T(e,n,t,r){for(const o of e)n.mergedAttrs=xa(n.mergedAttrs,o.hostAttrs);null!==n.mergedAttrs&&(ml(n,n.mergedAttrs,!0),null!==t&&Lv(r,t,n))}(r,e,n,s);let c=null;null!==n&&(c=Eh(n,o[Nn]));const u=i.rendererFactory.createRenderer(n,t);let d=16;t.signals?d=4096:t.onPush&&(d=64);const f=fl(o,I_(t),null,d,o[e.index],e,i,u,null,null,c);return a.firstCreatePass&&Vh(a,e,r.length-1),hl(o,f),o[e.index]=f}(Kd,b,ke,wt,P,f,y);Me=Na(z,Ve),b&&function GT(e,n,t,r){if(r)sf(e,t,["ng-version","17.1.2"]);else{const{attrs:o,classes:i}=function y1(e){const n=[],t=[];let r=1,o=2;for(;r<e.length;){let i=e[r];if("string"==typeof i)2===o?""!==i&&n.push(i,e[++r]):8===o&&t.push(i);else{if(!mr(o))break;o=i}r++}return{attrs:n,classes:t}}(n.selectors[0]);o&&sf(e,t,o),i&&i.length>0&&kv(e,t,i.join(" "))}}(y,ke,b,r),void 0!==t&&function qT(e,n,t){const r=e.projection=[];for(let o=0;o<n.length;o++){const i=t[o];r.push(null!=i?Array.from(i):null)}}(Me,this.ngContentSelectors,t),fe=function zT(e,n,t,r,o,i){const s=_t(),a=o[ie],c=Rn(s,o);R_(a,o,s,t,null,r);for(let d=0;d<t.length;d++)bn(gi(o,a,s.directiveStart+d,s),o);O_(a,o,s),c&&bn(c,o);const u=gi(o,a,s.directiveStart+s.componentOffset,s);if(e[At]=o[At]=u,null!==i)for(const d of i)d(u,n);return Oh(a,s,e),u}(i5,ke,wt,oi,P,[WT]),Wh(z,P,null)}finally{xf()}return new jT(this.componentType,fe,gs(Me,P),P,Me)}}class jT extends dA{constructor(n,t,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.previousInputValues=null,this.instance=t,this.hostView=this.changeDetectorRef=new ec(o,void 0,!1),this.componentType=n}setInput(n,t){const r=this._tNode.inputs;let o;if(null!==r&&(o=r[n])){if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),t))return;const i=this._rootLView;Bh(i[ie],i,o,n,t),this.previousInputValues.set(n,t),Qa(Kn(this._tNode.index,i))}}get injector(){return new en(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}function WT(){const e=_t();wu(k()[ie],e)}function gt(e){let n=function e0(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0;const r=[e];for(;n;){let o;if(_r(e))o=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new w(903,!1);o=n.\u0275dir}if(o){if(t){r.push(o);const s=e;s.inputs=yl(e.inputs),s.inputTransforms=yl(e.inputTransforms),s.declaredInputs=yl(e.declaredInputs),s.outputs=yl(e.outputs);const a=o.hostBindings;a&&JT(e,a);const c=o.viewQuery,u=o.contentQueries;if(c&&ZT(e,c),u&&XT(e,u),KT(e,o),Fe(e.outputs,o.outputs),_r(o)&&o.data.animation){const d=e.data;d.animation=(d.animation||[]).concat(o.data.animation)}}const i=o.features;if(i)for(let s=0;s<i.length;s++){const a=i[s];a&&a.ngInherit&&a(e),a===gt&&(t=!1)}}n=Object.getPrototypeOf(n)}!function YT(e){let n=0,t=null;for(let r=e.length-1;r>=0;r--){const o=e[r];o.hostVars=n+=o.hostVars,o.hostAttrs=xa(o.hostAttrs,t=xa(t,o.hostAttrs))}}(r)}function KT(e,n){for(const t in n.inputs){if(!n.inputs.hasOwnProperty(t)||e.inputs.hasOwnProperty(t))continue;const r=n.inputs[t];if(void 0!==r&&(e.inputs[t]=r,e.declaredInputs[t]=n.declaredInputs[t],null!==n.inputTransforms)){const o=Array.isArray(r)?r[0]:r;if(!n.inputTransforms.hasOwnProperty(o))continue;e.inputTransforms??={},e.inputTransforms[o]=n.inputTransforms[o]}}}function yl(e){return e===Or?{}:e===st?[]:e}function ZT(e,n){const t=e.viewQuery;e.viewQuery=t?(r,o)=>{n(r,o),t(r,o)}:n}function XT(e,n){const t=e.contentQueries;e.contentQueries=t?(r,o,i)=>{n(r,o,i),t(r,o,i)}:n}function JT(e,n){const t=e.hostBindings;e.hostBindings=t?(r,o)=>{n(r,o),t(r,o)}:n}function vs(e,n){return!n||null===n.firstChild||Gu(e)}function uc(e,n,t,r=!0){const o=n[ie];if(function CI(e,n,t,r){const o=zt+r,i=t.length;r>0&&(t[o-1][yr]=n),r<i-zt?(n[yr]=t[o],jy(t,zt+r,n)):(t.push(n),n[yr]=null),n[$t]=t;const s=n[Sa];null!==s&&t!==s&&function bI(e,n){const t=e[qi];n[Ut]!==n[$t][$t][Ut]&&(e[xe]|=uf.HasTransplantedViews),null===t?e[qi]=[n]:t.push(n)}(s,n);const a=n[Fr];null!==a&&a.insertView(e),yf(n),n[xe]|=128}(o,n,e,t),r){const s=ch(t,e),a=n[je],c=Zu(a,e[Pr]);null!==c&&function DI(e,n,t,r,o,i){r[Pt]=o,r[_n]=n,Qu(e,r,t,1,o,i)}(o,e[_n],a,n,c,s)}const i=n[vr];null!==i&&null!==i.firstChild&&(i.firstChild=null)}let Dr=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=xN}return e})();function xN(){return function g0(e,n){let t;const r=n[e.index];return wn(r)?t=r:(t=F_(r,n,null,e),n[e.index]=t,hl(n,t)),m0(t,n,e,r),new h0(t,e,n)}(_t(),k())}const MN=Dr,h0=class extends MN{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return gs(this._hostTNode,this._hostLView)}get injector(){return new en(this._hostTNode,this._hostLView)}get parentInjector(){const n=Mu(this._hostTNode,this._hostLView);if(Af(n)){const t=ka(n,this._hostLView),r=Pa(n);return new en(t[ie].data[r+8],t)}return new en(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=p0(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-zt}createEmbeddedView(n,t,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=n.createEmbeddedViewImpl(t||{},i,null);return this.insertImpl(a,o,vs(this._hostTNode,null)),a}createComponent(n,t,r,o,i){const s=n&&!function La(e){return"function"==typeof e}(n);let a;if(s)a=t;else{const b=t||{};a=b.index,r=b.injector,o=b.projectableNodes,i=b.environmentInjector||b.ngModuleRef}const c=s?n:new rc(Ke(n)),u=r||this.parentInjector;if(!i&&null==c.ngModule){const S=(s?u:this.parentInjector).get(Zn,null);S&&(i=S)}Ke(c.componentType??{});const _=c.create(u,o,null,i);return this.insertImpl(_.hostView,a,vs(this._hostTNode,null)),_}insert(n,t){return this.insertImpl(n,t,!0)}insertImpl(n,t,r){const o=n._lView;if(function O1(e){return wn(e[$t])}(o)){const a=this.indexOf(n);if(-1!==a)this.detach(a);else{const c=o[$t],u=new h0(c,c[_n],c[$t]);u.detach(u.indexOf(n))}}const i=this._adjustIndex(t),s=this._lContainer;return uc(s,o,i,r),n.attachToViewContainerRef(),jy(ep(s),i,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=p0(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),r=$a(this._lContainer,t);r&&(Au(ep(this._lContainer),t),Yu(r[ie],r))}detach(n){const t=this._adjustIndex(n,-1),r=$a(this._lContainer,t);return r&&null!=Au(ep(this._lContainer),t)?new ec(r):null}_adjustIndex(n,t=0){return n??this.length+t}};function p0(e){return e[8]}function ep(e){return e[8]||(e[8]=[])}let m0=function v0(e,n,t,r){if(e[Pr])return;let o;o=8&t.type?vt(r):function SN(e,n){const t=e[je],r=t.createComment(""),o=Rn(n,e);return vi(t,Zu(t,o),r,function SI(e,n){return e.nextSibling(n)}(t,o),!1),r}(n,t),e[Pr]=o},tp=()=>!1;function Hr(e,n,t){return e[n]=t}function Zt(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function Gt(e,n,t,r,o,i,s,a){const c=k(),u=tt(),d=e+Ve,f=u.firstCreatePass?function NN(e,n,t,r,o,i,s,a,c){const u=n.consts,d=ms(n,e,4,s||null,Lr(u,a));Lh(n,t,d,Lr(u,c)),wu(n,d);const f=d.tView=kh(2,d,r,o,i,n.directiveRegistry,n.pipeRegistry,null,n.schemas,u,null);return null!==n.queries&&(n.queries.template(n,d),f.queries=n.queries.embeddedTView(d)),d}(d,u,c,n,t,r,o,i,s):u.data[d];Vr(f,!1);const y=_0(u,c,f,e);Du()&&Xu(u,c,y,f),bn(y,c);const _=F_(y,c,y,f);return c[d]=_,hl(c,_),function y0(e,n,t){return tp(e,n,t)}(_,f,c),vu(f)&&Fh(u,c,f),null!=s&&Ph(c,f,a),Gt}let _0=function D0(e,n,t,r){return Lo(!0),n[je].createComment("")};function $r(e,n,t,r){const o=k();return Zt(o,Ur(),n)&&(tt(),Br(Ft(),o,e,n,t,r)),$r}function Ms(e,n,t,r){return Zt(e,Ur(),t)?n+se(t)+r:Be}function Il(e,n){return e<<17|n<<2}function Wo(e){return e>>17&32767}function lp(e){return 2|e}function bi(e){return(131068&e)>>2}function dp(e,n){return-131069&e|n<<2}function fp(e){return 1|e}function J0(e,n,t,r){const o=e[t+1],i=null===n;let s=r?Wo(o):bi(o),a=!1;for(;0!==s&&(!1===a||i);){const u=e[s+1];gR(e[s],n)&&(a=!0,e[s+1]=r?fp(u):lp(u)),s=r?Wo(u):bi(u)}a&&(e[t+1]=r?lp(o):fp(o))}function gR(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&os(e,n)>=0}function Ye(e,n,t){const r=k();return Zt(r,Ur(),n)&&Qn(tt(),Ft(),r,e,n,r[je],t,!1),Ye}function hp(e,n,t,r,o){const s=o?"class":"style";Bh(e,t,n.inputs[s],s,r)}function Wt(e,n){return function wr(e,n,t,r){const o=k(),i=tt(),s=function go(e){const n=Ne.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}(2);i.firstUpdatePass&&function aD(e,n,t,r){const o=e.data;if(null===o[t+1]){const i=o[Cn()],s=function sD(e,n){return n>=e.expandoStartIndex}(e,t);(function dD(e,n){return 0!=(e.flags&(n?8:16))})(i,r)&&null===n&&!s&&(n=!1),n=function ER(e,n,t,r){const o=function Cf(e){const n=Ne.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let i=r?n.residualClasses:n.residualStyles;if(null===o)0===(r?n.classBindings:n.styleBindings)&&(t=pc(t=pp(null,e,n,t,r),n.attrs,r),i=null);else{const s=n.directiveStylingLast;if(-1===s||e[s]!==o)if(t=pp(o,e,n,t,r),null===i){let c=function xR(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==bi(r))return e[Wo(r)]}(e,n,r);void 0!==c&&Array.isArray(c)&&(c=pp(null,e,n,c[1],r),c=pc(c,n.attrs,r),function MR(e,n,t,r){e[Wo(t?n.classBindings:n.styleBindings)]=r}(e,n,r,c))}else i=function SR(e,n,t){let r;const o=n.directiveEnd;for(let i=1+n.directiveStylingLast;i<o;i++)r=pc(r,e[i].hostAttrs,t);return pc(r,n.attrs,t)}(e,n,r)}return void 0!==i&&(r?n.residualClasses=i:n.residualStyles=i),t}(o,i,n,r),function hR(e,n,t,r,o,i){let s=i?n.classBindings:n.styleBindings,a=Wo(s),c=bi(s);e[r]=t;let d,u=!1;if(Array.isArray(t)?(d=t[1],(null===d||os(t,d)>0)&&(u=!0)):d=t,o)if(0!==c){const y=Wo(e[a+1]);e[r+1]=Il(y,a),0!==y&&(e[y+1]=dp(e[y+1],r)),e[a+1]=function dR(e,n){return 131071&e|n<<17}(e[a+1],r)}else e[r+1]=Il(a,0),0!==a&&(e[a+1]=dp(e[a+1],r)),a=r;else e[r+1]=Il(c,0),0===a?a=r:e[c+1]=dp(e[c+1],r),c=r;u&&(e[r+1]=lp(e[r+1])),J0(e,d,r,!0),J0(e,d,r,!1),function pR(e,n,t,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof n&&os(i,n)>=0&&(t[r+1]=fp(t[r+1]))}(n,d,e,r,i),s=Il(a,c),i?n.classBindings=s:n.styleBindings=s}(o,i,n,t,s,r)}}(i,e,s,r),n!==Be&&Zt(o,s,n)&&function uD(e,n,t,r,o,i,s,a){if(!(3&n.type))return;const c=e.data,u=c[a+1],d=function fR(e){return 1==(1&e)}(u)?lD(c,n,t,o,bi(u),s):void 0;Al(d)||(Al(i)||function lR(e){return 2==(2&e)}(u)&&(i=lD(c,null,t,o,a,s)),function TI(e,n,t,r,o){if(n)o?e.addClass(t,r):e.removeClass(t,r);else{let i=-1===r.indexOf("-")?void 0:zo.DashCase;null==o?e.removeStyle(t,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=zo.Important),e.setStyle(t,r,o,i))}}(r,s,Ta(Cn(),t),o,i))}(i,i.data[Cn()],o,o[je],e,o[s+1]=function NR(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=ve(Go(e)))),e}(n,t),r,s)}(e,n,null,!0),Wt}function pp(e,n,t,r,o){let i=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<s&&(i=n[a],r=pc(r,i.hostAttrs,o),i!==e);)a++;return null!==e&&(t.directiveStylingLast=a),r}function pc(e,n,t){const r=t?1:2;let o=-1;if(null!==n)for(let i=0;i<n.length;i++){const s=n[i];"number"==typeof s?o=s:o===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Yn(e,s,!!t||n[++i]))}return void 0===e?null:e}function lD(e,n,t,r,o,i){const s=null===n;let a;for(;o>0;){const c=e[o],u=Array.isArray(c),d=u?c[1]:c,f=null===d;let y=t[o+1];y===Be&&(y=f?st:void 0);let _=f?kf(y,r):d===r?y:void 0;if(u&&!Al(_)&&(_=kf(c,r)),Al(_)&&(a=_,s))return a;const b=e[o+1];o=s?Wo(b):bi(b)}if(null!==n){let c=i?n.residualClasses:n.residualStyles;null!=c&&(a=kf(c,r))}return a}function Al(e){return void 0!==e}function Q(e,n,t,r){const o=k(),i=tt(),s=Ve+e,a=o[je],c=i.firstCreatePass?function eO(e,n,t,r,o,i){const s=n.consts,c=ms(n,e,2,r,Lr(s,o));return Lh(n,t,c,Lr(s,i)),null!==c.attrs&&ml(c,c.attrs,!1),null!==c.mergedAttrs&&ml(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(s,i,o,n,t,r):i.data[s],u=gD(i,o,c,a,n,e);o[s]=u;const d=vu(c);return Vr(c,!0),Lv(a,u,c),32!=(32&c.flags)&&Du()&&Xu(i,o,u,c),0===function P1(){return Ne.lFrame.elementDepthCount}()&&bn(u,o),function k1(){Ne.lFrame.elementDepthCount++}(),d&&(Fh(i,o,c),Oh(i,c,o)),null!==r&&Ph(o,c),Q}function oe(){let e=_t();_f()?function Df(){Ne.lFrame.isParent=!1}():(e=e.parent,Vr(e,!1));const n=e;(function V1(e){return Ne.skipHydrationRootTNode===e})(n)&&function H1(){Ne.skipHydrationRootTNode=null}(),function L1(){Ne.lFrame.elementDepthCount--}();const t=tt();return t.firstCreatePass&&(wu(t,e),lf(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function tS(e){return 0!=(8&e.flags)}(n)&&hp(t,n,k(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function nS(e){return 0!=(16&e.flags)}(n)&&hp(t,n,k(),n.stylesWithoutHost,!1),oe}function hn(e,n,t,r){return Q(e,n,t,r),oe(),hn}let gD=(e,n,t,r,o,i)=>(Lo(!0),Ku(r,o,function xy(){return Ne.lFrame.currentNamespace}()));function cn(){return k()}const Ei=void 0;var aO=["en",[["a","p"],["AM","PM"],Ei],[["AM","PM"],Ei,Ei],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ei,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Ei,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Ei,"{1} 'at' {0}",Ei],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function sO(e){const t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===r?1:5}];let Ps={};function Fn(e){const n=function cO(e){return e.toLowerCase().replace(/_/g,"-")}(e);let t=wD(n);if(t)return t;const r=n.split("-")[0];if(t=wD(r),t)return t;if("en"===r)return aO;throw new w(701,!1)}function wD(e){return e in Ps||(Ps[e]=pt.ng&&pt.ng.common&&pt.ng.common.locales&&pt.ng.common.locales[e]),Ps[e]}var Tt=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Tt||{});const ks="en-US";let CD=ks;function Dc(e){return!!e&&"function"==typeof e.then}function WD(e){return!!e&&"function"==typeof e.subscribe}function Ze(e,n,t,r){const o=k(),i=tt(),s=_t();return function YD(e,n,t,r,o,i,s){const a=vu(r),u=e.firstCreatePass&&function L_(e){return e.cleanup||(e.cleanup=[])}(e),d=n[At],f=function k_(e){return e[$i]||(e[$i]=[])}(n);let y=!0;if(3&r.type||s){const S=Rn(r,n),F=s?s(S):S,z=f.length,P=s?Me=>s(vt(Me[r.index])):r.index;let fe=null;if(!s&&a&&(fe=function n2(e,n,t,r){const o=e.cleanup;if(null!=o)for(let i=0;i<o.length-1;i+=2){const s=o[i];if(s===t&&o[i+1]===r){const a=n[$i],c=o[i+2];return a.length>c?a[c]:null}"string"==typeof s&&(i+=2)}return null}(e,n,o,r.index)),null!==fe)(fe.__ngLastListenerFn__||fe).__ngNextListenerFn__=i,fe.__ngLastListenerFn__=i,y=!1;else{i=XD(r,n,d,i,!1);const Me=t.listen(F,o,i);f.push(i,Me),u&&u.push(o,P,z,z+1)}}else i=XD(r,n,d,i,!1);const _=r.outputs;let b;if(y&&null!==_&&(b=_[o])){const S=b.length;if(S)for(let F=0;F<S;F+=2){const ke=n[b[F]][b[F+1]].subscribe(i),wt=f.length;f.push(i,ke),u&&u.push(o,r.index,wt,-(wt+1))}}}(i,o,o[je],s,e,n,r),Ze}function ZD(e,n,t,r){try{return kr(6,n,t),!1!==t(r)}catch(o){return pl(e,o),!1}finally{kr(7,n,t)}}function XD(e,n,t,r,o){return function i(s){if(s===Function)return r;Qa(e.componentOffset>-1?Kn(e.index,n):n);let c=ZD(n,t,r,s),u=i.__ngNextListenerFn__;for(;u;)c=ZD(n,t,u,s)&&c,u=u.__ngNextListenerFn__;return o&&!1===c&&s.preventDefault(),c}}function ze(e=1){return function K1(e){return(Ne.lFrame.contextLView=function ly(e,n){for(;e>0;)n=n[zi],e--;return n}(e,Ne.lFrame.contextLView))[At]}(e)}function Ls(e,n,t){return Fl(e,"",n,"",t),Ls}function Fl(e,n,t,r,o){const i=k(),s=Ms(i,n,t,r);return s!==Be&&Qn(tt(),Ft(),i,e,s,i[je],o,!1),Fl}Symbol;let Do=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=u2}return e})();const a2=Do,c2=class extends a2{constructor(n,t,r){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t)}createEmbeddedViewImpl(n,t,r){const o=function cc(e,n,t,r){const o=n.tView,a=fl(e,o,t,4096&e[xe]?4096:16,null,n,null,null,null,r?.injector??null,r?.dehydratedView??null);a[Sa]=e[n.index];const u=e[Fr];return null!==u&&(a[Fr]=u.createEmbeddedView(o)),Wh(o,a,t),a}(this._declarationLView,this._declarationTContainer,n,{injector:t,dehydratedView:r});return new ec(o)}};function u2(){return function Pl(e,n){return 4&e.type?new c2(n,e,gs(e,n)):null}(_t(),k())}function Pn(e){return Wi(function $1(){return Ne.lFrame.contextLView}(),Ve+e)}function pe(e,n=""){const t=k(),r=tt(),o=e+Ve,i=r.firstCreatePass?ms(r,o,1,n,null):r.data[o],s=bw(r,t,i,n,e);t[o]=s,Du()&&Xu(r,t,s,i),Vr(i,!1)}let bw=(e,n,t,r,o)=>(Lo(!0),function Wu(e,n){return e.createText(n)}(n[je],r));function qr(e){return xi("",e,""),qr}function xi(e,n,t){const r=k(),o=Ms(r,e,n,t);return o!==Be&&function _o(e,n,t){const r=Ta(n,e);!function bv(e,n,t){e.setValue(n,t)}(e[je],r,t)}(r,Cn(),o),xi}function Ap(e,n,t,r,o){if(e=H(e),Array.isArray(e))for(let i=0;i<e.length;i++)Ap(e[i],n,t,r,o);else{const i=tt(),s=k(),a=_t();let c=yi(e)?e:H(e.provide);const u=Xy(e),d=1048575&a.providerIndexes,f=a.directiveStart,y=a.providerIndexes>>20;if(yi(e)||!e.multi){const _=new Fa(u,o,ee),b=Np(c,n,o?d:d+y,f);-1===b?(Rf(xu(a,s),i,c),Tp(i,e,n.length),n.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),t.push(_),s.push(_)):(t[b]=_,s[b]=_)}else{const _=Np(c,n,d+y,f),b=Np(c,n,d,d+y),F=b>=0&&t[b];if(o&&!F||!o&&!(_>=0&&t[_])){Rf(xu(a,s),i,c);const z=function R2(e,n,t,r,o){const i=new Fa(e,t,ee);return i.multi=[],i.index=n,i.componentProviders=0,Rw(i,o,r&&!t),i}(o?N2:T2,t.length,o,r,u);!o&&F&&(t[b].providerFactory=z),Tp(i,e,n.length,0),n.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),t.push(z),s.push(z)}else Tp(i,e,_>-1?_:b,Rw(t[o?b:_],u,!o&&r));!o&&r&&F&&t[b].componentProviders++}}}function Tp(e,n,t,r){const o=yi(n),i=function FS(e){return!!e.useClass}(n);if(o||i){const c=(i?H(n.useClass):n).prototype.ngOnDestroy;if(c){const u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&n.multi){const d=u.indexOf(t);-1===d?u.push(t,[r,c]):u[d+1].push(r,c)}else u.push(t,c)}}}function Rw(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function Np(e,n,t,r){for(let o=t;o<r;o++)if(n[o]===e)return o;return-1}function T2(e,n,t,r){return Rp(this.multi,[])}function N2(e,n,t,r){const o=this.multi;let i;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=gi(t,t[ie],this.providerFactory.index,r);i=a.slice(0,s),Rp(o,i);for(let c=s;c<a.length;c++)i.push(a[c])}else i=[],Rp(o,i);return i}function Rp(e,n){for(let t=0;t<e.length;t++)n.push((0,e[t])());return n}function kt(e,n=[]){return t=>{t.providersResolver=(r,o)=>function A2(e,n,t){const r=tt();if(r.firstCreatePass){const o=_r(e);Ap(t,r.data,r.blueprint,o,!0),Ap(n,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,n)}}class Mi{}class Ow{}class Op extends Mi{constructor(n,t,r){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new J_(this);const o=vn(n);this._bootstrapComponents=Xn(o.bootstrap),this._r3Injector=nv(n,t,[{provide:Mi,useValue:this},{provide:cl,useValue:this.componentFactoryResolver},...r],ve(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Fp extends Ow{constructor(n){super(),this.moduleType=n}create(n){return new Op(this.moduleType,n,[])}}class Fw extends Mi{constructor(n){super(),this.componentFactoryResolver=new J_(this),this.instance=null;const t=new ss([...n.providers,{provide:Mi,useValue:this},{provide:cl,useValue:this.componentFactoryResolver}],n.parent||Uu(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Pp(e,n,t=null){return new Fw({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}let P2=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const r=Wy(0,t.type),o=r.length>0?Pp([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,o)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=De({token:e,providedIn:"environment",factory:()=>new e(Ee(Zn))})}return e})();function Pw(e){_i("NgStandalone"),e.getStandaloneInjector=n=>n.get(P2).getOrCreateStandaloneInjector(e)}function wc(e,n){const t=e[n];return t===Be?void 0:t}function qw(e,n,t,r,o,i,s){const a=n+t;return function wi(e,n,t,r){const o=Zt(e,n,t);return Zt(e,n+1,r)||o}(e,a,o,i)?Hr(e,a+2,s?r.call(s,o,i):r(o,i)):wc(e,a+2)}function Vl(e,n){const t=tt();let r;const o=e+Ve;t.firstCreatePass?(r=function tF(e,n){if(n)for(let t=n.length-1;t>=0;t--){const r=n[t];if(e===r.name)return r}}(n,t.pipeRegistry),t.data[o]=r,r.onDestroy&&(t.destroyHooks??=[]).push(o,r.onDestroy)):r=t.data[o];const i=r.factory||(r.factory=fi(r.type)),a=Hn(ee);try{const c=Eu(!1),u=i();return Eu(c),function y2(e,n,t,r){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=r}(t,k(),o,u),u}finally{Hn(a)}}function Lp(e,n,t){const r=e+Ve,o=k(),i=Wi(o,r);return Cc(o,r)?function Gw(e,n,t,r,o,i){const s=n+t;return Zt(e,s,o)?Hr(e,s+1,i?r.call(i,o):r(o)):wc(e,s+1)}(o,On(),n,i.transform,t,i):i.transform(t)}function Cc(e,n){return e[ie].data[n].pure}let fC=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();class SF{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let hC=(()=>{class e{compileModuleSync(t){return new Fp(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const r=this.compileModuleSync(t),i=Xn(vn(t).declarations).reduce((s,a)=>{const c=Ke(a);return c&&s.push(new rc(c)),s},[]);return new SF(r,i)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),js=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new An(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const vC=new de(""),Bl=new de("");let Gp,$p=(()=>{class e{constructor(t,r,o){this._ngZone=t,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Gp||(function eP(e){Gp=e}(o),o.addToWindow(r)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{dt.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb()}});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),t()},r)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:o})}whenStable(t,r,o){if(o&&!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,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,o){return[]}static#e=this.\u0275fac=function(r){return new(r||e)(Ee(dt),Ee(zp),Ee(Bl))};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac})}return e})(),zp=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,r){this._applications.set(t,r)}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,r=!0){return Gp?.findTestabilityInTree(this,t,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const qp=new de("");let Wp=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),this.appInits=te(qp,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const o of this.appInits){const i=o();if(Dc(i))t.push(i);else if(WD(i)){const s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});t.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(o=>{this.reject(o)}),0===t.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Kp=new de("");function wC(e,n){return Array.isArray(n)?n.reduce(wC,e):{...e,...n}}let Si=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=te(v_),this.afterRenderEffectManager=te(nc),this.componentTypes=[],this.components=[],this.isStable=te(js).hasPendingTasks.pipe(m(t=>!t)),this._injector=te(Zn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,r){const o=t instanceof n_;if(!this._injector.get(Wp).done)throw!o&&function Po(e){const n=Ke(e)||Qt(e)||fn(e);return null!==n&&n.standalone}(t),new w(405,!1);let s;s=o?t:this._injector.get(cl).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function nP(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Mi),u=s.create(zn.NULL,[],r||s.selector,a),d=u.location.nativeElement,f=u.injector.get(vC,null);return f?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),Hl(this.components,u),f?.unregisterApplication(d)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new w(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this.internalErrorHandler(t)}finally{try{this.afterRenderEffectManager.execute()}catch(t){this.internalErrorHandler(t)}this._runningTick=!1}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;Hl(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(Kp,[]);[...this._bootstrapListeners,...r].forEach(o=>o(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Hl(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new w(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Hl(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}let oP=(()=>{class e{constructor(){this.zone=te(dt),this.applicationRef=te(Si)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function iP(){const e=te(dt),n=te(vo);return t=>e.runOutsideAngular(()=>n.handleError(t))}let aP=(()=>{class e{constructor(){this.subscription=new un,this.initialized=!1,this.zone=te(dt),this.pendingTasks=te(js)}initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{dt.assertNotInAngularZone(),queueMicrotask(()=>{null!==t&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{dt.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const wo=new de("",{providedIn:"root",factory:()=>te(wo,Qe.Optional|Qe.SkipSelf)||function cP(){return typeof $localize<"u"&&$localize.locale||ks}()}),Yp=new de("");let xC=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const o=function OT(e="zone.js",n){return"noop"===e?new q_:"zone.js"===e?new dt(n):e}(r?.ngZone,function EC(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function F2(e,n,t){return new Op(e,n,t)}(t.moduleType,this.injector,function bC(e){return[{provide:dt,useFactory:e},{provide:mi,multi:!0,useFactory:()=>{const n=te(oP,{optional:!0});return()=>n.initialize()}},{provide:mi,multi:!0,useFactory:()=>{const n=te(aP);return()=>{n.initialize()}}},{provide:v_,useFactory:iP}]}(()=>o)),s=i.injector.get(vo,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:c=>{s.handleError(c)}});i.onDestroy(()=>{Hl(this._modules,i),a.unsubscribe()})}),function DC(e,n,t){try{const r=t();return Dc(r)?r.catch(o=>{throw n.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}(s,o,()=>{const a=i.injector.get(Wp);return a.runInitializers(),a.donePromise.then(()=>(function bD(e){Bn(e,"Expected localeId to be defined"),"string"==typeof e&&(CD=e.toLowerCase().replace(/_/g,"-"))}(i.injector.get(wo,ks)||ks),this._moduleDoBootstrap(i),i))})})}bootstrapModule(t,r=[]){const o=wC({},r);return function tP(e,n,t){const r=new Fp(t);return Promise.resolve(r)}(0,0,t).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(t){const r=t.injector.get(Si);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!t.instance.ngDoBootstrap)throw new w(-403,!1);t.instance.ngDoBootstrap(r)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new w(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(Yp,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(r){return new(r||e)(Ee(zn))};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),Ko=null;const MC=new de("");function SC(e,n,t=[]){const r=`Platform: ${n}`,o=new de(r);return(i=[])=>{let s=Zp();if(!s||s.injector.get(MC,!1)){const a=[...t,...i,{provide:o,useValue:!0}];e?e(a):function dP(e){if(Ko&&!Ko.get(MC,!1))throw new w(400,!1);(function _C(){!function ru(e){no=e}(()=>{throw new w(600,!1)})})(),Ko=e;const n=e.get(xC);(function AC(e){e.get(ov,null)?.forEach(t=>t())})(e)}(function IC(e=[],n){return zn.create({name:n,providers:[{provide:Hf,useValue:"platform"},{provide:Yp,useValue:new Set([()=>Ko=null])},...e]})}(a,r))}return function fP(e){const n=Zp();if(!n)throw new w(401,!1);return n}()}}function Zp(){return Ko?.get(xC)??null}const vP=SC(null,"core",[]);let _P=(()=>{class e{constructor(t){}static#e=this.\u0275fac=function(r){return new(r||e)(Ee(Si))};static#t=this.\u0275mod=fo({type:e});static#n=this.\u0275inj=Rr({})}return e})();function Hs(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let QC=null;function Yo(){return QC}class YP{}const er=new de("");let rg=(()=>{class e{historyGo(t){throw new Error("")}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=De({token:e,factory:()=>te(XP),providedIn:"platform"})}return e})();const ZP=new de("");let XP=(()=>{class e extends rg{constructor(){super(),this._doc=te(er),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Yo().getBaseHref(this._doc)}onPopState(t){const r=Yo().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){const r=Yo().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.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,r,o){this._history.pushState(t,r,o)}replaceState(t,r,o){this._history.replaceState(t,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=De({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function og(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 eb(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 Co(e){return e&&"?"!==e[0]?"?"+e:e}let Ai=(()=>{class e{historyGo(t){throw new Error("")}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=De({token:e,factory:()=>te(nb),providedIn:"root"})}return e})();const tb=new de("");let nb=(()=>{class e extends Ai{constructor(t,r){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??te(er).location?.origin??""}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 og(this._baseHref,t)}path(t=!1){const r=this._platformLocation.pathname+Co(this._platformLocation.search),o=this._platformLocation.hash;return o&&t?`${r}${o}`:r}pushState(t,r,o,i){const s=this.prepareExternalUrl(o+Co(i));this._platformLocation.pushState(t,r,s)}replaceState(t,r,o,i){const s=this.prepareExternalUrl(o+Co(i));this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static#e=this.\u0275fac=function(r){return new(r||e)(Ee(rg),Ee(tb,8))};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),JP=(()=>{class e extends Ai{constructor(t,r){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}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){const r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(t){const r=og(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,o,i){let s=this.prepareExternalUrl(o+Co(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,r,s)}replaceState(t,r,o,i){let s=this.prepareExternalUrl(o+Co(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static#e=this.\u0275fac=function(r){return new(r||e)(Ee(rg),Ee(tb,8))};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac})}return e})(),Ic=(()=>{class e{constructor(t){this._subject=new Bt,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const r=this._locationStrategy.getBaseHref();this._basePath=function tk(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(eb(rb(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+Co(r))}normalize(t){return e.stripTrailingSlash(function ek(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,rb(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",o=null){this._locationStrategy.pushState(o,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Co(r)),o)}replaceState(t,r="",o=null){this._locationStrategy.replaceState(o,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Co(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{const r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(o=>o(t,r))}subscribe(t,r,o){return this._subject.subscribe({next:t,error:r,complete:o})}static#e=this.normalizeQueryParams=Co;static#t=this.joinWithSlash=og;static#n=this.stripTrailingSlash=eb;static#r=this.\u0275fac=function(r){return new(r||e)(Ee(Ai))};static#o=this.\u0275prov=De({token:e,factory:()=>function QP(){return new Ic(Ee(Ai))}(),providedIn:"root"})}return e})();function rb(e){return e.replace(/\/index.html$/,"")}var Ln=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(Ln||{}),St=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(St||{}),tr=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(tr||{}),Kt=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e.Infinity=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}(Kt||{});function Jl(e,n){return dr(Fn(e)[Tt.DateFormat],n)}function Ql(e,n){return dr(Fn(e)[Tt.TimeFormat],n)}function ed(e,n){return dr(Fn(e)[Tt.DateTimeFormat],n)}function lr(e,n){const t=Fn(e),r=t[Tt.NumberSymbols][n];if(typeof r>"u"){if(n===Kt.CurrencyDecimal)return t[Tt.NumberSymbols][Kt.Decimal];if(n===Kt.CurrencyGroup)return t[Tt.NumberSymbols][Kt.Group]}return r}function ib(e){if(!e[Tt.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[Tt.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function dr(e,n){for(let t=n;t>-1;t--)if(typeof e[t]<"u")return e[t];throw new Error("Locale data API: locale data undefined")}function sg(e){const[n,t]=e.split(":");return{hours:+n,minutes:+t}}const gk=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,td={},mk=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var bo=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(bo||{}),ft=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(ft||{}),ht=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(ht||{});function yk(e,n,t,r){let o=function Mk(e){if(cb(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[o,i=1,s=1]=e.split("-").map(a=>+a);return nd(o,i-1,s)}const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let r;if(r=e.match(gk))return function Sk(e){const n=new Date(0);let t=0,r=0;const o=e[8]?n.setUTCFullYear:n.setFullYear,i=e[8]?n.setUTCHours:n.setHours;e[9]&&(t=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(n,Number(e[1]),Number(e[2])-1,Number(e[3]));const s=Number(e[4]||0)-t,a=Number(e[5]||0)-r,c=Number(e[6]||0),u=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return i.call(n,s,a,c,u),n}(r)}const n=new Date(e);if(!cb(n))throw new Error(`Unable to convert "${e}" into a date`);return n}(e);n=Eo(t,n)||n;let a,s=[];for(;n;){if(a=mk.exec(n),!a){s.push(n);break}{s=s.concat(a.slice(1));const d=s.pop();if(!d)break;n=d}}let c=o.getTimezoneOffset();r&&(c=ab(r,c),o=function xk(e,n,t){const r=t?-1:1,o=e.getTimezoneOffset();return function Ek(e,n){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+n),e}(e,r*(ab(n,o)-o))}(o,r,!0));let u="";return s.forEach(d=>{const f=function bk(e){if(cg[e])return cg[e];let n;switch(e){case"G":case"GG":case"GGG":n=Nt(ht.Eras,St.Abbreviated);break;case"GGGG":n=Nt(ht.Eras,St.Wide);break;case"GGGGG":n=Nt(ht.Eras,St.Narrow);break;case"y":n=Jt(ft.FullYear,1,0,!1,!0);break;case"yy":n=Jt(ft.FullYear,2,0,!0,!0);break;case"yyy":n=Jt(ft.FullYear,3,0,!1,!0);break;case"yyyy":n=Jt(ft.FullYear,4,0,!1,!0);break;case"Y":n=sd(1);break;case"YY":n=sd(2,!0);break;case"YYY":n=sd(3);break;case"YYYY":n=sd(4);break;case"M":case"L":n=Jt(ft.Month,1,1);break;case"MM":case"LL":n=Jt(ft.Month,2,1);break;case"MMM":n=Nt(ht.Months,St.Abbreviated);break;case"MMMM":n=Nt(ht.Months,St.Wide);break;case"MMMMM":n=Nt(ht.Months,St.Narrow);break;case"LLL":n=Nt(ht.Months,St.Abbreviated,Ln.Standalone);break;case"LLLL":n=Nt(ht.Months,St.Wide,Ln.Standalone);break;case"LLLLL":n=Nt(ht.Months,St.Narrow,Ln.Standalone);break;case"w":n=ag(1);break;case"ww":n=ag(2);break;case"W":n=ag(1,!0);break;case"d":n=Jt(ft.Date,1);break;case"dd":n=Jt(ft.Date,2);break;case"c":case"cc":n=Jt(ft.Day,1);break;case"ccc":n=Nt(ht.Days,St.Abbreviated,Ln.Standalone);break;case"cccc":n=Nt(ht.Days,St.Wide,Ln.Standalone);break;case"ccccc":n=Nt(ht.Days,St.Narrow,Ln.Standalone);break;case"cccccc":n=Nt(ht.Days,St.Short,Ln.Standalone);break;case"E":case"EE":case"EEE":n=Nt(ht.Days,St.Abbreviated);break;case"EEEE":n=Nt(ht.Days,St.Wide);break;case"EEEEE":n=Nt(ht.Days,St.Narrow);break;case"EEEEEE":n=Nt(ht.Days,St.Short);break;case"a":case"aa":case"aaa":n=Nt(ht.DayPeriods,St.Abbreviated);break;case"aaaa":n=Nt(ht.DayPeriods,St.Wide);break;case"aaaaa":n=Nt(ht.DayPeriods,St.Narrow);break;case"b":case"bb":case"bbb":n=Nt(ht.DayPeriods,St.Abbreviated,Ln.Standalone,!0);break;case"bbbb":n=Nt(ht.DayPeriods,St.Wide,Ln.Standalone,!0);break;case"bbbbb":n=Nt(ht.DayPeriods,St.Narrow,Ln.Standalone,!0);break;case"B":case"BB":case"BBB":n=Nt(ht.DayPeriods,St.Abbreviated,Ln.Format,!0);break;case"BBBB":n=Nt(ht.DayPeriods,St.Wide,Ln.Format,!0);break;case"BBBBB":n=Nt(ht.DayPeriods,St.Narrow,Ln.Format,!0);break;case"h":n=Jt(ft.Hours,1,-12);break;case"hh":n=Jt(ft.Hours,2,-12);break;case"H":n=Jt(ft.Hours,1);break;case"HH":n=Jt(ft.Hours,2);break;case"m":n=Jt(ft.Minutes,1);break;case"mm":n=Jt(ft.Minutes,2);break;case"s":n=Jt(ft.Seconds,1);break;case"ss":n=Jt(ft.Seconds,2);break;case"S":n=Jt(ft.FractionalSeconds,1);break;case"SS":n=Jt(ft.FractionalSeconds,2);break;case"SSS":n=Jt(ft.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=od(bo.Short);break;case"ZZZZZ":n=od(bo.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=od(bo.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=od(bo.Long);break;default:return null}return cg[e]=n,n}(d);u+=f?f(o,t,c):"''"===d?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function nd(e,n,t){const r=new Date(0);return r.setFullYear(e,n,t),r.setHours(0,0,0),r}function Eo(e,n){const t=function rk(e){return Fn(e)[Tt.LocaleId]}(e);if(td[t]??={},td[t][n])return td[t][n];let r="";switch(n){case"shortDate":r=Jl(e,tr.Short);break;case"mediumDate":r=Jl(e,tr.Medium);break;case"longDate":r=Jl(e,tr.Long);break;case"fullDate":r=Jl(e,tr.Full);break;case"shortTime":r=Ql(e,tr.Short);break;case"mediumTime":r=Ql(e,tr.Medium);break;case"longTime":r=Ql(e,tr.Long);break;case"fullTime":r=Ql(e,tr.Full);break;case"short":const o=Eo(e,"shortTime"),i=Eo(e,"shortDate");r=rd(ed(e,tr.Short),[o,i]);break;case"medium":const s=Eo(e,"mediumTime"),a=Eo(e,"mediumDate");r=rd(ed(e,tr.Medium),[s,a]);break;case"long":const c=Eo(e,"longTime"),u=Eo(e,"longDate");r=rd(ed(e,tr.Long),[c,u]);break;case"full":const d=Eo(e,"fullTime"),f=Eo(e,"fullDate");r=rd(ed(e,tr.Full),[d,f])}return r&&(td[t][n]=r),r}function rd(e,n){return n&&(e=e.replace(/\{([^}]+)}/g,function(t,r){return null!=n&&r in n?n[r]:t})),e}function br(e,n,t="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=1-e:(e=-e,i=t));let s=String(e);for(;s.length<n;)s="0"+s;return r&&(s=s.slice(s.length-n)),i+s}function Jt(e,n,t=0,r=!1,o=!1){return function(i,s){let a=function _k(e,n){switch(e){case ft.FullYear:return n.getFullYear();case ft.Month:return n.getMonth();case ft.Date:return n.getDate();case ft.Hours:return n.getHours();case ft.Minutes:return n.getMinutes();case ft.Seconds:return n.getSeconds();case ft.FractionalSeconds:return n.getMilliseconds();case ft.Day:return n.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}(e,i);if((t>0||a>-t)&&(a+=t),e===ft.Hours)0===a&&-12===t&&(a=12);else if(e===ft.FractionalSeconds)return function vk(e,n){return br(e,3).substring(0,n)}(a,n);const c=lr(s,Kt.MinusSign);return br(a,n,c,r,o)}}function Nt(e,n,t=Ln.Format,r=!1){return function(o,i){return function Dk(e,n,t,r,o,i){switch(t){case ht.Months:return function sk(e,n,t){const r=Fn(e),i=dr([r[Tt.MonthsFormat],r[Tt.MonthsStandalone]],n);return dr(i,t)}(n,o,r)[e.getMonth()];case ht.Days:return function ik(e,n,t){const r=Fn(e),i=dr([r[Tt.DaysFormat],r[Tt.DaysStandalone]],n);return dr(i,t)}(n,o,r)[e.getDay()];case ht.DayPeriods:const s=e.getHours(),a=e.getMinutes();if(i){const u=function lk(e){const n=Fn(e);return ib(n),(n[Tt.ExtraData][2]||[]).map(r=>"string"==typeof r?sg(r):[sg(r[0]),sg(r[1])])}(n),d=function dk(e,n,t){const r=Fn(e);ib(r);const i=dr([r[Tt.ExtraData][0],r[Tt.ExtraData][1]],n)||[];return dr(i,t)||[]}(n,o,r),f=u.findIndex(y=>{if(Array.isArray(y)){const[_,b]=y,S=s>=_.hours&&a>=_.minutes,F=s<b.hours||s===b.hours&&a<b.minutes;if(_.hours<b.hours){if(S&&F)return!0}else if(S||F)return!0}else if(y.hours===s&&y.minutes===a)return!0;return!1});if(-1!==f)return d[f]}return function ok(e,n,t){const r=Fn(e),i=dr([r[Tt.DayPeriodsFormat],r[Tt.DayPeriodsStandalone]],n);return dr(i,t)}(n,o,r)[s<12?0:1];case ht.Eras:return function ak(e,n){return dr(Fn(e)[Tt.Eras],n)}(n,r)[e.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${t}`)}}(o,i,e,n,t,r)}}function od(e){return function(n,t,r){const o=-1*r,i=lr(t,Kt.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case bo.Short:return(o>=0?"+":"")+br(s,2,i)+br(Math.abs(o%60),2,i);case bo.ShortGMT:return"GMT"+(o>=0?"+":"")+br(s,1,i);case bo.Long:return"GMT"+(o>=0?"+":"")+br(s,2,i)+":"+br(Math.abs(o%60),2,i);case bo.Extended:return 0===r?"Z":(o>=0?"+":"")+br(s,2,i)+":"+br(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}const wk=0,id=4;function sb(e){const n=e.getDay(),t=0===n?-3:id-n;return nd(e.getFullYear(),e.getMonth(),e.getDate()+t)}function ag(e,n=!1){return function(t,r){let o;if(n){const i=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,s=t.getDate();o=1+Math.floor((s+i)/7)}else{const i=sb(t),s=function Ck(e){const n=nd(e,wk,1).getDay();return nd(e,0,1+(n<=id?id:id+7)-n)}(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return br(o,e,lr(r,Kt.MinusSign))}}function sd(e,n=!1){return function(t,r){return br(sb(t).getFullYear(),e,lr(r,Kt.MinusSign),n)}}const cg={};function ab(e,n){e=e.replace(/:/g,"");const t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?n:t}function cb(e){return e instanceof Date&&!isNaN(e.valueOf())}function fb(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const r=t.indexOf("="),[o,i]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(o.trim()===n)return decodeURIComponent(i)}return null}const pg=/\s+/,hb=[];let pb=(()=>{class e{constructor(t,r){this._ngEl=t,this._renderer=r,this.initialClasses=hb,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(pg):hb}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(pg):t}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const r of t)this._updateState(r,!0);else if(null!=t)for(const r of Object.keys(t))this._updateState(r,!!t[r]);this._applyStateDiff()}_updateState(t,r){const o=this.stateMap.get(t);void 0!==o?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(t,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const r=t[0],o=t[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(t,r){(t=t.trim()).length>0&&t.split(pg).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static#e=this.\u0275fac=function(r){return new(r||e)(ee(Jn),ee(yo))};static#t=this.\u0275dir=Pe({type:e,selectors:[["","ngClass",""]],inputs:{klass:[Ot.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}return e})();class jk{constructor(n,t,r,o){this.$implicit=n,this.ngForOf=t,this.index=r,this.count=o}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 mb=(()=>{class e{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,r,o){this._viewContainer=t,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}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 r=this._viewContainer;t.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new jk(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),yb(a,o)}});for(let o=0,i=r.length;o<i;o++){const a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}t.forEachIdentityChange(o=>{yb(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(t,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(ee(Dr),ee(Do),ee(Th))};static#t=this.\u0275dir=Pe({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return e})();function yb(e,n){e.context.$implicit=n.item}let vb=(()=>{class e{constructor(t,r){this._viewContainer=t,this._context=new Bk,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){_b("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){_b("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,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(ee(Dr),ee(Do))};static#t=this.\u0275dir=Pe({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class Bk{constructor(){this.$implicit=null,this.ngIf=null}}function _b(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${ve(n)}'.`)}const tL=new de(""),nL=new de("");let wb=(()=>{class e{constructor(t,r,o){this.locale=t,this.defaultTimezone=r,this.defaultOptions=o}transform(t,r,o,i){if(null==t||""===t||t!=t)return null;try{return yk(t,r??this.defaultOptions?.dateFormat??"mediumDate",i||this.locale,o??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw function Er(e,n){return new w(2100,!1)}()}}static#e=this.\u0275fac=function(r){return new(r||e)(ee(wo,16),ee(tL,24),ee(nL,24))};static#t=this.\u0275pipe=Tn({name:"date",type:e,pure:!0,standalone:!0})}return e})(),fL=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=fo({type:e});static#n=this.\u0275inj=Rr({})}return e})();const bb="browser";function Eb(e){return"server"===e}let yL=(()=>{class e{static#e=this.\u0275prov=De({token:e,providedIn:"root",factory:()=>function mL(e){return e===bb}(te(Bo))?new vL(te(er),window):new DL})}return e})();class vL{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.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){const t=function _L(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(n)||i.querySelector(`[name="${n}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){const t=n.getBoundingClientRect(),r=t.left+this.window.pageXOffset,o=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}}class DL{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}}class xb{}class $L extends YP{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class wg extends $L{static makeCurrent(){!function KP(e){QC??=e}(new wg)}onAndCancel(n,t,r){return n.addEventListener(t,r),()=>{n.removeEventListener(t,r)}}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 zL(){return Nc=Nc||document.querySelector("base"),Nc?Nc.getAttribute("href"):null}();return null==t?null:function GL(e){return new URL(e,document.baseURI).pathname}(t)}resetBaseElement(){Nc=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return fb(document.cookie,n)}}let Nc=null,WL=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac})}return e})();const Cg=new de("");let Ab=(()=>{class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(o=>{o.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,o){return this._findPluginFor(r).addEventListener(t,r,o)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(i=>i.supports(t)),!r)throw new w(5101,!1);return this._eventNameToPlugin.set(t,r),r}static#e=this.\u0275fac=function(r){return new(r||e)(Ee(Cg),Ee(dt))};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac})}return e})();class Tb{constructor(n){this._doc=n}}const bg="ng-app-id";let Nb=(()=>{class e{constructor(t,r,o,i={}){this.doc=t,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Eb(i),this.resetHostNodes()}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.elements?.forEach(o=>o.remove()),r.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${bg}="${this.appId}"]`);if(t?.length){const r=new Map;return t.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(t,r){const o=this.styleRef;if(o.has(t)){const i=o.get(t);return i.usage+=r,i.usage}return o.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===t)return o.delete(r),i.removeAttribute(bg),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(bg,this.appId),t.appendChild(s),s}}addStyleToHost(t,r){const o=this.getStyleElement(t,r),i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static#e=this.\u0275fac=function(r){return new(r||e)(Ee(er),Ee(Bu),Ee(iv,8),Ee(Bo))};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac})}return e})();const Eg={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/"},xg=/%COMP%/g,XL=new de("",{providedIn:"root",factory:()=>!0});function Ob(e,n){return n.map(t=>t.replace(xg,e))}let Fb=(()=>{class e{constructor(t,r,o,i,s,a,c,u=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=Eb(a),this.defaultRenderer=new Mg(t,s,c,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===gr.ShadowDom&&(r={...r,encapsulation:gr.Emulated});const o=this.getOrCreateRenderer(t,r);return o instanceof kb?o.applyToHost(t):o instanceof Sg&&o.applyStyles(),o}getOrCreateRenderer(t,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(r.encapsulation){case gr.Emulated:i=new kb(c,u,r,this.appId,d,s,a,f);break;case gr.ShadowDom:return new t3(c,u,t,r,s,a,this.nonce,f);default:i=new Sg(c,u,r,d,s,a,f)}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(r){return new(r||e)(Ee(Ab),Ee(Nb),Ee(Bu),Ee(XL),Ee(er),Ee(Bo),Ee(dt),Ee(iv))};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac})}return e})();class Mg{constructor(n,t,r,o){this.eventManager=n,this.doc=t,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,t){return t?this.doc.createElementNS(Eg[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(Pb(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(Pb(n)?n.content:n).insertBefore(t,r)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let r="string"==typeof n?this.doc.querySelector(n):n;if(!r)throw new w(-5104,!1);return t||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,r,o){if(o){t=o+":"+t;const i=Eg[o];i?n.setAttributeNS(i,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const o=Eg[r];o?n.removeAttributeNS(o,t):n.removeAttribute(`${r}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,r,o){o&(zo.DashCase|zo.Important)?n.style.setProperty(t,r,o&zo.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&zo.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){null!=n&&(n[t]=r)}setValue(n,t){n.nodeValue=t}listen(n,t,r){if("string"==typeof n&&!(n=Yo().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(r))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function Pb(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class t3 extends Mg{constructor(n,t,r,o,i,s,a,c){super(n,i,s,c),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=Ob(o.id,o.styles);for(const d of u){const f=document.createElement("style");a&&f.setAttribute("nonce",a),f.textContent=d,this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,r){return super.insertBefore(this.nodeOrShadowRoot(n),t,r)}removeChild(n,t){return super.removeChild(this.nodeOrShadowRoot(n),t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Sg extends Mg{constructor(n,t,r,o,i,s,a,c){super(n,i,s,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=o,this.styles=c?Ob(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class kb extends Sg{constructor(n,t,r,o,i,s,a,c){const u=o+"-"+r.id;super(n,t,r,i,s,a,c,u),this.contentAttr=function JL(e){return"_ngcontent-%COMP%".replace(xg,e)}(u),this.hostAttr=function QL(e){return"_nghost-%COMP%".replace(xg,e)}(u)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const r=super.createElement(n,t);return super.setAttribute(r,this.contentAttr,""),r}}let n3=(()=>{class e extends Tb{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,o){return t.addEventListener(r,o,!1),()=>this.removeEventListener(t,r,o)}removeEventListener(t,r,o){return t.removeEventListener(r,o)}static#e=this.\u0275fac=function(r){return new(r||e)(Ee(er))};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac})}return e})();const Lb=["alt","control","meta","shift"],r3={"\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"},o3={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let i3=(()=>{class e extends Tb{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Yo().onAndCancel(t,i.domEventName,s))}static parseEventName(t){const r=t.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Lb.forEach(u=>{const d=r.indexOf(u);d>-1&&(r.splice(d,1),s+=u+".")}),s+=i,0!=r.length||0===i.length)return null;const c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(t,r){let o=r3[t.key]||t.key,i="";return r.indexOf("code.")>-1&&(o=t.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),Lb.forEach(s=>{s!==o&&(0,o3[s])(t)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(t,r,o){return i=>{e.matchEventFullKeyCode(i,t)&&o.runGuarded(()=>r(i))}}static _normalizeKey(t){return"esc"===t?"escape":t}static#e=this.\u0275fac=function(r){return new(r||e)(Ee(er))};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac})}return e})();const u3=SC(vP,"browser",[{provide:Bo,useValue:bb},{provide:ov,useValue:function s3(){wg.makeCurrent()},multi:!0},{provide:er,useFactory:function c3(){return function KS(e){Kf=e}(document),document},deps:[]}]),l3=new de(""),jb=[{provide:Bl,useClass:class qL{addToWindow(n){pt.getAngularTestability=(r,o=!0)=>{const i=n.findTestabilityInTree(r,o);if(null==i)throw new w(5103,!1);return i},pt.getAllAngularTestabilities=()=>n.getAllTestabilities(),pt.getAllAngularRootElements=()=>n.getAllRootElements(),pt.frameworkStabilizers||(pt.frameworkStabilizers=[]),pt.frameworkStabilizers.push(r=>{const o=pt.getAllAngularTestabilities();let i=o.length;const s=function(){i--,0==i&&r()};o.forEach(a=>{a.whenStable(s)})})}findTestabilityInTree(n,t,r){return null==t?null:n.getTestability(t)??(r?Yo().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:vC,useClass:$p,deps:[dt,zp,Bl]},{provide:$p,useClass:$p,deps:[dt,zp,Bl]}],Bb=[{provide:Hf,useValue:"root"},{provide:vo,useFactory:function a3(){return new vo},deps:[]},{provide:Cg,useClass:n3,multi:!0,deps:[er,dt,Bo]},{provide:Cg,useClass:i3,multi:!0,deps:[er]},Fb,Nb,Ab,{provide:o_,useExisting:Fb},{provide:xb,useClass:WL,deps:[]},[]];let d3=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:Bu,useValue:t.appId}]}}static#e=this.\u0275fac=function(r){return new(r||e)(Ee(l3,12))};static#t=this.\u0275mod=fo({type:e});static#n=this.\u0275inj=Rr({providers:[...Bb,...jb],imports:[fL,_P]})}return e})(),f3=(()=>{class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static#e=this.\u0275fac=function(r){return new(r||e)(Ee(er))};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Zo(e){return this instanceof Zo?(this.v=e,this):new Zo(e)}function Kb(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 Ng(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=e[i]&&function(s){return new Promise(function(a,c){!function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}(a,c,(s=e[i](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Yb=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Zb(e){return mt(e?.then)}function Xb(e){return mt(e[Bi])}function Jb(e){return Symbol.asyncIterator&&mt(e?.[Symbol.asyncIterator])}function Qb(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 eE=function L3(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function tE(e){return mt(e?.[eE])}function nE(e){return function Wb(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=t.apply(e,n||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(y){r[y]&&(o[y]=function(_){return new Promise(function(b,S){i.push([y,_,b,S])>1||a(y,_)})})}function a(y,_){try{!function c(y){y.value instanceof Zo?Promise.resolve(y.value.v).then(u,d):f(i[0][2],y)}(r[y](_))}catch(b){f(i[0][3],b)}}function u(y){a("next",y)}function d(y){a("throw",y)}function f(y,_){y(_),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:o}=yield Zo(t.read());if(o)return yield Zo(void 0);yield yield Zo(r)}}finally{t.releaseLock()}})}function rE(e){return mt(e?.getReader)}function Wr(e){if(e instanceof yt)return e;if(null!=e){if(Xb(e))return function V3(e){return new yt(n=>{const t=e[Bi]();if(mt(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Yb(e))return function U3(e){return new yt(n=>{for(let t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}(e);if(Zb(e))return function j3(e){return new yt(n=>{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,Li)})}(e);if(Jb(e))return oE(e);if(tE(e))return function B3(e){return new yt(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(rE(e))return function H3(e){return oE(nE(e))}(e)}throw Qb(e)}function oE(e){return new yt(n=>{(function $3(e,n){var t,r,o,i;return function Gb(e,n,t,r){return new(t||(t=Promise))(function(i,s){function a(d){try{u(r.next(d))}catch(f){s(f)}}function c(d){try{u(r.throw(d))}catch(f){s(f)}}function u(d){d.done?i(d.value):function o(i){return i instanceof t?i:new t(function(s){s(i)})}(d.value).then(a,c)}u((r=r.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=Kb(e);!(r=yield t.next()).done;)if(n.next(r.value),n.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=t.return)&&(yield i.call(t))}finally{if(o)throw o.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function xo(e,n,t,r=0,o=!1){const i=n.schedule(function(){t(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function iE(e,n=0){return g((t,r)=>{t.subscribe(p(r,o=>xo(r,e,()=>r.next(o),n),()=>xo(r,e,()=>r.complete(),n),o=>xo(r,e,()=>r.error(o),n)))})}function sE(e,n=0){return g((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function aE(e,n){if(!e)throw new Error("Iterable cannot be null");return new yt(t=>{xo(t,n,()=>{const r=e[Symbol.asyncIterator]();xo(t,n,()=>{r.next().then(o=>{o.done?t.complete():t.next(o.value)})},0,!0)})})}function on(e,n){return n?function Y3(e,n){if(null!=e){if(Xb(e))return function z3(e,n){return Wr(e).pipe(sE(n),iE(n))}(e,n);if(Yb(e))return function q3(e,n){return new yt(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(Zb(e))return function G3(e,n){return Wr(e).pipe(sE(n),iE(n))}(e,n);if(Jb(e))return aE(e,n);if(tE(e))return function W3(e,n){return new yt(t=>{let r;return xo(t,n,()=>{r=e[eE](),xo(t,n,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void t.error(s)}i?t.complete():t.next(o)},0,!0)}),()=>mt(r?.return)&&r.return()})}(e,n);if(rE(e))return function K3(e,n){return aE(nE(e),n)}(e,n)}throw Qb(e)}(e,n):Wr(e)}const{isArray:Z3}=Array,{getPrototypeOf:X3,prototype:J3,keys:Q3}=Object;function cE(e){if(1===e.length){const n=e[0];if(Z3(n))return{args:n,keys:null};if(function eV(e){return e&&"object"==typeof e&&X3(e)===J3}(n)){const t=Q3(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}function Rg(e){return e[e.length-1]}function uE(e){return mt(Rg(e))?e.pop():void 0}function ld(e){return function tV(e){return e&&mt(e.schedule)}(Rg(e))?e.pop():void 0}const{isArray:nV}=Array;function lE(e){return m(n=>function rV(e,n){return nV(n)?e(...n):e(n)}(e,n))}function dE(e,n){return e.reduce((t,r,o)=>(t[r]=n[o],t),{})}let fE=(()=>{class e{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static#e=this.\u0275fac=function(r){return new(r||e)(ee(yo),ee(Jn))};static#t=this.\u0275dir=Pe({type:e})}return e})(),Ti=(()=>{class e extends fE{static#e=this.\u0275fac=(()=>{let t;return function(o){return(t||(t=an(e)))(o||e)}})();static#t=this.\u0275dir=Pe({type:e,features:[gt]})}return e})();const Kr=new de(""),iV={provide:Kr,useExisting:ne(()=>Og),multi:!0};let Og=(()=>{class e extends Ti{writeValue(t){this.setProperty("checked",t)}static#e=this.\u0275fac=(()=>{let t;return function(o){return(t||(t=an(e)))(o||e)}})();static#t=this.\u0275dir=Pe({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,o){1&r&&Ze("change",function(s){return o.onChange(s.target.checked)})("blur",function(){return o.onTouched()})},features:[kt([iV]),gt]})}return e})();const sV={provide:Kr,useExisting:ne(()=>dd),multi:!0},cV=new de("");let dd=(()=>{class e extends fE{constructor(t,r,o){super(t,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function aV(){const e=Yo()?Yo().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",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)}static#e=this.\u0275fac=function(r){return new(r||e)(ee(yo),ee(Jn),ee(cV,8))};static#t=this.\u0275dir=Pe({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(r,o){1&r&&Ze("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},features:[kt([sV]),gt]})}return e})();const En=new de(""),Jo=new de("");function mE(e){return function Xo(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}(e.value)?{required:!0}:null}function fd(e){return null}function CE(e){return null!=e}function bE(e){return Dc(e)?on(e):e}function EE(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function xE(e,n){return n.map(t=>t(e))}function ME(e){return e.map(n=>function lV(e){return!e.validate}(n)?n:t=>n.validate(t))}function Fg(e){return null!=e?function SE(e){if(!e)return null;const n=e.filter(CE);return 0==n.length?null:function(t){return EE(xE(t,n))}}(ME(e)):null}function Pg(e){return null!=e?function IE(e){if(!e)return null;const n=e.filter(CE);return 0==n.length?null:function(t){return function oV(...e){const n=uE(e),{args:t,keys:r}=cE(e),o=new yt(i=>{const{length:s}=t;if(!s)return void i.complete();const a=new Array(s);let c=s,u=s;for(let d=0;d<s;d++){let f=!1;Wr(t[d]).subscribe(p(i,y=>{f||(f=!0,u--),a[d]=y},()=>c--,void 0,()=>{(!c||!f)&&(u||i.next(r?dE(r,a):a),i.complete())}))}});return n?o.pipe(lE(n)):o}(xE(t,n).map(bE)).pipe(m(EE))}}(ME(e)):null}function AE(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function kg(e){return e?Array.isArray(e)?e:[e]:[]}function hd(e,n){return Array.isArray(e)?e.includes(n):e===n}function RE(e,n){const t=kg(n);return kg(e).forEach(o=>{hd(t,o)||t.push(o)}),t}function OE(e,n){return kg(n).filter(t=>!hd(e,t))}class FE{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=Fg(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Pg(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=void 0){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 Vn extends FE{get formDirective(){return null}get path(){return null}}class Qo extends FE{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class PE{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let kE=(()=>{class e extends PE{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(ee(Qo,2))};static#t=this.\u0275dir=Pe({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){2&r&&Wt("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[gt]})}return e})(),LE=(()=>{class e extends PE{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(ee(Vn,10))};static#t=this.\u0275dir=Pe({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){2&r&&Wt("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[gt]})}return e})();const Oc="VALID",gd="INVALID",zs="PENDING",Fc="DISABLED";function Ug(e){return(md(e)?e.validators:e)||null}function jg(e,n){return(md(n)?n.asyncValidators:e)||null}function md(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class BE{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._assignValidators(n),this._assignAsyncValidators(t)}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===Oc}get invalid(){return this.status===gd}get pending(){return this.status==zs}get disabled(){return this.status===Fc}get enabled(){return this.status!==Fc}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._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(RE(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(RE(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(OE(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(OE(n,this._rawAsyncValidators))}hasValidator(n){return hd(this._rawValidators,n)}hasAsyncValidator(n){return hd(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=zs,!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=Fc,this.errors=null,this._forEachChild(r=>{r.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Oc,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Oc||this.status===zs)&&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()?Fc:Oc}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=zs,this._hasOwnPendingAsyncValidator=!0;const t=bE(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,o)=>r&&r._find(o),this)}getError(n,t){const r=t?this.get(t):this;return r&&r.errors?r.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 Bt,this.statusChanges=new Bt}_calculateStatus(){return this._allControlsDisabled()?Fc:this.errors?gd:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(zs)?zs:this._anyControlsHaveStatus(gd)?gd:Oc}_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)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){md(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function pV(e){return Array.isArray(e)?Fg(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function gV(e){return Array.isArray(e)?Pg(e):e||null}(this._rawAsyncValidators)}}class Bg extends BE{constructor(n,t,r){super(Ug(t),jg(r,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,r={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.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,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){(function jE(e,n,t){e._forEachChild((r,o)=>{if(void 0===t[o])throw new w(1002,"")})})(this,0,n),Object.keys(n).forEach(r=>{(function UE(e,n,t){const r=e.controls;if(!(n?Object.keys(r):r).length)throw new w(1e3,"");if(!r[t])throw new w(1001,"")})(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(r=>{const o=this.controls[r];o&&o.patchValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((r,o)=>{r.reset(n?n[o]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,r)=>(n[r]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&n(r,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&n(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,o)=>((r.enabled||this.disabled)&&(t[o]=r.value),t))}_reduceChildren(n,t){let r=n;return this._forEachChild((o,i)=>{r=t(r,o,i)}),r}_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}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}const Gs=new de("CallSetDisabledState",{providedIn:"root",factory:()=>yd}),yd="always";function Pc(e,n,t=yd){Hg(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function vV(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&HE(e,n)})}(e,n),function DV(e,n){const t=(r,o)=>{n.valueAccessor.writeValue(r),o&&n.viewToModelUpdate(r)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function _V(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&HE(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function yV(e,n){if(n.valueAccessor.setDisabledState){const t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function Dd(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function Hg(e,n){const t=function TE(e){return e._rawValidators}(e);null!==n.validator?e.setValidators(AE(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const r=function NE(e){return e._rawAsyncValidators}(e);null!==n.asyncValidator?e.setAsyncValidators(AE(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();Dd(n._rawValidators,o),Dd(n._rawAsyncValidators,o)}function HE(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}const xV={provide:Vn,useExisting:ne(()=>Cd)},kc=Promise.resolve();let Cd=(()=>{class e extends Vn{constructor(t,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Bt,this.form=new Bg({},Fg(t),Pg(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){kc.then(()=>{const r=this._findContainer(t.path);t.control=r.registerControl(t.name,t.control),Pc(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){kc.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){kc.then(()=>{const r=this._findContainer(t.path),o=new Bg({});(function $E(e,n){Hg(e,n)})(o,t),r.registerControl(t.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){kc.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,r){kc.then(()=>{this.form.get(t.path).setValue(r)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,function zE(e,n){e._syncPendingControls(),n.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}static#e=this.\u0275fac=function(r){return new(r||e)(ee(En,10),ee(Jo,10),ee(Gs,8))};static#t=this.\u0275dir=Pe({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,o){1&r&&Ze("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{options:[Ot.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[kt([xV]),gt]})}return e})();function GE(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function qE(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const WE=class extends BE{constructor(n=null,t,r){super(Ug(t),jg(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),md(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=qE(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(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){GE(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){GE(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){qE(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}},IV={provide:Qo,useExisting:ne(()=>qg)},ZE=Promise.resolve();let qg=(()=>{class e extends Qo{constructor(t,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new WE,this._registered=!1,this.name="",this.update=new Bt,this._parent=t,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function Gg(e,n){if(!n)return null;let t,r,o;return Array.isArray(n),n.forEach(i=>{i.constructor===dd?t=i:function bV(e){return Object.getPrototypeOf(e.constructor)===Ti}(i)?r=i:o=i}),o||r||t||null}(0,i)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const r=t.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),function zg(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(){Pc(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){ZE.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const r=t.isDisabled.currentValue,o=0!==r&&Hs(r);ZE.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?function vd(e,n){return[...n.path,e]}(t,this._parent):[t]}static#e=this.\u0275fac=function(r){return new(r||e)(ee(Vn,9),ee(En,10),ee(Jo,10),ee(Kr,10),ee(tc,8),ee(Gs,8))};static#t=this.\u0275dir=Pe({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[Ot.None,"disabled","isDisabled"],model:[Ot.None,"ngModel","model"],options:[Ot.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[kt([IV]),gt,ar]})}return e})(),XE=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=Pe({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return e})();const VV={provide:Kr,useExisting:ne(()=>bd),multi:!0};function ix(e,n){return null==e?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let bd=(()=>{class e extends Ti{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 o=ix(this._getOptionId(t),t);this.setProperty("value",o)}registerOnChange(t){this.onChange=r=>{this.value=this._getOptionValue(r),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),t))return r;return null}_getOptionValue(t){const r=function UV(e){return e.split(":")[0]}(t);return this._optionMap.has(r)?this._optionMap.get(r):t}static#e=this.\u0275fac=(()=>{let t;return function(o){return(t||(t=an(e)))(o||e)}})();static#t=this.\u0275dir=Pe({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,o){1&r&&Ze("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[kt([VV]),gt]})}return e})(),sx=(()=>{class e{constructor(t,r,o){this._element=t,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(ix(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))}static#e=this.\u0275fac=function(r){return new(r||e)(ee(Jn),ee(yo),ee(bd,9))};static#t=this.\u0275dir=Pe({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return e})();const jV={provide:Kr,useExisting:ne(()=>Zg),multi:!0};function ax(e,n){return null==e?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let Zg=(()=>{class e extends Ti{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let r;if(this.value=t,Array.isArray(t)){const o=t.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(t){this.onChange=r=>{const o=[],i=r.selectedOptions;if(void 0!==i){const s=i;for(let a=0;a<s.length;a++){const u=this._getOptionValue(s[a].value);o.push(u)}}else{const s=r.options;for(let a=0;a<s.length;a++){const c=s[a];if(c.selected){const u=this._getOptionValue(c.value);o.push(u)}}}this.value=o,t(o)}}_registerOption(t){const r=(this._idCounter++).toString();return this._optionMap.set(r,t),r}_getOptionId(t){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r)._value,t))return r;return null}_getOptionValue(t){const r=function BV(e){return e.split(":")[0]}(t);return this._optionMap.has(r)?this._optionMap.get(r)._value:t}static#e=this.\u0275fac=(()=>{let t;return function(o){return(t||(t=an(e)))(o||e)}})();static#t=this.\u0275dir=Pe({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,o){1&r&&Ze("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[kt([jV]),gt]})}return e})(),cx=(()=>{class e{constructor(t,r,o){this._element=t,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(ax(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(ax(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))}static#e=this.\u0275fac=function(r){return new(r||e)(ee(Jn),ee(yo),ee(Zg,9))};static#t=this.\u0275dir=Pe({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return e})(),Ni=(()=>{class e{constructor(){this._validator=fd}ngOnChanges(t){if(this.inputName in t){const r=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):fd,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=Pe({type:e,features:[ar]})}return e})();const zV={provide:En,useExisting:ne(()=>Ed),multi:!0};let Ed=(()=>{class e extends Ni{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Hs,this.createValidator=t=>mE}enabled(t){return t}static#e=this.\u0275fac=(()=>{let t;return function(o){return(t||(t=an(e)))(o||e)}})();static#t=this.\u0275dir=Pe({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,o){2&r&&$r("required",o._enabled?"":null)},inputs:{required:"required"},features:[kt([zV]),gt]})}return e})(),ZV=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=fo({type:e});static#n=this.\u0275inj=Rr({})}return e})(),JV=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Gs,useValue:t.callSetDisabledState??yd}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=fo({type:e});static#n=this.\u0275inj=Rr({imports:[ZV]})}return e})();function Re(...e){return on(e,ld(e))}function xn(e,n,t=1/0){return mt(n)?xn((r,o)=>m((i,s)=>n(r,i,o,s))(Wr(e(r,o))),t):("number"==typeof n&&(t=n),g((r,o)=>function QV(e,n,t,r,o,i,s,a){const c=[];let u=0,d=0,f=!1;const y=()=>{f&&!c.length&&!u&&n.complete()},_=S=>u<r?b(S):c.push(S),b=S=>{i&&n.next(S),u++;let F=!1;Wr(t(S,d++)).subscribe(p(n,z=>{o?.(z),i?_(z):n.next(z)},()=>{F=!0},void 0,()=>{if(F)try{for(u--;c.length&&u<r;){const z=c.shift();s?xo(n,s,()=>b(z)):b(z)}y()}catch(z){n.error(z)}}))};return e.subscribe(p(n,_,()=>{f=!0,y()})),()=>{a?.()}}(r,o,e,t)))}function qs(e,n){return mt(n)?xn(e,n,1):xn(e,1)}function Mo(e,n){return g((t,r)=>{let o=0;t.subscribe(p(r,i=>e.call(n,i,o++)&&r.next(i)))})}function Lc(e){return g((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}function xr(e,n){return g((t,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();t.subscribe(p(r,c=>{o?.unsubscribe();let u=0;const d=i++;Wr(e(c,d)).subscribe(o=p(r,f=>r.next(n?n(c,f,d,u++):f),()=>{o=null,a()}))},()=>{s=!0,a()}))})}class xd{}class Md{}class fr{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const o=t.slice(0,r),i=o.toLowerCase(),s=t.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((t,r)=>{this.setHeaderEntries(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof fr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new fr;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof fr?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(n.name,t);const o=("a"===n.op?this.headers.get(t):void 0)||[];o.push(...r),this.headers.set(t,o);break;case"d":const i=n.value;if(i){let s=this.headers.get(t);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}setHeaderEntries(n,t){const r=(Array.isArray(t)?t:[t]).map(i=>i.toString()),o=n.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(n,o)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class e6{encodeKey(n){return vx(n)}encodeValue(n){return vx(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const n6=/%(\d[a-f0-9])/gi,r6={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function vx(e){return encodeURIComponent(e).replace(n6,(n,t)=>r6[t]??n)}function Sd(e){return`${e}`}class ei{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new e6,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function t6(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,i)),n.decodeValue(o.slice(i+1))],c=t.get(s)||[];c.push(a),t.set(s,c)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const r=n.fromObject[t],o=Array.isArray(r)?r.map(Sd):[Sd(r)];this.map.set(t,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(r=>{const o=n[r];Array.isArray(o)?o.forEach(i=>{t.push({param:r,value:i,op:"a"})}):t.push({param:r,value:o,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new ei({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(Sd(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let r=this.map.get(n.param)||[];const o=r.indexOf(Sd(n.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class o6{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function _x(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Dx(e){return typeof Blob<"u"&&e instanceof Blob}function wx(e){return typeof FormData<"u"&&e instanceof FormData}class Vc{constructor(n,t,r,o){let i;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function i6(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new fr,this.context??=new o6,this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":a<t.length-1?"&":"")+s}}else this.params=new ei,this.urlWithParams=t}serializeBody(){return null===this.body?null:_x(this.body)||Dx(this.body)||wx(this.body)||function s6(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof ei?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||wx(this.body)?null:Dx(this.body)?this.body.type||null:_x(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ei?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(n={}){const t=n.method||this.method,r=n.url||this.url,o=n.responseType||this.responseType,i=void 0!==n.body?n.body:this.body,s=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,a=void 0!==n.reportProgress?n.reportProgress:this.reportProgress;let c=n.headers||this.headers,u=n.params||this.params;const d=n.context??this.context;return void 0!==n.setHeaders&&(c=Object.keys(n.setHeaders).reduce((f,y)=>f.set(y,n.setHeaders[y]),c)),n.setParams&&(u=Object.keys(n.setParams).reduce((f,y)=>f.set(y,n.setParams[y]),u)),new Vc(t,r,i,{params:u,headers:c,context:d,reportProgress:a,responseType:o,withCredentials:s})}}var ti=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(ti||{});class Xg{constructor(n,t=Uc.Ok,r="OK"){this.headers=n.headers||new fr,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class Id extends Xg{constructor(n={}){super(n),this.type=ti.ResponseHeader}clone(n={}){return new Id({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Ri extends Xg{constructor(n={}){super(n),this.type=ti.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Ri({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Ws extends Xg{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}var Uc=function(e){return e[e.Continue=100]="Continue",e[e.SwitchingProtocols=101]="SwitchingProtocols",e[e.Processing=102]="Processing",e[e.EarlyHints=103]="EarlyHints",e[e.Ok=200]="Ok",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",e[e.NoContent=204]="NoContent",e[e.ResetContent=205]="ResetContent",e[e.PartialContent=206]="PartialContent",e[e.MultiStatus=207]="MultiStatus",e[e.AlreadyReported=208]="AlreadyReported",e[e.ImUsed=226]="ImUsed",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.Unused=306]="Unused",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.LengthRequired=411]="LengthRequired",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.UriTooLong=414]="UriTooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.ImATeapot=418]="ImATeapot",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.UnprocessableEntity=422]="UnprocessableEntity",e[e.Locked=423]="Locked",e[e.FailedDependency=424]="FailedDependency",e[e.TooEarly=425]="TooEarly",e[e.UpgradeRequired=426]="UpgradeRequired",e[e.PreconditionRequired=428]="PreconditionRequired",e[e.TooManyRequests=429]="TooManyRequests",e[e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",e[e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HttpVersionNotSupported=505]="HttpVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.LoopDetected=508]="LoopDetected",e[e.NotExtended=510]="NotExtended",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",e}(Uc||{});function Jg(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}let a6=(()=>{class e{constructor(t){this.handler=t}request(t,r,o={}){let i;if(t instanceof Vc)i=t;else{let c,u;c=o.headers instanceof fr?o.headers:new fr(o.headers),o.params&&(u=o.params instanceof ei?o.params:new ei({fromObject:o.params})),i=new Vc(t,r,void 0!==o.body?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}const s=Re(i).pipe(qs(c=>this.handler.handle(c)));if(t instanceof Vc||"events"===o.observe)return s;const a=s.pipe(Mo(c=>c instanceof Ri));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(m(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(m(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(m(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return a.pipe(m(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new ei).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,o={}){return this.request("PATCH",t,Jg(o,r))}post(t,r,o={}){return this.request("POST",t,Jg(o,r))}put(t,r,o={}){return this.request("PUT",t,Jg(o,r))}static#e=this.\u0275fac=function(r){return new(r||e)(Ee(xd))};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac})}return e})();function bx(e,n){return n(e)}function f6(e,n){return(t,r)=>n.intercept(t,{handle:o=>e(o,r)})}const p6=new de(""),jc=new de(""),Ex=new de(""),xx=new de("");function g6(){let e=null;return(n,t)=>{null===e&&(e=(te(p6,{optional:!0})??[]).reduceRight(f6,bx));const r=te(js),o=r.add();return e(n,t).pipe(Lc(()=>r.remove(o)))}}let Mx=(()=>{class e extends xd{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=te(js);const o=te(xx,{optional:!0});this.backend=o??t}handle(t){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(jc),...this.injector.get(Ex,[])]));this.chain=o.reduceRight((i,s)=>function h6(e,n,t){return(r,o)=>Vo(t,()=>n(r,i=>e(i,o)))}(i,s,this.injector),bx)}const r=this.pendingTasks.add();return this.chain(t,o=>this.backend.handle(o)).pipe(Lc(()=>this.pendingTasks.remove(r)))}static#e=this.\u0275fac=function(r){return new(r||e)(Ee(Md),Ee(Zn))};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac})}return e})();const D6=/^\)\]\}',?\n/;let Ix=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new w(-2800,!1);const r=this.xhrFactory;return(r.\u0275loadImpl?on(r.\u0275loadImpl()):Re(null)).pipe(xr(()=>new yt(i=>{const s=r.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((S,F)=>s.setRequestHeader(S,F.join(","))),t.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const S=t.detectContentTypeHeader();null!==S&&s.setRequestHeader("Content-Type",S)}if(t.responseType){const S=t.responseType.toLowerCase();s.responseType="json"!==S?S:"text"}const a=t.serializeBody();let c=null;const u=()=>{if(null!==c)return c;const S=s.statusText||"OK",F=new fr(s.getAllResponseHeaders()),z=function w6(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||t.url;return c=new Id({headers:F,status:s.status,statusText:S,url:z}),c},d=()=>{let{headers:S,status:F,statusText:z,url:P}=u(),fe=null;F!==Uc.NoContent&&(fe=typeof s.response>"u"?s.responseText:s.response),0===F&&(F=fe?Uc.Ok:0);let Me=F>=200&&F<300;if("json"===t.responseType&&"string"==typeof fe){const ke=fe;fe=fe.replace(D6,"");try{fe=""!==fe?JSON.parse(fe):null}catch(wt){fe=ke,Me&&(Me=!1,fe={error:wt,text:fe})}}Me?(i.next(new Ri({body:fe,headers:S,status:F,statusText:z,url:P||void 0})),i.complete()):i.error(new Ws({error:fe,headers:S,status:F,statusText:z,url:P||void 0}))},f=S=>{const{url:F}=u(),z=new Ws({error:S,status:s.status||0,statusText:s.statusText||"Unknown Error",url:F||void 0});i.error(z)};let y=!1;const _=S=>{y||(i.next(u()),y=!0);let F={type:ti.DownloadProgress,loaded:S.loaded};S.lengthComputable&&(F.total=S.total),"text"===t.responseType&&s.responseText&&(F.partialText=s.responseText),i.next(F)},b=S=>{let F={type:ti.UploadProgress,loaded:S.loaded};S.lengthComputable&&(F.total=S.total),i.next(F)};return s.addEventListener("load",d),s.addEventListener("error",f),s.addEventListener("timeout",f),s.addEventListener("abort",f),t.reportProgress&&(s.addEventListener("progress",_),null!==a&&s.upload&&s.upload.addEventListener("progress",b)),s.send(a),i.next({type:ti.Sent}),()=>{s.removeEventListener("error",f),s.removeEventListener("abort",f),s.removeEventListener("load",d),s.removeEventListener("timeout",f),t.reportProgress&&(s.removeEventListener("progress",_),null!==a&&s.upload&&s.upload.removeEventListener("progress",b)),s.readyState!==s.DONE&&s.abort()}})))}static#e=this.\u0275fac=function(r){return new(r||e)(Ee(xb))};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac})}return e})();const tm=new de(""),Ax=new de("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Tx=new de("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Nx{}let E6=(()=>{class e{constructor(t,r,o){this.doc=t,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=fb(t,this.cookieName),this.lastCookieString=t),this.lastToken}static#e=this.\u0275fac=function(r){return new(r||e)(Ee(er),Ee(Bo),Ee(Ax))};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac})}return e})();function x6(e,n){const t=e.url.toLowerCase();if(!te(tm)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const r=te(Nx).getToken(),o=te(Tx);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),n(e)}var ni=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(ni||{});function M6(...e){const n=[a6,Ix,Mx,{provide:xd,useExisting:Mx},{provide:Md,useExisting:Ix},{provide:jc,useValue:x6,multi:!0},{provide:tm,useValue:!0},{provide:Nx,useClass:E6}];for(const t of e)n.push(...t.\u0275providers);return function ku(e){return{\u0275providers:e}}(n)}const Rx=new de("");function S6(){return function Oi(e,n){return{\u0275kind:e,\u0275providers:n}}(ni.LegacyInterceptors,[{provide:Rx,useFactory:g6},{provide:jc,useExisting:Rx,multi:!0}])}let I6=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=fo({type:e});static#n=this.\u0275inj=Rr({providers:[M6(S6())]})}return e})();var Un=T(543),F6=T(413);class Ie{static toBase64(n){return typeof btoa<"u"?btoa(this.decode_latin1(n)):Buffer.from(this.decode_latin1(n),"latin1").toString("base64")}static fromBase64(n){return typeof btoa<"u"?this.encode_latin1(atob(n)):this.encode_latin1(Buffer.from(n,"base64").toString("latin1"))}static encode_latin1(n){const t=new Uint8Array(n.length);for(let r=0;r<n.length;r++){const o=n.charCodeAt(r);if((255&o)!==o)throw{message:"Cannot encode string in Latin1",str:n};t[r]=255&o}return t}static decode_latin1(n){const t=[];for(let r=0;r<n.length;r++)t.push(String.fromCharCode(n[r]));return t.join("")}static toObject(n){return Array.from(n).reduce((t,[r,o])=>Object.assign(t,{[r]:o}),{})}}class P6{constructor(){this.crypto_secretbox_KEYBYTES=Un.secretbox.keyLength,this.crypto_box_NONCEBYTES=Un.box.nonceLength}crypto_secretbox_random_nonce(){return v(function*(){return(0,Un.randomBytes)(Un.secretbox.nonceLength)})()}crypto_secretbox(n,t,r){return v(function*(){return(0,Un.secretbox)(n,t,r)})()}crypto_secretbox_open(n,t,r){return v(function*(){return Un.secretbox.open(n,t,r)})()}crypto_box(n,t,r,o){return v(function*(){return(0,Un.box)(n,t,r,o)})()}crypto_box_open(n,t,r,o){return v(function*(){return Un.box.open(n,t,r,o)})()}crypto_box_random_nonce(){return v(function*(){return(0,Un.randomBytes)(Un.box.nonceLength)})()}crypto_box_keypair(){return v(function*(){const n=Un.box.keyPair();return{boxPk:n.publicKey,boxSk:n.secretKey}})()}crypto_box_keypair_from_raw_sk(n){return v(function*(){const t=Un.box.keyPair.fromSecretKey(n);return{boxPk:t.publicKey,boxSk:t.secretKey}})()}crypto_box_keypair_from_seed(n){var t=this;return v(function*(){return t.crypto_box_keypair_from_raw_sk((0,Un.hash)(n).subarray(0,Un.box.secretKeyLength))})()}crypto_hash_sha256(n){var t=this;return v(function*(){return t.from_hex((0,F6.sha256)(n))})()}random_bytes(n){return v(function*(){return(0,Un.randomBytes)(n)})()}encode_latin1(n){return v(function*(){return Ie.encode_latin1(n)})()}decode_latin1(n){return v(function*(){return Ie.decode_latin1(n)})()}encode_utf8(n){var t=this;return v(function*(){return t.encode_latin1(unescape(encodeURIComponent(n)))})()}decode_utf8(n){var t=this;return v(function*(){return decodeURIComponent(escape(yield t.decode_latin1(n)))})()}to_hex(n){return v(function*(){const t=[];for(let r=0;r<n.length;r++){const o="0123456789abcdef";t.push(o[n[r]>>4&15]),t.push(o[15&n[r]])}return t.join("")})()}from_hex(n){return v(function*(){const t=new Uint8Array(n.length/2);for(let r=0;r<n.length/2;r++)t[r]=parseInt(n.substr(2*r,2),16);return t})()}h2(n){var t=this;return v(function*(){n instanceof Uint8Array||(n=yield t.encode_latin1(n));const o=new Uint8Array(64+n.length);return o.fill(0),o.set(n,64),t.crypto_hash_sha256(yield t.crypto_hash_sha256(o))})()}}class Mr{constructor(){}static setDefaultInstance(){return this.setInstance(new P6)}static setInstance(n){if(this.driverInstance)throw new Error("[NaCl] NaCl driver has been already set, it is supposed to be set only once");return this.driverInstance=n,!0}static getInstance(){if(!this.driverInstance)throw new Error("[NaCl] NaCl instance is not yet set");return this.driverInstance}}const So_NONCE_TAG="__nc",So_SKEY_TAG="storage_key",So_STORAGE_ROOT=".v1.stor.vlt12",So_RELAY_TOKEN_LEN=32,So_RELAY_TOKEN_TIMEOUT=27e4,So_RELAY_SESSION_TIMEOUT=117e4,So_RELAY_AJAX_TIMEOUT=5e3;class k6{constructor(n="storage."){this.rootTag=`__glow.${n}`}get(n){var t=this;return v(function*(){return(yield t.getMultiple([n]))[0]})()}getMultiple(n){var t=this;return v(function*(){return n.map(r=>localStorage.getItem(t.tag(r))||null)})()}set(n,t){var r=this;return v(function*(){return r.setMultiple({[n]:t})})()}setMultiple(n){var t=this;return v(function*(){for(const r in n){const o=n[r];null!==o&&localStorage.setItem(t.tag(r),o)}})()}remove(n){var t=this;return v(function*(){t.removeMultiple([n])})()}removeMultiple(n){var t=this;return v(function*(){n.forEach(r=>localStorage.removeItem(t.tag(r)))})()}tag(n){return`${this.rootTag}.${n}`}}class Td{constructor(n,t){const r=Mr.getInstance();this.nacl=r,this.driver=n,this.id=t?`.${t}${So_STORAGE_ROOT}`:So_STORAGE_ROOT}static new(n){var t=this;return v(function*(){const r=t.getStorageDriver(),o=new Td(r,n),i=o.addPrefix(So_SKEY_TAG),s=yield r.get(i);if(s){const{key:a}=JSON.parse(s);o.storageKey=Ie.fromBase64(a)}else o.storageKey=yield o.nacl.random_bytes(o.nacl.crypto_secretbox_KEYBYTES),yield r.set(i,JSON.stringify({key:Ie.toBase64(o.storageKey)}));return o})()}static getStorageDriver(){if(this.storageDriver)return this.storageDriver;throw new Error("[CryptoStorage] StorageDriver instance is not yet set")}static setDefaultStorageDriver(){return this.setStorageDriver(new k6)}static setStorageDriver(n){if(this.storageDriver)throw new Error("[CryptoStorage] StorageDriver has been already set, it is supposed to be set only once");return this.storageDriver=n,!0}save(n,t){var r=this;return v(function*(){if(!r.driver)throw new Error("[CryptoStorage] Storage driver is not set");if(!r.storageKey)throw new Error("[CryptoStorage] Storage key is not set");const o=JSON.stringify(t),i=yield r.nacl.encode_utf8(o),s=yield r.nacl.crypto_secretbox_random_nonce(),a=yield r.nacl.crypto_secretbox(i,s,r.storageKey);return yield r.driver.setMultiple({[r.addPrefix(n)]:Ie.toBase64(a),[r.addNonceTag(n)]:Ie.toBase64(s)}),!0})()}get(n){var t=this;return v(function*(){if(!t.driver)throw new Error("[CryptoStorage] Storage driver is not set");if(!t.storageKey)throw new Error("[CryptoStorage] Storage key is not set");const[r,o]=yield t.driver.getMultiple([t.addPrefix(n),t.addNonceTag(n)]);if(!r||!o)return null;const i=Ie.fromBase64(r),s=Ie.fromBase64(o),a=yield t.nacl.crypto_secretbox_open(i,s,t.storageKey);if(a){const c=yield t.nacl.decode_utf8(a);return JSON.parse(c)}throw new Error("[CryptoStorage] crypto_secretbox_open: decryption error")})()}remove(n){var t=this;return v(function*(){if(!t.driver)throw new Error("[CryptoStorage] Storage driver is not set");return yield t.driver.removeMultiple([t.addPrefix(n),t.addNonceTag(n)]),!0})()}selfDestruct(){var n=this;return v(function*(){if(!n.driver)throw new Error("[CryptoStorage] Storage driver is not set");yield n.driver.remove(n.addPrefix(So_SKEY_TAG))})()}addPrefix(n){return this.id?n+this.id:n}addNonceTag(n){return this.addPrefix(`${So_NONCE_TAG}.${n}`)}}class Bc{constructor(n){if(this.keys=n,"string"==typeof n){const{boxPk:t,boxSk:r}=JSON.parse(n);this.keyPair={boxPk:Ie.fromBase64(t),boxSk:Ie.fromBase64(r)}}else this.keyPair=n}static isEqual(n,t){return n.toString()===t.toString()}toString(){return JSON.stringify({boxPk:this.publicKey,boxSk:this.privateKey})}get publicKey(){return Ie.toBase64(this.keyPair.boxPk)}get privateKey(){return Ie.toBase64(this.keyPair.boxSk)}}const nm="__::commKey::__";let jx=(()=>{class e{constructor(t,r,o){this.guestKeys=new Map,this.nacl=t,this.storage=r,this.commKey=o}static new(t){return v(function*(){const r=Mr.getInstance(),o=yield Td.new(t),i=yield e.getCommKeyOrCreate(r,o),s=new e(r,o,i);return yield s.loadGuestKeys(),s})()}static fromBackup(t,r){return v(function*(){const o=JSON.parse(r),i=Ie.fromBase64(o[nm]),s=yield e.new(t);yield s.setCommFromSecKey(i);for(const[a,c]of Object.entries(o))a!==nm&&(yield s.addGuest(a,c));return s})()}getNumberOfGuests(){return this.guestKeys.size}get guests(){return this.guestKeys}getPubCommKey(){return this.commKey.publicKey}getPrivateCommKey(){return this.commKey.privateKey}getHpk(){var t=this;return v(function*(){const r=yield t.nacl.h2(Ie.fromBase64(t.commKey.publicKey));return Ie.toBase64(r)})()}getTagByHpk(t){for(const[r,o]of this.guestKeys)if(o.hpk===t)return r;return null}getGuestKey(t){const r=this.guestKeys.get(t);return r?r.pk:null}backup(){var t=this;return v(function*(){const r={[nm]:t.commKey.privateKey};if(t.getNumberOfGuests()>0)for(const[o,i]of t.guestKeys)o&&i&&(r[o]=i.pk);return JSON.stringify(r)})()}setCommFromSeed(t){var r=this;return v(function*(){r.commKey=new Bc(yield r.nacl.crypto_box_keypair_from_seed(t)),yield r.storage.save(e.commKeyTag,r.commKey.toString())})()}setCommFromSecKey(t){var r=this;return v(function*(){r.commKey=new Bc(yield r.nacl.crypto_box_keypair_from_raw_sk(t)),yield r.storage.save(e.commKeyTag,r.commKey.toString())})()}addGuest(t,r){var o=this;return v(function*(){const i=Ie.toBase64(yield o.nacl.h2(Ie.fromBase64(r)));return o.guestKeys.set(t,{pk:r,hpk:i}),yield o.saveGuests(),i})()}removeGuest(t){var r=this;return v(function*(){return r.guestKeys.has(t)&&(r.guestKeys.delete(t),yield r.saveGuests()),!0})()}loadGuestKeys(){var t=this;return v(function*(){const r=yield t.storage.get(e.guestRegistryTag);if(r){if("object"!=typeof r)throw new Error("[Keyring] Guest keys is not an object");t.guestKeys=new Map(Object.entries(r))}})()}saveGuests(){var t=this;return v(function*(){yield t.storage.save(e.guestRegistryTag,Ie.toObject(t.guestKeys.entries()))})()}static getCommKeyOrCreate(t,r){return v(function*(){const o=yield r.get(e.commKeyTag);if(o&&"string"==typeof o)return new Bc(o);{const i=yield t.crypto_box_keypair(),s=new Bc(i);return yield r.save(e.commKeyTag,s.toString()),s}})()}selfDestruct(){var t=this;return v(function*(){yield t.storage.remove(e.guestRegistryTag),yield t.storage.remove(e.commKeyTag),yield t.storage.selfDestruct()})()}}return e.commKeyTag="comm_key",e.guestRegistryTag="guest_registry",e})();class Io{constructor(){}static encodeMessage(n,t,r,o){var i=this;return v(function*(){const s=Mr.getInstance(),a=yield i.makeNonce(o),c=yield s.crypto_box(n,a,t,r);return{nonce:Ie.toBase64(a),ctext:Ie.toBase64(c)}})()}static decodeMessage(n,t,r,o){return v(function*(){const i=Mr.getInstance(),s=yield i.crypto_box_open(t,n,r,o);return s&&(yield i.decode_utf8(s))})()}static encodeMessageSymmetric(n,t){return v(function*(){const r=Mr.getInstance(),o=yield Io.makeNonce(),i=yield r.crypto_secretbox(n,o,t);return{nonce:Ie.toBase64(o),ctext:Ie.toBase64(i)}})()}static decodeMessageSymmetric(n,t,r){return v(function*(){return yield Mr.getInstance().crypto_secretbox_open(Ie.fromBase64(t),Ie.fromBase64(n),r)})()}static makeNonce(n){var t=this;return v(function*(){const r=Mr.getInstance(),o=yield r.crypto_box_random_nonce();let i;if(o.length!==r.crypto_box_NONCEBYTES)throw new Error("[Mailbox] Wrong crypto_box nonce length");i=8;const s=t.itoa(Math.floor(Date.now()/1e3));if(n&&(i+=4),o.fill(0,0,i),o.set(s,8-s.length),n){const a=t.itoa(n);o.set(a,12-a.length)}return o})()}static itoa(n){let t=n.toString(16);t=1&t.length?`0${t}`:t;const o=new Uint8Array(t.length/2);for(let i=0,s=0;s<t.length;s+=2,i++)o[i]=parseInt(t[s]+t[s+1],16);return o}}var Mn=function(e){return e.count="count",e.upload="upload",e.download="download",e.messageStatus="messageStatus",e.delete="delete",e.startFileUpload="startFileUpload",e.uploadFileChunk="uploadFileChunk",e.downloadFileChunk="downloadFileChunk",e.fileStatus="fileStatus",e.deleteFile="deleteFile",e}(Mn||{}),Ks=function(e){return e.message="message",e.file="file",e.plain="plain",e}(Ks||{}),V6=T(933),U6=T.n(V6);class j6 extends Error{constructor(n){super(`NetworkError status: ${n}`),this.status=n,this.name="NetworkError"}}class B6{constructor(n){this.url=n,this.difficulty=0,this.nacl=Mr.getInstance()}get isConnected(){return!(!this.sessionKeys||!this.publicKey)}openConnection(){var n=this;return v(function*(){n.sessionKeys=new Bc(yield n.nacl.crypto_box_keypair()),n.clientToken=yield n.nacl.random_bytes(So_RELAY_TOKEN_LEN);const t=yield n.fetchRelayToken();return n.publicKey=yield n.fetchRelayPublicKey(t),{h2Signature:yield n.getSignature(t,n.sessionKeys),relayPublicKey:n.publicKey}})()}fetchRelayToken(){var n=this;return v(function*(){if(!n.clientToken)throw new Error("[Relay] clientToken is required please openConnection first");const t=yield n.httpCall("start_session",Ie.toBase64(n.clientToken));n.scheduleTokenExpiration();const[r,o]=n.parseResponse("start_session",t);return n.difficulty=parseInt(o,10),n.difficulty>10&&console.log(`[Relay] ${n.url} requested difficulty ${n.difficulty}. Session handshake may take longer.`),Ie.fromBase64(r)})()}fetchRelayPublicKey(n){var t=this;return v(function*(){if(!t.clientToken)throw new Error("[Relay] clientToken is required please openConnection first");const r=Ie.toBase64(yield t.nacl.h2(t.clientToken)),o=new Uint8Array([...t.clientToken,...n]);let i;i=0===t.difficulty?yield t.nacl.h2(o):yield t.ensureNonceDifficulty(o);const s=yield t.httpCall("verify_session",r,Ie.toBase64(i));return Ie.fromBase64(s)})()}prove(n){var t=this;return v(function*(){if(!t.clientToken)throw new Error("[Relay] clientToken is required please openConnection first");if(!t.sessionKeys)throw new Error("[Relay] No session key found, open the connection first");const r=Ie.toBase64(yield t.nacl.h2(t.clientToken)),o=yield t.httpCall("prove",r,t.sessionKeys.publicKey,n.nonce,n.ctext);return t.scheduleSessionExpiration(),o})()}encodeMessage(n){var t=this;return v(function*(){var r;if(!t.publicKey)throw new Error("[Relay] No relay public key found, open the connection first");if(!t.sessionKeys)throw new Error("[Relay] No session key found, open the connection first");return yield Io.encodeMessage(yield t.nacl.encode_utf8(n),t.publicKey,Ie.fromBase64(null===(r=t.sessionKeys)||void 0===r?void 0:r.privateKey))})()}decodeMessage(n,t){var r=this;return v(function*(){const o=r.publicKey;if(!o)throw new Error("[Relay] No relay public key found, open the connection first");if(!r.sessionKeys)throw new Error("[Relay] No session key found, open the connection first");const i=yield Io.decodeMessage(Ie.fromBase64(n),Ie.fromBase64(t),o,Ie.fromBase64(r.sessionKeys.privateKey));if(null===i)throw new Error("[Relay] failed to decode message");return JSON.parse(i)})()}runCmd(n,t,r,o){var i=this;return v(function*(){if(!Object.keys(Mn).includes(n))throw new Error(`[Relay] ${i.url} doesn't support command ${n}`);const s=[t,r.nonce,r.ctext];o&&s.push(o);const a=yield i.httpCall("command",...s);return i.parseResponse(n,a)})()}getSignature(n,t){var r=this;return v(function*(){if(!r.clientToken)throw new Error("[Relay] clientToken is required please openConnection first");const o=Ie.fromBase64(t.publicKey),i=new Uint8Array([...o,...n,...r.clientToken]);return yield r.nacl.h2(i)})()}httpCall(n,...t){var r=this;return v(function*(){var o,i;const s={url:`${r.url}/${n}`,method:"post",headers:{Accept:"text/plain","Content-Type":"text/plain"},data:t.join("\r\n"),responseType:"text",timeout:So_RELAY_AJAX_TIMEOUT};let a;try{a=yield U6()(s)}catch(c){if(c.isAxiosError){const u=c;throw 401===(null===(o=u.response)||void 0===o?void 0:o.status)&&(r.clearSession(),r.clearToken()),new j6((null===(i=u.response)||void 0===i?void 0:i.status)||0)}throw c}return String(a.data)})()}parseResponse(n,t){const r=t.split("\r\n");if(!t||!this.validateResponse(n,r.length))throw console.log(r),new Error(`[Relay] ${this.url} - ${n}: Bad response`);return r}validateResponse(n,t){switch(n){case Mn.upload:case Mn.messageStatus:case Mn.delete:return 1===t;case Mn.downloadFileChunk:return 3===t;default:return 2===t}}scheduleTokenExpiration(){this.tokenExpirationTimeoutHandle&&clearTimeout(this.tokenExpirationTimeoutHandle),this.tokenExpirationTimeoutHandle=setTimeout(()=>this.clearToken(),So_RELAY_TOKEN_TIMEOUT)}clearToken(){this.tokenExpirationTimeoutHandle&&clearTimeout(this.tokenExpirationTimeoutHandle),this.clientToken&&delete this.clientToken}scheduleSessionExpiration(){this.sessionExpirationTimeoutHandle&&clearTimeout(this.sessionExpirationTimeoutHandle),this.sessionExpirationTimeoutHandle=setTimeout(()=>{this.clearSession()},So_RELAY_SESSION_TIMEOUT)}clearSession(){this.sessionExpirationTimeoutHandle&&clearTimeout(this.sessionExpirationTimeoutHandle),this.sessionKeys&&delete this.sessionKeys}ensureNonceDifficulty(n){var t=this;return v(function*(){let r,o;do{r=yield t.nacl.random_bytes(32),o=yield t.nacl.h2(new Uint8Array([...n,...r]))}while(!t.arrayZeroBits(o));return r})()}arrayZeroBits(n){let t,r=this.difficulty;for(let o=0;o<=1+this.difficulty/8;o++){if(t=n[o],r<=0)return!0;if(!(r>8))return this.firstZeroBits(t,r);if(r-=8,t>0)return!1}return!1}firstZeroBits(n,t){return n===n>>t<<t}}class H6{constructor(){this.relays={}}getInstance(n){let t=this.relays[n];return t||(t=this.relays[n]=new B6(n)),t}}new Error("timeout while waiting for mutex to become available"),new Error("mutex already locked");const G6=new Error("request for lock canceled");var Bx=function(e,n,t,r){return new(t||(t=Promise))(function(i,s){function a(d){try{u(r.next(d))}catch(f){s(f)}}function c(d){try{u(r.throw(d))}catch(f){s(f)}}function u(d){d.done?i(d.value):function o(i){return i instanceof t?i:new t(function(s){s(i)})}(d.value).then(a,c)}u((r=r.apply(e,n||[])).next())})};class q6{constructor(n,t=G6){if(this._maxConcurrency=n,this._cancelError=t,this._queue=[],this._waiters=[],n<=0)throw new Error("semaphore must be initialized to a positive value");this._value=n}acquire(){const n=this.isLocked(),t=new Promise((r,o)=>this._queue.push({resolve:r,reject:o}));return n||this._dispatch(),t}runExclusive(n){return Bx(this,void 0,void 0,function*(){const[t,r]=yield this.acquire();try{return yield n(t)}finally{r()}})}waitForUnlock(){return Bx(this,void 0,void 0,function*(){return this.isLocked()?new Promise(t=>this._waiters.push({resolve:t})):Promise.resolve()})}isLocked(){return this._value<=0}release(){if(this._maxConcurrency>1)throw new Error("this method is unavailable on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){const n=this._currentReleaser;this._currentReleaser=void 0,n()}}cancel(){this._queue.forEach(n=>n.reject(this._cancelError)),this._queue=[]}_dispatch(){const n=this._queue.shift();if(!n)return;let t=!1;this._currentReleaser=()=>{t||(t=!0,this._value++,this._resolveWaiters(),this._dispatch())},n.resolve([this._value--,this._currentReleaser])}_resolveWaiters(){this._waiters.forEach(n=>n.resolve()),this._waiters=[]}}class K6{constructor(n){this._semaphore=new q6(1,n)}acquire(){return e=this,n=void 0,r=function*(){const[,n]=yield this._semaphore.acquire();return n},new((t=void 0)||(t=Promise))(function(i,s){function a(d){try{u(r.next(d))}catch(f){s(f)}}function c(d){try{u(r.throw(d))}catch(f){s(f)}}function u(d){d.done?i(d.value):function o(i){return i instanceof t?i:new t(function(s){s(i)})}(d.value).then(a,c)}u((r=r.apply(e,n||[])).next())});var e,n,t,r}runExclusive(n){return this._semaphore.runExclusive(()=>n())}isLocked(){return this._semaphore.isLocked()}waitForUnlock(){return this._semaphore.waitForUnlock()}release(){this._semaphore.release()}cancel(){return this._semaphore.cancel()}}class Ys{constructor(n,t,r){this.relayFactory=new H6,this.relayConnectionMutexes=new Map,this.nacl=n,this.keyRing=t,this.identity=r}static new(n){return v(function*(){return new Ys(Mr.getInstance(),yield jx.new(n),n)})()}static fromSeed(n,t){var r=this;return v(function*(){const o=yield r.new(n);return t instanceof Uint8Array||(t=Ie.encode_latin1(t)),yield o.keyRing.setCommFromSeed(t),o})()}static fromSecKey(n,t){var r=this;return v(function*(){const o=yield r.new(n);return t instanceof Uint8Array||(t=Ie.fromBase64(t)),yield o.keyRing.setCommFromSecKey(t),o})()}static fromBackup(n,t){return v(function*(){return new Ys(Mr.getInstance(),yield jx.fromBackup(n,t),n)})()}upload(n,t,r,o=!0){var i=this;return v(function*(){const s=yield i.prepareRelay(n),a=i.getGuestKey(t),c=o?yield i.encodeMessage(t,r):r,u=Ie.toBase64(yield i.nacl.h2(Ie.fromBase64(a))),[d]=yield i.runRelayCommand(s,Mn.upload,{to:u,payload:c});return d})()}download(n){var t=this;return v(function*(){const r=yield t.prepareRelay(n),o=yield t.runRelayCommand(r,Mn.download),i=yield t.decryptResponse(r,o),s=[];for(const a of i){const c=t.keyRing.getTagByHpk(a.from);if(c)if("message"===a.kind)s.push(yield t.parseTextMessage(a,c));else{if("file"!==a.kind)throw new Error("[Mailbox] download - Unknown message type");s.push(yield t.parseFileMessage(a,c))}else s.push(yield t.parsePlainMessage(a))}return s})()}parsePlainMessage({data:n,time:t,from:r,nonce:o}){return v(function*(){return{data:n,time:t,from:r,nonce:o,kind:Ks.plain}})()}parseFileMessage(n,t){var r=this;return v(function*(){const{nonce:o,ctext:i,uploadID:s}=JSON.parse(n.data),a=yield r.decodeMessage(t,o,i);if(null===a)throw new Error("[Mailbox] Failed to decode file message");return{data:JSON.parse(a),time:n.time,senderTag:t,uploadID:s,nonce:o,kind:Ks.file}})()}parseTextMessage(n,t){var r=this;return v(function*(){let o=yield r.decodeMessage(t,n.nonce,n.data);return o||(o=n.data),{data:o,time:n.time,senderTag:t,nonce:n.nonce,kind:Ks.message}})()}count(n){var t=this;return v(function*(){const r=yield t.prepareRelay(n),o=yield t.runRelayCommand(r,Mn.count);return yield t.decryptResponse(r,o)})()}delete(n,t){var r=this;return v(function*(){const o=yield r.prepareRelay(n),[i]=yield r.runRelayCommand(o,Mn.delete,{payload:t});return parseInt(i,10)})()}messageStatus(n,t){var r=this;return v(function*(){const o=yield r.prepareRelay(n),[i]=yield r.runRelayCommand(o,Mn.messageStatus,{token:t});return parseInt(i,10)})()}startFileUpload(n,t,r){var o=this;return v(function*(){const i=yield o.prepareRelay(n),s=o.getGuestKey(t),a=Ie.toBase64(yield o.nacl.h2(Ie.fromBase64(s))),c=yield o.nacl.random_bytes(o.nacl.crypto_secretbox_KEYBYTES);r.skey=Ie.toBase64(c);const u=yield o.encodeMessage(t,JSON.stringify(r)),d=yield o.runRelayCommand(i,Mn.startFileUpload,{to:a,file_size:r.orig_size,metadata:u}),f=yield o.decryptResponse(i,d);return f.skey=c,f})()}uploadFileChunk(n,t,r,o,i,s){var a=this;return v(function*(){const c=yield a.prepareRelay(n),u=yield Io.encodeMessageSymmetric(r,s),d=yield a.runRelayCommand(c,Mn.uploadFileChunk,{uploadID:t,part:o,last_chunk:i-1===o,nonce:u.nonce},u.ctext);return yield a.decryptResponse(c,d)})()}getFileStatus(n,t){var r=this;return v(function*(){const o=yield r.prepareRelay(n),i=yield r.runRelayCommand(o,Mn.fileStatus,{uploadID:t});return yield r.decryptResponse(o,i)})()}getFileMetadata(n,t){var r=this;return v(function*(){const i=(yield r.download(n)).filter(s=>"file"===s.kind).find(s=>s.uploadID===t);return i?.data})()}downloadFileChunk(n,t,r,o){var i=this;return v(function*(){o instanceof Uint8Array||(o=Ie.fromBase64(o));const s=yield i.prepareRelay(n),a=yield i.runRelayCommand(s,Mn.downloadFileChunk,{uploadID:t,part:r}),[c,u,d]=a,f=yield s.decodeMessage(c,u);return yield Io.decodeMessageSymmetric(f.nonce,d,o)})()}deleteFile(n,t){var r=this;return v(function*(){const o=yield r.prepareRelay(n),i=yield r.runRelayCommand(o,Mn.deleteFile,{uploadID:t});return yield r.decryptResponse(o,i)})()}connectToRelay(n){var t=this;return v(function*(){const r=t.relayFactory.getInstance(n),o=yield r.openConnection(),i=yield t.encryptSignature(o),s=yield r.prove(yield r.encodeMessage(JSON.stringify({pub_key:t.keyRing.getPubCommKey(),nonce:i.nonce,ctext:i.ctext})));return parseInt(s,10)})()}clearSession(n){const t=this.relayFactory.getInstance(n);t.clearToken(),t.clearSession()}encryptSignature(n){var t=this;return v(function*(){const r=Ie.fromBase64(t.keyRing.getPrivateCommKey());return yield Io.encodeMessage(n.h2Signature,n.relayPublicKey,r)})()}prepareRelay(n){var t=this;return v(function*(){const r=t.relayFactory.getInstance(n);return yield t.getRelayConnectionMutex(n).runExclusive(v(function*(){r.isConnected||(yield t.connectToRelay(n))})),r})()}runRelayCommand(n,t,r,o){var i=this;return v(function*(){r=Object.assign({cmd:t},r);const s=yield i.keyRing.getHpk(),a=yield n.encodeMessage(JSON.stringify(r));return yield n.runCmd(t,s,a,o)})()}decryptResponse(n,t){return v(function*(){const[r,o]=t;return yield n.decodeMessage(r,o)})()}encodeMessage(n,t){var r=this;return v(function*(){const o=r.getGuestKey(n),i=r.keyRing.getPrivateCommKey();return yield Io.encodeMessage(yield r.nacl.encode_utf8(t),Ie.fromBase64(o),Ie.fromBase64(i))})()}decodeMessage(n,t,r){var o=this;return v(function*(){const i=o.getGuestKey(n),s=o.keyRing.getPrivateCommKey();let a;try{a=Ie.fromBase64(r)}catch{return null}return yield Io.decodeMessage(Ie.fromBase64(t),a,Ie.fromBase64(i),Ie.fromBase64(s))})()}getGuestKey(n){const t=this.keyRing.getGuestKey(n);if(!t)throw new Error(`[Mailbox] Unknown guest ${n}`);return t}selfDestruct(){var n=this;return v(function*(){yield n.keyRing.selfDestruct()})()}getRelayConnectionMutex(n){return this.relayConnectionMutexes.has(n)||this.relayConnectionMutexes.set(n,new K6),this.relayConnectionMutexes.get(n)}}let Z6=(()=>{class e{transform(t){return null!=t?t.replace(/[^\w\s]/gi,""):""}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275pipe=Tn({name:"nonce",type:e,pure:!0})}return e})();function X6(e,n){if(1&e&&(Q(0,"div",20)(1,"label",21),pe(2,"Relay URL"),oe(),hn(3,"input",22),oe()),2&e){const t=ze();me(3),Ye("value",t.relayURL)}}function J6(e,n){if(1&e){const t=cn();Q(0,"div",20)(1,"label",23),pe(2,"Relay URL"),oe(),Q(3,"input",24),Ze("ngModelChange",function(o){return xt(t),Mt(ze().editingURL=o)}),oe()()}if(2&e){const t=ze();me(3),Ye("ngModel",t.editingURL)}}function Q6(e,n){if(1&e){const t=cn();Q(0,"button",25),Ze("click",function(){return xt(t),Mt(ze().updateRelay())}),pe(1,"Save"),oe()}}function e8(e,n){1&e&&hn(0,"span",32)}const t8=(e,n)=>({"bg-success":e,"bg-secondary":n});function n8(e,n){if(1&e){const t=cn();Q(0,"li",33),Ze("click",function(){const i=xt(t).$implicit,s=ze(2);return s.selectMailbox(i),Mt(s.viewMailboxSubscreen="inbox")}),pe(1),Q(2,"span",34),pe(3),oe()()}if(2&e){const t=n.$implicit;Wt("active",t===ze(2).activeMailbox),me(),xi(" ",t.identity," "),me(),Ye("ngClass",function zw(e,n,t,r,o){return qw(k(),On(),e,n,t,r,o)}(5,t8,t.counter>0,0===t.counter)),me(),xi(" ",t.counter,"")}}function r8(e,n){if(1&e){const t=cn();Q(0,"div")(1,"div",26)(2,"h4",27),pe(3,"Mailboxes"),oe(),Q(4,"button",28),Ze("click",function(){return xt(t),Mt(ze().refreshCounter())}),Gt(5,e8,1,0,"span",29),pe(6," Refresh "),oe()(),Q(7,"ul",30),Gt(8,n8,4,8,"li",31),oe()()}if(2&e){const t=ze();me(5),Ye("ngIf",t.showCounterLoading),me(3),Ye("ngForOf",t.mailboxes)}}function o8(e,n){if(1&e){const t=cn();Q(0,"button",35),Ze("click",function(){xt(t);const o=ze();return o.activeMailbox=null,Mt(o.showNewMailboxScreen=!0)}),pe(1," + Add "),oe()}}function i8(e,n){if(1&e){const t=cn();Q(0,"div",36)(1,"h4",37),pe(2,"Zax Dashboard"),oe(),Q(3,"div",38)(4,"p")(5,"strong"),pe(6,"Zax Dashboard"),oe(),pe(7," is a simple demo app to interact with "),Q(8,"a",39),pe(9,"Zax Relay"),oe(),pe(10,", a NaCl-based Cryptographic Relay. It uses "),Q(11,"a",40),pe(12,"Glow"),oe(),pe(13," library to provide a user-friendly access point to given relay internal mailboxes. "),oe(),Q(14,"p"),pe(15," To start, please select one of the mailboxes from the list, or "),Q(16,"a",41),Ze("click",function(){xt(t);const o=ze();return o.activeMailbox=null,Mt(o.showNewMailboxScreen=!0)}),pe(17,"create a new one"),oe(),pe(18,". "),oe()()()}}function s8(e,n){1&e&&(Q(0,"div",50),hn(1,"input",55),Q(2,"div",52),pe(3,"Sorry, the seed can't be empty"),oe()())}function a8(e,n){1&e&&(Q(0,"div",50),hn(1,"input",56),Q(2,"div",52),pe(3,"Sorry, the secret can't be empty"),oe()())}function c8(e,n){if(1&e){const t=cn();Q(0,"div")(1,"span",47),pe(2,"Mailbox created!"),oe(),Q(3,"form",48,49),Ze("submit",function(){xt(t);const o=Pn(4);return ze(2).createMailbox(null==o.form.controls.name?null:o.form.controls.name.value,null==o.form.controls.seed?null:o.form.controls.seed.value,null==o.form.controls.secret?null:o.form.controls.secret.value),Mt(o.reset())}),Q(5,"div",50),hn(6,"input",51),Q(7,"div",52),pe(8,"Sorry, the mailbox name can't be empty"),oe()(),Gt(9,s8,4,0,"div",53)(10,a8,4,0,"div",53),Q(11,"button",54),pe(12,"Add"),oe()()()}if(2&e){const t=Pn(4),r=ze(2);me(),Wt("badge-show",r.UIFlags[r.UIAction.mailboxCreated]),me(2),Wt("was-validated",t.submitted&&t.touched),me(6),Ye("ngIf","seed"===r.newMailboxSubscreen),me(),Ye("ngIf","secret"===r.newMailboxSubscreen),me(),Ye("disabled",!t.valid)}}function u8(e,n){if(1&e){const t=cn();Q(0,"div",57)(1,"div",58)(2,"select",59,60)(4,"option",61),pe(5,"2"),oe(),Q(6,"option",62),pe(7,"3"),oe(),Q(8,"option",63),pe(9,"4"),oe(),Q(10,"option",64),pe(11,"5"),oe(),Q(12,"option",65),pe(13,"10"),oe()(),Q(14,"button",66),Ze("click",function(){xt(t);const o=Pn(3);return Mt(ze(2).addMultipleMailboxes(o.value))}),pe(15," Add Multiple Mailboxes"),oe()()()}}function l8(e,n){if(1&e){const t=cn();Q(0,"div",36)(1,"div",42)(2,"h4",43),pe(3,"Add Mailbox"),oe(),Q(4,"ul",44)(5,"li",11)(6,"a",45),Ze("click",function(){return xt(t),Mt(ze().newMailboxSubscreen="new")}),pe(7,"New"),oe()(),Q(8,"li",11)(9,"a",45),Ze("click",function(){return xt(t),Mt(ze().newMailboxSubscreen="seed")}),pe(10,"From Seed"),oe()(),Q(11,"li",11)(12,"a",45),Ze("click",function(){return xt(t),Mt(ze().newMailboxSubscreen="secret")}),pe(13,"From Secret key"),oe()(),Q(14,"li",11)(15,"a",45),Ze("click",function(){return xt(t),Mt(ze().newMailboxSubscreen="multiple")}),pe(16,"Multiple"),oe()()(),Gt(17,c8,13,7,"div",16)(18,u8,16,0,"div",46),oe()()}if(2&e){const t=ze();me(6),Wt("active","new"===t.newMailboxSubscreen),me(3),Wt("active","seed"===t.newMailboxSubscreen),me(3),Wt("active","secret"===t.newMailboxSubscreen),me(3),Wt("active","multiple"===t.newMailboxSubscreen),me(2),Ye("ngIf","multiple"!==t.newMailboxSubscreen),me(),Ye("ngIf","multiple"===t.newMailboxSubscreen)}}function d8(e,n){1&e&&(Q(0,"div",79)(1,"h2",80),pe(2,"No messages"),oe()())}function f8(e,n){1&e&&hn(0,"span",32)}function h8(e,n){if(1&e&&(Q(0,"textarea",100),pe(1),oe()),2&e){const t=ze().$implicit;me(),qr(t.data)}}function p8(e,n){if(1&e){const t=cn();Q(0,"div")(1,"strong"),pe(2),oe(),Q(3,"span",101),pe(4),oe(),Q(5,"div",102)(6,"button",35),Ze("click",function(){xt(t);const o=ze().$implicit;return Mt(ze(5).downloadFile(o))}),pe(7," Download"),oe()()()}if(2&e){const t=ze().$implicit;me(2),xi("\u{1f4ce} ",t.data.name,""),me(2),xi(" (",t.data.orig_size," bytes)")}}function g8(e,n){if(1&e){const t=cn();Q(0,"tr")(1,"td")(2,"div",87)(3,"input",88),Ze("ngModelChange",function(o){return Mt(xt(t).$implicit.isSelected=o)}),oe()()(),Q(4,"td"),pe(5),oe(),Q(6,"td"),Gt(7,h8,2,1,"textarea",89)(8,p8,8,2,"div",16),Q(9,"div",90),Vl(10,"nonce"),Q(11,"table",91)(12,"tbody")(13,"tr")(14,"th",92),pe(15,"Nonce"),oe(),Q(16,"td",93),pe(17),oe()(),Q(18,"tr")(19,"th",92),pe(20,"Time"),oe(),Q(21,"td"),pe(22),Vl(23,"date"),oe()()()()()(),Q(24,"td",94)(25,"a",95),Vl(26,"nonce"),Q(27,"h4"),Mf(),Q(28,"svg",96),hn(29,"use",97),oe()(),function Ey(){!function Z1(){Ne.lFrame.currentNamespace=null}()}(),Q(30,"h4"),Mf(),Q(31,"svg",98),hn(32,"use",99),oe()()()()()}if(2&e){const t=n.$implicit,r=ze(5);me(3),Ye("ngModel",t.isSelected),me(2),qr(t.senderTag||t.from),me(2),Ye("ngIf",t.kind!==r.ZaxMessageKind.file),me(),Ye("ngIf",t.kind===r.ZaxMessageKind.file),me(),Ye("id",Lp(10,8,t.nonce)),me(8),qr(t.nonce),me(5),qr(function Zw(e,n,t,r){const o=e+Ve,i=k(),s=Wi(i,o);return Cc(i,o)?qw(i,On(),n,s.transform,t,r,s):s.transform(t,r)}(23,10,1e3*t.time,"medium")),me(3),Fl("href","#",Lp(26,13,t.nonce),"",mh)}}function m8(e,n){if(1&e){const t=cn();Q(0,"table",84)(1,"thead")(2,"tr")(3,"th")(4,"input",85),Ze("change",function(o){return xt(t),Mt(ze(4).selectAllMessages(o.target))}),oe()(),Q(5,"th"),pe(6,"From"),oe(),Q(7,"th"),pe(8,"Message"),oe(),hn(9,"th"),oe()(),Q(10,"tbody"),Gt(11,g8,33,15,"tr",86),oe()()}if(2&e){const t=ze(4);me(11),Ye("ngForOf",t.activeMailbox.messages)}}function y8(e,n){if(1&e){const t=cn();Q(0,"div",79)(1,"div",81)(2,"button",66),Ze("click",function(){xt(t);const o=ze(3);return Mt(o.getMessages(o.activeMailbox))}),Gt(3,f8,1,0,"span",29),pe(4," Fetch All"),oe(),Q(5,"button",82),Ze("click",function(){return xt(t),Mt(ze(3).deleteMessages())}),pe(6,"Delete"),oe()(),Gt(7,m8,12,1,"table",83),oe()}if(2&e){const t=ze(3);me(3),Ye("ngIf",t.showMessagesLoading),me(2),Ye("disabled",!t.hasSelectedMessages()),me(2),Ye("ngIf",!t.showMessagesLoading)}}function v8(e,n){if(1&e&&(Q(0,"div",14),Gt(1,d8,3,0,"div",78)(2,y8,8,3,"div",78),oe()),2&e){const t=ze(2);me(),Ye("ngIf",0===t.activeMailbox.counter),me(),Ye("ngIf",t.activeMailbox.counter>0)}}function _8(e,n){if(1&e&&(Q(0,"option",112),pe(1),oe()),2&e){const t=n.$implicit;Ls("value",t),me(),qr(t)}}function D8(e,n){if(1&e){const t=cn();Q(0,"div",14)(1,"div",103)(2,"span",47),pe(3,"Message sent!"),oe(),Q(4,"form",104,105),Ze("submit",function(){xt(t);const o=Pn(7),i=Pn(12),s=Pn(5);return ze(2).sendMessage(o.value,i.value),Mt(s.reset())}),Q(6,"select",106,107)(8,"option",108),pe(9,"Recipient"),oe(),Gt(10,_8,2,2,"option",109),oe(),hn(11,"textarea",110,111),Q(13,"button",54),pe(14,"Send"),oe()()()()}if(2&e){const t=Pn(5),r=ze(2);me(2),Wt("badge-show",r.UIFlags[r.UIAction.messageSent]),me(2),Wt("was-validated",t.submitted&&t.touched),me(6),Ye("ngForOf",r.activeMailbox.recipients),me(3),Ye("disabled",!t.valid)}}function w8(e,n){if(1&e&&(Q(0,"option",112),pe(1),oe()),2&e){const t=n.$implicit;Ls("value",t),me(),qr(t)}}function C8(e,n){if(1&e){const t=cn();Q(0,"div",14)(1,"div",103)(2,"span",47),pe(3,"File sent!"),oe(),Q(4,"form",104,113),Ze("submit",function(){xt(t);const o=Pn(7),i=Pn(5);return ze(2).sendFile(o.value),Mt(i.reset())}),Q(6,"select",114,115)(8,"option",108),pe(9,"Recipient"),oe(),Gt(10,w8,2,2,"option",109),oe(),Q(11,"input",116,117),Ze("change",function(o){return xt(t),Mt(ze(2).selectedFile=o.target.files.item(0))}),oe(),Q(13,"button",54),pe(14,"Send"),oe()()()()}if(2&e){const t=Pn(5),r=ze(2);me(2),Wt("badge-show",r.UIFlags[r.UIAction.fileSent]),me(2),Wt("was-validated",t.submitted&&t.touched),me(6),Ye("ngForOf",r.activeMailbox.recipients),me(3),Ye("disabled",!t.valid)}}function b8(e,n){if(1&e){const t=cn();Q(0,"div",14)(1,"div",103)(2,"span",47),pe(3,"Key added!"),oe(),Q(4,"form",104,118),Ze("submit",function(){xt(t);const o=Pn(7),i=Pn(9),s=Pn(5);return ze(2).addPublicKey(o.value,i.value),Mt(s.reset())}),hn(6,"input",119,120)(8,"input",121,122),Q(10,"button",54),pe(11,"Add"),oe()()()()}if(2&e){const t=Pn(5),r=ze(2);me(2),Wt("badge-show",r.UIFlags[r.UIAction.keyAdded]),me(2),Wt("was-validated",t.submitted&&t.touched),me(6),Ye("disabled",!t.valid)}}function E8(e,n){if(1&e){const t=cn();Q(0,"div",36)(1,"div",67)(2,"h4",27),pe(3),oe(),Q(4,"button",68),Ze("click",function(){xt(t);const o=ze();return Mt(o.deleteMailbox(o.activeMailbox))}),pe(5,"Delete Mailbox"),oe()(),Q(6,"form",69)(7,"div",70)(8,"label",71),pe(9,"Secret Key"),oe(),Q(10,"div",72),hn(11,"input",73),oe()(),Q(12,"div",14)(13,"label",74),pe(14,"Public Key"),oe(),Q(15,"div",72),hn(16,"input",75),oe()()(),Q(17,"ul",44)(18,"li",11)(19,"a",76),Ze("click",function(){return xt(t),Mt(ze().viewMailboxSubscreen="inbox")}),pe(20,"Inbox"),oe()(),Q(21,"li",11)(22,"a",45),Ze("click",function(){return xt(t),Mt(ze().viewMailboxSubscreen="sendMessage")}),pe(23,"Send a message"),oe()(),Q(24,"li",11)(25,"a",45),Ze("click",function(){return xt(t),Mt(ze().viewMailboxSubscreen="sendFile")}),pe(26,"Send a file"),oe()(),Q(27,"li",11)(28,"a",45),Ze("click",function(){return xt(t),Mt(ze().viewMailboxSubscreen="addKey")}),pe(29,"Add a public key"),oe()()(),Gt(30,v8,3,2,"div",77)(31,D8,15,6,"div",77)(32,C8,15,6,"div",77)(33,b8,12,5,"div",77),oe()}if(2&e){const t=ze();me(3),qr(t.activeMailbox.identity),me(8),Ls("value",t.activeMailbox.keyRing.getPrivateCommKey()),me(5),Ls("value",t.activeMailbox.keyRing.getPubCommKey()),me(3),Wt("active","inbox"===t.viewMailboxSubscreen),me(3),Wt("active","sendMessage"===t.viewMailboxSubscreen),me(3),Wt("active","sendFile"===t.viewMailboxSubscreen),me(3),Wt("active","addKey"===t.viewMailboxSubscreen),me(2),Ye("ngIf","inbox"===t.viewMailboxSubscreen),me(),Ye("ngIf","sendMessage"===t.viewMailboxSubscreen),me(),Ye("ngIf","sendFile"===t.viewMailboxSubscreen),me(),Ye("ngIf","addKey"===t.viewMailboxSubscreen)}}var Yr=function(e){return e[e.keyAdded=0]="keyAdded",e[e.mailboxCreated=1]="mailboxCreated",e[e.messageSent=2]="messageSent",e[e.fileSent=3]="fileSent",e}(Yr||{});let x8=(()=>{class e{constructor(){this.mailboxPrefix="_mailbox",this.mailboxes=[],this.activeMailbox=null,this.ZaxMessageKind=Ks,this.UIAction=Yr,this.UIFlags={[Yr.keyAdded]:!1,[Yr.mailboxCreated]:!1,[Yr.messageSent]:!1,[Yr.fileSent]:!1},this.isEditing=!1,this.showNewMailboxScreen=!1,this.showMessagesLoading=!1,this.showCounterLoading=!1,this.newMailboxSubscreen="new",this.viewMailboxSubscreen="inbox"}ngOnInit(){var t=this;return v(function*(){Mr.setDefaultInstance(),Td.setDefaultStorageDriver(),t.setDefaultRelay(),yield t.initMailboxes()})()}setDefaultRelay(){this.relayURL=["vault12.github.io","localhost","127.0.0.1"].includes(window.location.hostname)?"https://zt.vault12.com":window.location.origin,this.editingURL=this.relayURL}initMailboxes(){var t=this;return v(function*(){const r=Object.keys(localStorage).filter(o=>o.startsWith(t.mailboxPrefix));for(const o of r)yield t.generateMailbox(localStorage.getItem(o));r.length||(yield t.addMailbox("Alice"),yield t.addMailbox("Bob")),yield t.refreshCounter()})()}updateRelay(){var t=this;return v(function*(){t.relayURL=t.editingURL,t.isEditing=!1,yield t.refreshCounter()})()}createMailbox(t,r,o){var i=this;return v(function*(){let s=null;s=r?yield i.addMailbox(t,{seed:r}):o?yield i.addMailbox(t,{secret:o}):yield i.addMailbox(t),i.showBadge(Yr.mailboxCreated),yield i.refreshCounter([s])})()}deleteMailbox(t){var r=this;return v(function*(){r.mailboxes=r.mailboxes.filter(o=>t.identity!==o.identity);for(const o of r.mailboxes)yield o.keyRing.removeGuest(t.identity);yield t.selfDestruct(),localStorage.removeItem(`${r.mailboxPrefix}.${t.identity}`),r.activeMailbox=null})()}addMultipleMailboxes(t=5){var r=this;return v(function*(){const o=["Alice","Bob","Charlie","Chuck","Dave","Erin","Eve","Faith","Frank","Mallory","Oscar","Peggy","Pat","Sam","Sally","Sybil","Trent","Trudy","Victor","Walter","Wendy"].sort(()=>.5-Math.random()).slice(0,t),i=yield Promise.all(o.map(function(){var s=v(function*(a){return yield r.addMailbox(r.ensureUniqueName(a))});return function(a){return s.apply(this,arguments)}}()));yield r.refreshCounter(i)})()}selectMailbox(t){var r=this;return v(function*(){r.activeMailbox=t,r.activeMailbox.recipients=Array.from(t.keyRing.guests.keys()),yield r.getMessages(t)})()}addPublicKey(t,r){var o=this;return v(function*(){yield o.activeMailbox.keyRing.addGuest(t,r),o.showBadge(Yr.keyAdded),yield o.selectMailbox(o.activeMailbox)})()}refreshCounter(t){var r=this;return v(function*(){r.showCounterLoading=!0;const o=t?r.mailboxes.filter(i=>t.includes(i.identity)):r.mailboxes;for(const i of o)yield i.connectToRelay(r.relayURL),i.counter=yield i.count(r.relayURL);r.showCounterLoading=!1})()}addMailbox(t,r){var o=this;return v(function*(){t=o.ensureUniqueName(t);const i=yield o.generateMailbox(t,r);return localStorage.setItem(`${o.mailboxPrefix}.${t}`,i.identity),t})()}generateMailbox(t,r){var o=this;return v(function*(){let i=null;i=r?.seed?yield Ys.fromSeed(t,r.seed):r?.secret?yield Ys.fromSecKey(t,r.secret):yield Ys.new(t);for(const s of o.mailboxes)yield i.keyRing.addGuest(s.identity,s.keyRing.getPubCommKey()),yield s.keyRing.addGuest(i.identity,i.keyRing.getPubCommKey());return o.mailboxes.push(i),i})()}ensureUniqueName(t){const r=this.mailboxes.filter(o=>o.identity.indexOf(t)>-1).length+1;return r>1?`${t} ${r}`:t}getMessages(t){var r=this;return v(function*(){r.showMessagesLoading=!0,yield t.connectToRelay(r.relayURL),t.messages=yield t.download(r.relayURL),r.showMessagesLoading=!1})()}sendMessage(t,r){var o=this;return v(function*(){yield o.activeMailbox.connectToRelay(o.relayURL),yield o.activeMailbox.upload(o.relayURL,t,r),o.showBadge(Yr.messageSent),yield o.refreshCounter()})()}deleteMessages(){var t=this;return v(function*(){const r=t.activeMailbox.messages.filter(s=>s.isSelected),o=r.map(s=>s.nonce),i=r.filter(s=>s.kind===Ks.file).map(s=>s.uploadID);yield t.activeMailbox.connectToRelay(t.relayURL);for(const s of i)yield t.activeMailbox.deleteFile(t.relayURL,s);yield t.activeMailbox.delete(t.relayURL,o),t.activeMailbox.messages=t.activeMailbox.messages.filter(s=>!s.isSelected),t.activeMailbox.counter=Object.keys(t.activeMailbox.messages).length})()}sendFile(t){var r=this;return v(function*(){if(!r.selectedFile)return;if(r.selectedFile.size>=512e3)return void alert("Error, maximum file size is 512000 bytes");const o=new Uint8Array(yield r.selectedFile.arrayBuffer()),i={name:r.selectedFile.name,orig_size:r.selectedFile.size,modified:r.selectedFile.lastModified};yield r.activeMailbox.connectToRelay(r.relayURL);const{skey:s,uploadID:a}=yield r.activeMailbox.startFileUpload(r.relayURL,t,i);yield r.activeMailbox.uploadFileChunk(r.relayURL,a,o,0,1,s),r.showBadge(Yr.fileSent),yield r.refreshCounter()})()}downloadFile(t){var r=this;return v(function*(){yield r.activeMailbox.connectToRelay(r.relayURL);const o=yield r.activeMailbox.getFileStatus(r.relayURL,t.uploadID);"COMPLETE"!==o.status&&alert("This file is not yet ready to be downloaded, please re-upload it again");const i=new Uint8Array(o.file_size);let s=0;for(let u=0;u<o.total_chunks;u++){const d=yield r.activeMailbox.downloadFileChunk(r.relayURL,t.uploadID,u,t.data.skey);i.set(d,s),s+=d.length}const a=window.URL.createObjectURL(new Blob([i])),c=document.createElement("a");c.href=a,c.setAttribute("download",t.data.name),document.body.appendChild(c),c.click()})()}selectAllMessages(t){this.activeMailbox.messages.map(r=>r.isSelected=t.checked)}hasSelectedMessages(){return!!this.activeMailbox.messages?.find(t=>t.isSelected)}showBadge(t){this.UIFlags[t]=!0,setTimeout(()=>{this.UIFlags[t]=!1},3e3)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=af({type:e,selectors:[["app-root"]],decls:29,vars:9,consts:[[1,"navbar","navbar-expand-lg","navbar-dark","bg-primary","mb-4"],[1,"container"],["href","#",1,"navbar-brand"],["type","button","data-bs-toggle","collapse","data-bs-target","#navbar1","aria-controls","navbar1","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler","collapsed"],[1,"navbar-toggler-icon"],["id","navbar1",1,"navbar-collapse","collapse","d-lg-flex"],[1,"d-flex","flex-fill","my-3","my-lg-0"],["class","flex-fill",4,"ngIf"],["class","btn btn-success my-0 ms-2",3,"click",4,"ngIf"],[1,"btn","btn-secondary","my-0","ms-2",3,"click"],[1,"navbar-nav","flex-fill","justify-content-end","align-items-center"],[1,"nav-item"],["href","http://bit.ly/nacl_relay_spec","target","_blank",1,"nav-link"],["href","https://github.com/vault12/zax-dashboard","target","_blank",1,"nav-link"],[1,"row"],[1,"col-sm-4","col-md-3"],[4,"ngIf"],[1,"d-grid"],["type","button","class","btn btn-outline-success",3,"click",4,"ngIf"],["class","col-sm-8 col-md-9 my-5 my-sm-0",4,"ngIf"],[1,"flex-fill"],["for","relayURL",1,"visually-hidden"],["type","text","readonly","","name","relayURL","placeholder","Relay URL","id","relayURL",1,"form-control","ml-sm-4","mr-sm-2",3,"value"],["for","relayURL2",1,"visually-hidden"],["type","text","name","relayURL2","id","relayURL2","placeholder","Relay URL",1,"form-control","ml-sm-4","mr-sm-2",3,"ngModel","ngModelChange"],[1,"btn","btn-success","my-0","ms-2",3,"click"],[1,"d-flex","d-sm-block","d-xl-flex","align-items-center","mb-3"],[1,"flex-fill","mb-0"],["type","button",1,"btn","btn-success","mt-sm-2","mt-xl-0",3,"click"],["class","spinner-border spinner-border-sm","role","status","aria-hidden","true",4,"ngIf"],[1,"list-group","mb-4"],["class","list-group-item list-group-item-action d-flex justify-content-between align-items-center",3,"active","click",4,"ngFor","ngForOf"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],[1,"list-group-item","list-group-item-action","d-flex","justify-content-between","align-items-center",3,"click"],[1,"badge","rounded-pill",3,"ngClass"],["type","button",1,"btn","btn-outline-success",3,"click"],[1,"col-sm-8","col-md-9","my-5","my-sm-0"],[1,"text-center","align-middle","mt-1","mb-4"],[1,"col-lg-8","offset-lg-2","text-center"],["href","https://github.com/vault12/zax","target","_blank",1,"text-muted"],["href","https://github.com/vault12/glow.ts","target","_blank",1,"text-muted"],["href","#",3,"click"],[1,"col-md-10","offset-md-1","col-lg-8","offset-lg-2"],[1,"flex-fill","mb-4","mt-1"],[1,"nav","nav-tabs"],[1,"nav-link",3,"click"],["class","mt-4",4,"ngIf"],[1,"badge","bg-info"],["novalidate","",1,"d-grid","gap-3","needs-validation",3,"submit"],["newMailboxForm","ngForm"],[1,"input-group","has-validation"],["type","text","name","name","ngModel","","placeholder","Mailbox name","required","",1,"form-control"],[1,"invalid-feedback"],["class","input-group has-validation",4,"ngIf"],["type","submit",1,"btn","btn-success",3,"disabled"],["type","text","name","seed","ngModel","","placeholder","Seed","required","",1,"form-control"],["type","text","name","secret","ngModel","","placeholder","Secret","required","",1,"form-control"],[1,"mt-4"],[1,"d-grid","pt-3","gap-4"],[1,"form-select"],["quantity",""],["value","2"],["value","3"],["value","4"],["value","5","selected",""],["value","10"],["type","button",1,"btn","btn-success",3,"click"],[1,"d-flex","align-items-center"],[1,"btn","btn-danger",3,"click"],[1,"my-4"],[1,"row","mb-2"],["for","secretKey",1,"col-sm-3","col-form-label"],[1,"col-sm-9"],["type","text","readonly","","id","secretKey",1,"form-control-plaintext",3,"value"],["for","publicKey",1,"col-sm-3","col-form-label"],["type","text","readonly","","id","publicKey",1,"form-control-plaintext",3,"value"],[1,"nav-link","active",3,"click"],["class","row",4,"ngIf"],["class","col",4,"ngIf"],[1,"col"],[1,"text-center","mt-5","text-muted"],[1,"d-flex","align-items-center","justify-content-between","my-4"],["type","button",1,"btn","btn-danger",3,"disabled","click"],["class","table messages",4,"ngIf"],[1,"table","messages"],["type","checkbox",1,"form-check-input",3,"change"],[4,"ngFor","ngForOf"],[1,"form-check"],["type","checkbox",1,"form-check-input",3,"ngModel","ngModelChange"],["readonly","","class","form-control",4,"ngIf"],[1,"collapse",3,"id"],[1,"table","table-sm","table-borderless","mt-2","mb-0"],["scope","row"],[1,"word-break"],[1,"text-center"],["data-bs-toggle","collapse","role","button","aria-expanded","false",3,"href"],["width","24","height","24","fill","currentColor",1,"bi","bi-chevron-down"],[0,"xlink","href","bootstrap-icons.svg#chevron-down"],["width","24","height","24","fill","currentColor",1,"bi","bi-chevron-up"],[0,"xlink","href","bootstrap-icons.svg#chevron-up"],["readonly","",1,"form-control"],[1,"text-muted"],[1,"mt-2"],[1,"col-sm-6"],["novalidate","",1,"d-grid","gap-2","needs-validation",3,"submit"],["messageForm","ngForm"],["type","text","name","recipient","ngModel","","required","",1,"form-select"],["recipient",""],["value","","disabled","","selected",""],[3,"value",4,"ngFor","ngForOf"],["ngModel","","name","message","placeholder","Message","rows","3","required","",1,"form-control"],["message",""],[3,"value"],["fileForm","ngForm"],["type","text","name","fileRecipient","ngModel","","required","",1,"form-select"],["fileRecipient",""],["type","file","name","file","ngModel","","required","",1,"form-control",3,"change"],["file",""],["keyForm","ngForm"],["type","text","ngModel","","name","name","placeholder","User Name","required","",1,"form-control"],["keyName",""],["type","text","ngModel","","name","key","placeholder","Public Key (Base64)","required","",1,"form-control"],["keyKey",""]],template:function(r,o){1&r&&(Q(0,"nav",0)(1,"div",1)(2,"a",2),pe(3,"Zax Dashboard"),oe(),Q(4,"button",3),hn(5,"span",4),oe(),Q(6,"div",5)(7,"form",6),Gt(8,X6,4,1,"div",7)(9,J6,4,1,"div",7)(10,Q6,2,0,"button",8),Q(11,"button",9),Ze("click",function(){return o.isEditing=!o.isEditing}),pe(12),oe()(),Q(13,"ul",10)(14,"li",11)(15,"a",12),pe(16,"Technical spec"),oe()(),Q(17,"li",11)(18,"a",13),pe(19,"GitHub"),oe()()()()()(),Q(20,"div",1)(21,"div",14)(22,"div",15),Gt(23,r8,9,2,"div",16),Q(24,"div",17),Gt(25,o8,2,0,"button",18),oe()(),Gt(26,i8,19,0,"div",19)(27,l8,19,10,"div",19)(28,E8,34,15,"div",19),oe()()),2&r&&(me(8),Ye("ngIf",!o.isEditing),me(),Ye("ngIf",o.isEditing),me(),Ye("ngIf",o.isEditing),me(2),qr(o.isEditing?"Cancel":"Change"),me(11),Ye("ngIf",o.mailboxes.length),me(2),Ye("ngIf",o.mailboxes.length),me(),Ye("ngIf",!o.activeMailbox&&!o.showNewMailboxScreen),me(),Ye("ngIf",!o.activeMailbox&&o.showNewMailboxScreen),me(),Ye("ngIf",o.activeMailbox))},dependencies:[pb,mb,vb,XE,sx,cx,dd,Og,bd,kE,LE,Ed,qg,Cd,wb,Z6],styles:[".badge[_ngcontent-%COMP%] {\n transition: opacity 1s ease-in-out;\n margin: 5px 0;\n opacity: 0;\n}\n\n.badge.bg-info[_ngcontent-%COMP%] {\n font-size: 1.2em;\n}\n\n.list-group[_ngcontent-%COMP%] .badge[_ngcontent-%COMP%], .badge-show[_ngcontent-%COMP%] {\n opacity: 1;\n}\n\n.list-group-item[_ngcontent-%COMP%], .nav-link[_ngcontent-%COMP%] {\n cursor: pointer;\n}\n\ntable[_ngcontent-%COMP%] a[_ngcontent-%COMP%] {\n color: #999;\n}\n\ntable.messages[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:nth-child(1) {\n width: 5%;\n}\n\ntable.messages[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:nth-child(2) {\n width: 25%;\n}\n\ntable.messages[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:nth-child(4) {\n width: 5%;\n}\n\n.word-break[_ngcontent-%COMP%] {\n word-break: break-all;\n}\n\na[aria-expanded=true][_ngcontent-%COMP%] .bi-chevron-down[_ngcontent-%COMP%], a[aria-expanded=false][_ngcontent-%COMP%] .bi-chevron-up[_ngcontent-%COMP%] {\n display: none;\n}\n\na[aria-expanded=false][_ngcontent-%COMP%] .bi-chevron-down[_ngcontent-%COMP%], a[aria-expanded=true][_ngcontent-%COMP%] .bi-chevron-up[_ngcontent-%COMP%] {\n display: block;\n}\n\nh4[_ngcontent-%COMP%] {\n margin-bottom: 0;\n}"]})}return e})();function rm(...e){const n=ld(e),t=uE(e),{args:r,keys:o}=cE(e);if(0===r.length)return on([],n);const i=new yt(function S8(e,n,t=co){return r=>{zx(n,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let c=0;c<o;c++)zx(n,()=>{const u=on(e[c],n);let d=!1;u.subscribe(p(r,f=>{i[c]=f,d||(d=!0,a--),a||r.next(t(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,n,o?s=>dE(o,s):co));return t?i.pipe(lE(t)):i}function zx(e,n,t){e?xo(t,e,n):n()}const Nd=ha(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Hc(e=1/0){return xn(co,e)}function om(...e){return function I8(){return Hc(1)}()(on(e,ld(e)))}function Gx(e){return new yt(n=>{Wr(e()).subscribe(n)})}function Rd(e,n){const t=mt(e)?e:()=>e,r=o=>o.error(t());return new yt(n?o=>n.schedule(r,0,o):r)}const Ao=new yt(e=>e.complete());function im(){return g((e,n)=>{let t=null;e._refCount++;const r=p(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const o=e._connection,i=t;t=null,o&&(!i||o===i)&&o.unsubscribe(),n.unsubscribe()});e.subscribe(r),r.closed||(t=e.connect())})}class qx extends yt{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,h(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,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new un;const t=this.getSubject();n.add(this.source.subscribe(p(t,void 0,()=>{this._teardown(),t.complete()},r=>{this._teardown(),t.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=un.EMPTY)}return n}refCount(){return im()(this)}}function Zs(e){return e<=0?()=>Ao:g((n,t)=>{let r=0;n.subscribe(p(t,o=>{++r<=e&&(t.next(o),e<=r&&t.complete())}))})}function Od(e){return g((n,t)=>{let r=!1;n.subscribe(p(t,o=>{r=!0,t.next(o)},()=>{r||t.next(e),t.complete()}))})}function Wx(e=N8){return g((n,t)=>{let r=!1;n.subscribe(p(t,o=>{r=!0,t.next(o)},()=>r?t.complete():t.error(e())))})}function N8(){return new Nd}function Fi(e,n){const t=arguments.length>=2;return r=>r.pipe(e?Mo((o,i)=>e(o,i,r)):co,Zs(1),t?Od(n):Wx(()=>new Nd))}function Sn(e,n,t){const r=mt(e)||n||t?{next:e,error:n,complete:t}:e;return r?g((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(p(i,c=>{var u;null===(u=r.next)||void 0===u||u.call(r,c),i.next(c)},()=>{var c;a=!1,null===(c=r.complete)||void 0===c||c.call(r),i.complete()},c=>{var u;a=!1,null===(u=r.error)||void 0===u||u.call(r,c),i.error(c)},()=>{var c,u;a&&(null===(c=r.unsubscribe)||void 0===c||c.call(r)),null===(u=r.finalize)||void 0===u||u.call(r)}))}):co}function Xs(e){return g((n,t)=>{let i,r=null,o=!1;r=n.subscribe(p(t,void 0,void 0,s=>{i=Wr(e(s,Xs(e)(n))),r?(r.unsubscribe(),r=null,i.subscribe(t)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(t))})}function sm(e){return e<=0?()=>Ao:g((n,t)=>{let r=[];n.subscribe(p(t,o=>{r.push(o),e<r.length&&r.shift()},()=>{for(const o of r)t.next(o);t.complete()},void 0,()=>{r=null}))})}const We="primary",$c=Symbol("RouteTitle");class L8{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 Js(e){return new L8(e)}function V8(e,n,t){const r=t.path.split("/");if(r.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||r.length<e.length))return null;const o={};for(let i=0;i<r.length;i++){const s=r[i],a=e[i];if(s.startsWith(":"))o[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:o}}function Zr(e,n){const t=e?am(e):void 0,r=n?am(n):void 0;if(!t||!r||t.length!=r.length)return!1;let o;for(let i=0;i<t.length;i++)if(o=t[i],!Kx(e[o],n[o]))return!1;return!0}function am(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function Kx(e,n){if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return!1;const t=[...e].sort(),r=[...n].sort();return t.every((o,i)=>r[i]===o)}return e===n}function Yx(e){return e.length>0?e[e.length-1]:null}function ri(e){return function M8(e){return!!e&&(e instanceof yt||mt(e.lift)&&mt(e.subscribe))}(e)?e:Dc(e)?on(Promise.resolve(e)):Re(e)}const j8={exact:function Jx(e,n,t){if(!Pi(e.segments,n.segments)||!Fd(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children)if(!e.children[r]||!Jx(e.children[r],n.children[r],t))return!1;return!0},subset:Qx},Zx={exact:function B8(e,n){return Zr(e,n)},subset:function H8(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>Kx(e[t],n[t]))},ignored:()=>!0};function Xx(e,n,t){return j8[t.paths](e.root,n.root,t.matrixParams)&&Zx[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function Qx(e,n,t){return eM(e,n,n.segments,t)}function eM(e,n,t,r){if(e.segments.length>t.length){const o=e.segments.slice(0,t.length);return!(!Pi(o,t)||n.hasChildren()||!Fd(o,t,r))}if(e.segments.length===t.length){if(!Pi(e.segments,t)||!Fd(e.segments,t,r))return!1;for(const o in n.children)if(!e.children[o]||!Qx(e.children[o],n.children[o],r))return!1;return!0}{const o=t.slice(0,e.segments.length),i=t.slice(e.segments.length);return!!(Pi(e.segments,o)&&Fd(e.segments,o,r)&&e.children[We])&&eM(e.children[We],n,i,r)}}function Fd(e,n,t){return n.every((r,o)=>Zx[t](e[o].parameters,r.parameters))}class Qs{constructor(n=new Dt([],{}),t={},r=null){this.root=n,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Js(this.queryParams),this._queryParamMap}toString(){return G8.serialize(this)}}class Dt{constructor(n,t){this.segments=n,this.children=t,this.parent=null,Object.values(t).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Pd(this)}}class zc{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap??=Js(this.parameters),this._parameterMap}toString(){return rM(this)}}function Pi(e,n){return e.length===n.length&&e.every((t,r)=>t.path===n[r].path)}let ea=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=De({token:e,factory:()=>new cm,providedIn:"root"})}return e})();class cm{parse(n){const t=new nU(n);return new Qs(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${Gc(n.root,!0)}`,r=function K8(e){const n=Object.entries(e).map(([t,r])=>Array.isArray(r)?r.map(o=>`${kd(t)}=${kd(o)}`).join("&"):`${kd(t)}=${kd(r)}`).filter(t=>t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${r}${"string"==typeof n.fragment?`#${function q8(e){return encodeURI(e)}(n.fragment)}`:""}`}}const G8=new cm;function Pd(e){return e.segments.map(n=>rM(n)).join("/")}function Gc(e,n){if(!e.hasChildren())return Pd(e);if(n){const t=e.children[We]?Gc(e.children[We],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==We&&r.push(`${o}:${Gc(i,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}{const t=function z8(e,n){let t=[];return Object.entries(e.children).forEach(([r,o])=>{r===We&&(t=t.concat(n(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==We&&(t=t.concat(n(o,r)))}),t}(e,(r,o)=>o===We?[Gc(e.children[We],!1)]:[`${o}:${Gc(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[We]?`${Pd(e)}/${t[0]}`:`${Pd(e)}/(${t.join("//")})`}}function tM(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function kd(e){return tM(e).replace(/%3B/gi,";")}function um(e){return tM(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ld(e){return decodeURIComponent(e)}function nM(e){return Ld(e.replace(/\+/g,"%20"))}function rM(e){return`${um(e.path)}${function W8(e){return Object.entries(e).map(([n,t])=>`;${um(n)}=${um(t)}`).join("")}(e.parameters)}`}const Y8=/^[^\/()?;#]+/;function lm(e){const n=e.match(Y8);return n?n[0]:""}const Z8=/^[^\/()?;=#]+/,J8=/^[^=?&#]+/,eU=/^[^&#]+/;class nU{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Dt([],{}):new Dt([],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 r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(r[We]=new Dt(n,t)),r}parseSegment(){const n=lm(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(n),new zc(Ld(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=function X8(e){const n=e.match(Z8);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const o=lm(this.remaining);o&&(r=o,this.capture(r))}n[Ld(t)]=Ld(r)}parseQueryParam(n){const t=function Q8(e){const n=e.match(J8);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const s=function tU(e){const n=e.match(eU);return n?n[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=nM(t),i=nM(r);if(n.hasOwnProperty(o)){let s=n[o];Array.isArray(s)||(s=[s],n[o]=s),s.push(i)}else n[o]=i}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=lm(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new w(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):n&&(i=We);const s=this.parseChildren();t[i]=1===Object.keys(s).length?s[We]:new Dt([],s),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 w(4011,!1)}}function oM(e){return e.segments.length>0?new Dt([],{[We]:e}):e}function iM(e){const n={};for(const[r,o]of Object.entries(e.children)){const i=iM(o);if(r===We&&0===i.segments.length&&i.hasChildren())for(const[s,a]of Object.entries(i.children))n[s]=a;else(i.segments.length>0||i.hasChildren())&&(n[r]=i)}return function rU(e){if(1===e.numberOfChildren&&e.children[We]){const n=e.children[We];return new Dt(e.segments.concat(n.segments),n.children)}return e}(new Dt(e.segments,n))}function ta(e){return e instanceof Qs}function sM(e){let n;const o=oM(function t(i){const s={};for(const c of i.children){const u=t(c);s[c.outlet]=u}const a=new Dt(i.url,s);return i===e&&(n=a),a}(e.root));return n??o}function aM(e,n,t,r){let o=e;for(;o.parent;)o=o.parent;if(0===n.length)return dm(o,o,o,t,r);const i=function iU(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new uM(!0,0,e);let n=0,t=!1;const r=e.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return Object.entries(i.outlets).forEach(([c,u])=>{a[c]="string"==typeof u?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,c)=>{0==c&&"."===a||(0==c&&""===a?t=!0:".."===a?n++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new uM(t,n,r)}(n);if(i.toRoot())return dm(o,o,new Dt([],{}),t,r);const s=function sU(e,n,t){if(e.isAbsolute)return new Ud(n,!0,0);if(!t)return new Ud(n,!1,NaN);if(null===t.parent)return new Ud(t,!0,0);const r=Vd(e.commands[0])?0:1;return function aU(e,n,t){let r=e,o=n,i=t;for(;i>o;){if(i-=o,r=r.parent,!r)throw new w(4005,!1);o=r.segments.length}return new Ud(r,!1,o-i)}(t,t.segments.length-1+r,e.numberOfDoubleDots)}(i,o,e),a=s.processChildren?Wc(s.segmentGroup,s.index,i.commands):lM(s.segmentGroup,s.index,i.commands);return dm(o,s.segmentGroup,a,t,r)}function Vd(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function qc(e){return"object"==typeof e&&null!=e&&e.outlets}function dm(e,n,t,r,o){let s,i={};r&&Object.entries(r).forEach(([c,u])=>{i[c]=Array.isArray(u)?u.map(d=>`${d}`):`${u}`}),s=e===n?t:cM(e,n,t);const a=oM(iM(s));return new Qs(a,i,o)}function cM(e,n,t){const r={};return Object.entries(e.children).forEach(([o,i])=>{r[o]=i===n?t:cM(i,n,t)}),new Dt(e.segments,r)}class uM{constructor(n,t,r){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=r,n&&r.length>0&&Vd(r[0]))throw new w(4003,!1);const o=r.find(qc);if(o&&o!==Yx(r))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ud{constructor(n,t,r){this.segmentGroup=n,this.processChildren=t,this.index=r}}function lM(e,n,t){if(e??=new Dt([],{}),0===e.segments.length&&e.hasChildren())return Wc(e,n,t);const r=function uU(e,n,t){let r=0,o=n;const i={match:!1,pathIndex:0,commandIndex:0};for(;o<e.segments.length;){if(r>=t.length)return i;const s=e.segments[o],a=t[r];if(qc(a))break;const c=`${a}`,u=r<t.length-1?t[r+1]:null;if(o>0&&void 0===c)break;if(c&&u&&"object"==typeof u&&void 0===u.outlets){if(!fM(c,u,s))return i;r+=2}else{if(!fM(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,n,t),o=t.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){const i=new Dt(e.segments.slice(0,r.pathIndex),{});return i.children[We]=new Dt(e.segments.slice(r.pathIndex),e.children),Wc(i,0,o)}return r.match&&0===o.length?new Dt(e.segments,{}):r.match&&!e.hasChildren()?fm(e,n,t):r.match?Wc(e,0,o):fm(e,n,t)}function Wc(e,n,t){if(0===t.length)return new Dt(e.segments,{});{const r=function cU(e){return qc(e[0])?e[0].outlets:{[We]:e}}(t),o={};if(Object.keys(r).some(i=>i!==We)&&e.children[We]&&1===e.numberOfChildren&&0===e.children[We].segments.length){const i=Wc(e.children[We],n,t);return new Dt(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(o[i]=lM(e.children[i],n,s))}),Object.entries(e.children).forEach(([i,s])=>{void 0===r[i]&&(o[i]=s)}),new Dt(e.segments,o)}}function fm(e,n,t){const r=e.segments.slice(0,n);let o=0;for(;o<t.length;){const i=t[o];if(qc(i)){const c=lU(i.outlets);return new Dt(r,c)}if(0===o&&Vd(t[0])){r.push(new zc(e.segments[n].path,dM(t[0]))),o++;continue}const s=qc(i)?i.outlets[We]:`${i}`,a=o<t.length-1?t[o+1]:null;s&&a&&Vd(a)?(r.push(new zc(s,dM(a))),o+=2):(r.push(new zc(s,{})),o++)}return new Dt(r,{})}function lU(e){const n={};return Object.entries(e).forEach(([t,r])=>{"string"==typeof r&&(r=[r]),null!==r&&(n[t]=fm(new Dt([],{}),0,r))}),n}function dM(e){const n={};return Object.entries(e).forEach(([t,r])=>n[t]=`${r}`),n}function fM(e,n,t){return e==t.path&&Zr(n,t.parameters)}const Kc="imperative";var nt=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(nt||{});class Xr{constructor(n,t){this.id=n,this.url=t}}class jd extends Xr{constructor(n,t,r="imperative",o=null){super(n,t),this.type=nt.NavigationStart,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class To extends Xr{constructor(n,t,r){super(n,t),this.urlAfterRedirects=r,this.type=nt.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var hr=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(hr||{}),Bd=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(Bd||{});class na extends Xr{constructor(n,t,r,o){super(n,t),this.reason=r,this.code=o,this.type=nt.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ra extends Xr{constructor(n,t,r,o){super(n,t),this.reason=r,this.code=o,this.type=nt.NavigationSkipped}}class Hd extends Xr{constructor(n,t,r,o){super(n,t),this.error=r,this.target=o,this.type=nt.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class hM extends Xr{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=nt.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class dU extends Xr{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=nt.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fU extends Xr{constructor(n,t,r,o,i){super(n,t),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=nt.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class hU extends Xr{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=nt.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pU extends Xr{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=nt.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class gU{constructor(n){this.route=n,this.type=nt.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class mU{constructor(n){this.route=n,this.type=nt.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class yU{constructor(n){this.snapshot=n,this.type=nt.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vU{constructor(n){this.snapshot=n,this.type=nt.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _U{constructor(n){this.snapshot=n,this.type=nt.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class DU{constructor(n){this.snapshot=n,this.type=nt.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pM{constructor(n,t,r){this.routerEvent=n,this.position=t,this.anchor=r,this.type=nt.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class hm{}class pm{constructor(n){this.url=n}}class wU{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Yc,this.attachRef=null}}let Yc=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,r){const o=this.getOrCreateContext(t);o.outlet=r,this.contexts.set(t,o)}onChildOutletDestroyed(t){const r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new wU,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class gM{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=gm(n,this._root);return t?t.children.map(r=>r.value):[]}firstChild(n){const t=gm(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=mm(n,this._root);return t.length<2?[]:t[t.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return mm(n,this._root).map(t=>t.value)}}function gm(e,n){if(e===n.value)return n;for(const t of n.children){const r=gm(e,t);if(r)return r}return null}function mm(e,n){if(e===n.value)return[n];for(const t of n.children){const r=mm(e,t);if(r.length)return r.unshift(n),r}return[]}class Sr{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function oa(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class mM extends gM{constructor(n,t){super(n),this.snapshot=t,_m(this,n)}toString(){return this.snapshot.toString()}}function yM(e){const n=function CU(e){const i=new vm([],{},{},"",{},We,e,null,{});return new vM("",new Sr(i,[]))}(e),t=new An([new zc("",{})]),r=new An({}),o=new An({}),i=new An({}),s=new An(""),a=new ia(t,r,i,s,o,We,e,n.root);return a.snapshot=n.root,new mM(new Sr(a,[]),n)}class ia{constructor(n,t,r,o,i,s,a,c){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(m(u=>u[$c]))??Re(void 0),this.url=n,this.params=t,this.queryParams=r,this.fragment=o,this.data=i}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.params.pipe(m(n=>Js(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(m(n=>Js(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ym(e,n,t="emptyOnly"){let r;const{routeConfig:o}=e;return r=null===n||"always"!==t&&""!==o?.path&&(n.component||n.routeConfig?.loadComponent)?{params:{...e.params},data:{...e.data},resolve:{...e.data,...e._resolvedData??{}}}:{params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.data,...o?.data,...e._resolvedData}},o&&DM(o)&&(r.resolve[$c]=o.title),r}class vm{get title(){return this.data?.[$c]}constructor(n,t,r,o,i,s,a,c,u){this.url=n,this.params=t,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}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??=Js(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Js(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class vM extends gM{constructor(n,t){super(t),this.url=n,_m(this,t)}toString(){return _M(this._root)}}function _m(e,n){n.value._routerState=e,n.children.forEach(t=>_m(e,t))}function _M(e){const n=e.children.length>0?` { ${e.children.map(_M).join(", ")} } `:"";return`${e.value}${n}`}function Dm(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,Zr(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),Zr(n.params,t.params)||e.paramsSubject.next(t.params),function U8(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;++t)if(!Zr(e[t],n[t]))return!1;return!0}(n.url,t.url)||e.urlSubject.next(t.url),Zr(n.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function wm(e,n){const t=Zr(e.params,n.params)&&function $8(e,n){return Pi(e,n)&&e.every((t,r)=>Zr(t.parameters,n[r].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||wm(e.parent,n.parent))}function DM(e){return"string"==typeof e.title||null===e.title}let wM=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=We,this.activateEvents=new Bt,this.deactivateEvents=new Bt,this.attachEvents=new Bt,this.detachEvents=new Bt,this.parentContexts=te(Yc),this.location=te(Dr),this.changeDetector=te(tc),this.environmentInjector=te(Zn),this.inputBinder=te($d,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){const{firstChange:r,previousValue:o}=t.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),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,r){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=t;const o=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new bU(t,a,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=Pe({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[ar]})}return e})();class bU{constructor(n,t,r){this.route=n,this.childContexts=t,this.parent=r}get(n,t){return n===ia?this.route:n===Yc?this.childContexts:this.parent.get(n,t)}}const $d=new de("");let CM=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){const{activatedRoute:r}=t,o=rm([r.queryParams,r.params,r.data]).pipe(xr(([i,s,a],c)=>(a={...i,...s,...a},0===c?Re(a):Promise.resolve(a)))).subscribe(i=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(t);const s=function WP(e){const n=Ke(e);if(!n)return null;const t=new rc(n);return{get selector(){return t.selector},get type(){return t.componentType},get inputs(){return t.inputs},get outputs(){return t.outputs},get ngContentSelectors(){return t.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(r.component);if(s)for(const{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,i[a]);else this.unsubscribeFromRouteData(t)});this.outletDataSubscriptions.set(t,o)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac})}return e})();function Zc(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const r=t.value;r._futureSnapshot=n.value;const o=function xU(e,n,t){return n.children.map(r=>{for(const o of t.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return Zc(e,r,o);return Zc(e,r)})}(e,n,t);return new Sr(r,o)}{if(e.shouldAttach(n.value)){const i=e.retrieve(n.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Zc(e,a)),s}}const r=function MU(e){return new ia(new An(e.url),new An(e.params),new An(e.queryParams),new An(e.fragment),new An(e.data),e.outlet,e.component,e)}(n.value),o=n.children.map(i=>Zc(e,i));return new Sr(r,o)}}const bM="ngNavigationCancelingError";function EM(e,n){const{redirectTo:t,navigationBehaviorOptions:r}=ta(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=xM(!1,hr.Redirect);return o.url=t,o.navigationBehaviorOptions=r,o}function xM(e,n){const t=new Error(`NavigationCancelingError: ${e||""}`);return t[bM]=!0,t.cancellationCode=n,t}function MM(e){return!!e&&e[bM]}let SM=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=af({type:e,selectors:[["ng-component"]],standalone:!0,features:[Pw],decls:1,vars:0,template:function(r,o){1&r&&hn(0,"router-outlet")},dependencies:[wM],encapsulation:2})}return e})();function Cm(e){const n=e.children&&e.children.map(Cm),t=n?{...e,children:n}:{...e};return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==We&&(t.component=SM),t}function Jr(e){return e.outlet||We}function Xc(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class FU{constructor(n,t,r,o,i){this.routeReuseStrategy=n,this.futureState=t,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(n){const t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,n),Dm(this.futureState.root),this.activateChildRoutes(t,r,n)}deactivateChildRoutes(n,t,r){const o=oa(t);n.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(n,t,r){const o=n.value,i=t?t.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,r);else i&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const r=t.getContext(n.value.outlet),o=r&&n.value.component?r.children:t,i=oa(n);for(const s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){const r=t.getContext(n.value.outlet),o=r&&n.value.component?r.children:t,i=oa(n);for(const s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,t,r){const o=oa(t);n.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new DU(i.value.snapshot))}),n.children.length&&this.forwardEvent(new vU(n.value.snapshot))}activateRoutes(n,t,r){const o=n.value,i=t?t.value:null;if(Dm(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Dm(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=Xc(o.snapshot);s.attachRef=null,s.route=o,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,r)}}class IM{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class zd{constructor(n,t){this.component=n,this.route=t}}function PU(e,n,t){const r=e._root;return Jc(r,n?n._root:null,t,[r.value])}function sa(e,n){const t=Symbol(),r=n.get(e,t);return r===t?"function"!=typeof e||function YM(e){return null!==uu(e)}(e)?n.get(e):e:r}function Jc(e,n,t,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=oa(n);return e.children.forEach(s=>{(function LU(e,n,t,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const c=function VU(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!Pi(e.url,n.url);case"pathParamsOrQueryParamsChange":return!Pi(e.url,n.url)||!Zr(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!wm(e,n)||!Zr(e.queryParams,n.queryParams);default:return!wm(e,n)}}(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new IM(r)):(i.data=s.data,i._resolvedData=s._resolvedData),Jc(e,n,i.component?a?a.children:null:t,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new zd(a.outlet.component,s))}else s&&Qc(n,a,o),o.canActivateChecks.push(new IM(r)),Jc(e,null,i.component?a?a.children:null:t,r,o)})(s,i[s.value.outlet],t,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Qc(a,t.getContext(s),o)),o}function Qc(e,n,t){const r=oa(e),o=e.value;Object.entries(r).forEach(([i,s])=>{Qc(s,o.component?n?n.children.getContext(i):null:n,t)}),t.canDeactivateChecks.push(new zd(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function eu(e){return"function"==typeof e}function AM(e){return e instanceof Nd||"EmptyError"===e?.name}const Gd=Symbol("INITIAL_VALUE");function aa(){return xr(e=>rm(e.map(n=>n.pipe(Zs(1),function T8(...e){const n=ld(e);return g((t,r)=>{(n?om(e,t,n):om(e,t)).subscribe(r)})}(Gd)))).pipe(m(n=>{for(const t of n)if(!0!==t){if(t===Gd)return Gd;if(!1===t||t instanceof Qs)return t}return!0}),Mo(n=>n!==Gd),Zs(1)))}function TM(e){return function Yd(...e){return ir(e)}(Sn(n=>{if(ta(n))throw EM(0,n)}),m(n=>!0===n))}class bm{constructor(n){this.segmentGroup=n||null}}class Em extends Error{constructor(n){super(),this.urlTree=n}}function ca(e){return Rd(new bm(e))}class rj{constructor(n,t){this.urlSerializer=n,this.urlTree=t}lineralizeSegments(n,t){let r=[],o=t.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return Re(r);if(o.numberOfChildren>1||!o.children[We])return Rd(new w(4e3,!1));o=o.children[We]}}applyRedirectCommands(n,t,r){const o=this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,r);if(t.startsWith("/"))throw new Em(o);return o}applyRedirectCreateUrlTree(n,t,r,o){const i=this.createSegmentGroup(n,t.root,r,o);return new Qs(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const r={};return Object.entries(n).forEach(([o,i])=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=t[a]}else r[o]=i}),r}createSegmentGroup(n,t,r,o){const i=this.createSegments(n,t.segments,r,o);let s={};return Object.entries(t.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,r,o)}),new Dt(i,s)}createSegments(n,t,r,o){return t.map(i=>i.path.startsWith(":")?this.findPosParam(n,i,o):this.findOrReturn(i,r))}findPosParam(n,t,r){const o=r[t.path.substring(1)];if(!o)throw new w(4001,!1);return o}findOrReturn(n,t){let r=0;for(const o of t){if(o.path===n.path)return t.splice(r),o;r++}return n}}const xm={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function oj(e,n,t,r,o){const i=Mm(e,n,t);return i.matched?(r=function IU(e,n){return e.providers&&!e._injector&&(e._injector=Pp(e.providers,n,`Route: ${e.path}`)),e._injector??n}(n,r),function ej(e,n,t,r){const o=n.canMatch;return o&&0!==o.length?Re(o.map(s=>{const a=sa(s,e);return ri(function zU(e){return e&&eu(e.canMatch)}(a)?a.canMatch(n,t):Vo(e,()=>a(n,t)))})).pipe(aa(),TM()):Re(!0)}(r,n,t).pipe(m(s=>!0===s?i:{...xm}))):Re(i)}function Mm(e,n,t){if("**"===n.path)return function ij(e){return{matched:!0,parameters:e.length>0?Yx(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}(t);if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?{...xm}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const o=(n.matcher||V8)(t,e,n);if(!o)return{...xm};const i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});const s=o.consumed.length>0?{...i,...o.consumed[o.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:t.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function NM(e,n,t,r){return t.length>0&&function cj(e,n,t){return t.some(r=>qd(e,n,r)&&Jr(r)!==We)}(e,t,r)?{segmentGroup:new Dt(n,aj(r,new Dt(t,e.children))),slicedSegments:[]}:0===t.length&&function uj(e,n,t){return t.some(r=>qd(e,n,r))}(e,t,r)?{segmentGroup:new Dt(e.segments,sj(e,t,r,e.children)),slicedSegments:t}:{segmentGroup:new Dt(e.segments,e.children),slicedSegments:t}}function sj(e,n,t,r){const o={};for(const i of t)if(qd(e,n,i)&&!r[Jr(i)]){const s=new Dt([],{});o[Jr(i)]=s}return{...r,...o}}function aj(e,n){const t={};t[We]=n;for(const r of e)if(""===r.path&&Jr(r)!==We){const o=new Dt([],{});t[Jr(r)]=o}return t}function qd(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}class fj{}class gj{constructor(n,t,r,o,i,s,a){this.injector=n,this.configLoader=t,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new rj(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new w(4002,`'${n.segmentGroup}'`)}recognize(){const n=NM(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(m(t=>{const r=new vm([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},We,this.rootComponentType,null,{}),o=new Sr(r,t),i=new vM("",o),s=function oU(e,n,t=null,r=null){return aM(sM(e),n,t,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(i._root,null),{state:i,tree:s}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n,We).pipe(Xs(r=>{if(r instanceof Em)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof bm?this.noMatchError(r):r}))}inheritParamsAndData(n,t){const r=n.value,o=ym(r,t,this.paramsInheritanceStrategy);r.params=Object.freeze(o.params),r.data=Object.freeze(o.data),n.children.forEach(i=>this.inheritParamsAndData(i,r))}processSegmentGroup(n,t,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(n,t,r):this.processSegment(n,t,r,r.segments,o,!0).pipe(m(i=>i instanceof Sr?[i]:[]))}processChildren(n,t,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return on(o).pipe(qs(i=>{const s=r.children[i],a=function RU(e,n){const t=e.filter(r=>Jr(r)===n);return t.push(...e.filter(r=>Jr(r)!==n)),t}(t,i);return this.processSegmentGroup(n,a,s,i)}),function O8(e,n){return g(function R8(e,n,t,r,o){return(i,s)=>{let a=t,c=n,u=0;i.subscribe(p(s,d=>{const f=u++;c=a?e(c,d,f):(a=!0,d),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}(e,n,arguments.length>=2,!0))}((i,s)=>(i.push(...s),i)),Od(null),function F8(e,n){const t=arguments.length>=2;return r=>r.pipe(e?Mo((o,i)=>e(o,i,r)):co,sm(1),t?Od(n):Wx(()=>new Nd))}(),xn(i=>{if(null===i)return ca(r);const s=RM(i);return function mj(e){e.sort((n,t)=>n.value.outlet===We?-1:t.value.outlet===We?1:n.value.outlet.localeCompare(t.value.outlet))}(s),Re(s)}))}processSegment(n,t,r,o,i,s){return on(t).pipe(qs(a=>this.processSegmentAgainstRoute(a._injector??n,t,a,r,o,i,s).pipe(Xs(c=>{if(c instanceof bm)return Re(null);throw c}))),Fi(a=>!!a),Xs(a=>{if(AM(a))return function dj(e,n,t){return 0===n.length&&!e.children[t]}(r,o,i)?Re(new fj):ca(r);throw a}))}processSegmentAgainstRoute(n,t,r,o,i,s,a){return function lj(e,n,t,r){return!!(Jr(e)===r||r!==We&&qd(n,t,e))&&Mm(n,e,t).matched}(r,o,i,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,o,r,i,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,o,t,r,i,s):ca(o):ca(o)}expandSegmentAgainstRouteUsingRedirect(n,t,r,o,i,s){const{matched:a,consumedSegments:c,positionalParamSegments:u,remainingSegments:d}=Mm(t,o,i);if(!a)return ca(t);o.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const f=this.applyRedirects.applyRedirectCommands(c,o.redirectTo,u);return this.applyRedirects.lineralizeSegments(o,f).pipe(xn(y=>this.processSegment(n,r,t,y.concat(d),s,!1)))}matchSegmentAgainstRoute(n,t,r,o,i){const s=oj(t,r,o,n);return"**"===r.path&&(t.children={}),s.pipe(xr(a=>a.matched?this.getChildConfig(n=r._injector??n,r,o).pipe(xr(({routes:c})=>{const u=r._loadedInjector??n,{consumedSegments:d,remainingSegments:f,parameters:y}=a,_=new vm(d,y,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function vj(e){return e.data||{}}(r),Jr(r),r.component??r._loadedComponent??null,r,function _j(e){return e.resolve||{}}(r)),{segmentGroup:b,slicedSegments:S}=NM(t,d,f,c);if(0===S.length&&b.hasChildren())return this.processChildren(u,c,b).pipe(m(z=>null===z?null:new Sr(_,z)));if(0===c.length&&0===S.length)return Re(new Sr(_,[]));const F=Jr(r)===i;return this.processSegment(u,c,b,S,F?We:i,!0).pipe(m(z=>new Sr(_,z instanceof Sr?[z]:[])))})):ca(t)))}getChildConfig(n,t,r){return t.children?Re({routes:t.children,injector:n}):t.loadChildren?void 0!==t._loadedRoutes?Re({routes:t._loadedRoutes,injector:t._loadedInjector}):function QU(e,n,t,r){const o=n.canLoad;return void 0===o||0===o.length?Re(!0):Re(o.map(s=>{const a=sa(s,e);return ri(function jU(e){return e&&eu(e.canLoad)}(a)?a.canLoad(n,t):Vo(e,()=>a(n,t)))})).pipe(aa(),TM())}(n,t,r).pipe(xn(o=>o?this.configLoader.loadChildren(n,t).pipe(Sn(i=>{t._loadedRoutes=i.routes,t._loadedInjector=i.injector})):function nj(e){return Rd(xM(!1,hr.GuardRejected))}())):Re({routes:[],injector:n})}}function yj(e){const n=e.value.routeConfig;return n&&""===n.path}function RM(e){const n=[],t=new Set;for(const r of e){if(!yj(r)){n.push(r);continue}const o=n.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),t.add(o)):n.push(r)}for(const r of t){const o=RM(r.children);n.push(new Sr(r.value,o))}return n.filter(r=>!t.has(r))}function OM(e){const n=e.children.map(t=>OM(t)).flat();return[e,...n]}function Sm(e){return xr(n=>{const t=e(n);return t?on(t).pipe(m(()=>n)):Re(n)})}let FM=(()=>{class e{buildTitle(t){let r,o=t.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===We);return r}getResolvedTitleForRoute(t){return t.data[$c]}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=De({token:e,factory:()=>te(xj),providedIn:"root"})}return e})(),xj=(()=>{class e extends FM{constructor(t){super(),this.title=t}updateTitle(t){const r=this.buildTitle(t);void 0!==r&&this.title.setTitle(r)}static#e=this.\u0275fac=function(r){return new(r||e)(Ee(f3))};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const ua=new de("",{providedIn:"root",factory:()=>({})}),la=new de("");let Im=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=te(hC)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return Re(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const r=ri(t.loadComponent()).pipe(m(PM),Sn(i=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=i}),Lc(()=>{this.componentLoaders.delete(t)})),o=new qx(r,()=>new sr).pipe(im());return this.componentLoaders.set(t,o),o}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Re({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=function Mj(e,n,t,r){return ri(e.loadChildren()).pipe(m(PM),xn(o=>o instanceof Ow||Array.isArray(o)?Re(o):on(n.compileModuleAsync(o))),m(o=>{r&&r(e);let i,s,a=!1;return Array.isArray(o)?(s=o,!0):(i=o.create(t).injector,s=i.get(la,[],{optional:!0,self:!0}).flat()),{routes:s.map(Cm),injector:i}}))}(r,this.compiler,t,this.onLoadEndListener).pipe(Lc(()=>{this.childrenLoaders.delete(r)})),s=new qx(i,()=>new sr).pipe(im());return this.childrenLoaders.set(r,s),s}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function PM(e){return function Sj(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let Am=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=De({token:e,factory:()=>te(Ij),providedIn:"root"})}return e})(),Ij=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const kM=new de(""),LM=new de("");function Aj(e,n,t){const r=e.get(LM),o=e.get(er);return e.get(dt).runOutsideAngular(()=>{if(!o.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,Promise.resolve();let i;const s=new Promise(u=>{i=u}),a=o.startViewTransition(()=>(i(),function Tj(e){return new Promise(n=>{Y_(n,{injector:e})})}(e))),{onViewTransitionCreated:c}=r;return c&&Vo(e,()=>c({transition:a,from:n,to:t})),s})}let Wd=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new sr,this.transitionAbortSubject=new sr,this.configLoader=te(Im),this.environmentInjector=te(Zn),this.urlSerializer=te(ea),this.rootContexts=te(Yc),this.location=te(Ic),this.inputBindingEnabled=null!==te($d,{optional:!0}),this.titleStrategy=te(FM),this.options=te(ua,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=te(Am),this.createViewTransition=te(kM,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>Re(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new mU(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new gU(o))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:r})}setupNavigations(t,r,o){return this.transitions=new An({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Kc,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Mo(i=>0!==i.id),m(i=>({...i,extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),xr(i=>{this.currentTransition=i;let s=!1,a=!1;return Re(i).pipe(Sn(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),xr(c=>{const u=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!u&&"reload"!==(c.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const f="";return this.events.next(new ra(c.id,this.urlSerializer.serialize(c.rawUrl),f,Bd.IgnoredSameUrlNavigation)),c.resolve(null),Ao}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return Re(c).pipe(xr(f=>{const y=this.transitions?.getValue();return this.events.next(new jd(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),y!==this.transitions?.getValue()?Ao:Promise.resolve(f)}),function Dj(e,n,t,r,o,i){return xn(s=>function hj(e,n,t,r,o,i,s="emptyOnly"){return new gj(e,n,t,r,o,s,i).recognize()}(e,n,t,r,s.extractedUrl,o,i).pipe(m(({state:a,tree:c})=>({...s,targetSnapshot:a,urlAfterRedirects:c}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),Sn(f=>{i.targetSnapshot=f.targetSnapshot,i.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:f.urlAfterRedirects};const y=new hM(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(y)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){const{id:f,extractedUrl:y,source:_,restoredState:b,extras:S}=c,F=new jd(f,this.urlSerializer.serialize(y),_,b);this.events.next(F);const z=yM(this.rootComponentType).snapshot;return this.currentTransition=i={...c,targetSnapshot:z,urlAfterRedirects:y,extras:{...S,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=y,Re(i)}{const f="";return this.events.next(new ra(c.id,this.urlSerializer.serialize(c.extractedUrl),f,Bd.IgnoredByUrlHandlingStrategy)),c.resolve(null),Ao}}),Sn(c=>{const u=new dU(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),m(c=>(this.currentTransition=i={...c,guards:PU(c.targetSnapshot,c.currentSnapshot,this.rootContexts)},i)),function GU(e,n){return xn(t=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=t;return 0===s.length&&0===i.length?Re({...t,guardsResult:!0}):function qU(e,n,t,r){return on(e).pipe(xn(o=>function JU(e,n,t,r,o){const i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return i&&0!==i.length?Re(i.map(a=>{const c=Xc(n)??o,u=sa(a,c);return ri(function $U(e){return e&&eu(e.canDeactivate)}(u)?u.canDeactivate(e,n,t,r):Vo(c,()=>u(e,n,t,r))).pipe(Fi())})).pipe(aa()):Re(!0)}(o.component,o.route,t,n,r)),Fi(o=>!0!==o,!0))}(s,r,o,e).pipe(xn(a=>a&&function UU(e){return"boolean"==typeof e}(a)?function WU(e,n,t,r){return on(n).pipe(qs(o=>om(function YU(e,n){return null!==e&&n&&n(new yU(e)),Re(!0)}(o.route.parent,r),function KU(e,n){return null!==e&&n&&n(new _U(e)),Re(!0)}(o.route,r),function XU(e,n,t){const r=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(s=>function kU(e){const n=e.routeConfig?e.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:e,guards:n}:null}(s)).filter(s=>null!==s).map(s=>Gx(()=>Re(s.guards.map(c=>{const u=Xc(s.node)??t,d=sa(c,u);return ri(function HU(e){return e&&eu(e.canActivateChild)}(d)?d.canActivateChild(r,e):Vo(u,()=>d(r,e))).pipe(Fi())})).pipe(aa())));return Re(i).pipe(aa())}(e,o.path,t),function ZU(e,n,t){const r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||0===r.length)return Re(!0);const o=r.map(i=>Gx(()=>{const s=Xc(n)??t,a=sa(i,s);return ri(function BU(e){return e&&eu(e.canActivate)}(a)?a.canActivate(n,e):Vo(s,()=>a(n,e))).pipe(Fi())}));return Re(o).pipe(aa())}(e,o.route,t))),Fi(o=>!0!==o,!0))}(r,i,e,n):Re(a)),m(a=>({...t,guardsResult:a})))})}(this.environmentInjector,c=>this.events.next(c)),Sn(c=>{if(i.guardsResult=c.guardsResult,ta(c.guardsResult))throw EM(0,c.guardsResult);const u=new fU(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(u)}),Mo(c=>!!c.guardsResult||(this.cancelNavigationTransition(c,"",hr.GuardRejected),!1)),Sm(c=>{if(c.guards.canActivateChecks.length)return Re(c).pipe(Sn(u=>{const d=new hU(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}),xr(u=>{let d=!1;return Re(u).pipe(function wj(e,n){return xn(t=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=t;if(!o.length)return Re(t);const i=new Set(o.map(c=>c.route)),s=new Set;for(const c of i)if(!s.has(c))for(const u of OM(c))s.add(u);let a=0;return on(s).pipe(qs(c=>i.has(c)?function Cj(e,n,t,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!DM(o)&&(i[$c]=o.title),function bj(e,n,t,r){const o=am(e);if(0===o.length)return Re({});const i={};return on(o).pipe(xn(s=>function Ej(e,n,t,r){const o=Xc(n)??r,i=sa(e,o);return ri(i.resolve?i.resolve(n,t):Vo(o,()=>i(n,t)))}(e[s],n,t,r).pipe(Fi(),Sn(a=>{i[s]=a}))),sm(1),function P8(e){return m(()=>e)}(i),Xs(s=>AM(s)?Ao:Rd(s)))}(i,e,n,r).pipe(m(s=>(e._resolvedData=s,e.data=ym(e,e.parent,t).resolve,null)))}(c,r,e,n):(c.data=ym(c,c.parent,e).resolve,Re(void 0))),Sn(()=>a++),sm(1),xn(c=>a===s.size?Re(t):Ao))})}(this.paramsInheritanceStrategy,this.environmentInjector),Sn({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(u,"",hr.NoDataFromResolver)}}))}),Sn(u=>{const d=new pU(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}))}),Sm(c=>{const u=d=>{const f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(Sn(y=>{d.component=y}),m(()=>{})));for(const y of d.children)f.push(...u(y));return f};return rm(u(c.targetSnapshot.root)).pipe(Od(null),Zs(1))}),Sm(()=>this.afterPreactivation()),xr(()=>{const{currentSnapshot:c,targetSnapshot:u}=i,d=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return d?on(d).pipe(m(()=>i)):Re(i)}),m(c=>{const u=function EU(e,n,t){const r=Zc(e,n._root,t?t._root:void 0);return new mM(r,n)}(t.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=i={...c,targetRouterState:u},this.currentNavigation.targetRouterState=u,i}),Sn(()=>{this.events.next(new hm)}),((e,n,t,r)=>m(o=>(new FU(n,o.targetRouterState,o.currentRouterState,t,r).activate(e),o)))(this.rootContexts,t.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Zs(1),Sn({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new To(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),function k8(e){return g((n,t)=>{Wr(e).subscribe(p(t,()=>t.complete(),Ro)),!t.closed&&n.subscribe(t)})}(this.transitionAbortSubject.pipe(Sn(c=>{throw c}))),Lc(()=>{!s&&!a&&this.cancelNavigationTransition(i,"",hr.SupersededByNewNavigation),this.currentNavigation?.id===i.id&&(this.currentNavigation=null)}),Xs(c=>{if(a=!0,MM(c))this.events.next(new na(i.id,this.urlSerializer.serialize(i.extractedUrl),c.message,c.cancellationCode)),function SU(e){return MM(e)&&ta(e.url)}(c)?this.events.next(new pm(c.url)):i.resolve(!1);else{this.events.next(new Hd(i.id,this.urlSerializer.serialize(i.extractedUrl),c,i.targetSnapshot??void 0));try{i.resolve(t.errorHandler(c))}catch(u){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(u)}}return Ao}))}))}cancelNavigationTransition(t,r,o){const i=new na(t.id,this.urlSerializer.serialize(t.extractedUrl),r,o);this.events.next(i),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Nj(e){return e!==Kc}let Rj=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=De({token:e,factory:()=>te(Fj),providedIn:"root"})}return e})();class Oj{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}let Fj=(()=>{class e extends Oj{static#e=this.\u0275fac=(()=>{let t;return function(o){return(t||(t=an(e)))(o||e)}})();static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),VM=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=De({token:e,factory:()=>te(Pj),providedIn:"root"})}return e})(),Pj=(()=>{class e extends VM{constructor(){super(...arguments),this.location=te(Ic),this.urlSerializer=te(ea),this.options=te(ua,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=te(Am),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Qs,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=yM(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(r=>{"popstate"===r.type&&t(r.url,r.state)})}handleRouterEvent(t,r){if(t instanceof jd)this.stateMemento=this.createStateMemento();else if(t instanceof ra)this.rawUrlTree=r.initialUrl;else if(t instanceof hM){if("eager"===this.urlUpdateStrategy&&!r.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(o,r)}}else t instanceof hm?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,"deferred"===this.urlUpdateStrategy&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):t instanceof na&&(t.code===hr.GuardRejected||t.code===hr.NoDataFromResolver)?this.restoreHistory(r):t instanceof Hd?this.restoreHistory(r,!0):t instanceof To&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,r){const o=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(o,"",s)}else{const i={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId+1)};this.location.go(o,"",i)}}restoreHistory(t,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-this.browserPageId;0!==i?this.location.historyGo(i):this.currentUrlTree===t.finalUrl&&0===i&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}static#e=this.\u0275fac=(()=>{let t;return function(o){return(t||(t=an(e)))(o||e)}})();static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var tu=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(tu||{});function UM(e,n){e.events.pipe(Mo(t=>t instanceof To||t instanceof na||t instanceof Hd||t instanceof ra),m(t=>t instanceof To||t instanceof ra?tu.COMPLETE:t instanceof na&&(t.code===hr.Redirect||t.code===hr.SupersededByNewNavigation)?tu.REDIRECTING:tu.FAILED),Mo(t=>t!==tu.REDIRECTING),Zs(1)).subscribe(()=>{n()})}function kj(e){throw e}const Lj={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Vj={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ir=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=te(fC),this.stateManager=te(VM),this.options=te(ua,{optional:!0})||{},this.pendingTasks=te(js),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=te(Wd),this.urlSerializer=te(ea),this.location=te(Ic),this.urlHandlingStrategy=te(Am),this._events=new sr,this.errorHandler=this.options.errorHandler||kj,this.navigated=!1,this.routeReuseStrategy=te(Rj),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=te(la,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!te($d,{optional:!0}),this.eventsSubscription=new un,this.isNgZoneEnabled=te(dt)instanceof dt&&dt.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const t=this.navigationTransitions.events.subscribe(r=>{try{const o=this.navigationTransitions.currentTransition,i=this.navigationTransitions.currentNavigation;if(null!==o&&null!==i)if(this.stateManager.handleRouterEvent(r,i),r instanceof na&&r.code!==hr.Redirect&&r.code!==hr.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof To)this.navigated=!0;else if(r instanceof pm){const s=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),a={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Nj(o.source)};this.scheduleNavigation(s,Kc,null,a,{resolve:o.resolve,reject:o.reject,promise:o.promise})}(function jj(e){return!(e instanceof hm||e instanceof pm)})(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Kc,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",r)},0)})}navigateToSyncWithBrowser(t,r,o){const i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){const c={...o};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(i.state=c)}const a=this.parseUrl(t);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Cm),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s;let f,d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...i};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=i||null}null!==d&&(d=this.removeEmptyProps(d));try{f=sM(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof t[0]||!t[0].startsWith("/"))&&(t=[]),f=this.currentUrlTree.root}return aM(f,t,d,u??null)}navigateByUrl(t,r={skipLocationChange:!1}){const o=ta(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Kc,null,r)}navigate(t,r={skipLocationChange:!1}){return function Uj(e){for(let n=0;n<e.length;n++)if(null==e[n])throw new w(4008,!1)}(t),this.navigateByUrl(this.createUrlTree(t,r),r)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,r){let o;if(o=!0===r?{...Lj}:!1===r?{...Vj}:r,ta(t))return Xx(this.currentUrlTree,t,o);const i=this.parseUrl(t);return Xx(this.currentUrlTree,i,o)}removeEmptyProps(t){return Object.entries(t).reduce((r,[o,i])=>(null!=i&&(r[o]=i),r),{})}scheduleNavigation(t,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((f,y)=>{a=f,c=y});const d=this.pendingTasks.add();return UM(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:i,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(f=>Promise.reject(f))}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class jM{}let $j=(()=>{class e{constructor(t,r,o,i,s){this.router=t,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Mo(t=>t instanceof To),qs(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=Pp(i.providers,t,`Route: ${i.path}`));const s=i._injector??t,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&void 0===i.canLoad||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return on(o).pipe(Hc())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(t,r):Re(null);const i=o.pipe(xn(s=>null===s?Re(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return r.loadComponent&&!r._loadedComponent?on([i,this.loader.loadComponent(r)]).pipe(Hc()):i})}static#e=this.\u0275fac=function(r){return new(r||e)(Ee(Ir),Ee(hC),Ee(Zn),Ee(jM),Ee(Im))};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Nm=new de("");let BM=(()=>{class e{constructor(t,r,o,i,s={}){this.urlSerializer=t,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof jd?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof To?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof ra&&t.code===Bd.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof pM&&(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,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new pM(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){!function x_(){throw new Error("invalid")}()};static#t=this.\u0275prov=De({token:e,factory:e.\u0275fac})}return e})();function Qr(e,n){return{\u0275kind:e,\u0275providers:n}}function $M(){const e=te(zn);return n=>{const t=e.get(Si);if(n!==t.components[0])return;const r=e.get(Ir),o=e.get(zM);1===e.get(Rm)&&r.initialNavigation(),e.get(GM,null,Qe.Optional)?.setUpPreloading(),e.get(Nm,null,Qe.Optional)?.init(),r.resetRootComponentType(t.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const zM=new de("",{factory:()=>new sr}),Rm=new de("",{providedIn:"root",factory:()=>1}),GM=new de("");function Wj(e){return Qr(0,[{provide:GM,useExisting:$j},{provide:jM,useExisting:e}])}function Yj(e){return Qr(9,[{provide:kM,useValue:Aj},{provide:LM,useValue:{skipNextTransition:!!e?.skipInitialTransition,...e}}])}const qM=new de("ROUTER_FORROOT_GUARD"),Zj=[Ic,{provide:ea,useClass:cm},Ir,Yc,{provide:ia,useFactory:function HM(e){return e.routerState.root},deps:[Ir]},Im,[]];let Xj=(()=>{class e{constructor(t){}static forRoot(t,r){return{ngModule:e,providers:[Zj,[],{provide:la,multi:!0,useValue:t},{provide:qM,useFactory:t5,deps:[[Ir,new Ru,new Ou]]},{provide:ua,useValue:r||{}},r?.useHash?{provide:Ai,useClass:JP}:{provide:Ai,useClass:nb},{provide:Nm,useFactory:()=>{const e=te(yL),n=te(dt),t=te(ua),r=te(Wd),o=te(ea);return t.scrollOffset&&e.setOffset(t.scrollOffset),new BM(o,r,e,n,t)}},r?.preloadingStrategy?Wj(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?n5(r):[],r?.bindToComponentInputs?Qr(8,[CM,{provide:$d,useExisting:CM}]).\u0275providers:[],r?.enableViewTransitions?Yj().\u0275providers:[],[{provide:WM,useFactory:$M},{provide:Kp,multi:!0,useExisting:WM}]]}}static forChild(t){return{ngModule:e,providers:[{provide:la,multi:!0,useValue:t}]}}static#e=this.\u0275fac=function(r){return new(r||e)(Ee(qM,8))};static#t=this.\u0275mod=fo({type:e});static#n=this.\u0275inj=Rr({})}return e})();function t5(e){return"guarded"}function n5(e){return["disabled"===e.initialNavigation?Qr(3,[{provide:qp,multi:!0,useFactory:()=>{const n=te(Ir);return()=>{n.setUpLocationChangeListener()}}},{provide:Rm,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Qr(2,[{provide:Rm,useValue:0},{provide:qp,multi:!0,deps:[zn],useFactory:n=>{const t=n.get(ZP,Promise.resolve());return()=>t.then(()=>new Promise(r=>{const o=n.get(Ir),i=n.get(zM);UM(o,()=>{r(!0)}),n.get(Wd).afterPreactivation=()=>(r(!0),i.closed?Re(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const WM=new de("");let o5=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=fo({type:e,bootstrap:[x8]});static#n=this.\u0275inj=Rr({imports:[d3,JV,I6,Xj.forRoot([{path:"**",redirectTo:""}])]})}return e})();u3().bootstrapModule(o5).catch(e=>console.error(e))},933:(E,Y,T)=>{E.exports=T(47)},739:(E,Y,T)=>{"use strict";var C=T(864),v=T(737),N=T(597),A=T(879),M=T(911),L=T(170),B=T(910),V=T(312),Z=T(395),J=T(503);E.exports=function($){return new Promise(function(it,at){var In,Ct=$.data,It=$.headers,pn=$.responseType;function jn(){$.cancelToken&&$.cancelToken.unsubscribe(In),$.signal&&$.signal.removeEventListener("abort",In)}C.isFormData(Ct)&&delete It["Content-Type"];var we=new XMLHttpRequest;if($.auth){var Rt=$.auth.username||"",eo=$.auth.password?unescape(encodeURIComponent($.auth.password)):"";It.Authorization="Basic "+btoa(Rt+":"+eo)}var nr=M($.baseURL,$.url);function re(){if(we){var ct="getAllResponseHeaders"in we?L(we.getAllResponseHeaders()):null;v(function(to){it(to),jn()},function(to){at(to),jn()},{data:pn&&"text"!==pn&&"json"!==pn?we.response:we.responseText,status:we.status,statusText:we.statusText,headers:ct,config:$,request:we}),we=null}}if(we.open($.method.toUpperCase(),A(nr,$.params,$.paramsSerializer),!0),we.timeout=$.timeout,"onloadend"in we?we.onloadend=re:we.onreadystatechange=function(){!we||4!==we.readyState||0===we.status&&(!we.responseURL||0!==we.responseURL.indexOf("file:"))||setTimeout(re)},we.onabort=function(){we&&(at(V("Request aborted",$,"ECONNABORTED",we)),we=null)},we.onerror=function(){at(V("Network Error",$,null,we)),we=null},we.ontimeout=function(){var gn=$.timeout?"timeout of "+$.timeout+"ms exceeded":"timeout exceeded";$.timeoutErrorMessage&&(gn=$.timeoutErrorMessage),at(V(gn,$,($.transitional||Z.transitional).clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",we)),we=null},C.isStandardBrowserEnv()){var bt=($.withCredentials||B(nr))&&$.xsrfCookieName?N.read($.xsrfCookieName):void 0;bt&&(It[$.xsrfHeaderName]=bt)}"setRequestHeader"in we&&C.forEach(It,function(gn,Et){typeof Ct>"u"&&"content-type"===Et.toLowerCase()?delete It[Et]:we.setRequestHeader(Et,gn)}),C.isUndefined($.withCredentials)||(we.withCredentials=!!$.withCredentials),pn&&"json"!==pn&&(we.responseType=$.responseType),"function"==typeof $.onDownloadProgress&&we.addEventListener("progress",$.onDownloadProgress),"function"==typeof $.onUploadProgress&&we.upload&&we.upload.addEventListener("progress",$.onUploadProgress),($.cancelToken||$.signal)&&(In=function(ct){we&&(at(!ct||ct&&ct.type?new J("canceled"):ct),we.abort(),we=null)},$.cancelToken&&$.cancelToken.subscribe(In),$.signal&&($.signal.aborted?In():$.signal.addEventListener("abort",In))),Ct||(Ct=null),we.send(Ct)})}},47:(E,Y,T)=>{"use strict";var C=T(864),v=T(934),N=T(77),A=T(414),B=function L(V){var Z=new N(V),J=v(N.prototype.request,Z);return C.extend(J,N.prototype,Z),C.extend(J,Z),J.create=function($){return L(A(V,$))},J}(T(395));B.Axios=N,B.Cancel=T(503),B.CancelToken=T(754),B.isCancel=T(329),B.VERSION=T(560).version,B.all=function(Z){return Promise.all(Z)},B.spread=T(131),B.isAxiosError=T(792),E.exports=B,E.exports.default=B},503:E=>{"use strict";function Y(T){this.message=T}Y.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Y.prototype.__CANCEL__=!0,E.exports=Y},754:(E,Y,T)=>{"use strict";var C=T(503);function v(N){if("function"!=typeof N)throw new TypeError("executor must be a function.");var A;this.promise=new Promise(function(B){A=B});var M=this;this.promise.then(function(L){if(M._listeners){var B,V=M._listeners.length;for(B=0;B<V;B++)M._listeners[B](L);M._listeners=null}}),this.promise.then=function(L){var B,V=new Promise(function(Z){M.subscribe(Z),B=Z}).then(L);return V.cancel=function(){M.unsubscribe(B)},V},N(function(B){M.reason||(M.reason=new C(B),A(M.reason))})}v.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},v.prototype.subscribe=function(A){this.reason?A(this.reason):this._listeners?this._listeners.push(A):this._listeners=[A]},v.prototype.unsubscribe=function(A){if(this._listeners){var M=this._listeners.indexOf(A);-1!==M&&this._listeners.splice(M,1)}},v.source=function(){var A;return{token:new v(function(B){A=B}),cancel:A}},E.exports=v},329:E=>{"use strict";E.exports=function(T){return!(!T||!T.__CANCEL__)}},77:(E,Y,T)=>{"use strict";var C=T(864),v=T(879),N=T(980),A=T(430),M=T(414),L=T(411),B=L.validators;function V(Z){this.defaults=Z,this.interceptors={request:new N,response:new N}}V.prototype.request=function(J,G){"string"==typeof J?(G=G||{}).url=J:G=J||{},(G=M(this.defaults,G)).method=G.method?G.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var $=G.transitional;void 0!==$&&L.assertOptions($,{silentJSONParsing:B.transitional(B.boolean),forcedJSONParsing:B.transitional(B.boolean),clarifyTimeoutError:B.transitional(B.boolean)},!1);var He=[],it=!0;this.interceptors.request.forEach(function(Rt){"function"==typeof Rt.runWhen&&!1===Rt.runWhen(G)||(it=it&&Rt.synchronous,He.unshift(Rt.fulfilled,Rt.rejected))});var Ct,at=[];if(this.interceptors.response.forEach(function(Rt){at.push(Rt.fulfilled,Rt.rejected)}),!it){var It=[A,void 0];for(Array.prototype.unshift.apply(It,He),It=It.concat(at),Ct=Promise.resolve(G);It.length;)Ct=Ct.then(It.shift(),It.shift());return Ct}for(var pn=G;He.length;){var In=He.shift(),jn=He.shift();try{pn=In(pn)}catch(we){jn(we);break}}try{Ct=A(pn)}catch(we){return Promise.reject(we)}for(;at.length;)Ct=Ct.then(at.shift(),at.shift());return Ct},V.prototype.getUri=function(J){return J=M(this.defaults,J),v(J.url,J.params,J.paramsSerializer).replace(/^\?/,"")},C.forEach(["delete","get","head","options"],function(J){V.prototype[J]=function(G,$){return this.request(M($||{},{method:J,url:G,data:($||{}).data}))}}),C.forEach(["post","put","patch"],function(J){V.prototype[J]=function(G,$,He){return this.request(M(He||{},{method:J,url:G,data:$}))}}),E.exports=V},980:(E,Y,T)=>{"use strict";var C=T(864);function v(){this.handlers=[]}v.prototype.use=function(A,M,L){return this.handlers.push({fulfilled:A,rejected:M,synchronous:!!L&&L.synchronous,runWhen:L?L.runWhen:null}),this.handlers.length-1},v.prototype.eject=function(A){this.handlers[A]&&(this.handlers[A]=null)},v.prototype.forEach=function(A){C.forEach(this.handlers,function(L){null!==L&&A(L)})},E.exports=v},911:(E,Y,T)=>{"use strict";var C=T(987),v=T(795);E.exports=function(A,M){return A&&!C(M)?v(A,M):M}},312:(E,Y,T)=>{"use strict";var C=T(547);E.exports=function(N,A,M,L,B){var V=new Error(N);return C(V,A,M,L,B)}},430:(E,Y,T)=>{"use strict";var C=T(864),v=T(243),N=T(329),A=T(395),M=T(503);function L(B){if(B.cancelToken&&B.cancelToken.throwIfRequested(),B.signal&&B.signal.aborted)throw new M("canceled")}E.exports=function(V){return L(V),V.headers=V.headers||{},V.data=v.call(V,V.data,V.headers,V.transformRequest),V.headers=C.merge(V.headers.common||{},V.headers[V.method]||{},V.headers),C.forEach(["delete","get","head","post","put","patch","common"],function(G){delete V.headers[G]}),(V.adapter||A.adapter)(V).then(function(G){return L(V),G.data=v.call(V,G.data,G.headers,V.transformResponse),G},function(G){return N(G)||(L(V),G&&G.response&&(G.response.data=v.call(V,G.response.data,G.response.headers,V.transformResponse))),Promise.reject(G)})}},547:E=>{"use strict";E.exports=function(T,C,v,N,A){return T.config=C,v&&(T.code=v),T.request=N,T.response=A,T.isAxiosError=!0,T.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},T}},414:(E,Y,T)=>{"use strict";var C=T(864);E.exports=function(N,A){A=A||{};var M={};function L($,He){return C.isPlainObject($)&&C.isPlainObject(He)?C.merge($,He):C.isPlainObject(He)?C.merge({},He):C.isArray(He)?He.slice():He}function B($){return C.isUndefined(A[$])?C.isUndefined(N[$])?void 0:L(void 0,N[$]):L(N[$],A[$])}function V($){if(!C.isUndefined(A[$]))return L(void 0,A[$])}function Z($){return C.isUndefined(A[$])?C.isUndefined(N[$])?void 0:L(void 0,N[$]):L(void 0,A[$])}function J($){return $ in A?L(N[$],A[$]):$ in N?L(void 0,N[$]):void 0}var G={url:V,method:V,data:V,baseURL:Z,transformRequest:Z,transformResponse:Z,paramsSerializer:Z,timeout:Z,timeoutMessage:Z,withCredentials:Z,adapter:Z,responseType:Z,xsrfCookieName:Z,xsrfHeaderName:Z,onUploadProgress:Z,onDownloadProgress:Z,decompress:Z,maxContentLength:Z,maxBodyLength:Z,transport:Z,httpAgent:Z,httpsAgent:Z,cancelToken:Z,socketPath:Z,responseEncoding:Z,validateStatus:J};return C.forEach(Object.keys(N).concat(Object.keys(A)),function(He){var it=G[He]||B,at=it(He);C.isUndefined(at)&&it!==J||(M[He]=at)}),M}},737:(E,Y,T)=>{"use strict";var C=T(312);E.exports=function(N,A,M){var L=M.config.validateStatus;M.status&&L&&!L(M.status)?A(C("Request failed with status code "+M.status,M.config,null,M.request,M)):N(M)}},243:(E,Y,T)=>{"use strict";var C=T(864),v=T(395);E.exports=function(A,M,L){var B=this||v;return C.forEach(L,function(Z){A=Z.call(B,A,M)}),A}},395:(E,Y,T)=>{"use strict";var C=T(864),v=T(168),N=T(547),A={"Content-Type":"application/x-www-form-urlencoded"};function M(Z,J){!C.isUndefined(Z)&&C.isUndefined(Z["Content-Type"])&&(Z["Content-Type"]=J)}var V={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:function L(){var Z;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&"[object process]"===Object.prototype.toString.call(process))&&(Z=T(739)),Z}(),transformRequest:[function(J,G){return v(G,"Accept"),v(G,"Content-Type"),C.isFormData(J)||C.isArrayBuffer(J)||C.isBuffer(J)||C.isStream(J)||C.isFile(J)||C.isBlob(J)?J:C.isArrayBufferView(J)?J.buffer:C.isURLSearchParams(J)?(M(G,"application/x-www-form-urlencoded;charset=utf-8"),J.toString()):C.isObject(J)||G&&"application/json"===G["Content-Type"]?(M(G,"application/json"),function B(Z,J,G){if(C.isString(Z))try{return(J||JSON.parse)(Z),C.trim(Z)}catch($){if("SyntaxError"!==$.name)throw $}return(G||JSON.stringify)(Z)}(J)):J}],transformResponse:[function(J){var G=this.transitional||V.transitional,it=!(G&&G.silentJSONParsing)&&"json"===this.responseType;if(it||G&&G.forcedJSONParsing&&C.isString(J)&&J.length)try{return JSON.parse(J)}catch(at){if(it)throw"SyntaxError"===at.name?N(at,this,"E_JSON_PARSE"):at}return J}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(J){return J>=200&&J<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};C.forEach(["delete","get","head"],function(J){V.headers[J]={}}),C.forEach(["post","put","patch"],function(J){V.headers[J]=C.merge(A)}),E.exports=V},560:E=>{E.exports={version:"0.26.0"}},934:E=>{"use strict";E.exports=function(T,C){return function(){for(var N=new Array(arguments.length),A=0;A<N.length;A++)N[A]=arguments[A];return T.apply(C,N)}}},879:(E,Y,T)=>{"use strict";var C=T(864);function v(N){return encodeURIComponent(N).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}E.exports=function(A,M,L){if(!M)return A;var B;if(L)B=L(M);else if(C.isURLSearchParams(M))B=M.toString();else{var V=[];C.forEach(M,function(G,$){null===G||typeof G>"u"||(C.isArray(G)?$+="[]":G=[G],C.forEach(G,function(it){C.isDate(it)?it=it.toISOString():C.isObject(it)&&(it=JSON.stringify(it)),V.push(v($)+"="+v(it))}))}),B=V.join("&")}if(B){var Z=A.indexOf("#");-1!==Z&&(A=A.slice(0,Z)),A+=(-1===A.indexOf("?")?"?":"&")+B}return A}},795:E=>{"use strict";E.exports=function(T,C){return C?T.replace(/\/+$/,"")+"/"+C.replace(/^\/+/,""):T}},597:(E,Y,T)=>{"use strict";var C=T(864);E.exports=C.isStandardBrowserEnv()?function(){return{write:function(A,M,L,B,V,Z){var J=[];J.push(A+"="+encodeURIComponent(M)),C.isNumber(L)&&J.push("expires="+new Date(L).toGMTString()),C.isString(B)&&J.push("path="+B),C.isString(V)&&J.push("domain="+V),!0===Z&&J.push("secure"),document.cookie=J.join("; ")},read:function(A){var M=document.cookie.match(new RegExp("(^|;\\s*)("+A+")=([^;]*)"));return M?decodeURIComponent(M[3]):null},remove:function(A){this.write(A,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},987:E=>{"use strict";E.exports=function(T){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(T)}},792:(E,Y,T)=>{"use strict";var C=T(864);E.exports=function(N){return C.isObject(N)&&!0===N.isAxiosError}},910:(E,Y,T)=>{"use strict";var C=T(864);E.exports=C.isStandardBrowserEnv()?function(){var M,N=/(msie|trident)/i.test(navigator.userAgent),A=document.createElement("a");function L(B){var V=B;return N&&(A.setAttribute("href",V),V=A.href),A.setAttribute("href",V),{href:A.href,protocol:A.protocol?A.protocol.replace(/:$/,""):"",host:A.host,search:A.search?A.search.replace(/^\?/,""):"",hash:A.hash?A.hash.replace(/^#/,""):"",hostname:A.hostname,port:A.port,pathname:"/"===A.pathname.charAt(0)?A.pathname:"/"+A.pathname}}return M=L(window.location.href),function(V){var Z=C.isString(V)?L(V):V;return Z.protocol===M.protocol&&Z.host===M.host}}():function(){return function(){return!0}}()},168:(E,Y,T)=>{"use strict";var C=T(864);E.exports=function(N,A){C.forEach(N,function(L,B){B!==A&&B.toUpperCase()===A.toUpperCase()&&(N[A]=L,delete N[B])})}},170:(E,Y,T)=>{"use strict";var C=T(864),v=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];E.exports=function(A){var L,B,V,M={};return A&&C.forEach(A.split("\n"),function(J){if(V=J.indexOf(":"),L=C.trim(J.substr(0,V)).toLowerCase(),B=C.trim(J.substr(V+1)),L){if(M[L]&&v.indexOf(L)>=0)return;M[L]="set-cookie"===L?(M[L]?M[L]:[]).concat([B]):M[L]?M[L]+", "+B:B}}),M}},131:E=>{"use strict";E.exports=function(T){return function(v){return T.apply(null,v)}}},411:(E,Y,T)=>{"use strict";var C=T(560).version,v={};["object","boolean","number","function","string","symbol"].forEach(function(M,L){v[M]=function(V){return typeof V===M||"a"+(L<1?"n ":" ")+M}});var N={};v.transitional=function(L,B,V){function Z(J,G){return"[Axios v"+C+"] Transitional option '"+J+"'"+G+(V?". "+V:"")}return function(J,G,$){if(!1===L)throw new Error(Z(G," has been removed"+(B?" in "+B:"")));return B&&!N[G]&&(N[G]=!0,console.warn(Z(G," has been deprecated since v"+B+" and will be removed in the near future"))),!L||L(J,G,$)}},E.exports={assertOptions:function A(M,L,B){if("object"!=typeof M)throw new TypeError("options must be an object");for(var V=Object.keys(M),Z=V.length;Z-- >0;){var J=V[Z],G=L[J];if(G){var $=M[J],He=void 0===$||G($,J,M);if(!0!==He)throw new TypeError("option "+J+" must be "+He)}else if(!0!==B)throw Error("Unknown option "+J)}},validators:v}},864:(E,Y,T)=>{"use strict";var C=T(934),v=Object.prototype.toString;function N(re){return Array.isArray(re)}function A(re){return typeof re>"u"}function L(re){return"[object ArrayBuffer]"===v.call(re)}function G(re){return null!==re&&"object"==typeof re}function $(re){if("[object Object]"!==v.call(re))return!1;var bt=Object.getPrototypeOf(re);return null===bt||bt===Object.prototype}function Ct(re){return"[object Function]"===v.call(re)}function we(re,bt){if(!(null===re||typeof re>"u"))if("object"!=typeof re&&(re=[re]),N(re))for(var ct=0,gn=re.length;ct<gn;ct++)bt.call(null,re[ct],ct,re);else for(var Et in re)Object.prototype.hasOwnProperty.call(re,Et)&&bt.call(null,re[Et],Et,re)}E.exports={isArray:N,isArrayBuffer:L,isBuffer:function M(re){return null!==re&&!A(re)&&null!==re.constructor&&!A(re.constructor)&&"function"==typeof re.constructor.isBuffer&&re.constructor.isBuffer(re)},isFormData:function B(re){return"[object FormData]"===v.call(re)},isArrayBufferView:function V(re){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(re):re&&re.buffer&&L(re.buffer)},isString:function Z(re){return"string"==typeof re},isNumber:function J(re){return"number"==typeof re},isObject:G,isPlainObject:$,isUndefined:A,isDate:function He(re){return"[object Date]"===v.call(re)},isFile:function it(re){return"[object File]"===v.call(re)},isBlob:function at(re){return"[object Blob]"===v.call(re)},isFunction:Ct,isStream:function It(re){return G(re)&&Ct(re.pipe)},isURLSearchParams:function pn(re){return"[object URLSearchParams]"===v.call(re)},isStandardBrowserEnv:function jn(){return(!(typeof navigator<"u")||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&typeof window<"u"&&typeof document<"u"},forEach:we,merge:function Rt(){var re={};function bt(Et,mn){re[mn]=$(re[mn])&&$(Et)?Rt(re[mn],Et):$(Et)?Rt({},Et):N(Et)?Et.slice():Et}for(var ct=0,gn=arguments.length;ct<gn;ct++)we(arguments[ct],bt);return re},extend:function eo(re,bt,ct){return we(bt,function(Et,mn){re[mn]=ct&&"function"==typeof Et?C(Et,ct):Et}),re},trim:function In(re){return re.trim?re.trim():re.replace(/^\s+|\s+$/g,"")},stripBOM:function nr(re){return 65279===re.charCodeAt(0)&&(re=re.slice(1)),re}}},413:(module,exports,__webpack_require__)=>{var __WEBPACK_AMD_DEFINE_RESULT__;(function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD=__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];(root.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(E){return"[object Array]"===Object.prototype.toString.call(E)}),ARRAY_BUFFER&&(root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(E){return"object"==typeof E&&E.buffer&&E.buffer.constructor===ArrayBuffer});var createOutputMethod=function(E,Y){return function(T){return new Sha256(Y,!0).update(T)[E]()}},createMethod=function(E){var Y=createOutputMethod("hex",E);NODE_JS&&(Y=nodeWrap(Y,E)),Y.create=function(){return new Sha256(E)},Y.update=function(v){return Y.create().update(v)};for(var T=0;T<OUTPUT_TYPES.length;++T){var C=OUTPUT_TYPES[T];Y[C]=createOutputMethod(C,E)}return Y},nodeWrap=function(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=function(E){if("string"==typeof E)return crypto.createHash(algorithm).update(E,"utf8").digest("hex");if(null==E)throw new Error(ERROR);return E.constructor===ArrayBuffer&&(E=new Uint8Array(E)),Array.isArray(E)||ArrayBuffer.isView(E)||E.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(E)).digest("hex"):method(E)};return nodeMethod},createHmacOutputMethod=function(E,Y){return function(T,C){return new HmacSha256(T,Y,!0).update(C)[E]()}},createHmacMethod=function(E){var Y=createHmacOutputMethod("hex",E);Y.create=function(v){return new HmacSha256(v,E)},Y.update=function(v,N){return Y.create(v).update(N)};for(var T=0;T<OUTPUT_TYPES.length;++T){var C=OUTPUT_TYPES[T];Y[C]=createHmacOutputMethod(C,E)}return Y};function Sha256(E,Y){Y?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],E?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=E}function HmacSha256(E,Y,T){var C,v=typeof E;if("string"===v){var L,N=[],A=E.length,M=0;for(C=0;C<A;++C)(L=E.charCodeAt(C))<128?N[M++]=L:L<2048?(N[M++]=192|L>>6,N[M++]=128|63&L):L<55296||L>=57344?(N[M++]=224|L>>12,N[M++]=128|L>>6&63,N[M++]=128|63&L):(L=65536+((1023&L)<<10|1023&E.charCodeAt(++C)),N[M++]=240|L>>18,N[M++]=128|L>>12&63,N[M++]=128|L>>6&63,N[M++]=128|63&L);E=N}else{if("object"!==v)throw new Error(ERROR);if(null===E)throw new Error(ERROR);if(ARRAY_BUFFER&&E.constructor===ArrayBuffer)E=new Uint8Array(E);else if(!(Array.isArray(E)||ARRAY_BUFFER&&ArrayBuffer.isView(E)))throw new Error(ERROR)}E.length>64&&(E=new Sha256(Y,!0).update(E).array());var B=[],V=[];for(C=0;C<64;++C){var Z=E[C]||0;B[C]=92^Z,V[C]=54^Z}Sha256.call(this,Y,T),this.update(V),this.oKeyPad=B,this.inner=!0,this.sharedMemory=T}Sha256.prototype.update=function(E){if(!this.finalized){var Y,T=typeof E;if("string"!==T){if("object"!==T)throw new Error(ERROR);if(null===E)throw new Error(ERROR);if(ARRAY_BUFFER&&E.constructor===ArrayBuffer)E=new Uint8Array(E);else if(!(Array.isArray(E)||ARRAY_BUFFER&&ArrayBuffer.isView(E)))throw new Error(ERROR);Y=!0}for(var C,N,v=0,A=E.length,M=this.blocks;v<A;){if(this.hashed&&(this.hashed=!1,M[0]=this.block,M[16]=M[1]=M[2]=M[3]=M[4]=M[5]=M[6]=M[7]=M[8]=M[9]=M[10]=M[11]=M[12]=M[13]=M[14]=M[15]=0),Y)for(N=this.start;v<A&&N<64;++v)M[N>>2]|=E[v]<<SHIFT[3&N++];else for(N=this.start;v<A&&N<64;++v)(C=E.charCodeAt(v))<128?M[N>>2]|=C<<SHIFT[3&N++]:C<2048?(M[N>>2]|=(192|C>>6)<<SHIFT[3&N++],M[N>>2]|=(128|63&C)<<SHIFT[3&N++]):C<55296||C>=57344?(M[N>>2]|=(224|C>>12)<<SHIFT[3&N++],M[N>>2]|=(128|C>>6&63)<<SHIFT[3&N++],M[N>>2]|=(128|63&C)<<SHIFT[3&N++]):(C=65536+((1023&C)<<10|1023&E.charCodeAt(++v)),M[N>>2]|=(240|C>>18)<<SHIFT[3&N++],M[N>>2]|=(128|C>>12&63)<<SHIFT[3&N++],M[N>>2]|=(128|C>>6&63)<<SHIFT[3&N++],M[N>>2]|=(128|63&C)<<SHIFT[3&N++]);this.lastByteIndex=N,this.bytes+=N-this.start,N>=64?(this.block=M[16],this.start=N-64,this.hash(),this.hashed=!0):this.start=N}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var E=this.blocks,Y=this.lastByteIndex;E[16]=this.block,E[Y>>2]|=EXTRA[3&Y],this.block=E[16],Y>=56&&(this.hashed||this.hash(),E[0]=this.block,E[16]=E[1]=E[2]=E[3]=E[4]=E[5]=E[6]=E[7]=E[8]=E[9]=E[10]=E[11]=E[12]=E[13]=E[14]=E[15]=0),E[14]=this.hBytes<<3|this.bytes>>>29,E[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var B,G,it,at,Ct,It,E=this.h0,Y=this.h1,T=this.h2,C=this.h3,v=this.h4,N=this.h5,A=this.h6,M=this.h7,L=this.blocks;for(B=16;B<64;++B)L[B]=L[B-16]+(((G=L[B-15])>>>7|G<<25)^(G>>>18|G<<14)^G>>>3)+L[B-7]+(((G=L[B-2])>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)<<0;for(It=Y&T,B=0;B<64;B+=4)this.first?(this.is224?(it=300032,M=(G=L[0]-1413257819)-150054599<<0,C=G+24177077<<0):(it=704751109,M=(G=L[0]-210244248)-1521486534<<0,C=G+143694565<<0),this.first=!1):(M=C+(G=M+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(v&N^~v&A)+K[B]+L[B])<<0,C=G+(((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+((it=E&Y)^E&T^It))<<0),A=T+(G=A+((M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7))+(M&v^~M&N)+K[B+1]+L[B+1])<<0,T=G+(((C>>>2|C<<30)^(C>>>13|C<<19)^(C>>>22|C<<10))+((at=C&E)^C&Y^it))<<0,N=Y+(G=N+((A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7))+(A&M^~A&v)+K[B+2]+L[B+2])<<0,Y=G+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((Ct=T&C)^T&E^at))<<0,v=E+(G=v+((N>>>6|N<<26)^(N>>>11|N<<21)^(N>>>25|N<<7))+(N&A^~N&M)+K[B+3]+L[B+3])<<0,E=G+(((Y>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10))+((It=Y&T)^Y&C^Ct))<<0;this.h0=this.h0+E<<0,this.h1=this.h1+Y<<0,this.h2=this.h2+T<<0,this.h3=this.h3+C<<0,this.h4=this.h4+v<<0,this.h5=this.h5+N<<0,this.h6=this.h6+A<<0,this.h7=this.h7+M<<0},Sha256.prototype.hex=function(){this.finalize();var E=this.h0,Y=this.h1,T=this.h2,C=this.h3,v=this.h4,N=this.h5,A=this.h6,M=this.h7,L=HEX_CHARS[E>>28&15]+HEX_CHARS[E>>24&15]+HEX_CHARS[E>>20&15]+HEX_CHARS[E>>16&15]+HEX_CHARS[E>>12&15]+HEX_CHARS[E>>8&15]+HEX_CHARS[E>>4&15]+HEX_CHARS[15&E]+HEX_CHARS[Y>>28&15]+HEX_CHARS[Y>>24&15]+HEX_CHARS[Y>>20&15]+HEX_CHARS[Y>>16&15]+HEX_CHARS[Y>>12&15]+HEX_CHARS[Y>>8&15]+HEX_CHARS[Y>>4&15]+HEX_CHARS[15&Y]+HEX_CHARS[T>>28&15]+HEX_CHARS[T>>24&15]+HEX_CHARS[T>>20&15]+HEX_CHARS[T>>16&15]+HEX_CHARS[T>>12&15]+HEX_CHARS[T>>8&15]+HEX_CHARS[T>>4&15]+HEX_CHARS[15&T]+HEX_CHARS[C>>28&15]+HEX_CHARS[C>>24&15]+HEX_CHARS[C>>20&15]+HEX_CHARS[C>>16&15]+HEX_CHARS[C>>12&15]+HEX_CHARS[C>>8&15]+HEX_CHARS[C>>4&15]+HEX_CHARS[15&C]+HEX_CHARS[v>>28&15]+HEX_CHARS[v>>24&15]+HEX_CHARS[v>>20&15]+HEX_CHARS[v>>16&15]+HEX_CHARS[v>>12&15]+HEX_CHARS[v>>8&15]+HEX_CHARS[v>>4&15]+HEX_CHARS[15&v]+HEX_CHARS[N>>28&15]+HEX_CHARS[N>>24&15]+HEX_CHARS[N>>20&15]+HEX_CHARS[N>>16&15]+HEX_CHARS[N>>12&15]+HEX_CHARS[N>>8&15]+HEX_CHARS[N>>4&15]+HEX_CHARS[15&N]+HEX_CHARS[A>>28&15]+HEX_CHARS[A>>24&15]+HEX_CHARS[A>>20&15]+HEX_CHARS[A>>16&15]+HEX_CHARS[A>>12&15]+HEX_CHARS[A>>8&15]+HEX_CHARS[A>>4&15]+HEX_CHARS[15&A];return this.is224||(L+=HEX_CHARS[M>>28&15]+HEX_CHARS[M>>24&15]+HEX_CHARS[M>>20&15]+HEX_CHARS[M>>16&15]+HEX_CHARS[M>>12&15]+HEX_CHARS[M>>8&15]+HEX_CHARS[M>>4&15]+HEX_CHARS[15&M]),L},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var E=this.h0,Y=this.h1,T=this.h2,C=this.h3,v=this.h4,N=this.h5,A=this.h6,M=this.h7,L=[E>>24&255,E>>16&255,E>>8&255,255&E,Y>>24&255,Y>>16&255,Y>>8&255,255&Y,T>>24&255,T>>16&255,T>>8&255,255&T,C>>24&255,C>>16&255,C>>8&255,255&C,v>>24&255,v>>16&255,v>>8&255,255&v,N>>24&255,N>>16&255,N>>8&255,255&N,A>>24&255,A>>16&255,A>>8&255,255&A];return this.is224||L.push(M>>24&255,M>>16&255,M>>8&255,255&M),L},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var E=new ArrayBuffer(this.is224?28:32),Y=new DataView(E);return Y.setUint32(0,this.h0),Y.setUint32(4,this.h1),Y.setUint32(8,this.h2),Y.setUint32(12,this.h3),Y.setUint32(16,this.h4),Y.setUint32(20,this.h5),Y.setUint32(24,this.h6),this.is224||Y.setUint32(28,this.h7),E},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var E=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(E),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()},543:(E,Y,T)=>{!function(C){"use strict";var v=function(h){var g,p=new Float64Array(16);if(h)for(g=0;g<h.length;g++)p[g]=h[g];return p},N=function(){throw new Error("no PRNG")},A=new Uint8Array(16),M=new Uint8Array(32);M[0]=9;var L=v(),B=v([1]),V=v([56129,1]),Z=v([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),J=v([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),G=v([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),$=v([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),He=v([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function it(h,g,p,l){h[g]=p>>24&255,h[g+1]=p>>16&255,h[g+2]=p>>8&255,h[g+3]=255&p,h[g+4]=l>>24&255,h[g+5]=l>>16&255,h[g+6]=l>>8&255,h[g+7]=255&l}function at(h,g,p,l,m){var x,I=0;for(x=0;x<m;x++)I|=h[g+x]^p[l+x];return(1&I-1>>>8)-1}function Ct(h,g,p,l){return at(h,g,p,l,16)}function It(h,g,p,l){return at(h,g,p,l,32)}function jn(h,g,p,l){!function pn(h,g,p,l){for(var D,m=255&l[0]|(255&l[1])<<8|(255&l[2])<<16|(255&l[3])<<24,x=255&p[0]|(255&p[1])<<8|(255&p[2])<<16|(255&p[3])<<24,I=255&p[4]|(255&p[5])<<8|(255&p[6])<<16|(255&p[7])<<24,w=255&p[8]|(255&p[9])<<8|(255&p[10])<<16|(255&p[11])<<24,X=255&p[12]|(255&p[13])<<8|(255&p[14])<<16|(255&p[15])<<24,_e=255&l[4]|(255&l[5])<<8|(255&l[6])<<16|(255&l[7])<<24,ue=255&g[0]|(255&g[1])<<8|(255&g[2])<<16|(255&g[3])<<24,rt=255&g[4]|(255&g[5])<<8|(255&g[6])<<16|(255&g[7])<<24,ye=255&g[8]|(255&g[9])<<8|(255&g[10])<<16|(255&g[11])<<24,Se=255&g[12]|(255&g[13])<<8|(255&g[14])<<16|(255&g[15])<<24,Oe=255&l[8]|(255&l[9])<<8|(255&l[10])<<16|(255&l[11])<<24,$e=255&p[16]|(255&p[17])<<8|(255&p[18])<<16|(255&p[19])<<24,Ue=255&p[20]|(255&p[21])<<8|(255&p[22])<<16|(255&p[23])<<24,ce=255&p[24]|(255&p[25])<<8|(255&p[26])<<16|(255&p[27])<<24,Fe=255&p[28]|(255&p[29])<<8|(255&p[30])<<16|(255&p[31])<<24,ve=255&l[12]|(255&l[13])<<8|(255&l[14])<<16|(255&l[15])<<24,ge=m,Ce=x,he=I,ne=w,H=X,ae=_e,O=ue,R=rt,q=ye,U=Se,j=Oe,W=$e,be=Ue,Le=ce,se=Fe,le=ve,qe=0;qe<20;qe+=2)ge^=(D=(be^=(D=(q^=(D=(H^=(D=ge+be|0)<<7|D>>>25)+ge|0)<<9|D>>>23)+H|0)<<13|D>>>19)+q|0)<<18|D>>>14,ae^=(D=(Ce^=(D=(Le^=(D=(U^=(D=ae+Ce|0)<<7|D>>>25)+ae|0)<<9|D>>>23)+U|0)<<13|D>>>19)+Le|0)<<18|D>>>14,j^=(D=(O^=(D=(he^=(D=(se^=(D=j+O|0)<<7|D>>>25)+j|0)<<9|D>>>23)+se|0)<<13|D>>>19)+he|0)<<18|D>>>14,le^=(D=(W^=(D=(R^=(D=(ne^=(D=le+W|0)<<7|D>>>25)+le|0)<<9|D>>>23)+ne|0)<<13|D>>>19)+R|0)<<18|D>>>14,ge^=(D=(ne^=(D=(he^=(D=(Ce^=(D=ge+ne|0)<<7|D>>>25)+ge|0)<<9|D>>>23)+Ce|0)<<13|D>>>19)+he|0)<<18|D>>>14,ae^=(D=(H^=(D=(R^=(D=(O^=(D=ae+H|0)<<7|D>>>25)+ae|0)<<9|D>>>23)+O|0)<<13|D>>>19)+R|0)<<18|D>>>14,j^=(D=(U^=(D=(q^=(D=(W^=(D=j+U|0)<<7|D>>>25)+j|0)<<9|D>>>23)+W|0)<<13|D>>>19)+q|0)<<18|D>>>14,le^=(D=(se^=(D=(Le^=(D=(be^=(D=le+se|0)<<7|D>>>25)+le|0)<<9|D>>>23)+be|0)<<13|D>>>19)+Le|0)<<18|D>>>14;Ce=Ce+x|0,he=he+I|0,ne=ne+w|0,H=H+X|0,ae=ae+_e|0,O=O+ue|0,R=R+rt|0,q=q+ye|0,U=U+Se|0,j=j+Oe|0,W=W+$e|0,be=be+Ue|0,Le=Le+ce|0,se=se+Fe|0,le=le+ve|0,h[0]=(ge=ge+m|0)>>>0&255,h[1]=ge>>>8&255,h[2]=ge>>>16&255,h[3]=ge>>>24&255,h[4]=Ce>>>0&255,h[5]=Ce>>>8&255,h[6]=Ce>>>16&255,h[7]=Ce>>>24&255,h[8]=he>>>0&255,h[9]=he>>>8&255,h[10]=he>>>16&255,h[11]=he>>>24&255,h[12]=ne>>>0&255,h[13]=ne>>>8&255,h[14]=ne>>>16&255,h[15]=ne>>>24&255,h[16]=H>>>0&255,h[17]=H>>>8&255,h[18]=H>>>16&255,h[19]=H>>>24&255,h[20]=ae>>>0&255,h[21]=ae>>>8&255,h[22]=ae>>>16&255,h[23]=ae>>>24&255,h[24]=O>>>0&255,h[25]=O>>>8&255,h[26]=O>>>16&255,h[27]=O>>>24&255,h[28]=R>>>0&255,h[29]=R>>>8&255,h[30]=R>>>16&255,h[31]=R>>>24&255,h[32]=q>>>0&255,h[33]=q>>>8&255,h[34]=q>>>16&255,h[35]=q>>>24&255,h[36]=U>>>0&255,h[37]=U>>>8&255,h[38]=U>>>16&255,h[39]=U>>>24&255,h[40]=j>>>0&255,h[41]=j>>>8&255,h[42]=j>>>16&255,h[43]=j>>>24&255,h[44]=W>>>0&255,h[45]=W>>>8&255,h[46]=W>>>16&255,h[47]=W>>>24&255,h[48]=be>>>0&255,h[49]=be>>>8&255,h[50]=be>>>16&255,h[51]=be>>>24&255,h[52]=Le>>>0&255,h[53]=Le>>>8&255,h[54]=Le>>>16&255,h[55]=Le>>>24&255,h[56]=se>>>0&255,h[57]=se>>>8&255,h[58]=se>>>16&255,h[59]=se>>>24&255,h[60]=le>>>0&255,h[61]=le>>>8&255,h[62]=le>>>16&255,h[63]=le>>>24&255}(h,g,p,l)}function we(h,g,p,l){!function In(h,g,p,l){for(var D,ge=255&l[0]|(255&l[1])<<8|(255&l[2])<<16|(255&l[3])<<24,Ce=255&p[0]|(255&p[1])<<8|(255&p[2])<<16|(255&p[3])<<24,he=255&p[4]|(255&p[5])<<8|(255&p[6])<<16|(255&p[7])<<24,ne=255&p[8]|(255&p[9])<<8|(255&p[10])<<16|(255&p[11])<<24,H=255&p[12]|(255&p[13])<<8|(255&p[14])<<16|(255&p[15])<<24,ae=255&l[4]|(255&l[5])<<8|(255&l[6])<<16|(255&l[7])<<24,O=255&g[0]|(255&g[1])<<8|(255&g[2])<<16|(255&g[3])<<24,R=255&g[4]|(255&g[5])<<8|(255&g[6])<<16|(255&g[7])<<24,q=255&g[8]|(255&g[9])<<8|(255&g[10])<<16|(255&g[11])<<24,U=255&g[12]|(255&g[13])<<8|(255&g[14])<<16|(255&g[15])<<24,j=255&l[8]|(255&l[9])<<8|(255&l[10])<<16|(255&l[11])<<24,W=255&p[16]|(255&p[17])<<8|(255&p[18])<<16|(255&p[19])<<24,be=255&p[20]|(255&p[21])<<8|(255&p[22])<<16|(255&p[23])<<24,Le=255&p[24]|(255&p[25])<<8|(255&p[26])<<16|(255&p[27])<<24,se=255&p[28]|(255&p[29])<<8|(255&p[30])<<16|(255&p[31])<<24,le=255&l[12]|(255&l[13])<<8|(255&l[14])<<16|(255&l[15])<<24,qe=0;qe<20;qe+=2)ge^=(D=(be^=(D=(q^=(D=(H^=(D=ge+be|0)<<7|D>>>25)+ge|0)<<9|D>>>23)+H|0)<<13|D>>>19)+q|0)<<18|D>>>14,ae^=(D=(Ce^=(D=(Le^=(D=(U^=(D=ae+Ce|0)<<7|D>>>25)+ae|0)<<9|D>>>23)+U|0)<<13|D>>>19)+Le|0)<<18|D>>>14,j^=(D=(O^=(D=(he^=(D=(se^=(D=j+O|0)<<7|D>>>25)+j|0)<<9|D>>>23)+se|0)<<13|D>>>19)+he|0)<<18|D>>>14,le^=(D=(W^=(D=(R^=(D=(ne^=(D=le+W|0)<<7|D>>>25)+le|0)<<9|D>>>23)+ne|0)<<13|D>>>19)+R|0)<<18|D>>>14,ge^=(D=(ne^=(D=(he^=(D=(Ce^=(D=ge+ne|0)<<7|D>>>25)+ge|0)<<9|D>>>23)+Ce|0)<<13|D>>>19)+he|0)<<18|D>>>14,ae^=(D=(H^=(D=(R^=(D=(O^=(D=ae+H|0)<<7|D>>>25)+ae|0)<<9|D>>>23)+O|0)<<13|D>>>19)+R|0)<<18|D>>>14,j^=(D=(U^=(D=(q^=(D=(W^=(D=j+U|0)<<7|D>>>25)+j|0)<<9|D>>>23)+W|0)<<13|D>>>19)+q|0)<<18|D>>>14,le^=(D=(se^=(D=(Le^=(D=(be^=(D=le+se|0)<<7|D>>>25)+le|0)<<9|D>>>23)+be|0)<<13|D>>>19)+Le|0)<<18|D>>>14;h[0]=ge>>>0&255,h[1]=ge>>>8&255,h[2]=ge>>>16&255,h[3]=ge>>>24&255,h[4]=ae>>>0&255,h[5]=ae>>>8&255,h[6]=ae>>>16&255,h[7]=ae>>>24&255,h[8]=j>>>0&255,h[9]=j>>>8&255,h[10]=j>>>16&255,h[11]=j>>>24&255,h[12]=le>>>0&255,h[13]=le>>>8&255,h[14]=le>>>16&255,h[15]=le>>>24&255,h[16]=O>>>0&255,h[17]=O>>>8&255,h[18]=O>>>16&255,h[19]=O>>>24&255,h[20]=R>>>0&255,h[21]=R>>>8&255,h[22]=R>>>16&255,h[23]=R>>>24&255,h[24]=q>>>0&255,h[25]=q>>>8&255,h[26]=q>>>16&255,h[27]=q>>>24&255,h[28]=U>>>0&255,h[29]=U>>>8&255,h[30]=U>>>16&255,h[31]=U>>>24&255}(h,g,p,l)}var Rt=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function eo(h,g,p,l,m,x,I){var _e,ue,w=new Uint8Array(16),X=new Uint8Array(64);for(ue=0;ue<16;ue++)w[ue]=0;for(ue=0;ue<8;ue++)w[ue]=x[ue];for(;m>=64;){for(jn(X,w,I,Rt),ue=0;ue<64;ue++)h[g+ue]=p[l+ue]^X[ue];for(_e=1,ue=8;ue<16;ue++)w[ue]=255&(_e=_e+(255&w[ue])|0),_e>>>=8;m-=64,g+=64,l+=64}if(m>0)for(jn(X,w,I,Rt),ue=0;ue<m;ue++)h[g+ue]=p[l+ue]^X[ue];return 0}function nr(h,g,p,l,m){var w,X,x=new Uint8Array(16),I=new Uint8Array(64);for(X=0;X<16;X++)x[X]=0;for(X=0;X<8;X++)x[X]=l[X];for(;p>=64;){for(jn(I,x,m,Rt),X=0;X<64;X++)h[g+X]=I[X];for(w=1,X=8;X<16;X++)x[X]=255&(w=w+(255&x[X])|0),w>>>=8;p-=64,g+=64}if(p>0)for(jn(I,x,m,Rt),X=0;X<p;X++)h[g+X]=I[X];return 0}function re(h,g,p,l,m){var x=new Uint8Array(32);we(x,l,m,Rt);for(var I=new Uint8Array(8),w=0;w<8;w++)I[w]=l[w+16];return nr(h,g,p,I,x)}function bt(h,g,p,l,m,x,I){var w=new Uint8Array(32);we(w,x,I,Rt);for(var X=new Uint8Array(8),_e=0;_e<8;_e++)X[_e]=x[_e+16];return eo(h,g,p,l,m,X,w)}var ct=function(h){var g,p,l,m,x,I,w,X;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,this.r[0]=8191&(g=255&h[0]|(255&h[1])<<8),this.r[1]=8191&(g>>>13|(p=255&h[2]|(255&h[3])<<8)<<3),this.r[2]=7939&(p>>>10|(l=255&h[4]|(255&h[5])<<8)<<6),this.r[3]=8191&(l>>>7|(m=255&h[6]|(255&h[7])<<8)<<9),this.r[4]=255&(m>>>4|(x=255&h[8]|(255&h[9])<<8)<<12),this.r[5]=x>>>1&8190,this.r[6]=8191&(x>>>14|(I=255&h[10]|(255&h[11])<<8)<<2),this.r[7]=8065&(I>>>11|(w=255&h[12]|(255&h[13])<<8)<<5),this.r[8]=8191&(w>>>8|(X=255&h[14]|(255&h[15])<<8)<<8),this.r[9]=X>>>5&127,this.pad[0]=255&h[16]|(255&h[17])<<8,this.pad[1]=255&h[18]|(255&h[19])<<8,this.pad[2]=255&h[20]|(255&h[21])<<8,this.pad[3]=255&h[22]|(255&h[23])<<8,this.pad[4]=255&h[24]|(255&h[25])<<8,this.pad[5]=255&h[26]|(255&h[27])<<8,this.pad[6]=255&h[28]|(255&h[29])<<8,this.pad[7]=255&h[30]|(255&h[31])<<8};function gn(h,g,p,l,m,x){var I=new ct(x);return I.update(p,l,m),I.finish(h,g),0}function Et(h,g,p,l,m,x){var I=new Uint8Array(16);return gn(I,0,p,l,m,x),Ct(h,g,I,0)}function mn(h,g,p,l,m){var x;if(p<32)return-1;for(bt(h,0,g,0,p,l,m),gn(h,16,h,32,p-32,h),x=0;x<16;x++)h[x]=0;return 0}function to(h,g,p,l,m){var x,I=new Uint8Array(32);if(p<32||(re(I,0,32,l,m),0!==Et(g,16,g,32,p-32,I)))return-1;for(bt(h,0,g,0,p,l,m),x=0;x<32;x++)h[x]=0;return 0}function pr(h,g){var p;for(p=0;p<16;p++)h[p]=0|g[p]}function nu(h){var g,p,l=1;for(g=0;g<16;g++)p=h[g]+l+65535,l=Math.floor(p/65536),h[g]=p-65536*l;h[0]+=l-1+37*(l-1)}function no(h,g,p){for(var l,m=~(p-1),x=0;x<16;x++)h[x]^=l=m&(h[x]^g[x]),g[x]^=l}function ro(h,g){var p,l,m,x=v(),I=v();for(p=0;p<16;p++)I[p]=g[p];for(nu(I),nu(I),nu(I),l=0;l<2;l++){for(x[0]=I[0]-65517,p=1;p<15;p++)x[p]=I[p]-65535-(x[p-1]>>16&1),x[p-1]&=65535;x[15]=I[15]-32767-(x[14]>>16&1),m=x[15]>>16&1,x[14]&=65535,no(I,x,1-m)}for(p=0;p<16;p++)h[2*p]=255&I[p],h[2*p+1]=I[p]>>8}function ru(h,g){var p=new Uint8Array(32),l=new Uint8Array(32);return ro(p,h),ro(l,g),It(p,0,l,0)}function ki(h){var g=new Uint8Array(32);return ro(g,h),1&g[0]}function ou(h,g){var p;for(p=0;p<16;p++)h[p]=g[2*p]+(g[2*p+1]<<8);h[15]&=32767}function rr(h,g,p){for(var l=0;l<16;l++)h[l]=g[l]+p[l]}function or(h,g,p){for(var l=0;l<16;l++)h[l]=g[l]-p[l]}function Je(h,g,p){var l,m,x=0,I=0,w=0,X=0,_e=0,ue=0,rt=0,ye=0,Se=0,Oe=0,$e=0,Ue=0,ce=0,Fe=0,ve=0,ge=0,Ce=0,he=0,ne=0,H=0,ae=0,O=0,R=0,q=0,U=0,j=0,W=0,be=0,Le=0,se=0,le=0,D=p[0],qe=p[1],et=p[2],ot=p[3],Ge=p[4],Xe=p[5],Te=p[6],jt=p[7],ut=p[8],Lt=p[9],lt=p[10],Vt=p[11],Yt=p[12],ln=p[13],dn=p[14],sn=p[15];x+=(l=g[0])*D,I+=l*qe,w+=l*et,X+=l*ot,_e+=l*Ge,ue+=l*Xe,rt+=l*Te,ye+=l*jt,Se+=l*ut,Oe+=l*Lt,$e+=l*lt,Ue+=l*Vt,ce+=l*Yt,Fe+=l*ln,ve+=l*dn,ge+=l*sn,I+=(l=g[1])*D,w+=l*qe,X+=l*et,_e+=l*ot,ue+=l*Ge,rt+=l*Xe,ye+=l*Te,Se+=l*jt,Oe+=l*ut,$e+=l*Lt,Ue+=l*lt,ce+=l*Vt,Fe+=l*Yt,ve+=l*ln,ge+=l*dn,Ce+=l*sn,w+=(l=g[2])*D,X+=l*qe,_e+=l*et,ue+=l*ot,rt+=l*Ge,ye+=l*Xe,Se+=l*Te,Oe+=l*jt,$e+=l*ut,Ue+=l*Lt,ce+=l*lt,Fe+=l*Vt,ve+=l*Yt,ge+=l*ln,Ce+=l*dn,he+=l*sn,X+=(l=g[3])*D,_e+=l*qe,ue+=l*et,rt+=l*ot,ye+=l*Ge,Se+=l*Xe,Oe+=l*Te,$e+=l*jt,Ue+=l*ut,ce+=l*Lt,Fe+=l*lt,ve+=l*Vt,ge+=l*Yt,Ce+=l*ln,he+=l*dn,ne+=l*sn,_e+=(l=g[4])*D,ue+=l*qe,rt+=l*et,ye+=l*ot,Se+=l*Ge,Oe+=l*Xe,$e+=l*Te,Ue+=l*jt,ce+=l*ut,Fe+=l*Lt,ve+=l*lt,ge+=l*Vt,Ce+=l*Yt,he+=l*ln,ne+=l*dn,H+=l*sn,ue+=(l=g[5])*D,rt+=l*qe,ye+=l*et,Se+=l*ot,Oe+=l*Ge,$e+=l*Xe,Ue+=l*Te,ce+=l*jt,Fe+=l*ut,ve+=l*Lt,ge+=l*lt,Ce+=l*Vt,he+=l*Yt,ne+=l*ln,H+=l*dn,ae+=l*sn,rt+=(l=g[6])*D,ye+=l*qe,Se+=l*et,Oe+=l*ot,$e+=l*Ge,Ue+=l*Xe,ce+=l*Te,Fe+=l*jt,ve+=l*ut,ge+=l*Lt,Ce+=l*lt,he+=l*Vt,ne+=l*Yt,H+=l*ln,ae+=l*dn,O+=l*sn,ye+=(l=g[7])*D,Se+=l*qe,Oe+=l*et,$e+=l*ot,Ue+=l*Ge,ce+=l*Xe,Fe+=l*Te,ve+=l*jt,ge+=l*ut,Ce+=l*Lt,he+=l*lt,ne+=l*Vt,H+=l*Yt,ae+=l*ln,O+=l*dn,R+=l*sn,Se+=(l=g[8])*D,Oe+=l*qe,$e+=l*et,Ue+=l*ot,ce+=l*Ge,Fe+=l*Xe,ve+=l*Te,ge+=l*jt,Ce+=l*ut,he+=l*Lt,ne+=l*lt,H+=l*Vt,ae+=l*Yt,O+=l*ln,R+=l*dn,q+=l*sn,Oe+=(l=g[9])*D,$e+=l*qe,Ue+=l*et,ce+=l*ot,Fe+=l*Ge,ve+=l*Xe,ge+=l*Te,Ce+=l*jt,he+=l*ut,ne+=l*Lt,H+=l*lt,ae+=l*Vt,O+=l*Yt,R+=l*ln,q+=l*dn,U+=l*sn,$e+=(l=g[10])*D,Ue+=l*qe,ce+=l*et,Fe+=l*ot,ve+=l*Ge,ge+=l*Xe,Ce+=l*Te,he+=l*jt,ne+=l*ut,H+=l*Lt,ae+=l*lt,O+=l*Vt,R+=l*Yt,q+=l*ln,U+=l*dn,j+=l*sn,Ue+=(l=g[11])*D,ce+=l*qe,Fe+=l*et,ve+=l*ot,ge+=l*Ge,Ce+=l*Xe,he+=l*Te,ne+=l*jt,H+=l*ut,ae+=l*Lt,O+=l*lt,R+=l*Vt,q+=l*Yt,U+=l*ln,j+=l*dn,W+=l*sn,ce+=(l=g[12])*D,Fe+=l*qe,ve+=l*et,ge+=l*ot,Ce+=l*Ge,he+=l*Xe,ne+=l*Te,H+=l*jt,ae+=l*ut,O+=l*Lt,R+=l*lt,q+=l*Vt,U+=l*Yt,j+=l*ln,W+=l*dn,be+=l*sn,Fe+=(l=g[13])*D,ve+=l*qe,ge+=l*et,Ce+=l*ot,he+=l*Ge,ne+=l*Xe,H+=l*Te,ae+=l*jt,O+=l*ut,R+=l*Lt,q+=l*lt,U+=l*Vt,j+=l*Yt,W+=l*ln,be+=l*dn,Le+=l*sn,ve+=(l=g[14])*D,ge+=l*qe,Ce+=l*et,he+=l*ot,ne+=l*Ge,H+=l*Xe,ae+=l*Te,O+=l*jt,R+=l*ut,q+=l*Lt,U+=l*lt,j+=l*Vt,W+=l*Yt,be+=l*ln,Le+=l*dn,se+=l*sn,ge+=(l=g[15])*D,I+=38*(he+=l*et),w+=38*(ne+=l*ot),X+=38*(H+=l*Ge),_e+=38*(ae+=l*Xe),ue+=38*(O+=l*Te),rt+=38*(R+=l*jt),ye+=38*(q+=l*ut),Se+=38*(U+=l*Lt),Oe+=38*(j+=l*lt),$e+=38*(W+=l*Vt),Ue+=38*(be+=l*Yt),ce+=38*(Le+=l*ln),Fe+=38*(se+=l*dn),ve+=38*(le+=l*sn),x=(l=(x+=38*(Ce+=l*qe))+(m=1)+65535)-65536*(m=Math.floor(l/65536)),I=(l=I+m+65535)-65536*(m=Math.floor(l/65536)),w=(l=w+m+65535)-65536*(m=Math.floor(l/65536)),X=(l=X+m+65535)-65536*(m=Math.floor(l/65536)),_e=(l=_e+m+65535)-65536*(m=Math.floor(l/65536)),ue=(l=ue+m+65535)-65536*(m=Math.floor(l/65536)),rt=(l=rt+m+65535)-65536*(m=Math.floor(l/65536)),ye=(l=ye+m+65535)-65536*(m=Math.floor(l/65536)),Se=(l=Se+m+65535)-65536*(m=Math.floor(l/65536)),Oe=(l=Oe+m+65535)-65536*(m=Math.floor(l/65536)),$e=(l=$e+m+65535)-65536*(m=Math.floor(l/65536)),Ue=(l=Ue+m+65535)-65536*(m=Math.floor(l/65536)),ce=(l=ce+m+65535)-65536*(m=Math.floor(l/65536)),Fe=(l=Fe+m+65535)-65536*(m=Math.floor(l/65536)),ve=(l=ve+m+65535)-65536*(m=Math.floor(l/65536)),ge=(l=ge+m+65535)-65536*(m=Math.floor(l/65536)),x=(l=(x+=m-1+37*(m-1))+(m=1)+65535)-65536*(m=Math.floor(l/65536)),I=(l=I+m+65535)-65536*(m=Math.floor(l/65536)),w=(l=w+m+65535)-65536*(m=Math.floor(l/65536)),X=(l=X+m+65535)-65536*(m=Math.floor(l/65536)),_e=(l=_e+m+65535)-65536*(m=Math.floor(l/65536)),ue=(l=ue+m+65535)-65536*(m=Math.floor(l/65536)),rt=(l=rt+m+65535)-65536*(m=Math.floor(l/65536)),ye=(l=ye+m+65535)-65536*(m=Math.floor(l/65536)),Se=(l=Se+m+65535)-65536*(m=Math.floor(l/65536)),Oe=(l=Oe+m+65535)-65536*(m=Math.floor(l/65536)),$e=(l=$e+m+65535)-65536*(m=Math.floor(l/65536)),Ue=(l=Ue+m+65535)-65536*(m=Math.floor(l/65536)),ce=(l=ce+m+65535)-65536*(m=Math.floor(l/65536)),Fe=(l=Fe+m+65535)-65536*(m=Math.floor(l/65536)),ve=(l=ve+m+65535)-65536*(m=Math.floor(l/65536)),ge=(l=ge+m+65535)-65536*(m=Math.floor(l/65536)),h[0]=x+=m-1+37*(m-1),h[1]=I,h[2]=w,h[3]=X,h[4]=_e,h[5]=ue,h[6]=rt,h[7]=ye,h[8]=Se,h[9]=Oe,h[10]=$e,h[11]=Ue,h[12]=ce,h[13]=Fe,h[14]=ve,h[15]=ge}function Wn(h,g){Je(h,g,g)}function iu(h,g){var l,p=v();for(l=0;l<16;l++)p[l]=g[l];for(l=253;l>=0;l--)Wn(p,p),2!==l&&4!==l&&Je(p,p,g);for(l=0;l<16;l++)h[l]=p[l]}function su(h,g){var l,p=v();for(l=0;l<16;l++)p[l]=g[l];for(l=250;l>=0;l--)Wn(p,p),1!==l&&Je(p,p,g);for(l=0;l<16;l++)h[l]=p[l]}function da(h,g,p){var x,I,l=new Uint8Array(32),m=new Float64Array(80),w=v(),X=v(),_e=v(),ue=v(),rt=v(),ye=v();for(I=0;I<31;I++)l[I]=g[I];for(l[31]=127&g[31]|64,l[0]&=248,ou(m,p),I=0;I<16;I++)X[I]=m[I],ue[I]=w[I]=_e[I]=0;for(w[0]=ue[0]=1,I=254;I>=0;--I)no(w,X,x=l[I>>>3]>>>(7&I)&1),no(_e,ue,x),rr(rt,w,_e),or(w,w,_e),rr(_e,X,ue),or(X,X,ue),Wn(ue,rt),Wn(ye,w),Je(w,_e,w),Je(_e,X,rt),rr(rt,w,_e),or(w,w,_e),Wn(X,w),or(_e,ue,ye),Je(w,_e,V),rr(w,w,ue),Je(_e,_e,w),Je(w,ue,ye),Je(ue,X,m),Wn(X,rt),no(w,X,x),no(_e,ue,x);for(I=0;I<16;I++)m[I+16]=w[I],m[I+32]=_e[I],m[I+48]=X[I],m[I+64]=ue[I];var Se=m.subarray(32),Oe=m.subarray(16);return iu(Se,Se),Je(Oe,Oe,Se),ro(h,Oe),0}function ii(h,g){return da(h,g,M)}function au(h,g){return N(g,32),ii(h,g)}function fa(h,g,p){var l=new Uint8Array(32);return da(l,p,g),we(h,A,l,Rt)}ct.prototype.blocks=function(h,g,p){for(var m,x,I,w,X,_e,ue,rt,ye,Se,Oe,$e,Ue,ce,Fe,ve,ge,Ce,he,l=this.fin?0:2048,ne=this.h[0],H=this.h[1],ae=this.h[2],O=this.h[3],R=this.h[4],q=this.h[5],U=this.h[6],j=this.h[7],W=this.h[8],be=this.h[9],Le=this.r[0],se=this.r[1],le=this.r[2],D=this.r[3],qe=this.r[4],et=this.r[5],ot=this.r[6],Ge=this.r[7],Xe=this.r[8],Te=this.r[9];p>=16;)Se=ye=0,Se+=(ne+=8191&(m=255&h[g+0]|(255&h[g+1])<<8))*Le,Se+=(H+=8191&(m>>>13|(x=255&h[g+2]|(255&h[g+3])<<8)<<3))*(5*Te),Se+=(ae+=8191&(x>>>10|(I=255&h[g+4]|(255&h[g+5])<<8)<<6))*(5*Xe),Se+=(O+=8191&(I>>>7|(w=255&h[g+6]|(255&h[g+7])<<8)<<9))*(5*Ge),ye=(Se+=(R+=8191&(w>>>4|(X=255&h[g+8]|(255&h[g+9])<<8)<<12))*(5*ot))>>>13,Se&=8191,Se+=(q+=X>>>1&8191)*(5*et),Se+=(U+=8191&(X>>>14|(_e=255&h[g+10]|(255&h[g+11])<<8)<<2))*(5*qe),Se+=(j+=8191&(_e>>>11|(ue=255&h[g+12]|(255&h[g+13])<<8)<<5))*(5*D),Se+=(W+=8191&(ue>>>8|(rt=255&h[g+14]|(255&h[g+15])<<8)<<8))*(5*le),Oe=ye+=(Se+=(be+=rt>>>5|l)*(5*se))>>>13,Oe+=ne*se,Oe+=H*Le,Oe+=ae*(5*Te),Oe+=O*(5*Xe),ye=(Oe+=R*(5*Ge))>>>13,Oe&=8191,Oe+=q*(5*ot),Oe+=U*(5*et),Oe+=j*(5*qe),Oe+=W*(5*D),ye+=(Oe+=be*(5*le))>>>13,Oe&=8191,$e=ye,$e+=ne*le,$e+=H*se,$e+=ae*Le,$e+=O*(5*Te),ye=($e+=R*(5*Xe))>>>13,$e&=8191,$e+=q*(5*Ge),$e+=U*(5*ot),$e+=j*(5*et),$e+=W*(5*qe),Ue=ye+=($e+=be*(5*D))>>>13,Ue+=ne*D,Ue+=H*le,Ue+=ae*se,Ue+=O*Le,ye=(Ue+=R*(5*Te))>>>13,Ue&=8191,Ue+=q*(5*Xe),Ue+=U*(5*Ge),Ue+=j*(5*ot),Ue+=W*(5*et),ce=ye+=(Ue+=be*(5*qe))>>>13,ce+=ne*qe,ce+=H*D,ce+=ae*le,ce+=O*se,ye=(ce+=R*Le)>>>13,ce&=8191,ce+=q*(5*Te),ce+=U*(5*Xe),ce+=j*(5*Ge),ce+=W*(5*ot),Fe=ye+=(ce+=be*(5*et))>>>13,Fe+=ne*et,Fe+=H*qe,Fe+=ae*D,Fe+=O*le,ye=(Fe+=R*se)>>>13,Fe&=8191,Fe+=q*Le,Fe+=U*(5*Te),Fe+=j*(5*Xe),Fe+=W*(5*Ge),ve=ye+=(Fe+=be*(5*ot))>>>13,ve+=ne*ot,ve+=H*et,ve+=ae*qe,ve+=O*D,ye=(ve+=R*le)>>>13,ve&=8191,ve+=q*se,ve+=U*Le,ve+=j*(5*Te),ve+=W*(5*Xe),ge=ye+=(ve+=be*(5*Ge))>>>13,ge+=ne*Ge,ge+=H*ot,ge+=ae*et,ge+=O*qe,ye=(ge+=R*D)>>>13,ge&=8191,ge+=q*le,ge+=U*se,ge+=j*Le,ge+=W*(5*Te),Ce=ye+=(ge+=be*(5*Xe))>>>13,Ce+=ne*Xe,Ce+=H*Ge,Ce+=ae*ot,Ce+=O*et,ye=(Ce+=R*qe)>>>13,Ce&=8191,Ce+=q*D,Ce+=U*le,Ce+=j*se,Ce+=W*Le,he=ye+=(Ce+=be*(5*Te))>>>13,he+=ne*Te,he+=H*Xe,he+=ae*Ge,he+=O*ot,ye=(he+=R*et)>>>13,he&=8191,he+=q*qe,he+=U*D,he+=j*le,he+=W*se,ne=Se=8191&(ye=(ye=((ye+=(he+=be*Le)>>>13)<<2)+ye|0)+(Se&=8191)|0),H=Oe+=ye>>>=13,ae=$e&=8191,O=Ue&=8191,R=ce&=8191,q=Fe&=8191,U=ve&=8191,j=ge&=8191,W=Ce&=8191,be=he&=8191,g+=16,p-=16;this.h[0]=ne,this.h[1]=H,this.h[2]=ae,this.h[3]=O,this.h[4]=R,this.h[5]=q,this.h[6]=U,this.h[7]=j,this.h[8]=W,this.h[9]=be},ct.prototype.finish=function(h,g){var l,m,x,I,p=new Uint16Array(10);if(this.leftover){for(I=this.leftover,this.buffer[I++]=1;I<16;I++)this.buffer[I]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(l=this.h[1]>>>13,this.h[1]&=8191,I=2;I<10;I++)this.h[I]+=l,l=this.h[I]>>>13,this.h[I]&=8191;for(this.h[0]+=5*l,l=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=l,l=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=l,p[0]=this.h[0]+5,l=p[0]>>>13,p[0]&=8191,I=1;I<10;I++)p[I]=this.h[I]+l,l=p[I]>>>13,p[I]&=8191;for(p[9]-=8192,m=(1^l)-1,I=0;I<10;I++)p[I]&=m;for(m=~m,I=0;I<10;I++)this.h[I]=this.h[I]&m|p[I];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),this.h[0]=65535&(x=this.h[0]+this.pad[0]),I=1;I<8;I++)this.h[I]=65535&(x=(this.h[I]+this.pad[I]|0)+(x>>>16)|0);h[g+0]=this.h[0]>>>0&255,h[g+1]=this.h[0]>>>8&255,h[g+2]=this.h[1]>>>0&255,h[g+3]=this.h[1]>>>8&255,h[g+4]=this.h[2]>>>0&255,h[g+5]=this.h[2]>>>8&255,h[g+6]=this.h[3]>>>0&255,h[g+7]=this.h[3]>>>8&255,h[g+8]=this.h[4]>>>0&255,h[g+9]=this.h[4]>>>8&255,h[g+10]=this.h[5]>>>0&255,h[g+11]=this.h[5]>>>8&255,h[g+12]=this.h[6]>>>0&255,h[g+13]=this.h[6]>>>8&255,h[g+14]=this.h[7]>>>0&255,h[g+15]=this.h[7]>>>8&255},ct.prototype.update=function(h,g,p){var l,m;if(this.leftover){for((m=16-this.leftover)>p&&(m=p),l=0;l<m;l++)this.buffer[this.leftover+l]=h[g+l];if(p-=m,g+=m,this.leftover+=m,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(p>=16&&(this.blocks(h,g,m=p-p%16),g+=m,p-=m),p){for(l=0;l<p;l++)this.buffer[this.leftover+l]=h[g+l];this.leftover+=p}};var mt=mn,ha=to,un=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function ma(h,g,p,l){for(var w,X,ue,rt,ye,Se,$e,Ue,Fe,ve,ge,Ce,he,ne,H,ae,O,R,q,U,j,W,m=new Int32Array(16),x=new Int32Array(16),be=h[0],Le=h[1],se=h[2],le=h[3],D=h[4],qe=h[5],et=h[6],ot=h[7],Ge=g[0],Xe=g[1],Te=g[2],jt=g[3],ut=g[4],Lt=g[5],lt=g[6],Vt=g[7],Yt=0;l>=128;){for(H=0;H<16;H++)m[H]=p[(ae=8*H+Yt)+0]<<24|p[ae+1]<<16|p[ae+2]<<8|p[ae+3],x[H]=p[ae+4]<<24|p[ae+5]<<16|p[ae+6]<<8|p[ae+7];for(H=0;H<80;H++)if(w=Le,X=se,ue=D,rt=qe,ye=et,$e=Xe,Ue=Te,Fe=ut,ve=Lt,ge=lt,q=65535&(R=Vt),U=R>>>16,j=65535&(O=ot),W=O>>>16,q+=65535&(R=(ut>>>14|D<<18)^(ut>>>18|D<<14)^(D>>>9|ut<<23)),U+=R>>>16,j+=65535&(O=(D>>>14|ut<<18)^(D>>>18|ut<<14)^(ut>>>9|D<<23)),W+=O>>>16,q+=65535&(R=ut&Lt^~ut<),U+=R>>>16,j+=65535&(O=D&qe^~D&et),W+=O>>>16,q+=65535&(R=un[2*H+1]),U+=R>>>16,j+=65535&(O=un[2*H]),W+=O>>>16,U+=(R=x[H%16])>>>16,j+=65535&(O=m[H%16]),W+=O>>>16,j+=(U+=(q+=65535&R)>>>16)>>>16,q=65535&(R=ne=65535&q|U<<16),U=R>>>16,j=65535&(O=he=65535&j|(W+=j>>>16)<<16),W=O>>>16,q+=65535&(R=(Ge>>>28|be<<4)^(be>>>2|Ge<<30)^(be>>>7|Ge<<25)),U+=R>>>16,j+=65535&(O=(be>>>28|Ge<<4)^(Ge>>>2|be<<30)^(Ge>>>7|be<<25)),W+=O>>>16,U+=(R=Ge&Xe^Ge&Te^Xe&Te)>>>16,j+=65535&(O=be&Le^be&se^Le&se),W+=O>>>16,Se=65535&(j+=(U+=(q+=65535&R)>>>16)>>>16)|(W+=j>>>16)<<16,Ce=65535&q|U<<16,q=65535&(R=jt),U=R>>>16,j=65535&(O=le),W=O>>>16,U+=(R=ne)>>>16,j+=65535&(O=he),W+=O>>>16,Le=be,se=w,le=X,D=65535&(j+=(U+=(q+=65535&R)>>>16)>>>16)|(W+=j>>>16)<<16,qe=ue,et=rt,ot=ye,be=Se,Xe=Ge,Te=$e,jt=Ue,ut=65535&q|U<<16,Lt=Fe,lt=ve,Vt=ge,Ge=Ce,H%16==15)for(ae=0;ae<16;ae++)q=65535&(R=x[ae]),U=R>>>16,j=65535&(O=m[ae]),W=O>>>16,q+=65535&(R=x[(ae+9)%16]),U+=R>>>16,j+=65535&(O=m[(ae+9)%16]),W+=O>>>16,q+=65535&(R=((ne=x[(ae+1)%16])>>>1|(he=m[(ae+1)%16])<<31)^(ne>>>8|he<<24)^(ne>>>7|he<<25)),U+=R>>>16,j+=65535&(O=(he>>>1|ne<<31)^(he>>>8|ne<<24)^he>>>7),W+=O>>>16,U+=(R=((ne=x[(ae+14)%16])>>>19|(he=m[(ae+14)%16])<<13)^(he>>>29|ne<<3)^(ne>>>6|he<<26))>>>16,j+=65535&(O=(he>>>19|ne<<13)^(ne>>>29|he<<3)^he>>>6),W+=O>>>16,m[ae]=65535&(j+=(U+=(q+=65535&R)>>>16)>>>16)|(W+=j>>>16)<<16,x[ae]=65535&q|U<<16;q=65535&(R=Ge),U=R>>>16,j=65535&(O=be),W=O>>>16,U+=(R=g[0])>>>16,j+=65535&(O=h[0]),W+=O>>>16,h[0]=be=65535&(j+=(U+=(q+=65535&R)>>>16)>>>16)|(W+=j>>>16)<<16,g[0]=Ge=65535&q|U<<16,q=65535&(R=Xe),U=R>>>16,j=65535&(O=Le),W=O>>>16,U+=(R=g[1])>>>16,j+=65535&(O=h[1]),W+=O>>>16,h[1]=Le=65535&(j+=(U+=(q+=65535&R)>>>16)>>>16)|(W+=j>>>16)<<16,g[1]=Xe=65535&q|U<<16,q=65535&(R=Te),U=R>>>16,j=65535&(O=se),W=O>>>16,U+=(R=g[2])>>>16,j+=65535&(O=h[2]),W+=O>>>16,h[2]=se=65535&(j+=(U+=(q+=65535&R)>>>16)>>>16)|(W+=j>>>16)<<16,g[2]=Te=65535&q|U<<16,q=65535&(R=jt),U=R>>>16,j=65535&(O=le),W=O>>>16,U+=(R=g[3])>>>16,j+=65535&(O=h[3]),W+=O>>>16,h[3]=le=65535&(j+=(U+=(q+=65535&R)>>>16)>>>16)|(W+=j>>>16)<<16,g[3]=jt=65535&q|U<<16,q=65535&(R=ut),U=R>>>16,j=65535&(O=D),W=O>>>16,U+=(R=g[4])>>>16,j+=65535&(O=h[4]),W+=O>>>16,h[4]=D=65535&(j+=(U+=(q+=65535&R)>>>16)>>>16)|(W+=j>>>16)<<16,g[4]=ut=65535&q|U<<16,q=65535&(R=Lt),U=R>>>16,j=65535&(O=qe),W=O>>>16,U+=(R=g[5])>>>16,j+=65535&(O=h[5]),W+=O>>>16,h[5]=qe=65535&(j+=(U+=(q+=65535&R)>>>16)>>>16)|(W+=j>>>16)<<16,g[5]=Lt=65535&q|U<<16,q=65535&(R=lt),U=R>>>16,j=65535&(O=et),W=O>>>16,U+=(R=g[6])>>>16,j+=65535&(O=h[6]),W+=O>>>16,h[6]=et=65535&(j+=(U+=(q+=65535&R)>>>16)>>>16)|(W+=j>>>16)<<16,g[6]=lt=65535&q|U<<16,q=65535&(R=Vt),U=R>>>16,j=65535&(O=ot),W=O>>>16,U+=(R=g[7])>>>16,j+=65535&(O=h[7]),W+=O>>>16,h[7]=ot=65535&(j+=(U+=(q+=65535&R)>>>16)>>>16)|(W+=j>>>16)<<16,g[7]=Vt=65535&q|U<<16,Yt+=128,l-=128}return l}function Ar(h,g,p){var I,l=new Int32Array(8),m=new Int32Array(8),x=new Uint8Array(256),w=p;for(l[0]=1779033703,l[1]=3144134277,l[2]=1013904242,l[3]=2773480762,l[4]=1359893119,l[5]=2600822924,l[6]=528734635,l[7]=1541459225,m[0]=4089235720,m[1]=2227873595,m[2]=4271175723,m[3]=1595750129,m[4]=2917565137,m[5]=725511199,m[6]=4215389547,m[7]=327033209,ma(l,m,g,p),p%=128,I=0;I<p;I++)x[I]=g[w-p+I];for(x[p]=128,x[(p=256-128*(p<112?1:0))-9]=0,it(x,p-8,w/536870912|0,w<<3),ma(l,m,x,p),I=0;I<8;I++)it(h,8*I,l[I],m[I]);return 0}function si(h,g){var p=v(),l=v(),m=v(),x=v(),I=v(),w=v(),X=v(),_e=v(),ue=v();or(p,h[1],h[0]),or(ue,g[1],g[0]),Je(p,p,ue),rr(l,h[0],h[1]),rr(ue,g[0],g[1]),Je(l,l,ue),Je(m,h[3],g[3]),Je(m,m,J),Je(x,h[2],g[2]),rr(x,x,x),or(I,l,p),or(w,x,m),rr(X,x,m),rr(_e,l,p),Je(h[0],I,w),Je(h[1],_e,X),Je(h[2],X,w),Je(h[3],I,_e)}function Tr(h,g,p){var l;for(l=0;l<4;l++)no(h[l],g[l],p)}function No(h,g){var p=v(),l=v(),m=v();iu(m,g[2]),Je(p,g[0],m),Je(l,g[1],m),ro(h,l),h[31]^=ki(p)<<7}function Li(h,g,p){var l,m;for(pr(h[0],L),pr(h[1],B),pr(h[2],B),pr(h[3],L),m=255;m>=0;--m)Tr(h,g,l=p[m/8|0]>>(7&m)&1),si(g,h),si(h,h),Tr(h,g,l)}function Ro(h,g){var p=[v(),v(),v(),v()];pr(p[0],G),pr(p[1],$),pr(p[2],B),Je(p[3],G,$),Li(h,p,g)}function ya(h,g,p){var x,l=new Uint8Array(64),m=[v(),v(),v(),v()];for(p||N(g,32),Ar(l,g,32),l[0]&=248,l[31]&=127,l[31]|=64,Ro(m,l),No(h,m),x=0;x<32;x++)g[x+32]=h[x];return 0}var h,Vi=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function va(h,g){var p,l,m,x;for(l=63;l>=32;--l){for(p=0,m=l-32,x=l-12;m<x;++m)g[m]+=p-16*g[l]*Vi[m-(l-32)],p=Math.floor((g[m]+128)/256),g[m]-=256*p;g[m]+=p,g[l]=0}for(p=0,m=0;m<32;m++)g[m]+=p-(g[31]>>4)*Vi[m],p=g[m]>>8,g[m]&=255;for(m=0;m<32;m++)g[m]-=p*Vi[m];for(l=0;l<32;l++)g[l+1]+=g[l]>>8,h[l]=255&g[l]}function ai(h){var p,g=new Float64Array(64);for(p=0;p<64;p++)g[p]=h[p];for(p=0;p<64;p++)h[p]=0;va(h,g)}function Nr(h,g,p,l){var w,X,m=new Uint8Array(64),x=new Uint8Array(64),I=new Uint8Array(64),_e=new Float64Array(64),ue=[v(),v(),v(),v()];Ar(m,l,32),m[0]&=248,m[31]&=127,m[31]|=64;var rt=p+64;for(w=0;w<p;w++)h[64+w]=g[w];for(w=0;w<32;w++)h[32+w]=m[32+w];for(Ar(I,h.subarray(32),p+32),ai(I),Ro(ue,I),No(h,ue),w=32;w<64;w++)h[w]=l[w];for(Ar(x,h,p+64),ai(x),w=0;w<64;w++)_e[w]=0;for(w=0;w<32;w++)_e[w]=I[w];for(w=0;w<32;w++)for(X=0;X<32;X++)_e[w+X]+=x[w]*m[X];return va(h.subarray(32),_e),rt}function _a(h,g,p,l){var m,x=new Uint8Array(32),I=new Uint8Array(64),w=[v(),v(),v(),v()],X=[v(),v(),v(),v()];if(p<64||function Ui(h,g){var p=v(),l=v(),m=v(),x=v(),I=v(),w=v(),X=v();return pr(h[2],B),ou(h[1],g),Wn(m,h[1]),Je(x,m,Z),or(m,m,h[2]),rr(x,h[2],x),Wn(I,x),Wn(w,I),Je(X,w,I),Je(p,X,m),Je(p,p,x),su(p,p),Je(p,p,m),Je(p,p,x),Je(p,p,x),Je(h[0],p,x),Wn(l,h[0]),Je(l,l,x),ru(l,m)&&Je(h[0],h[0],He),Wn(l,h[0]),Je(l,l,x),ru(l,m)?-1:(ki(h[0])===g[31]>>7&&or(h[0],L,h[0]),Je(h[3],h[0],h[1]),0)}(X,l))return-1;for(m=0;m<p;m++)h[m]=g[m];for(m=0;m<32;m++)h[m+32]=l[m];if(Ar(I,h,p),ai(I),Li(w,X,I),Ro(X,g.subarray(32)),si(w,X),No(x,w),p-=64,It(g,0,x,0)){for(m=0;m<p;m++)h[m]=0;return-1}for(m=0;m<p;m++)h[m]=g[m+64];return p}function cu(h,g){if(32!==h.length)throw new Error("bad key size");if(24!==g.length)throw new Error("bad nonce size")}function yn(){for(var h=0;h<arguments.length;h++)if(!(arguments[h]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function An(h){for(var g=0;g<h.length;g++)h[g]=0}C.lowlevel={crypto_core_hsalsa20:we,crypto_stream_xor:bt,crypto_stream:re,crypto_stream_salsa20_xor:eo,crypto_stream_salsa20:nr,crypto_onetimeauth:gn,crypto_onetimeauth_verify:Et,crypto_verify_16:Ct,crypto_verify_32:It,crypto_secretbox:mn,crypto_secretbox_open:to,crypto_scalarmult:da,crypto_scalarmult_base:ii,crypto_box_beforenm:fa,crypto_box_afternm:mt,crypto_box:function pa(h,g,p,l,m,x){var I=new Uint8Array(32);return fa(I,m,x),mt(h,g,p,l,I)},crypto_box_open:function ga(h,g,p,l,m,x){var I=new Uint8Array(32);return fa(I,m,x),ha(h,g,p,l,I)},crypto_box_keypair:au,crypto_hash:Ar,crypto_sign:Nr,crypto_sign_keypair:ya,crypto_sign_open:_a,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:16,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:64,crypto_sign_PUBLICKEYBYTES:32,crypto_sign_SECRETKEYBYTES:64,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:v,D:Z,L:Vi,pack25519:ro,unpack25519:ou,M:Je,A:rr,S:Wn,Z:or,pow2523:su,add:si,set25519:pr,modL:va,scalarmult:Li,scalarbase:Ro},C.randomBytes=function(h){var g=new Uint8Array(h);return N(g,h),g},C.secretbox=function(h,g,p){yn(h,g,p),cu(p,g);for(var l=new Uint8Array(32+h.length),m=new Uint8Array(l.length),x=0;x<h.length;x++)l[x+32]=h[x];return mn(m,l,l.length,g,p),m.subarray(16)},C.secretbox.open=function(h,g,p){yn(h,g,p),cu(p,g);for(var l=new Uint8Array(16+h.length),m=new Uint8Array(l.length),x=0;x<h.length;x++)l[x+16]=h[x];return l.length<32||0!==to(m,l,l.length,g,p)?null:m.subarray(32)},C.secretbox.keyLength=32,C.secretbox.nonceLength=24,C.secretbox.overheadLength=16,C.scalarMult=function(h,g){if(yn(h,g),32!==h.length)throw new Error("bad n size");if(32!==g.length)throw new Error("bad p size");var p=new Uint8Array(32);return da(p,h,g),p},C.scalarMult.base=function(h){if(yn(h),32!==h.length)throw new Error("bad n size");var g=new Uint8Array(32);return ii(g,h),g},C.scalarMult.scalarLength=32,C.scalarMult.groupElementLength=32,C.box=function(h,g,p,l){var m=C.box.before(p,l);return C.secretbox(h,g,m)},C.box.before=function(h,g){yn(h,g),function sr(h,g){if(32!==h.length)throw new Error("bad public key size");if(32!==g.length)throw new Error("bad secret key size")}(h,g);var p=new Uint8Array(32);return fa(p,h,g),p},C.box.after=C.secretbox,C.box.open=function(h,g,p,l){var m=C.box.before(p,l);return C.secretbox.open(h,g,m)},C.box.open.after=C.secretbox.open,C.box.keyPair=function(){var h=new Uint8Array(32),g=new Uint8Array(32);return au(h,g),{publicKey:h,secretKey:g}},C.box.keyPair.fromSecretKey=function(h){if(yn(h),32!==h.length)throw new Error("bad secret key size");var g=new Uint8Array(32);return ii(g,h),{publicKey:g,secretKey:new Uint8Array(h)}},C.box.publicKeyLength=32,C.box.secretKeyLength=32,C.box.sharedKeyLength=32,C.box.nonceLength=24,C.box.overheadLength=C.secretbox.overheadLength,C.sign=function(h,g){if(yn(h,g),64!==g.length)throw new Error("bad secret key size");var p=new Uint8Array(64+h.length);return Nr(p,h,h.length,g),p},C.sign.open=function(h,g){if(yn(h,g),32!==g.length)throw new Error("bad public key size");var p=new Uint8Array(h.length),l=_a(p,h,h.length,g);if(l<0)return null;for(var m=new Uint8Array(l),x=0;x<m.length;x++)m[x]=p[x];return m},C.sign.detached=function(h,g){for(var p=C.sign(h,g),l=new Uint8Array(64),m=0;m<l.length;m++)l[m]=p[m];return l},C.sign.detached.verify=function(h,g,p){if(yn(h,g,p),64!==g.length)throw new Error("bad signature size");if(32!==p.length)throw new Error("bad public key size");var x,l=new Uint8Array(64+h.length),m=new Uint8Array(64+h.length);for(x=0;x<64;x++)l[x]=g[x];for(x=0;x<h.length;x++)l[x+64]=h[x];return _a(m,l,l.length,p)>=0},C.sign.keyPair=function(){var h=new Uint8Array(32),g=new Uint8Array(64);return ya(h,g),{publicKey:h,secretKey:g}},C.sign.keyPair.fromSecretKey=function(h){if(yn(h),64!==h.length)throw new Error("bad secret key size");for(var g=new Uint8Array(32),p=0;p<g.length;p++)g[p]=h[32+p];return{publicKey:g,secretKey:new Uint8Array(h)}},C.sign.keyPair.fromSeed=function(h){if(yn(h),32!==h.length)throw new Error("bad seed size");for(var g=new Uint8Array(32),p=new Uint8Array(64),l=0;l<32;l++)p[l]=h[l];return ya(g,p,!0),{publicKey:g,secretKey:p}},C.sign.publicKeyLength=32,C.sign.secretKeyLength=64,C.sign.seedLength=32,C.sign.signatureLength=64,C.hash=function(h){yn(h);var g=new Uint8Array(64);return Ar(g,h,h.length),g},C.hash.hashLength=64,C.verify=function(h,g){return yn(h,g),0!==h.length&&0!==g.length&&h.length===g.length&&0===at(h,0,g,0,h.length)},C.setPRNG=function(h){N=h},(h=typeof self<"u"?self.crypto||self.msCrypto:null)&&h.getRandomValues?C.setPRNG(function(p,l){var m,x=new Uint8Array(l);for(m=0;m<l;m+=65536)h.getRandomValues(x.subarray(m,m+Math.min(l-m,65536)));for(m=0;m<l;m++)p[m]=x[m];An(x)}):(h=T(24))&&h.randomBytes&&C.setPRNG(function(p,l){var m,x=h.randomBytes(l);for(m=0;m<l;m++)p[m]=x[m];An(x)})}(E.exports?E.exports:self.nacl=self.nacl||{})},24:()=>{}},E=>{E(E.s=562)}]);
|