-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.e12ff597f890399a.js
More file actions
1 lines (1 loc) · 386 KB
/
main.e12ff597f890399a.js
File metadata and controls
1 lines (1 loc) · 386 KB
1
"use strict";(self.webpackChunkGravityNow=self.webpackChunkGravityNow||[]).push([[179],{1181:(le,k,f)=>{var w=f(8929),A=f(4096),V=f(4202),F=f(6787),M=f(1762);class R{constructor(n,e){this.subjectFactory=n,this.selector=e}call(n,e){const{selector:r}=this,i=this.subjectFactory(),o=r(i).subscribe(n);return o.add(e.subscribe(i)),o}}var P=f(4327);function x(){return new w.xQ}function E(){return t=>(0,P.x)()(function N(t,n){return function(r){let i;if(i="function"==typeof t?t:function(){return t},"function"==typeof n)return r.lift(new R(i,n));const o=Object.create(r,M.N);return o.source=r,o.subjectFactory=i,o}}(x)(t))}function y(t){for(let n in t)if(t[n]===y)return n;throw Error("Could not find renamed property on target object.")}function T(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function C(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(C).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function B(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const te=y({__forward_ref__:y});function X(t){return t.__forward_ref__=X,t.toString=function(){return C(this())},t}function z(t){return xe(t)?t():t}function xe(t){return"function"==typeof t&&t.hasOwnProperty(te)&&t.__forward_ref__===X}class q extends Error{constructor(n,e){super(function or(t,n){return`NG0${Math.abs(t)}${n?": "+n.trim():""}`}(n,e)),this.code=n}}function ve(t){return"string"==typeof t?t:null==t?"":String(t)}function ki(t,n){throw new q(-201,!1)}function sn(t,n){null==t&&function Ue(t,n,e,r){throw new Error(`ASSERTION ERROR: ${t}`+(null==r?"":` [Expected=> ${e} ${r} ${n} <=Actual]`))}(n,t,null,"!=")}function Z(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Pe(t){return{providers:t.providers||[],imports:t.imports||[]}}function jo(t){return Vi(t,Bi)||Vi(t,wa)}function Vi(t,n){return t.hasOwnProperty(n)?t[n]:null}function Da(t){return t&&(t.hasOwnProperty(Ca)||t.hasOwnProperty(Uo))?t[Ca]:null}const Bi=y({\u0275prov:y}),Ca=y({\u0275inj:y}),wa=y({ngInjectableDef:y}),Uo=y({ngInjectorDef:y});var pe=(()=>((pe=pe||{})[pe.Default=0]="Default",pe[pe.Host=1]="Host",pe[pe.Self=2]="Self",pe[pe.SkipSelf=4]="SkipSelf",pe[pe.Optional=8]="Optional",pe))();let Vr;function an(t){const n=Vr;return Vr=t,n}function Ea(t,n,e){const r=jo(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:e&pe.Optional?null:void 0!==n?n:void ki(C(t))}function _r(t){return{toString:t}.toString()}var Dn=(()=>((Dn=Dn||{})[Dn.OnPush=0]="OnPush",Dn[Dn.Default=1]="Default",Dn))(),Tn=(()=>{return(t=Tn||(Tn={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",Tn;var t})();const Ke=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Nn={},$e=[],Br=y({\u0275cmp:y}),Wo=y({\u0275dir:y}),zo=y({\u0275pipe:y}),Ko=y({\u0275mod:y}),zn=y({\u0275fac:y}),hi=y({__NG_ELEMENT_ID__:y});let mc=0;function ke(t){return _r(()=>{const e=!0===t.standalone,r={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Dn.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&t.dependencies||null,getStandaloneInjector:null,selectors:t.selectors||$e,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Tn.Emulated,id:"c"+mc++,styles:t.styles||$e,_:null,setInput:null,schemas:t.schemas||null,tView:null},o=t.dependencies,s=t.features;return i.inputs=$i(t.inputs,r),i.outputs=$i(t.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=o?()=>("function"==typeof o?o():o).map(Ma).filter(Ta):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map($t).filter(Ta):null,i})}function Ma(t){return ze(t)||Bt(t)}function Ta(t){return null!==t}function Le(t){return _r(()=>({type:t.type,bootstrap:t.bootstrap||$e,declarations:t.declarations||$e,imports:t.imports||$e,exports:t.exports||$e,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function $i(t,n){if(null==t)return Nn;const e={};for(const r in t)if(t.hasOwnProperty(r)){let i=t[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),e[i]=r,n&&(n[i]=o)}return e}const ne=ke;function Gt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function ze(t){return t[Br]||null}function Bt(t){return t[Wo]||null}function $t(t){return t[zo]||null}function ln(t,n){const e=t[Ko]||null;if(!e&&!0===n)throw new Error(`Type ${C(t)} does not have '\u0275mod' property.`);return e}const _=11;function wn(t){return Array.isArray(t)&&"object"==typeof t[1]}function Kn(t){return Array.isArray(t)&&!0===t[1]}function bc(t){return 0!=(8&t.flags)}function Ia(t){return 2==(2&t.flags)}function Aa(t){return 1==(1&t.flags)}function Jn(t){return null!==t.template}function kw(t){return 0!=(256&t[2])}function pi(t,n){return t.hasOwnProperty(zn)?t[zn]:null}class Bw{constructor(n,e,r){this.previousValue=n,this.currentValue=e,this.firstChange=r}isFirstChange(){return this.firstChange}}function it(){return fg}function fg(t){return t.type.prototype.ngOnChanges&&(t.setInput=Hw),$w}function $w(){const t=gg(this),n=t?.current;if(n){const e=t.previous;if(e===Nn)t.previous=n;else for(let r in n)e[r]=n[r];t.current=null,this.ngOnChanges(n)}}function Hw(t,n,e,r){const i=gg(t)||function jw(t,n){return t[pg]=n}(t,{previous:Nn,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[e],l=s[a];o[a]=new Bw(l&&l.currentValue,n,s===Nn),t[r]=n}it.ngInherit=!0;const pg="__ngSimpleChanges__";function gg(t){return t[pg]||null}function Et(t){for(;Array.isArray(t);)t=t[0];return t}function xa(t,n){return Et(n[t])}function Vn(t,n){return Et(n[t.index])}function Mc(t,n){return t.data[n]}function Hi(t,n){return t[n]}function Sn(t,n){const e=n[t];return wn(e)?e:e[0]}function mg(t){return 4==(4&t[2])}function Ra(t){return 64==(64&t[2])}function $r(t,n){return null==n?null:t[n]}function _g(t){t[18]=0}function Tc(t,n){t[5]+=n;let e=t,r=t[3];for(;null!==r&&(1===n&&1===e[5]||-1===n&&0===e[5]);)r[5]+=n,e=r,r=r[3]}const be={lFrame:Tg(null),bindingsEnabled:!0};function vg(){return be.bindingsEnabled}function J(){return be.lFrame.lView}function Ve(){return be.lFrame.tView}function Ge(t){return be.lFrame.contextLView=t,t[8]}function We(t){return be.lFrame.contextLView=null,t}function xt(){let t=bg();for(;null!==t&&64===t.type;)t=t.parent;return t}function bg(){return be.lFrame.currentTNode}function sr(t,n){const e=be.lFrame;e.currentTNode=t,e.isParent=n}function Nc(){return be.lFrame.isParent}function Sc(){be.lFrame.isParent=!1}function cn(){const t=be.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function ji(){return be.lFrame.bindingIndex++}function Dr(t){const n=be.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function nE(t,n){const e=be.lFrame;e.bindingIndex=e.bindingRootIndex=t,Ic(n)}function Ic(t){be.lFrame.currentDirectiveIndex=t}function wg(){return be.lFrame.currentQueryIndex}function xc(t){be.lFrame.currentQueryIndex=t}function iE(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function Eg(t,n,e){if(e&pe.SkipSelf){let i=n,o=t;for(;!(i=i.parent,null!==i||e&pe.Host||(i=iE(o),null===i||(o=o[15],10&i.type))););if(null===i)return!1;n=i,t=o}const r=be.lFrame=Mg();return r.currentTNode=n,r.lView=t,!0}function Rc(t){const n=Mg(),e=t[1];be.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function Mg(){const t=be.lFrame,n=null===t?null:t.child;return null===n?Tg(t):n}function Tg(t){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:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function Ng(){const t=be.lFrame;return be.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Sg=Ng;function Oc(){const t=Ng();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function dn(){return be.lFrame.selectedIndex}function Hr(t){be.lFrame.selectedIndex=t}function mt(){const t=be.lFrame;return Mc(t.tView,t.selectedIndex)}function Fa(t,n){for(let e=n.directiveStart,r=n.directiveEnd;e<r;e++){const o=t.data[e].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:u,ngOnDestroy:c}=o;s&&(t.contentHooks||(t.contentHooks=[])).push(-e,s),a&&((t.contentHooks||(t.contentHooks=[])).push(e,a),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(e,a)),l&&(t.viewHooks||(t.viewHooks=[])).push(-e,l),u&&((t.viewHooks||(t.viewHooks=[])).push(e,u),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(e,u)),null!=c&&(t.destroyHooks||(t.destroyHooks=[])).push(e,c)}}function Pa(t,n,e){Ig(t,n,3,e)}function ka(t,n,e,r){(3&t[2])===e&&Ig(t,n,e,r)}function Fc(t,n){let e=t[2];(3&e)===n&&(e&=2047,e+=1,t[2]=e)}function Ig(t,n,e,r){const o=r??-1,s=n.length-1;let a=0;for(let l=void 0!==r?65535&t[18]:0;l<s;l++)if("number"==typeof n[l+1]){if(a=n[l],null!=r&&a>=r)break}else n[l]<0&&(t[18]+=65536),(a<o||-1==o)&&(fE(t,e,n,l),t[18]=(4294901760&t[18])+l+2),l++}function fE(t,n,e,r){const i=e[r]<0,o=e[r+1],a=t[i?-e[r]:e[r]];if(i){if(t[2]>>11<t[18]>>16&&(3&t[2])===n){t[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class Qo{constructor(n,e,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=r}}function La(t,n,e){let r=0;for(;r<e.length;){const i=e[r];if("number"==typeof i){if(0!==i)break;r++;const o=e[r++],s=e[r++],a=e[r++];t.setAttribute(n,s,a,o)}else{const o=i,s=e[++r];xg(o)?t.setProperty(n,o,s):t.setAttribute(n,o,s),r++}}return r}function Ag(t){return 3===t||4===t||6===t}function xg(t){return 64===t.charCodeAt(0)}function Va(t,n){if(null!==n&&0!==n.length)if(null===t||0===t.length)t=n.slice();else{let e=-1;for(let r=0;r<n.length;r++){const i=n[r];"number"==typeof i?e=i:0===e||Rg(t,e,i,null,-1===e||2===e?n[++r]:null)}}return t}function Rg(t,n,e,r,i){let o=0,s=t.length;if(-1===n)s=-1;else for(;o<t.length;){const a=t[o++];if("number"==typeof a){if(a===n){s=-1;break}if(a>n){s=o-1;break}}}for(;o<t.length;){const a=t[o];if("number"==typeof a)break;if(a===e){if(null===r)return void(null!==i&&(t[o+1]=i));if(r===t[o+1])return void(t[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==s&&(t.splice(s,0,n),o=s+1),t.splice(o++,0,e),null!==r&&t.splice(o++,0,r),null!==i&&t.splice(o++,0,i)}function Og(t){return-1!==t}function Ui(t){return 32767&t}function Gi(t,n){let e=function yE(t){return t>>16}(t),r=n;for(;e>0;)r=r[15],e--;return r}let kc=!0;function Ba(t){const n=kc;return kc=t,n}let vE=0;const ar={};function Xo(t,n){const e=Vc(t,n);if(-1!==e)return e;const r=n[1];r.firstCreatePass&&(t.injectorIndex=n.length,Lc(r.data,t),Lc(n,null),Lc(r.blueprint,null));const i=$a(t,n),o=t.injectorIndex;if(Og(i)){const s=Ui(i),a=Gi(i,n),l=a[1].data;for(let u=0;u<8;u++)n[o+u]=a[s+u]|l[s+u]}return n[o+8]=i,o}function Lc(t,n){t.push(0,0,0,0,0,0,0,0,n)}function Vc(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function $a(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,r=null,i=n;for(;null!==i;){if(r=jg(i),null===r)return-1;if(e++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|e<<16}return-1}function Ha(t,n,e){!function bE(t,n,e){let r;"string"==typeof e?r=e.charCodeAt(0)||0:e.hasOwnProperty(hi)&&(r=e[hi]),null==r&&(r=e[hi]=vE++);const i=255&r;n.data[t+(i>>5)]|=1<<i}(t,n,e)}function kg(t,n,e){if(e&pe.Optional)return t;ki()}function Lg(t,n,e,r){if(e&pe.Optional&&void 0===r&&(r=null),0==(e&(pe.Self|pe.Host))){const i=t[9],o=an(void 0);try{return i?i.get(n,r,e&pe.Optional):Ea(n,r,e&pe.Optional)}finally{an(o)}}return kg(r,0,e)}function Vg(t,n,e,r=pe.Default,i){if(null!==t){if(1024&n[2]){const s=function ME(t,n,e,r,i){let o=t,s=n;for(;null!==o&&null!==s&&1024&s[2]&&!(256&s[2]);){const a=Bg(o,s,e,r|pe.Self,ar);if(a!==ar)return a;let l=o.parent;if(!l){const u=s[21];if(u){const c=u.get(e,ar,r);if(c!==ar)return c}l=jg(s),s=s[15]}o=l}return i}(t,n,e,r,ar);if(s!==ar)return s}const o=Bg(t,n,e,r,ar);if(o!==ar)return o}return Lg(n,e,r,i)}function Bg(t,n,e,r,i){const o=function wE(t){if("string"==typeof t)return t.charCodeAt(0)||0;const n=t.hasOwnProperty(hi)?t[hi]:void 0;return"number"==typeof n?n>=0?255&n:EE:n}(e);if("function"==typeof o){if(!Eg(n,t,r))return r&pe.Host?kg(i,0,r):Lg(n,e,r,i);try{const s=o(r);if(null!=s||r&pe.Optional)return s;ki()}finally{Sg()}}else if("number"==typeof o){let s=null,a=Vc(t,n),l=-1,u=r&pe.Host?n[16][6]:null;for((-1===a||r&pe.SkipSelf)&&(l=-1===a?$a(t,n):n[a+8],-1!==l&&Hg(r,!1)?(s=n[1],a=Ui(l),n=Gi(l,n)):a=-1);-1!==a;){const c=n[1];if($g(o,a,c.data)){const d=CE(a,n,e,s,r,u);if(d!==ar)return d}l=n[a+8],-1!==l&&Hg(r,n[1].data[a+8]===u)&&$g(o,a,n)?(s=c,a=Ui(l),n=Gi(l,n)):a=-1}}return i}function CE(t,n,e,r,i,o){const s=n[1],a=s.data[t+8],c=ja(a,s,e,null==r?Ia(a)&&kc:r!=s&&0!=(3&a.type),i&pe.Host&&o===a);return null!==c?qo(n,s,c,a):ar}function ja(t,n,e,r,i){const o=t.providerIndexes,s=n.data,a=1048575&o,l=t.directiveStart,c=o>>20,h=i?a+c:t.directiveEnd;for(let p=r?a:a+c;p<h;p++){const b=s[p];if(p<l&&e===b||p>=l&&b.type===e)return p}if(i){const p=s[l];if(p&&Jn(p)&&p.type===e)return l}return null}function qo(t,n,e,r){let i=t[e];const o=n.data;if(function pE(t){return t instanceof Qo}(i)){const s=i;s.resolving&&function rc(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new q(-200,`Circular dependency in DI detected for ${t}${e}`)}(function Fe(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():ve(t)}(o[e]));const a=Ba(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?an(s.injectImpl):null;Eg(t,r,pe.Default);try{i=t[e]=s.factory(void 0,o,t,r),n.firstCreatePass&&e>=r.directiveStart&&function hE(t,n,e){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=n.type.prototype;if(r){const s=fg(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,s)}i&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,i),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o))}(e,o[e],n)}finally{null!==l&&an(l),Ba(a),s.resolving=!1,Sg()}}return i}function $g(t,n,e){return!!(e[n+(t>>5)]&1<<t)}function Hg(t,n){return!(t&pe.Self||t&pe.Host&&n)}class Wi{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,r){return Vg(this._tNode,this._lView,n,r,e)}}function EE(){return new Wi(xt(),J())}function st(t){return _r(()=>{const n=t.prototype.constructor,e=n[zn]||Bc(n),r=Object.prototype;let i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==r;){const o=i[zn]||Bc(i);if(o&&o!==e)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Bc(t){return xe(t)?()=>{const n=Bc(z(t));return n&&n()}:pi(t)}function jg(t){const n=t[1],e=n.type;return 2===e?n.declTNode:1===e?t[6]:null}function Ur(t){return function DE(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const r=e.length;let i=0;for(;i<r;){const o=e[i];if(Ag(o))break;if(0===o)i+=2;else if("number"==typeof o)for(i++;i<r&&"string"==typeof e[i];)i++;else{if(o===n)return e[i+1];i+=2}}}return null}(xt(),t)}const Ki="__parameters__";function Yi(t,n,e){return _r(()=>{const r=function $c(t){return function(...e){if(t){const r=t(...e);for(const i in r)this[i]=r[i]}}}(n);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return a.annotation=s,a;function a(l,u,c){const d=l.hasOwnProperty(Ki)?l[Ki]:Object.defineProperty(l,Ki,{value:[]})[Ki];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),l}}return e&&(i.prototype=Object.create(e.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}class fe{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Z({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function In(t,n){void 0===n&&(n=t);for(let e=0;e<t.length;e++){let r=t[e];Array.isArray(r)?(n===t&&(n=t.slice(0,e)),In(r,n)):n!==t&&n.push(r)}return n}function Cr(t,n){t.forEach(e=>Array.isArray(e)?Cr(e,n):n(e))}function Gg(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Ua(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function ns(t,n){const e=[];for(let r=0;r<t;r++)e.push(n);return e}function An(t,n,e){let r=Qi(t,n);return r>=0?t[1|r]=e:(r=~r,function IE(t,n,e,r){let i=t.length;if(i==n)t.push(e,r);else if(1===i)t.push(r,t[0]),t[0]=e;else{for(i--,t.push(t[i-1],t[i]);i>n;)t[i]=t[i-2],i--;t[n]=e,t[n+1]=r}}(t,r,n,e)),r}function jc(t,n){const e=Qi(t,n);if(e>=0)return t[1|e]}function Qi(t,n){return function Kg(t,n,e){let r=0,i=t.length>>e;for(;i!==r;){const o=r+(i-r>>1),s=t[o<<e];if(n===s)return o<<e;s>n?i=o:r=o+1}return~(i<<e)}(t,n,1)}const rs={},Gc="__NG_DI_FLAG__",Wa="ngTempTokenPath",LE=/\n/gm,Jg="__source";let is;function Zi(t){const n=is;return is=t,n}function BE(t,n=pe.Default){if(void 0===is)throw new q(-203,!1);return null===is?Ea(t,void 0,n):is.get(t,n&pe.Optional?null:void 0,n)}function G(t,n=pe.Default){return(function Go(){return Vr}()||BE)(z(t),n)}function Dt(t,n=pe.Default){return"number"!=typeof n&&(n=0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)),G(t,n)}function Wc(t){const n=[];for(let e=0;e<t.length;e++){const r=z(t[e]);if(Array.isArray(r)){if(0===r.length)throw new q(900,!1);let i,o=pe.Default;for(let s=0;s<r.length;s++){const a=r[s],l=$E(a);"number"==typeof l?-1===l?i=a.token:o|=l:i=a}n.push(G(i,o))}else n.push(G(r))}return n}function os(t,n){return t[Gc]=n,t.prototype[Gc]=n,t}function $E(t){return t[Gc]}const ss=os(Yi("Optional"),8),as=os(Yi("SkipSelf"),4);let Kc;class am{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function Gr(t){return t instanceof am?t.changingThisBreaksApplicationSecurity:t}const cM=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,dM=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;var Mt=(()=>((Mt=Mt||{})[Mt.NONE=0]="NONE",Mt[Mt.HTML=1]="HTML",Mt[Mt.STYLE=2]="STYLE",Mt[Mt.SCRIPT=3]="SCRIPT",Mt[Mt.URL=4]="URL",Mt[Mt.RESOURCE_URL=5]="RESOURCE_URL",Mt))();function hs(t){const n=function fs(){const t=J();return t&&t[12]}();return n?n.sanitize(Mt.URL,t)||"":function cs(t,n){const e=function sM(t){return t instanceof am&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===n}(t,"URL")?Gr(t):function Qa(t){return(t=String(t)).match(cM)||t.match(dM)?t:"unsafe:"+t}(ve(t))}const ed=new fe("ENVIRONMENT_INITIALIZER"),Xa=new fe("INJECTOR",-1),mm=new fe("INJECTOR_DEF_TYPES");class _m{get(n,e=rs){if(e===rs){const r=new Error(`NullInjectorError: No provider for ${C(n)}!`);throw r.name="NullInjectorError",r}return e}}function MM(...t){return{\u0275providers:ym(0,t)}}function ym(t,...n){const e=[],r=new Set;let i;return Cr(n,o=>{const s=o;td(s,e,[],r)&&(i||(i=[]),i.push(s))}),void 0!==i&&vm(i,e),e}function vm(t,n){for(let e=0;e<t.length;e++){const{providers:i}=t[e];Cr(i,o=>{n.push(o)})}}function td(t,n,e,r){if(!(t=z(t)))return!1;let i=null,o=Da(t);const s=!o&&ze(t);if(o||s){if(s&&!s.standalone)return!1;i=t}else{const l=t.ngModule;if(o=Da(l),!o)return!1;i=l}const a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of l)td(u,n,e,r)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let u;r.add(i);try{Cr(o.imports,c=>{td(c,n,e,r)&&(u||(u=[]),u.push(c))})}finally{}void 0!==u&&vm(u,n)}if(!a){const u=pi(i)||(()=>new i);n.push({provide:i,useFactory:u,deps:$e},{provide:mm,useValue:i,multi:!0},{provide:ed,useValue:()=>G(i),multi:!0})}const l=o.providers;null==l||a||Cr(l,c=>{n.push(c)})}}return i!==t&&void 0!==t.providers}const TM=y({provide:String,useValue:y});function nd(t){return null!==t&&"object"==typeof t&&TM in t}function gi(t){return"function"==typeof t}const rd=new fe("Set Injector scope."),qa={},SM={};let id;function el(){return void 0===id&&(id=new _m),id}class Wr{}class Cm extends Wr{constructor(n,e,r,i){super(),this.parent=e,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,sd(n,s=>this.processProvider(s)),this.records.set(Xa,eo(void 0,this)),i.has("environment")&&this.records.set(Wr,eo(void 0,this));const o=this.records.get(rd);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(mm.multi,$e,pe.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const e=Zi(this),r=an(void 0);try{return n()}finally{Zi(e),an(r)}}get(n,e=rs,r=pe.Default){this.assertNotDestroyed();const i=Zi(this),o=an(void 0);try{if(!(r&pe.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function OM(t){return"function"==typeof t||"object"==typeof t&&t instanceof fe}(n)&&jo(n);a=l&&this.injectableDefInScope(l)?eo(od(n),qa):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(r&pe.Self?el():this.parent).get(n,e=r&pe.Optional&&e===rs?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Wa]=s[Wa]||[]).unshift(C(n)),i)throw s;return function HE(t,n,e,r){const i=t[Wa];throw n[Jg]&&i.unshift(n[Jg]),t.message=function jE(t,n,e,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let i=C(n);if(Array.isArray(n))i=n.map(C).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):C(a)))}i=`{${o.join(", ")}}`}return`${e}${r?"("+r+")":""}[${i}]: ${t.replace(LE,"\n ")}`}("\n"+t.message,i,e,r),t.ngTokenPath=i,t[Wa]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{an(o),Zi(i)}}resolveInjectorInitializers(){const n=Zi(this),e=an(void 0);try{const r=this.get(ed.multi,$e,pe.Self);for(const i of r)i()}finally{Zi(n),an(e)}}toString(){const n=[],e=this.records;for(const r of e.keys())n.push(C(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new q(205,!1)}processProvider(n){let e=gi(n=z(n))?n:z(n&&n.provide);const r=function AM(t){return nd(t)?eo(void 0,t.useValue):eo(wm(t),qa)}(n);if(gi(n)||!0!==n.multi)this.records.get(e);else{let i=this.records.get(e);i||(i=eo(void 0,qa,!0),i.factory=()=>Wc(i.multi),this.records.set(e,i)),e=n,i.multi.push(n)}this.records.set(e,r)}hydrate(n,e){return e.value===qa&&(e.value=SM,e.value=e.factory()),"object"==typeof e.value&&e.value&&function RM(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=z(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function od(t){const n=jo(t),e=null!==n?n.factory:pi(t);if(null!==e)return e;if(t instanceof fe)throw new q(204,!1);if(t instanceof Function)return function IM(t){const n=t.length;if(n>0)throw ns(n,"?"),new q(204,!1);const e=function fc(t){const n=t&&(t[Bi]||t[wa]);if(n){const e=function pc(t){if(t.hasOwnProperty("name"))return t.name;const n=(""+t).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),n}return null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new q(204,!1)}function wm(t,n,e){let r;if(gi(t)){const i=z(t);return pi(i)||od(i)}if(nd(t))r=()=>z(t.useValue);else if(function Dm(t){return!(!t||!t.useFactory)}(t))r=()=>t.useFactory(...Wc(t.deps||[]));else if(function bm(t){return!(!t||!t.useExisting)}(t))r=()=>G(z(t.useExisting));else{const i=z(t&&(t.useClass||t.provide));if(!function xM(t){return!!t.deps}(t))return pi(i)||od(i);r=()=>new i(...Wc(t.deps))}return r}function eo(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function FM(t){return!!t.\u0275providers}function sd(t,n){for(const e of t)Array.isArray(e)?sd(e,n):FM(e)?sd(e.\u0275providers,n):n(e)}class Em{}class LM{resolveComponentFactory(n){throw function kM(t){const n=Error(`No component factory found for ${C(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let Yn=(()=>{class t{}return t.NULL=new LM,t})();function VM(){return to(xt(),J())}function to(t,n){return new Re(Vn(t,n))}let Re=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=VM,t})();function BM(t){return t instanceof Re?t.nativeElement:t}class tl{}let Wt=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function $M(){const t=J(),e=Sn(xt().index,t);return(wn(e)?e:t)[_]}(),t})(),HM=(()=>{class t{}return t.\u0275prov=Z({token:t,providedIn:"root",factory:()=>null}),t})();class ps{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const jM=new ps("14.1.3"),ad={};function hd(t){return t.ngOriginalError}class no{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&hd(n);for(;e&&hd(e);)e=hd(e);return e||null}}const fd=new Map;let eT=0;const gd="__ngContext__";function Xt(t,n){wn(n)?(t[gd]=n[20],function nT(t){fd.set(t[20],t)}(n)):t[gd]=n}function gs(t){const n=t[gd];return"number"==typeof n?function xm(t){return fd.get(t)||null}(n):n||null}function md(t){const n=gs(t);return n?wn(n)?n:n.lView:null}const dT=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(Ke))();function km(t){return t.ownerDocument.defaultView}function wr(t){return t instanceof Function?t():t}var En=(()=>((En=En||{})[En.Important=1]="Important",En[En.DashCase=2]="DashCase",En))();function yd(t,n){return undefined(t,n)}function ms(t){const n=t[3];return Kn(n)?n[3]:n}function vd(t){return $m(t[13])}function bd(t){return $m(t[4])}function $m(t){for(;null!==t&&!Kn(t);)t=t[4];return t}function io(t,n,e,r,i){if(null!=r){let o,s=!1;Kn(r)?o=r:wn(r)&&(s=!0,r=r[0]);const a=Et(r);0===t&&null!==e?null==i?zm(n,e,a):mi(n,e,a,i||null,!0):1===t&&null!==e?mi(n,e,a,i||null,!0):2===t?function qm(t,n,e){const r=nl(t,n);r&&function ST(t,n,e,r){t.removeChild(n,e,r)}(t,r,n,e)}(n,a,s):3===t&&n.destroyNode(a),null!=o&&function xT(t,n,e,r,i){const o=e[7];o!==Et(e)&&io(n,t,r,o,i);for(let a=10;a<e.length;a++){const l=e[a];_s(l[1],l,t,n,r,o)}}(n,t,o,e,i)}}function Cd(t,n,e){return t.createElement(n,e)}function jm(t,n){const e=t[9],r=e.indexOf(n),i=n[3];512&n[2]&&(n[2]&=-513,Tc(i,-1)),e.splice(r,1)}function wd(t,n){if(t.length<=10)return;const e=10+n,r=t[e];if(r){const i=r[17];null!==i&&i!==t&&jm(i,r),n>0&&(t[e-1][4]=r[4]);const o=Ua(t,10+n);!function bT(t,n){_s(t,n,n[_],2,null,null),n[0]=null,n[6]=null}(r[1],r);const s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-65}return r}function Um(t,n){if(!(128&n[2])){const e=n[_];e.destroyNode&&_s(t,n,e,3,null,null),function wT(t){let n=t[13];if(!n)return Ed(t[1],t);for(;n;){let e=null;if(wn(n))e=n[13];else{const r=n[10];r&&(e=r)}if(!e){for(;n&&!n[4]&&n!==t;)wn(n)&&Ed(n[1],n),n=n[3];null===n&&(n=t),wn(n)&&Ed(n[1],n),e=n&&n[4]}n=e}}(n)}}function Ed(t,n){if(!(128&n[2])){n[2]&=-65,n[2]|=128,function NT(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let r=0;r<e.length;r+=2){const i=n[e[r]];if(!(i instanceof Qo)){const o=e[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){const a=i[o[s]],l=o[s+1];try{l.call(a)}finally{}}else try{o.call(i)}finally{}}}}(t,n),function TT(t,n){const e=t.cleanup,r=n[7];let i=-1;if(null!==e)for(let o=0;o<e.length-1;o+=2)if("string"==typeof e[o]){const s=e[o+1],a="function"==typeof s?s(n):Et(n[s]),l=r[i=e[o+2]],u=e[o+3];"boolean"==typeof u?a.removeEventListener(e[o],l,u):u>=0?r[i=u]():r[i=-u].unsubscribe(),o+=2}else{const s=r[i=e[o+1]];e[o].call(s)}if(null!==r){for(let o=i+1;o<r.length;o++)(0,r[o])();n[7]=null}}(t,n),1===n[1].type&&n[_].destroy();const e=n[17];if(null!==e&&Kn(n[3])){e!==n[3]&&jm(e,n);const r=n[19];null!==r&&r.detachView(t)}!function rT(t){fd.delete(t[20])}(n)}}function Gm(t,n,e){return function Wm(t,n,e){let r=n;for(;null!==r&&40&r.type;)r=(n=r).parent;if(null===r)return e[0];if(2&r.flags){const i=t.data[r.directiveStart].encapsulation;if(i===Tn.None||i===Tn.Emulated)return null}return Vn(r,e)}(t,n.parent,e)}function mi(t,n,e,r,i){t.insertBefore(n,e,r,i)}function zm(t,n,e){t.appendChild(n,e)}function Km(t,n,e,r,i){null!==r?mi(t,n,e,r,i):zm(t,n,e)}function nl(t,n){return t.parentNode(n)}function Jm(t,n,e){return Qm(t,n,e)}let Qm=function Ym(t,n,e){return 40&t.type?Vn(t,e):null};function rl(t,n,e,r){const i=Gm(t,r,n),o=n[_],a=Jm(r.parent||n[6],r,n);if(null!=i)if(Array.isArray(e))for(let l=0;l<e.length;l++)Km(o,i,e[l],a,!1);else Km(o,i,e,a,!1)}function il(t,n){if(null!==n){const e=n.type;if(3&e)return Vn(n,t);if(4&e)return Td(-1,t[n.index]);if(8&e){const r=n.child;if(null!==r)return il(t,r);{const i=t[n.index];return Kn(i)?Td(-1,i):Et(i)}}if(32&e)return yd(n,t)()||Et(t[n.index]);{const r=Xm(t,n);return null!==r?Array.isArray(r)?r[0]:il(ms(t[16]),r):il(t,n.next)}}return null}function Xm(t,n){return null!==n?t[16][6].projection[n.projection]:null}function Td(t,n){const e=10+t+1;if(e<n.length){const r=n[e],i=r[1].firstChild;if(null!==i)return il(r,i)}return n[7]}function Nd(t,n,e,r,i,o,s){for(;null!=e;){const a=r[e.index],l=e.type;if(s&&0===n&&(a&&Xt(Et(a),r),e.flags|=4),64!=(64&e.flags))if(8&l)Nd(t,n,e.child,r,i,o,!1),io(n,t,i,a,o);else if(32&l){const u=yd(e,r);let c;for(;c=u();)io(n,t,i,c,o);io(n,t,i,a,o)}else 16&l?e_(t,n,r,e,i,o):io(n,t,i,a,o);e=s?e.projectionNext:e.next}}function _s(t,n,e,r,i,o){Nd(e,r,t.firstChild,n,i,o,!1)}function e_(t,n,e,r,i,o){const s=e[16],l=s[6].projection[r.projection];if(Array.isArray(l))for(let u=0;u<l.length;u++)io(n,t,i,l[u],o);else Nd(t,n,l,s[3],i,o,!0)}function t_(t,n,e){t.setAttribute(n,"style",e)}function Sd(t,n,e){""===e?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function n_(t,n,e){let r=t.length;for(;;){const i=t.indexOf(n,e);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){const o=n.length;if(i+o===r||t.charCodeAt(i+o)<=32)return i}e=i+1}}const r_="ng-template";function OT(t,n,e){let r=0;for(;r<t.length;){let i=t[r++];if(e&&"class"===i){if(i=t[r],-1!==n_(i.toLowerCase(),n,0))return!0}else if(1===i){for(;r<t.length&&"string"==typeof(i=t[r++]);)if(i.toLowerCase()===n)return!0;return!1}}return!1}function i_(t){return 4===t.type&&t.value!==r_}function FT(t,n,e){return n===(4!==t.type||e?t.value:r_)}function PT(t,n,e){let r=4;const i=t.attrs||[],o=function VT(t){for(let n=0;n<t.length;n++)if(Ag(t[n]))return n;return t.length}(i);let s=!1;for(let a=0;a<n.length;a++){const l=n[a];if("number"!=typeof l){if(!s)if(4&r){if(r=2|1&r,""!==l&&!FT(t,l,e)||""===l&&1===n.length){if(Qn(r))return!1;s=!0}}else{const u=8&r?l:n[++a];if(8&r&&null!==t.attrs){if(!OT(t.attrs,u,e)){if(Qn(r))return!1;s=!0}continue}const d=kT(8&r?"class":l,i,i_(t),e);if(-1===d){if(Qn(r))return!1;s=!0;continue}if(""!==u){let h;h=d>o?"":i[d+1].toLowerCase();const p=8&r?h:null;if(p&&-1!==n_(p,u,0)||2&r&&u!==h){if(Qn(r))return!1;s=!0}}}}else{if(!s&&!Qn(r)&&!Qn(l))return!1;if(s&&Qn(l))continue;s=!1,r=l|1&r}}return Qn(r)||s}function Qn(t){return 0==(1&t)}function kT(t,n,e,r){if(null===n)return-1;let i=0;if(r||!e){let o=!1;for(;i<n.length;){const s=n[i];if(s===t)return i;if(3===s||6===s)o=!0;else{if(1===s||2===s){let a=n[++i];for(;"string"==typeof a;)a=n[++i];continue}if(4===s)break;if(0===s){i+=4;continue}}i+=o?1:2}return-1}return function BT(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const r=t[e];if("number"==typeof r)return-1;if(r===n)return e;e++}return-1}(n,t)}function o_(t,n,e=!1){for(let r=0;r<n.length;r++)if(PT(t,n[r],e))return!0;return!1}function $T(t,n){e:for(let e=0;e<n.length;e++){const r=n[e];if(t.length===r.length){for(let i=0;i<t.length;i++)if(t[i]!==r[i])continue e;return!0}}return!1}function s_(t,n){return t?":not("+n.trim()+")":n}function HT(t){let n=t[0],e=1,r=2,i="",o=!1;for(;e<t.length;){let s=t[e];if("string"==typeof s)if(2&r){const a=t[++e];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!Qn(s)&&(n+=s_(o,i),i=""),r=s,o=o||!Qn(r);e++}return""!==i&&(n+=s_(o,i)),n}const we={};function H(t){a_(Ve(),J(),dn()+t,!1)}function a_(t,n,e,r){if(!r)if(3==(3&n[2])){const o=t.preOrderCheckHooks;null!==o&&Pa(n,o,e)}else{const o=t.preOrderHooks;null!==o&&ka(n,o,0,e)}Hr(e)}function d_(t,n=null,e=null,r){const i=h_(t,n,e,r);return i.resolveInjectorInitializers(),i}function h_(t,n=null,e=null,r,i=new Set){const o=[e||$e,MM(t)];return r=r||("object"==typeof t?void 0:C(t)),new Cm(o,n||el(),r||null,i)}let Ot=(()=>{class t{static create(e,r){if(Array.isArray(e))return d_({name:""},r,e,"");{const i=e.name??"";return d_({name:i},e.parent,e.providers,i)}}}return t.THROW_IF_NOT_FOUND=rs,t.NULL=new _m,t.\u0275prov=Z({token:t,providedIn:"any",factory:()=>G(Xa)}),t.__NG_ELEMENT_ID__=-1,t})();function m(t,n=pe.Default){const e=J();return null===e?G(t,n):Vg(xt(),e,z(t),n)}function Od(){throw new Error("invalid")}function sl(t,n){return t<<17|n<<2}function Zn(t){return t>>17&32767}function Fd(t){return 2|t}function Er(t){return(131068&t)>>2}function Pd(t,n){return-131069&t|n<<2}function kd(t){return 1|t}function I_(t,n){const e=t.contentQueries;if(null!==e)for(let r=0;r<e.length;r+=2){const i=e[r],o=e[r+1];if(-1!==o){const s=t.data[o];xc(i),s.contentQueries(2,n[o],o)}}}function ul(t,n,e,r,i,o,s,a,l,u,c){const d=n.blueprint.slice();return d[0]=i,d[2]=76|r,(null!==c||t&&1024&t[2])&&(d[2]|=1024),_g(d),d[3]=d[15]=t,d[8]=e,d[10]=s||t&&t[10],d[_]=a||t&&t[_],d[12]=l||t&&t[12]||null,d[9]=u||t&&t[9]||null,d[6]=o,d[20]=function tT(){return eT++}(),d[21]=c,d[16]=2==n.type?t[16]:d,d}function so(t,n,e,r,i){let o=t.data[n];if(null===o)o=function Wd(t,n,e,r,i){const o=bg(),s=Nc(),l=t.data[n]=function EN(t,n,e,r,i,o){return{type:e,index:r,insertBeforeIndex:null,injectorIndex:n?n.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,e,n,r,i);return null===t.firstChild&&(t.firstChild=l),null!==o&&(s?null==o.child&&null!==l.parent&&(o.child=l):null===o.next&&(o.next=l)),l}(t,n,e,r,i),function tE(){return be.lFrame.inI18n}()&&(o.flags|=64);else if(64&o.type){o.type=e,o.value=r,o.attrs=i;const s=function Yo(){const t=be.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return sr(o,!0),o}function ao(t,n,e,r){if(0===e)return-1;const i=n.length;for(let o=0;o<e;o++)n.push(r),t.blueprint.push(r),t.data.push(null);return i}function cl(t,n,e){Rc(n);try{const r=t.viewQuery;null!==r&&eh(1,r,e);const i=t.template;null!==i&&A_(t,n,i,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&I_(t,n),t.staticViewQueries&&eh(2,t.viewQuery,e);const o=t.components;null!==o&&function bN(t,n){for(let e=0;e<n.length;e++)$N(t,n[e])}(n,o)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{n[2]&=-5,Oc()}}function ys(t,n,e,r){const i=n[2];if(128!=(128&i)){Rc(n);try{_g(n),function Dg(t){return be.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&A_(t,n,e,2,r);const s=3==(3&i);if(s){const u=t.preOrderCheckHooks;null!==u&&Pa(n,u,null)}else{const u=t.preOrderHooks;null!==u&&ka(n,u,0,null),Fc(n,0)}if(function VN(t){for(let n=vd(t);null!==n;n=bd(n)){if(!n[2])continue;const e=n[9];for(let r=0;r<e.length;r++){const i=e[r],o=i[3];0==(512&i[2])&&Tc(o,1),i[2]|=512}}}(n),function LN(t){for(let n=vd(t);null!==n;n=bd(n))for(let e=10;e<n.length;e++){const r=n[e],i=r[1];Ra(r)&&ys(i,r,i.template,r[8])}}(n),null!==t.contentQueries&&I_(t,n),s){const u=t.contentCheckHooks;null!==u&&Pa(n,u)}else{const u=t.contentHooks;null!==u&&ka(n,u,1),Fc(n,1)}!function yN(t,n){const e=t.hostBindingOpCodes;if(null!==e)try{for(let r=0;r<e.length;r++){const i=e[r];if(i<0)Hr(~i);else{const o=i,s=e[++r],a=e[++r];nE(s,o),a(2,n[o])}}}finally{Hr(-1)}}(t,n);const a=t.components;null!==a&&function vN(t,n){for(let e=0;e<n.length;e++)BN(t,n[e])}(n,a);const l=t.viewQuery;if(null!==l&&eh(2,l,r),s){const u=t.viewCheckHooks;null!==u&&Pa(n,u)}else{const u=t.viewHooks;null!==u&&ka(n,u,2),Fc(n,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),n[2]&=-41,512&n[2]&&(n[2]&=-513,Tc(n[3],-1))}finally{Oc()}}}function DN(t,n,e,r){const i=n[10],s=mg(n);try{!s&&i.begin&&i.begin(),s&&cl(t,n,r),ys(t,n,e,r)}finally{!s&&i.end&&i.end()}}function A_(t,n,e,r,i){const o=dn(),s=2&r;try{Hr(-1),s&&n.length>22&&a_(t,n,22,!1),e(r,i)}finally{Hr(o)}}function zd(t,n,e){!vg()||(function IN(t,n,e,r){const i=e.directiveStart,o=e.directiveEnd;t.firstCreatePass||Xo(e,n),Xt(r,n);const s=e.initialInputs;for(let a=i;a<o;a++){const l=t.data[a],u=Jn(l);u&&FN(n,e,l);const c=qo(n,t,a,e);Xt(c,n),null!==s&&PN(0,a-i,c,l,0,s),u&&(Sn(e.index,n)[8]=c)}}(t,n,e,Vn(e,n)),128==(128&e.flags)&&function AN(t,n,e){const r=e.directiveStart,i=e.directiveEnd,o=e.index,s=function rE(){return be.lFrame.currentDirectiveIndex}();try{Hr(o);for(let a=r;a<i;a++){const l=t.data[a],u=n[a];Ic(a),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&V_(l,u)}}finally{Hr(-1),Ic(s)}}(t,n,e))}function Kd(t,n,e=Vn){const r=n.localNames;if(null!==r){let i=n.index+1;for(let o=0;o<r.length;o+=2){const s=r[o+1],a=-1===s?e(n,t):t[s];t[i++]=a}}}function R_(t){const n=t.tView;return null===n||n.incompleteFirstPass?t.tView=Jd(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):n}function Jd(t,n,e,r,i,o,s,a,l,u){const c=22+r,d=c+i,h=function CN(t,n){const e=[];for(let r=0;r<n;r++)e.push(r<t?null:we);return e}(c,d),p="function"==typeof u?u():u;return h[1]={type:t,blueprint:h,template:e,queries:null,viewQuery:a,declTNode:n,data:h.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1}}function O_(t,n,e,r){const i=W_(n);null===e?i.push(r):(i.push(e),t.firstCreatePass&&z_(t).push(r,i.length-1))}function F_(t,n,e){for(let r in t)if(t.hasOwnProperty(r)){const i=t[r];(e=null===e?{}:e).hasOwnProperty(r)?e[r].push(n,i):e[r]=[n,i]}return e}function P_(t,n){const r=n.directiveEnd,i=t.data,o=n.attrs,s=[];let a=null,l=null;for(let u=n.directiveStart;u<r;u++){const c=i[u],d=c.inputs,h=null===o||i_(n)?null:kN(d,o);s.push(h),a=F_(d,u,a),l=F_(c.outputs,u,l)}null!==a&&(a.hasOwnProperty("class")&&(n.flags|=16),a.hasOwnProperty("style")&&(n.flags|=32)),n.initialInputs=s,n.inputs=a,n.outputs=l}function xn(t,n,e,r,i,o,s,a){const l=Vn(n,e);let c,u=n.inputs;!a&&null!=u&&(c=u[r])?(th(t,e,c,r,i),Ia(n)&&k_(e,n.index)):3&n.type&&(r=function MN(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(r),i=null!=s?s(i,n.value||"",r):i,o.setProperty(l,r,i))}function k_(t,n){const e=Sn(n,t);16&e[2]||(e[2]|=32)}function Yd(t,n,e,r){let i=!1;if(vg()){const o=function xN(t,n,e){const r=t.directiveRegistry;let i=null;if(r)for(let o=0;o<r.length;o++){const s=r[o];o_(e,s.selectors,!1)&&(i||(i=[]),Ha(Xo(e,n),t,s.type),Jn(s)?(B_(t,e),i.unshift(s)):i.push(s))}return i}(t,n,e),s=null===r?null:{"":-1};if(null!==o){i=!0,$_(e,t.data.length,o.length);for(let c=0;c<o.length;c++){const d=o[c];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,u=ao(t,n,o.length,null);for(let c=0;c<o.length;c++){const d=o[c];e.mergedAttrs=Va(e.mergedAttrs,d.hostAttrs),H_(t,e,n,u,d),ON(u,d,s),null!==d.contentQueries&&(e.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(e.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e.index),l=!0),u++}P_(t,e)}s&&function RN(t,n,e){if(n){const r=t.localNames=[];for(let i=0;i<n.length;i+=2){const o=e[n[i+1]];if(null==o)throw new q(-301,!1);r.push(n[i],o)}}}(e,r,s)}return e.mergedAttrs=Va(e.mergedAttrs,e.attrs),i}function L_(t,n,e,r,i,o){const s=o.hostBindings;if(s){let a=t.hostBindingOpCodes;null===a&&(a=t.hostBindingOpCodes=[]);const l=~n.index;(function SN(t){let n=t.length;for(;n>0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(r,i,s)}}function V_(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function B_(t,n){n.flags|=2,(t.components||(t.components=[])).push(n.index)}function ON(t,n,e){if(e){if(n.exportAs)for(let r=0;r<n.exportAs.length;r++)e[n.exportAs[r]]=t;Jn(n)&&(e[""]=t)}}function $_(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}function H_(t,n,e,r,i){t.data[r]=i;const o=i.factory||(i.factory=pi(i.type)),s=new Qo(o,Jn(i),m);t.blueprint[r]=s,e[r]=s,L_(t,n,0,r,ao(t,e,i.hostVars,we),i)}function FN(t,n,e){const r=Vn(n,t),i=R_(e),o=t[10],s=dl(t,ul(t,i,null,e.onPush?32:16,r,n,o,o.createRenderer(r,e),null,null,null));t[n.index]=s}function ur(t,n,e,r,i,o){const s=Vn(t,n);!function Qd(t,n,e,r,i,o,s){if(null==o)t.removeAttribute(n,i,e);else{const a=null==s?ve(o):s(o,r||"",i);t.setAttribute(n,i,a,e)}}(n[_],s,o,t.value,e,r,i)}function PN(t,n,e,r,i,o){const s=o[n];if(null!==s){const a=r.setInput;for(let l=0;l<s.length;){const u=s[l++],c=s[l++],d=s[l++];null!==a?r.setInput(e,d,u,c):e[c]=d}}}function kN(t,n){let e=null,r=0;for(;r<n.length;){const i=n[r];if(0!==i)if(5!==i){if("number"==typeof i)break;t.hasOwnProperty(i)&&(null===e&&(e=[]),e.push(i,t[i],n[r+1])),r+=2}else r+=2;else r+=4}return e}function j_(t,n,e,r){return new Array(t,!0,!1,n,null,0,r,e,null,null)}function BN(t,n){const e=Sn(n,t);if(Ra(e)){const r=e[1];48&e[2]?ys(r,e,r.template,e[8]):e[5]>0&&Zd(e)}}function Zd(t){for(let r=vd(t);null!==r;r=bd(r))for(let i=10;i<r.length;i++){const o=r[i];if(Ra(o))if(512&o[2]){const s=o[1];ys(s,o,s.template,o[8])}else o[5]>0&&Zd(o)}const e=t[1].components;if(null!==e)for(let r=0;r<e.length;r++){const i=Sn(e[r],t);Ra(i)&&i[5]>0&&Zd(i)}}function $N(t,n){const e=Sn(n,t),r=e[1];(function HN(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])})(r,e),cl(r,e,e[8])}function dl(t,n){return t[13]?t[14][4]=n:t[13]=n,t[14]=n,n}function Xd(t){for(;t;){t[2]|=32;const n=ms(t);if(kw(t)&&!n)return t;t=n}return null}function G_(t){!function U_(t){for(let n=0;n<t.components.length;n++){const e=t.components[n],r=md(e);if(null!==r){const i=r[1];DN(i,r,i.template,e)}}}(t[8])}function eh(t,n,e){xc(0),n(t,e)}const UN=(()=>Promise.resolve(null))();function W_(t){return t[7]||(t[7]=[])}function z_(t){return t.cleanup||(t.cleanup=[])}function J_(t,n){const e=t[9],r=e?e.get(no,null):null;r&&r.handleError(n)}function th(t,n,e,r,i){for(let o=0;o<e.length;){const s=e[o++],a=e[o++],l=n[s],u=t.data[s];null!==u.setInput?u.setInput(l,i,r,a):l[a]=i}}function hl(t,n,e){let r=e?t.styles:null,i=e?t.classes:null,o=0;if(null!==n)for(let s=0;s<n.length;s++){const a=n[s];"number"==typeof a?o=a:1==o?i=B(i,a):2==o&&(r=B(r,a+": "+n[++s]+";"))}e?t.styles=r:t.stylesWithoutHost=r,e?t.classes=i:t.classesWithoutHost=i}function fl(t,n,e,r,i=!1){for(;null!==e;){const o=n[e.index];if(null!==o&&r.push(Et(o)),Kn(o))for(let a=10;a<o.length;a++){const l=o[a],u=l[1].firstChild;null!==u&&fl(l[1],l,u,r)}const s=e.type;if(8&s)fl(t,n,e.child,r);else if(32&s){const a=yd(e,n);let l;for(;l=a();)r.push(l)}else if(16&s){const a=Xm(n,e);if(Array.isArray(a))r.push(...a);else{const l=ms(n[16]);fl(l[1],l,a,r,!0)}}e=i?e.projectionNext:e.next}return r}class vs{constructor(n,e){this._lView=n,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const n=this._lView,e=n[1];return fl(e,n,e.firstChild,[])}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(Kn(n)){const e=n[8],r=e?e.indexOf(this):-1;r>-1&&(wd(n,r),Ua(e,r))}this._attachedToViewContainer=!1}Um(this._lView[1],this._lView)}onDestroy(n){O_(this._lView[1],this._lView,null,n)}markForCheck(){Xd(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function qd(t,n,e){const r=n[10];r.begin&&r.begin();try{ys(t,n,t.template,e)}catch(i){throw J_(n,i),i}finally{r.end&&r.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new q(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function CT(t,n){_s(t,n,n[_],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new q(902,!1);this._appRef=n}}class GN extends vs{constructor(n){super(n),this._view=n}detectChanges(){G_(this._view)}checkNoChanges(){}get context(){return null}}class nh extends Yn{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=ze(n);return new bs(e,this.ngModule)}}function Y_(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class zN{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,r){const i=this.injector.get(n,ad,r);return i!==ad||e===ad?i:this.parentInjector.get(n,e,r)}}class bs extends Em{constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function jT(t){return t.map(HT).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Y_(this.componentDef.inputs)}get outputs(){return Y_(this.componentDef.outputs)}create(n,e,r,i){let o=(i=i||this.ngModule)instanceof Wr?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new zN(n,o):n,a=s.get(tl,null);if(null===a)throw new q(407,!1);const l=s.get(HM,null),u=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=r?function wN(t,n,e){return t.selectRootElement(n,e===Tn.ShadowDom)}(u,r,this.componentDef.encapsulation):Cd(a.createRenderer(null,this.componentDef),c,function WN(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(c)),h=this.componentDef.onPush?288:272,p=function ZN(t,n){return{components:[],scheduler:t||dT,clean:UN,playerHandler:n||null,flags:0}}(),b=Jd(0,null,null,1,0,null,null,null,null,null),I=ul(null,b,p,h,null,null,a,u,l,s,null);let U,Y;Rc(I);try{const re=function YN(t,n,e,r,i,o){const s=e[1];e[22]=t;const l=so(s,22,2,"#host",null),u=l.mergedAttrs=n.hostAttrs;null!==u&&(hl(l,u,!0),null!==t&&(La(i,t,u),null!==l.classes&&Sd(i,t,l.classes),null!==l.styles&&t_(i,t,l.styles)));const c=r.createRenderer(t,n),d=ul(e,R_(n),null,n.onPush?32:16,e[22],l,r,c,o||null,null,null);return s.firstCreatePass&&(Ha(Xo(l,e),s,n.type),B_(s,l),$_(l,e.length,1)),dl(e,d),e[22]=d}(d,this.componentDef,I,a,u);if(d)if(r)La(u,d,["ng-version",jM.full]);else{const{attrs:W,classes:he}=function UT(t){const n=[],e=[];let r=1,i=2;for(;r<t.length;){let o=t[r];if("string"==typeof o)2===i?""!==o&&n.push(o,t[++r]):8===i&&e.push(o);else{if(!Qn(i))break;i=o}r++}return{attrs:n,classes:e}}(this.componentDef.selectors[0]);W&&La(u,d,W),he&&he.length>0&&Sd(u,d,he.join(" "))}if(Y=Mc(b,22),void 0!==e){const W=Y.projection=[];for(let he=0;he<this.ngContentSelectors.length;he++){const Te=e[he];W.push(null!=Te?Array.from(Te):null)}}U=function QN(t,n,e,r,i){const o=e[1],s=function NN(t,n,e){const r=xt();t.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),H_(t,r,n,ao(t,n,1,null),e),P_(t,r));const i=qo(n,t,r.directiveStart,r);Xt(i,n);const o=Vn(r,n);return o&&Xt(o,n),i}(o,e,n);if(r.components.push(s),t[8]=s,null!==i)for(const l of i)l(s,n);if(n.contentQueries){const l=xt();n.contentQueries(1,s,l.directiveStart)}const a=xt();return!o.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(Hr(a.index),L_(e[1],a,0,a.directiveStart,a.directiveEnd,n),V_(n,s)),s}(re,this.componentDef,I,p,[XN]),cl(b,I,null)}finally{Oc()}return new JN(this.componentType,U,to(Y,I),I,Y)}}class JN extends class PM{}{constructor(n,e,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.instance=e,this.hostView=this.changeDetectorRef=new GN(i),this.componentType=n}setInput(n,e){const r=this._tNode.inputs;let i;if(null!==r&&(i=r[n])){const o=this._rootLView;th(o[1],o,i,n,e),k_(o,this._tNode.index)}}get injector(){return new Wi(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}function XN(){const t=xt();Fa(J()[1],t)}function Ye(t){let n=function Q_(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const r=[t];for(;n;){let i;if(Jn(t))i=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new q(903,!1);i=n.\u0275dir}if(i){if(e){r.push(i);const s=t;s.inputs=rh(t.inputs),s.declaredInputs=rh(t.declaredInputs),s.outputs=rh(t.outputs);const a=i.hostBindings;a&&nS(t,a);const l=i.viewQuery,u=i.contentQueries;if(l&&eS(t,l),u&&tS(t,u),T(t.inputs,i.inputs),T(t.declaredInputs,i.declaredInputs),T(t.outputs,i.outputs),Jn(i)&&i.data.animation){const c=t.data;c.animation=(c.animation||[]).concat(i.data.animation)}}const o=i.features;if(o)for(let s=0;s<o.length;s++){const a=o[s];a&&a.ngInherit&&a(t),a===Ye&&(e=!1)}}n=Object.getPrototypeOf(n)}!function qN(t){let n=0,e=null;for(let r=t.length-1;r>=0;r--){const i=t[r];i.hostVars=n+=i.hostVars,i.hostAttrs=Va(i.hostAttrs,e=Va(e,i.hostAttrs))}}(r)}function rh(t){return t===Nn?{}:t===$e?[]:t}function eS(t,n){const e=t.viewQuery;t.viewQuery=e?(r,i)=>{n(r,i),e(r,i)}:n}function tS(t,n){const e=t.contentQueries;t.contentQueries=e?(r,i,o)=>{n(r,i,o),e(r,i,o)}:n}function nS(t,n){const e=t.hostBindings;t.hostBindings=e?(r,i)=>{n(r,i),e(r,i)}:n}let pl=null;function _i(){if(!pl){const t=Ke.Symbol;if(t&&t.iterator)pl=t.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<n.length;++e){const r=n[e];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(pl=r)}}}return pl}function Ds(t){return!!ih(t)&&(Array.isArray(t)||!(t instanceof Map)&&_i()in t)}function ih(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function cr(t,n,e){return t[n]=e}function qt(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function gl(t,n,e,r,i){const o=function yi(t,n,e,r){const i=qt(t,n,e);return qt(t,n+1,r)||i}(t,n,e,r);return qt(t,n+2,i)||o}function Be(t,n,e,r){const i=J();return qt(i,ji(),n)&&(Ve(),ur(mt(),i,t,n,e,r)),Be}function uo(t,n,e,r){return qt(t,ji(),e)?n+ve(e)+r:we}function Q(t,n,e,r,i,o,s,a){const l=J(),u=Ve(),c=t+22,d=u.firstCreatePass?function dS(t,n,e,r,i,o,s,a,l){const u=n.consts,c=so(n,t,4,s||null,$r(u,a));Yd(n,e,c,$r(u,l)),Fa(n,c);const d=c.tViews=Jd(2,c,r,i,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,u);return null!==n.queries&&(n.queries.template(n,c),d.queries=n.queries.embeddedTView(c)),c}(c,u,l,n,e,r,i,o,s):u.data[c];sr(d,!1);const h=l[_].createComment("");rl(u,l,h,d),Xt(h,l),dl(l,l[c]=j_(h,l,h,d)),Aa(d)&&zd(u,l,d),null!=s&&Kd(l,d,a)}function Ht(t){return Hi(function eE(){return be.lFrame.contextLView}(),22+t)}function $(t,n,e){const r=J();return qt(r,ji(),n)&&xn(Ve(),mt(),r,t,n,r[_],e,!1),$}function oh(t,n,e,r,i){const s=i?"class":"style";th(t,e,n.inputs[s],s,r)}function v(t,n,e,r){const i=J(),o=Ve(),s=22+t,a=i[_],l=i[s]=Cd(a,n,function dE(){return be.lFrame.currentNamespace}()),u=o.firstCreatePass?function fS(t,n,e,r,i,o,s){const a=n.consts,u=so(n,t,2,i,$r(a,o));return Yd(n,e,u,$r(a,s)),null!==u.attrs&&hl(u,u.attrs,!1),null!==u.mergedAttrs&&hl(u,u.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,u),u}(s,o,i,0,n,e,r):o.data[s];sr(u,!0);const c=u.mergedAttrs;null!==c&&La(a,l,c);const d=u.classes;null!==d&&Sd(a,l,d);const h=u.styles;return null!==h&&t_(a,l,h),64!=(64&u.flags)&&rl(o,i,l,u),0===function Yw(){return be.lFrame.elementDepthCount}()&&Xt(l,i),function Qw(){be.lFrame.elementDepthCount++}(),Aa(u)&&(zd(o,i,u),function x_(t,n,e){if(bc(n)){const i=n.directiveEnd;for(let o=n.directiveStart;o<i;o++){const s=t.data[o];s.contentQueries&&s.contentQueries(1,e[o],o)}}}(o,u,i)),null!==r&&Kd(i,u),v}function D(){let t=xt();Nc()?Sc():(t=t.parent,sr(t,!1));const n=t;!function Zw(){be.lFrame.elementDepthCount--}();const e=Ve();return e.firstCreatePass&&(Fa(e,t),bc(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function mE(t){return 0!=(16&t.flags)}(n)&&oh(e,n,J(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function _E(t){return 0!=(32&t.flags)}(n)&&oh(e,n,J(),n.stylesWithoutHost,!1),D}function Ee(t,n,e,r){return v(t,n,e,r),D(),Ee}function at(){return J()}function ws(t){return!!t&&"function"==typeof t.then}const sh=function ay(t){return!!t&&"function"==typeof t.subscribe};function ue(t,n,e,r){const i=J(),o=Ve(),s=xt();return function uy(t,n,e,r,i,o,s,a){const l=Aa(r),c=t.firstCreatePass&&z_(t),d=n[8],h=W_(n);let p=!0;if(3&r.type||a){const U=Vn(r,n),Y=a?a(U):U,re=h.length,W=a?Te=>a(Et(Te[r.index])):r.index;let he=null;if(!a&&l&&(he=function gS(t,n,e,r){const i=t.cleanup;if(null!=i)for(let o=0;o<i.length-1;o+=2){const s=i[o];if(s===e&&i[o+1]===r){const a=n[7],l=i[o+2];return a.length>l?a[l]:null}"string"==typeof s&&(o+=2)}return null}(t,n,i,r.index)),null!==he)(he.__ngLastListenerFn__||he).__ngNextListenerFn__=o,he.__ngLastListenerFn__=o,p=!1;else{o=dy(r,n,d,o,!1);const Te=e.listen(Y,i,o);h.push(o,Te),c&&c.push(i,W,re,re+1)}}else o=dy(r,n,d,o,!1);const b=r.outputs;let I;if(p&&null!==b&&(I=b[i])){const U=I.length;if(U)for(let Y=0;Y<U;Y+=2){const et=n[I[Y]][I[Y+1]].subscribe(o),mr=h.length;h.push(o,et),c&&c.push(i,r.index,mr,-(mr+1))}}}(o,i,i[_],s,t,n,0,r),ue}function cy(t,n,e,r){try{return!1!==e(r)}catch(i){return J_(t,i),!1}}function dy(t,n,e,r,i){return function o(s){if(s===Function)return r;Xd(2&t.flags?Sn(t.index,n):n);let l=cy(n,0,r,s),u=o.__ngNextListenerFn__;for(;u;)l=cy(n,0,u,s)&&l,u=u.__ngNextListenerFn__;return i&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function ee(t=1){return function oE(t){return(be.lFrame.contextLView=function sE(t,n){for(;t>0;)n=n[15],t--;return n}(t,be.lFrame.contextLView))[8]}(t)}function mS(t,n){let e=null;const r=function LT(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(0==(1&e))return n[e+1]}return null}(t);for(let i=0;i<n.length;i++){const o=n[i];if("*"!==o){if(null===r?o_(t,o,!0):$T(r,o))return i}else e=i}return e}function vi(t){const n=J()[16][6];if(!n.projection){const r=n.projection=ns(t?t.length:1,null),i=r.slice();let o=n.child;for(;null!==o;){const s=t?mS(o,t):0;null!==s&&(i[s]?i[s].projectionNext=o:r[s]=o,i[s]=o),o=o.next}}}function bi(t,n=0,e){const r=J(),i=Ve(),o=so(i,22+t,16,null,e||null);null===o.projection&&(o.projection=n),Sc(),64!=(64&o.flags)&&function AT(t,n,e){e_(n[_],0,n,e,Gm(t,e,n),Jm(e.parent||n[6],e,n))}(i,r,o)}function yo(t,n,e){return yl(t,"",n,"",e),yo}function yl(t,n,e,r,i){const o=J(),s=uo(o,n,e,r);return s!==we&&xn(Ve(),mt(),o,t,s,o[_],i,!1),yl}function by(t,n,e,r,i){const o=t[e+1],s=null===n;let a=r?Zn(o):Er(o),l=!1;for(;0!==a&&(!1===l||s);){const c=t[a+1];vS(t[a],n)&&(l=!0,t[a+1]=r?kd(c):Fd(c)),a=r?Zn(c):Er(c)}l&&(t[e+1]=r?Fd(o):kd(o))}function vS(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&Qi(t,n)>=0}const Ft={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Dy(t){return t.substring(Ft.key,Ft.keyEnd)}function Cy(t,n){const e=Ft.textEnd;return e===n?-1:(n=Ft.keyEnd=function wS(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n}(t,Ft.key=n,e),vo(t,n,e))}function vo(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n}function Jr(t,n,e){return Xn(t,n,e,!1),Jr}function De(t,n){return Xn(t,n,null,!0),De}function $n(t){!function qn(t,n,e,r){const i=Ve(),o=Dr(2);i.firstUpdatePass&&Sy(i,null,o,r);const s=J();if(e!==we&&qt(s,o,e)){const a=i.data[dn()];if(Ry(a,r)&&!Ny(i,o)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=B(l,e||"")),oh(i,a,s,e,r)}else!function RS(t,n,e,r,i,o,s,a){i===we&&(i=$e);let l=0,u=0,c=0<i.length?i[0]:null,d=0<o.length?o[0]:null;for(;null!==c||null!==d;){const h=l<i.length?i[l+1]:void 0,p=u<o.length?o[u+1]:void 0;let I,b=null;c===d?(l+=2,u+=2,h!==p&&(b=d,I=p)):null===d||null!==c&&c<d?(l+=2,b=c):(u+=2,b=d,I=p),null!==b&&Ay(t,n,e,r,b,I,s,a),c=l<i.length?i[l]:null,d=u<o.length?o[u]:null}}(i,a,s,s[_],s[o+1],s[o+1]=function xS(t,n,e){if(null==e||""===e)return $e;const r=[],i=Gr(e);if(Array.isArray(i))for(let o=0;o<i.length;o++)t(r,i[o],!0);else if("object"==typeof i)for(const o in i)i.hasOwnProperty(o)&&t(r,o,i[o]);else"string"==typeof i&&n(r,i);return r}(t,n,e),r,o)}}(An,hr,t,!0)}function hr(t,n){for(let e=function DS(t){return function Ey(t){Ft.key=0,Ft.keyEnd=0,Ft.value=0,Ft.valueEnd=0,Ft.textEnd=t.length}(t),Cy(t,vo(t,0,Ft.textEnd))}(n);e>=0;e=Cy(n,e))An(t,Dy(n),!0)}function Xn(t,n,e,r){const i=J(),o=Ve(),s=Dr(2);o.firstUpdatePass&&Sy(o,t,s,r),n!==we&&qt(i,s,n)&&Ay(o,o.data[dn()],i,i[_],t,i[s+1]=function OS(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=C(Gr(t)))),t}(n,e),r,s)}function Ny(t,n){return n>=t.expandoStartIndex}function Sy(t,n,e,r){const i=t.data;if(null===i[e+1]){const o=i[dn()],s=Ny(t,e);Ry(o,r)&&null===n&&!s&&(n=!1),n=function NS(t,n,e,r){const i=function Ac(t){const n=be.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let o=r?n.residualClasses:n.residualStyles;if(null===i)0===(r?n.classBindings:n.styleBindings)&&(e=Es(e=ah(null,t,n,e,r),n.attrs,r),o=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==i)if(e=ah(i,t,n,e,r),null===o){let l=function SS(t,n,e){const r=e?n.classBindings:n.styleBindings;if(0!==Er(r))return t[Zn(r)]}(t,n,r);void 0!==l&&Array.isArray(l)&&(l=ah(null,t,n,l[1],r),l=Es(l,n.attrs,r),function IS(t,n,e,r){t[Zn(e?n.classBindings:n.styleBindings)]=r}(t,n,r,l))}else o=function AS(t,n,e){let r;const i=n.directiveEnd;for(let o=1+n.directiveStylingLast;o<i;o++)r=Es(r,t[o].hostAttrs,e);return Es(r,n.attrs,e)}(t,n,r)}return void 0!==o&&(r?n.residualClasses=o:n.residualStyles=o),e}(i,o,n,r),function _S(t,n,e,r,i,o){let s=o?n.classBindings:n.styleBindings,a=Zn(s),l=Er(s);t[r]=e;let c,u=!1;if(Array.isArray(e)){const d=e;c=d[1],(null===c||Qi(d,c)>0)&&(u=!0)}else c=e;if(i)if(0!==l){const h=Zn(t[a+1]);t[r+1]=sl(h,a),0!==h&&(t[h+1]=Pd(t[h+1],r)),t[a+1]=function lN(t,n){return 131071&t|n<<17}(t[a+1],r)}else t[r+1]=sl(a,0),0!==a&&(t[a+1]=Pd(t[a+1],r)),a=r;else t[r+1]=sl(l,0),0===a?a=r:t[l+1]=Pd(t[l+1],r),l=r;u&&(t[r+1]=Fd(t[r+1])),by(t,c,r,!0),by(t,c,r,!1),function yS(t,n,e,r,i){const o=i?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof n&&Qi(o,n)>=0&&(e[r+1]=kd(e[r+1]))}(n,c,t,r,o),s=sl(a,l),o?n.classBindings=s:n.styleBindings=s}(i,o,n,e,s,r)}}function ah(t,n,e,r,i){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<s&&(o=n[a],r=Es(r,o.hostAttrs,i),o!==t);)a++;return null!==t&&(e.directiveStylingLast=a),r}function Es(t,n,e){const r=e?1:2;let i=-1;if(null!==n)for(let o=0;o<n.length;o++){const s=n[o];"number"==typeof s?i=s:i===r&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),An(t,s,!!e||n[++o]))}return void 0===t?null:t}function Ay(t,n,e,r,i,o,s,a){if(!(3&n.type))return;const l=t.data,u=l[a+1];vl(function D_(t){return 1==(1&t)}(u)?xy(l,n,e,i,Er(u),s):void 0)||(vl(o)||function b_(t){return 2==(2&t)}(u)&&(o=xy(l,null,e,i,a,s)),function RT(t,n,e,r,i){if(n)i?t.addClass(e,r):t.removeClass(e,r);else{let o=-1===r.indexOf("-")?void 0:En.DashCase;null==i?t.removeStyle(e,r,o):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=En.Important),t.setStyle(e,r,i,o))}}(r,s,xa(dn(),e),i,o))}function xy(t,n,e,r,i,o){const s=null===n;let a;for(;i>0;){const l=t[i],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let h=e[i+1];h===we&&(h=d?$e:void 0);let p=d?jc(h,r):c===r?h:void 0;if(u&&!vl(p)&&(p=jc(l,r)),vl(p)&&(a=p,s))return a;const b=t[i+1];i=s?Zn(b):Er(b)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=jc(l,r))}return a}function vl(t){return void 0!==t}function Ry(t,n){return 0!=(t.flags&(n?16:32))}function S(t,n=""){const e=J(),r=Ve(),i=t+22,o=r.firstCreatePass?so(r,i,1,n,null):r.data[i],s=e[i]=function Dd(t,n){return t.createText(n)}(e[_],n);rl(r,e,s,o),sr(o,!1)}function lt(t){return fr("",t,""),lt}function fr(t,n,e){const r=J(),i=uo(r,t,n,e);return i!==we&&function Mr(t,n,e){const r=xa(n,t);!function Hm(t,n,e){t.setValue(n,e)}(t[_],r,e)}(r,dn(),i),fr}function Rn(t,n,e){const r=J();return qt(r,ji(),n)&&xn(Ve(),mt(),r,t,n,r[_],e,!0),Rn}const Do="en-US";let ev=Do;function ch(t,n,e,r,i){if(t=z(t),Array.isArray(t))for(let o=0;o<t.length;o++)ch(t[o],n,e,r,i);else{const o=Ve(),s=J();let a=gi(t)?t:z(t.provide),l=wm(t);const u=xt(),c=1048575&u.providerIndexes,d=u.directiveStart,h=u.providerIndexes>>20;if(gi(t)||!t.multi){const p=new Qo(l,i,m),b=hh(a,n,i?c:c+h,d);-1===b?(Ha(Xo(u,s),o,a),dh(o,t,n.length),n.push(a),u.directiveStart++,u.directiveEnd++,i&&(u.providerIndexes+=1048576),e.push(p),s.push(p)):(e[b]=p,s[b]=p)}else{const p=hh(a,n,c+h,d),b=hh(a,n,c,c+h),I=p>=0&&e[p],U=b>=0&&e[b];if(i&&!U||!i&&!I){Ha(Xo(u,s),o,a);const Y=function JI(t,n,e,r,i){const o=new Qo(t,e,m);return o.multi=[],o.index=n,o.componentProviders=0,Ev(o,i,r&&!e),o}(i?KI:zI,e.length,i,r,l);!i&&U&&(e[b].providerFactory=Y),dh(o,t,n.length,0),n.push(a),u.directiveStart++,u.directiveEnd++,i&&(u.providerIndexes+=1048576),e.push(Y),s.push(Y)}else dh(o,t,p>-1?p:b,Ev(e[i?b:p],l,!i&&r));!i&&r&&U&&e[b].componentProviders++}}}function dh(t,n,e,r){const i=gi(n),o=function NM(t){return!!t.useClass}(n);if(i||o){const l=(o?z(n.useClass):n).prototype.ngOnDestroy;if(l){const u=t.destroyHooks||(t.destroyHooks=[]);if(!i&&n.multi){const c=u.indexOf(e);-1===c?u.push(e,[r,l]):u[c+1].push(r,l)}else u.push(e,l)}}}function Ev(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function hh(t,n,e,r){for(let i=e;i<r;i++)if(n[i]===t)return i;return-1}function zI(t,n,e,r){return fh(this.multi,[])}function KI(t,n,e,r){const i=this.multi;let o;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=qo(e,e[1],this.providerFactory.index,r);o=a.slice(0,s),fh(i,o);for(let l=s;l<a.length;l++)o.push(a[l])}else o=[],fh(i,o);return o}function fh(t,n){for(let e=0;e<t.length;e++)n.push((0,t[e])());return n}function je(t,n=[]){return e=>{e.providersResolver=(r,i)=>function WI(t,n,e){const r=Ve();if(r.firstCreatePass){const i=Jn(t);ch(e,r.data,r.blueprint,i,!0),ch(n,r.data,r.blueprint,i,!1)}}(r,i?i(t):t,n)}}class Ci{}class Mv{}class Tv extends Ci{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new nh(this);const r=ln(n);this._bootstrapComponents=wr(r.bootstrap),this._r3Injector=h_(n,e,[{provide:Ci,useValue:this},{provide:Yn,useValue:this.componentFactoryResolver}],C(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(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class ph extends Mv{constructor(n){super(),this.moduleType=n}create(n){return new Tv(this.moduleType,n)}}class QI extends Ci{constructor(n,e,r){super(),this.componentFactoryResolver=new nh(this),this.instance=null;const i=new Cm([...n,{provide:Ci,useValue:this},{provide:Yn,useValue:this.componentFactoryResolver}],e||el(),r,new Set(["environment"]));this.injector=i,i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function El(t,n,e=null){return new QI(t,n,e).injector}function As(t,n,e,r){return Ov(J(),cn(),t,n,e,r)}function Ml(t,n,e,r,i,o){return function Pv(t,n,e,r,i,o,s,a){const l=n+e;return gl(t,l,i,o,s)?cr(t,l+3,a?r.call(a,i,o,s):r(i,o,s)):Rs(t,l+3)}(J(),cn(),t,n,e,r,i,o)}function Rs(t,n){const e=t[n];return e===we?void 0:e}function Ov(t,n,e,r,i,o){const s=n+e;return qt(t,s,i)?cr(t,s+1,o?r.call(o,i):r(i)):Rs(t,s+1)}function yh(t){return n=>{setTimeout(t,void 0,n)}}const se=class vA extends w.xQ{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,r){let i=n,o=e||(()=>null),s=r;if(n&&"object"==typeof n){const l=n;i=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=yh(o),i&&(i=yh(i)),s&&(s=yh(s)));const a=super.subscribe({next:i,error:o,complete:s});return n instanceof A.w&&n.add(a),a}};function bA(){return this._results[_i()]()}class vh{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=_i(),r=vh.prototype;r[e]||(r[e]=bA)}get changes(){return this._changes||(this._changes=new se)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const r=this;r.dirty=!1;const i=In(n);(this._changesDetected=!function NE(t,n,e){if(t.length!==n.length)return!1;for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(e&&(i=e(i),o=e(o)),o!==i)return!1}return!0}(r._results,i,e))&&(r._results=i,r.length=i.length,r.last=i[this.length-1],r.first=i[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let Xe=(()=>{class t{}return t.__NG_ELEMENT_ID__=wA,t})();const DA=Xe,CA=class extends DA{constructor(n,e,r){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=r}createEmbeddedView(n,e){const r=this._declarationTContainer.tViews,i=ul(this._declarationLView,r,n,16,null,r.declTNode,null,null,null,null,e||null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(r)),cl(r,i,n),new vs(i)}};function wA(){return Tl(xt(),J())}function Tl(t,n){return 4&t.type?new CA(n,t,to(t,n)):null}let pn=(()=>{class t{}return t.__NG_ELEMENT_ID__=EA,t})();function EA(){return $v(xt(),J())}const MA=pn,Vv=class extends MA{constructor(n,e,r){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=r}get element(){return to(this._hostTNode,this._hostLView)}get injector(){return new Wi(this._hostTNode,this._hostLView)}get parentInjector(){const n=$a(this._hostTNode,this._hostLView);if(Og(n)){const e=Gi(n,this._hostLView),r=Ui(n);return new Wi(e[1].data[r+8],e)}return new Wi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=Bv(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,e,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const s=n.createEmbeddedView(e||{},o);return this.insert(s,i),s}createComponent(n,e,r,i,o){const s=n&&!function ts(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const d=e||{};a=d.index,r=d.injector,i=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?n:new bs(ze(n)),u=r||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?u:this.parentInjector).get(Wr,null);h&&(o=h)}const c=l.create(u,i,void 0,o);return this.insert(c.hostView,a),c}insert(n,e){const r=n._lView,i=r[1];if(function Jw(t){return Kn(t[3])}(r)){const c=this.indexOf(n);if(-1!==c)this.detach(c);else{const d=r[3],h=new Vv(d,d[6],d[3]);h.detach(h.indexOf(n))}}const o=this._adjustIndex(e),s=this._lContainer;!function ET(t,n,e,r){const i=10+r,o=e.length;r>0&&(e[i-1][4]=n),r<o-10?(n[4]=e[i],Gg(e,10+r,n)):(e.push(n),n[4]=null),n[3]=e;const s=n[17];null!==s&&e!==s&&function MT(t,n){const e=t[9];n[16]!==n[3][3][16]&&(t[2]=!0),null===e?t[9]=[n]:e.push(n)}(s,n);const a=n[19];null!==a&&a.insertView(t),n[2]|=64}(i,r,s,o);const a=Td(o,s),l=r[_],u=nl(l,s[7]);return null!==u&&function DT(t,n,e,r,i,o){r[0]=i,r[6]=n,_s(t,r,e,1,i,o)}(i,s[6],l,r,u,a),n.attachToViewContainerRef(),Gg(bh(s),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=Bv(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),r=wd(this._lContainer,e);r&&(Ua(bh(this._lContainer),e),Um(r[1],r))}detach(n){const e=this._adjustIndex(n,-1),r=wd(this._lContainer,e);return r&&null!=Ua(bh(this._lContainer),e)?new vs(r):null}_adjustIndex(n,e=0){return n??this.length+e}};function Bv(t){return t[8]}function bh(t){return t[8]||(t[8]=[])}function $v(t,n){let e;const r=n[t.index];if(Kn(r))e=r;else{let i;if(8&t.type)i=Et(r);else{const o=n[_];i=o.createComment("");const s=Vn(t,n);mi(o,nl(o,s),i,function IT(t,n){return t.nextSibling(n)}(o,s),!1)}n[t.index]=e=j_(r,n,i,t),dl(n,e)}return new Vv(e,t,n)}class Dh{constructor(n){this.queryList=n,this.matches=null}clone(){return new Dh(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ch{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const r=null!==n.contentQueries?n.contentQueries[0]:e.length,i=[];for(let o=0;o<r;o++){const s=e.getByIndex(o);i.push(this.queries[s.indexInDeclarationView].clone())}return new Ch(i)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)null!==Wv(n,e).matches&&this.queries[e].setDirty()}}class Hv{constructor(n,e,r=null){this.predicate=n,this.flags=e,this.read=r}}class wh{constructor(n=[]){this.queries=n}elementStart(n,e){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(n,e)}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(n)}embeddedTView(n){let e=null;for(let r=0;r<this.length;r++){const i=null!==e?e.length:0,o=this.getByIndex(r).embeddedTView(n,i);o&&(o.indexInDeclarationView=r,null!==e?e.push(o):e=[o])}return null!==e?new wh(e):null}template(n,e){for(let r=0;r<this.queries.length;r++)this.queries[r].template(n,e)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class Eh{constructor(n,e=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,e){this.elementStart(n,e)}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new Eh(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let r=n.parent;for(;null!==r&&8&r.type&&r.index!==e;)r=r.parent;return e===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(n,e){const r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){const o=r[i];this.matchTNodeWithReadOption(n,e,SA(e,o)),this.matchTNodeWithReadOption(n,e,ja(e,n,o,!1,!1))}else r===Xe?4&e.type&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,ja(e,n,r,!1,!1))}matchTNodeWithReadOption(n,e,r){if(null!==r){const i=this.metadata.read;if(null!==i)if(i===Re||i===pn||i===Xe&&4&e.type)this.addMatch(e.index,-2);else{const o=ja(e,n,i,!1,!1);null!==o&&this.addMatch(e.index,o)}else this.addMatch(e.index,r)}}addMatch(n,e){null===this.matches?this.matches=[n,e]:this.matches.push(n,e)}}function SA(t,n){const e=t.localNames;if(null!==e)for(let r=0;r<e.length;r+=2)if(e[r]===n)return e[r+1];return null}function AA(t,n,e,r){return-1===e?function IA(t,n){return 11&t.type?to(t,n):4&t.type?Tl(t,n):null}(n,t):-2===e?function xA(t,n,e){return e===Re?to(n,t):e===Xe?Tl(n,t):e===pn?$v(n,t):void 0}(t,n,r):qo(t,t[1],e,n)}function jv(t,n,e,r){const i=n[19].queries[r];if(null===i.matches){const o=t.data,s=e.matches,a=[];for(let l=0;l<s.length;l+=2){const u=s[l];a.push(u<0?null:AA(n,o[u],s[l+1],e.metadata.read))}i.matches=a}return i.matches}function Mh(t,n,e,r){const i=t.queries.getByIndex(e),o=i.matches;if(null!==o){const s=jv(t,n,i,e);for(let a=0;a<o.length;a+=2){const l=o[a];if(l>0)r.push(s[a/2]);else{const u=o[a+1],c=n[-l];for(let d=10;d<c.length;d++){const h=c[d];h[17]===h[3]&&Mh(h[1],h,u,r)}if(null!==c[9]){const d=c[9];for(let h=0;h<d.length;h++){const p=d[h];Mh(p[1],p,u,r)}}}}}return r}function Qe(t){const n=J(),e=Ve(),r=wg();xc(r+1);const i=Wv(e,r);if(t.dirty&&mg(n)===(2==(2&i.metadata.flags))){if(null===i.matches)t.reset([]);else{const o=i.crossesNgTemplate?Mh(e,n,r,[]):jv(e,n,i,r);t.reset(o,BM),t.notifyOnChanges()}return!0}return!1}function wi(t,n,e){const r=Ve();r.firstCreatePass&&(Gv(r,new Hv(t,n,e),-1),2==(2&n)&&(r.staticViewQueries=!0)),Uv(r,J(),n)}function dt(t,n,e,r){const i=Ve();if(i.firstCreatePass){const o=xt();Gv(i,new Hv(n,e,r),o.index),function OA(t,n){const e=t.contentQueries||(t.contentQueries=[]);n!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,n)}(i,t),2==(2&e)&&(i.staticContentQueries=!0)}Uv(i,J(),e)}function Ze(){return function RA(t,n){return t[19].queries[n].queryList}(J(),wg())}function Uv(t,n,e){const r=new vh(4==(4&e));O_(t,n,r,r.destroy),null===n[19]&&(n[19]=new Ch),n[19].queries.push(new Dh(r))}function Gv(t,n,e){null===t.queries&&(t.queries=new wh),t.queries.track(new Eh(n,e))}function Wv(t,n){return t.queries.getByIndex(n)}function jt(t,n){return Tl(t,n)}function Sl(...t){}const Il=new fe("Application Initializer");let Al=(()=>{class t{constructor(e){this.appInits=e,this.resolve=Sl,this.reject=Sl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const e=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i<this.appInits.length;i++){const o=this.appInits[i]();if(ws(o))e.push(o);else if(sh(o)){const s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{r()}).catch(i=>{this.reject(i)}),0===e.length&&r(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(G(Il,8))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Ps=new fe("AppId",{providedIn:"root",factory:function d0(){return`${Ah()}${Ah()}${Ah()}`}});function Ah(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const h0=new fe("Platform Initializer"),xl=new fe("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),f0=new fe("appBootstrapListener");let qA=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const On=new fe("LocaleId",{providedIn:"root",factory:()=>Dt(On,pe.Optional|pe.SkipSelf)||function ex(){return typeof $localize<"u"&&$localize.locale||Do}()});class nx{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let xh=(()=>{class t{compileModuleSync(e){return new ph(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const r=this.compileModuleSync(e),o=wr(ln(e).declarations).reduce((s,a)=>{const l=ze(a);return l&&s.push(new bs(l)),s},[]);return new nx(r,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const ox=(()=>Promise.resolve(0))();function Rh(t){typeof Zone>"u"?ox.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Oe{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new se(!1),this.onMicrotaskEmpty=new se(!1),this.onStable=new se(!1),this.onError=new se(!1),typeof Zone>"u")throw new q(908,!1);Zone.assertZonePatched();const i=this;if(i._nesting=0,i._outer=i._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const o=Zone.AsyncStackTaggingZoneSpec;i._inner=i._inner.fork(new o("Angular"))}Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&e,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function sx(){let t=Ke.requestAnimationFrame,n=Ke.cancelAnimationFrame;if(typeof Zone<"u"&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function ux(t){const n=()=>{!function lx(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Ke,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Fh(t),t.isCheckStableRunning=!0,Oh(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Fh(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,r,i,o,s,a)=>{try{return m0(t),e.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&n(),_0(t)}},onInvoke:(e,r,i,o,s,a,l)=>{try{return m0(t),e.invoke(i,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),_0(t)}},onHasTask:(e,r,i,o)=>{e.hasTask(i,o),r===i&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,Fh(t),Oh(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,r,i,o)=>(e.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Oe.isInAngularZone())throw new q(909,!1)}static assertNotInAngularZone(){if(Oe.isInAngularZone())throw new q(909,!1)}run(n,e,r){return this._inner.run(n,e,r)}runTask(n,e,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,n,ax,Sl,Sl);try{return o.runTask(s,e,r)}finally{o.cancelTask(s)}}runGuarded(n,e,r){return this._inner.runGuarded(n,e,r)}runOutsideAngular(n){return this._outer.run(n)}}const ax={};function Oh(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Fh(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function m0(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function _0(t){t._nesting--,Oh(t)}class cx{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new se,this.onMicrotaskEmpty=new se,this.onStable=new se,this.onError=new se}run(n,e,r){return n.apply(e,r)}runGuarded(n,e,r){return n.apply(e,r)}runOutsideAngular(n){return n()}runTask(n,e,r,i){return n.apply(e,r)}}const y0=new fe(""),Rl=new fe("");let Lh,Ph=(()=>{class t{constructor(e,r,i){this._ngZone=e,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Lh||(function dx(t){Lh=t}(i),i.addToWindow(r)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Oe.assertNotInAngularZone(),Rh(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Rh(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(e)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:i})}whenStable(e,r,i){if(i&&!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(e,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,r,i){return[]}}return t.\u0275fac=function(e){return new(e||t)(G(Oe),G(kh),G(Rl))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})(),kh=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,r){this._applications.set(e,r)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,r=!0){return Lh?.findTestabilityInTree(this,e,r)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})(),Yr=null;const v0=new fe("AllowMultipleToken"),Vh=new fe("PlatformDestroyListeners");class b0{constructor(n,e){this.name=n,this.token=e}}function C0(t,n,e=[]){const r=`Platform: ${n}`,i=new fe(r);return(o=[])=>{let s=Bh();if(!s||s.injector.get(v0,!1)){const a=[...e,...o,{provide:i,useValue:!0}];t?t(a):function px(t){if(Yr&&!Yr.get(v0,!1))throw new q(400,!1);Yr=t;const n=t.get(E0);(function D0(t){const n=t.get(h0,null);n&&n.forEach(e=>e())})(t)}(function w0(t=[],n){return Ot.create({name:n,providers:[{provide:rd,useValue:"platform"},{provide:Vh,useValue:new Set([()=>Yr=null])},...t]})}(a,r))}return function mx(t){const n=Bh();if(!n)throw new q(401,!1);return n}()}}function Bh(){return Yr?.get(E0)??null}let E0=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,r){const i=function _x(t,n){let e;return e="noop"===t?new cx:("zone.js"===t?void 0:t)||new Oe(n),e}(r?.ngZone,function M0(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(r)),o=[{provide:Oe,useValue:i}];return i.run(()=>{const s=Ot.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(no,null);if(!l)throw new q(402,!1);return i.runOutsideAngular(()=>{const u=i.onError.subscribe({next:c=>{l.handleError(c)}});a.onDestroy(()=>{Ol(this._modules,a),u.unsubscribe()})}),function T0(t,n,e){try{const r=e();return ws(r)?r.catch(i=>{throw n.runOutsideAngular(()=>t.handleError(i)),i}):r}catch(r){throw n.runOutsideAngular(()=>t.handleError(r)),r}}(l,i,()=>{const u=a.injector.get(Al);return u.runInitializers(),u.donePromise.then(()=>(function tv(t){sn(t,"Expected localeId to be defined"),"string"==typeof t&&(ev=t.toLowerCase().replace(/_/g,"-"))}(a.injector.get(On,Do)||Do),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,r=[]){const i=N0({},r);return function hx(t,n,e){const r=new ph(e);return Promise.resolve(r)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(e){const r=e.injector.get(Nr);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!e.instance.ngDoBootstrap)throw new q(403,!1);e.instance.ngDoBootstrap(r)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new q(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const e=this._injector.get(Vh,null);e&&(e.forEach(r=>r()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(G(Ot))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function N0(t,n){return Array.isArray(n)?n.reduce(N0,t):{...t,...n}}let Nr=(()=>{class t{constructor(e,r,i){this._zone=e,this._injector=r,this._exceptionHandler=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new V.y(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new V.y(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{Oe.assertNotInAngularZone(),Rh(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{Oe.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),u.unsubscribe()}});this.isStable=(0,F.T)(o,s.pipe(E()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,r){const i=e instanceof Em;if(!this._injector.get(Al).done)throw!i&&function Mo(t){const n=ze(t)||Bt(t)||$t(t);return null!==n&&n.standalone}(e),new q(405,false);let s;s=i?e:this._injector.get(Yn).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function fx(t){return t.isBoundToModule}(s)?void 0:this._injector.get(Ci),u=s.create(Ot.NULL,[],r||s.selector,a),c=u.location.nativeElement,d=u.injector.get(y0,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),Ol(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new q(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const r=e;this._views.push(r),r.attachToAppRef(this)}detachView(e){const r=e;Ol(this._views,r),r.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(f0,[]).concat(this._bootstrapListeners).forEach(i=>i(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Ol(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new q(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)(G(Oe),G(Wr),G(no))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Ol(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let I0=!0,Tt=(()=>{class t{}return t.__NG_ELEMENT_ID__=bx,t})();function bx(t){return function Dx(t,n,e){if(Ia(t)&&!e){const r=Sn(t.index,n);return new vs(r,r)}return 47&t.type?new vs(n[16],n):null}(xt(),J(),16==(16&t))}class F0{constructor(){}supports(n){return Ds(n)}create(n){return new Nx(n)}}const Tx=(t,n)=>n;class Nx{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||Tx}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,r=this._removalsHead,i=0,o=null;for(;e||r;){const s=!r||e&&e.currentIndex<k0(r,i,o)?e:r,a=k0(s,i,o),l=s.currentIndex;if(s===r)i--,r=r._nextRemoved;else if(e=e._next,null==s.previousIndex)i++;else{o||(o=[]);const u=a-i,c=l-i;if(u!=c){for(let h=0;h<u;h++){const p=h<o.length?o[h]:o[h]=0,b=p+h;c<=b&&b<u&&(o[h]=p+1)}o[s.previousIndex]=c-u}}a!==l&&n(s,a,l)}}forEachPreviousItem(n){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachMovedItem(n){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)n(e)}diff(n){if(null==n&&(n=[]),!Ds(n))throw new q(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let i,o,s,e=this._itHead,r=!1;if(Array.isArray(n)){this.length=n.length;for(let a=0;a<this.length;a++)o=n[a],s=this._trackByFn(a,o),null!==e&&Object.is(e.trackById,s)?(r&&(e=this._verifyReinsertion(e,o,s,a)),Object.is(e.item,o)||this._addIdentityChange(e,o)):(e=this._mismatch(e,o,s,a),r=!0),e=e._next}else i=0,function aS(t,n){if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{const e=t[_i()]();let r;for(;!(r=e.next()).done;)n(r.value)}}(n,a=>{s=this._trackByFn(i,a),null!==e&&Object.is(e.trackById,s)?(r&&(e=this._verifyReinsertion(e,a,s,i)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,i),r=!0),e=e._next,i++}),this.length=i;return this._truncate(e),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,e,r,i){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,i)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,i)):n=this._addAfter(new Sx(e,r),o,i),n}_verifyReinsertion(n,e,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?n=this._reinsertAfter(o,n._prev,i):n.currentIndex!=i&&(n.currentIndex=i,this._addToMoves(n,i)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}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,e,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const i=n._prevRemoved,o=n._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(n,e,r),this._addToMoves(n,r),n}_moveAfter(n,e,r){return this._unlink(n),this._insertAfter(n,e,r),this._addToMoves(n,r),n}_addAfter(n,e,r){return this._insertAfter(n,e,r),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,r){const i=null===e?this._itHead:e._next;return n._next=i,n._prev=e,null===i?this._itTail=n:i._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new P0),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 e=n._prev,r=n._next;return null===e?this._itHead=r:e._next=r,null===r?this._itTail=e:r._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new P0),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,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class Sx{constructor(n,e){this.item=n,this.trackById=e,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 Ix{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,e){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===e||e<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){const e=n._prevDup,r=n._nextDup;return null===e?this._head=r:e._nextDup=r,null===r?this._tail=e:r._prevDup=e,null===this._head}}class P0{constructor(){this.map=new Map}put(n){const e=n.trackById;let r=this.map.get(e);r||(r=new Ix,this.map.set(e,r)),r.add(n)}get(n,e){const i=this.map.get(n);return i?i.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function k0(t,n,e){const r=t.previousIndex;if(null===r)return r;let i=0;return e&&r<e.length&&(i=e[r]),r+n+i}class L0{constructor(){}supports(n){return n instanceof Map||ih(n)}create(){return new Ax}}class Ax{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(n){let e;for(e=this._mapHead;null!==e;e=e._next)n(e)}forEachPreviousItem(n){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)n(e)}forEachChangedItem(n){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}diff(n){if(n){if(!(n instanceof Map||ih(n)))throw new q(900,!1)}else n=new Map;return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(n,(r,i)=>{if(e&&e.key===i)this._maybeAddToChanges(e,r),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(i,r);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let r=e;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const r=n._prev;return e._next=n,e._prev=r,n._prev=e,r&&(r._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const i=this._records.get(n);this._maybeAddToChanges(i,e);const o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}const r=new xx(n);return this._records.set(n,r),r.currentValue=e,this._addToAdditions(r),r}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(r=>e(n[r],r))}}class xx{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function V0(){return new kl([new F0])}let kl=(()=>{class t{constructor(e){this.factories=e}static create(e,r){if(null!=r){const i=r.factories.slice();e=e.concat(i)}return new t(e)}static extend(e){return{provide:t,useFactory:r=>t.create(e,r||V0()),deps:[[t,new as,new ss]]}}find(e){const r=this.factories.find(i=>i.supports(e));if(null!=r)return r;throw new q(901,!1)}}return t.\u0275prov=Z({token:t,providedIn:"root",factory:V0}),t})();function B0(){return new ks([new L0])}let ks=(()=>{class t{constructor(e){this.factories=e}static create(e,r){if(r){const i=r.factories.slice();e=e.concat(i)}return new t(e)}static extend(e){return{provide:t,useFactory:r=>t.create(e,r||B0()),deps:[[t,new as,new ss]]}}find(e){const r=this.factories.find(i=>i.supports(e));if(r)return r;throw new q(901,!1)}}return t.\u0275prov=Z({token:t,providedIn:"root",factory:B0}),t})();const Fx=C0(null,"core",[]);let Px=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(G(Nr))},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({}),t})();let Ll=null;function pr(){return Ll}const qe=new fe("DocumentToken");let Gh=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(){return function Bx(){return G($0)}()},providedIn:"platform"}),t})();const $x=new fe("Location Initialized");let $0=(()=>{class t extends Gh{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return pr().getBaseHref(this._doc)}onPopState(e){const r=pr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",e,!1),()=>r.removeEventListener("popstate",e)}onHashChange(e){const r=pr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",e,!1),()=>r.removeEventListener("hashchange",e)}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(e){this.location.pathname=e}pushState(e,r,i){H0()?this._history.pushState(e,r,i):this.location.hash=i}replaceState(e,r,i){H0()?this._history.replaceState(e,r,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(G(qe))},t.\u0275prov=Z({token:t,factory:function(){return function Hx(){return new $0(G(qe))}()},providedIn:"platform"}),t})();function H0(){return!!window.history.pushState}function Wh(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function j0(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Ir(t){return t&&"?"!==t[0]?"?"+t:t}let Mi=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(){return Dt(G0)},providedIn:"root"}),t})();const U0=new fe("appBaseHref");let G0=(()=>{class t extends Mi{constructor(e,r){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??Dt(qe).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Wh(this._baseHref,e)}path(e=!1){const r=this._platformLocation.pathname+Ir(this._platformLocation.search),i=this._platformLocation.hash;return i&&e?`${r}${i}`:r}pushState(e,r,i,o){const s=this.prepareExternalUrl(i+Ir(o));this._platformLocation.pushState(e,r,s)}replaceState(e,r,i,o){const s=this.prepareExternalUrl(i+Ir(o));this._platformLocation.replaceState(e,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(G(Gh),G(U0,8))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),jx=(()=>{class t extends Mi{constructor(e,r){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(e){const r=Wh(this._baseHref,e);return r.length>0?"#"+r:r}pushState(e,r,i,o){let s=this.prepareExternalUrl(i+Ir(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,r,s)}replaceState(e,r,i,o){let s=this.prepareExternalUrl(i+Ir(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(G(Gh),G(U0,8))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})(),zh=(()=>{class t{constructor(e){this._subject=new se,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const r=this._locationStrategy.getBaseHref();this._baseHref=j0(W0(r)),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,r=""){return this.path()==this.normalize(e+Ir(r))}normalize(e){return t.stripTrailingSlash(function Gx(t,n){return t&&n.startsWith(t)?n.substring(t.length):n}(this._baseHref,W0(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,r="",i=null){this._locationStrategy.pushState(i,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ir(r)),i)}replaceState(e,r="",i=null){this._locationStrategy.replaceState(i,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ir(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",r){this._urlChangeListeners.forEach(i=>i(e,r))}subscribe(e,r,i){return this._subject.subscribe({next:e,error:r,complete:i})}}return t.normalizeQueryParams=Ir,t.joinWithSlash=Wh,t.stripTrailingSlash=j0,t.\u0275fac=function(e){return new(e||t)(G(Mi))},t.\u0275prov=Z({token:t,factory:function(){return function Ux(){return new zh(G(Mi))}()},providedIn:"root"}),t})();function W0(t){return t.replace(/\/index.html$/,"")}function rb(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const r=e.indexOf("="),[i,o]=-1==r?[e,""]:[e.slice(0,r),e.slice(r+1)];if(i.trim()===n)return decodeURIComponent(o)}return null}let ib=(()=>{class t{constructor(e,r,i,o){this._iterableDiffers=e,this._keyValueDiffers=r,this._ngEl=i,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Ds(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(r=>this._toggleClass(r.key,r.currentValue)),e.forEachChangedItem(r=>this._toggleClass(r.key,r.currentValue)),e.forEachRemovedItem(r=>{r.previousValue&&this._toggleClass(r.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(r=>{if("string"!=typeof r.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${C(r.item)}`);this._toggleClass(r.item,!0)}),e.forEachRemovedItem(r=>this._toggleClass(r.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(r=>this._toggleClass(r,!0)):Object.keys(e).forEach(r=>this._toggleClass(r,!!e[r])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(r=>this._toggleClass(r,!1)):Object.keys(e).forEach(r=>this._toggleClass(r,!1)))}_toggleClass(e,r){(e=e.trim())&&e.split(/\s+/g).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}}return t.\u0275fac=function(e){return new(e||t)(m(kl),m(ks),m(Re),m(Wt))},t.\u0275dir=ne({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class ER{constructor(n,e,r,i){this.$implicit=n,this.ngForOf=e,this.index=r,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let mn=(()=>{class t{constructor(e,r,i){this._viewContainer=e,this._template=r,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const r=this._viewContainer;e.forEachOperation((i,o,s)=>{if(null==i.previousIndex)r.createEmbeddedView(this._template,new ER(i.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===o?void 0:o);else if(null!==o){const a=r.get(o);r.move(a,s),ab(a,i)}});for(let i=0,o=r.length;i<o;i++){const a=r.get(i).context;a.index=i,a.count=o,a.ngForOf=this._ngForOf}e.forEachIdentityChange(i=>{ab(r.get(i.currentIndex),i)})}static ngTemplateContextGuard(e,r){return!0}}return t.\u0275fac=function(e){return new(e||t)(m(pn),m(Xe),m(kl))},t.\u0275dir=ne({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function ab(t,n){t.context.$implicit=n.item}let _n=(()=>{class t{constructor(e,r){this._viewContainer=e,this._context=new TR,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){lb("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){lb("ngIfElse",e),this._elseTemplateRef=e,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(e,r){return!0}}return t.\u0275fac=function(e){return new(e||t)(m(pn),m(Xe))},t.\u0275dir=ne({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class TR{constructor(){this.$implicit=null,this.ngIf=null}}function lb(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${C(n)}'.`)}let Un=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:i,ngTemplateOutletContext:o,ngTemplateOutletInjector:s}=this;this._viewRef=r.createEmbeddedView(i,o,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(m(pn))},t.\u0275dir=ne({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[it]}),t})(),Fn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({}),t})();let tO=(()=>{class t{}return t.\u0275prov=Z({token:t,providedIn:"root",factory:()=>new nO(G(qe),window)}),t})();class nO{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function rO(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let i=r.currentNode;for(;i;){const o=i.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}i=r.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),r=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=fb(this.window.history)||fb(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function fb(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class pb{}class uf extends class iO extends class Vx{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function Lx(t){Ll||(Ll=t)}(new uf)}onAndCancel(n,e,r){return n.addEventListener(e,r,!1),()=>{n.removeEventListener(e,r,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||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,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function oO(){return Bs=Bs||document.querySelector("base"),Bs?Bs.getAttribute("href"):null}();return null==e?null:function sO(t){Kl=Kl||document.createElement("a"),Kl.setAttribute("href",t);const n=Kl.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){Bs=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return rb(document.cookie,n)}}let Kl,Bs=null;const gb=new fe("TRANSITION_ID"),lO=[{provide:Il,useFactory:function aO(t,n,e){return()=>{e.get(Al).donePromise.then(()=>{const r=pr(),i=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o<i.length;o++)r.remove(i[o])})}},deps:[gb,qe,Ot],multi:!0}];let cO=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();const Jl=new fe("EventManagerPlugins");let Yl=(()=>{class t{constructor(e,r){this._zone=r,this._eventNameToPlugin=new Map,e.forEach(i=>i.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,r,i){return this._findPluginFor(r).addEventListener(e,r,i)}addGlobalEventListener(e,r,i){return this._findPluginFor(r).addGlobalEventListener(e,r,i)}getZone(){return this._zone}_findPluginFor(e){const r=this._eventNameToPlugin.get(e);if(r)return r;const i=this._plugins;for(let o=0;o<i.length;o++){const s=i[o];if(s.supports(e))return this._eventNameToPlugin.set(e,s),s}throw new Error(`No event manager plugin found for event ${e}`)}}return t.\u0275fac=function(e){return new(e||t)(G(Jl),G(Oe))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();class mb{constructor(n){this._doc=n}addGlobalEventListener(n,e,r){const i=pr().getGlobalEventTarget(this._doc,n);if(!i)throw new Error(`Unsupported event target ${i} for event ${e}`);return this.addEventListener(i,e,r)}}let _b=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(e){const r=new Set;e.forEach(i=>{this._stylesSet.has(i)||(this._stylesSet.add(i),r.add(i))}),this.onStylesAdded(r)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})(),$s=(()=>{class t extends _b{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,r,i){e.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,i.push(r.appendChild(s))})}addHost(e){const r=[];this._addStylesToHost(this._stylesSet,e,r),this._hostNodes.set(e,r)}removeHost(e){const r=this._hostNodes.get(e);r&&r.forEach(yb),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((r,i)=>{this._addStylesToHost(e,i,r)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(yb))}}return t.\u0275fac=function(e){return new(e||t)(G(qe))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();function yb(t){pr().remove(t)}const cf={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/"},df=/%COMP%/g;function Ql(t,n,e){for(let r=0;r<n.length;r++){let i=n[r];Array.isArray(i)?Ql(t,i,e):(i=i.replace(df,t),e.push(i))}return e}function Db(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let hf=(()=>{class t{constructor(e,r,i){this.eventManager=e,this.sharedStylesHost=r,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new ff(e)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;switch(r.encapsulation){case Tn.Emulated:{let i=this.rendererByCompId.get(r.id);return i||(i=new mO(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,i)),i.applyToHost(e),i}case 1:case Tn.ShadowDom:return new _O(this.eventManager,this.sharedStylesHost,e,r);default:if(!this.rendererByCompId.has(r.id)){const i=Ql(r.id,r.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(G(Yl),G($s),G(Ps))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();class ff{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(cf[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){(wb(n)?n.content:n).appendChild(e)}insertBefore(n,e,r){n&&(wb(n)?n.content:n).insertBefore(e,r)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let r="string"==typeof n?document.querySelector(n):n;if(!r)throw new Error(`The selector "${n}" did not match any elements`);return e||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,r,i){if(i){e=i+":"+e;const o=cf[i];o?n.setAttributeNS(o,e,r):n.setAttribute(e,r)}else n.setAttribute(e,r)}removeAttribute(n,e,r){if(r){const i=cf[r];i?n.removeAttributeNS(i,e):n.removeAttribute(`${r}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,r,i){i&(En.DashCase|En.Important)?n.style.setProperty(e,r,i&En.Important?"important":""):n.style[e]=r}removeStyle(n,e,r){r&En.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,r){n[e]=r}setValue(n,e){n.nodeValue=e}listen(n,e,r){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,Db(r)):this.eventManager.addEventListener(n,e,Db(r))}}function wb(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class mO extends ff{constructor(n,e,r,i){super(n),this.component=r;const o=Ql(i+"-"+r.id,r.styles,[]);e.addStyles(o),this.contentAttr=function fO(t){return"_ngcontent-%COMP%".replace(df,t)}(i+"-"+r.id),this.hostAttr=function pO(t){return"_nghost-%COMP%".replace(df,t)}(i+"-"+r.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,e){const r=super.createElement(n,e);return super.setAttribute(r,this.contentAttr,""),r}}class _O extends ff{constructor(n,e,r,i){super(n),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Ql(i.id,i.styles,[]);for(let s=0;s<o.length;s++){const a=document.createElement("style");a.textContent=o[s],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,r){return super.insertBefore(this.nodeOrShadowRoot(n),e,r)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}}let yO=(()=>{class t extends mb{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,i){return e.addEventListener(r,i,!1),()=>this.removeEventListener(e,r,i)}removeEventListener(e,r,i){return e.removeEventListener(r,i)}}return t.\u0275fac=function(e){return new(e||t)(G(qe))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();const Eb=["alt","control","meta","shift"],bO={"\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"},Mb={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},DO={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let CO=(()=>{class t extends mb{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,r,i){const o=t.parseEventName(r),s=t.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>pr().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const r=e.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=t._normalizeKey(r.pop());let s="";if(Eb.forEach(l=>{const u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=o,0!=r.length||0===o.length)return null;const a={};return a.domEventName=i,a.fullKey=s,a}static getEventFullKey(e){let r="",i=function wO(t){let n=t.key;if(null==n){if(n=t.keyIdentifier,null==n)return"Unidentified";n.startsWith("U+")&&(n=String.fromCharCode(parseInt(n.substring(2),16)),3===t.location&&Mb.hasOwnProperty(n)&&(n=Mb[n]))}return bO[n]||n}(e);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),Eb.forEach(o=>{o!=i&&(0,DO[o])(e)&&(r+=o+".")}),r+=i,r}static eventCallback(e,r,i){return o=>{t.getEventFullKey(o)===e&&i.runGuarded(()=>r(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(G(qe))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();const NO=C0(Fx,"browser",[{provide:xl,useValue:"browser"},{provide:h0,useValue:function EO(){uf.makeCurrent()},multi:!0},{provide:qe,useFactory:function TO(){return function XE(t){Kc=t}(document),document},deps:[]}]),Nb=new fe(""),Sb=[{provide:Rl,useClass:class uO{addToWindow(n){Ke.getAngularTestability=(r,i=!0)=>{const o=n.findTestabilityInTree(r,i);if(null==o)throw new Error("Could not find testability for element.");return o},Ke.getAllAngularTestabilities=()=>n.getAllTestabilities(),Ke.getAllAngularRootElements=()=>n.getAllRootElements(),Ke.frameworkStabilizers||(Ke.frameworkStabilizers=[]),Ke.frameworkStabilizers.push(r=>{const i=Ke.getAllAngularTestabilities();let o=i.length,s=!1;const a=function(l){s=s||l,o--,0==o&&r(s)};i.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,r){return null==e?null:n.getTestability(e)??(r?pr().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:y0,useClass:Ph,deps:[Oe,kh,Rl]},{provide:Ph,useClass:Ph,deps:[Oe,kh,Rl]}],Ib=[{provide:rd,useValue:"root"},{provide:no,useFactory:function MO(){return new no},deps:[]},{provide:Jl,useClass:yO,multi:!0,deps:[qe,Oe,xl]},{provide:Jl,useClass:CO,multi:!0,deps:[qe]},{provide:hf,useClass:hf,deps:[Yl,$s,Ps]},{provide:tl,useExisting:hf},{provide:_b,useExisting:$s},{provide:$s,useClass:$s,deps:[qe]},{provide:Yl,useClass:Yl,deps:[Jl,Oe]},{provide:pb,useClass:cO,deps:[]},[]];let SO=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:Ps,useValue:e.appId},{provide:gb,useExisting:Ps},lO]}}}return t.\u0275fac=function(e){return new(e||t)(G(Nb,12))},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({providers:[...Ib,...Sb],imports:[Fn,Px]}),t})(),Ab=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(G(qe))},t.\u0275prov=Z({token:t,factory:function(e){let r=null;return r=e?new e:function AO(){return new Ab(G(qe))}(),r},providedIn:"root"}),t})();typeof window<"u"&&window;var en=f(3527),VO=f(567),ye=f(4850);let Ob=(()=>{class t{constructor(e,r){this._renderer=e,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(e,r){this._renderer.setProperty(this._elementRef.nativeElement,e,r)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(m(Wt),m(Re))},t.\u0275dir=ne({type:t}),t})(),Ti=(()=>{class t extends Ob{}return t.\u0275fac=function(){let n;return function(r){return(n||(n=st(t)))(r||t)}}(),t.\u0275dir=ne({type:t,features:[Ye]}),t})();const Kt=new fe("NgValueAccessor"),$O={provide:Kt,useExisting:X(()=>No),multi:!0},jO=new fe("CompositionEventMode");let No=(()=>{class t extends Ob{constructor(e,r,i){super(e,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function HO(){const t=pr()?pr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(m(Wt),m(Re),m(jO,8))},t.\u0275dir=ne({type:t,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(e,r){1&e&&ue("input",function(o){return r._handleInput(o.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(o){return r._compositionEnd(o.target.value)})},features:[je([$O]),Ye]}),t})();function Zr(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}const Jt=new fe("NgValidators"),Xr=new fe("NgAsyncValidators");function Zl(t){return null}function Gb(t){return null!=t}function Wb(t){return ws(t)?(0,en.D)(t):t}function zb(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function Kb(t,n){return n.map(e=>e(t))}function Jb(t){return t.map(n=>function WO(t){return!t.validate}(n)?n:e=>n.validate(e))}function mf(t){return null!=t?function Yb(t){if(!t)return null;const n=t.filter(Gb);return 0==n.length?null:function(e){return zb(Kb(e,n))}}(Jb(t)):null}function _f(t){return null!=t?function Qb(t){if(!t)return null;const n=t.filter(Gb);return 0==n.length?null:function(e){const r=Kb(e,n).map(Wb);return(0,VO.D)(r).pipe((0,ye.U)(zb))}}(Jb(t)):null}function Zb(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function Xb(t){return t._rawValidators}function qb(t){return t._rawAsyncValidators}function yf(t){return t?Array.isArray(t)?t:[t]:[]}function Xl(t,n){return Array.isArray(t)?t.includes(n):t===n}function e1(t,n){const e=yf(n);return yf(t).forEach(i=>{Xl(e,i)||e.push(i)}),e}function t1(t,n){return yf(n).filter(e=>!Xl(t,e))}class n1{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=mf(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=_f(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class yn extends n1{get formDirective(){return null}get path(){return null}}class qr extends n1{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class r1{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 ql=(()=>{class t extends r1{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(m(qr,2))},t.\u0275dir=ne({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,r){2&e&&De("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[Ye]}),t})(),vf=(()=>{class t extends r1{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(m(yn,10))},t.\u0275dir=ne({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,r){2&e&&De("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[Ye]}),t})();const Hs="VALID",tu="INVALID",So="PENDING",js="DISABLED";function wf(t){return(nu(t)?t.validators:t)||null}function o1(t){return Array.isArray(t)?mf(t):t||null}function Ef(t,n){return(nu(n)?n.asyncValidators:t)||null}function s1(t){return Array.isArray(t)?_f(t):t||null}function nu(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function a1(t,n,e){const r=t.controls;if(!(n?Object.keys(r):r).length)throw new q(1e3,"");if(!r[e])throw new q(1001,"")}function l1(t,n,e){t._forEachChild((r,i)=>{if(void 0===e[i])throw new q(1002,"")})}class ru{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=n,this._rawAsyncValidators=e,this._composedValidatorFn=o1(this._rawValidators),this._composedAsyncValidatorFn=s1(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Hs}get invalid(){return this.status===tu}get pending(){return this.status==So}get disabled(){return this.status===js}get enabled(){return this.status!==js}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._rawValidators=n,this._composedValidatorFn=o1(n)}setAsyncValidators(n){this._rawAsyncValidators=n,this._composedAsyncValidatorFn=s1(n)}addValidators(n){this.setValidators(e1(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(e1(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(t1(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(t1(n,this._rawAsyncValidators))}hasValidator(n){return Xl(this._rawValidators,n)}hasAsyncValidator(n){return Xl(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(e=>{e.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(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=So,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=js,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:e}),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Hs,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),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===Hs||this.status===So)&&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(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?js:Hs}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=So,this._hasOwnPendingAsyncValidator=!0;const e=Wb(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((r,i)=>r&&r._find(i),this)}getError(n,e){const r=e?this.get(e):this;return r&&r.errors?r.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}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 se,this.statusChanges=new se}_calculateStatus(){return this._allControlsDisabled()?js:this.errors?tu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(So)?So:this._anyControlsHaveStatus(tu)?tu:Hs}_anyControlsHaveStatus(n){return this._anyControls(e=>e.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){nu(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}}class iu extends ru{constructor(n,e,r){super(wf(e),Ef(r,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,r={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){l1(this,0,n),Object.keys(n).forEach(r=>{a1(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(r=>{const i=this.controls[r];i&&i.patchValue(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((r,i)=>{r.reset(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,r)=>(n[r]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,r)=>!!r._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const r=this.controls[e];r&&n(r,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,r]of Object.entries(this.controls))if(this.contains(e)&&n(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,r,i)=>((r.enabled||this.disabled)&&(e[i]=r.value),e))}_reduceChildren(n,e){let r=n;return this._forEachChild((i,o)=>{r=e(r,i,o)}),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}}function ou(t,n){return[...n.path,t]}function Us(t,n){Mf(t,n),n.valueAccessor.writeValue(t.value),t.disabled&&n.valueAccessor.setDisabledState?.(!0),function eF(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&u1(t,n)})}(t,n),function nF(t,n){const e=(r,i)=>{n.valueAccessor.writeValue(r),i&&n.viewToModelUpdate(r)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function tF(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&u1(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function qO(t,n){if(n.valueAccessor.setDisabledState){const e=r=>{n.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function su(t,n,e=!0){const r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),lu(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function au(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function Mf(t,n){const e=Xb(t);null!==n.validator?t.setValidators(Zb(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const r=qb(t);null!==n.asyncValidator?t.setAsyncValidators(Zb(r,n.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]);const i=()=>t.updateValueAndValidity();au(n._rawValidators,i),au(n._rawAsyncValidators,i)}function lu(t,n){let e=!1;if(null!==t){if(null!==n.validator){const i=Xb(t);if(Array.isArray(i)&&i.length>0){const o=i.filter(s=>s!==n.validator);o.length!==i.length&&(e=!0,t.setValidators(o))}}if(null!==n.asyncValidator){const i=qb(t);if(Array.isArray(i)&&i.length>0){const o=i.filter(s=>s!==n.asyncValidator);o.length!==i.length&&(e=!0,t.setAsyncValidators(o))}}}const r=()=>{};return au(n._rawValidators,r),au(n._rawAsyncValidators,r),e}function u1(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Tf(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}function Nf(t,n){if(!n)return null;let e,r,i;return Array.isArray(n),n.forEach(o=>{o.constructor===No?e=o:function oF(t){return Object.getPrototypeOf(t.constructor)===Ti}(o)?r=o:i=o}),i||r||e||null}function f1(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function p1(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const Ws=class extends ru{constructor(n=null,e,r){super(wf(e),Ef(r,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),nu(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=p1(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){f1(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){f1(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){p1(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}},cF={provide:qr,useExisting:X(()=>If)},_1=(()=>Promise.resolve(null))();let If=(()=>{class t extends qr{constructor(e,r,i,o,s){super(),this._changeDetectorRef=s,this.control=new Ws,this._registered=!1,this.update=new se,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=Nf(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const r=e.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Tf(e,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(e){this.viewModel=e,this.update.emit(e)}_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(){Us(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){_1.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const r=e.isDisabled.currentValue,i=0!==r&&function Sr(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}(r);_1.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?ou(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(m(yn,9),m(Jt,10),m(Xr,10),m(Kt,10),m(Tt,8))},t.\u0275dir=ne({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[je([cF]),Ye,it]}),t})(),Af=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ne({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const dF={provide:Kt,useExisting:X(()=>uu),multi:!0};let uu=(()=>{class t extends Ti{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=r=>{e(""==r?null:parseFloat(r))}}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=st(t)))(r||t)}}(),t.\u0275dir=ne({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,r){1&e&&ue("input",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()})},features:[je([dF]),Ye]}),t})(),y1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({}),t})();const pF={provide:Kt,useExisting:X(()=>xf),multi:!0};let xf=(()=>{class t extends Ti{writeValue(e){this.setProperty("value",parseFloat(e))}registerOnChange(e){this.onChange=r=>{e(""==r?null:parseFloat(r))}}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=st(t)))(r||t)}}(),t.\u0275dir=ne({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,r){1&e&&ue("change",function(o){return r.onChange(o.target.value)})("input",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()})},features:[je([pF]),Ye]}),t})();const Rf=new fe("NgModelWithFormControlWarning"),mF={provide:yn,useExisting:X(()=>zs)};let zs=(()=>{class t extends yn{constructor(e,r){super(),this.validators=e,this.asyncValidators=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new se,this._setValidators(e),this._setAsyncValidators(r)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(lu(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const r=this.form.get(e.path);return Us(r,e),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),r}getControl(e){return this.form.get(e.path)}removeControl(e){su(e.control||null,e,!1),function sF(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,r){this.form.get(e.path).setValue(r)}onSubmit(e){return this.submitted=!0,function h1(t,n){t._syncPendingControls(),n.forEach(e=>{const r=e.control;"submit"===r.updateOn&&r._pendingChange&&(e.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const r=e.control,i=this.form.get(e.path);r!==i&&(su(r||null,e),(t=>t instanceof Ws)(i)&&(Us(i,e),e.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const r=this.form.get(e.path);(function c1(t,n){Mf(t,n)})(r,e),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const r=this.form.get(e.path);r&&function rF(t,n){return lu(t,n)}(r,e)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Mf(this.form,this),this._oldForm&&lu(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(m(Jt,10),m(Xr,10))},t.\u0275dir=ne({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,r){1&e&&ue("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[je([mF]),Ye,it]}),t})();const vF={provide:qr,useExisting:X(()=>cu)};let cu=(()=>{class t extends qr{constructor(e,r,i,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new se,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=Nf(0,o)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),Tf(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return ou(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(m(yn,13),m(Jt,10),m(Xr,10),m(Kt,10),m(Rf,8))},t.\u0275dir=ne({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[je([vF]),Ye,it]}),t})();const bF={provide:Kt,useExisting:X(()=>Ks),multi:!0};function C1(t,n){return null==t?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let Ks=(()=>{class t extends Ti{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const i=C1(this._getOptionId(e),e);this.setProperty("value",i)}registerOnChange(e){this.onChange=r=>{this.value=this._getOptionValue(r),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const r of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(r),e))return r;return null}_getOptionValue(e){const r=function DF(t){return t.split(":")[0]}(e);return this._optionMap.has(r)?this._optionMap.get(r):e}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=st(t)))(r||t)}}(),t.\u0275dir=ne({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,r){1&e&&ue("change",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[je([bF]),Ye]}),t})(),du=(()=>{class t{constructor(e,r,i){this._element=e,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(C1(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(m(Re),m(Wt),m(Ks,9))},t.\u0275dir=ne({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const CF={provide:Kt,useExisting:X(()=>Pf),multi:!0};function w1(t,n){return null==t?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let Pf=(()=>{class t extends Ti{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let r;if(this.value=e,Array.isArray(e)){const i=e.map(o=>this._getOptionId(o));r=(o,s)=>{o._setSelected(i.indexOf(s.toString())>-1)}}else r=(i,o)=>{i._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(e){this.onChange=r=>{const i=[],o=r.selectedOptions;if(void 0!==o){const s=o;for(let a=0;a<s.length;a++){const u=this._getOptionValue(s[a].value);i.push(u)}}else{const s=r.options;for(let a=0;a<s.length;a++){const l=s[a];if(l.selected){const u=this._getOptionValue(l.value);i.push(u)}}}this.value=i,e(i)}}_registerOption(e){const r=(this._idCounter++).toString();return this._optionMap.set(r,e),r}_getOptionId(e){for(const r of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(r)._value,e))return r;return null}_getOptionValue(e){const r=function wF(t){return t.split(":")[0]}(e);return this._optionMap.has(r)?this._optionMap.get(r)._value:e}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=st(t)))(r||t)}}(),t.\u0275dir=ne({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,r){1&e&&ue("change",function(o){return r.onChange(o.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[je([CF]),Ye]}),t})(),hu=(()=>{class t{constructor(e,r,i){this._element=e,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(w1(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(w1(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(m(Re),m(Wt),m(Pf,9))},t.\u0275dir=ne({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function M1(t){return"number"==typeof t?t:parseFloat(t)}let Ni=(()=>{class t{constructor(){this._validator=Zl}ngOnChanges(e){if(this.inputName in e){const r=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Zl,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ne({type:t,features:[it]}),t})();const EF={provide:Jt,useExisting:X(()=>kf),multi:!0};let kf=(()=>{class t extends Ni{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>M1(e),this.createValidator=e=>function Lb(t){return n=>{if(Zr(n.value)||Zr(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(e)}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=st(t)))(r||t)}}(),t.\u0275dir=ne({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(e,r){2&e&&Be("max",r._enabled?r.max:null)},inputs:{max:"max"},features:[je([EF]),Ye]}),t})();const MF={provide:Jt,useExisting:X(()=>fu),multi:!0};let fu=(()=>{class t extends Ni{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>M1(e),this.createValidator=e=>function kb(t){return n=>{if(Zr(n.value)||Zr(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e<t?{min:{min:t,actual:n.value}}:null}}(e)}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=st(t)))(r||t)}}(),t.\u0275dir=ne({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,r){2&e&&Be("min",r._enabled?r.min:null)},inputs:{min:"min"},features:[je([MF]),Ye]}),t})(),x1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({imports:[y1]}),t})(),R1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({imports:[x1]}),t})(),Vf=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Rf,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({imports:[x1]}),t})();class O1 extends ru{constructor(n,e,r){super(wf(e),Ef(r,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,r={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(n,e={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,r={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),e&&(this.controls.splice(i,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){l1(this,0,n),n.forEach((r,i)=>{a1(this,!1,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((r,i)=>{r.reset(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,r)=>!!r._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,r)=>{n(e,r)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function F1(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let RF=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,r=null){const i=this._reduceControls(e);let o={};return F1(r)?o=r:null!==r&&(o.validators=r.validator,o.asyncValidators=r.asyncValidator),new iu(i,o)}control(e,r,i){let o={};return this.useNonNullable?(F1(r)?o=r:(o.validators=r,o.asyncValidators=i),new Ws(e,{...o,nonNullable:!0})):new Ws(e,r,i)}array(e,r,i){const o=e.map(s=>this._createControl(s));return new O1(o,r,i)}_reduceControls(e){const r={};return Object.keys(e).forEach(i=>{r[i]=this._createControl(e[i])}),r}_createControl(e){return e instanceof Ws||e instanceof ru?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:Vf}),t})(),P1=(()=>{class t extends RF{group(e,r=null){return super.group(e,r)}control(e,r,i){return super.control(e,r,i)}array(e,r,i){return super.array(e,r,i)}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=st(t)))(r||t)}}(),t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:Vf}),t})();var de=f(1086),kt=f(591),pu=f(4450),gu=f(6053),Js=f(1221),k1=f(8514),Bf=f(4843),Ys=f(1737),ei=f(8896),xr=f(1177);function tn(t,n){return"function"==typeof n?e=>e.pipe(tn((r,i)=>(0,en.D)(t(r,i)).pipe((0,ye.U)((o,s)=>n(r,o,i,s))))):e=>e.lift(new OF(t))}class OF{constructor(n){this.project=n}call(n,e){return e.subscribe(new FF(n,this.project))}}class FF extends xr.Ds{constructor(n,e){super(n),this.project=e,this.index=0}_next(n){let e;const r=this.index++;try{e=this.project(n,r)}catch(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(n){const e=this.innerSubscription;e&&e.unsubscribe();const r=new xr.IY(this),i=this.destination;i.add(r),this.innerSubscription=(0,xr.ft)(n,r),this.innerSubscription!==r&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:n}=this;(!n||n.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(n){this.destination.next(n)}}var Pn=f(3489),L1=f(4231);function It(t){return n=>0===t?(0,ei.c)():n.lift(new PF(t))}class PF{constructor(n){if(this.total=n,this.total<0)throw new L1.W}call(n,e){return e.subscribe(new kF(n,this.total))}}class kF extends Pn.L{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){const e=this.total,r=++this.count;r<=e&&(this.destination.next(n),r===e&&(this.destination.complete(),this.unsubscribe()))}}var LF=f(2866);function mu(...t){const n=t[t.length-1];return(0,LF.K)(n)?(t.pop(),e=>(0,Js.z)(t,e,n)):e=>(0,Js.z)(t,e)}var yt=f(2198),vn=f(1709);function Qs(t=null){return n=>n.lift(new VF(t))}class VF{constructor(n){this.defaultValue=n}call(n,e){return e.subscribe(new BF(n,this.defaultValue))}}class BF extends Pn.L{constructor(n,e){super(n),this.defaultValue=e,this.isEmpty=!0}_next(n){this.isEmpty=!1,this.destination.next(n)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function V1(t=jF){return n=>n.lift(new $F(t))}class $F{constructor(n){this.errorFactory=n}call(n,e){return e.subscribe(new HF(n,this.errorFactory))}}class HF extends Pn.L{constructor(n,e){super(n),this.errorFactory=e,this.hasValue=!1}_next(n){this.hasValue=!0,this.destination.next(n)}_complete(){if(this.hasValue)return this.destination.complete();{let n;try{n=this.errorFactory()}catch(e){n=e}this.destination.error(n)}}}function jF(){return new pu.K}var B1=f(5379);function ti(t,n){const e=arguments.length>=2;return r=>r.pipe(t?(0,yt.h)((i,o)=>t(i,o,r)):B1.y,It(1),e?Qs(n):V1(()=>new pu.K))}function ni(t,n){return(0,vn.zg)(t,n,1)}var ri=f(7876),UF=f(7043);function pt(t,n,e){return function(i){return i.lift(new GF(t,n,e))}}class GF{constructor(n,e,r){this.nextOrObserver=n,this.error=e,this.complete=r}call(n,e){return e.subscribe(new WF(n,this.nextOrObserver,this.error,this.complete))}}class WF extends Pn.L{constructor(n,e,r,i){super(n),this._tapNext=ri.Z,this._tapError=ri.Z,this._tapComplete=ri.Z,this._tapError=r||ri.Z,this._tapComplete=i||ri.Z,(0,UF.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||ri.Z,this._tapError=e.error||ri.Z,this._tapComplete=e.complete||ri.Z)}_next(n){try{this._tapNext.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.next(n)}_error(n){try{this._tapError.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.error(n)}_complete(){try{this._tapComplete.call(this._context)}catch(n){return void this.destination.error(n)}return this.destination.complete()}}function ii(t){return function(e){const r=new zF(t),i=e.lift(r);return r.caught=i}}class zF{constructor(n){this.selector=n}call(n,e){return e.subscribe(new KF(n,this.selector,this.caught))}}class KF extends xr.Ds{constructor(n,e,r){super(n),this.selector=e,this.caught=r}error(n){if(!this.isStopped){let e;try{e=this.selector(n,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const r=new xr.IY(this);this.add(r);const i=(0,xr.ft)(e,r);i!==r&&this.add(i)}}}function _u(t,n){let e=!1;return arguments.length>=2&&(e=!0),function(i){return i.lift(new JF(t,n,e))}}class JF{constructor(n,e,r=!1){this.accumulator=n,this.seed=e,this.hasSeed=r}call(n,e){return e.subscribe(new YF(n,this.accumulator,this.seed,this.hasSeed))}}class YF extends Pn.L{constructor(n,e,r,i){super(n),this.accumulator=e,this._seed=r,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(n){this.hasSeed=!0,this._seed=n}_next(n){if(this.hasSeed)return this._tryNext(n);this.seed=n,this.destination.next(n)}_tryNext(n){const e=this.index++;let r;try{r=this.accumulator(this.seed,n,e)}catch(i){this.destination.error(i)}this.seed=r,this.destination.next(r)}}function Zs(t){return function(e){return 0===t?(0,ei.c)():e.lift(new QF(t))}}class QF{constructor(n){if(this.total=n,this.total<0)throw new L1.W}call(n,e){return e.subscribe(new ZF(n,this.total))}}class ZF extends Pn.L{constructor(n,e){super(n),this.total=e,this.ring=new Array,this.count=0}_next(n){const e=this.ring,r=this.total,i=this.count++;e.length<r?e.push(n):e[i%r]=n}_complete(){const n=this.destination;let e=this.count;if(e>0){const r=this.count>=this.total?this.total:this.count,i=this.ring;for(let o=0;o<r;o++){const s=e++%r;n.next(i[s])}}n.complete()}}function $1(t,n){const e=arguments.length>=2;return r=>r.pipe(t?(0,yt.h)((i,o)=>t(i,o,r)):B1.y,Zs(1),e?Qs(n):V1(()=>new pu.K))}class qF{constructor(n,e){this.predicate=n,this.inclusive=e}call(n,e){return e.subscribe(new eP(n,this.predicate,this.inclusive))}}class eP extends Pn.L{constructor(n,e,r){super(n),this.predicate=e,this.inclusive=r,this.index=0}_next(n){const e=this.destination;let r;try{r=this.predicate(n,this.index++)}catch(i){return void e.error(i)}this.nextOrComplete(n,r)}nextOrComplete(n,e){const r=this.destination;Boolean(e)?r.next(n):(this.inclusive&&r.next(n),r.complete())}}class nP{constructor(n){this.value=n}call(n,e){return e.subscribe(new rP(n,this.value))}}class rP extends Pn.L{constructor(n,e){super(n),this.value=e}_next(n){this.destination.next(this.value)}}function $f(t){return n=>n.lift(new iP(t))}class iP{constructor(n){this.callback=n}call(n,e){return e.subscribe(new oP(n,this.callback))}}class oP extends Pn.L{constructor(n,e){super(n),this.add(new A.w(e))}}var yu=f(9146);const Se="primary";class sP{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Io(t){return new sP(t)}function aP(t,n,e){const r=e.path.split("/");if(r.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||r.length<t.length))return null;const i={};for(let o=0;o<r.length;o++){const s=r[o],a=t[o];if(s.startsWith(":"))i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function gr(t,n){const e=t?Object.keys(t):void 0,r=n?Object.keys(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!H1(t[i],n[i]))return!1;return!0}function H1(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;const e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}return t===n}function j1(t){return Array.prototype.concat.apply([],t)}function U1(t){return t.length>0?t[t.length-1]:null}function Yt(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function Rr(t){return sh(t)?t:ws(t)?(0,en.D)(Promise.resolve(t)):(0,de.of)(t)}const cP={exact:function z1(t,n,e){if(!Ii(t.segments,n.segments)||!vu(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children)if(!t.children[r]||!z1(t.children[r],n.children[r],e))return!1;return!0},subset:K1},G1={exact:function dP(t,n){return gr(t,n)},subset:function hP(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>H1(t[e],n[e]))},ignored:()=>!0};function W1(t,n,e){return cP[e.paths](t.root,n.root,e.matrixParams)&&G1[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function K1(t,n,e){return J1(t,n,n.segments,e)}function J1(t,n,e,r){if(t.segments.length>e.length){const i=t.segments.slice(0,e.length);return!(!Ii(i,e)||n.hasChildren()||!vu(i,e,r))}if(t.segments.length===e.length){if(!Ii(t.segments,e)||!vu(t.segments,e,r))return!1;for(const i in n.children)if(!t.children[i]||!K1(t.children[i],n.children[i],r))return!1;return!0}{const i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(Ii(t.segments,i)&&vu(t.segments,i,r)&&t.children[Se])&&J1(t.children[Se],n,o,r)}}function vu(t,n,e){return n.every((r,i)=>G1[e](t[i].parameters,r.parameters))}class Si{constructor(n,e,r){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Io(this.queryParams)),this._queryParamMap}toString(){return gP.serialize(this)}}class Ae{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Yt(e,(r,i)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bu(this)}}class Xs{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Io(this.parameters)),this._parameterMap}toString(){return X1(this)}}function Ii(t,n){return t.length===n.length&&t.every((e,r)=>e.path===n[r].path)}let Y1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(){return new jf},providedIn:"root"}),t})();class jf{parse(n){const e=new EP(n);return new Si(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${qs(n.root,!0)}`,r=function yP(t){const n=Object.keys(t).map(e=>{const r=t[e];return Array.isArray(r)?r.map(i=>`${Du(e)}=${Du(i)}`).join("&"):`${Du(e)}=${Du(r)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${r}${"string"==typeof n.fragment?`#${function mP(t){return encodeURI(t)}(n.fragment)}`:""}`}}const gP=new jf;function bu(t){return t.segments.map(n=>X1(n)).join("/")}function qs(t,n){if(!t.hasChildren())return bu(t);if(n){const e=t.children[Se]?qs(t.children[Se],!1):"",r=[];return Yt(t.children,(i,o)=>{o!==Se&&r.push(`${o}:${qs(i,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}{const e=function pP(t,n){let e=[];return Yt(t.children,(r,i)=>{i===Se&&(e=e.concat(n(r,i)))}),Yt(t.children,(r,i)=>{i!==Se&&(e=e.concat(n(r,i)))}),e}(t,(r,i)=>i===Se?[qs(t.children[Se],!1)]:[`${i}:${qs(r,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Se]?`${bu(t)}/${e[0]}`:`${bu(t)}/(${e.join("//")})`}}function Q1(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Du(t){return Q1(t).replace(/%3B/gi,";")}function Uf(t){return Q1(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Cu(t){return decodeURIComponent(t)}function Z1(t){return Cu(t.replace(/\+/g,"%20"))}function X1(t){return`${Uf(t.path)}${function _P(t){return Object.keys(t).map(n=>`;${Uf(n)}=${Uf(t[n])}`).join("")}(t.parameters)}`}const vP=/^[^\/()?;=#]+/;function wu(t){const n=t.match(vP);return n?n[0]:""}const bP=/^[^=?&#]+/,CP=/^[^&#]+/;class EP{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ae([],{}):new Ae([],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 e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[Se]=new Ae(n,e)),r}parseSegment(){const n=wu(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new q(4009,!1);return this.capture(n),new Xs(Cu(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=wu(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){const i=wu(this.remaining);i&&(r=i,this.capture(r))}n[Cu(e)]=Cu(r)}parseQueryParam(n){const e=function DP(t){const n=t.match(bP);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){const s=function wP(t){const n=t.match(CP);return n?n[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const i=Z1(e),o=Z1(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=wu(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new q(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=Se);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[Se]:new Ae([],s),this.consumeOptional("//")}return e}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 q(4011,!1)}}function Gf(t){return t.segments.length>0?new Ae([],{[Se]:t}):t}function Eu(t){const n={};for(const r of Object.keys(t.children)){const o=Eu(t.children[r]);(o.segments.length>0||o.hasChildren())&&(n[r]=o)}return function MP(t){if(1===t.numberOfChildren&&t.children[Se]){const n=t.children[Se];return new Ae(t.segments.concat(n.segments),n.children)}return t}(new Ae(t.segments,n))}function Ai(t){return t instanceof Si}function SP(t,n,e,r,i){if(0===e.length)return Ao(n.root,n.root,n.root,r,i);const o=function tD(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new eD(!0,0,t);let n=0,e=!1;const r=t.reduce((i,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Yt(o.outlets,(l,u)=>{a[u]="string"==typeof l?l.split("/"):l}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return"string"!=typeof o?[...i,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?n++:""!=a&&i.push(a))}),i):[...i,o]},[]);return new eD(e,n,r)}(e);return o.toRoot()?Ao(n.root,n.root,new Ae([],{}),r,i):function s(l){const u=function AP(t,n,e,r){if(t.isAbsolute)return new xo(n.root,!0,0);if(-1===r)return new xo(e,e===n.root,0);return function nD(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new q(4005,!1);i=r.segments.length}return new xo(r,!1,i-o)}(e,r+(ea(t.commands[0])?0:1),t.numberOfDoubleDots)}(o,n,t.snapshot?._urlSegment,l),c=u.processChildren?na(u.segmentGroup,u.index,o.commands):zf(u.segmentGroup,u.index,o.commands);return Ao(n.root,u.segmentGroup,c,r,i)}(t.snapshot?._lastPathIndex)}function ea(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function ta(t){return"object"==typeof t&&null!=t&&t.outlets}function Ao(t,n,e,r,i){let s,o={};r&&Yt(r,(l,u)=>{o[u]=Array.isArray(l)?l.map(c=>`${c}`):`${l}`}),s=t===n?e:q1(t,n,e);const a=Gf(Eu(s));return new Si(a,o,i)}function q1(t,n,e){const r={};return Yt(t.children,(i,o)=>{r[o]=i===n?e:q1(i,n,e)}),new Ae(t.segments,r)}class eD{constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&ea(r[0]))throw new q(4003,!1);const i=r.find(ta);if(i&&i!==U1(r))throw new q(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class xo{constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}}function zf(t,n,e){if(t||(t=new Ae([],{})),0===t.segments.length&&t.hasChildren())return na(t,n,e);const r=function RP(t,n,e){let r=0,i=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;const s=t.segments[i],a=e[r];if(ta(a))break;const l=`${a}`,u=r<e.length-1?e[r+1]:null;if(i>0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!iD(l,u,s))return o;r+=2}else{if(!iD(l,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){const o=new Ae(t.segments.slice(0,r.pathIndex),{});return o.children[Se]=new Ae(t.segments.slice(r.pathIndex),t.children),na(o,0,i)}return r.match&&0===i.length?new Ae(t.segments,{}):r.match&&!t.hasChildren()?Kf(t,n,e):r.match?na(t,0,i):Kf(t,n,e)}function na(t,n,e){if(0===e.length)return new Ae(t.segments,{});{const r=function xP(t){return ta(t[0])?t[0].outlets:{[Se]:t}}(e),i={};return Yt(r,(o,s)=>{"string"==typeof o&&(o=[o]),null!==o&&(i[s]=zf(t.children[s],n,o))}),Yt(t.children,(o,s)=>{void 0===r[s]&&(i[s]=o)}),new Ae(t.segments,i)}}function Kf(t,n,e){const r=t.segments.slice(0,n);let i=0;for(;i<e.length;){const o=e[i];if(ta(o)){const l=OP(o.outlets);return new Ae(r,l)}if(0===i&&ea(e[0])){r.push(new Xs(t.segments[n].path,rD(e[0]))),i++;continue}const s=ta(o)?o.outlets[Se]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&ea(a)?(r.push(new Xs(s,rD(a))),i+=2):(r.push(new Xs(s,{})),i++)}return new Ae(r,{})}function OP(t){const n={};return Yt(t,(e,r)=>{"string"==typeof e&&(e=[e]),null!==e&&(n[r]=Kf(new Ae([],{}),0,e))}),n}function rD(t){const n={};return Yt(t,(e,r)=>n[r]=`${e}`),n}function iD(t,n,e){return t==e.path&&gr(n,e.parameters)}class Or{constructor(n,e){this.id=n,this.url=e}}class Jf extends Or{constructor(n,e,r="imperative",i=null){super(n,e),this.type=0,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class oi extends Or{constructor(n,e,r){super(n,e),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Mu extends Or{constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class oD extends Or{constructor(n,e,r,i){super(n,e),this.error=r,this.target=i,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class FP extends Or{constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class PP extends Or{constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class kP extends Or{constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class LP extends Or{constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class VP extends Or{constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class BP{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class $P{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class HP{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jP{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class UP{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class GP{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sD{constructor(n,e,r){this.routerEvent=n,this.position=e,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class aD{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=Yf(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){const e=Yf(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=Qf(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return Qf(n,this._root).map(e=>e.value)}}function Yf(t,n){if(t===n.value)return n;for(const e of n.children){const r=Yf(t,e);if(r)return r}return null}function Qf(t,n){if(t===n.value)return[n];for(const e of n.children){const r=Qf(t,e);if(r.length)return r.unshift(n),r}return[]}class Fr{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function Ro(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class lD extends aD{constructor(n,e){super(n),this.snapshot=e,Zf(this,n)}toString(){return this.snapshot.toString()}}function uD(t,n){const e=function zP(t,n){const s=new Tu([],{},{},"",{},Se,n,null,t.root,-1,{});return new dD("",new Fr(s,[]))}(t,n),r=new kt.X([new Xs("",{})]),i=new kt.X({}),o=new kt.X({}),s=new kt.X({}),a=new kt.X(""),l=new si(r,i,s,a,o,Se,n,e.root);return l.snapshot=e.root,new lD(new Fr(l,[]),e)}class si{constructor(n,e,r,i,o,s,a,l){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,ye.U)(n=>Io(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ye.U)(n=>Io(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function cD(t,n="emptyOnly"){const e=t.pathFromRoot;let r=0;if("always"!==n)for(r=e.length-1;r>=1;){const i=e[r],o=e[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function KP(t){return t.reduce((n,e)=>({params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(r))}class Tu{constructor(n,e,r,i,o,s,a,l,u,c,d,h){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,this._correctedLastPathIndex=h??c,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Io(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Io(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class dD extends aD{constructor(n,e){super(e),this.url=n,Zf(this,e)}toString(){return hD(this._root)}}function Zf(t,n){n.value._routerState=t,n.children.forEach(e=>Zf(t,e))}function hD(t){const n=t.children.length>0?` { ${t.children.map(hD).join(", ")} } `:"";return`${t.value}${n}`}function Xf(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,gr(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),gr(n.params,e.params)||t.params.next(e.params),function lP(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!gr(t[e],n[e]))return!1;return!0}(n.url,e.url)||t.url.next(e.url),gr(n.data,e.data)||t.data.next(e.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function qf(t,n){const e=gr(t.params,n.params)&&function fP(t,n){return Ii(t,n)&&t.every((e,r)=>gr(e.parameters,n[r].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||qf(t.parent,n.parent))}function ra(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const r=e.value;r._futureSnapshot=n.value;const i=function YP(t,n,e){return n.children.map(r=>{for(const i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return ra(t,r,i);return ra(t,r)})}(t,n,e);return new Fr(r,i)}{if(t.shouldAttach(n.value)){const o=t.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>ra(t,a)),s}}const r=function QP(t){return new si(new kt.X(t.url),new kt.X(t.params),new kt.X(t.queryParams),new kt.X(t.fragment),new kt.X(t.data),t.outlet,t.component,t)}(n.value),i=n.children.map(o=>ra(t,o));return new Fr(r,i)}}const ep="ngNavigationCancelingError";function fD(t,n){const{redirectTo:e,navigationBehaviorOptions:r}=Ai(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=pD(!1,0,n);return i.url=e,i.navigationBehaviorOptions=r,i}function pD(t,n,e){const r=new Error("NavigationCancelingError: "+(t||""));return r[ep]=!0,r.cancellationCode=n,e&&(r.url=e),r}function gD(t){return mD(t)&&Ai(t.url)}function mD(t){return t&&t[ep]}class ZP{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new ia,this.attachRef=null}}let ia=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,r){const i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){const r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new ZP,this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Nu=!1;let tp=(()=>{class t{constructor(e,r,i,o,s){this.parentContexts=e,this.location=r,this.changeDetector=o,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new se,this.deactivateEvents=new se,this.attachEvents=new se,this.detachEvents=new se,this.name=i||Se,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new q(4012,Nu);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new q(4012,Nu);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new q(4012,Nu);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new q(4013,Nu);this._activatedRoute=e;const i=this.location,s=e._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new XP(e,a,i.injector);if(r&&function qP(t){return!!t.resolveComponentFactory}(r)){const u=r.resolveComponentFactory(s);this.activated=i.createComponent(u,i.length,l)}else this.activated=i.createComponent(s,{index:i.length,injector:l,environmentInjector:r??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(m(ia),m(pn),Ur("name"),m(Tt),m(Wr))},t.\u0275dir=ne({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),t})();class XP{constructor(n,e,r){this.route=n,this.childContexts=e,this.parent=r}get(n,e){return n===si?this.route:n===ia?this.childContexts:this.parent.get(n,e)}}let _D=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ke({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,r){1&e&&Ee(0,"router-outlet")},dependencies:[tp],encapsulation:2}),t})();function yD(t,n){return t.providers&&!t._injector&&(t._injector=El(t.providers,n,`Route: ${t.path}`)),t._injector??n}function rp(t){const n=t.children&&t.children.map(rp),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==Se&&(e.component=_D),e}function Gn(t){return t.outlet||Se}function vD(t,n){const e=t.filter(r=>Gn(r)===n);return e.push(...t.filter(r=>Gn(r)!==n)),e}function bD(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class ik{constructor(n,e,r,i){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i}activate(n){const e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Xf(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){const i=Ro(e);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Yt(i,(o,s)=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){const i=n.value,o=e?e.value:null;if(i===o)if(i.component){const s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=Ro(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);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,e){const r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=Ro(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(n,e,r){const i=Ro(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new GP(o.value.snapshot))}),n.children.length&&this.forwardEvent(new jP(n.value.snapshot))}activateRoutes(n,e,r){const i=n.value,o=e?e.value:null;if(Xf(i),i===o)if(i.component){const s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,r);else if(i.component){const s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),Xf(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=bD(i.snapshot),l=a?.get(Yn)??null;s.attachRef=null,s.route=i,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,r)}}class DD{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Su{constructor(n,e){this.component=n,this.route=e}}function ok(t,n,e){const r=t._root;return oa(r,n?n._root:null,e,[r.value])}function Iu(t,n,e){return(bD(n)??e).get(t)}function oa(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=Ro(n);return t.children.forEach(s=>{(function ak(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function lk(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Ii(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Ii(t.url,n.url)||!gr(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!qf(t,n)||!gr(t.queryParams,n.queryParams);default:return!qf(t,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new DD(r)):(o.data=s.data,o._resolvedData=s._resolvedData),oa(t,n,o.component?a?a.children:null:e,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Su(a.outlet.component,s))}else s&&sa(n,a,i),i.canActivateChecks.push(new DD(r)),oa(t,null,o.component?a?a.children:null:e,r,i)})(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Yt(o,(s,a)=>sa(s,e.getContext(a),i)),i}function sa(t,n,e){const r=Ro(t),i=t.value;Yt(r,(o,s)=>{sa(o,i.component?n?n.children.getContext(s):null:n,e)}),e.canDeactivateChecks.push(new Su(i.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,i))}function aa(t){return"function"==typeof t}function ip(t){return t instanceof pu.K||"EmptyError"===t?.name}const Au=Symbol("INITIAL_VALUE");function Oo(){return tn(t=>(0,gu.aj)(t.map(n=>n.pipe(It(1),mu(Au)))).pipe((0,ye.U)(n=>{for(const e of n)if(!0!==e){if(e===Au)return Au;if(!1===e||e instanceof Si)return e}return!0}),(0,yt.h)(n=>n!==Au),It(1)))}function CD(t){return(0,Bf.z)(pt(n=>{if(Ai(n))throw fD(0,n)}),(0,ye.U)(n=>!0===n))}const op={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function wD(t,n,e,r,i){const o=sp(t,n,e);return o.matched?function Mk(t,n,e,r){const i=n.canMatch;if(!i||0===i.length)return(0,de.of)(!0);const o=i.map(s=>{const a=t.get(s),l=function pk(t){return t&&aa(t.canMatch)}(a)?a.canMatch(n,e):a(n,e);return Rr(l)});return(0,de.of)(o).pipe(Oo(),CD())}(r=yD(n,r),n,e).pipe((0,ye.U)(s=>!0===s?o:{...op})):(0,de.of)(o)}function sp(t,n,e){if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...op}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const i=(n.matcher||aP)(e,t,n);if(!i)return{...op};const o={};Yt(i.posParams,(a,l)=>{o[l]=a.path});const s=i.consumed.length>0?{...o,...i.consumed[i.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function xu(t,n,e,r,i="corrected"){if(e.length>0&&function Sk(t,n,e){return e.some(r=>Ru(t,n,r)&&Gn(r)!==Se)}(t,e,r)){const s=new Ae(n,function Nk(t,n,e,r){const i={};i[Se]=r,r._sourceSegment=t,r._segmentIndexShift=n.length;for(const o of e)if(""===o.path&&Gn(o)!==Se){const s=new Ae([],{});s._sourceSegment=t,s._segmentIndexShift=n.length,i[Gn(o)]=s}return i}(t,n,r,new Ae(e,t.children)));return s._sourceSegment=t,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function Ik(t,n,e){return e.some(r=>Ru(t,n,r))}(t,e,r)){const s=new Ae(t.segments,function Tk(t,n,e,r,i,o){const s={};for(const a of r)if(Ru(t,e,a)&&!i[Gn(a)]){const l=new Ae([],{});l._sourceSegment=t,l._segmentIndexShift="legacy"===o?t.segments.length:n.length,s[Gn(a)]=l}return{...i,...s}}(t,n,e,r,t.children,i));return s._sourceSegment=t,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:e}}const o=new Ae(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:e}}function Ru(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function ED(t,n,e,r){return!!(Gn(t)===r||r!==Se&&Ru(n,e,t))&&("**"===t.path||sp(n,t,e).matched)}function MD(t,n,e){return 0===n.length&&!t.children[e]}const Ou=!1;class Fu{constructor(n){this.segmentGroup=n||null}}class TD{constructor(n){this.urlTree=n}}function la(t){return(0,Ys._)(new Fu(t))}function ND(t){return(0,Ys._)(new TD(t))}class Ok{constructor(n,e,r,i,o){this.injector=n,this.configLoader=e,this.urlSerializer=r,this.urlTree=i,this.config=o,this.allowRedirects=!0}apply(){const n=xu(this.urlTree.root,[],[],this.config).segmentGroup,e=new Ae(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,e,Se).pipe((0,ye.U)(o=>this.createUrlTree(Eu(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(ii(o=>{if(o instanceof TD)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof Fu?this.noMatchError(o):o}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,Se).pipe((0,ye.U)(i=>this.createUrlTree(Eu(i),n.queryParams,n.fragment))).pipe(ii(i=>{throw i instanceof Fu?this.noMatchError(i):i}))}noMatchError(n){return new q(4002,Ou)}createUrlTree(n,e,r){const i=Gf(n);return new Si(i,e,r)}expandSegmentGroup(n,e,r,i){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(n,e,r).pipe((0,ye.U)(o=>new Ae([],o))):this.expandSegment(n,r,e,r.segments,i,!0)}expandChildren(n,e,r){const i=[];for(const o of Object.keys(r.children))"primary"===o?i.unshift(o):i.push(o);return(0,en.D)(i).pipe(ni(o=>{const s=r.children[o],a=vD(e,o);return this.expandSegmentGroup(n,a,s,o).pipe((0,ye.U)(l=>({segment:l,outlet:o})))}),_u((o,s)=>(o[s.outlet]=s.segment,o),{}),$1())}expandSegment(n,e,r,i,o,s){return(0,en.D)(r).pipe(ni(a=>this.expandSegmentAgainstRoute(n,e,r,a,i,o,s).pipe(ii(u=>{if(u instanceof Fu)return(0,de.of)(null);throw u}))),ti(a=>!!a),ii((a,l)=>{if(ip(a))return MD(e,i,o)?(0,de.of)(new Ae([],{})):la(e);throw a}))}expandSegmentAgainstRoute(n,e,r,i,o,s,a){return ED(i,e,o,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,e,i,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s):la(e):la(e)}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,r,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,r,i){const o=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?ND(o):this.lineralizeSegments(r,o).pipe((0,vn.zg)(s=>{const a=new Ae(s,{});return this.expandSegment(n,a,e,s,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s){const{matched:a,consumedSegments:l,remainingSegments:u,positionalParamSegments:c}=sp(e,i,o);if(!a)return la(e);const d=this.applyRedirectCommands(l,i.redirectTo,c);return i.redirectTo.startsWith("/")?ND(d):this.lineralizeSegments(i,d).pipe((0,vn.zg)(h=>this.expandSegment(n,e,r,h.concat(u),s,!1)))}matchSegmentAgainstRoute(n,e,r,i,o){return"**"===r.path?(n=yD(r,n),r.loadChildren?(r._loadedRoutes?(0,de.of)({routes:r._loadedRoutes,injector:r._loadedInjector}):this.configLoader.loadChildren(n,r)).pipe((0,ye.U)(a=>(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,new Ae(i,{})))):(0,de.of)(new Ae(i,{}))):wD(e,r,i,n).pipe(tn(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(n=r._injector??n,r,i).pipe((0,vn.zg)(c=>{const d=c.injector??n,h=c.routes,{segmentGroup:p,slicedSegments:b}=xu(e,a,l,h),I=new Ae(p.segments,p.children);if(0===b.length&&I.hasChildren())return this.expandChildren(d,h,I).pipe((0,ye.U)(W=>new Ae(a,W)));if(0===h.length&&0===b.length)return(0,de.of)(new Ae(a,{}));const U=Gn(r)===o;return this.expandSegment(d,I,h,b,U?Se:o,!0).pipe((0,ye.U)(re=>new Ae(a.concat(re.segments),re.children)))})):la(e)))}getChildConfig(n,e,r){return e.children?(0,de.of)({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?(0,de.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function Ek(t,n,e,r){const i=n.canLoad;if(void 0===i||0===i.length)return(0,de.of)(!0);const o=i.map(s=>{const a=t.get(s),l=function ck(t){return t&&aa(t.canLoad)}(a)?a.canLoad(n,e):a(n,e);return Rr(l)});return(0,de.of)(o).pipe(Oo(),CD())}(n,e,r).pipe((0,vn.zg)(i=>i?this.configLoader.loadChildren(n,e).pipe(pt(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function xk(t){return(0,Ys._)(pD(Ou,3))}())):(0,de.of)({routes:[],injector:n})}lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),0===i.numberOfChildren)return(0,de.of)(r);if(i.numberOfChildren>1||!i.children[Se])return(0,Ys._)(new q(4e3,Ou));i=i.children[Se]}}applyRedirectCommands(n,e,r){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,r)}applyRedirectCreateUrlTree(n,e,r,i){const o=this.createSegmentGroup(n,e.root,r,i);return new Si(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const r={};return Yt(n,(i,o)=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=e[a]}else r[o]=i}),r}createSegmentGroup(n,e,r,i){const o=this.createSegments(n,e.segments,r,i);let s={};return Yt(e.children,(a,l)=>{s[l]=this.createSegmentGroup(n,a,r,i)}),new Ae(o,s)}createSegments(n,e,r,i){return e.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){const i=r[e.path.substring(1)];if(!i)throw new q(4001,Ou);return i}findOrReturn(n,e){let r=0;for(const i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}}class Pk{}class Vk{constructor(n,e,r,i,o,s,a,l){this.injector=n,this.rootComponentType=e,this.config=r,this.urlTree=i,this.url=o,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=l}recognize(){const n=xu(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,Se).pipe((0,ye.U)(e=>{if(null===e)return null;const r=new Tu([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Se,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Fr(r,e),o=new dD(this.url,i);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(n){const e=n.value,r=cD(e,this.paramsInheritanceStrategy);e.params=Object.freeze(r.params),e.data=Object.freeze(r.data),n.children.forEach(i=>this.inheritParamsAndData(i))}processSegmentGroup(n,e,r,i){return 0===r.segments.length&&r.hasChildren()?this.processChildren(n,e,r):this.processSegment(n,e,r,r.segments,i)}processChildren(n,e,r){return(0,en.D)(Object.keys(r.children)).pipe(ni(i=>{const o=r.children[i],s=vD(e,i);return this.processSegmentGroup(n,s,o,i)}),_u((i,o)=>i&&o?(i.push(...o),i):null),function XF(t,n=!1){return e=>e.lift(new qF(t,n))}(i=>null!==i),Qs(null),$1(),(0,ye.U)(i=>{if(null===i)return null;const o=SD(i);return function Bk(t){t.sort((n,e)=>n.value.outlet===Se?-1:e.value.outlet===Se?1:n.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(n,e,r,i,o){return(0,en.D)(e).pipe(ni(s=>this.processSegmentAgainstRoute(s._injector??n,s,r,i,o)),ti(s=>!!s),ii(s=>{if(ip(s))return MD(r,i,o)?(0,de.of)([]):(0,de.of)(null);throw s}))}processSegmentAgainstRoute(n,e,r,i,o){if(e.redirectTo||!ED(e,r,i,o))return(0,de.of)(null);let s;if("**"===e.path){const a=i.length>0?U1(i).parameters:{},l=AD(r)+i.length,u=new Tu(i,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,RD(e),Gn(e),e.component??e._loadedComponent??null,e,ID(r),l,OD(e),l);s=(0,de.of)({snapshot:u,consumedSegments:[],remainingSegments:[]})}else s=wD(r,e,i,n).pipe((0,ye.U)(({matched:a,consumedSegments:l,remainingSegments:u,parameters:c})=>{if(!a)return null;const d=AD(r)+l.length;return{snapshot:new Tu(l,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,RD(e),Gn(e),e.component??e._loadedComponent??null,e,ID(r),d,OD(e),d),consumedSegments:l,remainingSegments:u}}));return s.pipe(tn(a=>{if(null===a)return(0,de.of)(null);const{snapshot:l,consumedSegments:u,remainingSegments:c}=a;n=e._injector??n;const d=e._loadedInjector??n,h=function $k(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:p,slicedSegments:b}=xu(r,u,c,h.filter(U=>void 0===U.redirectTo),this.relativeLinkResolution);if(0===b.length&&p.hasChildren())return this.processChildren(d,h,p).pipe((0,ye.U)(U=>null===U?null:[new Fr(l,U)]));if(0===h.length&&0===b.length)return(0,de.of)([new Fr(l,[])]);const I=Gn(e)===o;return this.processSegment(d,h,p,b,I?Se:o).pipe((0,ye.U)(U=>null===U?null:[new Fr(l,U)]))}))}}function Hk(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function SD(t){const n=[],e=new Set;for(const r of t){if(!Hk(r)){n.push(r);continue}const i=n.find(o=>r.value.routeConfig===o.value.routeConfig);void 0!==i?(i.children.push(...r.children),e.add(i)):n.push(r)}for(const r of e){const i=SD(r.children);n.push(new Fr(r.value,i))}return n.filter(r=>!e.has(r))}function ID(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function AD(t){let n=t,e=n._segmentIndexShift??0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift??0;return e-1}function RD(t){return t.data||{}}function OD(t){return t.resolve||{}}const ap=Symbol("RouteTitle");function FD(t){return"string"==typeof t.title||null===t.title}function lp(t){return tn(n=>{const e=t(n);return e?(0,en.D)(e).pipe((0,ye.U)(()=>n)):(0,de.of)(n)})}let PD=(()=>{class t{buildTitle(e){let r,i=e.root;for(;void 0!==i;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===Se);return r}getResolvedTitleForRoute(e){return e.data[ap]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(){return Dt(kD)},providedIn:"root"}),t})(),kD=(()=>{class t extends PD{constructor(e){super(),this.title=e}updateTitle(e){const r=this.buildTitle(e);void 0!==r&&this.title.setTitle(r)}}return t.\u0275fac=function(e){return new(e||t)(G(Ab))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Yk{}class Zk extends class Qk{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}{}const up=new fe("",{providedIn:"root",factory:()=>({})}),cp=new fe("ROUTES");let dp=(()=>{class t{constructor(e,r){this.injector=e,this.compiler=r,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,de.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const r=Rr(e.loadComponent()).pipe(pt(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),$f(()=>{this.componentLoaders.delete(e)})),i=new M.c(r,()=>new w.xQ).pipe((0,P.x)());return this.componentLoaders.set(e,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return(0,de.of)({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const o=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe((0,ye.U)(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,u,c=!1;Array.isArray(a)?u=a:(l=a.create(e).injector,u=j1(l.get(cp,[],pe.Self|pe.Optional)));return{routes:u.map(rp),injector:l}}),$f(()=>{this.childrenLoaders.delete(r)})),s=new M.c(o,()=>new w.xQ).pipe((0,P.x)());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(e){return Rr(e()).pipe((0,vn.zg)(r=>r instanceof Mv||Array.isArray(r)?(0,de.of)(r):(0,en.D)(this.compiler.compileModuleAsync(r))))}}return t.\u0275fac=function(e){return new(e||t)(G(Ot),G(xh))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class qk{}class e2{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,e){return n}}function t2(t){throw t}function n2(t,n,e){return n.parse("/")}const r2={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},i2={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function VD(){const t=Dt(Y1),n=Dt(ia),e=Dt(zh),r=Dt(Ot),i=Dt(xh),o=Dt(cp,{optional:!0})??[],s=Dt(up,{optional:!0})??{},a=Dt(kD),l=Dt(PD,{optional:!0}),u=Dt(qk,{optional:!0}),c=Dt(Yk,{optional:!0}),d=new nn(null,t,n,e,r,i,j1(o));return u&&(d.urlHandlingStrategy=u),c&&(d.routeReuseStrategy=c),d.titleStrategy=l??a,function o2(t,n){t.errorHandler&&(n.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(n.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(n.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(n.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(n.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(n.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(n.canceledNavigationResolution=t.canceledNavigationResolution)}(s,d),d}let nn=(()=>{class t{constructor(e,r,i,o,s,a,l){this.rootComponentType=e,this.urlSerializer=r,this.rootContexts=i,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new w.xQ,this.errorHandler=t2,this.malformedUriErrorHandler=n2,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,de.of)(void 0),this.urlHandlingStrategy=new e2,this.routeReuseStrategy=new Zk,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(dp),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new $P(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new BP(h)),this.ngModule=s.get(Ci),this.console=s.get(qA);const d=s.get(Oe);this.isNgZoneEnabled=d instanceof Oe&&Oe.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function uP(){return new Si(new Ae([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=uD(this.currentUrlTree,this.rootComponentType),this.transitions=new kt.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const r=this.events;return e.pipe((0,yt.h)(i=>0!==i.id),(0,ye.U)(i=>({...i,extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),tn(i=>{let o=!1,s=!1;return(0,de.of)(i).pipe(pt(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),tn(a=>{const l=this.browserUrlTree.toString(),u=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||u)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return BD(a.source)&&(this.browserUrlTree=a.extractedUrl),(0,de.of)(a).pipe(tn(d=>{const h=this.transitions.getValue();return r.next(new Jf(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions.getValue()?ei.E:Promise.resolve(d)}),function Fk(t,n,e,r){return tn(i=>function Rk(t,n,e,r,i){return new Ok(t,n,e,r,i).apply()}(t,n,e,i.extractedUrl,r).pipe((0,ye.U)(o=>({...i,urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),pt(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},i.urlAfterRedirects=d.urlAfterRedirects}),function Uk(t,n,e,r,i,o){return(0,vn.zg)(s=>function Lk(t,n,e,r,i,o,s="emptyOnly",a="legacy"){return new Vk(t,n,e,r,i,s,a,o).recognize().pipe(tn(l=>null===l?function kk(t){return new V.y(n=>n.error(t))}(new Pk):(0,de.of)(l)))}(t,n,e,s.urlAfterRedirects,r.serialize(s.urlAfterRedirects),r,i,o).pipe((0,ye.U)(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),pt(d=>{if(i.targetSnapshot=d.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const p=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(p,d)}this.browserUrlTree=d.urlAfterRedirects}const h=new FP(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);r.next(h)}));if(u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:p,source:b,restoredState:I,extras:U}=a,Y=new Jf(h,this.serializeUrl(p),b,I);r.next(Y);const re=uD(p,this.rootComponentType).snapshot;return i={...a,targetSnapshot:re,urlAfterRedirects:p,extras:{...U,skipLocationChange:!1,replaceUrl:!1}},(0,de.of)(i)}return this.rawUrlTree=a.rawUrl,a.resolve(null),ei.E}),pt(a=>{const l=new PP(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),(0,ye.U)(a=>i={...a,guards:ok(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function mk(t,n){return(0,vn.zg)(e=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?(0,de.of)({...e,guardsResult:!0}):function _k(t,n,e,r){return(0,en.D)(t).pipe((0,vn.zg)(i=>function wk(t,n,e,r,i){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,de.of)(!0);const s=o.map(a=>{const l=Iu(a,n,i);return Rr(function fk(t){return t&&aa(t.canDeactivate)}(l)?l.canDeactivate(t,n,e,r):l(t,n,e,r)).pipe(ti())});return(0,de.of)(s).pipe(Oo())}(i.component,i.route,e,n,r)),ti(i=>!0!==i,!0))}(s,r,i,t).pipe((0,vn.zg)(a=>a&&function uk(t){return"boolean"==typeof t}(a)?function yk(t,n,e,r){return(0,en.D)(n).pipe(ni(i=>(0,Js.z)(function bk(t,n){return null!==t&&n&&n(new HP(t)),(0,de.of)(!0)}(i.route.parent,r),function vk(t,n){return null!==t&&n&&n(new UP(t)),(0,de.of)(!0)}(i.route,r),function Ck(t,n,e){const r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function sk(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>(0,k1.P)(()=>{const a=s.guards.map(l=>{const u=Iu(l,s.node,e);return Rr(function hk(t){return t&&aa(t.canActivateChild)}(u)?u.canActivateChild(r,t):u(r,t)).pipe(ti())});return(0,de.of)(a).pipe(Oo())}));return(0,de.of)(o).pipe(Oo())}(t,i.path,e),function Dk(t,n,e){const r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||0===r.length)return(0,de.of)(!0);const i=r.map(o=>(0,k1.P)(()=>{const s=Iu(o,n,e);return Rr(function dk(t){return t&&aa(t.canActivate)}(s)?s.canActivate(n,t):s(n,t)).pipe(ti())}));return(0,de.of)(i).pipe(Oo())}(t,i.route,e))),ti(i=>!0!==i,!0))}(r,o,t,n):(0,de.of)(a)),(0,ye.U)(a=>({...e,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),pt(a=>{if(i.guardsResult=a.guardsResult,Ai(a.guardsResult))throw fD(0,a.guardsResult);const l=new kP(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),(0,yt.h)(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),lp(a=>{if(a.guards.canActivateChecks.length)return(0,de.of)(a).pipe(pt(l=>{const u=new LP(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}),tn(l=>{let u=!1;return(0,de.of)(l).pipe(function Gk(t,n){return(0,vn.zg)(e=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return(0,de.of)(e);let o=0;return(0,en.D)(i).pipe(ni(s=>function Wk(t,n,e,r){const i=t.routeConfig,o=t._resolve;return void 0!==i?.title&&!FD(i)&&(o[ap]=i.title),function zk(t,n,e,r){const i=function Kk(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===i.length)return(0,de.of)({});const o={};return(0,en.D)(i).pipe((0,vn.zg)(s=>function Jk(t,n,e,r){const i=Iu(t,n,r);return Rr(i.resolve?i.resolve(n,e):i(n,e))}(t[s],n,e,r).pipe(ti(),pt(a=>{o[s]=a}))),Zs(1),function tP(t){return n=>n.lift(new nP(t))}(o),ii(s=>ip(s)?ei.E:(0,Ys._)(s)))}(o,t,n,r).pipe((0,ye.U)(s=>(t._resolvedData=s,t.data=cD(t,e).resolve,i&&FD(i)&&(t.data[ap]=i.title),null)))}(s.route,r,t,n)),pt(()=>o++),Zs(1),(0,vn.zg)(s=>o===i.length?(0,de.of)(e):ei.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),pt({next:()=>u=!0,complete:()=>{u||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),pt(l=>{const u=new VP(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}))}),lp(a=>{const l=u=>{const c=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(u.routeConfig).pipe(pt(d=>{u.component=d}),(0,ye.U)(()=>{})));for(const d of u.children)c.push(...l(d));return c};return(0,gu.aj)(l(a.targetSnapshot.root)).pipe(Qs(),It(1))}),lp(()=>this.afterPreactivation()),(0,ye.U)(a=>{const l=function JP(t,n,e){const r=ra(t,n._root,e?e._root:void 0);return new lD(r,n)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return i={...a,targetRouterState:l}}),pt(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((t,n,e)=>(0,ye.U)(r=>(new ik(n,r.targetRouterState,r.currentRouterState,e).activate(t),r)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),pt({next(){o=!0},complete(){o=!0}}),$f(()=>{o||s||this.cancelNavigationTransition(i,"",1),this.currentNavigation?.id===i.id&&(this.currentNavigation=null)}),ii(a=>{if(s=!0,mD(a)){gD(a)||(this.navigated=!0,this.restoreHistory(i,!0));const l=new Mu(i.id,this.serializeUrl(i.extractedUrl),a.message,a.cancellationCode);if(r.next(l),gD(a)){const u=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),c={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||BD(i.source)};this.scheduleNavigation(u,"imperative",null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}else i.resolve(!1)}else{this.restoreHistory(i,!0);const l=new oD(i.id,this.serializeUrl(i.extractedUrl),a,i.targetSnapshot??void 0);r.next(l);try{i.resolve(this.errorHandler(a))}catch(u){i.reject(u)}}return ei.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const r="popstate"===e.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{const i={replaceUrl:!0},o=e.state?.navigationId?e.state:null;if(o){const a={...o};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(i.state=a)}const s=this.parseUrl(e.url);this.scheduleNavigation(s,r,o,i)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(rp),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,r={}){const{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,u=i||this.routerState.root,c=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),SP(u,this.currentUrlTree,e,d,c??null)}navigateByUrl(e,r={skipLocationChange:!1}){const i=Ai(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,r)}navigate(e,r={skipLocationChange:!1}){return function s2(t){for(let n=0;n<t.length;n++){if(null==t[n])throw new q(4008,false)}}(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let r;try{r=this.urlSerializer.parse(e)}catch(i){r=this.malformedUriErrorHandler(i,this.urlSerializer,e)}return r}isActive(e,r){let i;if(i=!0===r?{...r2}:!1===r?{...i2}:r,Ai(e))return W1(this.currentUrlTree,e,i);const o=this.parseUrl(e);return W1(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.keys(e).reduce((r,i)=>{const o=e[i];return null!=o&&(r[i]=o),r},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new oi(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,u;s?(a=s.resolve,l=s.reject,u=s.promise):u=new Promise((h,p)=>{a=h,l=p});const c=++this.navigationId;let d;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(i=this.location.getState()),d=i&&i.\u0275routerPageId?i.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):d=0,this.setTransition({id:c,targetPageId:d,source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(h=>Promise.reject(h))}setBrowserUrl(e,r){const i=this.urlSerializer.serialize(e),o={...r.extras.state,...this.generateNgRouterState(r.id,r.targetPageId)};this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl?this.location.replaceState(i,"",o):this.location.go(i,"",o)}restoreHistory(e,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===i?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===i&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(i)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,r,i){const o=new Mu(e.id,this.serializeUrl(e.extractedUrl),r,i);this.triggerEvent(o),e.resolve(!1)}generateNgRouterState(e,r){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}}return t.\u0275fac=function(e){Od()},t.\u0275prov=Z({token:t,factory:function(){return VD()},providedIn:"root"}),t})();function BD(t){return"imperative"!==t}class $D{}let HD=(()=>{class t{constructor(e,r,i,o,s){this.router=e,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe((0,yt.h)(e=>e instanceof oi),ni(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){const i=[];for(const o of r){o.providers&&!o._injector&&(o._injector=El(o.providers,e,`Route: ${o.path}`));const s=o._injector??e,a=o._loadedInjector??s;o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent?i.push(this.preloadConfig(s,o)):(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return(0,en.D)(i).pipe((0,yu.J)())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let i;i=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(e,r):(0,de.of)(null);const o=i.pipe((0,vn.zg)(s=>null===s?(0,de.of)(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(r.loadComponent&&!r._loadedComponent){const s=this.loader.loadComponent(r);return(0,en.D)([o,s]).pipe((0,yu.J)())}return o})}}return t.\u0275fac=function(e){return new(e||t)(G(nn),G(xh),G(Wr),G($D),G(dp))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();const jD=new fe("");let u2=(()=>{class t{constructor(e,r,i={}){this.router=e,this.viewportScroller=r,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Jf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof oi&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof sD&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,r){this.router.triggerEvent(new sD(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){Od()},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();const UD=new fe("ROUTER_FORROOT_GUARD"),GD=new fe(""),c2=[zh,{provide:Y1,useClass:jf},{provide:nn,useFactory:VD},ia,{provide:si,useFactory:function d2(t){return t.routerState.root},deps:[nn]},dp];function h2(){return new b0("Router",nn)}let WD=(()=>{class t{constructor(e){}static forRoot(e,r){return{ngModule:t,providers:[c2,[],zD(e),{provide:UD,useFactory:m2,deps:[[nn,new ss,new as]]},{provide:up,useValue:r||{}},r?.useHash?{provide:Mi,useClass:jx}:{provide:Mi,useClass:G0},{provide:jD,useFactory:()=>{const t=Dt(nn),n=Dt(tO),e=Dt(up);return e.scrollOffset&&n.setOffset(e.scrollOffset),new u2(t,n,e)}},r?.preloadingStrategy?w2(r.preloadingStrategy):[],{provide:b0,multi:!0,useFactory:h2},r?.initialNavigation?y2(r):[],[{provide:KD,useFactory:_2},{provide:f0,multi:!0,useExisting:KD}]]}}static forChild(e){return{ngModule:t,providers:[zD(e)]}}}return t.\u0275fac=function(e){return new(e||t)(G(UD,8))},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({}),t})();function m2(t){return"guarded"}function zD(t){return[{provide:cp,multi:!0,useValue:t}]}function _2(){const t=Dt(Ot);return n=>{const e=t.get(Nr);if(n!==e.components[0])return;const r=t.get(nn),i=t.get(JD);1===t.get(pp)&&r.initialNavigation(),t.get(GD,null,pe.Optional)?.setUpPreloading(),t.get(jD,null,pe.Optional)?.init(),r.resetRootComponentType(e.componentTypes[0]),i.next(),i.complete()}}const KD=new fe("");function y2(t){return["disabled"===t.initialNavigation?[{provide:Il,multi:!0,useFactory:()=>{const t=Dt(nn);return()=>{t.setUpLocationChangeListener()}}},{provide:pp,useValue:2}]:[],"enabledBlocking"===t.initialNavigation?[{provide:pp,useValue:0},{provide:Il,multi:!0,deps:[Ot],useFactory:t=>{const n=t.get($x,Promise.resolve(null));let e=!1;return()=>n.then(()=>new Promise(i=>{const o=t.get(nn),s=t.get(JD);(function r(i){t.get(nn).events.pipe((0,yt.h)(s=>s instanceof oi||s instanceof Mu||s instanceof oD),(0,ye.U)(s=>s instanceof oi||s instanceof Mu&&(0===s.code||1===s.code)&&null),(0,yt.h)(s=>null!==s),It(1)).subscribe(()=>{i()})})(()=>{i(!0),e=!0}),o.afterPreactivation=()=>(i(!0),e||s.closed?(0,de.of)(void 0):s),o.initialNavigation()}))}}]:[]]}const JD=new fe("",{factory:()=>new w.xQ}),pp=new fe("",{providedIn:"root",factory:()=>1});function w2(t){return[HD,{provide:GD,useExisting:HD},{provide:$D,useExisting:t}]}const E2=[];let M2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({imports:[WD.forRoot(E2),WD]}),t})();class T2{setLocalStorage(n,e){null!==this.getLocalStorageValue(n)&&this.removeLocalStorage(n),localStorage.setItem(n,e)}getLocalStorageValue(n){return localStorage.getItem(n)}removeLocalStorage(n){localStorage.removeItem(n)}}let YD=(()=>{class t{constructor(){this.toasts=[]}show(e,r={}){this.toasts.push({textOrTpl:e,...r})}remove(e){this.toasts=this.toasts.filter(r=>r!==e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function QD(t,n,e,r,i,o,s){try{var a=t[o](s),l=a.value}catch(u){return void e(u)}a.done?n(l):Promise.resolve(l).then(r,i)}function gp(t){return function(){var n=this,e=arguments;return new Promise(function(r,i){var o=t.apply(n,e);function s(l){QD(o,r,i,s,a,"next",l)}function a(l){QD(o,r,i,s,a,"throw",l)}s(void 0)})}}var Pr=(()=>{return(t=Pr||(Pr={}))[t.Latitude=0]="Latitude",t[t.Everest=1]="Everest",t[t.DeadSea=2]="DeadSea",Pr;var t})();class li{constructor(){this.EVEREST=6168,this.DEAD_SEA=-427,this.FOOT=3.2808399}getAltitude(n,e){return gp(function*(){return yield(yield fetch(`https://api.open-elevation.com/api/v1/lookup?locations=${n},${e}`)).json()})()}GetGravity(n,e,r=!0,i=!1){if(!r){if(n<-90||n>90)return Pr.Latitude;let l=this.EVEREST,u=this.DEAD_SEA;if(i&&(l=this.ChangeToFeet(l),u=this.ChangeToFeet(u)),e>l)return Pr.Everest;if(e<u)return Pr.DeadSea}let a=9.780327*(1+.0053024*Math.pow(Math.sin(n),2)-58e-7*Math.pow(Math.sin(2*n),2))+-3.086*Math.pow(10,-6)*e;return(a<9.7639||a>9.8337)&&(a=9.798),i?this.ChangeToFeet(a):a}ChangeToMetres(n){return n/this.FOOT}ChangeToFeet(n){return n*this.FOOT}}f(4348);class N2{}var S2=f(2139);let mp=(()=>{class t{constructor(){this.osmLocation=new N2,this.osmLocationSubject$=new S2.BehaviorSubject(this.osmLocation)}setLocations(e){this.osmLocationSubject$.next(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function A2(t,n,e){return 0===e?[n]:(t.push(n),t)}class ua{}let ZD=(()=>{class t extends ua{getTranslation(e){return(0,de.of)({})}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=st(t)))(r||t)}}(),t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();class _p{}let XD=(()=>{class t{handle(e){return e.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();class Lu{}let qD=(()=>{class t extends Lu{compile(e,r){return e}compileTranslations(e,r){return e}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=st(t)))(r||t)}}(),t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();function ca(t,n){if(t===n)return!0;if(null===t||null===n)return!1;if(t!=t&&n!=n)return!0;let i,o,s,e=typeof t;if(e==typeof n&&"object"==e){if(!Array.isArray(t)){if(Array.isArray(n))return!1;for(o in s=Object.create(null),t){if(!ca(t[o],n[o]))return!1;s[o]=!0}for(o in n)if(!(o in s)&&typeof n[o]<"u")return!1;return!0}if(!Array.isArray(n))return!1;if((i=t.length)==n.length){for(o=0;o<i;o++)if(!ca(t[o],n[o]))return!1;return!0}}return!1}function rr(t){return typeof t<"u"&&null!==t}function yp(t){return t&&"object"==typeof t&&!Array.isArray(t)}function eC(t,n){let e=Object.assign({},t);return yp(t)&&yp(n)&&Object.keys(n).forEach(r=>{yp(n[r])?r in t?e[r]=eC(t[r],n[r]):Object.assign(e,{[r]:n[r]}):Object.assign(e,{[r]:n[r]})}),e}class Vu{}let tC=(()=>{class t extends Vu{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,r){let i;return i="string"==typeof e?this.interpolateString(e,r):"function"==typeof e?this.interpolateFunction(e,r):e,i}getValue(e,r){let i=r.split(".");r="";do{r+=i.shift(),!rr(e)||!rr(e[r])||"object"!=typeof e[r]&&i.length?i.length?r+=".":e=void 0:(e=e[r],r="")}while(i.length);return e}interpolateFunction(e,r){return e(r)}interpolateString(e,r){return r?e.replace(this.templateMatcher,(i,o)=>{let s=this.getValue(r,o);return rr(s)?s:i}):e}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=st(t)))(r||t)}}(),t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();class nC{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new se,this.onLangChange=new se,this.onDefaultLangChange=new se}}const vp=new fe("USE_STORE"),bp=new fe("USE_DEFAULT_LANG");let kr=(()=>{class t{constructor(e,r,i,o,s,a=!0,l=!1){this.store=e,this.currentLoader=r,this.compiler=i,this.parser=o,this.missingTranslationHandler=s,this.useDefaultLang=a,this.isolate=l,this.pending=!1,this._onTranslationChange=new se,this._onLangChange=new se,this._onDefaultLangChange=new se,this._langs=[],this._translations={},this._translationRequests={}}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let r=this.retrieveTranslations(e);typeof r<"u"?(this.defaultLang||(this.defaultLang=e),r.pipe(It(1)).subscribe(i=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,de.of)(this.translations[e]);let r=this.retrieveTranslations(e);return typeof r<"u"?(this.currentLang||(this.currentLang=e),r.pipe(It(1)).subscribe(i=>{this.changeLang(e)}),r):(this.changeLang(e),(0,de.of)(this.translations[e]))}retrieveTranslations(e){let r;return typeof this.translations[e]>"u"&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),r=this._translationRequests[e]),r}getTranslation(e){this.pending=!0;const r=this.currentLoader.getTranslation(e).pipe(E());return this.loadingTranslations=r.pipe(It(1),(0,ye.U)(i=>this.compiler.compileTranslations(i,e)),E()),this.loadingTranslations.subscribe(i=>{this.translations[e]=i,this.updateLangs(),this.pending=!1},i=>{this.pending=!1}),r}setTranslation(e,r,i=!1){r=this.compiler.compileTranslations(r,e),this.translations[e]=i&&this.translations[e]?eC(this.translations[e],r):r,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(r=>{-1===this.langs.indexOf(r)&&this.langs.push(r)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,r,i){let o;if(r instanceof Array){let s={},a=!1;for(let l of r)s[l]=this.getParsedResult(e,l,i),"function"==typeof s[l].subscribe&&(a=!0);if(a){let l;for(let u of r){let c="function"==typeof s[u].subscribe?s[u]:(0,de.of)(s[u]);l=typeof l>"u"?c:(0,F.T)(l,c)}return l.pipe(function x2(){return function I2(t,n){return arguments.length>=2?function(r){return(0,Bf.z)(_u(t,n),Zs(1),Qs(n))(r)}:function(r){return(0,Bf.z)(_u((i,o,s)=>t(i,o,s+1)),Zs(1))(r)}}(A2,[])}(),(0,ye.U)(u=>{let c={};return u.forEach((d,h)=>{c[r[h]]=d}),c}))}return s}if(e&&(o=this.parser.interpolate(this.parser.getValue(e,r),i)),typeof o>"u"&&this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(o=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],r),i)),typeof o>"u"){let s={key:r,translateService:this};typeof i<"u"&&(s.interpolateParams=i),o=this.missingTranslationHandler.handle(s)}return typeof o<"u"?o:r}get(e,r){if(!rr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return V.y.create(i=>{let o=a=>{i.next(a),i.complete()},s=a=>{i.error(a)};this.loadingTranslations.subscribe(a=>{"function"==typeof(a=this.getParsedResult(a,e,r)).subscribe?a.subscribe(o,s):o(a)},s)});{let i=this.getParsedResult(this.translations[this.currentLang],e,r);return"function"==typeof i.subscribe?i:(0,de.of)(i)}}stream(e,r){if(!rr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Js.z)(this.get(e,r),this.onLangChange.pipe(tn(i=>{const o=this.getParsedResult(i.translations,e,r);return"function"==typeof o.subscribe?o:(0,de.of)(o)})))}instant(e,r){if(!rr(e)||!e.length)throw new Error('Parameter "key" required');let i=this.getParsedResult(this.translations[this.currentLang],e,r);if(typeof i.subscribe<"u"){if(e instanceof Array){let o={};return e.forEach((s,a)=>{o[e[a]]=e[a]}),o}return e}return i}set(e,r,i=this.currentLang){this.translations[i][e]=this.compiler.compile(r,i),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang||this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return t.\u0275fac=function(e){return new(e||t)(G(nC),G(ua),G(Lu),G(Vu),G(_p),G(bp),G(vp))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})(),da=(()=>{class t{constructor(e,r,i){this.translateService=e,this.element=r,this._ref=i,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(o=>{o.lang===this.translateService.currentLang&&this.checkNodes(!0,o.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(o=>{this.checkNodes(!0,o.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(o=>{this.checkNodes(!0)}))}set translate(e){e&&(this.key=e,this.checkNodes())}set translateParams(e){ca(this.currentParams,e)||(this.currentParams=e,this.checkNodes(!0))}ngAfterViewChecked(){this.checkNodes()}checkNodes(e=!1,r){let i=this.element.nativeElement.childNodes;i.length||(this.setContent(this.element.nativeElement,this.key),i=this.element.nativeElement.childNodes);for(let o=0;o<i.length;++o){let s=i[o];if(3===s.nodeType){let a;if(this.key)a=this.key,e&&(s.lastKey=null);else{let l=this.getContent(s),u=l.trim();u.length&&(l!==s.currentValue?(a=u,s.originalContent=this.getContent(s)):s.originalContent&&e&&(s.lastKey=null,a=s.originalContent.trim()))}this.updateValue(a,s,r)}}}updateValue(e,r,i){if(e){if(r.lastKey===e&&this.lastParams===this.currentParams)return;this.lastParams=this.currentParams;let o=s=>{s!==e&&(r.lastKey=e),r.originalContent||(r.originalContent=this.getContent(r)),r.currentValue=rr(s)?s:r.originalContent||e,this.setContent(r,this.key?r.currentValue:r.originalContent.replace(e,r.currentValue)),this._ref.markForCheck()};if(rr(i)){let s=this.translateService.getParsedResult(i,e,this.currentParams);"function"==typeof s.subscribe?s.subscribe(o):o(s)}else this.translateService.get(e,this.currentParams).subscribe(o)}}getContent(e){return rr(e.textContent)?e.textContent:e.data}setContent(e,r){rr(e.textContent)?e.textContent=r:e.data=r}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(m(kr),m(Re),m(Tt))},t.\u0275dir=ne({type:t,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}}),t})(),R2=(()=>{class t{constructor(e,r){this.translate=e,this._ref=r,this.value=""}updateValue(e,r,i){let o=s=>{this.value=void 0!==s?s:e,this.lastKey=e,this._ref.markForCheck()};if(i){let s=this.translate.getParsedResult(i,e,r);"function"==typeof s.subscribe?s.subscribe(o):o(s)}this.translate.get(e,r).subscribe(o)}transform(e,...r){if(!e||0===e.length)return e;if(ca(e,this.lastKey)&&ca(r,this.lastParams))return this.value;let i;if(rr(r[0])&&r.length)if("string"==typeof r[0]&&r[0].length){let o=r[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{i=JSON.parse(o)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${r[0]}`)}}else"object"==typeof r[0]&&!Array.isArray(r[0])&&(i=r[0]);return this.lastKey=e,this.lastParams=r,this.updateValue(e,i),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(o=>{this.lastKey&&o.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,i,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,i,o.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,i))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(m(kr,16),m(Tt,16))},t.\u0275pipe=Gt({name:"translate",type:t,pure:!1}),t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})(),O2=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:ua,useClass:ZD},e.compiler||{provide:Lu,useClass:qD},e.parser||{provide:Vu,useClass:tC},e.missingTranslationHandler||{provide:_p,useClass:XD},nC,{provide:vp,useValue:e.isolate},{provide:bp,useValue:e.useDefaultLang},kr]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:ua,useClass:ZD},e.compiler||{provide:Lu,useClass:qD},e.parser||{provide:Vu,useClass:tC},e.missingTranslationHandler||{provide:_p,useClass:XD},{provide:vp,useValue:e.isolate},{provide:bp,useValue:e.useDefaultLang},kr]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({}),t})(),F2=(()=>{class t{constructor(e,r,i,o){this.service=e,this.translateService=r,this.route=i,this.router=o,this.gravityResult="G",this.defaultUnits="m/s\xb2",this.osmLocationSubject$=this.service.osmLocationSubject$,this.status=!1,this.router.events.subscribe(s=>{s instanceof oi&&(this.route.queryParams.subscribe(a=>{let l=!0,u=!0;a.isApp&&(this.status="true"==a.isApp),a.isMetric&&(u="true"==a.isMetric,u||(this.defaultUnits="ft/s\xb2")),a.newLoc&&(this.newLoc=a.newLoc.split(",").map(Number)),localStorage.setItem("isMetric",`${u}`),localStorage.setItem("defaultUnits",this.defaultUnits),this.service.osmLocationSubject$.subscribe(p=>{null!=p.lat&&null!=p.lon&&(this.setNewMarker([p.lat,p.lon],this.translateService.store.translations[`${this.translateService.defaultLang}`]),t.map.setView([p.lat,p.lon],4))});let c=[];if(this.newLoc){c=[this.newLoc[0],this.newLoc[1]],l=!1;let p=!u;(new li).getAltitude(this.newLoc[0],this.newLoc[1]).then(function(b){return(new li).GetGravity(b.results[0].latitude,b.results[0].elevation,!0,p).toFixed(2)}).then(b=>{this.gravityResult=b,document.getElementById("lblGravity").innerHTML=`${b}`,document.getElementById("lblGUnit").innerHTML=this.defaultUnits})}else c=[13.90519,-89.500206];t.map=L.map("map").setView(c,4),L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'\xa9 <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(t.map),L.control.locate().addTo(t.map),t.map.attributionControl.setPrefix(!1);let d=L.icon({iconUrl:"assets/img/Map_pin_icon_green.svg",iconSize:[94/3,128/3]}),h=new L.marker(c,{icon:d,draggable:l});h.on("dragend",this.dragMarker),t.map.addLayer(h),t.map.on("click",p=>this.setNewMarker([p.latlng.lat,p.latlng.lng],this.translateService.store.translations[`${this.translateService.defaultLang}`])),t.map.on("locationfound",p=>this.setNewMarker([p.latlng.lat,p.latlng.lng],this.translateService.store.translations[`${this.translateService.defaultLang}`])),this.resizeMap()}),this.resizeMap())})}onWindowResize(){this.resizeMap()}resizeMap(){let e=this.status?document.body.clientHeight:document.body.clientHeight-(document.getElementById("titleBar").clientHeight+document.getElementById("footer").clientHeight);this.imgMarginTop=e-89,this.imgMarginLeft=document.body.clientWidth/2-89,this.mapHeight=e}setNewMarker(e,r){var i=this;return gp(function*(){let o=yield(new li).getAltitude(parseFloat(e[0]),parseFloat(e[1])),s="true"!=localStorage.getItem("isMetric"),a=new L.DivIcon({className:"my-div-icon",html:`<img style="height:32px;width:23.5px" class="my-div-image" src="assets/img/Map_pin_icon.svg"/>\n <span class="my-div-span">${(new li).GetGravity(o.results[0].latitude,o.results[0].elevation,!0,s).toFixed(4)}${i.defaultUnits}</span>`});new L.marker(e,{icon:a}).bindTooltip(`${r.Latitude}: ${o.results[0].latitude.toFixed(2)}\xb0, ${r.Longitude}: ${o.results[0].longitude.toFixed(2)}\xb0, ${r.Altitude}: ${o.results[0].elevation}m`).addTo(t.map)})()}ngOnInit(){}dragMarker(e){var r=this;return gp(function*(){let i=r.getLatLng();r.setLatLng(i,{draggable:"true"}).bindPopup(i).update();let o="true"!=localStorage.getItem("isMetric"),s=yield(new li).getAltitude(i.lat,i.lng),a=(new li).GetGravity(s.results[0].latitude,s.results[0].elevation,!0,o).toFixed(2);document.getElementById("lblGravity").innerHTML=`${a}`,document.getElementById("lblGUnit").innerHTML=localStorage.getItem("defaultUnits")})()}}return t.\u0275fac=function(e){return new(e||t)(m(mp),m(kr),m(si),m(nn))},t.\u0275cmp=ke({type:t,selectors:[["app-osm-map"]],hostBindings:function(e,r){1&e&&ue("resize",function(){return r.onWindowResize()},0,km)},decls:7,vars:7,consts:[[1,"mapbox"],["id","map",1,"row-fluid","some"],[1,"topCircle","row-fluid","overlay","text-white-50"],["id","divGContainer"],["id","lblGravity"],["id","lblGUnit"]],template:function(e,r){1&e&&(v(0,"div",0),Ee(1,"div",1),v(2,"div",2)(3,"div",3)(4,"label",4),S(5),D(),Ee(6,"label",5),D()()()),2&e&&(H(1),Jr("height",r.mapHeight,"px"),H(1),Jr("margin-top",r.imgMarginTop,"px")("margin-left",r.imgMarginLeft,"px"),H(3),lt(r.gravityResult))},styles:["#map[_ngcontent-%COMP%]{height:400px;width:100%}#divGContainer[_ngcontent-%COMP%]{margin-top:15px}#lblGravity[_ngcontent-%COMP%]{font-size:50px}#lblGUnit[_ngcontent-%COMP%]{font-size:small}.topCircle[_ngcontent-%COMP%]{height:90px;width:180px;background:#343a40!important;border-top-left-radius:180px;border-top-right-radius:180px;margin:auto;position:absolute;z-index:400;text-align:center}.mapbox[_ngcontent-%COMP%]{position:relative}.mapbox[_ngcontent-%COMP%] .overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;pointer-events:none}.mapbox[_ngcontent-%COMP%] .overlay[_ngcontent-%COMP%] .topCircle[_ngcontent-%COMP%]{pointer-events:initial}"]}),t})();var rn=f(3753),rC=f(8723),iC=f(1946),Bu=(f(7274),f(1746));function vt(t){return n=>n.lift(new L2(t))}class L2{constructor(n){this.notifier=n}call(n,e){const r=new V2(n),i=(0,xr.ft)(this.notifier,new xr.IY(r));return i&&!r.seenValue?(r.add(i),e.subscribe(r)):r}}class V2 extends xr.Ds{constructor(n){super(n),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function $u(t,n){return e=>e.lift(new B2(t,n))}class B2{constructor(n,e){this.compare=n,this.keySelector=e}call(n,e){return e.subscribe(new $2(n,this.compare,this.keySelector))}}class $2 extends Pn.L{constructor(n,e,r){super(n),this.keySelector=r,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(n,e){return n===e}_next(n){let e;try{const{keySelector:i}=this;e=i?i(n):n}catch(i){return this.destination.error(i)}let r=!1;if(this.hasKey)try{const{compare:i}=this;r=i(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;r||(this.key=e,this.destination.next(n))}}var H2=f(826),j2=f(448);function Dp(...t){return n=>{let e;return"function"==typeof t[t.length-1]&&(e=t.pop()),n.lift(new U2(t,e))}}class U2{constructor(n,e){this.observables=n,this.project=e}call(n,e){return e.subscribe(new G2(n,this.observables,this.project))}}class G2 extends H2.L{constructor(n,e,r){super(n),this.observables=e,this.project=r,this.toRespond=[];const i=e.length;this.values=new Array(i);for(let o=0;o<i;o++)this.toRespond.push(o);for(let o=0;o<i;o++)this.add((0,j2.D)(this,e[o],void 0,o))}notifyNext(n,e,r){this.values[r]=e;const i=this.toRespond;if(i.length>0){const o=i.indexOf(r);-1!==o&&i.splice(o,1)}}notifyComplete(){}_next(n){if(0===this.toRespond.length){const e=[n,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(n){let e;try{e=this.project.apply(this,n)}catch(r){return void this.destination.error(r)}this.destination.next(e)}}var oC=f(353),sC=f(9312);class z2{constructor(n,e){this.delay=n,this.scheduler=e}call(n,e){return e.subscribe(new Cp(n,this.delay,this.scheduler))}}class Cp extends Pn.L{constructor(n,e,r){super(n),this.delay=e,this.scheduler=r,this.queue=[],this.active=!1,this.errored=!1}static dispatch(n){const e=n.source,r=e.queue,i=n.scheduler,o=n.destination;for(;r.length>0&&r[0].time-i.now()<=0;)r.shift().notification.observe(o);if(r.length>0){const s=Math.max(0,r[0].time-i.now());this.schedule(n,s)}else this.unsubscribe(),e.active=!1}_schedule(n){this.active=!0,this.destination.add(n.schedule(Cp.dispatch,this.delay,{source:this,destination:this.destination,scheduler:n}))}scheduleNotification(n){if(!0===this.errored)return;const e=this.scheduler,r=new K2(e.now()+this.delay,n);this.queue.push(r),!1===this.active&&this._schedule(e)}_next(n){this.scheduleNotification(sC.P.createNext(n))}_error(n){this.errored=!0,this.queue=[],this.destination.error(n),this.unsubscribe()}_complete(){this.scheduleNotification(sC.P.createComplete()),this.unsubscribe()}}class K2{constructor(n,e){this.time=n,this.notification=e}}class Y2{constructor(n){this.total=n}call(n,e){return e.subscribe(new Q2(n,this.total))}}class Q2 extends Pn.L{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){++this.count>this.total&&this.destination.next(n)}}const Fo=["*"],VL=["dialog"],BL=["ngbNavOutlet",""];function $L(t,n){}const HL=function(t){return{$implicit:t}};function jL(t,n){if(1&t&&(v(0,"div",2),Q(1,$L,0,0,"ng-template",3),D()),2&t){const e=ee().$implicit,r=ee();$("item",e)("nav",r.nav)("role",r.paneRole),H(1),$("ngTemplateOutlet",(null==e.contentTpl?null:e.contentTpl.templateRef)||null)("ngTemplateOutletContext",As(5,HL,e.active||r.isPanelTransitioning(e)))}}function UL(t,n){if(1&t&&Q(0,jL,2,7,"div",1),2&t){const e=n.$implicit,r=ee();$("ngIf",e.isPanelInDom()||r.isPanelTransitioning(e))}}function PV(t,n){if(1&t&&(v(0,"strong",3),S(1),D()),2&t){const e=ee();H(1),lt(e.header)}}function kV(t,n){}function LV(t,n){if(1&t){const e=at();v(0,"div",4),Q(1,kV,0,0,"ng-template",5),v(2,"button",6),ue("click",function(){return Ge(e),We(ee().hide())}),v(3,"span",7),S(4,"\xd7"),D()()()}if(2&t){const e=ee(),r=Ht(1);H(1),$("ngTemplateOutlet",e.contentHeaderTpl||r)}}function VV(t,n){if(1&t&&(v(0,"span"),S(1),D()),2&t){const e=ee().$implicit;$n(ee().highlightClass),H(1),lt(e)}}function BV(t,n){1&t&&S(0),2&t&<(ee().$implicit)}function $V(t,n){if(1&t&&(Q(0,VV,2,3,"span",1),Q(1,BV,1,1,"ng-template",null,2,jt)),2&t){const e=n.odd,r=Ht(2);$("ngIf",e)("ngIfElse",r)}}function HV(t,n){if(1&t&&Ee(0,"ngb-highlight",2),2&t){const r=n.term;$("result",(0,n.formatter)(n.result))("term",r)}}function jV(t,n){}const UV=function(t,n,e){return{result:t,term:n,formatter:e}};function GV(t,n){if(1&t){const e=at();v(0,"button",3),ue("mouseenter",function(){const o=Ge(e).index;return We(ee().markActive(o))})("click",function(){const o=Ge(e).$implicit;return We(ee().select(o))}),Q(1,jV,0,0,"ng-template",4),D()}if(2&t){const e=n.$implicit,r=n.index,i=ee(),o=Ht(1);De("active",r===i.activeIdx),$("id",i.id+"-"+r),H(1),$("ngTemplateOutlet",i.resultTemplate||o)("ngTemplateOutletContext",Ml(5,UV,e,i.term,i.formatter))}}function ha(t){return null!=t?`${t}`:""}function ui(t){return null!=t}function ko(t){return(t||document.body).getBoundingClientRect()}function uC(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}typeof Element<"u"&&!Element.prototype.closest&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){let n=this;if(!document.documentElement.contains(n))return null;do{if(n.matches(t))return n;n=n.parentElement||n.parentNode}while(null!==n&&1===n.nodeType);return null});const cC={animation:!0,transitionTimerDelayMs:5};let Ut=(()=>{class t{constructor(){this.animation=cC.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({factory:function(){return new t},token:t,providedIn:"root"}),t})();const QV=()=>{},{transitionTimerDelayMs:ZV}=cC,fa=new Map,Lt=(t,n,e,r)=>{let i=r.context||{};const o=fa.get(n);if(o)switch(r.runningTransition){case"continue":return ei.E;case"stop":t.run(()=>o.transition$.complete()),i=Object.assign(o.context,i),fa.delete(n)}const s=e(n,r.animation,i)||QV;if(!r.animation||"none"===window.getComputedStyle(n).transitionProperty)return t.run(()=>s()),(0,de.of)(void 0).pipe(function KV(t){return n=>new V.y(e=>n.subscribe(s=>t.run(()=>e.next(s)),s=>t.run(()=>e.error(s)),()=>t.run(()=>e.complete())))}(t));const a=new w.xQ,l=new w.xQ,u=a.pipe(function k2(...t){return n=>(0,Js.z)(n,(0,de.of)(...t))}(!0));fa.set(n,{transition$:a,complete:()=>{l.next(),l.complete()},context:i});const c=function YV(t){const{transitionDelay:n,transitionDuration:e}=window.getComputedStyle(t);return 1e3*(parseFloat(n)+parseFloat(e))}(n);return t.runOutsideAngular(()=>{const d=(0,rn.R)(n,"transitionend").pipe(vt(u),(0,yt.h)(({target:p})=>p===n)),h=(0,rC.H)(c+ZV).pipe(vt(u));(0,iC.S3)(h,d,l).pipe(vt(u)).subscribe(()=>{fa.delete(n),t.run(()=>{s(),a.next(),a.complete()})})}),a.asObservable()};let gC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({imports:[Fn]}),t})(),mC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({imports:[Fn]}),t})(),yC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({}),t})(),DC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({imports:[Fn]}),t})(),CC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({}),t})();var Ie=(()=>{return(t=Ie||(Ie={}))[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown",Ie;var t})();const Ku=(t,n)=>!!n&&n.some(e=>e.contains(t)),TC=(t,n)=>!n||null!=function zV(t,n){return!n||typeof t.closest>"u"?null:t.closest(n)}(t,n),AB=typeof navigator<"u"&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function ga(t,n,e,r,i,o,s,a){e&&t.runOutsideAngular((t=>AB?()=>setTimeout(()=>t(),100):t)(()=>{const u=(0,rn.R)(n,"keydown").pipe(vt(i),(0,yt.h)(h=>h.which===Ie.Escape),pt(h=>h.preventDefault())),c=(0,rn.R)(n,"mousedown").pipe((0,ye.U)(h=>{const p=h.target;return 2!==h.button&&!Ku(p,s)&&("inside"===e?Ku(p,o)&&TC(p,a):"outside"===e?!Ku(p,o):TC(p,a)||!Ku(p,o))}),vt(i)),d=(0,rn.R)(n,"mouseup").pipe(Dp(c),(0,yt.h)(([h,p])=>p),function aC(t,n=oC.P){const r=function W2(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-n.now():Math.abs(t);return i=>i.lift(new z2(r,n))}(0),vt(i));(0,iC.S3)([u.pipe((0,ye.U)(h=>0)),d.pipe((0,ye.U)(h=>1))]).subscribe(h=>t.run(()=>r(h)))}))}const NC=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function SC(t){const n=Array.from(t.querySelectorAll(NC)).filter(e=>-1!==e.tabIndex);return[n[0],n[n.length-1]]}const OB=/\s+/,AC=new class RB{getAllStyles(n){return window.getComputedStyle(n)}getStyle(n,e){return this.getAllStyles(n)[e]}isStaticPositioned(n){return"static"===(this.getStyle(n,"position")||"static")}offsetParent(n){let e=n.offsetParent||document.documentElement;for(;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement}position(n,e=!0){let r,i={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(n,"position"))r=n.getBoundingClientRect(),r={top:r.top,bottom:r.bottom,left:r.left,right:r.right,height:r.height,width:r.width};else{const o=this.offsetParent(n);r=this.offset(n,!1),o!==document.documentElement&&(i=this.offset(o,!1)),i.top+=o.clientTop,i.left+=o.clientLeft}return r.top-=i.top,r.bottom-=i.top,r.left-=i.left,r.right-=i.left,e&&(r.top=Math.round(r.top),r.bottom=Math.round(r.bottom),r.left=Math.round(r.left),r.right=Math.round(r.right)),r}offset(n,e=!0){const r=n.getBoundingClientRect(),i_top=window.pageYOffset-document.documentElement.clientTop,i_left=window.pageXOffset-document.documentElement.clientLeft;let o={height:r.height||n.offsetHeight,width:r.width||n.offsetWidth,top:r.top+i_top,bottom:r.bottom+i_top,left:r.left+i_left,right:r.right+i_left};return e&&(o.height=Math.round(o.height),o.width=Math.round(o.width),o.top=Math.round(o.top),o.bottom=Math.round(o.bottom),o.left=Math.round(o.left),o.right=Math.round(o.right)),o}positionElements(n,e,r,i){const[o="top",s="center"]=r.split("-"),a=i?this.offset(n,!1):this.position(n,!1),l=this.getAllStyles(e),u=parseFloat(l.marginTop),c=parseFloat(l.marginBottom),d=parseFloat(l.marginLeft),h=parseFloat(l.marginRight);let p=0,b=0;switch(o){case"top":p=a.top-(e.offsetHeight+u+c);break;case"bottom":p=a.top+a.height;break;case"left":b=a.left-(e.offsetWidth+d+h);break;case"right":b=a.left+a.width}switch(s){case"top":p=a.top;break;case"bottom":p=a.top+a.height-e.offsetHeight;break;case"left":b=a.left;break;case"right":b=a.left+a.width-e.offsetWidth;break;case"center":"top"===o||"bottom"===o?b=a.left+a.width/2-e.offsetWidth/2:p=a.top+a.height/2-e.offsetHeight/2}e.style.transform=`translate(${Math.round(b)}px, ${Math.round(p)}px)`;const I=e.getBoundingClientRect(),U=document.documentElement,Y=window.innerHeight||U.clientHeight,re=window.innerWidth||U.clientWidth;return I.left>=0&&I.top>=0&&I.right<=re&&I.bottom<=Y}};new Date(1882,10,12),new Date(2174,10,25);let VC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({imports:[Fn,R1]}),t})(),Pp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ne({type:t,selectors:[["",8,"navbar"]]}),t})(),HC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({}),t})(),jC=(()=>{class t{constructor(e){this._ngbConfig=e,this.backdrop=!0,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(G(Ut))},t.\u0275prov=Z({factory:function(){return new t(G(Ut))},token:t,providedIn:"root"}),t})();class Pi{constructor(n,e,r){this.nodes=n,this.viewRef=e,this.componentRef=r}}class kp{constructor(n,e,r,i,o,s,a){this._type=n,this._injector=e,this._viewContainerRef=r,this._renderer=i,this._ngZone=o,this._componentFactoryResolver=s,this._applicationRef=a,this._windowRef=null,this._contentRef=null}open(n,e,r=!1){this._windowRef||(this._contentRef=this._getContentRef(n,e),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),this._viewContainerRef.length,this._injector,this._contentRef.nodes));const{nativeElement:i}=this._windowRef.location,o=this._ngZone.onStable.pipe(It(1),(0,vn.zg)(()=>Lt(this._ngZone,i,({classList:s})=>s.add("show"),{animation:r,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:o}}close(n=!1){return this._windowRef?Lt(this._ngZone,this._windowRef.location.nativeElement,({classList:e})=>e.remove("show"),{animation:n,runningTransition:"stop"}).pipe(pt(()=>{var e;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),null!==(e=this._contentRef)&&void 0!==e&&e.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):(0,de.of)(void 0)}_getContentRef(n,e){if(n){if(n instanceof Xe){const r=n.createEmbeddedView(e);return this._applicationRef.attachView(r),new Pi([r.rootNodes],r)}return new Pi([[this._renderer.createText(`${n}`)]])}return new Pi([])}}const KB=()=>{};let UC=(()=>{class t{constructor(e){this._document=e}compensate(){const e=this._getWidth();return this._isPresent(e)?this._adjustBody(e):KB}_adjustBody(e){const r=this._document.body,i=r.style.paddingRight,o=parseFloat(window.getComputedStyle(r)["padding-right"]);return r.style["padding-right"]=`${o+e}px`,()=>r.style["padding-right"]=i}_isPresent(e){const r=this._document.body.getBoundingClientRect();return window.innerWidth-(r.left+r.right)>=e-.1*e}_getWidth(){const e=this._document.createElement("div");e.className="modal-scrollbar-measure";const r=this._document.body;r.appendChild(e);const i=e.getBoundingClientRect().width-e.clientWidth;return r.removeChild(e),i}}return t.\u0275fac=function(e){return new(e||t)(G(qe))},t.\u0275prov=Z({factory:function(){return new t(G(qe))},token:t,providedIn:"root"}),t})(),JB=(()=>{class t{constructor(e,r){this._el=e,this._zone=r}ngOnInit(){this._zone.onStable.asObservable().pipe(It(1)).subscribe(()=>{Lt(this._zone,this._el.nativeElement,(e,r)=>{r&&ko(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return Lt(this._zone,this._el.nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return t.\u0275fac=function(e){return new(e||t)(m(Re),m(Oe))},t.\u0275cmp=ke({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(e,r){2&e&&($n("modal-backdrop"+(r.backdropClass?" "+r.backdropClass:"")),De("show",!r.animation)("fade",r.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,r){},encapsulation:2}),t})();class $o{close(n){}dismiss(n){}}class YB{constructor(n,e,r,i){this._windowCmptRef=n,this._contentRef=e,this._backdropCmptRef=r,this._beforeDismiss=i,this._closed=new w.xQ,this._dismissed=new w.xQ,this._hidden=new w.xQ,n.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,s)=>{this._resolve=o,this._reject=s}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(vt(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(vt(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();e&&e.then?e.then(r=>{!1!==r&&this._dismiss(n)},()=>{}):!1!==e&&this._dismiss(n)}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():(0,de.of)(void 0);n.subscribe(()=>{const{nativeElement:r}=this._windowCmptRef.location;r.parentNode.removeChild(r),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:r}=this._backdropCmptRef.location;r.parentNode.removeChild(r),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),(0,Bu.$R)(n,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var va=(()=>{return(t=va||(va={}))[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",va;var t})();let QB=(()=>{class t{constructor(e,r,i){this._document=e,this._elRef=r,this._zone=i,this._closed$=new w.xQ,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new se,this.shown=new w.xQ,this.hidden=new w.xQ}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(It(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,r={animation:this.animation,runningTransition:"stop"},i=Lt(this._zone,e,()=>e.classList.remove("show"),r),o=Lt(this._zone,this._dialogEl.nativeElement,()=>{},r),s=(0,Bu.$R)(i,o);return s.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),s}_show(){const e={animation:this.animation,runningTransition:"continue"},r=Lt(this._zone,this._elRef.nativeElement,(o,s)=>{s&&ko(o),o.classList.add("show")},e),i=Lt(this._zone,this._dialogEl.nativeElement,()=>{},e);(0,Bu.$R)(r,i).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{(0,rn.R)(e,"keydown").pipe(vt(this._closed$),(0,yt.h)(i=>i.which===Ie.Escape)).subscribe(i=>{this.keyboard?requestAnimationFrame(()=>{i.defaultPrevented||this._zone.run(()=>this.dismiss(va.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let r=!1;(0,rn.R)(this._dialogEl.nativeElement,"mousedown").pipe(vt(this._closed$),pt(()=>r=!1),tn(()=>(0,rn.R)(e,"mouseup").pipe(vt(this._closed$),It(1))),(0,yt.h)(({target:i})=>e===i)).subscribe(()=>{r=!0}),(0,rn.R)(e,"click").pipe(vt(this._closed$)).subscribe(({target:i})=>{e===i&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!r&&this._zone.run(()=>this.dismiss(va.BACKDROP_CLICK))),r=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const r=e.querySelector("[ngbAutofocus]"),i=SC(e)[0];(r||i||e).focus()}}_restoreFocus(){const e=this._document.body,r=this._elWithFocus;let i;i=r&&r.focus&&e.contains(r)?r:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>i.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&Lt(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return t.\u0275fac=function(e){return new(e||t)(m(qe),m(Re),m(Oe))},t.\u0275cmp=ke({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(e,r){if(1&e&&wi(VL,7),2&e){let i;Qe(i=Ze())&&(r._dialogEl=i.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,r){2&e&&(Be("aria-modal",!0)("aria-labelledby",r.ariaLabelledBy)("aria-describedby",r.ariaDescribedBy),$n("modal d-block"+(r.windowClass?" "+r.windowClass:"")),De("fade",r.animation))},inputs:{backdrop:"backdrop",keyboard:"keyboard",animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:Fo,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,r){1&e&&(vi(),v(0,"div",0,1)(2,"div",2),bi(3),D()()),2&e&&$n("modal-dialog"+(r.size?" modal-"+r.size:"")+(r.centered?" modal-dialog-centered":"")+(r.scrollable?" modal-dialog-scrollable":"")+(r.modalDialogClass?" "+r.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}"],encapsulation:2}),t})(),GC=(()=>{class t{constructor(e,r,i,o,s,a){this._applicationRef=e,this._injector=r,this._document=i,this._scrollBar=o,this._rendererFactory=s,this._ngZone=a,this._activeWindowCmptHasChanged=new w.xQ,this._ariaHiddenValues=new Map,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new se,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const l=this._windowCmpts[this._windowCmpts.length-1];((t,n,e,r=!1)=>{t.runOutsideAngular(()=>{const i=(0,rn.R)(n,"focusin").pipe(vt(e),(0,ye.U)(o=>o.target));(0,rn.R)(n,"keydown").pipe(vt(e),(0,yt.h)(o=>o.which===Ie.Tab),Dp(i)).subscribe(([o,s])=>{const[a,l]=SC(n);(s===a||s===n)&&o.shiftKey&&(l.focus(),o.preventDefault()),s===l&&!o.shiftKey&&(a.focus(),o.preventDefault())}),r&&(0,rn.R)(n,"click").pipe(vt(e),Dp(i),(0,ye.U)(o=>o[1])).subscribe(o=>o.focus())})})(this._ngZone,l.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(l.location.nativeElement)}})}open(e,r,i,o){const s=o.container instanceof HTMLElement?o.container:ui(o.container)?this._document.querySelector(o.container):this._document.body,a=this._rendererFactory.createRenderer(null,null),l=this._scrollBar.compensate(),u=()=>{this._modalRefs.length||(a.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!s)throw new Error(`The specified modal container "${o.container||"body"}" was not found in the DOM.`);const c=new $o,d=this._getContentRef(e,o.injector||r,i,c,o);let h=!1!==o.backdrop?this._attachBackdrop(e,s):void 0,p=this._attachWindowComponent(e,s,d),b=new YB(p,d,h,o.beforeDismiss);return this._registerModalRef(b),this._registerWindowCmpt(p),b.result.then(l,l),b.result.then(u,u),c.close=I=>{b.close(I)},c.dismiss=I=>{b.dismiss(I)},this._applyWindowOptions(p.instance,o),1===this._modalRefs.length&&a.addClass(this._document.body,"modal-open"),h&&h.instance&&(this._applyBackdropOptions(h.instance,o),h.changeDetectorRef.detectChanges()),p.changeDetectorRef.detectChanges(),b}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(r=>r.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e,r){let o=e.resolveComponentFactory(JB).create(this._injector);return this._applicationRef.attachView(o.hostView),r.appendChild(o.location.nativeElement),o}_attachWindowComponent(e,r,i){let s=e.resolveComponentFactory(QB).create(this._injector,i.nodes);return this._applicationRef.attachView(s.hostView),r.appendChild(s.location.nativeElement),s}_applyWindowOptions(e,r){this._windowAttributes.forEach(i=>{ui(r[i])&&(e[i]=r[i])})}_applyBackdropOptions(e,r){this._backdropAttributes.forEach(i=>{ui(r[i])&&(e[i]=r[i])})}_getContentRef(e,r,i,o,s){return i?i instanceof Xe?this._createFromTemplateRef(i,o):function ju(t){return"string"==typeof t}(i)?this._createFromString(i):this._createFromComponent(e,r,i,o,s):new Pi([])}_createFromTemplateRef(e,r){const o=e.createEmbeddedView({$implicit:r,close(s){r.close(s)},dismiss(s){r.dismiss(s)}});return this._applicationRef.attachView(o),new Pi([o.rootNodes],o)}_createFromString(e){const r=this._document.createTextNode(`${e}`);return new Pi([[r]])}_createFromComponent(e,r,i,o,s){const a=e.resolveComponentFactory(i),l=Ot.create({providers:[{provide:$o,useValue:o}],parent:r}),u=a.create(l),c=u.location.nativeElement;return s.scrollable&&c.classList.add("component-host-scrollable"),this._applicationRef.attachView(u.hostView),new Pi([[c]],u.hostView,u)}_setAriaHidden(e){const r=e.parentElement;r&&e!==this._document.body&&(Array.from(r.children).forEach(i=>{i!==e&&"SCRIPT"!==i.nodeName&&(this._ariaHiddenValues.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}),this._setAriaHidden(r))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,r)=>{e?r.setAttribute("aria-hidden",e):r.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const r=()=>{const i=this._modalRefs.indexOf(e);i>-1&&(this._modalRefs.splice(i,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(r,r)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const r=this._windowCmpts.indexOf(e);r>-1&&(this._windowCmpts.splice(r,1),this._activeWindowCmptHasChanged.next())})}}return t.\u0275fac=function(e){return new(e||t)(G(Nr),G(Ot),G(qe),G(UC),G(tl),G(Oe))},t.\u0275prov=Z({factory:function(){return new t(G(Nr),G(Xa),G(qe),G(UC),G(tl),G(Oe))},token:t,providedIn:"root"}),t})(),WC=(()=>{class t{constructor(e,r,i,o){this._moduleCFR=e,this._injector=r,this._modalStack=i,this._config=o}open(e,r={}){const i=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),r);return this._modalStack.open(this._moduleCFR,this._injector,e,i)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return t.\u0275fac=function(e){return new(e||t)(G(Yn),G(Ot),G(GC),G(jC))},t.\u0275prov=Z({factory:function(){return new t(G(Yn),G(Xa),G(GC),G(jC))},token:t,providedIn:"root"}),t})(),zC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({providers:[WC]}),t})(),ZB=(()=>{class t{constructor(e){this._ngbConfig=e,this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(G(Ut))},t.\u0275prov=Z({factory:function(){return new t(G(Ut))},token:t,providedIn:"root"}),t})();const KC=t=>ui(t)&&""!==t;let XB=0,Lp=(()=>{class t{constructor(e){this.templateRef=e}}return t.\u0275fac=function(e){return new(e||t)(m(Xe))},t.\u0275dir=ne({type:t,selectors:[["ng-template","ngbNavContent",""]]}),t})(),qu=(()=>{class t{constructor(e,r){this.elementRef=r,this.disabled=!1,this.shown=new se,this.hidden=new se,this._nav=e}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){ui(this.domId)||(this.domId="ngb-nav-"+XB++)}get active(){return this._nav.activeId===this.id}get id(){return KC(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(ui(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}}return t.\u0275fac=function(e){return new(e||t)(m(X(()=>ec)),m(Re))},t.\u0275dir=ne({type:t,selectors:[["","ngbNavItem",""]],contentQueries:function(e,r,i){if(1&e&&dt(i,Lp,4),2&e){let o;Qe(o=Ze())&&(r.contentTpls=o)}},hostVars:2,hostBindings:function(e,r){2&e&&De("nav-item",!0)},inputs:{disabled:"disabled",domId:"domId",destroyOnHide:"destroyOnHide",_id:["ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"]}),t})(),ec=(()=>{class t{constructor(e,r,i,o){this.role=e,this._cd=i,this._document=o,this.activeIdChange=new se,this.shown=new se,this.hidden=new se,this.destroy$=new w.xQ,this.navItemChange$=new w.xQ,this.navChange=new se,this.animation=r.animation,this.destroyOnHide=r.destroyOnHide,this.orientation=r.orientation,this.roles=r.roles,this.keyboard=r.keyboard}click(e){e.disabled||this._updateActiveId(e.id)}onKeyDown(e){if("tablist"!==this.roles||!this.keyboard)return;const r=e.which,i=this.links.filter(a=>!a.navItem.disabled),{length:o}=i;let s=-1;if(i.forEach((a,l)=>{a.elRef.nativeElement===this._document.activeElement&&(s=l)}),o){switch(r){case Ie.ArrowLeft:if("vertical"===this.orientation)return;s=(s-1+o)%o;break;case Ie.ArrowRight:if("vertical"===this.orientation)return;s=(s+1)%o;break;case Ie.ArrowDown:if("horizontal"===this.orientation)return;s=(s+1)%o;break;case Ie.ArrowUp:if("horizontal"===this.orientation)return;s=(s-1+o)%o;break;case Ie.Home:s=0;break;case Ie.End:s=o-1}"changeWithArrows"===this.keyboard&&this.select(i[s].navItem.id),i[s].elRef.nativeElement.focus(),e.preventDefault()}}select(e){this._updateActiveId(e,!1)}ngAfterContentInit(){if(!ui(this.activeId)){const e=this.items.first?this.items.first.id:null;KC(e)&&(this._updateActiveId(e,!1),this._cd.detectChanges())}this.items.changes.pipe(vt(this.destroy$)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:e}){e&&!e.firstChange&&this._notifyItemChanged(e.currentValue)}ngOnDestroy(){this.destroy$.next()}_updateActiveId(e,r=!0){if(this.activeId!==e){let i=!1;r&&this.navChange.emit({activeId:this.activeId,nextId:e,preventDefault:()=>{i=!0}}),i||(this.activeId=e,this.activeIdChange.emit(e),this._notifyItemChanged(e))}}_notifyItemChanged(e){this.navItemChange$.next(this._getItemById(e))}_getItemById(e){return this.items&&this.items.find(r=>r.id===e)||null}}return t.\u0275fac=function(e){return new(e||t)(Ur("role"),m(ZB),m(Tt),m(qe))},t.\u0275dir=ne({type:t,selectors:[["","ngbNav",""]],contentQueries:function(e,r,i){if(1&e&&(dt(i,qu,4),dt(i,Vp,5)),2&e){let o;Qe(o=Ze())&&(r.items=o),Qe(o=Ze())&&(r.links=o)}},hostVars:6,hostBindings:function(e,r){1&e&&ue("keydown.arrowLeft",function(o){return r.onKeyDown(o)})("keydown.arrowRight",function(o){return r.onKeyDown(o)})("keydown.arrowDown",function(o){return r.onKeyDown(o)})("keydown.arrowUp",function(o){return r.onKeyDown(o)})("keydown.Home",function(o){return r.onKeyDown(o)})("keydown.End",function(o){return r.onKeyDown(o)}),2&e&&(Be("aria-orientation","vertical"===r.orientation&&"tablist"===r.roles?"vertical":void 0)("role",r.role?r.role:r.roles?"tablist":void 0),De("nav",!0)("flex-column","vertical"===r.orientation))},inputs:{animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard",activeId:"activeId"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],features:[it]}),t})(),Vp=(()=>{class t{constructor(e,r,i,o){this.role=e,this.navItem=r,this.nav=i,this.elRef=o}hasNavItemClass(){return this.navItem.elementRef.nativeElement.nodeType===Node.COMMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(Ur("role"),m(qu),m(ec),m(Re))},t.\u0275dir=ne({type:t,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostVars:14,hostBindings:function(e,r){1&e&&ue("click",function(o){return r.nav.click(r.navItem),o.preventDefault()}),2&e&&(Rn("id",r.navItem.domId),Be("role",r.role?r.role:r.nav.roles?"tab":void 0)("tabindex",r.navItem.disabled?-1:void 0)("aria-controls",r.navItem.isPanelInDom()?r.navItem.panelDomId:null)("aria-selected",r.navItem.active)("aria-disabled",r.navItem.disabled),De("nav-link",!0)("nav-item",r.hasNavItemClass())("active",r.navItem.active)("disabled",r.navItem.disabled))}}),t})();const qB=({classList:t})=>(t.remove("show"),()=>t.remove("active")),e3=(t,n)=>{n&&ko(t),t.classList.add("show")};let Bp=(()=>{class t{constructor(e){this.elRef=e}}return t.\u0275fac=function(e){return new(e||t)(m(Re))},t.\u0275dir=ne({type:t,selectors:[["","ngbNavPane",""]],hostAttrs:[1,"tab-pane"],hostVars:5,hostBindings:function(e,r){2&e&&(Rn("id",r.item.panelDomId),Be("role",r.role?r.role:r.nav.roles?"tabpanel":void 0)("aria-labelledby",r.item.domId),De("fade",r.nav.animation))},inputs:{item:"item",nav:"nav",role:"role"}}),t})(),JC=(()=>{class t{constructor(e,r){this._cd=e,this._ngZone=r,this._activePane=null}isPanelTransitioning(e){var r;return(null===(r=this._activePane)||void 0===r?void 0:r.item)===e}ngAfterViewInit(){var e;this._updateActivePane(),this.nav.navItemChange$.pipe(vt(this.nav.destroy$),mu((null===(e=this._activePane)||void 0===e?void 0:e.item)||null),$u(),function J2(t){return n=>n.lift(new Y2(t))}(1)).subscribe(r=>{const i={animation:this.nav.animation,runningTransition:"stop"};this._cd.detectChanges(),this._activePane?Lt(this._ngZone,this._activePane.elRef.nativeElement,qB,i).subscribe(()=>{var o;const s=null===(o=this._activePane)||void 0===o?void 0:o.item;this._activePane=this._getPaneForItem(r),this._cd.markForCheck(),this._activePane&&(this._activePane.elRef.nativeElement.classList.add("active"),Lt(this._ngZone,this._activePane.elRef.nativeElement,e3,i).subscribe(()=>{r&&(r.shown.emit(),this.nav.shown.emit(r.id))})),s&&(s.hidden.emit(),this.nav.hidden.emit(s.id))}):this._updateActivePane()})}_updateActivePane(){var e,r;this._activePane=this._getActivePane(),null===(e=this._activePane)||void 0===e||e.elRef.nativeElement.classList.add("show"),null===(r=this._activePane)||void 0===r||r.elRef.nativeElement.classList.add("active")}_getPaneForItem(e){return this._panes&&this._panes.find(r=>r.item===e)||null}_getActivePane(){return this._panes&&this._panes.find(e=>e.item.active)||null}}return t.\u0275fac=function(e){return new(e||t)(m(Tt),m(Oe))},t.\u0275cmp=ke({type:t,selectors:[["","ngbNavOutlet",""]],viewQuery:function(e,r){if(1&e&&wi(Bp,5),2&e){let i;Qe(i=Ze())&&(r._panes=i)}},hostVars:2,hostBindings:function(e,r){2&e&&De("tab-content",!0)},inputs:{paneRole:"paneRole",nav:["ngbNavOutlet","nav"]},attrs:BL,decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],["ngbNavPane","",3,"item","nav","role",4,"ngIf"],["ngbNavPane","",3,"item","nav","role"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,r){1&e&&Q(0,UL,1,1,"ng-template",0),2&e&&$("ngForOf",r.nav.items)},dependencies:[mn,_n,Un,Bp],encapsulation:2,changeDetection:0}),t})(),YC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({imports:[Fn]}),t})(),rw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({imports:[Fn]}),t})(),sw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({imports:[Fn]}),t})(),aw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({imports:[Fn]}),t})(),lw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({imports:[Fn]}),t})(),hw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({imports:[Fn]}),t})(),y3=(()=>{class t{constructor(e){this._ngbConfig=e,this.autohide=!0,this.delay=500,this.ariaLive="polite"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return t.\u0275fac=function(e){return new(e||t)(G(Ut))},t.\u0275prov=Z({factory:function(){return new t(G(Ut))},token:t,providedIn:"root"}),t})();const v3=(t,n)=>{const{classList:e}=t;if(n)return e.remove("hide"),ko(t),e.add("showing"),()=>{e.remove("showing"),e.add("show")};e.add("show")},b3=({classList:t})=>(t.remove("show"),()=>{t.add("hide")});let D3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ne({type:t,selectors:[["","ngbToastHeader",""]]}),t})(),C3=(()=>{class t{constructor(e,r,i,o){this.ariaLive=e,this._zone=i,this._element=o,this.contentHeaderTpl=null,this.shown=new se,this.hidden=new se,null==this.ariaLive&&(this.ariaLive=r.ariaLive),this.delay=r.delay,this.autohide=r.autohide,this.animation=r.animation}ngAfterContentInit(){this._zone.onStable.asObservable().pipe(It(1)).subscribe(()=>{this._init(),this.show()})}ngOnChanges(e){"autohide"in e&&(this._clearTimeout(),this._init())}hide(){this._clearTimeout();const e=Lt(this._zone,this._element.nativeElement,b3,{animation:this.animation,runningTransition:"stop"});return e.subscribe(()=>{this.hidden.emit()}),e}show(){const e=Lt(this._zone,this._element.nativeElement,v3,{animation:this.animation,runningTransition:"continue"});return e.subscribe(()=>{this.shown.emit()}),e}_init(){this.autohide&&!this._timeoutID&&(this._timeoutID=setTimeout(()=>this.hide(),this.delay))}_clearTimeout(){this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null)}}return t.\u0275fac=function(e){return new(e||t)(Ur("aria-live"),m(y3),m(Oe),m(Re))},t.\u0275cmp=ke({type:t,selectors:[["ngb-toast"]],contentQueries:function(e,r,i){if(1&e&&dt(i,D3,7,Xe),2&e){let o;Qe(o=Ze())&&(r.contentHeaderTpl=o.first)}},hostAttrs:["role","alert","aria-atomic","true",1,"toast"],hostVars:3,hostBindings:function(e,r){2&e&&(Be("aria-live",r.ariaLive),De("fade",r.animation))},inputs:{delay:"delay",autohide:"autohide",animation:"animation",header:"header"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbToast"],features:[it],ngContentSelectors:Fo,decls:5,vars:1,consts:function(){let n;return n=$localize`:@@ngb.toast.close-aria␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,[["headerTpl",""],[3,"ngIf"],[1,"toast-body"],[1,"mr-auto"],[1,"toast-header"],[3,"ngTemplateOutlet"],["type","button","aria-label",n,1,"close",3,"click"],["aria-hidden","true"]]},template:function(e,r){1&e&&(vi(),Q(0,PV,2,1,"ng-template",null,0,jt),Q(2,LV,5,1,"ng-template",1),v(3,"div",2),bi(4),D()),2&e&&(H(2),$("ngIf",r.contentHeaderTpl||r.header))},dependencies:[_n,Un],styles:[".ngb-toasts{position:fixed;top:0;right:0;margin:.5em;z-index:1200}ngb-toast{display:block}ngb-toast .toast-header .close{margin-left:auto;margin-bottom:.25rem}"],encapsulation:2}),t})(),fw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({imports:[Fn]}),t})(),pw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({}),t})(),T3=(()=>{class t{constructor(){this.highlightClass="ngb-highlight",this.accentSensitive=!0}ngOnChanges(e){!this.accentSensitive&&!String.prototype.normalize&&(console.warn("The `accentSensitive` input in `ngb-highlight` cannot be set to `false` in a browser that does not implement the `String.normalize` function. You will have to include a polyfill in your application to use this feature in the current browser."),this.accentSensitive=!0);const r=ha(this.result),i=Array.isArray(this.term)?this.term:[this.term],o=u=>this.accentSensitive?u:uC(u),s=i.map(u=>function WV(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(o(ha(u)))).filter(u=>u),a=this.accentSensitive?r:uC(r),l=s.length?a.split(new RegExp(`(${s.join("|")})`,"gmi")):[r];if(this.accentSensitive)this.parts=l;else{let u=0;this.parts=l.map(c=>r.substring(u,u+=c.length))}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ke({type:t,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",accentSensitive:"accentSensitive",result:"result",term:"term"},features:[it],decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["even",""]],template:function(e,r){1&e&&Q(0,$V,3,2,"ng-template",0),2&e&&$("ngForOf",r.parts)},dependencies:[mn,_n],styles:[".ngb-highlight{font-weight:700}"],encapsulation:2,changeDetection:0}),t})(),N3=(()=>{class t{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=ha,this.selectEvent=new se,this.activeChangeEvent=new se}hasActive(){return this.activeIdx>-1&&this.activeIdx<this.results.length}getActive(){return this.results[this.activeIdx]}markActive(e){this.activeIdx=e,this._activeChanged()}next(){this.activeIdx===this.results.length-1?this.activeIdx=this.focusFirst?(this.activeIdx+1)%this.results.length:-1:this.activeIdx++,this._activeChanged()}prev(){this.activeIdx<0?this.activeIdx=this.results.length-1:0===this.activeIdx?this.activeIdx=this.focusFirst?this.results.length-1:-1:this.activeIdx--,this._activeChanged()}resetActive(){this.activeIdx=this.focusFirst?0:-1,this._activeChanged()}select(e){this.selectEvent.emit(e)}ngOnInit(){this.resetActive()}_activeChanged(){this.activeChangeEvent.emit(this.activeIdx>=0?this.id+"-"+this.activeIdx:void 0)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ke({type:t,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(e,r){1&e&&ue("mousedown",function(o){return o.preventDefault()}),2&e&&(Rn("id",r.id),$n("dropdown-menu show"+(r.popupClass?" "+r.popupClass:"")))},inputs:{focusFirst:"focusFirst",formatter:"formatter",id:"id",results:"results",term:"term",resultTemplate:"resultTemplate",popupClass:"popupClass"},outputs:{selectEvent:"select",activeChangeEvent:"activeChange"},exportAs:["ngbTypeaheadWindow"],decls:3,vars:1,consts:[["rt",""],["ngFor","",3,"ngForOf"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"id","mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,r){1&e&&(Q(0,HV,1,2,"ng-template",null,0,jt),Q(2,GV,2,9,"ng-template",1)),2&e&&(H(2),$("ngForOf",r.results))},dependencies:[mn,Un,T3],encapsulation:2}),t})();const gw=new fe("live announcer delay",{providedIn:"root",factory:function S3(){return 100}});function mw(t,n=!1){let e=t.body.querySelector("#ngb-live");return null==e&&n&&(e=t.createElement("div"),e.setAttribute("id","ngb-live"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),e.classList.add("sr-only"),t.body.appendChild(e)),e}let I3=(()=>{class t{constructor(e,r){this._document=e,this._delay=r}ngOnDestroy(){const e=mw(this._document);e&&e.parentElement.removeChild(e)}say(e){const r=mw(this._document,!0),i=this._delay;if(null!=r){r.textContent="";const o=()=>r.textContent=e;null===i?o():setTimeout(o,i)}}}return t.\u0275fac=function(e){return new(e||t)(G(qe),G(gw))},t.\u0275prov=Z({factory:function(){return new t(G(qe),G(gw))},token:t,providedIn:"root"}),t})(),A3=(()=>{class t{constructor(){this.editable=!0,this.focusFirst=!0,this.showHint=!1,this.placement=["bottom-left","bottom-right","top-left","top-right"]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({factory:function(){return new t},token:t,providedIn:"root"}),t})(),x3=0,R3=(()=>{class t{constructor(e,r,i,o,s,a,l,u,c,d,h,p){this._elementRef=e,this._renderer=i,this._live=u,this._document=c,this._ngZone=d,this._changeDetector=h,this._subscription=null,this._closed$=new w.xQ,this._inputValueBackup=null,this._windowRef=null,this.autocomplete="off",this.placement="bottom-left",this.selectItem=new se,this.activeDescendant=null,this.popupId="ngb-typeahead-"+x3++,this._onTouched=()=>{},this._onChange=b=>{},this.container=a.container,this.editable=a.editable,this.focusFirst=a.focusFirst,this.showHint=a.showHint,this.placement=a.placement,this._valueChanges=(0,rn.R)(e.nativeElement,"input").pipe((0,ye.U)(b=>b.target.value)),this._resubscribeTypeahead=new kt.X(null),this._popupService=new kp(N3,o,r,i,this._ngZone,s,p),this._zoneSubscription=l.onStable.subscribe(()=>{this.isPopupOpen()&&function ma(t,n,e,r,i){let o=Array.isArray(e)?e:e.split(OB);const s=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],a=n.classList,l=p=>{const[b,I]=p.split("-"),U=[];return i&&(U.push(`${i}-${b}`),I&&U.push(`${i}-${b}-${I}`),U.forEach(Y=>{a.add(Y)})),U};i&&s.forEach(p=>{a.remove(`${i}-${p}`)});let u=o.findIndex(p=>"auto"===p);u>=0&&s.forEach(function(p){null==o.find(b=>-1!==b.search("^"+p))&&o.splice(u++,1,p)});const c=n.style;c.position="absolute",c.top="0",c.left="0",c["will-change"]="transform";let d=null,h=!1;for(d of o){let p=l(d);if(AC.positionElements(t,n,d,r)){h=!0;break}i&&p.forEach(b=>{a.remove(b)})}return h||(d=o[0],l(d),AC.positionElements(t,n,d,r)),d}(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container)})}ngOnInit(){this._subscribeToUserInput()}ngOnChanges({ngbTypeahead:e}){e&&!e.firstChange&&(this._unsubscribeFromUserInput(),this._subscribeToUserInput())}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput(),this._zoneSubscription.unsubscribe()}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}writeValue(e){this._writeInputValue(this._formatItemForInput(e)),this.showHint&&(this._inputValueBackup=e)}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead.next(null),this._closePopup(),this.showHint&&null!==this._inputValueBackup&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return null!=this._windowRef}handleBlur(){this._resubscribeTypeahead.next(null),this._onTouched()}handleKeyDown(e){if(this.isPopupOpen())switch(e.which){case Ie.ArrowDown:e.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case Ie.ArrowUp:e.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case Ie.Enter:case Ie.Tab:const r=this._windowRef.instance.getActive();ui(r)&&(e.preventDefault(),e.stopPropagation(),this._selectResult(r)),this._closePopup()}}_openPopup(){if(!this.isPopupOpen()){this._inputValueBackup=this._elementRef.nativeElement.value;const{windowRef:e}=this._popupService.open();this._windowRef=e,this._windowRef.instance.id=this.popupId,this._windowRef.instance.selectEvent.subscribe(r=>this._selectResultClosePopup(r)),this._windowRef.instance.activeChangeEvent.subscribe(r=>this.activeDescendant=r),this._windowRef.instance.popupClass=this.popupClass,"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._changeDetector.markForCheck(),ga(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._elementRef.nativeElement,this._windowRef.location.nativeElement])}}_closePopup(){this._popupService.close().subscribe(()=>{this._closed$.next(),this._windowRef=null,this.activeDescendant=null})}_selectResult(e){let r=!1;this.selectItem.emit({item:e,preventDefault:()=>{r=!0}}),this._resubscribeTypeahead.next(null),r||(this.writeValue(e),this._onChange(e))}_selectResultClosePopup(e){this._selectResult(e),this._closePopup()}_showHint(){var e;if(this.showHint&&(null===(e=this._windowRef)||void 0===e?void 0:e.instance.hasActive())&&null!=this._inputValueBackup){const r=this._inputValueBackup.toLowerCase(),i=this._formatItemForInput(this._windowRef.instance.getActive());r===i.substr(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+i.substr(this._inputValueBackup.length)),this._elementRef.nativeElement.setSelectionRange.apply(this._elementRef.nativeElement,[this._inputValueBackup.length,i.length])):this._writeInputValue(i)}}_formatItemForInput(e){return null!=e&&this.inputFormatter?this.inputFormatter(e):ha(e)}_writeInputValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",ha(e))}_subscribeToUserInput(){const e=this._valueChanges.pipe(pt(r=>{this._inputValueBackup=this.showHint?r:null,this._onChange(this.editable?r:void 0)}),this.ngbTypeahead?this.ngbTypeahead:()=>(0,de.of)([]));this._subscription=this._resubscribeTypeahead.pipe(tn(()=>e)).subscribe(r=>{r&&0!==r.length?(this._openPopup(),this._windowRef.instance.focusFirst=this.focusFirst,this._windowRef.instance.results=r,this._windowRef.instance.term=this._elementRef.nativeElement.value,this.resultFormatter&&(this._windowRef.instance.formatter=this.resultFormatter),this.resultTemplate&&(this._windowRef.instance.resultTemplate=this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint()):this._closePopup();const i=r?r.length:0;this._live.say(0===i?"No results available":`${i} result${1===i?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}}return t.\u0275fac=function(e){return new(e||t)(m(Re),m(pn),m(Wt),m(Ot),m(Yn),m(A3),m(Oe),m(I3),m(qe),m(Oe),m(Tt),m(Nr))},t.\u0275dir=ne({type:t,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox","aria-multiline","false"],hostVars:7,hostBindings:function(e,r){1&e&&ue("blur",function(){return r.handleBlur()})("keydown",function(o){return r.handleKeyDown(o)}),2&e&&(Rn("autocomplete",r.autocomplete),Be("aria-autocomplete",r.showHint?"both":"list")("aria-activedescendant",r.activeDescendant)("aria-owns",r.isPopupOpen()?r.popupId:null)("aria-expanded",r.isPopupOpen()),De("open",r.isPopupOpen()))},inputs:{autocomplete:"autocomplete",placement:"placement",container:"container",editable:"editable",focusFirst:"focusFirst",showHint:"showHint",inputFormatter:"inputFormatter",ngbTypeahead:"ngbTypeahead",resultFormatter:"resultFormatter",resultTemplate:"resultTemplate",popupClass:"popupClass"},outputs:{selectItem:"selectItem"},exportAs:["ngbTypeahead"],features:[je([{provide:Kt,useExisting:X(()=>t),multi:!0}]),it]}),t})(),_w=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({imports:[Fn]}),t})();const O3=[gC,mC,yC,DC,CC,VC,HC,zC,YC,rw,sw,aw,lw,hw,fw,pw,_w];let F3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({imports:[O3,gC,mC,yC,DC,CC,VC,HC,zC,YC,rw,sw,aw,lw,hw,fw,pw,_w]}),t})(),P3=(()=>{class t{constructor(e){this.activeModal=e}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(m($o))},t.\u0275cmp=ke({type:t,selectors:[["app-about"]],decls:25,vars:0,consts:[[1,"modal-header"],["id","modal-primary-title","translate","",1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body","centered"],["translate",""],["rel","noreferrer","href","https://2014.spaceappschallenge.org/awards/#globalawards","target","_blank"],["id","spaceLogo","src","./assets/img/space_apps.png"],["rel","noreferrer","href","https://supernovaic.tk","target","_blank"],["id","supernovaLogo","src","./assets/img/supernova-logo.png"],[1,"row"],[1,"col"],["rel","noreferrer","href","https://play.google.com/store/apps/details?id=tk.supernova.gnow","target","_blank"],["src","./assets/img/android.png",1,"logo"],["rel","noreferrer","href","https://www.microsoft.com/en-us/p/gravity-now/9nblgggzjlp5","target","_blank"],["src","./assets/img/windows.png",1,"logoWindows"]],template:function(e,r){1&e&&(v(0,"div",0)(1,"h4",1),S(2,"AboutUs"),D(),v(3,"button",2),ue("click",function(){return r.activeModal.dismiss("Cross click")}),v(4,"span",3),S(5,"\xd7"),D()()(),v(6,"div",4)(7,"h2"),S(8,"Gravity Now!"),D(),v(9,"p",5),S(10,"About1"),D(),v(11,"a",6),Ee(12,"img",7),D(),Ee(13,"br"),v(14,"a",8),Ee(15,"img",9),D(),v(16,"p",5),S(17,"About2"),D(),v(18,"div",10)(19,"div",11)(20,"a",12),Ee(21,"img",13),D()(),v(22,"div",11)(23,"a",14),Ee(24,"img",15),D()()()())},dependencies:[da],styles:[".centered[_ngcontent-%COMP%]{text-align:center}#spaceLogo[_ngcontent-%COMP%]{max-width:128px}#supernovaLogo[_ngcontent-%COMP%]{max-width:300px}.logo[_ngcontent-%COMP%]{max-width:96px}.logoWindows[_ngcontent-%COMP%]{max-width:70px;margin:13px}"]}),t})();function k3(t,n){1&t&&(Ee(0,"br"),v(1,"h3",9),S(2,"GravityTitle1"),D(),v(3,"p",9),S(4,"GravityDesc11"),D(),v(5,"p",9),S(6,"GravityDesc12"),D(),v(7,"div",12),Ee(8,"img",13),D(),v(9,"p",14),S(10,"GravityCDesc3"),D(),v(11,"h4",9),S(12,"Gravity4"),D(),v(13,"p",9),S(14,"GravityDesc2"),D(),v(15,"div",12),Ee(16,"img",15),D(),v(17,"p",14),S(18,"GravityCDesc2"),D(),v(19,"p",16)(20,"span",9),S(21,"MoreInformation"),D(),S(22,":"),D(),v(23,"p",16),S(24,"\xb9 "),v(25,"span",9),S(26,"Gravity2_1"),D(),S(27,"\xa0"),v(28,"a",17),S(29,"en.wikipedia.org/wiki/Gravity"),D()(),v(30,"p",16),S(31,"\xb2 "),v(32,"span",9),S(33,"GravityTitle1"),D(),S(34,"\xa0"),v(35,"a",18),S(36,"spaceplace.nasa.gov/what-is-gravity/en"),D()())}function L3(t,n){1&t&&(Ee(0,"br"),v(1,"h3",9),S(2,"GravityTitle2"),D(),v(3,"p",9),S(4,"GravityDesc31"),D(),v(5,"p",9),S(6,"GravityDesc21"),D(),v(7,"div",12),Ee(8,"img",19),D(),v(9,"p",20),S(10,"ImageCredit"),D(),v(11,"p",9),S(12,"GravityDesc41"),D(),v(13,"div",12),Ee(14,"img",21),D(),v(15,"p",14),S(16,"GravityDesc21"),D(),v(17,"p")(18,"span",9),S(19,"GravityDesc51"),D(),v(20,"a",22)(21,"span",9),S(22,"GravityDesc52"),D()(),v(23,"span",9),S(24,"GravityDesc53"),D(),v(25,"a",23)(26,"span",9),S(27,"GravityDesc54"),D()(),v(28,"span",9),S(29,"GravityDesc55"),D()(),v(30,"p",16)(31,"span",9),S(32,"MoreInformation"),D(),S(33,":"),D(),v(34,"p",16),S(35,"\xb9 "),v(36,"span",9),S(37,"GravityTitle1"),D(),S(38,"\xa0"),v(39,"a",18),S(40,"spaceplace.nasa.gov/what-is-gravity/en"),D()(),v(41,"p",16),S(42,"\xb2 "),v(43,"span",9),S(44,"GravityTitle3"),D(),S(45,"\xa0"),v(46,"a",24),S(47,"www.newscientist.com/article/dn24068-gravity-map-reveals-earths-extremes"),D()())}function V3(t,n){1&t&&(Ee(0,"br"),v(1,"h3",9),S(2,"GravityTitle4"),D(),v(3,"p",9),S(4,"Formula1"),D(),v(5,"p",12)(6,"span",25),S(7,"ICF"),D(),S(8," = 9.780327 (1 + 0.0053024"),v(9,"span",25),S(10,"sin"),D(),S(11,"\xb2\u03a6 - 0.0000058"),v(12,"span",25),S(13,"sin"),D(),S(14,"\xb22\u03a6)"),D(),v(15,"p",12)(16,"span",25),S(17,"FAC"),D(),S(18," = -3.086 \u2715 10"),v(19,"sup"),S(20,"-6"),D(),S(21," \u2715 "),v(22,"span",25),S(23,"h"),D()(),v(24,"p",26),S(25,"g = IGF + FAC"),D(),v(26,"p")(27,"b",9),S(28,"Formula2"),D()(),v(29,"ul")(30,"li")(31,"b"),S(32,"g"),D(),S(33," = "),v(34,"span",9),S(35,"Formula3"),D()(),v(36,"li")(37,"b"),S(38,"IGF"),D(),S(39," = "),v(40,"span",9),S(41,"Formula4"),D()(),v(42,"li")(43,"b"),S(44,"FAC"),D(),S(45," = "),v(46,"span",9),S(47,"Formula5"),D()(),v(48,"li")(49,"b"),S(50,"\u03a6"),D(),S(51," = "),v(52,"span",9),S(53,"LatitudeShort"),D()(),v(54,"li")(55,"b"),S(56,"h"),D(),S(57," = "),v(58,"span",9),S(59,"Formula7"),D()()(),v(60,"p")(61,"b",9),S(62,"Formula12"),D()(),v(63,"p")(64,"b",9),S(65,"LatitudeShort"),D()(),v(66,"p",9),S(67,"Formula13_1"),D(),v(68,"p",9),S(69,"Formula13_2"),D(),v(70,"p")(71,"b",9),S(72,"Formula10"),D()(),v(73,"p",9),S(74,"Formula11"),D(),v(75,"p",16)(76,"span",9),S(77,"MoreInformation"),D(),S(78,":"),D(),v(79,"p",16),S(80,"\xb9 "),v(81,"span",9),S(82,"Formula14"),D(),S(83,"\xa0"),v(84,"a",27),S(85,"en.wikipedia.org/wiki/International_Gravity_Formula"),D()(),v(86,"p",16),S(87,"\xb2 "),v(88,"span",9),S(89,"Formula15"),D(),S(90,"\xa0"),v(91,"a",28),S(92,"en.wikipedia.org/wiki/Gravity_of_Earth#Free_air_correction"),D()())}let B3=(()=>{class t{constructor(e,r){this.activeModal=e,this.translateService=r}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(m($o),m(kr))},t.\u0275cmp=ke({type:t,selectors:[["app-help"]],decls:25,vars:1,consts:[[1,"modal-header"],["id","modal-primary-title",1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],["ngbNav","",1,"nav-tabs"],["nav","ngbNav"],["ngbNavItem",""],["ngbNavLink",""],["translate",""],["ngbNavContent",""],[3,"ngbNavOutlet"],[1,"centered"],["src","./assets/img/newtonApple.jpg",1,"imgApple"],["translate","",1,"caption"],["src","./assets/img/einstein-gravitational-wave.gif",1,"horizontalMax"],[1,"caption"],["target","blank","href","https://en.wikipedia.org/wiki/Gravity"],["target","blank","href","https://spaceplace.nasa.gov/what-is-gravity/en/"],["src","./assets/img/whatIsGravity.jpg",1,"horizontalMax"],["translate","",1,"caption","txtRight"],["src","./assets/img/GRACE_globe_animation.gif",1,"imgRotation"],["target","blank","href","https://goo.gl/maps/Vah5YCPKbk32"],["target","blank","href","https://goo.gl/maps/tc287in2Vnt"],["target","blank","href","https://www.newscientist.com/article/dn24068-gravity-map-reveals-earths-extremes"],[1,"fontItalic"],[1,"centered","fontItalic"],["target","blank","href","http://en.wikipedia.org/wiki/International_Gravity_Formula"],["target","blank","href","http://en.wikipedia.org/wiki/Gravity_of_Earth#Free_air_correction"]],template:function(e,r){if(1&e&&(v(0,"div",0)(1,"h4",1),S(2,"Help"),D(),v(3,"button",2),ue("click",function(){return r.activeModal.dismiss("Cross click")}),v(4,"span",3),S(5,"\xd7"),D()()(),v(6,"div",4)(7,"ul",5,6)(9,"li",7)(10,"a",8)(11,"span",9),S(12,"GravityTitle6"),D()(),Q(13,k3,37,0,"ng-template",10),D(),v(14,"li",7)(15,"a",8)(16,"span",9),S(17,"GravityTitle5"),D()(),Q(18,L3,48,0,"ng-template",10),D(),v(19,"li",7)(20,"a",8)(21,"span",9),S(22,"GravityTitle4"),D()(),Q(23,V3,93,0,"ng-template",10),D()(),Ee(24,"div",11),D()),2&e){const i=Ht(8);H(24),$("ngbNavOutlet",i)}},dependencies:[Lp,ec,qu,Vp,JC,da],styles:[".centered[_ngcontent-%COMP%]{text-align:center}.caption[_ngcontent-%COMP%]{font-size:small}.fontItalic[_ngcontent-%COMP%]{font-style:italic}.horizontalMax[_ngcontent-%COMP%]{max-width:100%}.imgApple[_ngcontent-%COMP%]{max-width:256px}.txtRight[_ngcontent-%COMP%]{text-align:right}.imgRotation[_ngcontent-%COMP%]{max-width:75%}"]}),t})();function $3(t,n){if(1&t&&(v(0,"option",19),S(1),D()),2&t){const e=n.$implicit;$("value",e.value),H(1),lt(e.name)}}let H3=(()=>{class t{constructor(e,r,i){this.formBuilder=e,this.activeModal=r,this.translateService=i,this.messageStyle="text-primary",this.gResult="",this.decimalNumbers="5"}calcGravity(e,r,i){this.messageStyle="text-danger";let o=new li,s=parseFloat(o.GetGravity(e,r,!1,0!=i).toFixed(parseInt(this.decimalNumbers)));switch(s){case Pr.Latitude:this.gResult=`${this.translations.ErrorLat}`;break;case Pr.Everest:this.gResult=`${this.translations.ErrorEverest}: ${1==i?o.ChangeToMetres(o.EVEREST).toFixed(0)+"ft":o.EVEREST+"m"}`;break;case Pr.DeadSea:this.gResult=`${this.translations.ErrorDeadSea}: ${1==i?o.ChangeToMetres(o.DEAD_SEA).toFixed(0)+"ft":o.DEAD_SEA+"m"}`;break;default:this.gResult=s+(1==i?" ft/s\xb2":" m/s\xb2"),this.messageStyle="text-primary"}}onChanges(){this.calcForm.valueChanges.subscribe(e=>{this.decimalNumbers=e.rangeDec,""==e.latitude||""==e.altitude?this.gResult="":this.calcGravity(parseFloat(e.latitude),parseFloat(e.altitude),parseInt(e.gUnits))})}ngOnInit(){this.translations=this.translateService.store.translations[`${this.translateService.defaultLang}`],this.enterAlt=this.translations.EnterAltitude,this.enterLat=this.translations.EnterLatitude,this.calcForm=this.formBuilder.group({latitude:"",altitude:"",gUnits:0,rangeDec:5}),this.calcForm.controls.gUnits.setValue(0,{onlySelf:!0}),this.onChanges(),this.gUnits=[{value:0,name:"m/s\xb2",selected:"selected"},{value:1,name:"ft/s\xb2",selected:""}]}}return t.\u0275fac=function(e){return new(e||t)(m(P1),m($o),m(kr))},t.\u0275cmp=ke({type:t,selectors:[["app-calculator"]],decls:30,vars:7,consts:[[1,"modal-header"],["id","modal-primary-title","translate","",1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[3,"formGroup"],[1,"form-group"],["for","txtLatitude","translate",""],["type","number","min","-90","max","90","formControlName","latitude",1,"form-control",3,"placeholder"],["for","txtAltitude","translate",""],["type","number","formControlName","altitude",1,"form-control",3,"placeholder"],["for","cmbUnits","translate",""],["formControlName","gUnits",1,"form-control"],[3,"value",4,"ngFor","ngForOf"],["for","rangeDec"],["translate",""],["formControlName","rangeDec","value","5","type","range","id","customRange1","min","1","max","10","step","1",1,"custom-range"],[1,"centered"],[3,"className"],[3,"value"]],template:function(e,r){1&e&&(v(0,"div",0)(1,"h4",1),S(2,"Calculator"),D(),v(3,"button",2),ue("click",function(){return r.activeModal.dismiss("Cross click")}),v(4,"span",3),S(5,"\xd7"),D()()(),v(6,"div",4)(7,"form",5)(8,"div",6)(9,"label",7),S(10,"LatitudeFull"),D(),Ee(11,"input",8),D(),v(12,"div",6)(13,"label",9),S(14,"AltitudeFull"),D(),Ee(15,"input",10),D(),v(16,"div",6)(17,"label",11),S(18,"Units"),D(),v(19,"select",12),Q(20,$3,2,2,"option",13),D()(),v(21,"div",6)(22,"label",14)(23,"span",15),S(24,"DecimalPlaces"),D(),S(25),D(),Ee(26,"input",16),D(),v(27,"div",17)(28,"p",18),S(29),D()()()()),2&e&&(H(7),$("formGroup",r.calcForm),H(4),yo("placeholder",r.enterLat),H(4),yo("placeholder",r.enterAlt),H(5),$("ngForOf",r.gUnits),H(5),fr(" ",r.decimalNumbers,""),H(3),$("className",r.messageStyle),H(1),lt(r.gResult))},dependencies:[mn,Af,du,hu,No,uu,xf,Ks,ql,vf,fu,kf,zs,cu,da],styles:[".centered[_ngcontent-%COMP%]{text-align:center}"]}),t})();class $p{constructor(){this.celestialObjectsArray=[],this.celestialObjectsArray=[{value:0,name:"Sun",gravity:274,CelestialObjectTypes:"Star",selected:""},{value:1,name:"Mercury",gravity:3.7,CelestialObjectTypes:"Planet",selected:""},{value:2,name:"Venus",gravity:8.87,CelestialObjectTypes:"Planet",selected:""},{value:3,name:"Earth",gravity:9.798,CelestialObjectTypes:"Planet",selected:"selected"},{value:4,name:"Moon",gravity:1.62,CelestialObjectTypes:"Moon",selected:""},{value:5,name:"Mars",gravity:3.71,CelestialObjectTypes:"Planet",selected:""},{value:6,name:"Jupiter",gravity:24.92,CelestialObjectTypes:"Planet",selected:""},{value:7,name:"Titan",gravity:1.352,CelestialObjectTypes:"Moon",selected:""},{value:8,name:"Saturn",gravity:10.44,CelestialObjectTypes:"Planet",selected:""},{value:9,name:"Uranus",gravity:8.69,CelestialObjectTypes:"Planet",selected:""},{value:10,name:"Neptune",gravity:11.15,CelestialObjectTypes:"Planet",selected:""},{value:11,name:"Pluto",gravity:.58,CelestialObjectTypes:"Dwarf planet",selected:""}]}comparedGravity(n,e){let r=this.celestialObjectsArray[n].gravity,i=this.celestialObjectsArray[e].gravity;return r>i?0:r<i?1:2}percentageGravity(n,e){let r=this.comparedGravity(n,e),i=this.celestialObjectsArray[n].gravity,o=this.celestialObjectsArray[e].gravity;return 0==r?100*i/o:1==r?100*o/i:1}getGravity(n){return this.celestialObjectsArray[n].gravity}celestialObjectType(n){return this.celestialObjectsArray[n].CelestialObjectTypes}getCelestialObjects(){return this.celestialObjectsArray}}function j3(t,n){if(1&t&&(v(0,"option",26),S(1),D()),2&t){const e=n.$implicit;$("value",e.value),H(1),lt(e.name)}}function U3(t,n){if(1&t&&(v(0,"option",26),S(1),D()),2&t){const e=n.$implicit;$("value",e.value),H(1),lt(e.name)}}function G3(t,n){if(1&t&&(v(0,"option",26),S(1),D()),2&t){const e=n.$implicit;$("value",e.value),H(1),lt(e.name)}}function W3(t,n){if(1&t&&(v(0,"option",26),S(1),D()),2&t){const e=n.$implicit;$("value",e.value),H(1),lt(e.name)}}let z3=(()=>{class t{constructor(e,r,i){this.formBuilder=e,this.activeModal=r,this.translateService=i,this.wResult="",this.messageComparisonStyle="text-primary",this.gResult="",this.messageGComparisonStyle="text-primary",this.celestialImgFirst="./assets/img/earth.png",this.celestialImgSecond="./assets/img/earth.png",this.celestialStrFirstGravity="9.798 m/s\xb2",this.celestialStrSecondGravity="9.798 m/s\xb2"}calcWeight(e,r,i,o){if(null==e)return void(this.wResult="");let s=new $p,a=0,l=s.getGravity(r),c=s.getGravity(i)/l;3!=r?(a=e*(l/s.getGravity(3)),a*=c):a=e*c,this.setWeight(e,parseFloat(a.toFixed(1)),i,o)}setWeight(e,r,i,o){r<e?(this.messageComparisonStyle="text-success",this.wResult=`You are going to be lighter in ${this.celestialObjects[i].name} check it out! ${r} ${this.wUnits[o].name}`):r>e?(this.messageComparisonStyle="text-danger",this.wResult=`Your weight in ${this.celestialObjects[i].name} is greater check it out! ${r} ${this.wUnits[o].name}`):r==e?(this.messageComparisonStyle="text-primary",this.wResult="Same weight"):(this.messageComparisonStyle="text-primary",this.wResult="")}compareGravity(e,r){if(e==r)return void(this.gResult="");let i=new $p,o=i.percentageGravity(e,r),s="";switch((3==e||4==e||0==e)&&(s="the "),i.comparedGravity(e,r)){case 0:this.messageGComparisonStyle="text-success",this.gResult=`The gravity in ${s}${this.celestialObjects[e].name} is bigger in: ${o.toFixed(0)}%`;break;case 1:this.messageGComparisonStyle="text-danger",this.gResult=`The gravity in ${s}${this.celestialObjects[e].name} is smaller in: ${o.toFixed(0)}%`}}onChanges(){this.comparisonForm.valueChanges.subscribe(e=>{if(this.celestialImgFirst=`./assets/img/${this.celestialObjects[e.selectedValueCO1].name.toLowerCase()}.png`,this.celestialImgSecond=`./assets/img/${this.celestialObjects[e.selectedValueCO2].name.toLowerCase()}.png`,0==e.selectedGUnits)this.celestialStrFirstGravity=`${this.celestialObjects[e.selectedValueCO1].gravity} m/s\xb2`,this.celestialStrSecondGravity=`${this.celestialObjects[e.selectedValueCO2].gravity} m/s\xb2`;else{let r=new li;this.celestialStrFirstGravity=`${r.ChangeToFeet(this.celestialObjects[e.selectedValueCO1].gravity).toFixed()} ft/s\xb2`,this.celestialStrSecondGravity=`${r.ChangeToFeet(this.celestialObjects[e.selectedValueCO2].gravity).toFixed(3)} ft/s\xb2`}this.compareGravity(parseInt(e.selectedValueCO1),parseInt(e.selectedValueCO2)),""==e.weight?this.wResult="":this.calcWeight(parseFloat(e.weight),parseInt(e.selectedValueCO1),parseInt(e.selectedValueCO2),parseInt(e.selectedWUnits))})}ngOnInit(){this.celestialObjects=(new $p).getCelestialObjects(),this.translations=this.translateService.store.translations[`${this.translateService.defaultLang}`],this.comparisonForm=this.formBuilder.group({weight:"",selectedWUnits:0,selectedGUnits:0,selectedValueCO1:3,selectedValueCO2:3}),this.comparisonForm.controls.selectedWUnits.setValue(0,{onlySelf:!0}),this.comparisonForm.controls.selectedGUnits.setValue(0,{onlySelf:!0}),this.comparisonForm.controls.selectedValueCO1.setValue(3,{onlySelf:!0}),this.comparisonForm.controls.selectedValueCO2.setValue(3,{onlySelf:!0}),this.onChanges(),this.wUnits=[{value:0,name:"kg",selected:"selected"},{value:1,name:"lb",selected:""}],this.gUnits=[{value:0,name:"m/s\xb2",selected:"selected"},{value:1,name:"ft/s\xb2",selected:""}]}}return t.\u0275fac=function(e){return new(e||t)(m(P1),m($o),m(kr))},t.\u0275cmp=ke({type:t,selectors:[["app-comparison"]],decls:48,vars:13,consts:[[1,"modal-header"],["id","modal-primary-title","translate","",1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[3,"formGroup"],[1,"form-group"],[1,"row"],[1,"col-8"],["for","txtWeight","translate",""],["min","1","type","number","placeholder","Weight","formControlName","weight",1,"form-control"],[1,"col-4"],["for","cmbUnitsWeight","translate",""],["formControlName","selectedWUnits",1,"form-control"],[3,"value",4,"ngFor","ngForOf"],["for","cmbGUnits","translate",""],["formControlName","selectedGUnits",1,"form-control"],[1,"col"],["for","cmbFirstCelestialObject","translate",""],["formControlName","selectedValueCO1",1,"form-control"],[1,"centered"],[1,"imgCelestialObject",3,"src"],[1,"caption"],["for","cmbSecondCelestialObject","translate",""],["formControlName","selectedValueCO2",1,"form-control"],[3,"className"],[3,"value"]],template:function(e,r){1&e&&(v(0,"div",0)(1,"h4",1),S(2,"Comparison"),D(),v(3,"button",2),ue("click",function(){return r.activeModal.dismiss("Cross click")}),v(4,"span",3),S(5,"\xd7"),D()()(),v(6,"div",4)(7,"form",5)(8,"div",6)(9,"div",7)(10,"div",8)(11,"label",9),S(12,"YourWeight"),D(),Ee(13,"input",10),D(),v(14,"div",11)(15,"label",12),S(16,"Units"),D(),v(17,"select",13),Q(18,j3,2,2,"option",14),D()()()(),v(19,"div",6)(20,"label",15),S(21,"GUnits"),D(),v(22,"select",16),Q(23,U3,2,2,"option",14),D()(),v(24,"div",7)(25,"div",17)(26,"label",18),S(27,"FirstCelestial"),D(),v(28,"select",19),Q(29,G3,2,2,"option",14),D(),v(30,"div",20),Ee(31,"img",21),v(32,"p",22),S(33),D()()(),v(34,"div",17)(35,"label",23),S(36,"SecondCelestial"),D(),v(37,"select",24),Q(38,W3,2,2,"option",14),D(),v(39,"div",20),Ee(40,"img",21),v(41,"p",22),S(42),D()()()(),v(43,"div",20)(44,"p",25),S(45),D(),v(46,"p",25),S(47),D()()()()),2&e&&(H(7),$("formGroup",r.comparisonForm),H(11),$("ngForOf",r.wUnits),H(5),$("ngForOf",r.gUnits),H(6),$("ngForOf",r.celestialObjects),H(2),$("src",r.celestialImgFirst,hs),H(2),lt(r.celestialStrFirstGravity),H(5),$("ngForOf",r.celestialObjects),H(2),$("src",r.celestialImgSecond,hs),H(2),lt(r.celestialStrSecondGravity),H(2),$("className",r.messageGComparisonStyle),H(1),lt(r.gResult),H(1),$("className",r.messageComparisonStyle),H(1),lt(r.wResult))},dependencies:[mn,Af,du,hu,No,uu,Ks,ql,vf,fu,zs,cu,da],styles:[".centered[_ngcontent-%COMP%]{text-align:center}.imgCelestialObject[_ngcontent-%COMP%]{max-width:192px}"]}),t})();class J3{constructor(n,e){this.dueTime=n,this.scheduler=e}call(n,e){return e.subscribe(new Y3(n,this.dueTime,this.scheduler))}}class Y3 extends Pn.L{constructor(n,e,r){super(n),this.dueTime=e,this.scheduler=r,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(n){this.clearDebounce(),this.lastValue=n,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Q3,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:n}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(n)}}clearDebounce(){const n=this.debouncedSubscription;null!==n&&(this.remove(n),n.unsubscribe(),this.debouncedSubscription=null)}}function Q3(t){t.debouncedNext()}class yw{}class vw{}class Lr{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const r=e.indexOf(":");if(r>0){const i=e.slice(0,r),o=i.toLowerCase(),s=e.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(e=>{let r=n[e];const i=e.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(i,r),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof Lr?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(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new Lr;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Lr?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=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,e);const i=("a"===n.op?this.headers.get(e):void 0)||[];i.push(...r),this.headers.set(e,i);break;case"d":const o=n.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class Z3{encodeKey(n){return bw(n)}encodeValue(n){return bw(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const q3=/%(\d[a-f0-9])/gi,e$={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function bw(t){return encodeURIComponent(t).replace(q3,(n,e)=>e$[e]??n)}function tc(t){return`${t}`}class di{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Z3,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function X3(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{const o=i.indexOf("="),[s,a]=-1==o?[n.decodeKey(i),""]:[n.decodeKey(i.slice(0,o)),n.decodeValue(i.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const r=n.fromObject[e],i=Array.isArray(r)?r.map(tc):[tc(r)];this.map.set(e,i)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(r=>{const i=n[r];Array.isArray(i)?i.forEach(o=>{e.push({param:r,value:o,op:"a"})}):e.push({param:r,value:i,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new di({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}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 e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(tc(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let r=this.map.get(n.param)||[];const i=r.indexOf(tc(n.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class t${constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),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 Dw(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Cw(t){return typeof Blob<"u"&&t instanceof Blob}function ww(t){return typeof FormData<"u"&&t instanceof FormData}class ba{constructor(n,e,r,i){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function n$(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Lr),this.context||(this.context=new t$),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+s}}else this.params=new di,this.urlWithParams=e}serializeBody(){return null===this.body?null:Dw(this.body)||Cw(this.body)||ww(this.body)||function r$(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof di?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||ww(this.body)?null:Cw(this.body)?this.body.type||null:Dw(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof di?"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 e=n.method||this.method,r=n.url||this.url,i=n.responseType||this.responseType,o=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 l=n.headers||this.headers,u=n.params||this.params;const c=n.context??this.context;return void 0!==n.setHeaders&&(l=Object.keys(n.setHeaders).reduce((d,h)=>d.set(h,n.setHeaders[h]),l)),n.setParams&&(u=Object.keys(n.setParams).reduce((d,h)=>d.set(h,n.setParams[h]),u)),new ba(e,r,o,{params:u,headers:l,context:c,reportProgress:a,responseType:i,withCredentials:s})}}var At=(()=>((At=At||{})[At.Sent=0]="Sent",At[At.UploadProgress=1]="UploadProgress",At[At.ResponseHeader=2]="ResponseHeader",At[At.DownloadProgress=3]="DownloadProgress",At[At.Response=4]="Response",At[At.User=5]="User",At))();class Hp{constructor(n,e=200,r="OK"){this.headers=n.headers||new Lr,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class jp extends Hp{constructor(n={}){super(n),this.type=At.ResponseHeader}clone(n={}){return new jp({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 nc extends Hp{constructor(n={}){super(n),this.type=At.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new nc({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 Ew extends Hp{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}}function Up(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Gp=(()=>{class t{constructor(e){this.handler=e}request(e,r,i={}){let o;if(e instanceof ba)o=e;else{let l,u;l=i.headers instanceof Lr?i.headers:new Lr(i.headers),i.params&&(u=i.params instanceof di?i.params:new di({fromObject:i.params})),o=new ba(e,r,void 0!==i.body?i.body:null,{headers:l,context:i.context,params:u,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=(0,de.of)(o).pipe(ni(l=>this.handler.handle(l)));if(e instanceof ba||"events"===i.observe)return s;const a=s.pipe((0,yt.h)(l=>l instanceof nc));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe((0,ye.U)(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe((0,ye.U)(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe((0,ye.U)(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe((0,ye.U)(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:(new di).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,i={}){return this.request("PATCH",e,Up(i,r))}post(e,r,i={}){return this.request("POST",e,Up(i,r))}put(e,r,i={}){return this.request("PUT",e,Up(i,r))}}return t.\u0275fac=function(e){return new(e||t)(G(yw))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();class Mw{constructor(n,e){this.next=n,this.interceptor=e}handle(n){return this.interceptor.intercept(n,this.next)}}const Tw=new fe("HTTP_INTERCEPTORS");let i$=(()=>{class t{intercept(e,r){return r.handle(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();const o$=/^\)\]\}',?\n/;let Nw=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new V.y(r=>{const i=this.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach((p,b)=>i.setRequestHeader(p,b.join(","))),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const p=e.detectContentTypeHeader();null!==p&&i.setRequestHeader("Content-Type",p)}if(e.responseType){const p=e.responseType.toLowerCase();i.responseType="json"!==p?p:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const p=i.statusText||"OK",b=new Lr(i.getAllResponseHeaders()),I=function s$(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new jp({headers:b,status:i.status,statusText:p,url:I}),s},l=()=>{let{headers:p,status:b,statusText:I,url:U}=a(),Y=null;204!==b&&(Y=typeof i.response>"u"?i.responseText:i.response),0===b&&(b=Y?200:0);let re=b>=200&&b<300;if("json"===e.responseType&&"string"==typeof Y){const W=Y;Y=Y.replace(o$,"");try{Y=""!==Y?JSON.parse(Y):null}catch(he){Y=W,re&&(re=!1,Y={error:he,text:Y})}}re?(r.next(new nc({body:Y,headers:p,status:b,statusText:I,url:U||void 0})),r.complete()):r.error(new Ew({error:Y,headers:p,status:b,statusText:I,url:U||void 0}))},u=p=>{const{url:b}=a(),I=new Ew({error:p,status:i.status||0,statusText:i.statusText||"Unknown Error",url:b||void 0});r.error(I)};let c=!1;const d=p=>{c||(r.next(a()),c=!0);let b={type:At.DownloadProgress,loaded:p.loaded};p.lengthComputable&&(b.total=p.total),"text"===e.responseType&&!!i.responseText&&(b.partialText=i.responseText),r.next(b)},h=p=>{let b={type:At.UploadProgress,loaded:p.loaded};p.lengthComputable&&(b.total=p.total),r.next(b)};return i.addEventListener("load",l),i.addEventListener("error",u),i.addEventListener("timeout",u),i.addEventListener("abort",u),e.reportProgress&&(i.addEventListener("progress",d),null!==o&&i.upload&&i.upload.addEventListener("progress",h)),i.send(o),r.next({type:At.Sent}),()=>{i.removeEventListener("error",u),i.removeEventListener("abort",u),i.removeEventListener("load",l),i.removeEventListener("timeout",u),e.reportProgress&&(i.removeEventListener("progress",d),null!==o&&i.upload&&i.upload.removeEventListener("progress",h)),i.readyState!==i.DONE&&i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(G(pb))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();const Wp=new fe("XSRF_COOKIE_NAME"),zp=new fe("XSRF_HEADER_NAME");class Sw{}let Aw,a$=(()=>{class t{constructor(e,r,i){this.doc=e,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=rb(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(G(qe),G(xl),G(Wp))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})(),Kp=(()=>{class t{constructor(e,r){this.tokenService=e,this.headerName=r}intercept(e,r){const i=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||i.startsWith("http://")||i.startsWith("https://"))return r.handle(e);const o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),r.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(G(Sw),G(zp))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})(),l$=(()=>{class t{constructor(e,r){this.backend=e,this.injector=r,this.chain=null}handle(e){if(null===this.chain){const r=this.injector.get(Tw,[]);this.chain=r.reduceRight((i,o)=>new Mw(i,o),this.backend)}return this.chain.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(G(vw),G(Ot))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})(),u$=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Kp,useClass:i$}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Wp,useValue:e.cookieName}:[],e.headerName?{provide:zp,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({providers:[Kp,{provide:Tw,useExisting:Kp,multi:!0},{provide:Sw,useClass:a$},{provide:Wp,useValue:"XSRF-TOKEN"},{provide:zp,useValue:"X-XSRF-TOKEN"}]}),t})(),Iw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Le({type:t}),t.\u0275inj=Pe({providers:[Gp,{provide:yw,useClass:l$},Nw,{provide:vw,useExisting:Nw}],imports:[u$.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),t})(),xw=(()=>{class t{constructor(e){this.http=e}search(e){return""===e?(0,de.of)([]):this.http.get("https://nominatim.openstreetmap.org/search/{0}?format=json&email=fanmixco@gmail.com".replace("{0}",e)).pipe((0,ye.U)(r=>(Aw=r,r.map(i=>i.display_name))))}}return t.\u0275fac=function(e){return new(e||t)(G(Gp))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})(),d$=(()=>{class t{constructor(e){this._service=e,this.searching=!1,this.searchFailed=!1,this.onItemSelected=new se,this.search=r=>r.pipe(function K3(t,n=oC.P){return e=>e.lift(new J3(t,n))}(300),$u(),pt(()=>this.searching=!0),tn(i=>this._service.search(i).pipe(pt(()=>this.searchFailed=!1),ii(()=>(this.searchFailed=!0,(0,de.of)([]))))),pt(()=>this.searching=!1))}selectedItem(e){this.onItemSelected.emit(Aw.filter(r=>r.display_name==e.item)[0])}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(m(xw))},t.\u0275cmp=ke({type:t,selectors:[["app-navbar-search"]],outputs:{onItemSelected:"onItemSelected"},features:[je([xw])],decls:2,vars:7,consts:[["id","app-navbar-search","type","text",1,"form-control",3,"ngModel","ngbTypeahead","placeholder","selectItem","ngModelChange"]],template:function(e,r){1&e&&(v(0,"input",0),ue("selectItem",function(o){return r.selectedItem(o)})("ngModelChange",function(o){return r.model=o}),function mh(t,n){const e=Ve();let r;const i=t+22;e.firstCreatePass?(r=function pA(t,n){if(n)for(let e=n.length-1;e>=0;e--){const r=n[e];if(t===r.name)return r}}(n,e.pipeRegistry),e.data[i]=r,r.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(i,r.onDestroy)):r=e.data[i];const o=r.factory||(r.factory=pi(r.type)),s=an(m);try{const a=Ba(!1),l=o();return Ba(a),function hS(t,n,e,r){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=r}(e,J(),i,l),l}finally{an(s)}}(1,"translate"),D()),2&e&&(De("is-invalid",r.searchFailed),yo("placeholder",function _h(t,n,e){const r=t+22,i=J(),o=Hi(i,r);return function Os(t,n){return t[1].data[n].pure}(i,r)?Ov(i,cn(),n,o.transform,e,o):o.transform(e)}(1,5,"LocationSearch")),$("ngModel",r.model)("ngbTypeahead",r.search))},dependencies:[R3,No,ql,If,R2],styles:[".form-control[_ngcontent-%COMP%]{width:250px;display:inline}"]}),t})();const h$=function(t){return{show:t}};let f$=(()=>{class t{constructor(e,r){this.service=e,this.modalService=r,this.navbarOpen=!1}toggleNavbar(){this.navbarOpen=!this.navbarOpen}openCalc(){const e=this.modalService.open(H3,{centered:!0,scrollable:!0});e.componentInstance.latitude=void 0,e.componentInstance.altitude=void 0,e.componentInstance.gResult=void 0}openHelp(){this.modalService.open(B3,{centered:!0,scrollable:!0})}openComparison(){const e=this.modalService.open(z3,{centered:!0,scrollable:!0});e.componentInstance.weight=void 0,e.componentInstance.wResult=void 0}openAbout(){this.modalService.open(P3,{centered:!0,scrollable:!0})}ngOnInit(){}setLocation(e){this.currentLocation=e,this.setLocations()}setLocations(){let e=JSON.parse(JSON.stringify(this.currentLocation));this.service.setLocations(e)}}return t.\u0275fac=function(e){return new(e||t)(m(mp),m(WC))},t.\u0275cmp=ke({type:t,selectors:[["app-navbar"]],inputs:{currentLocation:"currentLocation"},decls:20,vars:3,consts:[["id","titleBar",1,"navbar","navbar-expand-sm","bg-dark","navbar-dark"],["href","#",1,"navbar-brand"],["type","button",1,"navbar-toggler",3,"click"],[1,"navbar-toggler-icon"],[1,"collapse","navbar-collapse",3,"ngClass"],[1,"navbar-nav","mr-auto"],[1,"nav-item"],["translate","",1,"nav-link",3,"click"],[3,"onItemSelected"]],template:function(e,r){1&e&&(v(0,"nav",0)(1,"a",1),S(2,"Gravity Now!"),D(),v(3,"button",2),ue("click",function(){return r.toggleNavbar()}),Ee(4,"span",3),D(),v(5,"div",4)(6,"ul",5)(7,"li",6)(8,"a",7),ue("click",function(){return r.openCalc()}),S(9,"Calculator"),D()(),v(10,"li",6)(11,"a",7),ue("click",function(){return r.openComparison()}),S(12,"Comparison"),D()(),v(13,"li",6)(14,"a",7),ue("click",function(){return r.openHelp()}),S(15,"Help"),D()(),v(16,"li",6)(17,"a",7),ue("click",function(){return r.openAbout()}),S(18,"About"),D()()(),v(19,"app-navbar-search",8),ue("onItemSelected",function(o){return r.setLocation(o)}),D()()()),2&e&&(H(5),$("ngClass",As(1,h$,r.navbarOpen)))},dependencies:[ib,Pp,da,d$]}),t})(),p$=(()=>{class t{constructor(){this.currentYear=(new Date).getFullYear()}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ke({type:t,selectors:[["app-footer"]],decls:10,vars:1,consts:[["id","footer",1,"py-2","bg-dark","text-white-50"],[1,"container","text-center"],["href","https://federiconavarrete.com","target","_blank"],["href","https://supernovaic.tk","target","_blank"]],template:function(e,r){1&e&&(v(0,"footer",0)(1,"div",1)(2,"small"),S(3,"Copyright \xa9 "),v(4,"a",2),S(5,"Federico Navarrete"),D(),S(6," & "),v(7,"a",3),S(8,"Supernova IC"),D(),S(9),D()()()),2&e&&(H(9),fr(", 2014 - ",r.currentYear,""))},styles:["#footer[_ngcontent-%COMP%]{position:fixed;left:0;bottom:0;width:100%;text-align:center}"]}),t})();function g$(t,n){}function m$(t,n){1&t&&Q(0,g$,0,0,"ng-template",4),2&t&&$("ngTemplateOutlet",ee().$implicit.textOrTpl)}function _$(t,n){1&t&&S(0),2&t&<(ee().$implicit.textOrTpl)}function y$(t,n){if(1&t){const e=at();v(0,"ngb-toast",1),ue("hide",function(){const o=Ge(e).$implicit;return We(ee().toastService.remove(o))}),Q(1,m$,1,1,"ng-template",2),Q(2,_$,1,1,"ng-template",null,3,jt),D()}if(2&t){const e=n.$implicit,r=Ht(3),i=ee();$n(e.classname),$("header",e.headertext)("autohide",e.autohide)("delay",e.delay||5e3),H(1),$("ngIf",i.isTemplate(e))("ngIfElse",r)}}let v$=(()=>{class t{constructor(e){this.toastService=e}isTemplate(e){return e.textOrTpl instanceof Xe}}return t.\u0275fac=function(e){return new(e||t)(m(YD))},t.\u0275cmp=ke({type:t,selectors:[["app-toasts"]],hostVars:2,hostBindings:function(e,r){2&e&&De("ngb-toasts",!0)},decls:1,vars:1,consts:[[3,"header","class","autohide","delay","hide",4,"ngFor","ngForOf"],[3,"header","autohide","delay","hide"],[3,"ngIf","ngIfElse"],["text",""],[3,"ngTemplateOutlet"]],template:function(e,r){1&e&&Q(0,y$,4,7,"ngb-toast",0),2&e&&$("ngForOf",r.toastService.toasts)},dependencies:[mn,_n,Un,C3],encapsulation:2}),t})(),b$=(()=>{class t{constructor(e,r){this.toastService=e,this.route=r,this.title="GNow",this.localStorage=new T2,this.getFirstRun(),this.route.queryParams.subscribe(i=>{this.status="true"!=i.isApp})}getFirstRun(){this.localStorage.getLocalStorageValue("isFirstRun")||(this.showStandard(),this.localStorage.setLocalStorage("isFirstRun",new Date))}showStandard(){this.toastService.show("Drag and drop the green marker to update the gravity or click on the map to get the gravity on that place.",{classname:"bg-success text-light",delay:5e3,autohide:!0,headertext:"Notification"})}}return t.\u0275fac=function(e){return new(e||t)(m(YD),m(si))},t.\u0275cmp=ke({type:t,selectors:[["app-root"]],decls:5,vars:2,consts:[[3,"hidden"]],template:function(e,r){1&e&&Ee(0,"app-navbar",0)(1,"app-osm-map")(2,"app-footer",0)(3,"app-toasts")(4,"router-outlet"),2&e&&($("hidden",!r.status),H(2),$("hidden",!r.status))},dependencies:[tp,F2,f$,p$,v$]}),t})();class D${constructor(n,e="/assets/i18n/",r=".json"){this.http=n,this.prefix=e,this.suffix=r}getTranslation(n){return this.http.get(`${this.prefix}${n}${this.suffix}`)}}function C$(t){return new D$(t,"./assets/i18n/",".json")}let w$=(()=>{class t{constructor(e){this.translateService=e,this.availableLng=["en","es"];let r="en",i=window.navigator.language.substring(0,2);this.availableLng.includes(i)&&(r=i),e.setDefaultLang(r)}}return t.\u0275fac=function(e){return new(e||t)(G(kr))},t.\u0275mod=Le({type:t,bootstrap:[b$]}),t.\u0275inj=Pe({providers:[mp],imports:[SO,M2,F3,R1,Iw,Vf,Iw,O2.forRoot({loader:{provide:ua,useFactory:C$,deps:[Gp]}})]}),t})();(function vx(){I0=!1})(),NO().bootstrapModule(w$).catch(t=>console.error(t))},4387:(le,k,f)=>{Object.defineProperty(k,"__esModule",{value:!0});var w=f(7104);k.BehaviorSubject=w.BehaviorSubject},1305:(le,k,f)=>{Object.defineProperty(k,"__esModule",{value:!0});var w=f(7104);w.Observable.of=w.of},2139:(le,k,f)=>{Object.defineProperty(k,"__esModule",{value:!0}),function w(A){for(var V in A)k.hasOwnProperty(V)||(k[V]=A[V])}(f(4387))},7104:(le,k,f)=>{f.r(k),f.d(k,{ArgumentOutOfRangeError:()=>pc.W,AsyncSubject:()=>Li,BehaviorSubject:()=>T.X,ConnectableObservable:()=>A.c,EMPTY:()=>Nn.E,EmptyError:()=>Da.K,GroupedObservable:()=>P,NEVER:()=>Le.C,Notification:()=>q.P,NotificationKind:()=>q.W,ObjectUnsubscribedError:()=>ic.N,Observable:()=>w.y,ReplaySubject:()=>ki,Scheduler:()=>sg.b,Subject:()=>y.xQ,Subscriber:()=>Ct.L,Subscription:()=>V.w,TimeoutError:()=>wa,UnsubscriptionError:()=>Bi.B,VirtualAction:()=>Z,VirtualTimeScheduler:()=>og,animationFrame:()=>ig,animationFrameScheduler:()=>hc,asap:()=>dc,asapScheduler:()=>cc,async:()=>Ho.P,asyncScheduler:()=>Ho.z,bindCallback:()=>an,bindNodeCallback:()=>Dn,combineLatest:()=>Ke.aj,concat:()=>cg.z,config:()=>ct.v,defer:()=>gc.P,empty:()=>Nn.c,forkJoin:()=>$e.D,from:()=>Br.D,fromEvent:()=>Wo.R,fromEventPattern:()=>Ko,generate:()=>zn,identity:()=>Vi.y,iif:()=>mc,interval:()=>_c,isObservable:()=>fc,merge:()=>Ta.T,never:()=>Le.F,noop:()=>jo.Z,observable:()=>E.L,of:()=>yc.of,onErrorResumeNext:()=>$i,pairs:()=>ne,partition:()=>ln,pipe:()=>Pe.z,queue:()=>xe,queueScheduler:()=>z,race:()=>Cn.S3,range:()=>ie,scheduled:()=>vr.x,throwError:()=>nt._,timer:()=>un.H,using:()=>yr,zip:()=>wt.$R});var w=f(4202),A=f(1762),V=f(4096);class P extends w.y{constructor(g,_,O){super(),this.key=g,this.groupSubject=_,this.refCountSubscription=O}_subscribe(g){const _=new V.w,{refCountSubscription:O,groupSubject:K}=this;return O&&!O.closed&&_.add(new x(O)),_.add(K.subscribe(g)),_}}class x extends V.w{constructor(g){super(),this.parent=g,g.count++}unsubscribe(){const g=this.parent;!g.closed&&!this.closed&&(super.unsubscribe(),g.count-=1,0===g.count&&g.attemptedToUnsubscribe&&g.unsubscribe())}}var E=f(3821),y=f(8929),T=f(591),C=f(6686),te=f(198);const z=new class X extends te.v{}(class B extends C.o{constructor(g,_){super(g,_),this.scheduler=g,this.work=_}schedule(g,_=0){return _>0?super.schedule(g,_):(this.delay=_,this.state=g,this.scheduler.flush(this),this)}execute(g,_){return _>0||this.closed?super.execute(g,_):this._execute(g,_)}requestAsyncId(g,_,O=0){return null!==O&&O>0||null===O&&this.delay>0?super.requestAsyncId(g,_,O):g.flush(this)}}),xe=z;var Ct=f(3489),q=f(9312);class Fe extends Ct.L{constructor(g,_,O=0){super(g),this.scheduler=_,this.delay=O}static dispatch(g){const{notification:_,destination:O}=g;_.observe(O),this.unsubscribe()}scheduleMessage(g){this.destination.add(this.scheduler.schedule(Fe.dispatch,this.delay,new rc(g,this.destination)))}_next(g){this.scheduleMessage(q.P.createNext(g))}_error(g){this.scheduleMessage(q.P.createError(g)),this.unsubscribe()}_complete(){this.scheduleMessage(q.P.createComplete()),this.unsubscribe()}}class rc{constructor(g,_){this.notification=g,this.destination=_}}var ic=f(5279),oc=f(5283);class ki extends y.xQ{constructor(g=Number.POSITIVE_INFINITY,_=Number.POSITIVE_INFINITY,O){super(),this.scheduler=O,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=g<1?1:g,this._windowTime=_<1?1:_,_===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(g){if(!this.isStopped){const _=this._events;_.push(g),_.length>this._bufferSize&&_.shift()}super.next(g)}nextTimeWindow(g){this.isStopped||(this._events.push(new on(this._getNow(),g)),this._trimBufferThenGetEvents()),super.next(g)}_subscribe(g){const _=this._infiniteTimeWindow,O=_?this._events:this._trimBufferThenGetEvents(),K=this.scheduler,ae=O.length;let me;if(this.closed)throw new ic.N;if(this.isStopped||this.hasError?me=V.w.EMPTY:(this.observers.push(g),me=new oc.W(this,g)),K&&g.add(g=new Fe(g,K)),_)for(let ce=0;ce<ae&&!g.closed;ce++)g.next(O[ce]);else for(let ce=0;ce<ae&&!g.closed;ce++)g.next(O[ce].value);return this.hasError?g.error(this.thrownError):this.isStopped&&g.complete(),me}_getNow(){return(this.scheduler||xe).now()}_trimBufferThenGetEvents(){const g=this._getNow(),_=this._bufferSize,O=this._windowTime,K=this._events,ae=K.length;let me=0;for(;me<ae&&!(g-K[me].time<O);)me++;return ae>_&&(me=Math.max(me,ae-_)),me>0&&K.splice(0,me),K}}class on{constructor(g,_){this.time=g,this.value=_}}class Li extends y.xQ{constructor(){super(...arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}_subscribe(g){return this.hasError?(g.error(this.thrownError),V.w.EMPTY):this.hasCompleted&&this.hasNext?(g.next(this.value),g.complete(),V.w.EMPTY):super._subscribe(g)}next(g){this.hasCompleted||(this.value=g,this.hasNext=!0)}error(g){this.hasCompleted||super.error(g)}complete(){this.hasCompleted=!0,this.hasNext&&super.next(this.value),super.complete()}}let sc=1;const ng=Promise.resolve(),bn={};function ac(j){return j in bn&&(delete bn[j],!0)}const lc={setImmediate(j){const g=sc++;return bn[g]=!0,ng.then(()=>ac(g)&&j()),g},clearImmediate(j){ac(j)}},cc=new class uc extends te.v{flush(g){this.active=!0,this.scheduled=void 0;const{actions:_}=this;let O,K=-1,ae=_.length;g=g||_.shift();do{if(O=g.execute(g.state,g.delay))break}while(++K<ae&&(g=_.shift()));if(this.active=!1,O){for(;++K<ae&&(g=_.shift());)g.unsubscribe();throw O}}}(class rg extends C.o{constructor(g,_){super(g,_),this.scheduler=g,this.work=_}requestAsyncId(g,_,O=0){return null!==O&&O>0?super.requestAsyncId(g,_,O):(g.actions.push(this),g.scheduled||(g.scheduled=lc.setImmediate(g.flush.bind(g,null))))}recycleAsyncId(g,_,O=0){if(null!==O&&O>0||null===O&&this.delay>0)return super.recycleAsyncId(g,_,O);0===g.actions.length&&(lc.clearImmediate(_),g.scheduled=void 0)}}),dc=cc;var Ho=f(353);const hc=new class Ue extends te.v{flush(g){this.active=!0,this.scheduled=void 0;const{actions:_}=this;let O,K=-1,ae=_.length;g=g||_.shift();do{if(O=g.execute(g.state,g.delay))break}while(++K<ae&&(g=_.shift()));if(this.active=!1,O){for(;++K<ae&&(g=_.shift());)g.unsubscribe();throw O}}}(class sn extends C.o{constructor(g,_){super(g,_),this.scheduler=g,this.work=_}requestAsyncId(g,_,O=0){return null!==O&&O>0?super.requestAsyncId(g,_,O):(g.actions.push(this),g.scheduled||(g.scheduled=requestAnimationFrame(()=>g.flush(null))))}recycleAsyncId(g,_,O=0){if(null!==O&&O>0||null===O&&this.delay>0)return super.recycleAsyncId(g,_,O);0===g.actions.length&&(cancelAnimationFrame(_),g.scheduled=void 0)}}),ig=hc;let og=(()=>{class j extends te.v{constructor(_=Z,O=Number.POSITIVE_INFINITY){super(_,()=>this.frame),this.maxFrames=O,this.frame=0,this.index=-1}flush(){const{actions:_,maxFrames:O}=this;let K,ae;for(;(ae=_[0])&&ae.delay<=O&&(_.shift(),this.frame=ae.delay,!(K=ae.execute(ae.state,ae.delay))););if(K){for(;ae=_.shift();)ae.unsubscribe();throw K}}}return j.frameTimeFactor=10,j})();class Z extends C.o{constructor(g,_,O=(g.index+=1)){super(g,_),this.scheduler=g,this.work=_,this.index=O,this.active=!0,this.index=g.index=O}schedule(g,_=0){if(!this.id)return super.schedule(g,_);this.active=!1;const O=new Z(this.scheduler,this.work);return this.add(O),O.schedule(g,_)}requestAsyncId(g,_,O=0){this.delay=g.frame+O;const{actions:K}=g;return K.push(this),K.sort(Z.sortActions),!0}recycleAsyncId(g,_,O=0){}_execute(g,_){if(!0===this.active)return super._execute(g,_)}static sortActions(g,_){return g.delay===_.delay?g.index===_.index?0:g.index>_.index?1:-1:g.delay>_.delay?1:-1}}var sg=f(2221),Pe=f(4843),jo=f(7876),Vi=f(5379);function fc(j){return!!j&&(j instanceof w.y||"function"==typeof j.lift&&"function"==typeof j.subscribe)}var pc=f(4231),Da=f(4450),Bi=f(7964);const wa=(()=>{function j(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return j.prototype=Object.create(Error.prototype),j})();var Uo=f(4850),pe=f(9476),Vr=f(6688),Go=f(2866);function an(j,g,_){if(g){if(!(0,Go.K)(g))return(...O)=>an(j,_)(...O).pipe((0,Uo.U)(K=>(0,Vr.k)(K)?g(...K):g(K)));_=g}return function(...O){const K=this;let ae;const me={context:K,subject:ae,callbackFunc:j,scheduler:_};return new w.y(ce=>{if(_)return _.schedule(Ea,0,{args:O,subscriber:ce,params:me});if(!ae){ae=new Li;const tt=(...He)=>{ae.next(He.length<=1?He[0]:He),ae.complete()};try{j.apply(K,[...O,tt])}catch(He){(0,pe._)(ae)?ae.error(He):console.warn(He)}}return ae.subscribe(ce)})}}function Ea(j){const{args:_,subscriber:O,params:K}=j,{callbackFunc:ae,context:me,scheduler:ce}=K;let{subject:tt}=K;if(!tt){tt=K.subject=new Li;const He=(...Je)=>{this.add(ce.schedule(ag,0,{value:Je.length<=1?Je[0]:Je,subject:tt}))};try{ae.apply(me,[..._,He])}catch(Je){tt.error(Je)}}this.add(tt.subscribe(O))}function ag(j){const{value:g,subject:_}=j;_.next(g),_.complete()}function Dn(j,g,_){if(g){if(!(0,Go.K)(g))return(...O)=>Dn(j,_)(...O).pipe((0,Uo.U)(K=>(0,Vr.k)(K)?g(...K):g(K)));_=g}return function(...O){const K={subject:void 0,args:O,callbackFunc:j,scheduler:_,context:this};return new w.y(ae=>{const{context:me}=K;let{subject:ce}=K;if(_)return _.schedule(lg,0,{params:K,subscriber:ae,context:me});if(!ce){ce=K.subject=new Li;const tt=(...He)=>{const Je=He.shift();Je?ce.error(Je):(ce.next(He.length<=1?He[0]:He),ce.complete())};try{j.apply(me,[...O,tt])}catch(He){(0,pe._)(ce)?ce.error(He):console.warn(He)}}return ce.subscribe(ae)})}}function lg(j){const{params:g,subscriber:_,context:O}=j,{callbackFunc:K,args:ae,scheduler:me}=g;let ce=g.subject;if(!ce){ce=g.subject=new Li;const tt=(...He)=>{const Je=He.shift();this.add(Je?me.schedule(Tn,0,{err:Je,subject:ce}):me.schedule(ug,0,{value:He.length<=1?He[0]:He,subject:ce}))};try{K.apply(O,[...ae,tt])}catch(He){this.add(me.schedule(Tn,0,{err:He,subject:ce}))}}this.add(ce.subscribe(_))}function ug(j){const{value:g,subject:_}=j;_.next(g),_.complete()}function Tn(j){const{err:g,subject:_}=j;_.error(g)}var Ke=f(6053),cg=f(1221),gc=f(8514),Nn=f(8896),$e=f(567),Br=f(3527),Wo=f(3753),zo=f(7043);function Ko(j,g,_){return _?Ko(j,g).pipe((0,Uo.U)(O=>(0,Vr.k)(O)?_(...O):_(O))):new w.y(O=>{const K=(...me)=>O.next(1===me.length?me[0]:me);let ae;try{ae=j(K)}catch(me){return void O.error(me)}if((0,zo.m)(g))return()=>g(K,ae)})}function zn(j,g,_,O,K){let ae,me;return 1==arguments.length?(me=j.initialState,g=j.condition,_=j.iterate,ae=j.resultSelector||Vi.y,K=j.scheduler):void 0===O||(0,Go.K)(O)?(me=j,ae=Vi.y,K=O):(me=j,ae=O),new w.y(ce=>{let tt=me;if(K)return K.schedule(hi,0,{subscriber:ce,iterate:_,condition:g,resultSelector:ae,state:tt});for(;;){if(g){let Je;try{Je=g(tt)}catch(kn){return void ce.error(kn)}if(!Je){ce.complete();break}}let He;try{He=ae(tt)}catch(Je){return void ce.error(Je)}if(ce.next(He),ce.closed)break;try{tt=_(tt)}catch(Je){return void ce.error(Je)}}})}function hi(j){const{subscriber:g,condition:_}=j;if(g.closed)return;if(j.needIterate)try{j.state=j.iterate(j.state)}catch(K){return void g.error(K)}else j.needIterate=!0;if(_){let K;try{K=_(j.state)}catch(ae){return void g.error(ae)}if(!K)return void g.complete();if(g.closed)return}let O;try{O=j.resultSelector(j.state)}catch(K){return void g.error(K)}return g.closed||(g.next(O),g.closed)?void 0:this.schedule(j)}function mc(j,g=Nn.E,_=Nn.E){return(0,gc.P)(()=>j()?g:_)}var ke=f(4241);function _c(j=0,g=Ho.P){return(!(0,ke.k)(j)||j<0)&&(j=0),(!g||"function"!=typeof g.schedule)&&(g=Ho.P),new w.y(_=>(_.add(g.schedule(Ma,j,{subscriber:_,counter:0,period:j})),_))}function Ma(j){const{subscriber:g,counter:_,period:O}=j;g.next(_),this.schedule({subscriber:g,counter:_+1,period:O},O)}var Ta=f(6787),Le=f(7274),yc=f(1086);function $i(...j){if(0===j.length)return Nn.E;const[g,..._]=j;return 1===j.length&&(0,Vr.k)(g)?$i(...g):new w.y(O=>{const K=()=>O.add($i(..._).subscribe(O));return(0,Br.D)(g).subscribe({next(ae){O.next(ae)},error:K,complete:K})})}function ne(j,g){return new w.y(g?_=>{const O=Object.keys(j),K=new V.w;return K.add(g.schedule(Gt,0,{keys:O,index:0,subscriber:_,subscription:K,obj:j})),K}:_=>{const O=Object.keys(j);for(let K=0;K<O.length&&!_.closed;K++){const ae=O[K];j.hasOwnProperty(ae)&&_.next([ae,j[ae]])}_.complete()})}function Gt(j){const{keys:g,index:_,subscriber:O,subscription:K,obj:ae}=j;if(!O.closed)if(_<g.length){const me=g[_];O.next([me,ae[me]]),K.add(this.schedule({keys:g,index:_+1,subscriber:O,subscription:K,obj:ae}))}else O.complete()}function ze(j,g){function _(){return!_.pred.apply(_.thisArg,arguments)}return _.pred=j,_.thisArg=g,_}var Bt=f(9249),$t=f(2198);function ln(j,g,_){return[(0,$t.h)(g,_)(new w.y((0,Bt.s)(j))),(0,$t.h)(ze(g,_))(new w.y((0,Bt.s)(j)))]}var Cn=f(1946);function ie(j=0,g,_){return new w.y(O=>{void 0===g&&(g=j,j=0);let K=0,ae=j;if(_)return _.schedule(Ce,0,{index:K,count:g,start:j,subscriber:O});for(;;){if(K++>=g){O.complete();break}if(O.next(ae++),O.closed)break}})}function Ce(j){const{start:g,index:_,count:O,subscriber:K}=j;_>=O?K.complete():(K.next(g),!K.closed&&(j.index=_+1,j.start=g+1,this.schedule(j)))}var nt=f(1737),un=f(8723);function yr(j,g){return new w.y(_=>{let O,K;try{O=j()}catch(ce){return void _.error(ce)}try{K=g(O)}catch(ce){return void _.error(ce)}const me=(K?(0,Br.D)(K):Nn.E).subscribe(_);return()=>{me.unsubscribe(),O&&O.unsubscribe()}})}var wt=f(1746),vr=f(3998),ct=f(2830)},591:(le,k,f)=>{f.d(k,{X:()=>V});var w=f(8929),A=f(5279);class V extends w.xQ{constructor(M){super(),this._value=M}get value(){return this.getValue()}_subscribe(M){const N=super._subscribe(M);return N&&!N.closed&&M.next(this._value),N}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new A.N;return this._value}next(M){super.next(this._value=M)}}},9312:(le,k,f)=>{f.d(k,{P:()=>M,W:()=>F});var w=f(8896),A=f(1086),V=f(1737),F=(()=>{return(N=F||(F={})).NEXT="N",N.ERROR="E",N.COMPLETE="C",F;var N})();class M{constructor(R,P,x){this.kind=R,this.value=P,this.error=x,this.hasValue="N"===R}observe(R){switch(this.kind){case"N":return R.next&&R.next(this.value);case"E":return R.error&&R.error(this.error);case"C":return R.complete&&R.complete()}}do(R,P,x){switch(this.kind){case"N":return R&&R(this.value);case"E":return P&&P(this.error);case"C":return x&&x()}}accept(R,P,x){return R&&"function"==typeof R.next?this.observe(R):this.do(R,P,x)}toObservable(){switch(this.kind){case"N":return(0,A.of)(this.value);case"E":return(0,V._)(this.error);case"C":return(0,w.c)()}throw new Error("unexpected notification kind value")}static createNext(R){return typeof R<"u"?new M("N",R):M.undefinedValueNotification}static createError(R){return new M("E",void 0,R)}static createComplete(){return M.completeNotification}}M.completeNotification=new M("C"),M.undefinedValueNotification=new M("N",void 0)},4202:(le,k,f)=>{f.d(k,{y:()=>x});var w=f(9476),A=f(3489),V=f(7668),F=f(3292),N=f(3821),R=f(4843),P=f(2830);let x=(()=>{class y{constructor(C){this._isScalar=!1,C&&(this._subscribe=C)}lift(C){const B=new y;return B.source=this,B.operator=C,B}subscribe(C,B,te){const{operator:X}=this,z=function M(y,T,C){if(y){if(y instanceof A.L)return y;if(y[V.b])return y[V.b]()}return y||T||C?new A.L(y,T,C):new A.L(F.c)}(C,B,te);if(z.add(X?X.call(z,this.source):this.source||P.v.useDeprecatedSynchronousErrorHandling&&!z.syncErrorThrowable?this._subscribe(z):this._trySubscribe(z)),P.v.useDeprecatedSynchronousErrorHandling&&z.syncErrorThrowable&&(z.syncErrorThrowable=!1,z.syncErrorThrown))throw z.syncErrorValue;return z}_trySubscribe(C){try{return this._subscribe(C)}catch(B){P.v.useDeprecatedSynchronousErrorHandling&&(C.syncErrorThrown=!0,C.syncErrorValue=B),(0,w._)(C)?C.error(B):console.warn(B)}}forEach(C,B){return new(B=E(B))((te,X)=>{let z;z=this.subscribe(xe=>{try{C(xe)}catch(Ct){X(Ct),z&&z.unsubscribe()}},X,te)})}_subscribe(C){const{source:B}=this;return B&&B.subscribe(C)}[N.L](){return this}pipe(...C){return 0===C.length?this:(0,R.U)(C)(this)}toPromise(C){return new(C=E(C))((B,te)=>{let X;this.subscribe(z=>X=z,z=>te(z),()=>B(X))})}}return y.create=T=>new y(T),y})();function E(y){if(y||(y=P.v.Promise||Promise),!y)throw new Error("no Promise impl found");return y}},3292:(le,k,f)=>{f.d(k,{c:()=>V});var w=f(2830),A=f(2782);const V={closed:!0,next(F){},error(F){if(w.v.useDeprecatedSynchronousErrorHandling)throw F;(0,A.z)(F)},complete(){}}},826:(le,k,f)=>{f.d(k,{L:()=>A});var w=f(3489);class A extends w.L{notifyNext(F,M,N,R,P){this.destination.next(M)}notifyError(F,M){this.destination.error(F)}notifyComplete(F){this.destination.complete()}}},2221:(le,k,f)=>{f.d(k,{b:()=>w});let w=(()=>{class A{constructor(F,M=A.now){this.SchedulerAction=F,this.now=M}schedule(F,M=0,N){return new this.SchedulerAction(this,F).schedule(N,M)}}return A.now=()=>Date.now(),A})()},8929:(le,k,f)=>{f.d(k,{Yc:()=>R,xQ:()=>P});var w=f(4202),A=f(3489),V=f(4096),F=f(5279),M=f(5283),N=f(7668);class R extends A.L{constructor(y){super(y),this.destination=y}}let P=(()=>{class E extends w.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[N.b](){return new R(this)}lift(T){const C=new x(this,this);return C.operator=T,C}next(T){if(this.closed)throw new F.N;if(!this.isStopped){const{observers:C}=this,B=C.length,te=C.slice();for(let X=0;X<B;X++)te[X].next(T)}}error(T){if(this.closed)throw new F.N;this.hasError=!0,this.thrownError=T,this.isStopped=!0;const{observers:C}=this,B=C.length,te=C.slice();for(let X=0;X<B;X++)te[X].error(T);this.observers.length=0}complete(){if(this.closed)throw new F.N;this.isStopped=!0;const{observers:T}=this,C=T.length,B=T.slice();for(let te=0;te<C;te++)B[te].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(T){if(this.closed)throw new F.N;return super._trySubscribe(T)}_subscribe(T){if(this.closed)throw new F.N;return this.hasError?(T.error(this.thrownError),V.w.EMPTY):this.isStopped?(T.complete(),V.w.EMPTY):(this.observers.push(T),new M.W(this,T))}asObservable(){const T=new w.y;return T.source=this,T}}return E.create=(y,T)=>new x(y,T),E})();class x extends P{constructor(y,T){super(),this.destination=y,this.source=T}next(y){const{destination:T}=this;T&&T.next&&T.next(y)}error(y){const{destination:T}=this;T&&T.error&&this.destination.error(y)}complete(){const{destination:y}=this;y&&y.complete&&this.destination.complete()}_subscribe(y){const{source:T}=this;return T?this.source.subscribe(y):V.w.EMPTY}}},5283:(le,k,f)=>{f.d(k,{W:()=>A});var w=f(4096);class A extends w.w{constructor(F,M){super(),this.subject=F,this.subscriber=M,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const F=this.subject,M=F.observers;if(this.subject=null,!M||0===M.length||F.isStopped||F.closed)return;const N=M.indexOf(this.subscriber);-1!==N&&M.splice(N,1)}}},3489:(le,k,f)=>{f.d(k,{L:()=>R});var w=f(7043),A=f(3292),V=f(4096),F=f(7668),M=f(2830),N=f(2782);class R extends V.w{constructor(E,y,T){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=A.c;break;case 1:if(!E){this.destination=A.c;break}if("object"==typeof E){E instanceof R?(this.syncErrorThrowable=E.syncErrorThrowable,this.destination=E,E.add(this)):(this.syncErrorThrowable=!0,this.destination=new P(this,E));break}default:this.syncErrorThrowable=!0,this.destination=new P(this,E,y,T)}}[F.b](){return this}static create(E,y,T){const C=new R(E,y,T);return C.syncErrorThrowable=!1,C}next(E){this.isStopped||this._next(E)}error(E){this.isStopped||(this.isStopped=!0,this._error(E))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(E){this.destination.next(E)}_error(E){this.destination.error(E),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:E}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=E,this}}class P extends R{constructor(E,y,T,C){super(),this._parentSubscriber=E;let B,te=this;(0,w.m)(y)?B=y:y&&(B=y.next,T=y.error,C=y.complete,y!==A.c&&(te=Object.create(y),(0,w.m)(te.unsubscribe)&&this.add(te.unsubscribe.bind(te)),te.unsubscribe=this.unsubscribe.bind(this))),this._context=te,this._next=B,this._error=T,this._complete=C}next(E){if(!this.isStopped&&this._next){const{_parentSubscriber:y}=this;M.v.useDeprecatedSynchronousErrorHandling&&y.syncErrorThrowable?this.__tryOrSetError(y,this._next,E)&&this.unsubscribe():this.__tryOrUnsub(this._next,E)}}error(E){if(!this.isStopped){const{_parentSubscriber:y}=this,{useDeprecatedSynchronousErrorHandling:T}=M.v;if(this._error)T&&y.syncErrorThrowable?(this.__tryOrSetError(y,this._error,E),this.unsubscribe()):(this.__tryOrUnsub(this._error,E),this.unsubscribe());else if(y.syncErrorThrowable)T?(y.syncErrorValue=E,y.syncErrorThrown=!0):(0,N.z)(E),this.unsubscribe();else{if(this.unsubscribe(),T)throw E;(0,N.z)(E)}}}complete(){if(!this.isStopped){const{_parentSubscriber:E}=this;if(this._complete){const y=()=>this._complete.call(this._context);M.v.useDeprecatedSynchronousErrorHandling&&E.syncErrorThrowable?(this.__tryOrSetError(E,y),this.unsubscribe()):(this.__tryOrUnsub(y),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(E,y){try{E.call(this._context,y)}catch(T){if(this.unsubscribe(),M.v.useDeprecatedSynchronousErrorHandling)throw T;(0,N.z)(T)}}__tryOrSetError(E,y,T){if(!M.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{y.call(this._context,T)}catch(C){return M.v.useDeprecatedSynchronousErrorHandling?(E.syncErrorValue=C,E.syncErrorThrown=!0,!0):((0,N.z)(C),!0)}return!1}_unsubscribe(){const{_parentSubscriber:E}=this;this._context=null,this._parentSubscriber=null,E.unsubscribe()}}},4096:(le,k,f)=>{f.d(k,{w:()=>M});var R,w=f(6688),A=f(7830),V=f(7043),F=f(7964);class M{constructor(P){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,P&&(this._ctorUnsubscribe=!0,this._unsubscribe=P)}unsubscribe(){let P;if(this.closed)return;let{_parentOrParents:x,_ctorUnsubscribe:E,_unsubscribe:y,_subscriptions:T}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,x instanceof M)x.remove(this);else if(null!==x)for(let C=0;C<x.length;++C)x[C].remove(this);if((0,V.m)(y)){E&&(this._unsubscribe=void 0);try{y.call(this)}catch(C){P=C instanceof F.B?N(C.errors):[C]}}if((0,w.k)(T)){let C=-1,B=T.length;for(;++C<B;){const te=T[C];if((0,A.K)(te))try{te.unsubscribe()}catch(X){P=P||[],X instanceof F.B?P=P.concat(N(X.errors)):P.push(X)}}}if(P)throw new F.B(P)}add(P){let x=P;if(!P)return M.EMPTY;switch(typeof P){case"function":x=new M(P);case"object":if(x===this||x.closed||"function"!=typeof x.unsubscribe)return x;if(this.closed)return x.unsubscribe(),x;if(!(x instanceof M)){const T=x;x=new M,x._subscriptions=[T]}break;default:throw new Error("unrecognized teardown "+P+" added to Subscription.")}let{_parentOrParents:E}=x;if(null===E)x._parentOrParents=this;else if(E instanceof M){if(E===this)return x;x._parentOrParents=[E,this]}else{if(-1!==E.indexOf(this))return x;E.push(this)}const y=this._subscriptions;return null===y?this._subscriptions=[x]:y.push(x),x}remove(P){const x=this._subscriptions;if(x){const E=x.indexOf(P);-1!==E&&x.splice(E,1)}}}function N(R){return R.reduce((P,x)=>P.concat(x instanceof F.B?x.errors:x),[])}M.EMPTY=((R=new M).closed=!0,R)},2830:(le,k,f)=>{f.d(k,{v:()=>A});let w=!1;const A={Promise:void 0,set useDeprecatedSynchronousErrorHandling(V){if(V){const F=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+F.stack)}else w&&console.log("RxJS: Back to a better error behavior. Thank you. <3");w=V},get useDeprecatedSynchronousErrorHandling(){return w}}},1177:(le,k,f)=>{f.d(k,{Ds:()=>N,IY:()=>F,ft:()=>P});var w=f(3489),A=f(4202),V=f(9249);class F extends w.L{constructor(E){super(),this.parent=E}_next(E){this.parent.notifyNext(E)}_error(E){this.parent.notifyError(E),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class N extends w.L{notifyNext(E){this.destination.next(E)}notifyError(E){this.destination.error(E)}notifyComplete(){this.destination.complete()}}function P(x,E){if(E.closed)return;if(x instanceof A.y)return x.subscribe(E);let y;try{y=(0,V.s)(x)(E)}catch(T){E.error(T)}return y}},1762:(le,k,f)=>{f.d(k,{N:()=>N,c:()=>M});var w=f(8929),A=f(4202),V=f(4096),F=f(4327);class M extends A.y{constructor(y,T){super(),this.source=y,this.subjectFactory=T,this._refCount=0,this._isComplete=!1}_subscribe(y){return this.getSubject().subscribe(y)}getSubject(){const y=this._subject;return(!y||y.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let y=this._connection;return y||(this._isComplete=!1,y=this._connection=new V.w,y.add(this.source.subscribe(new R(this.getSubject(),this))),y.closed&&(this._connection=null,y=V.w.EMPTY)),y}refCount(){return(0,F.x)()(this)}}const N=(()=>{const E=M.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:E._subscribe},_isComplete:{value:E._isComplete,writable:!0},getSubject:{value:E.getSubject},connect:{value:E.connect},refCount:{value:E.refCount}}})();class R extends w.Yc{constructor(y,T){super(y),this.connectable=T}_error(y){this._unsubscribe(),super._error(y)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const y=this.connectable;if(y){this.connectable=null;const T=y._connection;y._refCount=0,y._subject=null,y._connection=null,T&&T.unsubscribe()}}}},6053:(le,k,f)=>{f.d(k,{aj:()=>R});var w=f(2866),A=f(6688),V=f(826),F=f(448),M=f(3009);const N={};function R(...E){let y,T;return(0,w.K)(E[E.length-1])&&(T=E.pop()),"function"==typeof E[E.length-1]&&(y=E.pop()),1===E.length&&(0,A.k)(E[0])&&(E=E[0]),(0,M.n)(E,T).lift(new P(y))}class P{constructor(y){this.resultSelector=y}call(y,T){return T.subscribe(new x(y,this.resultSelector))}}class x extends V.L{constructor(y,T){super(y),this.resultSelector=T,this.active=0,this.values=[],this.observables=[]}_next(y){this.values.push(N),this.observables.push(y)}_complete(){const y=this.observables,T=y.length;if(0===T)this.destination.complete();else{this.active=T,this.toRespond=T;for(let C=0;C<T;C++)this.add((0,F.D)(this,y[C],void 0,C))}}notifyComplete(y){0==(this.active-=1)&&this.destination.complete()}notifyNext(y,T,C){const B=this.values,X=this.toRespond?B[C]===N?--this.toRespond:this.toRespond:0;B[C]=T,0===X&&(this.resultSelector?this._tryResultSelector(B):this.destination.next(B.slice()))}_tryResultSelector(y){let T;try{T=this.resultSelector.apply(this,y)}catch(C){return void this.destination.error(C)}this.destination.next(T)}}},1221:(le,k,f)=>{f.d(k,{z:()=>F});var w=f(1086),A=f(9146);function F(...M){return function V(){return(0,A.J)(1)}()((0,w.of)(...M))}},8514:(le,k,f)=>{f.d(k,{P:()=>F});var w=f(4202),A=f(3527),V=f(8896);function F(M){return new w.y(N=>{let R;try{R=M()}catch(x){return void N.error(x)}return(R?(0,A.D)(R):(0,V.c)()).subscribe(N)})}},8896:(le,k,f)=>{f.d(k,{E:()=>A,c:()=>V});var w=f(4202);const A=new w.y(M=>M.complete());function V(M){return M?function F(M){return new w.y(N=>M.schedule(()=>N.complete()))}(M):A}},567:(le,k,f)=>{f.d(k,{D:()=>N});var w=f(4202),A=f(6688),V=f(4850),F=f(7830),M=f(3527);function N(...P){if(1===P.length){const x=P[0];if((0,A.k)(x))return R(x,null);if((0,F.K)(x)&&Object.getPrototypeOf(x)===Object.prototype){const E=Object.keys(x);return R(E.map(y=>x[y]),E)}}if("function"==typeof P[P.length-1]){const x=P.pop();return R(P=1===P.length&&(0,A.k)(P[0])?P[0]:P,null).pipe((0,V.U)(E=>x(...E)))}return R(P,null)}function R(P,x){return new w.y(E=>{const y=P.length;if(0===y)return void E.complete();const T=new Array(y);let C=0,B=0;for(let te=0;te<y;te++){const X=(0,M.D)(P[te]);let z=!1;E.add(X.subscribe({next:xe=>{z||(z=!0,B++),T[te]=xe},error:xe=>E.error(xe),complete:()=>{C++,(C===y||!z)&&(B===y&&E.next(x?x.reduce((xe,Ct,q)=>(xe[Ct]=T[q],xe),{}):T),E.complete())}}))}})}},3527:(le,k,f)=>{f.d(k,{D:()=>F});var w=f(4202),A=f(9249),V=f(3998);function F(M,N){return N?(0,V.x)(M,N):M instanceof w.y?M:new w.y((0,A.s)(M))}},3009:(le,k,f)=>{f.d(k,{n:()=>F});var w=f(4202),A=f(3650),V=f(6454);function F(M,N){return N?(0,V.r)(M,N):new w.y((0,A.V)(M))}},3753:(le,k,f)=>{f.d(k,{R:()=>N});var w=f(4202),A=f(6688),V=f(7043),F=f(4850);function N(y,T,C,B){return(0,V.m)(C)&&(B=C,C=void 0),B?N(y,T,C).pipe((0,F.U)(te=>(0,A.k)(te)?B(...te):B(te))):new w.y(te=>{R(y,T,function X(z){te.next(arguments.length>1?Array.prototype.slice.call(arguments):z)},te,C)})}function R(y,T,C,B,te){let X;if(function E(y){return y&&"function"==typeof y.addEventListener&&"function"==typeof y.removeEventListener}(y)){const z=y;y.addEventListener(T,C,te),X=()=>z.removeEventListener(T,C,te)}else if(function x(y){return y&&"function"==typeof y.on&&"function"==typeof y.off}(y)){const z=y;y.on(T,C),X=()=>z.off(T,C)}else if(function P(y){return y&&"function"==typeof y.addListener&&"function"==typeof y.removeListener}(y)){const z=y;y.addListener(T,C),X=()=>z.removeListener(T,C)}else{if(!y||!y.length)throw new TypeError("Invalid event target");for(let z=0,xe=y.length;z<xe;z++)R(y[z],T,C,B,te)}B.add(X)}},6787:(le,k,f)=>{f.d(k,{T:()=>M});var w=f(4202),A=f(2866),V=f(9146),F=f(3009);function M(...N){let R=Number.POSITIVE_INFINITY,P=null,x=N[N.length-1];return(0,A.K)(x)?(P=N.pop(),N.length>1&&"number"==typeof N[N.length-1]&&(R=N.pop())):"number"==typeof x&&(R=N.pop()),null===P&&1===N.length&&N[0]instanceof w.y?N[0]:(0,V.J)(R)((0,F.n)(N,P))}},7274:(le,k,f)=>{f.d(k,{C:()=>V,F:()=>F});var w=f(4202),A=f(7876);const V=new w.y(A.Z);function F(){return V}},1086:(le,k,f)=>{f.d(k,{of:()=>F});var w=f(2866),A=f(3009),V=f(6454);function F(...M){let N=M[M.length-1];return(0,w.K)(N)?(M.pop(),(0,V.r)(M,N)):(0,A.n)(M)}},1946:(le,k,f)=>{f.d(k,{S3:()=>M});var w=f(6688),A=f(3009),V=f(826),F=f(448);function M(...P){if(1===P.length){if(!(0,w.k)(P[0]))return P[0];P=P[0]}return(0,A.n)(P,void 0).lift(new N)}class N{call(x,E){return E.subscribe(new R(x))}}class R extends V.L{constructor(x){super(x),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(x){this.observables.push(x)}_complete(){const x=this.observables,E=x.length;if(0===E)this.destination.complete();else{for(let y=0;y<E&&!this.hasFirst;y++){const C=(0,F.D)(this,x[y],void 0,y);this.subscriptions&&this.subscriptions.push(C),this.add(C)}this.observables=null}}notifyNext(x,E,y){if(!this.hasFirst){this.hasFirst=!0;for(let T=0;T<this.subscriptions.length;T++)if(T!==y){let C=this.subscriptions[T];C.unsubscribe(),this.remove(C)}this.subscriptions=null}this.destination.next(E)}}},1737:(le,k,f)=>{f.d(k,{_:()=>A});var w=f(4202);function A(F,M){return new w.y(M?N=>M.schedule(V,0,{error:F,subscriber:N}):N=>N.error(F))}function V({error:F,subscriber:M}){M.error(F)}},8723:(le,k,f)=>{f.d(k,{H:()=>M});var w=f(4202),A=f(353),V=f(4241),F=f(2866);function M(R=0,P,x){let E=-1;return(0,V.k)(P)?E=Number(P)<1?1:Number(P):(0,F.K)(P)&&(x=P),(0,F.K)(x)||(x=A.P),new w.y(y=>{const T=(0,V.k)(R)?R:+R-x.now();return x.schedule(N,T,{index:0,period:E,subscriber:y})})}function N(R){const{index:P,period:x,subscriber:E}=R;if(E.next(P),!E.closed){if(-1===x)return E.complete();R.index=P+1,this.schedule(R,x)}}},1746:(le,k,f)=>{f.d(k,{$R:()=>N});var w=f(3009),A=f(6688),V=f(3489),F=f(5430),M=f(1177);function N(...T){const C=T[T.length-1];return"function"==typeof C&&T.pop(),(0,w.n)(T,void 0).lift(new R(C))}class R{constructor(C){this.resultSelector=C}call(C,B){return B.subscribe(new P(C,this.resultSelector))}}class P extends V.L{constructor(C,B,te=Object.create(null)){super(C),this.resultSelector=B,this.iterators=[],this.active=0,this.resultSelector="function"==typeof B?B:void 0}_next(C){const B=this.iterators;(0,A.k)(C)?B.push(new E(C)):B.push("function"==typeof C[F.hZ]?new x(C[F.hZ]()):new y(this.destination,this,C))}_complete(){const C=this.iterators,B=C.length;if(this.unsubscribe(),0!==B){this.active=B;for(let te=0;te<B;te++){let X=C[te];X.stillUnsubscribed?this.destination.add(X.subscribe()):this.active--}}else this.destination.complete()}notifyInactive(){this.active--,0===this.active&&this.destination.complete()}checkIterators(){const C=this.iterators,B=C.length,te=this.destination;for(let xe=0;xe<B;xe++){let Ct=C[xe];if("function"==typeof Ct.hasValue&&!Ct.hasValue())return}let X=!1;const z=[];for(let xe=0;xe<B;xe++){let Ct=C[xe],q=Ct.next();if(Ct.hasCompleted()&&(X=!0),q.done)return void te.complete();z.push(q.value)}this.resultSelector?this._tryresultSelector(z):te.next(z),X&&te.complete()}_tryresultSelector(C){let B;try{B=this.resultSelector.apply(this,C)}catch(te){return void this.destination.error(te)}this.destination.next(B)}}class x{constructor(C){this.iterator=C,this.nextResult=C.next()}hasValue(){return!0}next(){const C=this.nextResult;return this.nextResult=this.iterator.next(),C}hasCompleted(){const C=this.nextResult;return Boolean(C&&C.done)}}class E{constructor(C){this.array=C,this.index=0,this.length=0,this.length=C.length}[F.hZ](){return this}next(C){const B=this.index++;return B<this.length?{value:this.array[B],done:!1}:{value:null,done:!0}}hasValue(){return this.array.length>this.index}hasCompleted(){return this.array.length===this.index}}class y extends M.Ds{constructor(C,B,te){super(C),this.parent=B,this.observable=te,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[F.hZ](){return this}next(){const C=this.buffer;return 0===C.length&&this.isComplete?{value:null,done:!0}:{value:C.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(C){this.buffer.push(C),this.parent.checkIterators()}subscribe(){return(0,M.ft)(this.observable,new M.IY(this))}}},2198:(le,k,f)=>{f.d(k,{h:()=>A});var w=f(3489);function A(M,N){return function(P){return P.lift(new V(M,N))}}class V{constructor(N,R){this.predicate=N,this.thisArg=R}call(N,R){return R.subscribe(new F(N,this.predicate,this.thisArg))}}class F extends w.L{constructor(N,R,P){super(N),this.predicate=R,this.thisArg=P,this.count=0}_next(N){let R;try{R=this.predicate.call(this.thisArg,N,this.count++)}catch(P){return void this.destination.error(P)}R&&this.destination.next(N)}}},4850:(le,k,f)=>{f.d(k,{U:()=>A});var w=f(3489);function A(M,N){return function(P){if("function"!=typeof M)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return P.lift(new V(M,N))}}class V{constructor(N,R){this.project=N,this.thisArg=R}call(N,R){return R.subscribe(new F(N,this.project,this.thisArg))}}class F extends w.L{constructor(N,R,P){super(N),this.project=R,this.count=0,this.thisArg=P||this}_next(N){let R;try{R=this.project.call(this.thisArg,N,this.count++)}catch(P){return void this.destination.error(P)}this.destination.next(R)}}},9146:(le,k,f)=>{f.d(k,{J:()=>V});var w=f(1709),A=f(5379);function V(F=Number.POSITIVE_INFINITY){return(0,w.zg)(A.y,F)}},1709:(le,k,f)=>{f.d(k,{zg:()=>F});var w=f(4850),A=f(3527),V=f(1177);function F(P,x,E=Number.POSITIVE_INFINITY){return"function"==typeof x?y=>y.pipe(F((T,C)=>(0,A.D)(P(T,C)).pipe((0,w.U)((B,te)=>x(T,B,C,te))),E)):("number"==typeof x&&(E=x),y=>y.lift(new M(P,E)))}class M{constructor(x,E=Number.POSITIVE_INFINITY){this.project=x,this.concurrent=E}call(x,E){return E.subscribe(new N(x,this.project,this.concurrent))}}class N extends V.Ds{constructor(x,E,y=Number.POSITIVE_INFINITY){super(x),this.project=E,this.concurrent=y,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(x){this.active<this.concurrent?this._tryNext(x):this.buffer.push(x)}_tryNext(x){let E;const y=this.index++;try{E=this.project(x,y)}catch(T){return void this.destination.error(T)}this.active++,this._innerSub(E)}_innerSub(x){const E=new V.IY(this),y=this.destination;y.add(E);const T=(0,V.ft)(x,E);T!==E&&y.add(T)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(x){this.destination.next(x)}notifyComplete(){const x=this.buffer;this.active--,x.length>0?this._next(x.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},4327:(le,k,f)=>{f.d(k,{x:()=>A});var w=f(3489);function A(){return function(N){return N.lift(new V(N))}}class V{constructor(N){this.connectable=N}call(N,R){const{connectable:P}=this;P._refCount++;const x=new F(N,P),E=R.subscribe(x);return x.closed||(x.connection=P.connect()),E}}class F extends w.L{constructor(N,R){super(N),this.connectable=R}_unsubscribe(){const{connectable:N}=this;if(!N)return void(this.connection=null);this.connectable=null;const R=N._refCount;if(R<=0)return void(this.connection=null);if(N._refCount=R-1,R>1)return void(this.connection=null);const{connection:P}=this,x=N._connection;this.connection=null,x&&(!P||x===P)&&x.unsubscribe()}}},6454:(le,k,f)=>{f.d(k,{r:()=>V});var w=f(4202),A=f(4096);function V(F,M){return new w.y(N=>{const R=new A.w;let P=0;return R.add(M.schedule(function(){P!==F.length?(N.next(F[P++]),N.closed||R.add(this.schedule())):N.complete()})),R})}},3998:(le,k,f)=>{f.d(k,{x:()=>C});var w=f(4202),A=f(4096),V=f(3821),N=f(6454),R=f(5430),E=f(8955),y=f(8515);function C(B,te){if(null!=B){if(function x(B){return B&&"function"==typeof B[V.L]}(B))return function F(B,te){return new w.y(X=>{const z=new A.w;return z.add(te.schedule(()=>{const xe=B[V.L]();z.add(xe.subscribe({next(Ct){z.add(te.schedule(()=>X.next(Ct)))},error(Ct){z.add(te.schedule(()=>X.error(Ct)))},complete(){z.add(te.schedule(()=>X.complete()))}}))})),z})}(B,te);if((0,E.t)(B))return function M(B,te){return new w.y(X=>{const z=new A.w;return z.add(te.schedule(()=>B.then(xe=>{z.add(te.schedule(()=>{X.next(xe),z.add(te.schedule(()=>X.complete()))}))},xe=>{z.add(te.schedule(()=>X.error(xe)))}))),z})}(B,te);if((0,y.z)(B))return(0,N.r)(B,te);if(function T(B){return B&&"function"==typeof B[R.hZ]}(B)||"string"==typeof B)return function P(B,te){if(!B)throw new Error("Iterable cannot be null");return new w.y(X=>{const z=new A.w;let xe;return z.add(()=>{xe&&"function"==typeof xe.return&&xe.return()}),z.add(te.schedule(()=>{xe=B[R.hZ](),z.add(te.schedule(function(){if(X.closed)return;let Ct,q;try{const or=xe.next();Ct=or.value,q=or.done}catch(or){return void X.error(or)}q?X.complete():(X.next(Ct),this.schedule())}))})),z})}(B,te)}throw new TypeError((null!==B&&typeof B||B)+" is not observable")}},6686:(le,k,f)=>{f.d(k,{o:()=>V});var w=f(4096);class A extends w.w{constructor(M,N){super()}schedule(M,N=0){return this}}class V extends A{constructor(M,N){super(M,N),this.scheduler=M,this.work=N,this.pending=!1}schedule(M,N=0){if(this.closed)return this;this.state=M;const R=this.id,P=this.scheduler;return null!=R&&(this.id=this.recycleAsyncId(P,R,N)),this.pending=!0,this.delay=N,this.id=this.id||this.requestAsyncId(P,this.id,N),this}requestAsyncId(M,N,R=0){return setInterval(M.flush.bind(M,this),R)}recycleAsyncId(M,N,R=0){if(null!==R&&this.delay===R&&!1===this.pending)return N;clearInterval(N)}execute(M,N){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const R=this._execute(M,N);if(R)return R;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(M,N){let P,R=!1;try{this.work(M)}catch(x){R=!0,P=!!x&&x||new Error(x)}if(R)return this.unsubscribe(),P}_unsubscribe(){const M=this.id,N=this.scheduler,R=N.actions,P=R.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==P&&R.splice(P,1),null!=M&&(this.id=this.recycleAsyncId(N,M,null)),this.delay=null}}},198:(le,k,f)=>{f.d(k,{v:()=>A});var w=f(2221);class A extends w.b{constructor(F,M=w.b.now){super(F,()=>A.delegate&&A.delegate!==this?A.delegate.now():M()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(F,M=0,N){return A.delegate&&A.delegate!==this?A.delegate.schedule(F,M,N):super.schedule(F,M,N)}flush(F){const{actions:M}=this;if(this.active)return void M.push(F);let N;this.active=!0;do{if(N=F.execute(F.state,F.delay))break}while(F=M.shift());if(this.active=!1,N){for(;F=M.shift();)F.unsubscribe();throw N}}}},353:(le,k,f)=>{f.d(k,{P:()=>F,z:()=>V});var w=f(6686);const V=new(f(198).v)(w.o),F=V},5430:(le,k,f)=>{f.d(k,{hZ:()=>A});const A=function w(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(le,k,f)=>{f.d(k,{L:()=>w});const w="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(le,k,f)=>{f.d(k,{b:()=>w});const w="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(le,k,f)=>{f.d(k,{W:()=>A});const A=(()=>{function V(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return V.prototype=Object.create(Error.prototype),V})()},4450:(le,k,f)=>{f.d(k,{K:()=>A});const A=(()=>{function V(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return V.prototype=Object.create(Error.prototype),V})()},5279:(le,k,f)=>{f.d(k,{N:()=>A});const A=(()=>{function V(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return V.prototype=Object.create(Error.prototype),V})()},7964:(le,k,f)=>{f.d(k,{B:()=>A});const A=(()=>{function V(F){return Error.call(this),this.message=F?`${F.length} errors occurred during unsubscription:\n${F.map((M,N)=>`${N+1}) ${M.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=F,this}return V.prototype=Object.create(Error.prototype),V})()},9476:(le,k,f)=>{f.d(k,{_:()=>A});var w=f(3489);function A(V){for(;V;){const{closed:F,destination:M,isStopped:N}=V;if(F||N)return!1;V=M&&M instanceof w.L?M:null}return!0}},2782:(le,k,f)=>{function w(A){setTimeout(()=>{throw A},0)}f.d(k,{z:()=>w})},5379:(le,k,f)=>{function w(A){return A}f.d(k,{y:()=>w})},6688:(le,k,f)=>{f.d(k,{k:()=>w});const w=Array.isArray||(A=>A&&"number"==typeof A.length)},8515:(le,k,f)=>{f.d(k,{z:()=>w});const w=A=>A&&"number"==typeof A.length&&"function"!=typeof A},7043:(le,k,f)=>{function w(A){return"function"==typeof A}f.d(k,{m:()=>w})},4241:(le,k,f)=>{f.d(k,{k:()=>A});var w=f(6688);function A(V){return!(0,w.k)(V)&&V-parseFloat(V)+1>=0}},7830:(le,k,f)=>{function w(A){return null!==A&&"object"==typeof A}f.d(k,{K:()=>w})},8955:(le,k,f)=>{function w(A){return!!A&&"function"!=typeof A.subscribe&&"function"==typeof A.then}f.d(k,{t:()=>w})},2866:(le,k,f)=>{function w(A){return A&&"function"==typeof A.schedule}f.d(k,{K:()=>w})},7876:(le,k,f)=>{function w(){}f.d(k,{Z:()=>w})},4843:(le,k,f)=>{f.d(k,{U:()=>V,z:()=>A});var w=f(5379);function A(...F){return V(F)}function V(F){return 0===F.length?w.y:1===F.length?F[0]:function(N){return F.reduce((R,P)=>P(R),N)}}},9249:(le,k,f)=>{f.d(k,{s:()=>y});var w=f(3650),A=f(2782),F=f(5430),N=f(3821),P=f(8515),x=f(8955),E=f(7830);const y=T=>{if(T&&"function"==typeof T[N.L])return(T=>C=>{const B=T[N.L]();if("function"!=typeof B.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return B.subscribe(C)})(T);if((0,P.z)(T))return(0,w.V)(T);if((0,x.t)(T))return(T=>C=>(T.then(B=>{C.closed||(C.next(B),C.complete())},B=>C.error(B)).then(null,A.z),C))(T);if(T&&"function"==typeof T[F.hZ])return(T=>C=>{const B=T[F.hZ]();for(;;){let te;try{te=B.next()}catch(X){return C.error(X),C}if(te.done){C.complete();break}if(C.next(te.value),C.closed)break}return"function"==typeof B.return&&C.add(()=>{B.return&&B.return()}),C})(T);{const B=`You provided ${(0,E.K)(T)?"an invalid object":`'${T}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(B)}}},3650:(le,k,f)=>{f.d(k,{V:()=>w});const w=A=>V=>{for(let F=0,M=A.length;F<M&&!V.closed;F++)V.next(A[F]);V.complete()}},448:(le,k,f)=>{f.d(k,{D:()=>M});var w=f(3489);class A extends w.L{constructor(R,P,x){super(),this.parent=R,this.outerValue=P,this.outerIndex=x,this.index=0}_next(R){this.parent.notifyNext(this.outerValue,R,this.outerIndex,this.index++,this)}_error(R){this.parent.notifyError(R,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var V=f(9249),F=f(4202);function M(N,R,P,x,E=new A(N,P,x)){if(!E.closed)return R instanceof F.y?R.subscribe(E):(0,V.s)(R)(E)}},4348:(le,k,f)=>{f(1305)}},le=>{le(le.s=1181)}]);