kc-sdk 6.12.12271 → 6.13.1057
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/app.component.css.map +1 -1
- package/src/assets/sdk/kc-sdk-config.js +8 -8
- package/src/assets/sdk/kc-sdk-config.json +8 -8
- package/src/assets/sdk/kc-sdk-support.js +289 -289
- package/src/assets/sdk/kc-sdk.js +734 -734
- package/src/assets/styles/bootstrap.min copy.css +4 -4
- package/src/assets/styles/bootstrap.min.css +4 -4
- package/src/assets/styles/uitk-defaults.css +2253 -2253
- package/src/index.html +19 -19
- package/src/main.js +1 -1
- package/src/main.js.map +1 -1
- package/src/styles.css.map +1 -1
package/src/main.js
CHANGED
|
@@ -4,7 +4,7 @@ ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
|
|
|
4
4
|
`);return r>=0?n.slice(0,r):n}function iu(e,t){return e?t?`${e} ${t}`:e:t||""}var Iy=j({__forward_ref__:j});function Fe(e){return e.__forward_ref__=Fe,e.toString=function(){return Ce(this())},e}function re(e){return Zu(e)?e():e}function Zu(e){return typeof e=="function"&&e.hasOwnProperty(Iy)&&e.__forward_ref__===Fe}function O(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function gt(e){return{providers:e.providers||[],imports:e.imports||[]}}function el(e){return su(e,Ku)||su(e,Yu)}function su(e,t){return e.hasOwnProperty(t)?e[t]:null}function by(e){let t=e&&(e[Ku]||e[Yu]);return t||null}function au(e){return e&&(e.hasOwnProperty(lu)||e.hasOwnProperty(Cy))?e[lu]:null}var Ku=j({\u0275prov:j}),lu=j({\u0275inj:j}),Yu=j({ngInjectableDef:j}),Cy=j({ngInjectorDef:j}),w=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=O({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Ju(e){return e&&!!e.\u0275providers}var Sy=j({\u0275cmp:j}),Ty=j({\u0275dir:j}),xy=j({\u0275pipe:j});var Co=j({\u0275fac:j}),nr=j({__NG_ELEMENT_ID__:j}),cu=j({__NG_ENV_ID__:j});function tl(e){return typeof e=="string"?e:e==null?"":String(e)}function My(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():tl(e)}function Qu(e,t){throw new _(-200,e)}function nl(e,t){throw new _(-201,!1)}var x=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(x||{}),ga;function Xu(){return ga}function Ie(e){let t=ga;return ga=e,t}function ed(e,t,n){let r=el(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&x.Optional)return null;if(t!==void 0)return t;nl(e,"Injector")}var Ny={},kt=Ny,ma="__NG_DI_FLAG__",So=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=n;return this.injector.get(t,r.optional?Kr:kt,r)}},To="ngTempTokenPath",Ay="ngTokenPath",ky=/\n/gm,Oy="\u0275",uu="__source";function Ry(e,t=x.Default){if(Yn()===void 0)throw new _(-203,!1);if(Yn()===null)return ed(e,void 0,t);{let n=Yn(),r;return n instanceof So?r=n.injector:r=n,r.get(e,t&x.Optional?null:void 0,t)}}function T(e,t=x.Default){return(Xu()||Ry)(re(e),t)}function S(e,t=x.Default){return T(e,Qo(t))}function Qo(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ya(e){let t=[];for(let n=0;n<e.length;n++){let r=re(e[n]);if(Array.isArray(r)){if(r.length===0)throw new _(900,!1);let o,i=x.Default;for(let s=0;s<r.length;s++){let a=r[s],l=Fy(a);typeof l=="number"?l===-1?o=a.token:i|=l:o=a}t.push(T(o,i))}else t.push(T(r))}return t}function td(e,t){return e[ma]=t,e.prototype[ma]=t,e}function Fy(e){return e[ma]}function Py(e,t,n,r){let o=e[To];throw t[uu]&&o.unshift(t[uu]),e.message=Ly(`
|
|
5
5
|
`+e.message,o,n,r),e[Ay]=o,e[To]=null,e}function Ly(e,t,n,r=null){e=e&&e.charAt(0)===`
|
|
6
6
|
`&&e.charAt(1)==Oy?e.slice(2):e;let o=Ce(t);if(Array.isArray(t))o=t.map(Ce).join(" -> ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):Ce(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(ky,`
|
|
7
|
-
`)}`}var Vy=td(qu("Optional"),8);var jy=td(qu("SkipSelf"),4);function sn(e,t){let n=e.hasOwnProperty(Co);return n?e[Co]:null}function rl(e,t){e.forEach(n=>Array.isArray(n)?rl(n,t):t(n))}function nd(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function xo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function By(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Hy(e,t,n){let r=dr(e,t);return r>=0?e[r|1]=n:(r=~r,By(e,r,t,n)),r}function ta(e,t){let n=dr(e,t);if(n>=0)return e[n|1]}function dr(e,t){return Uy(e,t,1)}function Uy(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var Rt={},be=[],Mo=new w(""),rd=new w("",-1),od=new w(""),No=class{get(t,n=kt){if(n===kt){let r=new Error(`NullInjectorError: No provider for ${Ce(t)}!`);throw r.name="NullInjectorError",r}return n}};function rr(e){return e[Sy]||null}function $y(e){return e[Ty]||null}function Wy(e){return e[xy]||null}function id(e){return{\u0275providers:e}}function Gy(...e){return{\u0275providers:sd(!0,e),\u0275fromNgModule:!0}}function sd(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return rl(t,s=>{let a=s;va(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&ad(o,i),n}function ad(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];ol(o,i=>{t(i,r)})}}function va(e,t,n,r){if(e=re(e),!e)return!1;let o=null,i=au(e),s=!i&&rr(e);if(!i&&!s){let l=e.ngModule;if(i=au(l),i)o=l;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)va(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{rl(i.imports,u=>{va(u,t,n,r)&&(c||=[],c.push(u))})}finally{}c!==void 0&&ad(c,t)}if(!a){let c=sn(o)||(()=>new o);t({provide:o,useFactory:c,deps:be},o),t({provide:od,useValue:o,multi:!0},o),t({provide:Mo,useValue:()=>T(o),multi:!0},o)}let l=i.providers;if(l!=null&&!a){let c=e;ol(l,u=>{t(u,c)})}}else return!1;return o!==e&&e.providers!==void 0}function ol(e,t){for(let n of e)Ju(n)&&(n=n.\u0275providers),Array.isArray(n)?ol(n,t):t(n)}var zy=j({provide:String,useValue:j});function ld(e){return e!==null&&typeof e=="object"&&zy in e}function qy(e){return!!(e&&e.useExisting)}function Zy(e){return!!(e&&e.useFactory)}function an(e){return typeof e=="function"}function Ky(e){return!!e.useClass}var Xo=new w(""),wo={},du={},na;function il(){return na===void 0&&(na=new No),na}var je=class{},or=class extends je{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,wa(t,s=>this.processProvider(s)),this.records.set(rd,tn(void 0,this)),o.has("environment")&&this.records.set(je,tn(void 0,this));let i=this.records.get(Xo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(od,be,x.Self))}retrieve(t,n){let r=n;return this.get(t,r.optional?Kr:kt,r)}destroy(){er(this),this._destroyed=!0;let t=N(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),N(t)}}onDestroy(t){return er(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){er(this);let n=Je(this),r=Ie(void 0),o;try{return t()}finally{Je(n),Ie(r)}}get(t,n=kt,r=x.Default){if(er(this),t.hasOwnProperty(cu))return t[cu](this);r=Qo(r);let o,i=Je(this),s=Ie(void 0);try{if(!(r&x.SkipSelf)){let l=this.records.get(t);if(l===void 0){let c=ev(t)&&el(t);c&&this.injectableDefInScope(c)?l=tn(Da(t),wo):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l,r)}let a=r&x.Self?il():this.parent;return n=r&x.Optional&&n===kt?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[To]=a[To]||[]).unshift(Ce(t)),i)throw a;return Py(a,t,"R3InjectorError",this.source)}else throw a}finally{Ie(s),Je(i)}}resolveInjectorInitializers(){let t=N(null),n=Je(this),r=Ie(void 0),o;try{let i=this.get(Mo,be,x.Self);for(let s of i)s()}finally{Je(n),Ie(r),N(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(Ce(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=re(t);let n=an(t)?t:re(t&&t.provide),r=Jy(t);if(!an(t)&&t.multi===!0){let o=this.records.get(n);o||(o=tn(void 0,wo,!0),o.factory=()=>ya(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=N(null);try{return n.value===du?Qu(Ce(t)):n.value===wo&&(n.value=du,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&Xy(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{N(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=re(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Da(e){let t=el(e),n=t!==null?t.factory:sn(e);if(n!==null)return n;if(e instanceof w)throw new _(204,!1);if(e instanceof Function)return Yy(e);throw new _(204,!1)}function Yy(e){if(e.length>0)throw new _(204,!1);let n=by(e);return n!==null?()=>n.factory(e):()=>new e}function Jy(e){if(ld(e))return tn(void 0,e.useValue);{let t=cd(e);return tn(t,wo)}}function cd(e,t,n){let r;if(an(e)){let o=re(e);return sn(o)||Da(o)}else if(ld(e))r=()=>re(e.useValue);else if(Zy(e))r=()=>e.useFactory(...ya(e.deps||[]));else if(qy(e))r=(o,i)=>T(re(e.useExisting),i!==void 0&&i&x.Optional?x.Optional:void 0);else{let o=re(e&&(e.useClass||e.provide));if(Qy(e))r=()=>new o(...ya(e.deps));else return sn(o)||Da(o)}return r}function er(e){if(e.destroyed)throw new _(205,!1)}function tn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Qy(e){return!!e.deps}function Xy(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function ev(e){return typeof e=="function"||typeof e=="object"&&e instanceof w}function wa(e,t){for(let n of e)Array.isArray(n)?wa(n,t):n&&Ju(n)?wa(n.\u0275providers,t):t(n)}function ei(e,t){let n;e instanceof or?(er(e),n=e):n=new So(e);let r,o=Je(n),i=Ie(void 0);try{return t()}finally{Je(o),Ie(i)}}function tv(){return Xu()!==void 0||Yn()!=null}function nv(e){return typeof e=="function"}var tt=0,k=1,b=2,oe=3,Re=4,Pe=5,Ao=6,ko=7,he=8,ln=9,pt=10,J=11,ir=12,fu=13,gn=14,Be=15,cn=16,nn=17,un=18,ti=19,ud=20,dt=21,ra=22,Oo=23,Se=24,oa=25,He=26,dd=1;var Ft=7,Ro=8,Fo=9,Te=10;function ft(e){return Array.isArray(e)&&typeof e[dd]=="object"}function nt(e){return Array.isArray(e)&&e[dd]===!0}function fd(e){return(e.flags&4)!==0}function mn(e){return e.componentOffset>-1}function sl(e){return(e.flags&1)===1}function Ue(e){return!!e.template}function Po(e){return(e[b]&512)!==0}function yn(e){return(e[b]&256)===256}var Ea=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function pd(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var vn=(()=>{let e=()=>hd;return e.ngInherit=!0,e})();function hd(e){return e.type.prototype.ngOnChanges&&(e.setInput=ov),rv}function rv(){let e=md(this),t=e?.current;if(t){let n=e.previous;if(n===Rt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function ov(e,t,n,r,o){let i=this.declaredInputs[r],s=md(e)||iv(e,{previous:Rt,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[i];a[i]=new Ea(c&&c.currentValue,n,l===Rt),pd(e,t,o,n)}var gd="__ngSimpleChanges__";function md(e){return e[gd]||null}function iv(e,t){return e[gd]=t}var pu=null;var L=function(e,t=null,n){pu?.(e,t,n)},sv="svg",av="math";function $e(e){for(;Array.isArray(e);)e=e[tt];return e}function yd(e,t){return $e(t[e])}function ze(e,t){return $e(t[e.index])}function vd(e,t){return e.data[t]}function lv(e,t){return e[t]}function We(e,t){let n=t[e];return ft(n)?n:n[tt]}function al(e){return(e[b]&128)===128}function cv(e){return nt(e[oe])}function Lo(e,t){return t==null?null:e[t]}function Dd(e){e[nn]=0}function wd(e){e[b]&1024||(e[b]|=1024,al(e)&&ri(e))}function uv(e,t){for(;e>0;)t=t[gn],e--;return t}function ni(e){return!!(e[b]&9216||e[Se]?.dirty)}function _a(e){e[pt].changeDetectionScheduler?.notify(8),e[b]&64&&(e[b]|=1024),ni(e)&&ri(e)}function ri(e){e[pt].changeDetectionScheduler?.notify(0);let t=Pt(e);for(;t!==null&&!(t[b]&8192||(t[b]|=8192,!al(t)));)t=Pt(t)}function Ed(e,t){if(yn(e))throw new _(911,!1);e[dt]===null&&(e[dt]=[]),e[dt].push(t)}function dv(e,t){if(e[dt]===null)return;let n=e[dt].indexOf(t);n!==-1&&e[dt].splice(n,1)}function Pt(e){let t=e[oe];return nt(t)?t[oe]:t}function _d(e){return e[ko]??=[]}function Id(e){return e.cleanup??=[]}var M={lFrame:kd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Ia=!1;function fv(){return M.lFrame.elementDepthCount}function pv(){M.lFrame.elementDepthCount++}function hv(){M.lFrame.elementDepthCount--}function bd(){return M.bindingsEnabled}function gv(){return M.skipHydrationRootTNode!==null}function mv(e){return M.skipHydrationRootTNode===e}function yv(){M.skipHydrationRootTNode=null}function B(){return M.lFrame.lView}function ye(){return M.lFrame.tView}function H(e){return M.lFrame.contextLView=e,e[he]}function U(e){return M.lFrame.contextLView=null,e}function xe(){let e=Cd();for(;e!==null&&e.type===64;)e=e.parent;return e}function Cd(){return M.lFrame.currentTNode}function vv(){let e=M.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function fr(e,t){let n=M.lFrame;n.currentTNode=e,n.isParent=t}function Sd(){return M.lFrame.isParent}function Dv(){M.lFrame.isParent=!1}function wv(){return M.lFrame.contextLView}function Td(){return Ia}function hu(e){let t=Ia;return Ia=e,t}function xd(){let e=M.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ev(e){return M.lFrame.bindingIndex=e}function oi(){return M.lFrame.bindingIndex++}function _v(e){let t=M.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Iv(){return M.lFrame.inI18n}function bv(e,t){let n=M.lFrame;n.bindingIndex=n.bindingRootIndex=e,ba(t)}function Cv(){return M.lFrame.currentDirectiveIndex}function ba(e){M.lFrame.currentDirectiveIndex=e}function Sv(e){let t=M.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Md(e){M.lFrame.currentQueryIndex=e}function Tv(e){let t=e[k];return t.type===2?t.declTNode:t.type===1?e[Pe]:null}function Nd(e,t,n){if(n&x.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&x.Host);)if(o=Tv(i),o===null||(i=i[gn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=M.lFrame=Ad();return r.currentTNode=t,r.lView=e,!0}function ll(e){let t=Ad(),n=e[k];M.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ad(){let e=M.lFrame,t=e===null?null:e.child;return t===null?kd(e):t}function kd(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Od(){let e=M.lFrame;return M.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Rd=Od;function cl(){let e=Od();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function xv(e){return(M.lFrame.contextLView=uv(e,M.lFrame.contextLView))[he]}function Dn(){return M.lFrame.selectedIndex}function Lt(e){M.lFrame.selectedIndex=e}function ul(){let e=M.lFrame;return vd(e.tView,e.selectedIndex)}function Mv(){return M.lFrame.currentNamespace}var Fd=!0;function dl(){return Fd}function fl(e){Fd=e}function Nv(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=hd(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Pd(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),l&&(e.viewHooks??=[]).push(-n,l),c&&((e.viewHooks??=[]).push(n,c),(e.viewCheckHooks??=[]).push(n,c)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function Eo(e,t,n){Ld(e,t,3,n)}function _o(e,t,n,r){(e[b]&3)===n&&Ld(e,t,n,r)}function ia(e,t){let n=e[b];(n&3)===t&&(n&=16383,n+=1,e[b]=n)}function Ld(e,t,n,r){let o=r!==void 0?e[nn]&65535:0,i=r??-1,s=t.length-1,a=0;for(let l=o;l<s;l++)if(typeof t[l+1]=="number"){if(a=t[l],r!=null&&a>=r)break}else t[l]<0&&(e[nn]+=65536),(a<i||i==-1)&&(Av(e,n,t,l),e[nn]=(e[nn]&4294901760)+l+2),l++}function gu(e,t){L(4,e,t);let n=N(null);try{t.call(e)}finally{N(n),L(5,e,t)}}function Av(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[b]>>14<e[nn]>>16&&(e[b]&3)===t&&(e[b]+=16384,gu(a,i)):gu(a,i)}var on=-1,Vt=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function kv(e){return(e.flags&8)!==0}function Ov(e){return(e.flags&16)!==0}function Rv(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];Pv(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function Fv(e){return e===3||e===4||e===6}function Pv(e){return e.charCodeAt(0)===64}function sr(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?mu(e,n,o,null,t[++r]):mu(e,n,o,null,null))}}return e}function mu(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function Vd(e){return e!==on}function Vo(e){return e&32767}function Lv(e){return e>>16}function jo(e,t){let n=Lv(e),r=t;for(;n>0;)r=r[gn],n--;return r}var Ca=!0;function yu(e){let t=Ca;return Ca=e,t}var Vv=256,jd=Vv-1,Bd=5,jv=0,Ve={};function Bv(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(nr)&&(r=n[nr]),r==null&&(r=n[nr]=jv++);let o=r&jd,i=1<<o;t.data[e+(o>>Bd)]|=i}function Bo(e,t){let n=Hd(e,t);if(n!==-1)return n;let r=t[k];r.firstCreatePass&&(e.injectorIndex=t.length,sa(r.data,e),sa(t,null),sa(r.blueprint,null));let o=pl(e,t),i=e.injectorIndex;if(Vd(o)){let s=Vo(o),a=jo(o,t),l=a[k].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|l[s+c]}return t[i+8]=o,i}function sa(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Hd(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function pl(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=zd(o),r===null)return on;if(n++,o=o[gn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return on}function Sa(e,t,n){Bv(e,t,n)}function Ud(e,t,n){if(n&x.Optional||e!==void 0)return e;nl(t,"NodeInjector")}function $d(e,t,n,r){if(n&x.Optional&&r===void 0&&(r=null),(n&(x.Self|x.Host))===0){let o=e[ln],i=Ie(void 0);try{return o?o.get(t,r,n&x.Optional):ed(t,r,n&x.Optional)}finally{Ie(i)}}return Ud(r,t,n)}function Wd(e,t,n,r=x.Default,o){if(e!==null){if(t[b]&2048&&!(r&x.Self)){let s=Gv(e,t,n,r,Ve);if(s!==Ve)return s}let i=Gd(e,t,n,r,Ve);if(i!==Ve)return i}return $d(t,n,r,o)}function Gd(e,t,n,r,o){let i=$v(n);if(typeof i=="function"){if(!Nd(t,e,r))return r&x.Host?Ud(o,n,r):$d(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&x.Optional))nl(n);else return s}finally{Rd()}}else if(typeof i=="number"){let s=null,a=Hd(e,t),l=on,c=r&x.Host?t[Be][Pe]:null;for((a===-1||r&x.SkipSelf)&&(l=a===-1?pl(e,t):t[a+8],l===on||!Du(r,!1)?a=-1:(s=t[k],a=Vo(l),t=jo(l,t)));a!==-1;){let u=t[k];if(vu(i,a,u.data)){let f=Hv(a,t,n,s,r,c);if(f!==Ve)return f}l=t[a+8],l!==on&&Du(r,t[k].data[a+8]===c)&&vu(i,a,t)?(s=u,a=Vo(l),t=jo(l,t)):a=-1}}return o}function Hv(e,t,n,r,o,i){let s=t[k],a=s.data[e+8],l=r==null?mn(a)&&Ca:r!=s&&(a.type&3)!==0,c=o&x.Host&&i===a,u=Uv(a,s,n,l,c);return u!==null?Ho(t,s,u,a,o):Ve}function Uv(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,l=e.directiveStart,c=e.directiveEnd,u=i>>20,f=r?a:a+u,p=o?a+u:c;for(let d=f;d<p;d++){let h=s[d];if(d<l&&n===h||d>=l&&h.type===n)return d}if(o){let d=s[l];if(d&&Ue(d)&&d.type===n)return l}return null}function Ho(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Vt){let a=i;a.resolving&&Qu(My(s[n]));let l=yu(a.canSeeViewProviders);a.resolving=!0;let c,u=a.injectImpl?Ie(a.injectImpl):null,f=Nd(e,r,x.Default);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&Nv(n,s[n],t)}finally{u!==null&&Ie(u),yu(l),a.resolving=!1,Rd()}}return i}function $v(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(nr)?e[nr]:void 0;return typeof t=="number"?t>=0?t&jd:Wv:t}function vu(e,t,n){let r=1<<e;return!!(n[t+(e>>Bd)]&r)}function Du(e,t){return!(e&x.Self)&&!(e&x.Host&&t)}var Ot=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Wd(this._tNode,this._lView,t,Qo(r),n)}};function Wv(){return new Ot(xe(),B())}function wn(e){return ur(()=>{let t=e.prototype.constructor,n=t[Co]||Ta(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Co]||Ta(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Ta(e){return Zu(e)?()=>{let t=Ta(re(e));return t&&t()}:sn(e)}function Gv(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[b]&2048&&!Po(s);){let a=Gd(i,s,n,r|x.Self,Ve);if(a!==Ve)return a;let l=i.parent;if(!l){let c=s[ud];if(c){let u=c.get(n,Ve,r);if(u!==Ve)return u}l=zd(s),s=s[gn]}i=l}return o}function zd(e){let t=e[k],n=t.type;return n===2?t.declTNode:n===1?e[Pe]:null}function wu(e,t=null,n=null,r){let o=zv(e,t,n,r);return o.resolveInjectorInitializers(),o}function zv(e,t=null,n=null,r,o=new Set){let i=[n||be,Gy(e)];return r=r||(typeof e=="object"?void 0:Ce(e)),new or(i,t||il(),r||null,o)}var dn=class e{static THROW_IF_NOT_FOUND=kt;static NULL=new No;static create(t,n){if(Array.isArray(t))return wu({name:""},n,t,"");{let r=t.name??"";return wu({name:r},t.parent,t.providers,r)}}static \u0275prov=O({token:e,providedIn:"any",factory:()=>T(rd)});static __NG_ELEMENT_ID__=-1};var qv=new w("");qv.__NG_ELEMENT_ID__=e=>{let t=xe();if(t===null)throw new _(204,!1);if(t.type&2)return t.value;if(e&x.Optional)return null;throw new _(204,!1)};var qd=!1,Zd=(()=>{class e{static __NG_ELEMENT_ID__=Zv;static __NG_ENV_ID__=n=>n}return e})(),xa=class extends Zd{_lView;constructor(t){super(),this._lView=t}onDestroy(t){let n=this._lView;return yn(n)?(t(),()=>{}):(Ed(n,t),()=>dv(n,t))}};function Zv(){return new xa(B())}var ar=class{},Kd=new w("",{providedIn:"root",factory:()=>!1});var Yd=new w(""),Jd=new w(""),Bt=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Qn(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=O({token:e,providedIn:"root",factory:()=>new e})}return e})();var Ma=class extends Qe{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,tv()&&(this.destroyRef=S(Zd,{optional:!0})??void 0,this.pendingTasks=S(Bt,{optional:!0})??void 0)}emit(t){let n=N(null);try{super.next(t)}finally{N(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let l=t;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof ne&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},pe=Ma;function Uo(...e){}function Qd(e){let t,n;function r(){e=Uo;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Eu(e){return queueMicrotask(()=>e()),()=>{e=Uo}}var hl="isAngularZone",$o=hl+"_ID",Kv=0,ee=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new pe(!1);onMicrotaskEmpty=new pe(!1);onStable=new pe(!1);onError=new pe(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=qd}=t;if(typeof Zone>"u")throw new _(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Qv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(hl)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new _(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new _(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Yv,Uo,Uo);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Yv={};function gl(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Jv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Qd(()=>{e.callbackScheduled=!1,Na(e),e.isCheckStableRunning=!0,gl(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Na(e)}function Qv(e){let t=()=>{Jv(e)},n=Kv++;e._inner=e._inner.fork({name:"angular",properties:{[hl]:!0,[$o]:n,[$o+n]:!0},onInvokeTask:(r,o,i,s,a,l)=>{if(Xv(l))return r.invokeTask(i,s,a,l);try{return _u(e),r.invokeTask(i,s,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Iu(e)}},onInvoke:(r,o,i,s,a,l,c)=>{try{return _u(e),r.invoke(i,s,a,l,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!eD(l)&&t(),Iu(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Na(e),gl(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Na(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function _u(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Iu(e){e._nesting--,gl(e)}var Aa=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new pe;onMicrotaskEmpty=new pe;onStable=new pe;onError=new pe;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Xv(e){return Xd(e,"__ignore_ng_zone__")}function eD(e){return Xd(e,"__scheduler_tick__")}function Xd(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Xe=class{_console=console;handleError(t){this._console.error("ERROR",t)}},tD=new w("",{providedIn:"root",factory:()=>{let e=S(ee),t=S(Xe);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function nD(){return ii(xe(),B())}function ii(e,t){return new mt(ze(e,t))}var mt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=nD}return e})();function rD(e){return typeof e=="function"&&e[Ae]!==void 0}function pr(e,t){let n=js(e,t?.equal),r=n[Ae];return n.set=o=>Zr(r,o),n.update=o=>Bs(r,o),n.asReadonly=oD.bind(n),n}function oD(){let e=this[Ae];if(e.readonlyFn===void 0){let t=()=>this();t[Ae]=e,e.readonlyFn=t}return e.readonlyFn}function ef(e){return rD(e)&&typeof e.set=="function"}function tf(e){return(e.flags&128)===128}var nf=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(nf||{}),rf=new Map,iD=0;function sD(){return iD++}function aD(e){rf.set(e[ti],e)}function ka(e){rf.delete(e[ti])}var bu="__ngContext__";function hr(e,t){ft(t)?(e[bu]=t[ti],aD(t)):e[bu]=t}function of(e){return af(e[ir])}function sf(e){return af(e[Re])}function af(e){for(;e!==null&&!nt(e);)e=e[Re];return e}var Oa;function lf(e){Oa=e}function lD(){if(Oa!==void 0)return Oa;if(typeof document<"u")return document;throw new _(210,!1)}var ml=new w("",{providedIn:"root",factory:()=>cD}),cD="ng",yl=new w(""),gr=new w("",{providedIn:"platform",factory:()=>"unknown"});var vl=new w("",{providedIn:"root",factory:()=>lD().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var uD="h",dD="b";var cf=!1,fD=new w("",{providedIn:"root",factory:()=>cf});var uf=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(uf||{}),si=new w(""),Cu=new Set;function pD(e){Cu.has(e)||(Cu.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var hD=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=O({token:e,providedIn:"root",factory:()=>new e})}return e})();var gD=(e,t,n,r)=>{};function mD(e,t,n,r){gD(e,t,n,r)}var yD=()=>null;function df(e,t,n=!1){return yD(e,t,n)}function ff(e,t){let n=e.contentQueries;if(n!==null){let r=N(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];Md(i),a.contentQueries(2,t[s],s)}}}finally{N(r)}}}function Ra(e,t,n){Md(0);let r=N(null);try{t(e,n)}finally{N(r)}}function pf(e,t,n){if(fd(t)){let r=N(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let l=n[s];a.contentQueries(1,l,s)}}}finally{N(r)}}}var Ge=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Ge||{});var Fa=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${vy})`}};function vD(e){return e instanceof Fa?e.changingThisBreaksApplicationSecurity:e}function DD(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var hf="ng-template";function wD(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&DD(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(Dl(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function Dl(e){return e.type===4&&e.value!==hf}function ED(e,t,n){let r=e.type===4&&!n?hf:e.value;return t===r}function _D(e,t,n){let r=4,o=e.attrs,i=o!==null?CD(o):0,s=!1;for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="number"){if(!s&&!Oe(r)&&!Oe(l))return!1;if(s&&Oe(l))continue;s=!1,r=l|r&1;continue}if(!s)if(r&4){if(r=2|r&1,l!==""&&!ED(e,l,n)||l===""&&t.length===1){if(Oe(r))return!1;s=!0}}else if(r&8){if(o===null||!wD(e,o,l,n)){if(Oe(r))return!1;s=!0}}else{let c=t[++a],u=ID(l,o,Dl(e),n);if(u===-1){if(Oe(r))return!1;s=!0;continue}if(c!==""){let f;if(u>i?f="":f=o[u+1].toLowerCase(),r&2&&c!==f){if(Oe(r))return!1;s=!0}}}}return Oe(r)||s}function Oe(e){return(e&1)===0}function ID(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return SD(t,e)}function bD(e,t,n=!1){for(let r=0;r<t.length;r++)if(_D(e,t[r],n))return!0;return!1}function CD(e){for(let t=0;t<e.length;t++){let n=e[t];if(Fv(n))return t}return e.length}function SD(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function Su(e,t){return e?":not("+t.trim()+")":t}function TD(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Oe(s)&&(t+=Su(i,o),o=""),r=s,i=i||!Oe(r);n++}return o!==""&&(t+=Su(i,o)),t}function xD(e){return e.map(TD).join(",")}function MD(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!Oe(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var Ht={};function ND(e,t){return e.createText(t)}function AD(e,t,n){e.setValue(t,n)}function gf(e,t,n){return e.createElement(t,n)}function Wo(e,t,n,r,o){e.insertBefore(t,n,r,o)}function mf(e,t,n){e.appendChild(t,n)}function Tu(e,t,n,r,o){r!==null?Wo(e,t,n,r,o):mf(e,t,n)}function kD(e,t,n){e.removeChild(null,t,n)}function OD(e,t,n){e.setAttribute(t,"style",n)}function RD(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function yf(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&Rv(e,t,r),o!==null&&RD(e,t,o),i!==null&&OD(e,t,i)}function wl(e,t,n,r,o,i,s,a,l,c,u){let f=He+r,p=f+o,d=FD(f,p),h=typeof c=="function"?c():c;return d[k]={type:e,blueprint:d,template:n,queries:null,viewQuery:a,declTNode:t,data:d.slice().fill(null,f),bindingStartIndex:f,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:h,incompleteFirstPass:!1,ssrId:u}}function FD(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Ht);return n}function PD(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=wl(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function El(e,t,n,r,o,i,s,a,l,c,u){let f=t.blueprint.slice();return f[tt]=o,f[b]=r|4|128|8|64|1024,(c!==null||e&&e[b]&2048)&&(f[b]|=2048),Dd(f),f[oe]=f[gn]=e,f[he]=n,f[pt]=s||e&&e[pt],f[J]=a||e&&e[J],f[ln]=l||e&&e[ln]||null,f[Pe]=i,f[ti]=sD(),f[Ao]=u,f[ud]=c,f[Be]=t.type==2?e[Be]:f,f}function LD(e,t,n){let r=ze(t,e),o=PD(n),i=e[pt].rendererFactory,s=_l(e,El(e,o,null,vf(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function vf(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Df(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function _l(e,t){return e[ir]?e[fu][Re]=t:e[ir]=t,e[fu]=t,t}function D(e=1){wf(ye(),B(),Dn()+e,!1)}function wf(e,t,n,r){if(!r)if((t[b]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Eo(t,i,n)}else{let i=e.preOrderHooks;i!==null&&_o(t,i,0,n)}Lt(n)}var ai=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(ai||{});function Pa(e,t,n,r){let o=N(null);try{let[i,s,a]=e.inputs[n],l=null;(s&ai.SignalBased)!==0&&(l=t[i][Ae]),l!==null&&l.transformFn!==void 0?r=l.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,l,r,n,i):pd(t,l,i,r)}finally{N(o)}}function Ef(e,t,n,r,o){let i=Dn(),s=r&2;try{Lt(-1),s&&t.length>He&&wf(e,t,He,!1),L(s?2:0,o),n(r,o)}finally{Lt(i),L(s?3:1,o)}}function Il(e,t,n){$D(e,t,n),(n.flags&64)===64&&WD(e,t,n)}function _f(e,t,n=ze){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function VD(e,t,n,r){let i=r.get(fD,cf)||n===Ge.ShadowDom,s=e.selectRootElement(t,i);return jD(s),s}function jD(e){BD(e)}var BD=()=>null;function HD(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function If(e,t,n,r,o,i,s,a){if(!a&&bl(t,e,n,r,o)){mn(t)&&UD(n,t.index);return}if(t.type&3){let l=ze(t,n);r=HD(r),o=s!=null?s(o,t.value||"",r):o,i.setProperty(l,r,o)}else t.type&12}function UD(e,t){let n=We(t,e);n[b]&16||(n[b]|=64)}function $D(e,t,n){let r=n.directiveStart,o=n.directiveEnd;mn(n)&&LD(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Bo(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],l=Ho(t,e,s,n);if(hr(l,t),i!==null&&ZD(t,s-r,l,a,n,i),Ue(a)){let c=We(n.index,t);c[he]=Ho(t,e,s,n)}}}function WD(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Cv();try{Lt(i);for(let a=r;a<o;a++){let l=e.data[a],c=t[a];ba(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&GD(l,c)}}finally{Lt(-1),ba(s)}}function GD(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function bf(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];bD(t,i.selectors,!1)&&(r??=[],Ue(i)?r.unshift(i):r.push(i))}return r}function zD(e,t,n,r,o,i){let s=ze(e,t);qD(t[J],s,i,e.value,n,r,o)}function qD(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?tl(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function ZD(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let l=s[a],c=s[a+1];Pa(r,n,l,c)}}function KD(e,t){let n=e[ln],r=n?n.get(Xe,null):null;r&&r.handleError(t)}function bl(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let l=0;l<s.length;l+=2){let c=s[l],u=s[l+1],f=t.data[c];Pa(f,n[c],u,o),a=!0}if(i)for(let l of i){let c=n[l],u=t.data[l];Pa(u,c,r,o),a=!0}return a}function YD(e,t){let n=We(t,e),r=n[k];JD(r,n);let o=n[tt];o!==null&&n[Ao]===null&&(n[Ao]=df(o,n[ln])),L(18),Cl(r,n,n[he]),L(19,n[he])}function JD(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Cl(e,t,n){ll(t);try{let r=e.viewQuery;r!==null&&Ra(1,r,n);let o=e.template;o!==null&&Ef(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[un]?.finishViewCreation(e),e.staticContentQueries&&ff(e,t),e.staticViewQueries&&Ra(2,e.viewQuery,n);let i=e.components;i!==null&&QD(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[b]&=-5,cl()}}function QD(e,t){for(let n=0;n<t.length;n++)YD(e,t[n])}function XD(e,t,n,r){let o=N(null);try{let i=t.tView,a=e[b]&4096?4096:16,l=El(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),c=e[t.index];l[cn]=c;let u=e[un];return u!==null&&(l[un]=u.createEmbeddedView(i)),Cl(i,l,n),l}finally{N(o)}}function xu(e,t){return!t||t.firstChild===null||tf(e)}var ew;function Sl(e,t){return ew(e,t)}var et=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(et||{});function Cf(e){return(e.flags&32)===32}function rn(e,t,n,r,o){if(r!=null){let i,s=!1;nt(r)?i=r:ft(r)&&(s=!0,r=r[tt]);let a=$e(r);e===0&&n!==null?o==null?mf(t,n,a):Wo(t,n,a,o||null,!0):e===1&&n!==null?Wo(t,n,a,o||null,!0):e===2?kD(t,a,s):e===3&&t.destroyNode(a),i!=null&&fw(t,e,i,n,o)}}function tw(e,t){Sf(e,t),t[tt]=null,t[Pe]=null}function nw(e,t,n,r,o,i){r[tt]=o,r[Pe]=t,li(e,r,n,1,o,i)}function Sf(e,t){t[pt].changeDetectionScheduler?.notify(9),li(e,t,t[J],2,null,null)}function rw(e){let t=e[ir];if(!t)return aa(e[k],e);for(;t;){let n=null;if(ft(t))n=t[ir];else{let r=t[Te];r&&(n=r)}if(!n){for(;t&&!t[Re]&&t!==e;)ft(t)&&aa(t[k],t),t=t[oe];t===null&&(t=e),ft(t)&&aa(t[k],t),n=t&&t[Re]}t=n}}function Tl(e,t){let n=e[Fo],r=n.indexOf(t);n.splice(r,1)}function Tf(e,t){if(yn(t))return;let n=t[J];n.destroyNode&&li(e,t,n,3,null,null),rw(t)}function aa(e,t){if(yn(t))return;let n=N(null);try{t[b]&=-129,t[b]|=256,t[Se]&&Ps(t[Se]),iw(e,t),ow(e,t),t[k].type===1&&t[J].destroy();let r=t[cn];if(r!==null&&nt(t[oe])){r!==t[oe]&&Tl(r,t);let o=t[un];o!==null&&o.detachView(e)}ka(t)}finally{N(n)}}function ow(e,t){let n=e.cleanup,r=t[ko];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[ko]=null);let o=t[dt];if(o!==null){t[dt]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[Oo];if(i!==null){t[Oo]=null;for(let s of i)s.destroy()}}function iw(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof Vt)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],l=i[s+1];L(4,a,l);try{l.call(a)}finally{L(5,a,l)}}else{L(4,o,i);try{i.call(o)}finally{L(5,o,i)}}}}}function sw(e,t,n){return aw(e,t.parent,n)}function aw(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[tt];if(mn(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Ge.None||o===Ge.Emulated)return null}return ze(r,n)}function lw(e,t,n){return uw(e,t,n)}function cw(e,t,n){return e.type&40?ze(e,n):null}var uw=cw,Mu;function xl(e,t,n,r){let o=sw(e,r,t),i=t[J],s=r.parent||t[Pe],a=lw(s,r,t);if(o!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)Tu(i,o,n[l],a,!1);else Tu(i,o,n,a,!1);Mu!==void 0&&Mu(i,r,t,n,o)}function tr(e,t){if(t!==null){let n=t.type;if(n&3)return ze(t,e);if(n&4)return La(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return tr(e,r);{let o=e[t.index];return nt(o)?La(-1,o):$e(o)}}else{if(n&128)return tr(e,t.next);if(n&32)return Sl(t,e)()||$e(e[t.index]);{let r=xf(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Pt(e[Be]);return tr(o,r)}else return tr(e,t.next)}}}return null}function xf(e,t){if(t!==null){let r=e[Be][Pe],o=t.projection;return r.projection[o]}return null}function La(e,t){let n=Te+e+1;if(n<t.length){let r=t[n],o=r[k].firstChild;if(o!==null)return tr(r,o)}return t[Ft]}function Ml(e,t,n,r,o,i,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],l=n.type;if(s&&t===0&&(a&&hr($e(a),r),n.flags|=2),!Cf(n))if(l&8)Ml(e,t,n.child,r,o,i,!1),rn(t,e,o,a,i);else if(l&32){let c=Sl(n,r),u;for(;u=c();)rn(t,e,o,u,i);rn(t,e,o,a,i)}else l&16?dw(e,t,r,n,o,i):rn(t,e,o,a,i);n=s?n.projectionNext:n.next}}function li(e,t,n,r,o,i){Ml(n,r,e.firstChild,t,o,i,!1)}function dw(e,t,n,r,o,i){let s=n[Be],l=s[Pe].projection[r.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++){let u=l[c];rn(t,e,o,u,i)}else{let c=l,u=s[oe];tf(r)&&(c.flags|=128),Ml(e,t,c,u,o,i,!0)}}function fw(e,t,n,r,o){let i=n[Ft],s=$e(n);i!==s&&rn(t,e,r,i,o);for(let a=Te;a<n.length;a++){let l=n[a];li(l[k],l,e,t,r,i)}}function pw(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:et.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=et.Important),e.setStyle(n,r,o,i))}}function Go(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push($e(i)),nt(i)&&hw(i,r);let s=n.type;if(s&8)Go(e,t,n.child,r);else if(s&32){let a=Sl(n,t),l;for(;l=a();)r.push(l)}else if(s&16){let a=xf(t,n);if(Array.isArray(a))r.push(...a);else{let l=Pt(t[Be]);Go(l[k],l,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function hw(e,t){for(let n=Te;n<e.length;n++){let r=e[n],o=r[k].firstChild;o!==null&&Go(r[k],r,o,t)}e[Ft]!==e[tt]&&t.push(e[Ft])}function Mf(e){if(e[oa]!==null){for(let t of e[oa])t.impl.addSequence(t);e[oa].length=0}}var Nf=[];function gw(e){return e[Se]??mw(e)}function mw(e){let t=Nf.pop()??Object.create(vw);return t.lView=e,t}function yw(e){e.lView[Se]!==e&&(e.lView=null,Nf.push(e))}var vw=G(P({},Kn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{ri(e.lView)},consumerOnSignalRead(){this.lView[Se]=this}});function Dw(e){let t=e[Se]??Object.create(ww);return t.lView=e,t}var ww=G(P({},Kn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Pt(e.lView);for(;t&&!Af(t[k]);)t=Pt(t);t&&wd(t)},consumerOnSignalRead(){this.lView[Se]=this}});function Af(e){return e.type!==2}function kf(e){if(e[Oo]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Oo])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[b]&8192)}}var Ew=100;function Of(e,t=!0,n=0){let o=e[pt].rendererFactory,i=!1;i||o.begin?.();try{_w(e,n)}catch(s){throw t&&KD(e,s),s}finally{i||o.end?.()}}function _w(e,t){let n=Td();try{hu(!0),Va(e,t);let r=0;for(;ni(e);){if(r===Ew)throw new _(103,!1);r++,Va(e,1)}}finally{hu(n)}}function Iw(e,t,n,r){if(yn(t))return;let o=t[b],i=!1,s=!1;ll(t);let a=!0,l=null,c=null;i||(Af(e)?(c=gw(t),l=Gr(c)):Ns()===null?(a=!1,c=Dw(t),l=Gr(c)):t[Se]&&(Ps(t[Se]),t[Se]=null));try{Dd(t),Ev(e.bindingStartIndex),n!==null&&Ef(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let d=e.preOrderCheckHooks;d!==null&&Eo(t,d,null)}else{let d=e.preOrderHooks;d!==null&&_o(t,d,0,null),ia(t,0)}if(s||bw(t),kf(t),Rf(t,0),e.contentQueries!==null&&ff(e,t),!i)if(u){let d=e.contentCheckHooks;d!==null&&Eo(t,d)}else{let d=e.contentHooks;d!==null&&_o(t,d,1),ia(t,1)}Sw(e,t);let f=e.components;f!==null&&Pf(t,f,0);let p=e.viewQuery;if(p!==null&&Ra(2,p,r),!i)if(u){let d=e.viewCheckHooks;d!==null&&Eo(t,d)}else{let d=e.viewHooks;d!==null&&_o(t,d,2),ia(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[ra]){for(let d of t[ra])d();t[ra]=null}i||(Mf(t),t[b]&=-73)}catch(u){throw i||ri(t),u}finally{c!==null&&(Rs(c,l),a&&yw(c)),cl()}}function Rf(e,t){for(let n=of(e);n!==null;n=sf(n))for(let r=Te;r<n.length;r++){let o=n[r];Ff(o,t)}}function bw(e){for(let t=of(e);t!==null;t=sf(t)){if(!(t[b]&2))continue;let n=t[Fo];for(let r=0;r<n.length;r++){let o=n[r];wd(o)}}}function Cw(e,t,n){L(18);let r=We(t,e);Ff(r,n),L(19,r[he])}function Ff(e,t){al(e)&&Va(e,t)}function Va(e,t){let r=e[k],o=e[b],i=e[Se],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Fs(i)),s||=!1,i&&(i.dirty=!1),e[b]&=-9217,s)Iw(r,e,r.template,e[he]);else if(o&8192){kf(e),Rf(e,1);let a=r.components;a!==null&&Pf(e,a,1),Mf(e)}}function Pf(e,t,n){for(let r=0;r<t.length;r++)Cw(e,t[r],n)}function Sw(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)Lt(~o);else{let i=o,s=n[++r],a=n[++r];bv(s,i);let l=t[i];L(24,l),a(2,l),L(25,l)}}}finally{Lt(-1)}}function Nl(e,t){let n=Td()?64:1088;for(e[pt].changeDetectionScheduler?.notify(t);e;){e[b]|=n;let r=Pt(e);if(Po(e)&&!r)return e;e=r}return null}function Lf(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Tw(e,t,n,r=!0){let o=t[k];if(xw(o,t,e,n),r){let s=La(n,e),a=t[J],l=a.parentNode(e[Ft]);l!==null&&nw(o,e[Pe],a,t,l,s)}let i=t[Ao];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function ja(e,t){if(e.length<=Te)return;let n=Te+t,r=e[n];if(r){let o=r[cn];o!==null&&o!==e&&Tl(o,r),t>0&&(e[n-1][Re]=r[Re]);let i=xo(e,Te+t);tw(r[k],r);let s=i[un];s!==null&&s.detachView(i[k]),r[oe]=null,r[Re]=null,r[b]&=-129}return r}function xw(e,t,n,r){let o=Te+r,i=n.length;r>0&&(n[o-1][Re]=t),r<i-Te?(t[Re]=n[o],nd(n,Te+r,t)):(n.push(t),t[Re]=null),t[oe]=n;let s=t[cn];s!==null&&n!==s&&Vf(s,t);let a=t[un];a!==null&&a.insertView(e),_a(t),t[b]|=128}function Vf(e,t){let n=e[Fo],r=t[oe];if(ft(r))e[b]|=2;else{let o=r[oe][Be];t[Be]!==o&&(e[b]|=2)}n===null?e[Fo]=[t]:n.push(t)}var lr=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let t=this._lView,n=t[k];return Go(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r}get context(){return this._lView[he]}set context(t){this._lView[he]=t}get destroyed(){return yn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[oe];if(nt(t)){let n=t[Ro],r=n?n.indexOf(this):-1;r>-1&&(ja(t,r),xo(n,r))}this._attachedToViewContainer=!1}Tf(this._lView[k],this._lView)}onDestroy(t){Ed(this._lView,t)}markForCheck(){Nl(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[b]&=-129}reattach(){_a(this._lView),this._lView[b]|=128}detectChanges(){this._lView[b]|=1024,Of(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new _(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Po(this._lView),n=this._lView[cn];n!==null&&!t&&Tl(n,this._lView),Sf(this._lView[k],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new _(902,!1);this._appRef=t;let n=Po(this._lView),r=this._lView[cn];r!==null&&!n&&Vf(r,this._lView),_a(this._lView)}};var ci=(()=>{class e{static __NG_ELEMENT_ID__=Aw}return e})(),Mw=ci,Nw=class extends Mw{_declarationLView;_declarationTContainer;elementRef;constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=XD(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new lr(o)}};function Aw(){return kw(xe(),B())}function kw(e,t){return e.type&4?new Nw(t,e,ii(e,t)):null}function Al(e,t,n,r,o){let i=e.data[t];if(i===null)i=Ow(e,t,n,r,o),Iv()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=vv();i.injectorIndex=s===null?-1:s.injectorIndex}return fr(i,!0),i}function Ow(e,t,n,r,o){let i=Cd(),s=Sd(),a=s?i:i&&i.parent,l=e.data[t]=Fw(e,a,n,t,r,o);return Rw(e,l,i,s),l}function Rw(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function Fw(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return gv()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var fO=new RegExp(`^(\\d+)*(${dD}|${uD})*(.*)`);var Pw=()=>null;function Nu(e,t){return Pw(e,t)}var Lw=class{},jf=class{},Ba=class{resolveComponentFactory(t){throw Error(`No component factory found for ${Ce(t)}.`)}},kl=class{static NULL=new Ba},fn=class{},Ut=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>Vw()}return e})();function Vw(){let e=B(),t=xe(),n=We(t.index,e);return(ft(n)?n:e)[J]}var jw=(()=>{class e{static \u0275prov=O({token:e,providedIn:"root",factory:()=>null})}return e})();var la={},Ha=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Qo(r);let o=this.injector.get(t,la,r);return o!==la||n===la?o:this.parentInjector.get(t,n,r)}};function Au(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=iu(o,a);else if(i==2){let l=a,c=t[++s];r=iu(r,l+": "+c+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function E(e,t=x.Default){let n=B();if(n===null)return T(e,t);let r=xe();return Wd(r,n,re(e),t)}function Bf(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a,l=null,c=null,u=Hw(s);u===null?a=s:[a,l,c]=u,Ww(e,t,n,a,i,l,c)}i!==null&&r!==null&&Bw(n,r,i)}function Bw(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new _(-301,!1);r.push(t[o],i)}}function Hw(e){let t=null,n=!1;for(let s=0;s<e.length;s++){let a=e[s];if(s===0&&Ue(a)&&(t=a),a.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,o=null,i=null;for(let s of e)s.findHostDirectiveDefs!==null&&(r??=[],o??=new Map,i??=new Map,Uw(s,r,i,o)),s===t&&(r??=[],r.push(s));return r!==null?(r.push(...t===null?e:e.slice(1)),[r,o,i]):null}function Uw(e,t,n,r){let o=t.length;e.findHostDirectiveDefs(e,t,r),n.set(e,[o,t.length-1])}function $w(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function Ww(e,t,n,r,o,i,s){let a=r.length,l=!1;for(let p=0;p<a;p++){let d=r[p];!l&&Ue(d)&&(l=!0,$w(e,n,p)),Sa(Bo(n,t),e,d.type)}Yw(n,e.data.length,a);for(let p=0;p<a;p++){let d=r[p];d.providersResolver&&d.providersResolver(d)}let c=!1,u=!1,f=Df(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let d=r[p];if(n.mergedAttrs=sr(n.mergedAttrs,d.hostAttrs),zw(e,n,t,f,d),Kw(f,d,o),s!==null&&s.has(d)){let[g,v]=s.get(d);n.directiveToIndex.set(d.type,[f,g+n.directiveStart,v+n.directiveStart])}else(i===null||!i.has(d))&&n.directiveToIndex.set(d.type,f);d.contentQueries!==null&&(n.flags|=4),(d.hostBindings!==null||d.hostAttrs!==null||d.hostVars!==0)&&(n.flags|=64);let h=d.type.prototype;!c&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),c=!0),!u&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),u=!0),f++}Gw(e,n,i)}function Gw(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))ku(0,t,o,r),ku(1,t,o,r),Ru(t,r,!1);else{let i=n.get(o);Ou(0,t,i,r),Ou(1,t,i,r),Ru(t,r,!0)}}}function ku(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Hf(t,i)}}function Ou(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Hf(t,s)}}function Hf(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Ru(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Dl(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let l=r[a];if(l===0){a+=4;continue}else if(l===5){a+=2;continue}else if(typeof l=="number")break;if(!n&&o.hasOwnProperty(l)){let c=o[l];for(let u of c)if(u===t){s??=[],s.push(l,r[a+1]);break}}else if(n&&i.hasOwnProperty(l)){let c=i[l];for(let u=0;u<c.length;u+=2)if(c[u]===t){s??=[],s.push(c[u+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function zw(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=sn(o.type,!0)),s=new Vt(i,Ue(o),E);e.blueprint[r]=s,n[r]=s,qw(e,t,r,Df(e,n,o.hostVars,Ht),o)}function qw(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;Zw(s)!=a&&s.push(a),s.push(n,r,i)}}function Zw(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Kw(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Ue(t)&&(n[""]=e)}}function Yw(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Uf(e,t,n,r,o,i,s,a){let l=t.consts,c=Lo(l,s),u=Al(t,e,2,r,c);return i&&Bf(t,n,u,Lo(l,a),o),u.mergedAttrs=sr(u.mergedAttrs,u.attrs),u.attrs!==null&&Au(u,u.attrs,!1),u.mergedAttrs!==null&&Au(u,u.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,u),u}function $f(e,t){Pd(e,t),fd(t)&&e.queries.elementEnd(t)}var Ua=class extends kl{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=rr(t);return new zo(n,this.ngModule)}};function Jw(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&ai.SignalBased)!==0};return o&&(i.transform=o),i})}function Qw(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function Xw(e,t,n){let r=t instanceof je?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Ha(n,r):n}function eE(e){let t=e.get(fn,null);if(t===null)throw new _(407,!1);let n=e.get(jw,null),r=e.get(ar,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function tE(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return gf(t,n,n==="svg"?sv:n==="math"?av:null)}var zo=class extends jf{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=Jw(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=Qw(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=xD(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o){L(22);let i=N(null);try{let s=this.componentDef,a=r?["ng-version","19.2.12"]:MD(this.componentDef.selectors[0]),l=wl(0,null,null,1,0,null,null,null,null,[a],null),c=Xw(s,o||this.ngModule,t),u=eE(c),f=u.rendererFactory.createRenderer(null,s),p=r?VD(f,r,s.encapsulation,c):tE(s,f),d=El(null,l,null,512|vf(s),null,null,u,f,c,null,df(p,c,!0));d[He]=p,ll(d);let h=null;try{let g=Uf(He,l,d,"#host",()=>[this.componentDef],!0,0);p&&(yf(f,p,g),hr(p,d)),Il(l,d,g),pf(l,g,d),$f(l,g),n!==void 0&&nE(g,this.ngContentSelectors,n),h=We(g.index,d),d[he]=h[he],Cl(l,d,null)}catch(g){throw h!==null&&ka(h),ka(d),g}finally{L(23),cl()}return new $a(this.componentType,d)}finally{N(i)}}},$a=class extends Lw{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n){super(),this._rootLView=n,this._tNode=vd(n[k],He),this.location=ii(this._tNode,n),this.instance=We(this._tNode.index,n)[he],this.hostView=this.changeDetectorRef=new lr(n,void 0,!1),this.componentType=t}setInput(t,n){let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=bl(r,o[k],o,t,n);this.previousInputValues.set(t,n);let s=We(r.index,o);Nl(s,1)}get injector(){return new Ot(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function nE(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var ui=(()=>{class e{static __NG_ELEMENT_ID__=rE}return e})();function rE(){let e=xe();return iE(e,B())}var oE=ui,Wf=class extends oE{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return ii(this._hostTNode,this._hostLView)}get injector(){return new Ot(this._hostTNode,this._hostLView)}get parentInjector(){let t=pl(this._hostTNode,this._hostLView);if(Vd(t)){let n=jo(t,this._hostLView),r=Vo(t),o=n[k].data[r+8];return new Ot(o,n)}else return new Ot(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Fu(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-Te}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Nu(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,xu(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!nv(t),a;if(s)a=n;else{let h=n||{};a=h.index,r=h.injector,o=h.projectableNodes,i=h.environmentInjector||h.ngModuleRef}let l=s?t:new zo(rr(t)),c=r||this.parentInjector;if(!i&&l.ngModule==null){let g=(s?c:this.parentInjector).get(je,null);g&&(i=g)}let u=rr(l.componentType??{}),f=Nu(this._lContainer,u?.id??null),p=f?.firstChild??null,d=l.create(c,o,p,i);return this.insertImpl(d.hostView,a,xu(this._hostTNode,f)),d}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(cv(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let l=o[oe],c=new Wf(l,l[Pe],l[oe]);c.detach(c.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Tw(s,o,i,r),t.attachToViewContainerRef(),nd(ca(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Fu(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=ja(this._lContainer,n);r&&(xo(ca(this._lContainer),n),Tf(r[k],r))}detach(t){let n=this._adjustIndex(t,-1),r=ja(this._lContainer,n);return r&&xo(ca(this._lContainer),n)!=null?new lr(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Fu(e){return e[Ro]}function ca(e){return e[Ro]||(e[Ro]=[])}function iE(e,t){let n,r=t[e.index];return nt(r)?n=r:(n=Lf(r,t,null,e),t[e.index]=n,_l(t,n)),aE(n,t,e,r),new Wf(n,e,t)}function sE(e,t){let n=e[J],r=n.createComment(""),o=ze(t,e),i=n.parentNode(o);return Wo(n,i,r,n.nextSibling(o),!1),r}var aE=uE,lE=()=>!1;function cE(e,t,n){return lE(e,t,n)}function uE(e,t,n,r){if(e[Ft])return;let o;n.type&8?o=$e(r):o=sE(t,n),e[Ft]=o}var qo=class{};var Zo=class extends qo{injector;componentFactoryResolver=new Ua(this);instance=null;constructor(t){super();let n=new or([...t.providers,{provide:qo,useValue:this},{provide:kl,useValue:this.componentFactoryResolver}],t.parent||il(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function dE(e,t,n=null){return new Zo({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var fE=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=sd(!1,n.type),o=r.length>0?dE([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=O({token:e,providedIn:"environment",factory:()=>new e(T(je))})}return e})();function di(e){return ur(()=>{let t=Gf(e),n=G(P({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===nf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(fE).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ge.Emulated,styles:e.styles||be,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&pD("NgStandalone"),zf(n);let r=e.dependencies;return n.directiveDefs=Pu(r,!1),n.pipeDefs=Pu(r,!0),n.id=yE(n),n})}function pE(e){return rr(e)||$y(e)}function hE(e){return e!==null}function yt(e){return ur(()=>({type:e.type,bootstrap:e.bootstrap||be,declarations:e.declarations||be,imports:e.imports||be,exports:e.exports||be,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function gE(e,t){if(e==null)return Rt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,l;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,l=o[3]||null):(i=o,s=o,a=ai.None,l=null),n[i]=[r,a,l],t[i]=s}return n}function mE(e){if(e==null)return Rt;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function q(e){return ur(()=>{let t=Gf(e);return zf(t),t})}function Gf(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Rt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||be,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:gE(e.inputs,t),outputs:mE(e.outputs),debugInfo:null}}function zf(e){e.features?.forEach(t=>t(e))}function Pu(e,t){if(!e)return null;let n=t?Wy:pE;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(hE)}function yE(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function vE(e){return Object.getPrototypeOf(e.prototype).constructor}function ve(e){let t=vE(e.type),n=!0,r=[e];for(;t;){let o;if(Ue(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new _(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=ua(e.inputs),s.declaredInputs=ua(e.declaredInputs),s.outputs=ua(e.outputs);let a=o.hostBindings;a&&IE(e,a);let l=o.viewQuery,c=o.contentQueries;if(l&&EE(e,l),c&&_E(e,c),DE(e,o),_y(e.outputs,o.outputs),Ue(o)&&o.data.animation){let u=e.data;u.animation=(u.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(e),a===ve&&(n=!1)}}t=Object.getPrototypeOf(t)}wE(r)}function DE(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function wE(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=sr(o.hostAttrs,n=sr(n,o.hostAttrs))}}function ua(e){return e===Rt?{}:e===be?[]:e}function EE(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function _E(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function IE(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function qf(e){return CE(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function bE(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value)}}function CE(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function Zf(e,t,n){return e[t]=n}function ht(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function SE(e,t,n,r){let o=ht(e,t,n);return ht(e,t+1,r)||o}function TE(e,t,n,r,o,i,s,a,l){let c=t.consts,u=Al(t,e,4,s||null,a||null);bd()&&Bf(t,n,u,Lo(c,l),bf),u.mergedAttrs=sr(u.mergedAttrs,u.attrs),Pd(t,u);let f=u.tView=wl(2,u,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,u),f.queries=t.queries.embeddedTView(u)),u}function xE(e,t,n,r,o,i,s,a,l,c){let u=n+He,f=t.firstCreatePass?TE(u,t,e,r,o,i,s,a,l):t.data[u];fr(f,!1);let p=ME(t,e,f,n);dl()&&xl(t,e,p,f),hr(p,e);let d=Lf(p,e,p,f);return e[u]=d,_l(e,d),cE(d,f,e),sl(f)&&Il(t,e,f),l!=null&&_f(e,f,c),f}function ie(e,t,n,r,o,i,s,a){let l=B(),c=ye(),u=Lo(c.consts,i);return xE(l,c,e,t,n,r,o,u,s,a),ie}var ME=NE;function NE(e,t,n,r){return fl(!0),t[J].createComment("")}var Kf=new w("");var AE=(()=>{class e{static \u0275prov=O({token:e,providedIn:"root",factory:()=>new Wa})}return e})(),Wa=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),this.queuedEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}};function mr(e){return!!e&&typeof e.then=="function"}function Yf(e){return!!e&&typeof e.subscribe=="function"}var kE=new w("");var Jf=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=S(kE,{optional:!0})??[];injector=S(dn);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=ei(this.injector,o);if(mr(i))n.push(i);else if(Yf(i)){let s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),OE=new w("");function RE(){Vs(()=>{throw new _(600,!1)})}function FE(e){return e.isBoundToModule}var PE=10;var pn=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=S(tD);afterRenderManager=S(hD);zonelessEnabled=S(Kd);rootEffectScheduler=S(AE);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Qe;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=S(Bt).hasPendingTasks.pipe(fe(n=>!n));constructor(){S(si,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=S(je);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=dn.NULL){L(10);let i=n instanceof jf;if(!this._injector.get(Jf).done){let d="";throw new _(405,d)}let a;i?a=n:a=this._injector.get(kl).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let l=FE(a)?void 0:this._injector.get(qo),c=r||a.selector,u=a.create(o,[],c,l),f=u.location.nativeElement,p=u.injector.get(Kf,null);return p?.registerApplication(f),u.onDestroy(()=>{this.detachView(u.hostView),Io(this.components,u),p?.unregisterApplication(f)}),this._loadComponent(u),L(11,u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){L(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(uf.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new _(101,!1);let n=N(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,N(n),this.afterTick.next(),L(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(fn,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<PE;)L(14),this.synchronizeOnce(),L(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:o}of this.allViews)LE(r,o,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>ni(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Io(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(OE,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Io(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new _(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Io(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function LE(e,t,n,r){if(!n&&!ni(e))return;Of(e,t,n&&!r?0:1)}function Ol(e,t,n,r){let o=B(),i=oi();if(ht(o,i,t)){let s=ye(),a=ul();zD(a,o,e,t,n,r)}return Ol}function VE(e,t,n,r){return ht(e,oi(),n)?t+tl(n)+r:Ht}function Do(e,t){return e<<17|t<<2}function jt(e){return e>>17&32767}function jE(e){return(e&2)==2}function BE(e,t){return e&131071|t<<17}function Ga(e){return e|2}function hn(e){return(e&131068)>>2}function da(e,t){return e&-131069|t<<2}function HE(e){return(e&1)===1}function za(e){return e|1}function UE(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=jt(s),l=hn(s);e[r]=n;let c=!1,u;if(Array.isArray(n)){let f=n;u=f[1],(u===null||dr(f,u)>0)&&(c=!0)}else u=n;if(o)if(l!==0){let p=jt(e[a+1]);e[r+1]=Do(p,a),p!==0&&(e[p+1]=da(e[p+1],r)),e[a+1]=BE(e[a+1],r)}else e[r+1]=Do(a,0),a!==0&&(e[a+1]=da(e[a+1],r)),a=r;else e[r+1]=Do(l,0),a===0?a=r:e[l+1]=da(e[l+1],r),l=r;c&&(e[r+1]=Ga(e[r+1])),Lu(e,u,r,!0),Lu(e,u,r,!1),$E(t,u,e,r,i),s=Do(a,l),i?t.classBindings=s:t.styleBindings=s}function $E(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&dr(i,t)>=0&&(n[r+1]=za(n[r+1]))}function Lu(e,t,n,r){let o=e[n+1],i=t===null,s=r?jt(o):hn(o),a=!1;for(;s!==0&&(a===!1||i);){let l=e[s],c=e[s+1];WE(l,t)&&(a=!0,e[s+1]=r?za(c):Ga(c)),s=r?jt(c):hn(c)}a&&(e[n+1]=r?Ga(o):za(o))}function WE(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?dr(e,t)>=0:!1}function C(e,t,n){let r=B(),o=oi();if(ht(r,o,t)){let i=ye(),s=ul();If(i,s,r,e,t,r[J],n,!1)}return C}function Vu(e,t,n,r,o){bl(t,e,n,o?"class":"style",r)}function fi(e,t){return GE(e,t,null,!0),fi}function GE(e,t,n,r){let o=B(),i=ye(),s=_v(2);if(i.firstUpdatePass&&qE(i,e,s,r),t!==Ht&&ht(o,s,t)){let a=i.data[Dn()];QE(i,a,o,o[J],e,o[s+1]=XE(t,n),r,s)}}function zE(e,t){return t>=e.expandoStartIndex}function qE(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Dn()],s=zE(e,n);e_(i,r)&&t===null&&!s&&(t=!1),t=ZE(o,i,t,r),UE(o,i,t,n,s,r)}}function ZE(e,t,n,r){let o=Sv(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=fa(null,e,t,n,r),n=cr(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=fa(o,e,t,n,r),i===null){let l=KE(e,t,r);l!==void 0&&Array.isArray(l)&&(l=fa(null,e,t,l[1],r),l=cr(l,t.attrs,r),YE(e,t,r,l))}else i=JE(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function KE(e,t,n){let r=n?t.classBindings:t.styleBindings;if(hn(r)!==0)return e[jt(r)]}function YE(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[jt(o)]=r}function JE(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=cr(r,s,n)}return cr(r,t.attrs,n)}function fa(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=cr(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function cr(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Hy(e,s,n?!0:t[++i]))}return e===void 0?null:e}function QE(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let l=e.data,c=l[a+1],u=HE(c)?ju(l,t,n,o,hn(c),s):void 0;if(!Ko(u)){Ko(i)||jE(c)&&(i=ju(l,null,n,o,a,s));let f=yd(Dn(),n);pw(r,s,f,o,i)}}function ju(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let l=e[o],c=Array.isArray(l),u=c?l[1]:l,f=u===null,p=n[o+1];p===Ht&&(p=f?be:void 0);let d=f?ta(p,r):u===r?p:void 0;if(c&&!Ko(d)&&(d=ta(l,r)),Ko(d)&&(a=d,s))return a;let h=e[o+1];o=s?jt(h):hn(h)}if(t!==null){let l=i?t.residualClasses:t.residualStyles;l!=null&&(a=ta(l,r))}return a}function Ko(e){return e!==void 0}function XE(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Ce(vD(e)))),e}function e_(e,t){return(e.flags&(t?8:16))!==0}function y(e,t,n,r){let o=B(),i=ye(),s=He+e,a=o[J],l=i.firstCreatePass?Uf(s,i,o,t,bf,bd(),n,r):i.data[s],c=t_(i,o,l,a,t,e);o[s]=c;let u=sl(l);return fr(l,!0),yf(a,c,l),!Cf(l)&&dl()&&xl(i,o,c,l),(fv()===0||u)&&hr(c,o),pv(),u&&(Il(i,o,l),pf(i,l,o)),r!==null&&_f(o,l),y}function m(){let e=xe();Sd()?Dv():(e=e.parent,fr(e,!1));let t=e;mv(t)&&yv(),hv();let n=ye();return n.firstCreatePass&&$f(n,t),t.classesWithoutHost!=null&&kv(t)&&Vu(n,t,B(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Ov(t)&&Vu(n,t,B(),t.stylesWithoutHost,!1),m}function te(e,t,n,r){return y(e,t,n,r),m(),te}var t_=(e,t,n,r,o,i)=>(fl(!0),gf(r,o,Mv()));function Me(){return B()}var Yo="en-US";var n_=Yo;function r_(e){typeof e=="string"&&(n_=e.toLowerCase().replace(/_/g,"-"))}function Bu(e,t,n){return function r(o){if(o===Function)return n;let i=mn(e)?We(e.index,t):t;Nl(i,5);let s=t[he],a=Hu(t,s,n,o),l=r.__ngNextListenerFn__;for(;l;)a=Hu(t,s,l,o)&&a,l=l.__ngNextListenerFn__;return a}}function Hu(e,t,n,r){let o=N(null);try{return L(6,t,n),n(r)!==!1}catch(i){return o_(e,i),!1}finally{L(7,t,n),N(o)}}function o_(e,t){let n=e[ln],r=n?n.get(Xe,null):null;r&&r.handleError(t)}function Uu(e,t,n,r,o,i){let s=t[n],a=t[k],c=a.data[n].outputs[r],u=s[c],f=a.firstCreatePass?Id(a):null,p=_d(t),d=u.subscribe(i),h=p.length;p.push(i,d),f&&f.push(o,e.index,h,-(h+1))}function z(e,t,n,r){let o=B(),i=ye(),s=xe();return Qf(i,o,o[J],s,e,t,r),z}function i_(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[ko],l=o[i+2];return a.length>l?a[l]:null}typeof s=="string"&&(i+=2)}return null}function Qf(e,t,n,r,o,i,s){let a=sl(r),c=e.firstCreatePass?Id(e):null,u=_d(t),f=!0;if(r.type&3||s){let p=ze(r,t),d=s?s(p):p,h=u.length,g=s?I=>s($e(I[r.index])):r.index,v=null;if(!s&&a&&(v=i_(e,t,o,r.index)),v!==null){let I=v.__ngLastListenerFn__||v;I.__ngNextListenerFn__=i,v.__ngLastListenerFn__=i,f=!1}else{i=Bu(r,t,i),mD(t,d,o,i);let I=n.listen(d,o,i);u.push(i,I),c&&c.push(o,g,h,h+1)}}else i=Bu(r,t,i);if(f){let p=r.outputs?.[o],d=r.hostDirectiveOutputs?.[o];if(d&&d.length)for(let h=0;h<d.length;h+=2){let g=d[h],v=d[h+1];Uu(r,t,g,v,o,i)}if(p&&p.length)for(let h of p)Uu(r,t,h,o,o,i)}}function F(e=1){return xv(e)}function Xf(e){let t=wv();return lv(t,He+e)}function R(e,t=""){let n=B(),r=ye(),o=e+He,i=r.firstCreatePass?Al(r,o,1,t,null):r.data[o],s=s_(r,n,i,t,e);n[o]=s,dl()&&xl(r,n,s,i),fr(i,!1)}var s_=(e,t,n,r,o)=>(fl(!0),ND(t[J],r));function qe(e){return En("",e,""),qe}function En(e,t,n){let r=B(),o=VE(r,e,t,n);return o!==Ht&&a_(r,Dn(),o),En}function a_(e,t,n){let r=yd(t,e);AD(e[J],r,n)}function De(e,t,n){ef(t)&&(t=t());let r=B(),o=oi();if(ht(r,o,t)){let i=ye(),s=ul();If(i,s,r,e,t,r[J],n,!1)}return De}function Ne(e,t){let n=ef(e);return n&&e.set(t),n}function we(e,t){let n=B(),r=ye(),o=xe();return Qf(r,n,n[J],o,e,t),we}function l_(e,t,n){let r=ye();if(r.firstCreatePass){let o=Ue(e);qa(n,r.data,r.blueprint,o,!0),qa(t,r.data,r.blueprint,o,!1)}}function qa(e,t,n,r,o){if(e=re(e),Array.isArray(e))for(let i=0;i<e.length;i++)qa(e[i],t,n,r,o);else{let i=ye(),s=B(),a=xe(),l=an(e)?e:re(e.provide),c=cd(e),u=a.providerIndexes&1048575,f=a.directiveStart,p=a.providerIndexes>>20;if(an(e)||!e.multi){let d=new Vt(c,o,E),h=ha(l,t,o?u:u+p,f);h===-1?(Sa(Bo(a,s),i,l),pa(i,e,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(d),s.push(d)):(n[h]=d,s[h]=d)}else{let d=ha(l,t,u+p,f),h=ha(l,t,u,u+p),g=d>=0&&n[d],v=h>=0&&n[h];if(o&&!v||!o&&!g){Sa(Bo(a,s),i,l);let I=d_(o?u_:c_,n.length,o,r,c);!o&&v&&(n[h].providerFactory=I),pa(i,e,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(I),s.push(I)}else{let I=ep(n[o?h:d],c,!o&&r);pa(i,e,d>-1?d:h,I)}!o&&r&&v&&n[h].componentProviders++}}}function pa(e,t,n,r){let o=an(t),i=Ky(t);if(o||i){let l=(i?re(t.useClass):t).prototype.ngOnDestroy;if(l){let c=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let u=c.indexOf(n);u===-1?c.push(n,[r,l]):c[u+1].push(r,l)}else c.push(n,l)}}}function ep(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function ha(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function c_(e,t,n,r,o){return Za(this.multi,[])}function u_(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,l=Ho(r,r[k],this.providerFactory.index,o);s=l.slice(0,a),Za(i,s);for(let c=a;c<l.length;c++)s.push(l[c])}else s=[],Za(i,s);return s}function Za(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function d_(e,t,n,r,o){let i=new Vt(e,n,E);return i.multi=[],i.index=t,i.componentProviders=0,ep(i,o,r&&!n),i}function rt(e,t=[]){return n=>{n.providersResolver=(r,o)=>l_(r,o?o(e):e,t)}}function yr(e,t,n,r){return f_(B(),xd(),e,t,n,r)}function _n(e,t,n,r,o){return p_(B(),xd(),e,t,n,r,o)}function tp(e,t){let n=e[t];return n===Ht?void 0:n}function f_(e,t,n,r,o,i){let s=t+n;return ht(e,s,o)?Zf(e,s+1,i?r.call(i,o):r(o)):tp(e,s+1)}function p_(e,t,n,r,o,i,s){let a=t+n;return SE(e,a,o,i)?Zf(e,a+2,s?r.call(s,o,i):r(o,i)):tp(e,a+2)}var h_=(()=>{class e{zone=S(ee);changeDetectionScheduler=S(ar);applicationRef=S(pn);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function g_({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new ee(G(P({},m_()),{scheduleInRootZone:n})),[{provide:ee,useFactory:e},{provide:Mo,multi:!0,useFactory:()=>{let r=S(h_,{optional:!0});return()=>r.initialize()}},{provide:Mo,multi:!0,useFactory:()=>{let r=S(y_);return()=>{r.initialize()}}},t===!0?{provide:Yd,useValue:!0}:[],{provide:Jd,useValue:n??qd}]}function m_(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var y_=(()=>{class e{subscription=new ne;initialized=!1;zone=S(ee);pendingTasks=S(Bt);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ee.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ee.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var v_=(()=>{class e{appRef=S(pn);taskService=S(Bt);ngZone=S(ee);zonelessEnabled=S(Kd);tracing=S(si,{optional:!0});disableScheduling=S(Yd,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ne;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get($o):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(S(Jd,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Aa||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?Eu:Qd;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get($o+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Eu(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function D_(){return typeof $localize<"u"&&$localize.locale||Yo}var Rl=new w("",{providedIn:"root",factory:()=>S(Rl,x.Optional|x.SkipSelf)||D_()});var Ka=new w(""),w_=new w("");function Xn(e){return!e.moduleRef}function E_(e){let t=Xn(e)?e.r3Injector:e.moduleRef.injector,n=t.get(ee);return n.run(()=>{Xn(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Xe,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Xn(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Ka);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Ka);s.add(i),e.moduleRef.onDestroy(()=>{Io(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return I_(r,n,()=>{let i=t.get(Jf);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(Rl,Yo);if(r_(s||Yo),!t.get(w_,!0))return Xn(e)?t.get(pn):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Xn(e)){let l=t.get(pn);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return __(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function __(e,t){let n=e.injector.get(pn);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new _(-403,!1);t.push(e)}function I_(e,t,n){try{let r=n();return mr(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var bo=null;function b_(e=[],t){return dn.create({name:t,providers:[{provide:Xo,useValue:"platform"},{provide:Ka,useValue:new Set([()=>bo=null])},...e]})}function C_(e=[]){if(bo)return bo;let t=b_(e);return bo=t,RE(),S_(t),t}function S_(e){let t=e.get(yl,null);ei(e,()=>{t?.forEach(n=>n())})}var vr=(()=>{class e{static __NG_ELEMENT_ID__=T_}return e})();function T_(e){return x_(xe(),B(),(e&16)===16)}function x_(e,t,n){if(mn(e)&&!n){let r=We(e.index,t);return new lr(r,r)}else if(e.type&175){let r=t[Be];return new lr(r,t)}return null}var Ya=class{constructor(){}supports(t){return qf(t)}create(t){return new Ja(t)}},M_=(e,t)=>t,Ja=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||M_}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<$u(r,o,i)?n:r,a=$u(s,o,i),l=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let c=a-o,u=l-o;if(c!=u){for(let p=0;p<c;p++){let d=p<i.length?i[p]:i[p]=0,h=d+p;u<=h&&h<c&&(i[p]=d+1)}let f=s.previousIndex;i[f]=u-c}}a!==l&&t(s,a,l)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n)}diff(t){if(t==null&&(t=[]),!qf(t))throw new _(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next}else o=0,bE(t,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new Qa(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new Jo),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Jo),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Qa=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,n){this.item=t,this.trackById=n}},Xa=class{_head=null;_tail=null;add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Jo=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Xa,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function $u(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}function Wu(){return new Fl([new Ya])}var Fl=(()=>{class e{factories;static \u0275prov=O({token:e,providedIn:"root",factory:Wu});constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Wu()),deps:[[e,new jy,new Vy]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new _(901,!1)}}return e})();function np(e){L(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=C_(r),i=[g_({}),{provide:ar,useExisting:v_},...n||[]],s=new Zo({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return E_({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}finally{L(9)}}function Pl(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function ot(e){return Us(e)}function Dr(e,t){return Ls(e,t?.equal)}var Gu=class{[Ae];constructor(t){this[Ae]=t}destroy(){this[Ae].destroy()}};var ge=new w("");var rp=null;function vt(){return rp}function Ll(e){rp??=e}var wr=class{};var Vl=/\s+/,op=[],Er=(()=>{class e{_ngEl;_renderer;initialClasses=op;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r}set klass(n){this.initialClasses=n!=null?n.trim().split(Vl):op}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Vl):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(Vl).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(r){return new(r||e)(E(mt),E(Ut))};static \u0275dir=q({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();var pi=class{$implicit;ngForOf;index;count;constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},In=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new pi(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),ip(a,o)}});for(let o=0,i=r.length;o<i;o++){let a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{let i=r.get(o.currentIndex);ip(i,o)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(E(ui),E(ci),E(Fl))};static \u0275dir=q({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function ip(e,t){e.context.$implicit=t.item}var _r=(()=>{class e{_viewContainer;_context=new hi;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(n,r){this._viewContainer=n,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){sp(n,!1),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){sp(n,!1),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(E(ui),E(ci))};static \u0275dir=q({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),hi=class{$implicit=null;ngIf=null};function sp(e,t){if(e&&!e.createEmbeddedView)throw new _(2020,!1)}var bn=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=yt({type:e});static \u0275inj=gt({})}return e})();function Ir(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var jl="browser",ap="server";function gi(e){return e===ap}var $t=class{};var N_=typeof global=="object"&&global&&global.Object===Object&&global,mi=N_;var A_=typeof self=="object"&&self&&self.Object===Object&&self,k_=mi||A_||Function("return this")(),Z=k_;var O_=Z.Symbol,se=O_;var cp=Object.prototype,R_=cp.hasOwnProperty,F_=cp.toString,br=se?se.toStringTag:void 0;function P_(e){var t=R_.call(e,br),n=e[br];try{e[br]=void 0;var r=!0}catch{}var o=F_.call(e);return r&&(t?e[br]=n:delete e[br]),o}var up=P_;var L_=Object.prototype,V_=L_.toString;function j_(e){return V_.call(e)}var dp=j_;var B_="[object Null]",H_="[object Undefined]",fp=se?se.toStringTag:void 0;function U_(e){return e==null?e===void 0?H_:B_:fp&&fp in Object(e)?up(e):dp(e)}var Le=U_;function $_(e){return e!=null&&typeof e=="object"}var ae=$_;var W_="[object Symbol]";function G_(e){return typeof e=="symbol"||ae(e)&&Le(e)==W_}var Dt=G_;function z_(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var pp=z_;var q_=Array.isArray,Q=q_;var Z_=1/0,hp=se?se.prototype:void 0,gp=hp?hp.toString:void 0;function mp(e){if(typeof e=="string")return e;if(Q(e))return pp(e,mp)+"";if(Dt(e))return gp?gp.call(e):"";var t=e+"";return t=="0"&&1/e==-Z_?"-0":t}var yp=mp;var K_=/\s/;function Y_(e){for(var t=e.length;t--&&K_.test(e.charAt(t)););return t}var vp=Y_;var J_=/^\s+/;function Q_(e){return e&&e.slice(0,vp(e)+1).replace(J_,"")}var Dp=Q_;function X_(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var le=X_;var wp=NaN,eI=/^[-+]0x[0-9a-f]+$/i,tI=/^0b[01]+$/i,nI=/^0o[0-7]+$/i,rI=parseInt;function oI(e){if(typeof e=="number")return e;if(Dt(e))return wp;if(le(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=le(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Dp(e);var n=tI.test(e);return n||nI.test(e)?rI(e.slice(2),n?2:8):eI.test(e)?wp:+e}var Ep=oI;var _p=1/0,iI=17976931348623157e292;function sI(e){if(!e)return e===0?e:0;if(e=Ep(e),e===_p||e===-_p){var t=e<0?-1:1;return t*iI}return e===e?e:0}var Ip=sI;function aI(e){var t=Ip(e),n=t%1;return t===t?n?t-n:t:0}var bp=aI;function lI(e){return e}var Cp=lI;var cI="[object AsyncFunction]",uI="[object Function]",dI="[object GeneratorFunction]",fI="[object Proxy]";function pI(e){if(!le(e))return!1;var t=Le(e);return t==uI||t==dI||t==cI||t==fI}var yi=pI;var hI=Z["__core-js_shared__"],vi=hI;var Sp=function(){var e=/[^.]+$/.exec(vi&&vi.keys&&vi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function gI(e){return!!Sp&&Sp in e}var Tp=gI;var mI=Function.prototype,yI=mI.toString;function vI(e){if(e!=null){try{return yI.call(e)}catch{}try{return e+""}catch{}}return""}var it=vI;var DI=/[\\^$.*+?()[\]{}|]/g,wI=/^\[object .+?Constructor\]$/,EI=Function.prototype,_I=Object.prototype,II=EI.toString,bI=_I.hasOwnProperty,CI=RegExp("^"+II.call(bI).replace(DI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function SI(e){if(!le(e)||Tp(e))return!1;var t=yi(e)?CI:wI;return t.test(it(e))}var xp=SI;function TI(e,t){return e?.[t]}var Mp=TI;function xI(e,t){var n=Mp(e,t);return xp(n)?n:void 0}var me=xI;var MI=me(Z,"WeakMap"),Di=MI;var Np=Object.create,NI=function(){function e(){}return function(t){if(!le(t))return{};if(Np)return Np(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Ap=NI;function AI(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var kp=AI;var kI=function(){try{var e=me(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Bl=kI;function OI(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Op=OI;function RI(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}var Rp=RI;var FI=9007199254740991,PI=/^(?:0|[1-9]\d*)$/;function LI(e,t){var n=typeof e;return t=t??FI,!!t&&(n=="number"||n!="symbol"&&PI.test(e))&&e>-1&&e%1==0&&e<t}var wi=LI;function VI(e,t,n){t=="__proto__"&&Bl?Bl(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Ei=VI;function jI(e,t){return e===t||e!==e&&t!==t}var Cn=jI;var BI=Object.prototype,HI=BI.hasOwnProperty;function UI(e,t,n){var r=e[t];(!(HI.call(e,t)&&Cn(r,n))||n===void 0&&!(t in e))&&Ei(e,t,n)}var _i=UI;function $I(e,t,n,r){var o=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],l=r?r(n[a],e[a],a,n,e):void 0;l===void 0&&(l=e[a]),o?Ei(n,a,l):_i(n,a,l)}return n}var wt=$I;var WI=9007199254740991;function GI(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=WI}var Sn=GI;function zI(e){return e!=null&&Sn(e.length)&&!yi(e)}var Tn=zI;var qI=Object.prototype;function ZI(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||qI;return e===n}var xn=ZI;function KI(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Fp=KI;var YI="[object Arguments]";function JI(e){return ae(e)&&Le(e)==YI}var Hl=JI;var Pp=Object.prototype,QI=Pp.hasOwnProperty,XI=Pp.propertyIsEnumerable,eb=Hl(function(){return arguments}())?Hl:function(e){return ae(e)&&QI.call(e,"callee")&&!XI.call(e,"callee")},Ii=eb;function tb(){return!1}var Lp=tb;var Bp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Vp=Bp&&typeof module=="object"&&module&&!module.nodeType&&module,nb=Vp&&Vp.exports===Bp,jp=nb?Z.Buffer:void 0,rb=jp?jp.isBuffer:void 0,ob=rb||Lp,Wt=ob;var ib="[object Arguments]",sb="[object Array]",ab="[object Boolean]",lb="[object Date]",cb="[object Error]",ub="[object Function]",db="[object Map]",fb="[object Number]",pb="[object Object]",hb="[object RegExp]",gb="[object Set]",mb="[object String]",yb="[object WeakMap]",vb="[object ArrayBuffer]",Db="[object DataView]",wb="[object Float32Array]",Eb="[object Float64Array]",_b="[object Int8Array]",Ib="[object Int16Array]",bb="[object Int32Array]",Cb="[object Uint8Array]",Sb="[object Uint8ClampedArray]",Tb="[object Uint16Array]",xb="[object Uint32Array]",$={};$[wb]=$[Eb]=$[_b]=$[Ib]=$[bb]=$[Cb]=$[Sb]=$[Tb]=$[xb]=!0;$[ib]=$[sb]=$[vb]=$[ab]=$[Db]=$[lb]=$[cb]=$[ub]=$[db]=$[fb]=$[pb]=$[hb]=$[gb]=$[mb]=$[yb]=!1;function Mb(e){return ae(e)&&Sn(e.length)&&!!$[Le(e)]}var Hp=Mb;function Nb(e){return function(t){return e(t)}}var Mn=Nb;var Up=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Cr=Up&&typeof module=="object"&&module&&!module.nodeType&&module,Ab=Cr&&Cr.exports===Up,Ul=Ab&&mi.process,kb=function(){try{var e=Cr&&Cr.require&&Cr.require("util").types;return e||Ul&&Ul.binding&&Ul.binding("util")}catch{}}(),st=kb;var $p=st&&st.isTypedArray,Ob=$p?Mn($p):Hp,bi=Ob;var Rb=Object.prototype,Fb=Rb.hasOwnProperty;function Pb(e,t){var n=Q(e),r=!n&&Ii(e),o=!n&&!r&&Wt(e),i=!n&&!r&&!o&&bi(e),s=n||r||o||i,a=s?Fp(e.length,String):[],l=a.length;for(var c in e)(t||Fb.call(e,c))&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||wi(c,l)))&&a.push(c);return a}var Ci=Pb;function Lb(e,t){return function(n){return e(t(n))}}var Si=Lb;var Vb=Si(Object.keys,Object),Wp=Vb;var jb=Object.prototype,Bb=jb.hasOwnProperty;function Hb(e){if(!xn(e))return Wp(e);var t=[];for(var n in Object(e))Bb.call(e,n)&&n!="constructor"&&t.push(n);return t}var Gp=Hb;function Ub(e){return Tn(e)?Ci(e):Gp(e)}var Ke=Ub;function $b(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var zp=$b;var Wb=Object.prototype,Gb=Wb.hasOwnProperty;function zb(e){if(!le(e))return zp(e);var t=xn(e),n=[];for(var r in e)r=="constructor"&&(t||!Gb.call(e,r))||n.push(r);return n}var qp=zb;function qb(e){return Tn(e)?Ci(e,!0):qp(e)}var Nn=qb;var Zb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Kb=/^\w*$/;function Yb(e,t){if(Q(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Dt(e)?!0:Kb.test(e)||!Zb.test(e)||t!=null&&e in Object(t)}var An=Yb;var Jb=me(Object,"create"),at=Jb;function Qb(){this.__data__=at?at(null):{},this.size=0}var Zp=Qb;function Xb(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Kp=Xb;var eC="__lodash_hash_undefined__",tC=Object.prototype,nC=tC.hasOwnProperty;function rC(e){var t=this.__data__;if(at){var n=t[e];return n===eC?void 0:n}return nC.call(t,e)?t[e]:void 0}var Yp=rC;var oC=Object.prototype,iC=oC.hasOwnProperty;function sC(e){var t=this.__data__;return at?t[e]!==void 0:iC.call(t,e)}var Jp=sC;var aC="__lodash_hash_undefined__";function lC(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=at&&t===void 0?aC:t,this}var Qp=lC;function kn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}kn.prototype.clear=Zp;kn.prototype.delete=Kp;kn.prototype.get=Yp;kn.prototype.has=Jp;kn.prototype.set=Qp;var $l=kn;function cC(){this.__data__=[],this.size=0}var Xp=cC;function uC(e,t){for(var n=e.length;n--;)if(Cn(e[n][0],t))return n;return-1}var Et=uC;var dC=Array.prototype,fC=dC.splice;function pC(e){var t=this.__data__,n=Et(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():fC.call(t,n,1),--this.size,!0}var eh=pC;function hC(e){var t=this.__data__,n=Et(t,e);return n<0?void 0:t[n][1]}var th=hC;function gC(e){return Et(this.__data__,e)>-1}var nh=gC;function mC(e,t){var n=this.__data__,r=Et(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var rh=mC;function On(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}On.prototype.clear=Xp;On.prototype.delete=eh;On.prototype.get=th;On.prototype.has=nh;On.prototype.set=rh;var _t=On;var yC=me(Z,"Map"),It=yC;function vC(){this.size=0,this.__data__={hash:new $l,map:new(It||_t),string:new $l}}var oh=vC;function DC(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var ih=DC;function wC(e,t){var n=e.__data__;return ih(t)?n[typeof t=="string"?"string":"hash"]:n.map}var bt=wC;function EC(e){var t=bt(this,e).delete(e);return this.size-=t?1:0,t}var sh=EC;function _C(e){return bt(this,e).get(e)}var ah=_C;function IC(e){return bt(this,e).has(e)}var lh=IC;function bC(e,t){var n=bt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var ch=bC;function Rn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Rn.prototype.clear=oh;Rn.prototype.delete=sh;Rn.prototype.get=ah;Rn.prototype.has=lh;Rn.prototype.set=ch;var Gt=Rn;var CC="Expected a function";function Wl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(CC);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(Wl.Cache||Gt),n}Wl.Cache=Gt;var uh=Wl;var SC=500;function TC(e){var t=uh(e,function(r){return n.size===SC&&n.clear(),r}),n=t.cache;return t}var dh=TC;var xC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,MC=/\\(\\)?/g,NC=dh(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(xC,function(n,r,o,i){t.push(o?i.replace(MC,"$1"):r||n)}),t}),fh=NC;function AC(e){return e==null?"":yp(e)}var ph=AC;function kC(e,t){return Q(e)?e:An(e,t)?[e]:fh(ph(e))}var Ti=kC;var OC=1/0;function RC(e){if(typeof e=="string"||Dt(e))return e;var t=e+"";return t=="0"&&1/e==-OC?"-0":t}var Ct=RC;function FC(e,t){t=Ti(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Ct(t[n++])];return n&&n==r?e:void 0}var xi=FC;function PC(e,t,n){var r=e==null?void 0:xi(e,t);return r===void 0?n:r}var hh=PC;function LC(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Mi=LC;var VC=Si(Object.getPrototypeOf,Object),Ni=VC;function jC(){this.__data__=new _t,this.size=0}var gh=jC;function BC(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var mh=BC;function HC(e){return this.__data__.get(e)}var yh=HC;function UC(e){return this.__data__.has(e)}var vh=UC;var $C=200;function WC(e,t){var n=this.__data__;if(n instanceof _t){var r=n.__data__;if(!It||r.length<$C-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Gt(r)}return n.set(e,t),this.size=n.size,this}var Dh=WC;function Fn(e){var t=this.__data__=new _t(e);this.size=t.size}Fn.prototype.clear=gh;Fn.prototype.delete=mh;Fn.prototype.get=yh;Fn.prototype.has=vh;Fn.prototype.set=Dh;var St=Fn;function GC(e,t){return e&&wt(t,Ke(t),e)}var wh=GC;function zC(e,t){return e&&wt(t,Nn(t),e)}var Eh=zC;var Ch=typeof exports=="object"&&exports&&!exports.nodeType&&exports,_h=Ch&&typeof module=="object"&&module&&!module.nodeType&&module,qC=_h&&_h.exports===Ch,Ih=qC?Z.Buffer:void 0,bh=Ih?Ih.allocUnsafe:void 0;function ZC(e,t){if(t)return e.slice();var n=e.length,r=bh?bh(n):new e.constructor(n);return e.copy(r),r}var Sh=ZC;function KC(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}var Th=KC;function YC(){return[]}var Ai=YC;var JC=Object.prototype,QC=JC.propertyIsEnumerable,xh=Object.getOwnPropertySymbols,XC=xh?function(e){return e==null?[]:(e=Object(e),Th(xh(e),function(t){return QC.call(e,t)}))}:Ai,Pn=XC;function eS(e,t){return wt(e,Pn(e),t)}var Mh=eS;var tS=Object.getOwnPropertySymbols,nS=tS?function(e){for(var t=[];e;)Mi(t,Pn(e)),e=Ni(e);return t}:Ai,ki=nS;function rS(e,t){return wt(e,ki(e),t)}var Nh=rS;function oS(e,t,n){var r=t(e);return Q(e)?r:Mi(r,n(e))}var Oi=oS;function iS(e){return Oi(e,Ke,Pn)}var Sr=iS;function sS(e){return Oi(e,Nn,ki)}var Ah=sS;var aS=me(Z,"DataView"),Ri=aS;var lS=me(Z,"Promise"),Fi=lS;var cS=me(Z,"Set"),Pi=cS;var kh="[object Map]",uS="[object Object]",Oh="[object Promise]",Rh="[object Set]",Fh="[object WeakMap]",Ph="[object DataView]",dS=it(Ri),fS=it(It),pS=it(Fi),hS=it(Pi),gS=it(Di),zt=Le;(Ri&&zt(new Ri(new ArrayBuffer(1)))!=Ph||It&&zt(new It)!=kh||Fi&&zt(Fi.resolve())!=Oh||Pi&&zt(new Pi)!=Rh||Di&&zt(new Di)!=Fh)&&(zt=function(e){var t=Le(e),n=t==uS?e.constructor:void 0,r=n?it(n):"";if(r)switch(r){case dS:return Ph;case fS:return kh;case pS:return Oh;case hS:return Rh;case gS:return Fh}return t});var lt=zt;var mS=Object.prototype,yS=mS.hasOwnProperty;function vS(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&yS.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Lh=vS;var DS=Z.Uint8Array,Ln=DS;function wS(e){var t=new e.constructor(e.byteLength);return new Ln(t).set(new Ln(e)),t}var Vn=wS;function ES(e,t){var n=t?Vn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Vh=ES;var _S=/\w*$/;function IS(e){var t=new e.constructor(e.source,_S.exec(e));return t.lastIndex=e.lastIndex,t}var jh=IS;var Bh=se?se.prototype:void 0,Hh=Bh?Bh.valueOf:void 0;function bS(e){return Hh?Object(Hh.call(e)):{}}var Uh=bS;function CS(e,t){var n=t?Vn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var $h=CS;var SS="[object Boolean]",TS="[object Date]",xS="[object Map]",MS="[object Number]",NS="[object RegExp]",AS="[object Set]",kS="[object String]",OS="[object Symbol]",RS="[object ArrayBuffer]",FS="[object DataView]",PS="[object Float32Array]",LS="[object Float64Array]",VS="[object Int8Array]",jS="[object Int16Array]",BS="[object Int32Array]",HS="[object Uint8Array]",US="[object Uint8ClampedArray]",$S="[object Uint16Array]",WS="[object Uint32Array]";function GS(e,t,n){var r=e.constructor;switch(t){case RS:return Vn(e);case SS:case TS:return new r(+e);case FS:return Vh(e,n);case PS:case LS:case VS:case jS:case BS:case HS:case US:case $S:case WS:return $h(e,n);case xS:return new r;case MS:case kS:return new r(e);case NS:return jh(e);case AS:return new r;case OS:return Uh(e)}}var Wh=GS;function zS(e){return typeof e.constructor=="function"&&!xn(e)?Ap(Ni(e)):{}}var Gh=zS;var qS="[object Map]";function ZS(e){return ae(e)&<(e)==qS}var zh=ZS;var qh=st&&st.isMap,KS=qh?Mn(qh):zh,Zh=KS;var YS="[object Set]";function JS(e){return ae(e)&<(e)==YS}var Kh=JS;var Yh=st&&st.isSet,QS=Yh?Mn(Yh):Kh,Jh=QS;var XS=1,e0=2,t0=4,Qh="[object Arguments]",n0="[object Array]",r0="[object Boolean]",o0="[object Date]",i0="[object Error]",Xh="[object Function]",s0="[object GeneratorFunction]",a0="[object Map]",l0="[object Number]",eg="[object Object]",c0="[object RegExp]",u0="[object Set]",d0="[object String]",f0="[object Symbol]",p0="[object WeakMap]",h0="[object ArrayBuffer]",g0="[object DataView]",m0="[object Float32Array]",y0="[object Float64Array]",v0="[object Int8Array]",D0="[object Int16Array]",w0="[object Int32Array]",E0="[object Uint8Array]",_0="[object Uint8ClampedArray]",I0="[object Uint16Array]",b0="[object Uint32Array]",V={};V[Qh]=V[n0]=V[h0]=V[g0]=V[r0]=V[o0]=V[m0]=V[y0]=V[v0]=V[D0]=V[w0]=V[a0]=V[l0]=V[eg]=V[c0]=V[u0]=V[d0]=V[f0]=V[E0]=V[_0]=V[I0]=V[b0]=!0;V[i0]=V[Xh]=V[p0]=!1;function Li(e,t,n,r,o,i){var s,a=t&XS,l=t&e0,c=t&t0;if(n&&(s=o?n(e,r,o,i):n(e)),s!==void 0)return s;if(!le(e))return e;var u=Q(e);if(u){if(s=Lh(e),!a)return kp(e,s)}else{var f=lt(e),p=f==Xh||f==s0;if(Wt(e))return Sh(e,a);if(f==eg||f==Qh||p&&!o){if(s=l||p?{}:Gh(e),!a)return l?Nh(e,Eh(s,e)):Mh(e,wh(s,e))}else{if(!V[f])return o?e:{};s=Wh(e,f,a)}}i||(i=new St);var d=i.get(e);if(d)return d;i.set(e,s),Jh(e)?e.forEach(function(v){s.add(Li(v,t,n,v,e,i))}):Zh(e)&&e.forEach(function(v,I){s.set(I,Li(v,t,n,I,e,i))});var h=c?l?Ah:Sr:l?Nn:Ke,g=u?void 0:h(e);return Op(g||e,function(v,I){g&&(I=v,v=e[I]),_i(s,I,Li(v,t,n,I,e,i))}),s}var tg=Li;var C0=1,S0=4;function T0(e){return tg(e,C0|S0)}var Gl=T0;var x0="__lodash_hash_undefined__";function M0(e){return this.__data__.set(e,x0),this}var ng=M0;function N0(e){return this.__data__.has(e)}var rg=N0;function Vi(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Gt;++t<n;)this.add(e[t])}Vi.prototype.add=Vi.prototype.push=ng;Vi.prototype.has=rg;var og=Vi;function A0(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var ig=A0;function k0(e,t){return e.has(t)}var sg=k0;var O0=1,R0=2;function F0(e,t,n,r,o,i){var s=n&O0,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var f=-1,p=!0,d=n&R0?new og:void 0;for(i.set(e,t),i.set(t,e);++f<a;){var h=e[f],g=t[f];if(r)var v=s?r(g,h,f,t,e,i):r(h,g,f,e,t,i);if(v!==void 0){if(v)continue;p=!1;break}if(d){if(!ig(t,function(I,Ee){if(!sg(d,Ee)&&(h===I||o(h,I,n,r,i)))return d.push(Ee)})){p=!1;break}}else if(!(h===g||o(h,g,n,r,i))){p=!1;break}}return i.delete(e),i.delete(t),p}var ji=F0;function P0(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}var ag=P0;function L0(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var lg=L0;var V0=1,j0=2,B0="[object Boolean]",H0="[object Date]",U0="[object Error]",$0="[object Map]",W0="[object Number]",G0="[object RegExp]",z0="[object Set]",q0="[object String]",Z0="[object Symbol]",K0="[object ArrayBuffer]",Y0="[object DataView]",cg=se?se.prototype:void 0,zl=cg?cg.valueOf:void 0;function J0(e,t,n,r,o,i,s){switch(n){case Y0:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case K0:return!(e.byteLength!=t.byteLength||!i(new Ln(e),new Ln(t)));case B0:case H0:case W0:return Cn(+e,+t);case U0:return e.name==t.name&&e.message==t.message;case G0:case q0:return e==t+"";case $0:var a=ag;case z0:var l=r&V0;if(a||(a=lg),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=j0,s.set(e,t);var u=ji(a(e),a(t),r,o,i,s);return s.delete(e),u;case Z0:if(zl)return zl.call(e)==zl.call(t)}return!1}var ug=J0;var Q0=1,X0=Object.prototype,eT=X0.hasOwnProperty;function tT(e,t,n,r,o,i){var s=n&Q0,a=Sr(e),l=a.length,c=Sr(t),u=c.length;if(l!=u&&!s)return!1;for(var f=l;f--;){var p=a[f];if(!(s?p in t:eT.call(t,p)))return!1}var d=i.get(e),h=i.get(t);if(d&&h)return d==t&&h==e;var g=!0;i.set(e,t),i.set(t,e);for(var v=s;++f<l;){p=a[f];var I=e[p],Ee=t[p];if(r)var K=s?r(Ee,I,p,t,e,i):r(I,Ee,p,e,t,i);if(!(K===void 0?I===Ee||o(I,Ee,n,r,i):K)){g=!1;break}v||(v=p=="constructor")}if(g&&!v){var ut=e.constructor,Yt=t.constructor;ut!=Yt&&"constructor"in e&&"constructor"in t&&!(typeof ut=="function"&&ut instanceof ut&&typeof Yt=="function"&&Yt instanceof Yt)&&(g=!1)}return i.delete(e),i.delete(t),g}var dg=tT;var nT=1,fg="[object Arguments]",pg="[object Array]",Bi="[object Object]",rT=Object.prototype,hg=rT.hasOwnProperty;function oT(e,t,n,r,o,i){var s=Q(e),a=Q(t),l=s?pg:lt(e),c=a?pg:lt(t);l=l==fg?Bi:l,c=c==fg?Bi:c;var u=l==Bi,f=c==Bi,p=l==c;if(p&&Wt(e)){if(!Wt(t))return!1;s=!0,u=!1}if(p&&!u)return i||(i=new St),s||bi(e)?ji(e,t,n,r,o,i):ug(e,t,l,n,r,o,i);if(!(n&nT)){var d=u&&hg.call(e,"__wrapped__"),h=f&&hg.call(t,"__wrapped__");if(d||h){var g=d?e.value():e,v=h?t.value():t;return i||(i=new St),o(g,v,n,r,i)}}return p?(i||(i=new St),dg(e,t,n,r,o,i)):!1}var gg=oT;function mg(e,t,n,r,o){return e===t?!0:e==null||t==null||!ae(e)&&!ae(t)?e!==e&&t!==t:gg(e,t,n,r,mg,o)}var Hi=mg;var iT=1,sT=2;function aT(e,t,n,r){var o=n.length,i=o,s=!r;if(e==null)return!i;for(e=Object(e);o--;){var a=n[o];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){a=n[o];var l=a[0],c=e[l],u=a[1];if(s&&a[2]){if(c===void 0&&!(l in e))return!1}else{var f=new St;if(r)var p=r(c,u,l,e,t,f);if(!(p===void 0?Hi(u,c,iT|sT,r,f):p))return!1}}return!0}var yg=aT;function lT(e){return e===e&&!le(e)}var Ui=lT;function cT(e){for(var t=Ke(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ui(o)]}return t}var vg=cT;function uT(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var $i=uT;function dT(e){var t=vg(e);return t.length==1&&t[0][2]?$i(t[0][0],t[0][1]):function(n){return n===e||yg(n,e,t)}}var Dg=dT;function fT(e,t){return e!=null&&t in Object(e)}var wg=fT;function pT(e,t,n){t=Ti(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var s=Ct(t[r]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&Sn(o)&&wi(s,o)&&(Q(e)||Ii(e)))}var Eg=pT;function hT(e,t){return e!=null&&Eg(e,t,wg)}var _g=hT;var gT=1,mT=2;function yT(e,t){return An(e)&&Ui(t)?$i(Ct(e),t):function(n){var r=hh(n,e);return r===void 0&&r===t?_g(n,e):Hi(t,r,gT|mT)}}var Ig=yT;function vT(e){return function(t){return t?.[e]}}var bg=vT;function DT(e){return function(t){return xi(t,e)}}var Cg=DT;function wT(e){return An(e)?bg(Ct(e)):Cg(e)}var Sg=wT;function ET(e){return typeof e=="function"?e:e==null?Cp:typeof e=="object"?Q(e)?Ig(e[0],e[1]):Dg(e):Sg(e)}var Wi=ET;function _T(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var ql=_T;function IT(e){return function(t,n,r){var o=Object(t);if(!Tn(t)){var i=Wi(n,3);t=Ke(t),n=function(a){return i(o[a],a,o)}}var s=e(t,n,r);return s>-1?o[i?t[s]:s]:void 0}}var Tg=IT;var bT=Math.max;function CT(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:bp(n);return o<0&&(o=bT(r+o,0)),Rp(e,Wi(t,3),o)}var xg=CT;var ST=Tg(xg),Zl=ST;function TT(e){return e&&e.length?e[0]:void 0}var Gi=TT;var X={mreServiceBase:"https://test.kc-np.o360.cloud/Handlers/saml2.ashx",mreBaseUrl:"https://www.medicalreferenceengine.com/mre/",tokenServer:"/Token/token/",url:"/",appName:"kcApp",secret:""};var Mg=[{name:"aa_togglePhysicianPaymentType (Dev Only)",sdkVisible:!1,example:""},{name:"aa_LoadPhyNpiTaxonomy (Dev Only)",sdkVisible:!1,example:""},{name:"aa_SetEgpSortRules (Dev Only)",sdkVisible:!1,example:{includePriority:"",includeSeverity:"",includeMortality:"",includeElixhauser:"",includeHcc:"",includeRa:"",includePxPriority:""}},{name:"aa_CreateAgpInput (Dev Only)",sdkVisible:!1,example:""},{name:"acsuCloneDischargeDisposition (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuGetFacilitiesByIds (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuGetFacilitiesByUsernames (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuMergeMultiRegion (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuSaveDischargeDisposition (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuSaveWebstratUser (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"addGhostRows (Dev Only)",sdkVisible:!1,example:{includeAdmitTypeAndAdmissionSource:!1}},{name:"addRemCodes (Dev Only)",sdkVisible:!1,example:{diagnosisCodes:[{code:"B700",codeType:"REMD",label:"short label",longLabel:"Long label"}],hcpcsCodes:[{code:"12001",codeType:"REMH",label:"short label",longLabel:"Long label",units:"1",modifier1:"26",modifier2:null,modifier3:null,modifier4:null,modifier5:null}]}},{name:"swapActiveAndGhostRows (Dev Only)",sdkVisible:!1,example:""},{name:"recordMode (Dev Only)",sdkVisible:!1,example:""},{name:"addCodes",sdkVisible:!0,example:{codes:[{code:"B700",codeType:"I10CM",dxIndic1:"N"},{code:"X2C1361",codeType:"ICD10PCS",date:"2024-03-21T20:01:28.953Z"}],editedcode:null,codeSource:"encoder",documentHighlight:!0}},{name:"deleteCodes",sdkVisible:!0,example:{codes:[{uniqueId:"uniqueIdgoeshere",codeType:"I10CM"}]}},{name:"defaultSettings",sdkVisible:!1,example:""},{name:"getInputPatientClaim",sdkVisible:!1,example:""},{name:"getPayerList",sdkVisible:!0,example:{sendingFacility:"001",npi:null,payer:null,taxonomy:null,paymentType:"01"}},{name:"getPatientRecord",sdkVisible:!1,example:""},{name:"getPatientRecord-truncated",sdkVisible:!1,example:""},{name:"getOptimizerInput",sdkVisible:!1,example:""},{name:"cacAuthenticateUser (Dev Only)",sdkVisible:!1,example:{user:"UserName",pw:"EncryptedPW",isForLogin:!0}},{name:"cacChangePwd (Dev Only)",sdkVisible:!1,example:{user:"UserName",currentPw:"EncryptedPw",newPw:"EncryptedPw"}},{name:"cacGetGroups (Dev Only)",sdkVisible:!1,example:""},{name:"cacResetPwd (Dev Only)",sdkVisible:!1,example:{user:"UserName",newPw:"EncryptedPw"}},{name:"cacGetUserInfo (Dev Only)",sdkVisible:!1,example:{user:"UserName"}},{name:"cacUpdateLastLoginTime (Dev Only)",sdkVisible:!1,example:{user:12345}},{name:"callClaimsManager (Dev Only)",sdkVisible:!1,example:""},{name:"closeAllKCWindows",sdkVisible:!1,example:""},{name:"closeAllKCWindowsExceptEncoder",sdkVisible:!0,example:""},{name:"clearSelectedRow",sdkVisible:!0,example:""},{name:"clearPatientRecord",sdkVisible:!0,example:""},{name:"clearHighlight",sdkVisible:!1,example:""},{name:"editsCount",sdkVisible:!1,example:""},{name:"enableEncoder",sdkVisible:!1,example:""},{name:"disableEncoder",sdkVisible:!1,example:""},{name:"disableChildWindows",sdkVisible:!1,example:""},{name:"enableChildWindows",sdkVisible:!1,example:""},{name:"launchCodeSummaryReport",sdkVisible:!0,example:""},{name:"launchEdits",sdkVisible:!0,example:""},{name:"launchIndex",sdkVisible:!0,example:{codeType:"I10CM",phrase:"ANGINA"}},{name:"launchLogic",sdkVisible:!0,example:{codeType:"I10CM",phrase:"ANGINA"}},{name:"launchTabular",sdkVisible:!0,example:{codeType:"I10CM",code:"A000"}},{name:"launchFacilityLookup",sdkVisible:!0,example:{paymentType:"01",rateFilePath:"C:\\inetpub\\wwwroot\\HSS\\Data\\allpaykc"}},{name:"loadNotes",sdkVisible:!1,example:{AccessType:"All",codeType:"I10CM",NoteType:"Code",Identifier:"",IdentifierSearchLower:"",IdentifierSearchUpper:"",Category:"",Ids:{User:"",Facility:"",Organization:""},AllFacilities:!0}},{name:"loadOrganizationSettings",sdkVisible:!1,example:""},{name:"loadPatientRecord",sdkVisible:!0,example:""},{name:"openEncoder",sdkVisible:!0,example:""},{name:"potentialImpactDisplay (Dev Only)",sdkVisible:!1,example:""},{name:"potentialImpactClear",sdkVisible:!1,example:""},{name:"potentialImpactDisable",sdkVisible:!1,example:""},{name:"potentialImpactEnable",sdkVisible:!1,example:""},{name:"potentialImpactEnableEgp",sdkVisible:!1,example:{enabled:!1}},{name:"potentialImpactInitialize",sdkVisible:!1,example:""},{name:"resetApplication",sdkVisible:!0,example:""},{name:"savePatientRecord",sdkVisible:!0,example:""},{name:"selectRowOnHighlightClick",sdkVisible:!1,example:{uniqueId:"uniqueIdGoesHere"}},{name:"setAuthToken",sdkVisible:!1,example:""},{name:"toggleEgpCompression",sdkVisible:!1,example:{enableCompression:!1}},{name:"setChargeCapture",sdkVisible:!0,example:[{cptCode:"G0382",modifiers:"77,GA,PO",revCode:"450",startDate:"2025-2-11",units:1,codeRange:"99281-99285,99291-99292,G0380-G0384"},{cptCode:"96365",modifiers:"59,XE,XS,XU",revCode:"450",startDate:"Tue Feb 11 2025 13:25:46 GMT-0500 (Eastern Standard Time)",units:56,codeRange:"96360-96361,96365-96368,96372,96374-96376"},{cptCode:"99221",modifiers:"IN,IP,IR,IS,IX",revCode:"760",startDate:"2025-02-11T00:00:00.000Z",units:9999,codeRange:"99221-99223,99231-99233,99234-99236, 99238-99239,G0378 \u2013 G0379"}]},{name:"showCurrentConfig (Dev Only)",sdkVisible:!1,example:""},{name:"updateAbstractInfo",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"HCPCS",abstractInfo:"A"}]},{name:"updateBaseUrl",sdkVisible:!1,example:""},{name:"updateCodes",sdkVisible:!0,example:[{uniqueId:"uniqueIdGoesHere",codeType:"I10CM",dxIndic1:"Y"},{uniqueId:"uniqueIdGoesHere",codeType:"ICD10PCS",date:"2024-03-21T20:01:28.953Z",selectedProvider:"freeFormProvider"},{uniqueId:"uniqueIdGoesHere",codeType:"HCPCS",date:"2024-03-21T20:01:28.953Z",selectedProvider:"freeFormProvider",revCode:"0250",units:"1",modifier1:{value:"23"},i10Reimbursement:{charges:"$1,000.00"},i9Reimbursement:{charges:"$1,000.00"}}]},{name:"updateComments",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"I10CM",comments:"C"}]},{name:"updateDemographics",sdkVisible:!0,example:""},{name:"updateDocumentCount",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"I10CM",documentCount:"3"}]},{name:"updateExcludeFromBilling",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"HCPCS",excludeFromBilling:"X"}]},{name:"updateRedFlag",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"I10CM",redFlag:"F"}]},{name:"hasCriticalEdits",sdkVisible:!0,example:""},{name:"hasEdits",sdkVisible:!0,example:""},{name:"ReloadMainPod",sdkVisible:!1,example:""},{name:"ReloadCodeSummary",sdkVisible:!1,example:""},{name:"ReloadDemographics",sdkVisible:!1,example:""},{name:"ReloadEdits",sdkVisible:!1,example:""},{name:"ReloadReimbursement",sdkVisible:!1,example:""},{name:"logout",sdkVisible:!0,example:""},{name:"getRowSpecificInfo",sdkVisible:!0,example:["uniqueId1GoesHere","uniqueId2GoesHere"]},{name:"isEditGroupPriceInProgress",sdkVisible:!1,example:""},{name:"addCodesNoEdit",sdkVisible:!1,example:{codes:[{code:"B700",codeType:"I10CM",dxIndic1:"N"},{code:"X2C1361",codeType:"ICD10PCS",date:"2024-03-21T20:01:28.953Z"}]}},{name:"setQueryImpactVisibility",sdkVisible:!1,example:{isVisible:!0}},{name:"setSyncVisibility",sdkVisible:!1,example:{isVisible:!0}},{name:"showScratchCodeState",sdkVisible:!1,example:{isVisible:!0}},{name:"showQueryHistoryState",sdkVisible:!1,example:{isVisible:!0}},{name:"showQueryHistoryBtn",sdkVisible:!1,example:{isVisible:!0}},{name:"updateCptWithRange",sdkVisible:!1,example:{codes:[{code:"",units:""}],emCodeRanges:[{from:"",to:""}]}},{name:"launchModal (Dev Only)",sdkVisible:!1,example:{messageType:"info",title:"Test Modal",message:["Test Modal"]}},{name:"simulateKcVersion (Dev Only)",sdkVisible:!1,example:{kcVersion:"1.2.3"}},{name:"startEnvironmentPromiseRace (Dev Only)",sdkVisible:!1,example:{alternateUrl:"https://dev.kc-np.o360.cloud/v202501"}}];var Vg=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(r){return new(r||e)(E(Ut),E(mt))};static \u0275dir=q({type:e})}return e})(),ns=(()=>{class e extends Vg{static \u0275fac=(()=>{let n;return function(o){return(n||(n=wn(e)))(o||e)}})();static \u0275dir=q({type:e,features:[ve]})}return e})(),Hn=new w(""),NT={provide:Hn,useExisting:Fe(()=>Xl),multi:!0},Xl=(()=>{class e extends ns{writeValue(n){this.setProperty("checked",n)}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wn(e)))(o||e)}})();static \u0275dir=q({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,o){r&1&&z("change",function(s){return o.onChange(s.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[rt([NT]),ve]})}return e})(),AT={provide:Hn,useExisting:Fe(()=>Un),multi:!0};function kT(){let e=vt()?vt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var OT=new w(""),Un=(()=>{class e extends Vg{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!kT())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(r){return new(r||e)(E(Ut),E(mt),E(OT,8))};static \u0275dir=q({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&z("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[rt([AT]),ve]})}return e})();function ec(e){return e==null||tc(e)===0}function tc(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var rs=new w(""),nc=new w(""),RT=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ar=class{static min(t){return FT(t)}static max(t){return PT(t)}static required(t){return jg(t)}static requiredTrue(t){return LT(t)}static email(t){return VT(t)}static minLength(t){return jT(t)}static maxLength(t){return BT(t)}static pattern(t){return HT(t)}static nullValidator(t){return qi()}static compose(t){return Gg(t)}static composeAsync(t){return qg(t)}};function FT(e){return t=>{if(t.value==null||e==null)return null;let n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}function PT(e){return t=>{if(t.value==null||e==null)return null;let n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}function jg(e){return ec(e.value)?{required:!0}:null}function LT(e){return e.value===!0?null:{required:!0}}function VT(e){return ec(e.value)||RT.test(e.value)?null:{email:!0}}function jT(e){return t=>{let n=t.value?.length??tc(t.value);return n===null||n===0?null:n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}function BT(e){return t=>{let n=t.value?.length??tc(t.value);return n!==null&&n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}function HT(e){if(!e)return qi;let t,n;return typeof e=="string"?(n="",e.charAt(0)!=="^"&&(n+="^"),n+=e,e.charAt(e.length-1)!=="$"&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),r=>{if(ec(r.value))return null;let o=r.value;return t.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}function qi(e){return null}function Bg(e){return e!=null}function Hg(e){return mr(e)?At(e):e}function Ug(e){let t={};return e.forEach(n=>{t=n!=null?P(P({},t),n):t}),Object.keys(t).length===0?null:t}function $g(e,t){return t.map(n=>n(e))}function UT(e){return!e.validate}function Wg(e){return e.map(t=>UT(t)?t:n=>t.validate(n))}function Gg(e){if(!e)return null;let t=e.filter(Bg);return t.length==0?null:function(n){return Ug($g(n,t))}}function zg(e){return e!=null?Gg(Wg(e)):null}function qg(e){if(!e)return null;let t=e.filter(Bg);return t.length==0?null:function(n){let r=$g(n,t).map(Hg);return Js(r).pipe(fe(Ug))}}function Zg(e){return e!=null?qg(Wg(e)):null}function Ng(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Kg(e){return e._rawValidators}function Yg(e){return e._rawAsyncValidators}function Kl(e){return e?Array.isArray(e)?e:[e]:[]}function Zi(e,t){return Array.isArray(e)?e.includes(t):e===t}function Ag(e,t){let n=Kl(t);return Kl(e).forEach(o=>{Zi(n,o)||n.push(o)}),n}function kg(e,t){return Kl(t).filter(n=>!Zi(e,n))}var Ki=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=zg(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Zg(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},qt=class extends Ki{name;get formDirective(){return null}get path(){return null}},Zt=class extends Ki{_parent=null;name=null;valueAccessor=null},Yi=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},$T={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},OH=G(P({},$T),{"[class.ng-submitted]":"isSubmitted"}),os=(()=>{class e extends Yi{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(E(Zt,2))};static \u0275dir=q({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&fi("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[ve]})}return e})(),Jg=(()=>{class e extends Yi{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(E(qt,10))};static \u0275dir=q({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&fi("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},standalone:!1,features:[ve]})}return e})();var Tr="VALID",zi="INVALID",jn="PENDING",xr="DISABLED",Tt=class{},Ji=class extends Tt{value;source;constructor(t,n){super(),this.value=t,this.source=n}},Mr=class extends Tt{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},Nr=class extends Tt{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},Bn=class extends Tt{status;source;constructor(t,n){super(),this.status=t,this.source=n}},Yl=class extends Tt{source;constructor(t){super(),this.source=t}},Jl=class extends Tt{source;constructor(t){super(),this.source=t}};function Qg(e){return(is(e)?e.validators:e)||null}function WT(e){return Array.isArray(e)?zg(e):e||null}function Xg(e,t){return(is(t)?t.asyncValidators:e)||null}function GT(e){return Array.isArray(e)?Zg(e):e||null}function is(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function zT(e,t,n){let r=e.controls;if(!(t?Object.keys(r):r).length)throw new _(1e3,"");if(!r[n])throw new _(1001,"")}function qT(e,t,n){e._forEachChild((r,o)=>{if(n[o]===void 0)throw new _(1002,"")})}var Qi=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return ot(this.statusReactive)}set status(t){ot(()=>this.statusReactive.set(t))}_status=Dr(()=>this.statusReactive());statusReactive=pr(void 0);get valid(){return this.status===Tr}get invalid(){return this.status===zi}get pending(){return this.status==jn}get disabled(){return this.status===xr}get enabled(){return this.status!==xr}errors;get pristine(){return ot(this.pristineReactive)}set pristine(t){ot(()=>this.pristineReactive.set(t))}_pristine=Dr(()=>this.pristineReactive());pristineReactive=pr(!0);get dirty(){return!this.pristine}get touched(){return ot(this.touchedReactive)}set touched(t){ot(()=>this.touchedReactive.set(t))}_touched=Dr(()=>this.touchedReactive());touchedReactive=pr(!1);get untouched(){return!this.touched}_events=new Qe;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Ag(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Ag(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(kg(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(kg(t,this._rawAsyncValidators))}hasValidator(t){return Zi(this._rawValidators,t)}hasAsyncValidator(t){return Zi(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(G(P({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Nr(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new Nr(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(G(P({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Mr(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new Mr(!0,r))}markAsPending(t={}){this.status=jn;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Bn(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(G(P({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=xr,this.errors=null,this._forEachChild(o=>{o.disable(G(P({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Ji(this.value,r)),this._events.next(new Bn(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(G(P({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Tr,this._forEachChild(r=>{r.enable(G(P({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(G(P({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Tr||this.status===jn)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Ji(this.value,n)),this._events.next(new Bn(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(G(P({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?xr:Tr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=jn,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=Hg(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Bn(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new pe,this.statusChanges=new pe}_calculateStatus(){return this._allControlsDisabled()?xr:this.errors?zi:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(jn)?jn:this._anyControlsHaveStatus(zi)?zi:Tr}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new Mr(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new Nr(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){is(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=WT(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=GT(this._rawAsyncValidators)}},Xi=class extends Qi{constructor(t,n,r){super(Qg(n),Xg(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){qT(this,!0,t),Object.keys(t).forEach(r=>{zT(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){t!=null&&(Object.keys(t).forEach(r=>{let o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t?t[o]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>r._syncPendingControls()?!0:n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{let r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var ss=new w("",{providedIn:"root",factory:()=>as}),as="always";function em(e,t){return[...t.path,e]}function Ql(e,t,n=as){rc(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),KT(e,t),JT(e,t),YT(e,t),ZT(e,t)}function Og(e,t,n=!0){let r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),ts(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function es(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function ZT(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function rc(e,t){let n=Kg(e);t.validator!==null?e.setValidators(Ng(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=Yg(e);t.asyncValidator!==null?e.setAsyncValidators(Ng(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();es(t._rawValidators,o),es(t._rawAsyncValidators,o)}function ts(e,t){let n=!1;if(e!==null){if(t.validator!==null){let o=Kg(e);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==t.validator);i.length!==o.length&&(n=!0,e.setValidators(i))}}if(t.asyncValidator!==null){let o=Yg(e);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==t.asyncValidator);i.length!==o.length&&(n=!0,e.setAsyncValidators(i))}}}let r=()=>{};return es(t._rawValidators,r),es(t._rawAsyncValidators,r),n}function KT(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&tm(e,t)})}function YT(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&tm(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function tm(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function JT(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function QT(e,t){e==null,rc(e,t)}function XT(e,t){return ts(e,t)}function nm(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function ex(e){return Object.getPrototypeOf(e.constructor)===ns}function tx(e,t){e._syncPendingControls(),t.forEach(n=>{let r=n.control;r.updateOn==="submit"&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function rm(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===Un?n=i:ex(i)?r=i:o=i}),o||r||n||null}function nx(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Rg(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Fg(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var kr=class extends Qi{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(Qg(n),Xg(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),is(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Fg(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Rg(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Rg(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Fg(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var rx=e=>e instanceof kr;var ox={provide:Zt,useExisting:Fe(()=>Or)},Pg=Promise.resolve(),Or=(()=>{class e extends Zt{_changeDetectorRef;callSetDisabledState;control=new kr;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new pe;constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=rm(this,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),nm(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Ql(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){Pg.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&Pl(r);Pg.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?em(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(E(qt,9),E(rs,10),E(nc,10),E(Hn,10),E(vr,8),E(ss,8))};static \u0275dir=q({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[rt([ox]),ve,vn]})}return e})();var om=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275dir=q({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return e})();var im=new w("");var ix={provide:qt,useExisting:Fe(()=>oc)},oc=(()=>{class e extends qt{callSetDisabledState;get submitted(){return ot(this._submittedReactive)}set submitted(n){this._submittedReactive.set(n)}_submitted=Dr(()=>this._submittedReactive());_submittedReactive=pr(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new pe;constructor(n,r,o){super(),this.callSetDisabledState=o,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ts(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let r=this.form.get(n.path);return Ql(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){Og(n.control||null,n,!1),nx(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this._submittedReactive.set(!0),tx(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new Yl(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this._submittedReactive.set(!1),this.form._events.next(new Jl(this.form))}_updateDomValue(){this.directives.forEach(n=>{let r=n.control,o=this.form.get(n.path);r!==o&&(Og(r||null,n),rx(o)&&(Ql(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let r=this.form.get(n.path);QT(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let r=this.form.get(n.path);r&&XT(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){rc(this.form,this),this._oldForm&&ts(this._oldForm,this)}static \u0275fac=function(r){return new(r||e)(E(rs,10),E(nc,10),E(ss,8))};static \u0275dir=q({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&z("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[rt([ix]),ve,vn]})}return e})();var sx={provide:Zt,useExisting:Fe(()=>ic)},ic=(()=>{class e extends Zt{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(n){}model;update=new pe;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(n,r,o,i,s){super(),this._ngModelWarningConfig=s,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=rm(this,i)}ngOnChanges(n){this._added||this._setUpControl(),nm(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return em(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(r){return new(r||e)(E(qt,13),E(rs,10),E(nc,10),E(Hn,10),E(im,8))};static \u0275dir=q({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[rt([sx]),ve,vn]})}return e})();var ax={provide:Hn,useExisting:Fe(()=>$n),multi:!0};function sm(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function lx(e){return e.split(":")[0]}var $n=(()=>{class e extends ns{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;writeValue(n){this.value=n;let r=this._getOptionId(n),o=sm(r,n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){let r=lx(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wn(e)))(o||e)}})();static \u0275dir=q({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,o){r&1&&z("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[rt([ax]),ve]})}return e})(),ls=(()=>{class e{_element;_renderer;_select;id;constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(sm(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(r){return new(r||e)(E(mt),E(Ut),E($n,9))};static \u0275dir=q({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),cx={provide:Hn,useExisting:Fe(()=>am),multi:!0};function Lg(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function ux(e){return e.split(":")[0]}var am=(()=>{class e extends ns{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;writeValue(n){this.value=n;let r;if(Array.isArray(n)){let o=n.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{let o=[],i=r.selectedOptions;if(i!==void 0){let s=i;for(let a=0;a<s.length;a++){let l=s[a],c=this._getOptionValue(l.value);o.push(c)}}else{let s=r.options;for(let a=0;a<s.length;a++){let l=s[a];if(l.selected){let c=this._getOptionValue(l.value);o.push(c)}}}this.value=o,n(o)}}_registerOption(n){let r=(this._idCounter++).toString();return this._optionMap.set(r,n),r}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r)._value,n))return r;return null}_getOptionValue(n){let r=ux(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wn(e)))(o||e)}})();static \u0275dir=q({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,o){r&1&&z("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[rt([cx]),ve]})}return e})(),cs=(()=>{class e{_element;_renderer;_select;id;_value;constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(Lg(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(Lg(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(r){return new(r||e)(E(mt),E(Ut),E(am,9))};static \u0275dir=q({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();var dx=(()=>{class e{_validator=qi;_onChange;_enabled;ngOnChanges(n){if(this.inputName in n){let r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):qi,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}static \u0275fac=function(r){return new(r||e)};static \u0275dir=q({type:e,features:[vn]})}return e})();var fx={provide:rs,useExisting:Fe(()=>sc),multi:!0};var sc=(()=>{class e extends dx{required;inputName="required";normalizeInput=Pl;createValidator=n=>jg;enabled(n){return n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wn(e)))(o||e)}})();static \u0275dir=q({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,o){r&2&&Ol("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[rt([fx]),ve]})}return e})();var lm=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=yt({type:e});static \u0275inj=gt({})}return e})();var us=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:ss,useValue:n.callSetDisabledState??as}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=yt({type:e});static \u0275inj=gt({imports:[lm]})}return e})(),ds=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:im,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:ss,useValue:n.callSetDisabledState??as}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=yt({type:e});static \u0275inj=gt({imports:[lm]})}return e})();var Wn=(()=>{class e{constructor(){this.signInForm=new Xi({username:new kr({value:"",disabled:!1},[Ar.required]),organization:new kr({value:"Hartford HealthCare",disabled:!1},[Ar.required])}),this.serverErrorMessageModel={id:"ServerError",messageType:"error",content:"",visible:!1},this.clientErrorMessageModel={id:"ClientError",messageType:"error",content:"Review the form and correct highlighted fields.",visible:!1},this.busy=!1,this.advancedMode=!1,this.serverError=this.serverErrorMessageModel,this.clientError=this.clientErrorMessageModel,this.username="",this.organization="Hartford HealthCare",this.signInButtonText=this.advancedMode?"Generate Token":"Launch Encoder",this.signInHeaderText=this.advancedMode?"Create Token":"Enter Info",this.userNameDisabled=!1}clearClientError(){this.serverError.visible=!1,this.clientError.visible=!1,this.signInForm.markAsPristine()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var zn=class{},Rr=class{},Ye=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
|
|
7
|
+
`)}`}var Vy=td(qu("Optional"),8);var jy=td(qu("SkipSelf"),4);function sn(e,t){let n=e.hasOwnProperty(Co);return n?e[Co]:null}function rl(e,t){e.forEach(n=>Array.isArray(n)?rl(n,t):t(n))}function nd(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function xo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function By(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Hy(e,t,n){let r=dr(e,t);return r>=0?e[r|1]=n:(r=~r,By(e,r,t,n)),r}function ta(e,t){let n=dr(e,t);if(n>=0)return e[n|1]}function dr(e,t){return Uy(e,t,1)}function Uy(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var Rt={},be=[],Mo=new w(""),rd=new w("",-1),od=new w(""),No=class{get(t,n=kt){if(n===kt){let r=new Error(`NullInjectorError: No provider for ${Ce(t)}!`);throw r.name="NullInjectorError",r}return n}};function rr(e){return e[Sy]||null}function $y(e){return e[Ty]||null}function Wy(e){return e[xy]||null}function id(e){return{\u0275providers:e}}function Gy(...e){return{\u0275providers:sd(!0,e),\u0275fromNgModule:!0}}function sd(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return rl(t,s=>{let a=s;va(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&ad(o,i),n}function ad(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];ol(o,i=>{t(i,r)})}}function va(e,t,n,r){if(e=re(e),!e)return!1;let o=null,i=au(e),s=!i&&rr(e);if(!i&&!s){let l=e.ngModule;if(i=au(l),i)o=l;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)va(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{rl(i.imports,u=>{va(u,t,n,r)&&(c||=[],c.push(u))})}finally{}c!==void 0&&ad(c,t)}if(!a){let c=sn(o)||(()=>new o);t({provide:o,useFactory:c,deps:be},o),t({provide:od,useValue:o,multi:!0},o),t({provide:Mo,useValue:()=>T(o),multi:!0},o)}let l=i.providers;if(l!=null&&!a){let c=e;ol(l,u=>{t(u,c)})}}else return!1;return o!==e&&e.providers!==void 0}function ol(e,t){for(let n of e)Ju(n)&&(n=n.\u0275providers),Array.isArray(n)?ol(n,t):t(n)}var zy=j({provide:String,useValue:j});function ld(e){return e!==null&&typeof e=="object"&&zy in e}function qy(e){return!!(e&&e.useExisting)}function Zy(e){return!!(e&&e.useFactory)}function an(e){return typeof e=="function"}function Ky(e){return!!e.useClass}var Xo=new w(""),wo={},du={},na;function il(){return na===void 0&&(na=new No),na}var je=class{},or=class extends je{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,wa(t,s=>this.processProvider(s)),this.records.set(rd,tn(void 0,this)),o.has("environment")&&this.records.set(je,tn(void 0,this));let i=this.records.get(Xo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(od,be,x.Self))}retrieve(t,n){let r=n;return this.get(t,r.optional?Kr:kt,r)}destroy(){er(this),this._destroyed=!0;let t=N(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),N(t)}}onDestroy(t){return er(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){er(this);let n=Je(this),r=Ie(void 0),o;try{return t()}finally{Je(n),Ie(r)}}get(t,n=kt,r=x.Default){if(er(this),t.hasOwnProperty(cu))return t[cu](this);r=Qo(r);let o,i=Je(this),s=Ie(void 0);try{if(!(r&x.SkipSelf)){let l=this.records.get(t);if(l===void 0){let c=ev(t)&&el(t);c&&this.injectableDefInScope(c)?l=tn(Da(t),wo):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l,r)}let a=r&x.Self?il():this.parent;return n=r&x.Optional&&n===kt?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[To]=a[To]||[]).unshift(Ce(t)),i)throw a;return Py(a,t,"R3InjectorError",this.source)}else throw a}finally{Ie(s),Je(i)}}resolveInjectorInitializers(){let t=N(null),n=Je(this),r=Ie(void 0),o;try{let i=this.get(Mo,be,x.Self);for(let s of i)s()}finally{Je(n),Ie(r),N(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(Ce(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=re(t);let n=an(t)?t:re(t&&t.provide),r=Jy(t);if(!an(t)&&t.multi===!0){let o=this.records.get(n);o||(o=tn(void 0,wo,!0),o.factory=()=>ya(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=N(null);try{return n.value===du?Qu(Ce(t)):n.value===wo&&(n.value=du,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&Xy(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{N(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=re(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Da(e){let t=el(e),n=t!==null?t.factory:sn(e);if(n!==null)return n;if(e instanceof w)throw new _(204,!1);if(e instanceof Function)return Yy(e);throw new _(204,!1)}function Yy(e){if(e.length>0)throw new _(204,!1);let n=by(e);return n!==null?()=>n.factory(e):()=>new e}function Jy(e){if(ld(e))return tn(void 0,e.useValue);{let t=cd(e);return tn(t,wo)}}function cd(e,t,n){let r;if(an(e)){let o=re(e);return sn(o)||Da(o)}else if(ld(e))r=()=>re(e.useValue);else if(Zy(e))r=()=>e.useFactory(...ya(e.deps||[]));else if(qy(e))r=(o,i)=>T(re(e.useExisting),i!==void 0&&i&x.Optional?x.Optional:void 0);else{let o=re(e&&(e.useClass||e.provide));if(Qy(e))r=()=>new o(...ya(e.deps));else return sn(o)||Da(o)}return r}function er(e){if(e.destroyed)throw new _(205,!1)}function tn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Qy(e){return!!e.deps}function Xy(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function ev(e){return typeof e=="function"||typeof e=="object"&&e instanceof w}function wa(e,t){for(let n of e)Array.isArray(n)?wa(n,t):n&&Ju(n)?wa(n.\u0275providers,t):t(n)}function ei(e,t){let n;e instanceof or?(er(e),n=e):n=new So(e);let r,o=Je(n),i=Ie(void 0);try{return t()}finally{Je(o),Ie(i)}}function tv(){return Xu()!==void 0||Yn()!=null}function nv(e){return typeof e=="function"}var tt=0,k=1,b=2,oe=3,Re=4,Pe=5,Ao=6,ko=7,he=8,ln=9,pt=10,J=11,ir=12,fu=13,gn=14,Be=15,cn=16,nn=17,un=18,ti=19,ud=20,dt=21,ra=22,Oo=23,Se=24,oa=25,He=26,dd=1;var Ft=7,Ro=8,Fo=9,Te=10;function ft(e){return Array.isArray(e)&&typeof e[dd]=="object"}function nt(e){return Array.isArray(e)&&e[dd]===!0}function fd(e){return(e.flags&4)!==0}function mn(e){return e.componentOffset>-1}function sl(e){return(e.flags&1)===1}function Ue(e){return!!e.template}function Po(e){return(e[b]&512)!==0}function yn(e){return(e[b]&256)===256}var Ea=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function pd(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var vn=(()=>{let e=()=>hd;return e.ngInherit=!0,e})();function hd(e){return e.type.prototype.ngOnChanges&&(e.setInput=ov),rv}function rv(){let e=md(this),t=e?.current;if(t){let n=e.previous;if(n===Rt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function ov(e,t,n,r,o){let i=this.declaredInputs[r],s=md(e)||iv(e,{previous:Rt,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[i];a[i]=new Ea(c&&c.currentValue,n,l===Rt),pd(e,t,o,n)}var gd="__ngSimpleChanges__";function md(e){return e[gd]||null}function iv(e,t){return e[gd]=t}var pu=null;var L=function(e,t=null,n){pu?.(e,t,n)},sv="svg",av="math";function $e(e){for(;Array.isArray(e);)e=e[tt];return e}function yd(e,t){return $e(t[e])}function ze(e,t){return $e(t[e.index])}function vd(e,t){return e.data[t]}function lv(e,t){return e[t]}function We(e,t){let n=t[e];return ft(n)?n:n[tt]}function al(e){return(e[b]&128)===128}function cv(e){return nt(e[oe])}function Lo(e,t){return t==null?null:e[t]}function Dd(e){e[nn]=0}function wd(e){e[b]&1024||(e[b]|=1024,al(e)&&ri(e))}function uv(e,t){for(;e>0;)t=t[gn],e--;return t}function ni(e){return!!(e[b]&9216||e[Se]?.dirty)}function _a(e){e[pt].changeDetectionScheduler?.notify(8),e[b]&64&&(e[b]|=1024),ni(e)&&ri(e)}function ri(e){e[pt].changeDetectionScheduler?.notify(0);let t=Pt(e);for(;t!==null&&!(t[b]&8192||(t[b]|=8192,!al(t)));)t=Pt(t)}function Ed(e,t){if(yn(e))throw new _(911,!1);e[dt]===null&&(e[dt]=[]),e[dt].push(t)}function dv(e,t){if(e[dt]===null)return;let n=e[dt].indexOf(t);n!==-1&&e[dt].splice(n,1)}function Pt(e){let t=e[oe];return nt(t)?t[oe]:t}function _d(e){return e[ko]??=[]}function Id(e){return e.cleanup??=[]}var M={lFrame:kd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Ia=!1;function fv(){return M.lFrame.elementDepthCount}function pv(){M.lFrame.elementDepthCount++}function hv(){M.lFrame.elementDepthCount--}function bd(){return M.bindingsEnabled}function gv(){return M.skipHydrationRootTNode!==null}function mv(e){return M.skipHydrationRootTNode===e}function yv(){M.skipHydrationRootTNode=null}function B(){return M.lFrame.lView}function ye(){return M.lFrame.tView}function H(e){return M.lFrame.contextLView=e,e[he]}function U(e){return M.lFrame.contextLView=null,e}function xe(){let e=Cd();for(;e!==null&&e.type===64;)e=e.parent;return e}function Cd(){return M.lFrame.currentTNode}function vv(){let e=M.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function fr(e,t){let n=M.lFrame;n.currentTNode=e,n.isParent=t}function Sd(){return M.lFrame.isParent}function Dv(){M.lFrame.isParent=!1}function wv(){return M.lFrame.contextLView}function Td(){return Ia}function hu(e){let t=Ia;return Ia=e,t}function xd(){let e=M.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ev(e){return M.lFrame.bindingIndex=e}function oi(){return M.lFrame.bindingIndex++}function _v(e){let t=M.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Iv(){return M.lFrame.inI18n}function bv(e,t){let n=M.lFrame;n.bindingIndex=n.bindingRootIndex=e,ba(t)}function Cv(){return M.lFrame.currentDirectiveIndex}function ba(e){M.lFrame.currentDirectiveIndex=e}function Sv(e){let t=M.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Md(e){M.lFrame.currentQueryIndex=e}function Tv(e){let t=e[k];return t.type===2?t.declTNode:t.type===1?e[Pe]:null}function Nd(e,t,n){if(n&x.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&x.Host);)if(o=Tv(i),o===null||(i=i[gn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=M.lFrame=Ad();return r.currentTNode=t,r.lView=e,!0}function ll(e){let t=Ad(),n=e[k];M.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ad(){let e=M.lFrame,t=e===null?null:e.child;return t===null?kd(e):t}function kd(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Od(){let e=M.lFrame;return M.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Rd=Od;function cl(){let e=Od();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function xv(e){return(M.lFrame.contextLView=uv(e,M.lFrame.contextLView))[he]}function Dn(){return M.lFrame.selectedIndex}function Lt(e){M.lFrame.selectedIndex=e}function ul(){let e=M.lFrame;return vd(e.tView,e.selectedIndex)}function Mv(){return M.lFrame.currentNamespace}var Fd=!0;function dl(){return Fd}function fl(e){Fd=e}function Nv(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=hd(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Pd(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),l&&(e.viewHooks??=[]).push(-n,l),c&&((e.viewHooks??=[]).push(n,c),(e.viewCheckHooks??=[]).push(n,c)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function Eo(e,t,n){Ld(e,t,3,n)}function _o(e,t,n,r){(e[b]&3)===n&&Ld(e,t,n,r)}function ia(e,t){let n=e[b];(n&3)===t&&(n&=16383,n+=1,e[b]=n)}function Ld(e,t,n,r){let o=r!==void 0?e[nn]&65535:0,i=r??-1,s=t.length-1,a=0;for(let l=o;l<s;l++)if(typeof t[l+1]=="number"){if(a=t[l],r!=null&&a>=r)break}else t[l]<0&&(e[nn]+=65536),(a<i||i==-1)&&(Av(e,n,t,l),e[nn]=(e[nn]&4294901760)+l+2),l++}function gu(e,t){L(4,e,t);let n=N(null);try{t.call(e)}finally{N(n),L(5,e,t)}}function Av(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[b]>>14<e[nn]>>16&&(e[b]&3)===t&&(e[b]+=16384,gu(a,i)):gu(a,i)}var on=-1,Vt=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function kv(e){return(e.flags&8)!==0}function Ov(e){return(e.flags&16)!==0}function Rv(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];Pv(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function Fv(e){return e===3||e===4||e===6}function Pv(e){return e.charCodeAt(0)===64}function sr(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?mu(e,n,o,null,t[++r]):mu(e,n,o,null,null))}}return e}function mu(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function Vd(e){return e!==on}function Vo(e){return e&32767}function Lv(e){return e>>16}function jo(e,t){let n=Lv(e),r=t;for(;n>0;)r=r[gn],n--;return r}var Ca=!0;function yu(e){let t=Ca;return Ca=e,t}var Vv=256,jd=Vv-1,Bd=5,jv=0,Ve={};function Bv(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(nr)&&(r=n[nr]),r==null&&(r=n[nr]=jv++);let o=r&jd,i=1<<o;t.data[e+(o>>Bd)]|=i}function Bo(e,t){let n=Hd(e,t);if(n!==-1)return n;let r=t[k];r.firstCreatePass&&(e.injectorIndex=t.length,sa(r.data,e),sa(t,null),sa(r.blueprint,null));let o=pl(e,t),i=e.injectorIndex;if(Vd(o)){let s=Vo(o),a=jo(o,t),l=a[k].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|l[s+c]}return t[i+8]=o,i}function sa(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Hd(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function pl(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=zd(o),r===null)return on;if(n++,o=o[gn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return on}function Sa(e,t,n){Bv(e,t,n)}function Ud(e,t,n){if(n&x.Optional||e!==void 0)return e;nl(t,"NodeInjector")}function $d(e,t,n,r){if(n&x.Optional&&r===void 0&&(r=null),(n&(x.Self|x.Host))===0){let o=e[ln],i=Ie(void 0);try{return o?o.get(t,r,n&x.Optional):ed(t,r,n&x.Optional)}finally{Ie(i)}}return Ud(r,t,n)}function Wd(e,t,n,r=x.Default,o){if(e!==null){if(t[b]&2048&&!(r&x.Self)){let s=Gv(e,t,n,r,Ve);if(s!==Ve)return s}let i=Gd(e,t,n,r,Ve);if(i!==Ve)return i}return $d(t,n,r,o)}function Gd(e,t,n,r,o){let i=$v(n);if(typeof i=="function"){if(!Nd(t,e,r))return r&x.Host?Ud(o,n,r):$d(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&x.Optional))nl(n);else return s}finally{Rd()}}else if(typeof i=="number"){let s=null,a=Hd(e,t),l=on,c=r&x.Host?t[Be][Pe]:null;for((a===-1||r&x.SkipSelf)&&(l=a===-1?pl(e,t):t[a+8],l===on||!Du(r,!1)?a=-1:(s=t[k],a=Vo(l),t=jo(l,t)));a!==-1;){let u=t[k];if(vu(i,a,u.data)){let f=Hv(a,t,n,s,r,c);if(f!==Ve)return f}l=t[a+8],l!==on&&Du(r,t[k].data[a+8]===c)&&vu(i,a,t)?(s=u,a=Vo(l),t=jo(l,t)):a=-1}}return o}function Hv(e,t,n,r,o,i){let s=t[k],a=s.data[e+8],l=r==null?mn(a)&&Ca:r!=s&&(a.type&3)!==0,c=o&x.Host&&i===a,u=Uv(a,s,n,l,c);return u!==null?Ho(t,s,u,a,o):Ve}function Uv(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,l=e.directiveStart,c=e.directiveEnd,u=i>>20,f=r?a:a+u,p=o?a+u:c;for(let d=f;d<p;d++){let h=s[d];if(d<l&&n===h||d>=l&&h.type===n)return d}if(o){let d=s[l];if(d&&Ue(d)&&d.type===n)return l}return null}function Ho(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Vt){let a=i;a.resolving&&Qu(My(s[n]));let l=yu(a.canSeeViewProviders);a.resolving=!0;let c,u=a.injectImpl?Ie(a.injectImpl):null,f=Nd(e,r,x.Default);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&Nv(n,s[n],t)}finally{u!==null&&Ie(u),yu(l),a.resolving=!1,Rd()}}return i}function $v(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(nr)?e[nr]:void 0;return typeof t=="number"?t>=0?t&jd:Wv:t}function vu(e,t,n){let r=1<<e;return!!(n[t+(e>>Bd)]&r)}function Du(e,t){return!(e&x.Self)&&!(e&x.Host&&t)}var Ot=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Wd(this._tNode,this._lView,t,Qo(r),n)}};function Wv(){return new Ot(xe(),B())}function wn(e){return ur(()=>{let t=e.prototype.constructor,n=t[Co]||Ta(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Co]||Ta(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Ta(e){return Zu(e)?()=>{let t=Ta(re(e));return t&&t()}:sn(e)}function Gv(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[b]&2048&&!Po(s);){let a=Gd(i,s,n,r|x.Self,Ve);if(a!==Ve)return a;let l=i.parent;if(!l){let c=s[ud];if(c){let u=c.get(n,Ve,r);if(u!==Ve)return u}l=zd(s),s=s[gn]}i=l}return o}function zd(e){let t=e[k],n=t.type;return n===2?t.declTNode:n===1?e[Pe]:null}function wu(e,t=null,n=null,r){let o=zv(e,t,n,r);return o.resolveInjectorInitializers(),o}function zv(e,t=null,n=null,r,o=new Set){let i=[n||be,Gy(e)];return r=r||(typeof e=="object"?void 0:Ce(e)),new or(i,t||il(),r||null,o)}var dn=class e{static THROW_IF_NOT_FOUND=kt;static NULL=new No;static create(t,n){if(Array.isArray(t))return wu({name:""},n,t,"");{let r=t.name??"";return wu({name:r},t.parent,t.providers,r)}}static \u0275prov=O({token:e,providedIn:"any",factory:()=>T(rd)});static __NG_ELEMENT_ID__=-1};var qv=new w("");qv.__NG_ELEMENT_ID__=e=>{let t=xe();if(t===null)throw new _(204,!1);if(t.type&2)return t.value;if(e&x.Optional)return null;throw new _(204,!1)};var qd=!1,Zd=(()=>{class e{static __NG_ELEMENT_ID__=Zv;static __NG_ENV_ID__=n=>n}return e})(),xa=class extends Zd{_lView;constructor(t){super(),this._lView=t}onDestroy(t){let n=this._lView;return yn(n)?(t(),()=>{}):(Ed(n,t),()=>dv(n,t))}};function Zv(){return new xa(B())}var ar=class{},Kd=new w("",{providedIn:"root",factory:()=>!1});var Yd=new w(""),Jd=new w(""),Bt=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Qn(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=O({token:e,providedIn:"root",factory:()=>new e})}return e})();var Ma=class extends Qe{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,tv()&&(this.destroyRef=S(Zd,{optional:!0})??void 0,this.pendingTasks=S(Bt,{optional:!0})??void 0)}emit(t){let n=N(null);try{super.next(t)}finally{N(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let l=t;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof ne&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},pe=Ma;function Uo(...e){}function Qd(e){let t,n;function r(){e=Uo;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Eu(e){return queueMicrotask(()=>e()),()=>{e=Uo}}var hl="isAngularZone",$o=hl+"_ID",Kv=0,ee=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new pe(!1);onMicrotaskEmpty=new pe(!1);onStable=new pe(!1);onError=new pe(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=qd}=t;if(typeof Zone>"u")throw new _(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Qv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(hl)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new _(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new _(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Yv,Uo,Uo);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Yv={};function gl(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Jv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Qd(()=>{e.callbackScheduled=!1,Na(e),e.isCheckStableRunning=!0,gl(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Na(e)}function Qv(e){let t=()=>{Jv(e)},n=Kv++;e._inner=e._inner.fork({name:"angular",properties:{[hl]:!0,[$o]:n,[$o+n]:!0},onInvokeTask:(r,o,i,s,a,l)=>{if(Xv(l))return r.invokeTask(i,s,a,l);try{return _u(e),r.invokeTask(i,s,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Iu(e)}},onInvoke:(r,o,i,s,a,l,c)=>{try{return _u(e),r.invoke(i,s,a,l,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!eD(l)&&t(),Iu(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Na(e),gl(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Na(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function _u(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Iu(e){e._nesting--,gl(e)}var Aa=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new pe;onMicrotaskEmpty=new pe;onStable=new pe;onError=new pe;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Xv(e){return Xd(e,"__ignore_ng_zone__")}function eD(e){return Xd(e,"__scheduler_tick__")}function Xd(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Xe=class{_console=console;handleError(t){this._console.error("ERROR",t)}},tD=new w("",{providedIn:"root",factory:()=>{let e=S(ee),t=S(Xe);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function nD(){return ii(xe(),B())}function ii(e,t){return new mt(ze(e,t))}var mt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=nD}return e})();function rD(e){return typeof e=="function"&&e[Ae]!==void 0}function pr(e,t){let n=js(e,t?.equal),r=n[Ae];return n.set=o=>Zr(r,o),n.update=o=>Bs(r,o),n.asReadonly=oD.bind(n),n}function oD(){let e=this[Ae];if(e.readonlyFn===void 0){let t=()=>this();t[Ae]=e,e.readonlyFn=t}return e.readonlyFn}function ef(e){return rD(e)&&typeof e.set=="function"}function tf(e){return(e.flags&128)===128}var nf=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(nf||{}),rf=new Map,iD=0;function sD(){return iD++}function aD(e){rf.set(e[ti],e)}function ka(e){rf.delete(e[ti])}var bu="__ngContext__";function hr(e,t){ft(t)?(e[bu]=t[ti],aD(t)):e[bu]=t}function of(e){return af(e[ir])}function sf(e){return af(e[Re])}function af(e){for(;e!==null&&!nt(e);)e=e[Re];return e}var Oa;function lf(e){Oa=e}function lD(){if(Oa!==void 0)return Oa;if(typeof document<"u")return document;throw new _(210,!1)}var ml=new w("",{providedIn:"root",factory:()=>cD}),cD="ng",yl=new w(""),gr=new w("",{providedIn:"platform",factory:()=>"unknown"});var vl=new w("",{providedIn:"root",factory:()=>lD().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var uD="h",dD="b";var cf=!1,fD=new w("",{providedIn:"root",factory:()=>cf});var uf=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(uf||{}),si=new w(""),Cu=new Set;function pD(e){Cu.has(e)||(Cu.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var hD=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=O({token:e,providedIn:"root",factory:()=>new e})}return e})();var gD=(e,t,n,r)=>{};function mD(e,t,n,r){gD(e,t,n,r)}var yD=()=>null;function df(e,t,n=!1){return yD(e,t,n)}function ff(e,t){let n=e.contentQueries;if(n!==null){let r=N(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];Md(i),a.contentQueries(2,t[s],s)}}}finally{N(r)}}}function Ra(e,t,n){Md(0);let r=N(null);try{t(e,n)}finally{N(r)}}function pf(e,t,n){if(fd(t)){let r=N(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let l=n[s];a.contentQueries(1,l,s)}}}finally{N(r)}}}var Ge=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Ge||{});var Fa=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${vy})`}};function vD(e){return e instanceof Fa?e.changingThisBreaksApplicationSecurity:e}function DD(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var hf="ng-template";function wD(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&DD(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(Dl(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function Dl(e){return e.type===4&&e.value!==hf}function ED(e,t,n){let r=e.type===4&&!n?hf:e.value;return t===r}function _D(e,t,n){let r=4,o=e.attrs,i=o!==null?CD(o):0,s=!1;for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="number"){if(!s&&!Oe(r)&&!Oe(l))return!1;if(s&&Oe(l))continue;s=!1,r=l|r&1;continue}if(!s)if(r&4){if(r=2|r&1,l!==""&&!ED(e,l,n)||l===""&&t.length===1){if(Oe(r))return!1;s=!0}}else if(r&8){if(o===null||!wD(e,o,l,n)){if(Oe(r))return!1;s=!0}}else{let c=t[++a],u=ID(l,o,Dl(e),n);if(u===-1){if(Oe(r))return!1;s=!0;continue}if(c!==""){let f;if(u>i?f="":f=o[u+1].toLowerCase(),r&2&&c!==f){if(Oe(r))return!1;s=!0}}}}return Oe(r)||s}function Oe(e){return(e&1)===0}function ID(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return SD(t,e)}function bD(e,t,n=!1){for(let r=0;r<t.length;r++)if(_D(e,t[r],n))return!0;return!1}function CD(e){for(let t=0;t<e.length;t++){let n=e[t];if(Fv(n))return t}return e.length}function SD(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function Su(e,t){return e?":not("+t.trim()+")":t}function TD(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Oe(s)&&(t+=Su(i,o),o=""),r=s,i=i||!Oe(r);n++}return o!==""&&(t+=Su(i,o)),t}function xD(e){return e.map(TD).join(",")}function MD(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!Oe(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var Ht={};function ND(e,t){return e.createText(t)}function AD(e,t,n){e.setValue(t,n)}function gf(e,t,n){return e.createElement(t,n)}function Wo(e,t,n,r,o){e.insertBefore(t,n,r,o)}function mf(e,t,n){e.appendChild(t,n)}function Tu(e,t,n,r,o){r!==null?Wo(e,t,n,r,o):mf(e,t,n)}function kD(e,t,n){e.removeChild(null,t,n)}function OD(e,t,n){e.setAttribute(t,"style",n)}function RD(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function yf(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&Rv(e,t,r),o!==null&&RD(e,t,o),i!==null&&OD(e,t,i)}function wl(e,t,n,r,o,i,s,a,l,c,u){let f=He+r,p=f+o,d=FD(f,p),h=typeof c=="function"?c():c;return d[k]={type:e,blueprint:d,template:n,queries:null,viewQuery:a,declTNode:t,data:d.slice().fill(null,f),bindingStartIndex:f,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:h,incompleteFirstPass:!1,ssrId:u}}function FD(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Ht);return n}function PD(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=wl(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function El(e,t,n,r,o,i,s,a,l,c,u){let f=t.blueprint.slice();return f[tt]=o,f[b]=r|4|128|8|64|1024,(c!==null||e&&e[b]&2048)&&(f[b]|=2048),Dd(f),f[oe]=f[gn]=e,f[he]=n,f[pt]=s||e&&e[pt],f[J]=a||e&&e[J],f[ln]=l||e&&e[ln]||null,f[Pe]=i,f[ti]=sD(),f[Ao]=u,f[ud]=c,f[Be]=t.type==2?e[Be]:f,f}function LD(e,t,n){let r=ze(t,e),o=PD(n),i=e[pt].rendererFactory,s=_l(e,El(e,o,null,vf(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function vf(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Df(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function _l(e,t){return e[ir]?e[fu][Re]=t:e[ir]=t,e[fu]=t,t}function D(e=1){wf(ye(),B(),Dn()+e,!1)}function wf(e,t,n,r){if(!r)if((t[b]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Eo(t,i,n)}else{let i=e.preOrderHooks;i!==null&&_o(t,i,0,n)}Lt(n)}var ai=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(ai||{});function Pa(e,t,n,r){let o=N(null);try{let[i,s,a]=e.inputs[n],l=null;(s&ai.SignalBased)!==0&&(l=t[i][Ae]),l!==null&&l.transformFn!==void 0?r=l.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,l,r,n,i):pd(t,l,i,r)}finally{N(o)}}function Ef(e,t,n,r,o){let i=Dn(),s=r&2;try{Lt(-1),s&&t.length>He&&wf(e,t,He,!1),L(s?2:0,o),n(r,o)}finally{Lt(i),L(s?3:1,o)}}function Il(e,t,n){$D(e,t,n),(n.flags&64)===64&&WD(e,t,n)}function _f(e,t,n=ze){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function VD(e,t,n,r){let i=r.get(fD,cf)||n===Ge.ShadowDom,s=e.selectRootElement(t,i);return jD(s),s}function jD(e){BD(e)}var BD=()=>null;function HD(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function If(e,t,n,r,o,i,s,a){if(!a&&bl(t,e,n,r,o)){mn(t)&&UD(n,t.index);return}if(t.type&3){let l=ze(t,n);r=HD(r),o=s!=null?s(o,t.value||"",r):o,i.setProperty(l,r,o)}else t.type&12}function UD(e,t){let n=We(t,e);n[b]&16||(n[b]|=64)}function $D(e,t,n){let r=n.directiveStart,o=n.directiveEnd;mn(n)&&LD(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Bo(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],l=Ho(t,e,s,n);if(hr(l,t),i!==null&&ZD(t,s-r,l,a,n,i),Ue(a)){let c=We(n.index,t);c[he]=Ho(t,e,s,n)}}}function WD(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Cv();try{Lt(i);for(let a=r;a<o;a++){let l=e.data[a],c=t[a];ba(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&GD(l,c)}}finally{Lt(-1),ba(s)}}function GD(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function bf(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];bD(t,i.selectors,!1)&&(r??=[],Ue(i)?r.unshift(i):r.push(i))}return r}function zD(e,t,n,r,o,i){let s=ze(e,t);qD(t[J],s,i,e.value,n,r,o)}function qD(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?tl(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function ZD(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let l=s[a],c=s[a+1];Pa(r,n,l,c)}}function KD(e,t){let n=e[ln],r=n?n.get(Xe,null):null;r&&r.handleError(t)}function bl(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let l=0;l<s.length;l+=2){let c=s[l],u=s[l+1],f=t.data[c];Pa(f,n[c],u,o),a=!0}if(i)for(let l of i){let c=n[l],u=t.data[l];Pa(u,c,r,o),a=!0}return a}function YD(e,t){let n=We(t,e),r=n[k];JD(r,n);let o=n[tt];o!==null&&n[Ao]===null&&(n[Ao]=df(o,n[ln])),L(18),Cl(r,n,n[he]),L(19,n[he])}function JD(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Cl(e,t,n){ll(t);try{let r=e.viewQuery;r!==null&&Ra(1,r,n);let o=e.template;o!==null&&Ef(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[un]?.finishViewCreation(e),e.staticContentQueries&&ff(e,t),e.staticViewQueries&&Ra(2,e.viewQuery,n);let i=e.components;i!==null&&QD(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[b]&=-5,cl()}}function QD(e,t){for(let n=0;n<t.length;n++)YD(e,t[n])}function XD(e,t,n,r){let o=N(null);try{let i=t.tView,a=e[b]&4096?4096:16,l=El(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),c=e[t.index];l[cn]=c;let u=e[un];return u!==null&&(l[un]=u.createEmbeddedView(i)),Cl(i,l,n),l}finally{N(o)}}function xu(e,t){return!t||t.firstChild===null||tf(e)}var ew;function Sl(e,t){return ew(e,t)}var et=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(et||{});function Cf(e){return(e.flags&32)===32}function rn(e,t,n,r,o){if(r!=null){let i,s=!1;nt(r)?i=r:ft(r)&&(s=!0,r=r[tt]);let a=$e(r);e===0&&n!==null?o==null?mf(t,n,a):Wo(t,n,a,o||null,!0):e===1&&n!==null?Wo(t,n,a,o||null,!0):e===2?kD(t,a,s):e===3&&t.destroyNode(a),i!=null&&fw(t,e,i,n,o)}}function tw(e,t){Sf(e,t),t[tt]=null,t[Pe]=null}function nw(e,t,n,r,o,i){r[tt]=o,r[Pe]=t,li(e,r,n,1,o,i)}function Sf(e,t){t[pt].changeDetectionScheduler?.notify(9),li(e,t,t[J],2,null,null)}function rw(e){let t=e[ir];if(!t)return aa(e[k],e);for(;t;){let n=null;if(ft(t))n=t[ir];else{let r=t[Te];r&&(n=r)}if(!n){for(;t&&!t[Re]&&t!==e;)ft(t)&&aa(t[k],t),t=t[oe];t===null&&(t=e),ft(t)&&aa(t[k],t),n=t&&t[Re]}t=n}}function Tl(e,t){let n=e[Fo],r=n.indexOf(t);n.splice(r,1)}function Tf(e,t){if(yn(t))return;let n=t[J];n.destroyNode&&li(e,t,n,3,null,null),rw(t)}function aa(e,t){if(yn(t))return;let n=N(null);try{t[b]&=-129,t[b]|=256,t[Se]&&Ps(t[Se]),iw(e,t),ow(e,t),t[k].type===1&&t[J].destroy();let r=t[cn];if(r!==null&&nt(t[oe])){r!==t[oe]&&Tl(r,t);let o=t[un];o!==null&&o.detachView(e)}ka(t)}finally{N(n)}}function ow(e,t){let n=e.cleanup,r=t[ko];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[ko]=null);let o=t[dt];if(o!==null){t[dt]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[Oo];if(i!==null){t[Oo]=null;for(let s of i)s.destroy()}}function iw(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof Vt)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],l=i[s+1];L(4,a,l);try{l.call(a)}finally{L(5,a,l)}}else{L(4,o,i);try{i.call(o)}finally{L(5,o,i)}}}}}function sw(e,t,n){return aw(e,t.parent,n)}function aw(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[tt];if(mn(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Ge.None||o===Ge.Emulated)return null}return ze(r,n)}function lw(e,t,n){return uw(e,t,n)}function cw(e,t,n){return e.type&40?ze(e,n):null}var uw=cw,Mu;function xl(e,t,n,r){let o=sw(e,r,t),i=t[J],s=r.parent||t[Pe],a=lw(s,r,t);if(o!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)Tu(i,o,n[l],a,!1);else Tu(i,o,n,a,!1);Mu!==void 0&&Mu(i,r,t,n,o)}function tr(e,t){if(t!==null){let n=t.type;if(n&3)return ze(t,e);if(n&4)return La(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return tr(e,r);{let o=e[t.index];return nt(o)?La(-1,o):$e(o)}}else{if(n&128)return tr(e,t.next);if(n&32)return Sl(t,e)()||$e(e[t.index]);{let r=xf(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Pt(e[Be]);return tr(o,r)}else return tr(e,t.next)}}}return null}function xf(e,t){if(t!==null){let r=e[Be][Pe],o=t.projection;return r.projection[o]}return null}function La(e,t){let n=Te+e+1;if(n<t.length){let r=t[n],o=r[k].firstChild;if(o!==null)return tr(r,o)}return t[Ft]}function Ml(e,t,n,r,o,i,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],l=n.type;if(s&&t===0&&(a&&hr($e(a),r),n.flags|=2),!Cf(n))if(l&8)Ml(e,t,n.child,r,o,i,!1),rn(t,e,o,a,i);else if(l&32){let c=Sl(n,r),u;for(;u=c();)rn(t,e,o,u,i);rn(t,e,o,a,i)}else l&16?dw(e,t,r,n,o,i):rn(t,e,o,a,i);n=s?n.projectionNext:n.next}}function li(e,t,n,r,o,i){Ml(n,r,e.firstChild,t,o,i,!1)}function dw(e,t,n,r,o,i){let s=n[Be],l=s[Pe].projection[r.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++){let u=l[c];rn(t,e,o,u,i)}else{let c=l,u=s[oe];tf(r)&&(c.flags|=128),Ml(e,t,c,u,o,i,!0)}}function fw(e,t,n,r,o){let i=n[Ft],s=$e(n);i!==s&&rn(t,e,r,i,o);for(let a=Te;a<n.length;a++){let l=n[a];li(l[k],l,e,t,r,i)}}function pw(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:et.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=et.Important),e.setStyle(n,r,o,i))}}function Go(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push($e(i)),nt(i)&&hw(i,r);let s=n.type;if(s&8)Go(e,t,n.child,r);else if(s&32){let a=Sl(n,t),l;for(;l=a();)r.push(l)}else if(s&16){let a=xf(t,n);if(Array.isArray(a))r.push(...a);else{let l=Pt(t[Be]);Go(l[k],l,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function hw(e,t){for(let n=Te;n<e.length;n++){let r=e[n],o=r[k].firstChild;o!==null&&Go(r[k],r,o,t)}e[Ft]!==e[tt]&&t.push(e[Ft])}function Mf(e){if(e[oa]!==null){for(let t of e[oa])t.impl.addSequence(t);e[oa].length=0}}var Nf=[];function gw(e){return e[Se]??mw(e)}function mw(e){let t=Nf.pop()??Object.create(vw);return t.lView=e,t}function yw(e){e.lView[Se]!==e&&(e.lView=null,Nf.push(e))}var vw=G(P({},Kn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{ri(e.lView)},consumerOnSignalRead(){this.lView[Se]=this}});function Dw(e){let t=e[Se]??Object.create(ww);return t.lView=e,t}var ww=G(P({},Kn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Pt(e.lView);for(;t&&!Af(t[k]);)t=Pt(t);t&&wd(t)},consumerOnSignalRead(){this.lView[Se]=this}});function Af(e){return e.type!==2}function kf(e){if(e[Oo]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Oo])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[b]&8192)}}var Ew=100;function Of(e,t=!0,n=0){let o=e[pt].rendererFactory,i=!1;i||o.begin?.();try{_w(e,n)}catch(s){throw t&&KD(e,s),s}finally{i||o.end?.()}}function _w(e,t){let n=Td();try{hu(!0),Va(e,t);let r=0;for(;ni(e);){if(r===Ew)throw new _(103,!1);r++,Va(e,1)}}finally{hu(n)}}function Iw(e,t,n,r){if(yn(t))return;let o=t[b],i=!1,s=!1;ll(t);let a=!0,l=null,c=null;i||(Af(e)?(c=gw(t),l=Gr(c)):Ns()===null?(a=!1,c=Dw(t),l=Gr(c)):t[Se]&&(Ps(t[Se]),t[Se]=null));try{Dd(t),Ev(e.bindingStartIndex),n!==null&&Ef(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let d=e.preOrderCheckHooks;d!==null&&Eo(t,d,null)}else{let d=e.preOrderHooks;d!==null&&_o(t,d,0,null),ia(t,0)}if(s||bw(t),kf(t),Rf(t,0),e.contentQueries!==null&&ff(e,t),!i)if(u){let d=e.contentCheckHooks;d!==null&&Eo(t,d)}else{let d=e.contentHooks;d!==null&&_o(t,d,1),ia(t,1)}Sw(e,t);let f=e.components;f!==null&&Pf(t,f,0);let p=e.viewQuery;if(p!==null&&Ra(2,p,r),!i)if(u){let d=e.viewCheckHooks;d!==null&&Eo(t,d)}else{let d=e.viewHooks;d!==null&&_o(t,d,2),ia(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[ra]){for(let d of t[ra])d();t[ra]=null}i||(Mf(t),t[b]&=-73)}catch(u){throw i||ri(t),u}finally{c!==null&&(Rs(c,l),a&&yw(c)),cl()}}function Rf(e,t){for(let n=of(e);n!==null;n=sf(n))for(let r=Te;r<n.length;r++){let o=n[r];Ff(o,t)}}function bw(e){for(let t=of(e);t!==null;t=sf(t)){if(!(t[b]&2))continue;let n=t[Fo];for(let r=0;r<n.length;r++){let o=n[r];wd(o)}}}function Cw(e,t,n){L(18);let r=We(t,e);Ff(r,n),L(19,r[he])}function Ff(e,t){al(e)&&Va(e,t)}function Va(e,t){let r=e[k],o=e[b],i=e[Se],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Fs(i)),s||=!1,i&&(i.dirty=!1),e[b]&=-9217,s)Iw(r,e,r.template,e[he]);else if(o&8192){kf(e),Rf(e,1);let a=r.components;a!==null&&Pf(e,a,1),Mf(e)}}function Pf(e,t,n){for(let r=0;r<t.length;r++)Cw(e,t[r],n)}function Sw(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)Lt(~o);else{let i=o,s=n[++r],a=n[++r];bv(s,i);let l=t[i];L(24,l),a(2,l),L(25,l)}}}finally{Lt(-1)}}function Nl(e,t){let n=Td()?64:1088;for(e[pt].changeDetectionScheduler?.notify(t);e;){e[b]|=n;let r=Pt(e);if(Po(e)&&!r)return e;e=r}return null}function Lf(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Tw(e,t,n,r=!0){let o=t[k];if(xw(o,t,e,n),r){let s=La(n,e),a=t[J],l=a.parentNode(e[Ft]);l!==null&&nw(o,e[Pe],a,t,l,s)}let i=t[Ao];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function ja(e,t){if(e.length<=Te)return;let n=Te+t,r=e[n];if(r){let o=r[cn];o!==null&&o!==e&&Tl(o,r),t>0&&(e[n-1][Re]=r[Re]);let i=xo(e,Te+t);tw(r[k],r);let s=i[un];s!==null&&s.detachView(i[k]),r[oe]=null,r[Re]=null,r[b]&=-129}return r}function xw(e,t,n,r){let o=Te+r,i=n.length;r>0&&(n[o-1][Re]=t),r<i-Te?(t[Re]=n[o],nd(n,Te+r,t)):(n.push(t),t[Re]=null),t[oe]=n;let s=t[cn];s!==null&&n!==s&&Vf(s,t);let a=t[un];a!==null&&a.insertView(e),_a(t),t[b]|=128}function Vf(e,t){let n=e[Fo],r=t[oe];if(ft(r))e[b]|=2;else{let o=r[oe][Be];t[Be]!==o&&(e[b]|=2)}n===null?e[Fo]=[t]:n.push(t)}var lr=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let t=this._lView,n=t[k];return Go(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r}get context(){return this._lView[he]}set context(t){this._lView[he]=t}get destroyed(){return yn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[oe];if(nt(t)){let n=t[Ro],r=n?n.indexOf(this):-1;r>-1&&(ja(t,r),xo(n,r))}this._attachedToViewContainer=!1}Tf(this._lView[k],this._lView)}onDestroy(t){Ed(this._lView,t)}markForCheck(){Nl(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[b]&=-129}reattach(){_a(this._lView),this._lView[b]|=128}detectChanges(){this._lView[b]|=1024,Of(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new _(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Po(this._lView),n=this._lView[cn];n!==null&&!t&&Tl(n,this._lView),Sf(this._lView[k],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new _(902,!1);this._appRef=t;let n=Po(this._lView),r=this._lView[cn];r!==null&&!n&&Vf(r,this._lView),_a(this._lView)}};var ci=(()=>{class e{static __NG_ELEMENT_ID__=Aw}return e})(),Mw=ci,Nw=class extends Mw{_declarationLView;_declarationTContainer;elementRef;constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=XD(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new lr(o)}};function Aw(){return kw(xe(),B())}function kw(e,t){return e.type&4?new Nw(t,e,ii(e,t)):null}function Al(e,t,n,r,o){let i=e.data[t];if(i===null)i=Ow(e,t,n,r,o),Iv()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=vv();i.injectorIndex=s===null?-1:s.injectorIndex}return fr(i,!0),i}function Ow(e,t,n,r,o){let i=Cd(),s=Sd(),a=s?i:i&&i.parent,l=e.data[t]=Fw(e,a,n,t,r,o);return Rw(e,l,i,s),l}function Rw(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function Fw(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return gv()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var fO=new RegExp(`^(\\d+)*(${dD}|${uD})*(.*)`);var Pw=()=>null;function Nu(e,t){return Pw(e,t)}var Lw=class{},jf=class{},Ba=class{resolveComponentFactory(t){throw Error(`No component factory found for ${Ce(t)}.`)}},kl=class{static NULL=new Ba},fn=class{},Ut=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>Vw()}return e})();function Vw(){let e=B(),t=xe(),n=We(t.index,e);return(ft(n)?n:e)[J]}var jw=(()=>{class e{static \u0275prov=O({token:e,providedIn:"root",factory:()=>null})}return e})();var la={},Ha=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Qo(r);let o=this.injector.get(t,la,r);return o!==la||n===la?o:this.parentInjector.get(t,n,r)}};function Au(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=iu(o,a);else if(i==2){let l=a,c=t[++s];r=iu(r,l+": "+c+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function E(e,t=x.Default){let n=B();if(n===null)return T(e,t);let r=xe();return Wd(r,n,re(e),t)}function Bf(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a,l=null,c=null,u=Hw(s);u===null?a=s:[a,l,c]=u,Ww(e,t,n,a,i,l,c)}i!==null&&r!==null&&Bw(n,r,i)}function Bw(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new _(-301,!1);r.push(t[o],i)}}function Hw(e){let t=null,n=!1;for(let s=0;s<e.length;s++){let a=e[s];if(s===0&&Ue(a)&&(t=a),a.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,o=null,i=null;for(let s of e)s.findHostDirectiveDefs!==null&&(r??=[],o??=new Map,i??=new Map,Uw(s,r,i,o)),s===t&&(r??=[],r.push(s));return r!==null?(r.push(...t===null?e:e.slice(1)),[r,o,i]):null}function Uw(e,t,n,r){let o=t.length;e.findHostDirectiveDefs(e,t,r),n.set(e,[o,t.length-1])}function $w(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function Ww(e,t,n,r,o,i,s){let a=r.length,l=!1;for(let p=0;p<a;p++){let d=r[p];!l&&Ue(d)&&(l=!0,$w(e,n,p)),Sa(Bo(n,t),e,d.type)}Yw(n,e.data.length,a);for(let p=0;p<a;p++){let d=r[p];d.providersResolver&&d.providersResolver(d)}let c=!1,u=!1,f=Df(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let d=r[p];if(n.mergedAttrs=sr(n.mergedAttrs,d.hostAttrs),zw(e,n,t,f,d),Kw(f,d,o),s!==null&&s.has(d)){let[g,v]=s.get(d);n.directiveToIndex.set(d.type,[f,g+n.directiveStart,v+n.directiveStart])}else(i===null||!i.has(d))&&n.directiveToIndex.set(d.type,f);d.contentQueries!==null&&(n.flags|=4),(d.hostBindings!==null||d.hostAttrs!==null||d.hostVars!==0)&&(n.flags|=64);let h=d.type.prototype;!c&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),c=!0),!u&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),u=!0),f++}Gw(e,n,i)}function Gw(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))ku(0,t,o,r),ku(1,t,o,r),Ru(t,r,!1);else{let i=n.get(o);Ou(0,t,i,r),Ou(1,t,i,r),Ru(t,r,!0)}}}function ku(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Hf(t,i)}}function Ou(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Hf(t,s)}}function Hf(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Ru(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Dl(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let l=r[a];if(l===0){a+=4;continue}else if(l===5){a+=2;continue}else if(typeof l=="number")break;if(!n&&o.hasOwnProperty(l)){let c=o[l];for(let u of c)if(u===t){s??=[],s.push(l,r[a+1]);break}}else if(n&&i.hasOwnProperty(l)){let c=i[l];for(let u=0;u<c.length;u+=2)if(c[u]===t){s??=[],s.push(c[u+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function zw(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=sn(o.type,!0)),s=new Vt(i,Ue(o),E);e.blueprint[r]=s,n[r]=s,qw(e,t,r,Df(e,n,o.hostVars,Ht),o)}function qw(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;Zw(s)!=a&&s.push(a),s.push(n,r,i)}}function Zw(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Kw(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Ue(t)&&(n[""]=e)}}function Yw(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Uf(e,t,n,r,o,i,s,a){let l=t.consts,c=Lo(l,s),u=Al(t,e,2,r,c);return i&&Bf(t,n,u,Lo(l,a),o),u.mergedAttrs=sr(u.mergedAttrs,u.attrs),u.attrs!==null&&Au(u,u.attrs,!1),u.mergedAttrs!==null&&Au(u,u.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,u),u}function $f(e,t){Pd(e,t),fd(t)&&e.queries.elementEnd(t)}var Ua=class extends kl{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=rr(t);return new zo(n,this.ngModule)}};function Jw(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&ai.SignalBased)!==0};return o&&(i.transform=o),i})}function Qw(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function Xw(e,t,n){let r=t instanceof je?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Ha(n,r):n}function eE(e){let t=e.get(fn,null);if(t===null)throw new _(407,!1);let n=e.get(jw,null),r=e.get(ar,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function tE(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return gf(t,n,n==="svg"?sv:n==="math"?av:null)}var zo=class extends jf{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=Jw(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=Qw(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=xD(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o){L(22);let i=N(null);try{let s=this.componentDef,a=r?["ng-version","19.2.12"]:MD(this.componentDef.selectors[0]),l=wl(0,null,null,1,0,null,null,null,null,[a],null),c=Xw(s,o||this.ngModule,t),u=eE(c),f=u.rendererFactory.createRenderer(null,s),p=r?VD(f,r,s.encapsulation,c):tE(s,f),d=El(null,l,null,512|vf(s),null,null,u,f,c,null,df(p,c,!0));d[He]=p,ll(d);let h=null;try{let g=Uf(He,l,d,"#host",()=>[this.componentDef],!0,0);p&&(yf(f,p,g),hr(p,d)),Il(l,d,g),pf(l,g,d),$f(l,g),n!==void 0&&nE(g,this.ngContentSelectors,n),h=We(g.index,d),d[he]=h[he],Cl(l,d,null)}catch(g){throw h!==null&&ka(h),ka(d),g}finally{L(23),cl()}return new $a(this.componentType,d)}finally{N(i)}}},$a=class extends Lw{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n){super(),this._rootLView=n,this._tNode=vd(n[k],He),this.location=ii(this._tNode,n),this.instance=We(this._tNode.index,n)[he],this.hostView=this.changeDetectorRef=new lr(n,void 0,!1),this.componentType=t}setInput(t,n){let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=bl(r,o[k],o,t,n);this.previousInputValues.set(t,n);let s=We(r.index,o);Nl(s,1)}get injector(){return new Ot(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function nE(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var ui=(()=>{class e{static __NG_ELEMENT_ID__=rE}return e})();function rE(){let e=xe();return iE(e,B())}var oE=ui,Wf=class extends oE{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return ii(this._hostTNode,this._hostLView)}get injector(){return new Ot(this._hostTNode,this._hostLView)}get parentInjector(){let t=pl(this._hostTNode,this._hostLView);if(Vd(t)){let n=jo(t,this._hostLView),r=Vo(t),o=n[k].data[r+8];return new Ot(o,n)}else return new Ot(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Fu(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-Te}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Nu(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,xu(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!nv(t),a;if(s)a=n;else{let h=n||{};a=h.index,r=h.injector,o=h.projectableNodes,i=h.environmentInjector||h.ngModuleRef}let l=s?t:new zo(rr(t)),c=r||this.parentInjector;if(!i&&l.ngModule==null){let g=(s?c:this.parentInjector).get(je,null);g&&(i=g)}let u=rr(l.componentType??{}),f=Nu(this._lContainer,u?.id??null),p=f?.firstChild??null,d=l.create(c,o,p,i);return this.insertImpl(d.hostView,a,xu(this._hostTNode,f)),d}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(cv(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let l=o[oe],c=new Wf(l,l[Pe],l[oe]);c.detach(c.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Tw(s,o,i,r),t.attachToViewContainerRef(),nd(ca(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Fu(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=ja(this._lContainer,n);r&&(xo(ca(this._lContainer),n),Tf(r[k],r))}detach(t){let n=this._adjustIndex(t,-1),r=ja(this._lContainer,n);return r&&xo(ca(this._lContainer),n)!=null?new lr(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Fu(e){return e[Ro]}function ca(e){return e[Ro]||(e[Ro]=[])}function iE(e,t){let n,r=t[e.index];return nt(r)?n=r:(n=Lf(r,t,null,e),t[e.index]=n,_l(t,n)),aE(n,t,e,r),new Wf(n,e,t)}function sE(e,t){let n=e[J],r=n.createComment(""),o=ze(t,e),i=n.parentNode(o);return Wo(n,i,r,n.nextSibling(o),!1),r}var aE=uE,lE=()=>!1;function cE(e,t,n){return lE(e,t,n)}function uE(e,t,n,r){if(e[Ft])return;let o;n.type&8?o=$e(r):o=sE(t,n),e[Ft]=o}var qo=class{};var Zo=class extends qo{injector;componentFactoryResolver=new Ua(this);instance=null;constructor(t){super();let n=new or([...t.providers,{provide:qo,useValue:this},{provide:kl,useValue:this.componentFactoryResolver}],t.parent||il(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function dE(e,t,n=null){return new Zo({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var fE=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=sd(!1,n.type),o=r.length>0?dE([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=O({token:e,providedIn:"environment",factory:()=>new e(T(je))})}return e})();function di(e){return ur(()=>{let t=Gf(e),n=G(P({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===nf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(fE).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ge.Emulated,styles:e.styles||be,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&pD("NgStandalone"),zf(n);let r=e.dependencies;return n.directiveDefs=Pu(r,!1),n.pipeDefs=Pu(r,!0),n.id=yE(n),n})}function pE(e){return rr(e)||$y(e)}function hE(e){return e!==null}function yt(e){return ur(()=>({type:e.type,bootstrap:e.bootstrap||be,declarations:e.declarations||be,imports:e.imports||be,exports:e.exports||be,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function gE(e,t){if(e==null)return Rt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,l;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,l=o[3]||null):(i=o,s=o,a=ai.None,l=null),n[i]=[r,a,l],t[i]=s}return n}function mE(e){if(e==null)return Rt;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function q(e){return ur(()=>{let t=Gf(e);return zf(t),t})}function Gf(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Rt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||be,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:gE(e.inputs,t),outputs:mE(e.outputs),debugInfo:null}}function zf(e){e.features?.forEach(t=>t(e))}function Pu(e,t){if(!e)return null;let n=t?Wy:pE;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(hE)}function yE(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function vE(e){return Object.getPrototypeOf(e.prototype).constructor}function ve(e){let t=vE(e.type),n=!0,r=[e];for(;t;){let o;if(Ue(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new _(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=ua(e.inputs),s.declaredInputs=ua(e.declaredInputs),s.outputs=ua(e.outputs);let a=o.hostBindings;a&&IE(e,a);let l=o.viewQuery,c=o.contentQueries;if(l&&EE(e,l),c&&_E(e,c),DE(e,o),_y(e.outputs,o.outputs),Ue(o)&&o.data.animation){let u=e.data;u.animation=(u.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(e),a===ve&&(n=!1)}}t=Object.getPrototypeOf(t)}wE(r)}function DE(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function wE(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=sr(o.hostAttrs,n=sr(n,o.hostAttrs))}}function ua(e){return e===Rt?{}:e===be?[]:e}function EE(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function _E(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function IE(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function qf(e){return CE(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function bE(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value)}}function CE(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function Zf(e,t,n){return e[t]=n}function ht(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function SE(e,t,n,r){let o=ht(e,t,n);return ht(e,t+1,r)||o}function TE(e,t,n,r,o,i,s,a,l){let c=t.consts,u=Al(t,e,4,s||null,a||null);bd()&&Bf(t,n,u,Lo(c,l),bf),u.mergedAttrs=sr(u.mergedAttrs,u.attrs),Pd(t,u);let f=u.tView=wl(2,u,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,u),f.queries=t.queries.embeddedTView(u)),u}function xE(e,t,n,r,o,i,s,a,l,c){let u=n+He,f=t.firstCreatePass?TE(u,t,e,r,o,i,s,a,l):t.data[u];fr(f,!1);let p=ME(t,e,f,n);dl()&&xl(t,e,p,f),hr(p,e);let d=Lf(p,e,p,f);return e[u]=d,_l(e,d),cE(d,f,e),sl(f)&&Il(t,e,f),l!=null&&_f(e,f,c),f}function ie(e,t,n,r,o,i,s,a){let l=B(),c=ye(),u=Lo(c.consts,i);return xE(l,c,e,t,n,r,o,u,s,a),ie}var ME=NE;function NE(e,t,n,r){return fl(!0),t[J].createComment("")}var Kf=new w("");var AE=(()=>{class e{static \u0275prov=O({token:e,providedIn:"root",factory:()=>new Wa})}return e})(),Wa=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),this.queuedEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}};function mr(e){return!!e&&typeof e.then=="function"}function Yf(e){return!!e&&typeof e.subscribe=="function"}var kE=new w("");var Jf=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=S(kE,{optional:!0})??[];injector=S(dn);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=ei(this.injector,o);if(mr(i))n.push(i);else if(Yf(i)){let s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),OE=new w("");function RE(){Vs(()=>{throw new _(600,!1)})}function FE(e){return e.isBoundToModule}var PE=10;var pn=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=S(tD);afterRenderManager=S(hD);zonelessEnabled=S(Kd);rootEffectScheduler=S(AE);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Qe;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=S(Bt).hasPendingTasks.pipe(fe(n=>!n));constructor(){S(si,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=S(je);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=dn.NULL){L(10);let i=n instanceof jf;if(!this._injector.get(Jf).done){let d="";throw new _(405,d)}let a;i?a=n:a=this._injector.get(kl).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let l=FE(a)?void 0:this._injector.get(qo),c=r||a.selector,u=a.create(o,[],c,l),f=u.location.nativeElement,p=u.injector.get(Kf,null);return p?.registerApplication(f),u.onDestroy(()=>{this.detachView(u.hostView),Io(this.components,u),p?.unregisterApplication(f)}),this._loadComponent(u),L(11,u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){L(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(uf.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new _(101,!1);let n=N(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,N(n),this.afterTick.next(),L(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(fn,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<PE;)L(14),this.synchronizeOnce(),L(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:o}of this.allViews)LE(r,o,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>ni(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Io(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(OE,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Io(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new _(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Io(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function LE(e,t,n,r){if(!n&&!ni(e))return;Of(e,t,n&&!r?0:1)}function Ol(e,t,n,r){let o=B(),i=oi();if(ht(o,i,t)){let s=ye(),a=ul();zD(a,o,e,t,n,r)}return Ol}function VE(e,t,n,r){return ht(e,oi(),n)?t+tl(n)+r:Ht}function Do(e,t){return e<<17|t<<2}function jt(e){return e>>17&32767}function jE(e){return(e&2)==2}function BE(e,t){return e&131071|t<<17}function Ga(e){return e|2}function hn(e){return(e&131068)>>2}function da(e,t){return e&-131069|t<<2}function HE(e){return(e&1)===1}function za(e){return e|1}function UE(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=jt(s),l=hn(s);e[r]=n;let c=!1,u;if(Array.isArray(n)){let f=n;u=f[1],(u===null||dr(f,u)>0)&&(c=!0)}else u=n;if(o)if(l!==0){let p=jt(e[a+1]);e[r+1]=Do(p,a),p!==0&&(e[p+1]=da(e[p+1],r)),e[a+1]=BE(e[a+1],r)}else e[r+1]=Do(a,0),a!==0&&(e[a+1]=da(e[a+1],r)),a=r;else e[r+1]=Do(l,0),a===0?a=r:e[l+1]=da(e[l+1],r),l=r;c&&(e[r+1]=Ga(e[r+1])),Lu(e,u,r,!0),Lu(e,u,r,!1),$E(t,u,e,r,i),s=Do(a,l),i?t.classBindings=s:t.styleBindings=s}function $E(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&dr(i,t)>=0&&(n[r+1]=za(n[r+1]))}function Lu(e,t,n,r){let o=e[n+1],i=t===null,s=r?jt(o):hn(o),a=!1;for(;s!==0&&(a===!1||i);){let l=e[s],c=e[s+1];WE(l,t)&&(a=!0,e[s+1]=r?za(c):Ga(c)),s=r?jt(c):hn(c)}a&&(e[n+1]=r?Ga(o):za(o))}function WE(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?dr(e,t)>=0:!1}function C(e,t,n){let r=B(),o=oi();if(ht(r,o,t)){let i=ye(),s=ul();If(i,s,r,e,t,r[J],n,!1)}return C}function Vu(e,t,n,r,o){bl(t,e,n,o?"class":"style",r)}function fi(e,t){return GE(e,t,null,!0),fi}function GE(e,t,n,r){let o=B(),i=ye(),s=_v(2);if(i.firstUpdatePass&&qE(i,e,s,r),t!==Ht&&ht(o,s,t)){let a=i.data[Dn()];QE(i,a,o,o[J],e,o[s+1]=XE(t,n),r,s)}}function zE(e,t){return t>=e.expandoStartIndex}function qE(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Dn()],s=zE(e,n);e_(i,r)&&t===null&&!s&&(t=!1),t=ZE(o,i,t,r),UE(o,i,t,n,s,r)}}function ZE(e,t,n,r){let o=Sv(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=fa(null,e,t,n,r),n=cr(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=fa(o,e,t,n,r),i===null){let l=KE(e,t,r);l!==void 0&&Array.isArray(l)&&(l=fa(null,e,t,l[1],r),l=cr(l,t.attrs,r),YE(e,t,r,l))}else i=JE(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function KE(e,t,n){let r=n?t.classBindings:t.styleBindings;if(hn(r)!==0)return e[jt(r)]}function YE(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[jt(o)]=r}function JE(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=cr(r,s,n)}return cr(r,t.attrs,n)}function fa(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=cr(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function cr(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Hy(e,s,n?!0:t[++i]))}return e===void 0?null:e}function QE(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let l=e.data,c=l[a+1],u=HE(c)?ju(l,t,n,o,hn(c),s):void 0;if(!Ko(u)){Ko(i)||jE(c)&&(i=ju(l,null,n,o,a,s));let f=yd(Dn(),n);pw(r,s,f,o,i)}}function ju(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let l=e[o],c=Array.isArray(l),u=c?l[1]:l,f=u===null,p=n[o+1];p===Ht&&(p=f?be:void 0);let d=f?ta(p,r):u===r?p:void 0;if(c&&!Ko(d)&&(d=ta(l,r)),Ko(d)&&(a=d,s))return a;let h=e[o+1];o=s?jt(h):hn(h)}if(t!==null){let l=i?t.residualClasses:t.residualStyles;l!=null&&(a=ta(l,r))}return a}function Ko(e){return e!==void 0}function XE(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Ce(vD(e)))),e}function e_(e,t){return(e.flags&(t?8:16))!==0}function y(e,t,n,r){let o=B(),i=ye(),s=He+e,a=o[J],l=i.firstCreatePass?Uf(s,i,o,t,bf,bd(),n,r):i.data[s],c=t_(i,o,l,a,t,e);o[s]=c;let u=sl(l);return fr(l,!0),yf(a,c,l),!Cf(l)&&dl()&&xl(i,o,c,l),(fv()===0||u)&&hr(c,o),pv(),u&&(Il(i,o,l),pf(i,l,o)),r!==null&&_f(o,l),y}function m(){let e=xe();Sd()?Dv():(e=e.parent,fr(e,!1));let t=e;mv(t)&&yv(),hv();let n=ye();return n.firstCreatePass&&$f(n,t),t.classesWithoutHost!=null&&kv(t)&&Vu(n,t,B(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Ov(t)&&Vu(n,t,B(),t.stylesWithoutHost,!1),m}function te(e,t,n,r){return y(e,t,n,r),m(),te}var t_=(e,t,n,r,o,i)=>(fl(!0),gf(r,o,Mv()));function Me(){return B()}var Yo="en-US";var n_=Yo;function r_(e){typeof e=="string"&&(n_=e.toLowerCase().replace(/_/g,"-"))}function Bu(e,t,n){return function r(o){if(o===Function)return n;let i=mn(e)?We(e.index,t):t;Nl(i,5);let s=t[he],a=Hu(t,s,n,o),l=r.__ngNextListenerFn__;for(;l;)a=Hu(t,s,l,o)&&a,l=l.__ngNextListenerFn__;return a}}function Hu(e,t,n,r){let o=N(null);try{return L(6,t,n),n(r)!==!1}catch(i){return o_(e,i),!1}finally{L(7,t,n),N(o)}}function o_(e,t){let n=e[ln],r=n?n.get(Xe,null):null;r&&r.handleError(t)}function Uu(e,t,n,r,o,i){let s=t[n],a=t[k],c=a.data[n].outputs[r],u=s[c],f=a.firstCreatePass?Id(a):null,p=_d(t),d=u.subscribe(i),h=p.length;p.push(i,d),f&&f.push(o,e.index,h,-(h+1))}function z(e,t,n,r){let o=B(),i=ye(),s=xe();return Qf(i,o,o[J],s,e,t,r),z}function i_(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[ko],l=o[i+2];return a.length>l?a[l]:null}typeof s=="string"&&(i+=2)}return null}function Qf(e,t,n,r,o,i,s){let a=sl(r),c=e.firstCreatePass?Id(e):null,u=_d(t),f=!0;if(r.type&3||s){let p=ze(r,t),d=s?s(p):p,h=u.length,g=s?I=>s($e(I[r.index])):r.index,v=null;if(!s&&a&&(v=i_(e,t,o,r.index)),v!==null){let I=v.__ngLastListenerFn__||v;I.__ngNextListenerFn__=i,v.__ngLastListenerFn__=i,f=!1}else{i=Bu(r,t,i),mD(t,d,o,i);let I=n.listen(d,o,i);u.push(i,I),c&&c.push(o,g,h,h+1)}}else i=Bu(r,t,i);if(f){let p=r.outputs?.[o],d=r.hostDirectiveOutputs?.[o];if(d&&d.length)for(let h=0;h<d.length;h+=2){let g=d[h],v=d[h+1];Uu(r,t,g,v,o,i)}if(p&&p.length)for(let h of p)Uu(r,t,h,o,o,i)}}function F(e=1){return xv(e)}function Xf(e){let t=wv();return lv(t,He+e)}function R(e,t=""){let n=B(),r=ye(),o=e+He,i=r.firstCreatePass?Al(r,o,1,t,null):r.data[o],s=s_(r,n,i,t,e);n[o]=s,dl()&&xl(r,n,s,i),fr(i,!1)}var s_=(e,t,n,r,o)=>(fl(!0),ND(t[J],r));function qe(e){return En("",e,""),qe}function En(e,t,n){let r=B(),o=VE(r,e,t,n);return o!==Ht&&a_(r,Dn(),o),En}function a_(e,t,n){let r=yd(t,e);AD(e[J],r,n)}function De(e,t,n){ef(t)&&(t=t());let r=B(),o=oi();if(ht(r,o,t)){let i=ye(),s=ul();If(i,s,r,e,t,r[J],n,!1)}return De}function Ne(e,t){let n=ef(e);return n&&e.set(t),n}function we(e,t){let n=B(),r=ye(),o=xe();return Qf(r,n,n[J],o,e,t),we}function l_(e,t,n){let r=ye();if(r.firstCreatePass){let o=Ue(e);qa(n,r.data,r.blueprint,o,!0),qa(t,r.data,r.blueprint,o,!1)}}function qa(e,t,n,r,o){if(e=re(e),Array.isArray(e))for(let i=0;i<e.length;i++)qa(e[i],t,n,r,o);else{let i=ye(),s=B(),a=xe(),l=an(e)?e:re(e.provide),c=cd(e),u=a.providerIndexes&1048575,f=a.directiveStart,p=a.providerIndexes>>20;if(an(e)||!e.multi){let d=new Vt(c,o,E),h=ha(l,t,o?u:u+p,f);h===-1?(Sa(Bo(a,s),i,l),pa(i,e,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(d),s.push(d)):(n[h]=d,s[h]=d)}else{let d=ha(l,t,u+p,f),h=ha(l,t,u,u+p),g=d>=0&&n[d],v=h>=0&&n[h];if(o&&!v||!o&&!g){Sa(Bo(a,s),i,l);let I=d_(o?u_:c_,n.length,o,r,c);!o&&v&&(n[h].providerFactory=I),pa(i,e,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(I),s.push(I)}else{let I=ep(n[o?h:d],c,!o&&r);pa(i,e,d>-1?d:h,I)}!o&&r&&v&&n[h].componentProviders++}}}function pa(e,t,n,r){let o=an(t),i=Ky(t);if(o||i){let l=(i?re(t.useClass):t).prototype.ngOnDestroy;if(l){let c=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let u=c.indexOf(n);u===-1?c.push(n,[r,l]):c[u+1].push(r,l)}else c.push(n,l)}}}function ep(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function ha(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function c_(e,t,n,r,o){return Za(this.multi,[])}function u_(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,l=Ho(r,r[k],this.providerFactory.index,o);s=l.slice(0,a),Za(i,s);for(let c=a;c<l.length;c++)s.push(l[c])}else s=[],Za(i,s);return s}function Za(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function d_(e,t,n,r,o){let i=new Vt(e,n,E);return i.multi=[],i.index=t,i.componentProviders=0,ep(i,o,r&&!n),i}function rt(e,t=[]){return n=>{n.providersResolver=(r,o)=>l_(r,o?o(e):e,t)}}function yr(e,t,n,r){return f_(B(),xd(),e,t,n,r)}function _n(e,t,n,r,o){return p_(B(),xd(),e,t,n,r,o)}function tp(e,t){let n=e[t];return n===Ht?void 0:n}function f_(e,t,n,r,o,i){let s=t+n;return ht(e,s,o)?Zf(e,s+1,i?r.call(i,o):r(o)):tp(e,s+1)}function p_(e,t,n,r,o,i,s){let a=t+n;return SE(e,a,o,i)?Zf(e,a+2,s?r.call(s,o,i):r(o,i)):tp(e,a+2)}var h_=(()=>{class e{zone=S(ee);changeDetectionScheduler=S(ar);applicationRef=S(pn);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function g_({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new ee(G(P({},m_()),{scheduleInRootZone:n})),[{provide:ee,useFactory:e},{provide:Mo,multi:!0,useFactory:()=>{let r=S(h_,{optional:!0});return()=>r.initialize()}},{provide:Mo,multi:!0,useFactory:()=>{let r=S(y_);return()=>{r.initialize()}}},t===!0?{provide:Yd,useValue:!0}:[],{provide:Jd,useValue:n??qd}]}function m_(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var y_=(()=>{class e{subscription=new ne;initialized=!1;zone=S(ee);pendingTasks=S(Bt);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ee.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ee.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var v_=(()=>{class e{appRef=S(pn);taskService=S(Bt);ngZone=S(ee);zonelessEnabled=S(Kd);tracing=S(si,{optional:!0});disableScheduling=S(Yd,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ne;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get($o):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(S(Jd,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Aa||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?Eu:Qd;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get($o+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Eu(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function D_(){return typeof $localize<"u"&&$localize.locale||Yo}var Rl=new w("",{providedIn:"root",factory:()=>S(Rl,x.Optional|x.SkipSelf)||D_()});var Ka=new w(""),w_=new w("");function Xn(e){return!e.moduleRef}function E_(e){let t=Xn(e)?e.r3Injector:e.moduleRef.injector,n=t.get(ee);return n.run(()=>{Xn(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Xe,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Xn(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Ka);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Ka);s.add(i),e.moduleRef.onDestroy(()=>{Io(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return I_(r,n,()=>{let i=t.get(Jf);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(Rl,Yo);if(r_(s||Yo),!t.get(w_,!0))return Xn(e)?t.get(pn):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Xn(e)){let l=t.get(pn);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return __(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function __(e,t){let n=e.injector.get(pn);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new _(-403,!1);t.push(e)}function I_(e,t,n){try{let r=n();return mr(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var bo=null;function b_(e=[],t){return dn.create({name:t,providers:[{provide:Xo,useValue:"platform"},{provide:Ka,useValue:new Set([()=>bo=null])},...e]})}function C_(e=[]){if(bo)return bo;let t=b_(e);return bo=t,RE(),S_(t),t}function S_(e){let t=e.get(yl,null);ei(e,()=>{t?.forEach(n=>n())})}var vr=(()=>{class e{static __NG_ELEMENT_ID__=T_}return e})();function T_(e){return x_(xe(),B(),(e&16)===16)}function x_(e,t,n){if(mn(e)&&!n){let r=We(e.index,t);return new lr(r,r)}else if(e.type&175){let r=t[Be];return new lr(r,t)}return null}var Ya=class{constructor(){}supports(t){return qf(t)}create(t){return new Ja(t)}},M_=(e,t)=>t,Ja=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||M_}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<$u(r,o,i)?n:r,a=$u(s,o,i),l=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let c=a-o,u=l-o;if(c!=u){for(let p=0;p<c;p++){let d=p<i.length?i[p]:i[p]=0,h=d+p;u<=h&&h<c&&(i[p]=d+1)}let f=s.previousIndex;i[f]=u-c}}a!==l&&t(s,a,l)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n)}diff(t){if(t==null&&(t=[]),!qf(t))throw new _(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next}else o=0,bE(t,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new Qa(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new Jo),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Jo),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Qa=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,n){this.item=t,this.trackById=n}},Xa=class{_head=null;_tail=null;add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Jo=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Xa,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function $u(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}function Wu(){return new Fl([new Ya])}var Fl=(()=>{class e{factories;static \u0275prov=O({token:e,providedIn:"root",factory:Wu});constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Wu()),deps:[[e,new jy,new Vy]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new _(901,!1)}}return e})();function np(e){L(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=C_(r),i=[g_({}),{provide:ar,useExisting:v_},...n||[]],s=new Zo({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return E_({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}finally{L(9)}}function Pl(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function ot(e){return Us(e)}function Dr(e,t){return Ls(e,t?.equal)}var Gu=class{[Ae];constructor(t){this[Ae]=t}destroy(){this[Ae].destroy()}};var ge=new w("");var rp=null;function vt(){return rp}function Ll(e){rp??=e}var wr=class{};var Vl=/\s+/,op=[],Er=(()=>{class e{_ngEl;_renderer;initialClasses=op;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r}set klass(n){this.initialClasses=n!=null?n.trim().split(Vl):op}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Vl):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(Vl).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(r){return new(r||e)(E(mt),E(Ut))};static \u0275dir=q({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();var pi=class{$implicit;ngForOf;index;count;constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},In=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new pi(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),ip(a,o)}});for(let o=0,i=r.length;o<i;o++){let a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{let i=r.get(o.currentIndex);ip(i,o)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(E(ui),E(ci),E(Fl))};static \u0275dir=q({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function ip(e,t){e.context.$implicit=t.item}var _r=(()=>{class e{_viewContainer;_context=new hi;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(n,r){this._viewContainer=n,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){sp(n,!1),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){sp(n,!1),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(E(ui),E(ci))};static \u0275dir=q({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),hi=class{$implicit=null;ngIf=null};function sp(e,t){if(e&&!e.createEmbeddedView)throw new _(2020,!1)}var bn=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=yt({type:e});static \u0275inj=gt({})}return e})();function Ir(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var jl="browser",ap="server";function gi(e){return e===ap}var $t=class{};var N_=typeof global=="object"&&global&&global.Object===Object&&global,mi=N_;var A_=typeof self=="object"&&self&&self.Object===Object&&self,k_=mi||A_||Function("return this")(),Z=k_;var O_=Z.Symbol,se=O_;var cp=Object.prototype,R_=cp.hasOwnProperty,F_=cp.toString,br=se?se.toStringTag:void 0;function P_(e){var t=R_.call(e,br),n=e[br];try{e[br]=void 0;var r=!0}catch{}var o=F_.call(e);return r&&(t?e[br]=n:delete e[br]),o}var up=P_;var L_=Object.prototype,V_=L_.toString;function j_(e){return V_.call(e)}var dp=j_;var B_="[object Null]",H_="[object Undefined]",fp=se?se.toStringTag:void 0;function U_(e){return e==null?e===void 0?H_:B_:fp&&fp in Object(e)?up(e):dp(e)}var Le=U_;function $_(e){return e!=null&&typeof e=="object"}var ae=$_;var W_="[object Symbol]";function G_(e){return typeof e=="symbol"||ae(e)&&Le(e)==W_}var Dt=G_;function z_(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var pp=z_;var q_=Array.isArray,Q=q_;var Z_=1/0,hp=se?se.prototype:void 0,gp=hp?hp.toString:void 0;function mp(e){if(typeof e=="string")return e;if(Q(e))return pp(e,mp)+"";if(Dt(e))return gp?gp.call(e):"";var t=e+"";return t=="0"&&1/e==-Z_?"-0":t}var yp=mp;var K_=/\s/;function Y_(e){for(var t=e.length;t--&&K_.test(e.charAt(t)););return t}var vp=Y_;var J_=/^\s+/;function Q_(e){return e&&e.slice(0,vp(e)+1).replace(J_,"")}var Dp=Q_;function X_(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var le=X_;var wp=NaN,eI=/^[-+]0x[0-9a-f]+$/i,tI=/^0b[01]+$/i,nI=/^0o[0-7]+$/i,rI=parseInt;function oI(e){if(typeof e=="number")return e;if(Dt(e))return wp;if(le(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=le(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Dp(e);var n=tI.test(e);return n||nI.test(e)?rI(e.slice(2),n?2:8):eI.test(e)?wp:+e}var Ep=oI;var _p=1/0,iI=17976931348623157e292;function sI(e){if(!e)return e===0?e:0;if(e=Ep(e),e===_p||e===-_p){var t=e<0?-1:1;return t*iI}return e===e?e:0}var Ip=sI;function aI(e){var t=Ip(e),n=t%1;return t===t?n?t-n:t:0}var bp=aI;function lI(e){return e}var Cp=lI;var cI="[object AsyncFunction]",uI="[object Function]",dI="[object GeneratorFunction]",fI="[object Proxy]";function pI(e){if(!le(e))return!1;var t=Le(e);return t==uI||t==dI||t==cI||t==fI}var yi=pI;var hI=Z["__core-js_shared__"],vi=hI;var Sp=function(){var e=/[^.]+$/.exec(vi&&vi.keys&&vi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function gI(e){return!!Sp&&Sp in e}var Tp=gI;var mI=Function.prototype,yI=mI.toString;function vI(e){if(e!=null){try{return yI.call(e)}catch{}try{return e+""}catch{}}return""}var it=vI;var DI=/[\\^$.*+?()[\]{}|]/g,wI=/^\[object .+?Constructor\]$/,EI=Function.prototype,_I=Object.prototype,II=EI.toString,bI=_I.hasOwnProperty,CI=RegExp("^"+II.call(bI).replace(DI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function SI(e){if(!le(e)||Tp(e))return!1;var t=yi(e)?CI:wI;return t.test(it(e))}var xp=SI;function TI(e,t){return e?.[t]}var Mp=TI;function xI(e,t){var n=Mp(e,t);return xp(n)?n:void 0}var me=xI;var MI=me(Z,"WeakMap"),Di=MI;var Np=Object.create,NI=function(){function e(){}return function(t){if(!le(t))return{};if(Np)return Np(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Ap=NI;function AI(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var kp=AI;var kI=function(){try{var e=me(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Bl=kI;function OI(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Op=OI;function RI(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}var Rp=RI;var FI=9007199254740991,PI=/^(?:0|[1-9]\d*)$/;function LI(e,t){var n=typeof e;return t=t??FI,!!t&&(n=="number"||n!="symbol"&&PI.test(e))&&e>-1&&e%1==0&&e<t}var wi=LI;function VI(e,t,n){t=="__proto__"&&Bl?Bl(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Ei=VI;function jI(e,t){return e===t||e!==e&&t!==t}var Cn=jI;var BI=Object.prototype,HI=BI.hasOwnProperty;function UI(e,t,n){var r=e[t];(!(HI.call(e,t)&&Cn(r,n))||n===void 0&&!(t in e))&&Ei(e,t,n)}var _i=UI;function $I(e,t,n,r){var o=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],l=r?r(n[a],e[a],a,n,e):void 0;l===void 0&&(l=e[a]),o?Ei(n,a,l):_i(n,a,l)}return n}var wt=$I;var WI=9007199254740991;function GI(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=WI}var Sn=GI;function zI(e){return e!=null&&Sn(e.length)&&!yi(e)}var Tn=zI;var qI=Object.prototype;function ZI(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||qI;return e===n}var xn=ZI;function KI(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Fp=KI;var YI="[object Arguments]";function JI(e){return ae(e)&&Le(e)==YI}var Hl=JI;var Pp=Object.prototype,QI=Pp.hasOwnProperty,XI=Pp.propertyIsEnumerable,eb=Hl(function(){return arguments}())?Hl:function(e){return ae(e)&&QI.call(e,"callee")&&!XI.call(e,"callee")},Ii=eb;function tb(){return!1}var Lp=tb;var Bp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Vp=Bp&&typeof module=="object"&&module&&!module.nodeType&&module,nb=Vp&&Vp.exports===Bp,jp=nb?Z.Buffer:void 0,rb=jp?jp.isBuffer:void 0,ob=rb||Lp,Wt=ob;var ib="[object Arguments]",sb="[object Array]",ab="[object Boolean]",lb="[object Date]",cb="[object Error]",ub="[object Function]",db="[object Map]",fb="[object Number]",pb="[object Object]",hb="[object RegExp]",gb="[object Set]",mb="[object String]",yb="[object WeakMap]",vb="[object ArrayBuffer]",Db="[object DataView]",wb="[object Float32Array]",Eb="[object Float64Array]",_b="[object Int8Array]",Ib="[object Int16Array]",bb="[object Int32Array]",Cb="[object Uint8Array]",Sb="[object Uint8ClampedArray]",Tb="[object Uint16Array]",xb="[object Uint32Array]",$={};$[wb]=$[Eb]=$[_b]=$[Ib]=$[bb]=$[Cb]=$[Sb]=$[Tb]=$[xb]=!0;$[ib]=$[sb]=$[vb]=$[ab]=$[Db]=$[lb]=$[cb]=$[ub]=$[db]=$[fb]=$[pb]=$[hb]=$[gb]=$[mb]=$[yb]=!1;function Mb(e){return ae(e)&&Sn(e.length)&&!!$[Le(e)]}var Hp=Mb;function Nb(e){return function(t){return e(t)}}var Mn=Nb;var Up=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Cr=Up&&typeof module=="object"&&module&&!module.nodeType&&module,Ab=Cr&&Cr.exports===Up,Ul=Ab&&mi.process,kb=function(){try{var e=Cr&&Cr.require&&Cr.require("util").types;return e||Ul&&Ul.binding&&Ul.binding("util")}catch{}}(),st=kb;var $p=st&&st.isTypedArray,Ob=$p?Mn($p):Hp,bi=Ob;var Rb=Object.prototype,Fb=Rb.hasOwnProperty;function Pb(e,t){var n=Q(e),r=!n&&Ii(e),o=!n&&!r&&Wt(e),i=!n&&!r&&!o&&bi(e),s=n||r||o||i,a=s?Fp(e.length,String):[],l=a.length;for(var c in e)(t||Fb.call(e,c))&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||wi(c,l)))&&a.push(c);return a}var Ci=Pb;function Lb(e,t){return function(n){return e(t(n))}}var Si=Lb;var Vb=Si(Object.keys,Object),Wp=Vb;var jb=Object.prototype,Bb=jb.hasOwnProperty;function Hb(e){if(!xn(e))return Wp(e);var t=[];for(var n in Object(e))Bb.call(e,n)&&n!="constructor"&&t.push(n);return t}var Gp=Hb;function Ub(e){return Tn(e)?Ci(e):Gp(e)}var Ke=Ub;function $b(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var zp=$b;var Wb=Object.prototype,Gb=Wb.hasOwnProperty;function zb(e){if(!le(e))return zp(e);var t=xn(e),n=[];for(var r in e)r=="constructor"&&(t||!Gb.call(e,r))||n.push(r);return n}var qp=zb;function qb(e){return Tn(e)?Ci(e,!0):qp(e)}var Nn=qb;var Zb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Kb=/^\w*$/;function Yb(e,t){if(Q(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Dt(e)?!0:Kb.test(e)||!Zb.test(e)||t!=null&&e in Object(t)}var An=Yb;var Jb=me(Object,"create"),at=Jb;function Qb(){this.__data__=at?at(null):{},this.size=0}var Zp=Qb;function Xb(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Kp=Xb;var eC="__lodash_hash_undefined__",tC=Object.prototype,nC=tC.hasOwnProperty;function rC(e){var t=this.__data__;if(at){var n=t[e];return n===eC?void 0:n}return nC.call(t,e)?t[e]:void 0}var Yp=rC;var oC=Object.prototype,iC=oC.hasOwnProperty;function sC(e){var t=this.__data__;return at?t[e]!==void 0:iC.call(t,e)}var Jp=sC;var aC="__lodash_hash_undefined__";function lC(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=at&&t===void 0?aC:t,this}var Qp=lC;function kn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}kn.prototype.clear=Zp;kn.prototype.delete=Kp;kn.prototype.get=Yp;kn.prototype.has=Jp;kn.prototype.set=Qp;var $l=kn;function cC(){this.__data__=[],this.size=0}var Xp=cC;function uC(e,t){for(var n=e.length;n--;)if(Cn(e[n][0],t))return n;return-1}var Et=uC;var dC=Array.prototype,fC=dC.splice;function pC(e){var t=this.__data__,n=Et(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():fC.call(t,n,1),--this.size,!0}var eh=pC;function hC(e){var t=this.__data__,n=Et(t,e);return n<0?void 0:t[n][1]}var th=hC;function gC(e){return Et(this.__data__,e)>-1}var nh=gC;function mC(e,t){var n=this.__data__,r=Et(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var rh=mC;function On(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}On.prototype.clear=Xp;On.prototype.delete=eh;On.prototype.get=th;On.prototype.has=nh;On.prototype.set=rh;var _t=On;var yC=me(Z,"Map"),It=yC;function vC(){this.size=0,this.__data__={hash:new $l,map:new(It||_t),string:new $l}}var oh=vC;function DC(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var ih=DC;function wC(e,t){var n=e.__data__;return ih(t)?n[typeof t=="string"?"string":"hash"]:n.map}var bt=wC;function EC(e){var t=bt(this,e).delete(e);return this.size-=t?1:0,t}var sh=EC;function _C(e){return bt(this,e).get(e)}var ah=_C;function IC(e){return bt(this,e).has(e)}var lh=IC;function bC(e,t){var n=bt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var ch=bC;function Rn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Rn.prototype.clear=oh;Rn.prototype.delete=sh;Rn.prototype.get=ah;Rn.prototype.has=lh;Rn.prototype.set=ch;var Gt=Rn;var CC="Expected a function";function Wl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(CC);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(Wl.Cache||Gt),n}Wl.Cache=Gt;var uh=Wl;var SC=500;function TC(e){var t=uh(e,function(r){return n.size===SC&&n.clear(),r}),n=t.cache;return t}var dh=TC;var xC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,MC=/\\(\\)?/g,NC=dh(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(xC,function(n,r,o,i){t.push(o?i.replace(MC,"$1"):r||n)}),t}),fh=NC;function AC(e){return e==null?"":yp(e)}var ph=AC;function kC(e,t){return Q(e)?e:An(e,t)?[e]:fh(ph(e))}var Ti=kC;var OC=1/0;function RC(e){if(typeof e=="string"||Dt(e))return e;var t=e+"";return t=="0"&&1/e==-OC?"-0":t}var Ct=RC;function FC(e,t){t=Ti(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Ct(t[n++])];return n&&n==r?e:void 0}var xi=FC;function PC(e,t,n){var r=e==null?void 0:xi(e,t);return r===void 0?n:r}var hh=PC;function LC(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Mi=LC;var VC=Si(Object.getPrototypeOf,Object),Ni=VC;function jC(){this.__data__=new _t,this.size=0}var gh=jC;function BC(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var mh=BC;function HC(e){return this.__data__.get(e)}var yh=HC;function UC(e){return this.__data__.has(e)}var vh=UC;var $C=200;function WC(e,t){var n=this.__data__;if(n instanceof _t){var r=n.__data__;if(!It||r.length<$C-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Gt(r)}return n.set(e,t),this.size=n.size,this}var Dh=WC;function Fn(e){var t=this.__data__=new _t(e);this.size=t.size}Fn.prototype.clear=gh;Fn.prototype.delete=mh;Fn.prototype.get=yh;Fn.prototype.has=vh;Fn.prototype.set=Dh;var St=Fn;function GC(e,t){return e&&wt(t,Ke(t),e)}var wh=GC;function zC(e,t){return e&&wt(t,Nn(t),e)}var Eh=zC;var Ch=typeof exports=="object"&&exports&&!exports.nodeType&&exports,_h=Ch&&typeof module=="object"&&module&&!module.nodeType&&module,qC=_h&&_h.exports===Ch,Ih=qC?Z.Buffer:void 0,bh=Ih?Ih.allocUnsafe:void 0;function ZC(e,t){if(t)return e.slice();var n=e.length,r=bh?bh(n):new e.constructor(n);return e.copy(r),r}var Sh=ZC;function KC(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}var Th=KC;function YC(){return[]}var Ai=YC;var JC=Object.prototype,QC=JC.propertyIsEnumerable,xh=Object.getOwnPropertySymbols,XC=xh?function(e){return e==null?[]:(e=Object(e),Th(xh(e),function(t){return QC.call(e,t)}))}:Ai,Pn=XC;function eS(e,t){return wt(e,Pn(e),t)}var Mh=eS;var tS=Object.getOwnPropertySymbols,nS=tS?function(e){for(var t=[];e;)Mi(t,Pn(e)),e=Ni(e);return t}:Ai,ki=nS;function rS(e,t){return wt(e,ki(e),t)}var Nh=rS;function oS(e,t,n){var r=t(e);return Q(e)?r:Mi(r,n(e))}var Oi=oS;function iS(e){return Oi(e,Ke,Pn)}var Sr=iS;function sS(e){return Oi(e,Nn,ki)}var Ah=sS;var aS=me(Z,"DataView"),Ri=aS;var lS=me(Z,"Promise"),Fi=lS;var cS=me(Z,"Set"),Pi=cS;var kh="[object Map]",uS="[object Object]",Oh="[object Promise]",Rh="[object Set]",Fh="[object WeakMap]",Ph="[object DataView]",dS=it(Ri),fS=it(It),pS=it(Fi),hS=it(Pi),gS=it(Di),zt=Le;(Ri&&zt(new Ri(new ArrayBuffer(1)))!=Ph||It&&zt(new It)!=kh||Fi&&zt(Fi.resolve())!=Oh||Pi&&zt(new Pi)!=Rh||Di&&zt(new Di)!=Fh)&&(zt=function(e){var t=Le(e),n=t==uS?e.constructor:void 0,r=n?it(n):"";if(r)switch(r){case dS:return Ph;case fS:return kh;case pS:return Oh;case hS:return Rh;case gS:return Fh}return t});var lt=zt;var mS=Object.prototype,yS=mS.hasOwnProperty;function vS(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&yS.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Lh=vS;var DS=Z.Uint8Array,Ln=DS;function wS(e){var t=new e.constructor(e.byteLength);return new Ln(t).set(new Ln(e)),t}var Vn=wS;function ES(e,t){var n=t?Vn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Vh=ES;var _S=/\w*$/;function IS(e){var t=new e.constructor(e.source,_S.exec(e));return t.lastIndex=e.lastIndex,t}var jh=IS;var Bh=se?se.prototype:void 0,Hh=Bh?Bh.valueOf:void 0;function bS(e){return Hh?Object(Hh.call(e)):{}}var Uh=bS;function CS(e,t){var n=t?Vn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var $h=CS;var SS="[object Boolean]",TS="[object Date]",xS="[object Map]",MS="[object Number]",NS="[object RegExp]",AS="[object Set]",kS="[object String]",OS="[object Symbol]",RS="[object ArrayBuffer]",FS="[object DataView]",PS="[object Float32Array]",LS="[object Float64Array]",VS="[object Int8Array]",jS="[object Int16Array]",BS="[object Int32Array]",HS="[object Uint8Array]",US="[object Uint8ClampedArray]",$S="[object Uint16Array]",WS="[object Uint32Array]";function GS(e,t,n){var r=e.constructor;switch(t){case RS:return Vn(e);case SS:case TS:return new r(+e);case FS:return Vh(e,n);case PS:case LS:case VS:case jS:case BS:case HS:case US:case $S:case WS:return $h(e,n);case xS:return new r;case MS:case kS:return new r(e);case NS:return jh(e);case AS:return new r;case OS:return Uh(e)}}var Wh=GS;function zS(e){return typeof e.constructor=="function"&&!xn(e)?Ap(Ni(e)):{}}var Gh=zS;var qS="[object Map]";function ZS(e){return ae(e)&<(e)==qS}var zh=ZS;var qh=st&&st.isMap,KS=qh?Mn(qh):zh,Zh=KS;var YS="[object Set]";function JS(e){return ae(e)&<(e)==YS}var Kh=JS;var Yh=st&&st.isSet,QS=Yh?Mn(Yh):Kh,Jh=QS;var XS=1,e0=2,t0=4,Qh="[object Arguments]",n0="[object Array]",r0="[object Boolean]",o0="[object Date]",i0="[object Error]",Xh="[object Function]",s0="[object GeneratorFunction]",a0="[object Map]",l0="[object Number]",eg="[object Object]",c0="[object RegExp]",u0="[object Set]",d0="[object String]",f0="[object Symbol]",p0="[object WeakMap]",h0="[object ArrayBuffer]",g0="[object DataView]",m0="[object Float32Array]",y0="[object Float64Array]",v0="[object Int8Array]",D0="[object Int16Array]",w0="[object Int32Array]",E0="[object Uint8Array]",_0="[object Uint8ClampedArray]",I0="[object Uint16Array]",b0="[object Uint32Array]",V={};V[Qh]=V[n0]=V[h0]=V[g0]=V[r0]=V[o0]=V[m0]=V[y0]=V[v0]=V[D0]=V[w0]=V[a0]=V[l0]=V[eg]=V[c0]=V[u0]=V[d0]=V[f0]=V[E0]=V[_0]=V[I0]=V[b0]=!0;V[i0]=V[Xh]=V[p0]=!1;function Li(e,t,n,r,o,i){var s,a=t&XS,l=t&e0,c=t&t0;if(n&&(s=o?n(e,r,o,i):n(e)),s!==void 0)return s;if(!le(e))return e;var u=Q(e);if(u){if(s=Lh(e),!a)return kp(e,s)}else{var f=lt(e),p=f==Xh||f==s0;if(Wt(e))return Sh(e,a);if(f==eg||f==Qh||p&&!o){if(s=l||p?{}:Gh(e),!a)return l?Nh(e,Eh(s,e)):Mh(e,wh(s,e))}else{if(!V[f])return o?e:{};s=Wh(e,f,a)}}i||(i=new St);var d=i.get(e);if(d)return d;i.set(e,s),Jh(e)?e.forEach(function(v){s.add(Li(v,t,n,v,e,i))}):Zh(e)&&e.forEach(function(v,I){s.set(I,Li(v,t,n,I,e,i))});var h=c?l?Ah:Sr:l?Nn:Ke,g=u?void 0:h(e);return Op(g||e,function(v,I){g&&(I=v,v=e[I]),_i(s,I,Li(v,t,n,I,e,i))}),s}var tg=Li;var C0=1,S0=4;function T0(e){return tg(e,C0|S0)}var Gl=T0;var x0="__lodash_hash_undefined__";function M0(e){return this.__data__.set(e,x0),this}var ng=M0;function N0(e){return this.__data__.has(e)}var rg=N0;function Vi(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Gt;++t<n;)this.add(e[t])}Vi.prototype.add=Vi.prototype.push=ng;Vi.prototype.has=rg;var og=Vi;function A0(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var ig=A0;function k0(e,t){return e.has(t)}var sg=k0;var O0=1,R0=2;function F0(e,t,n,r,o,i){var s=n&O0,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var f=-1,p=!0,d=n&R0?new og:void 0;for(i.set(e,t),i.set(t,e);++f<a;){var h=e[f],g=t[f];if(r)var v=s?r(g,h,f,t,e,i):r(h,g,f,e,t,i);if(v!==void 0){if(v)continue;p=!1;break}if(d){if(!ig(t,function(I,Ee){if(!sg(d,Ee)&&(h===I||o(h,I,n,r,i)))return d.push(Ee)})){p=!1;break}}else if(!(h===g||o(h,g,n,r,i))){p=!1;break}}return i.delete(e),i.delete(t),p}var ji=F0;function P0(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}var ag=P0;function L0(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var lg=L0;var V0=1,j0=2,B0="[object Boolean]",H0="[object Date]",U0="[object Error]",$0="[object Map]",W0="[object Number]",G0="[object RegExp]",z0="[object Set]",q0="[object String]",Z0="[object Symbol]",K0="[object ArrayBuffer]",Y0="[object DataView]",cg=se?se.prototype:void 0,zl=cg?cg.valueOf:void 0;function J0(e,t,n,r,o,i,s){switch(n){case Y0:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case K0:return!(e.byteLength!=t.byteLength||!i(new Ln(e),new Ln(t)));case B0:case H0:case W0:return Cn(+e,+t);case U0:return e.name==t.name&&e.message==t.message;case G0:case q0:return e==t+"";case $0:var a=ag;case z0:var l=r&V0;if(a||(a=lg),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=j0,s.set(e,t);var u=ji(a(e),a(t),r,o,i,s);return s.delete(e),u;case Z0:if(zl)return zl.call(e)==zl.call(t)}return!1}var ug=J0;var Q0=1,X0=Object.prototype,eT=X0.hasOwnProperty;function tT(e,t,n,r,o,i){var s=n&Q0,a=Sr(e),l=a.length,c=Sr(t),u=c.length;if(l!=u&&!s)return!1;for(var f=l;f--;){var p=a[f];if(!(s?p in t:eT.call(t,p)))return!1}var d=i.get(e),h=i.get(t);if(d&&h)return d==t&&h==e;var g=!0;i.set(e,t),i.set(t,e);for(var v=s;++f<l;){p=a[f];var I=e[p],Ee=t[p];if(r)var K=s?r(Ee,I,p,t,e,i):r(I,Ee,p,e,t,i);if(!(K===void 0?I===Ee||o(I,Ee,n,r,i):K)){g=!1;break}v||(v=p=="constructor")}if(g&&!v){var ut=e.constructor,Yt=t.constructor;ut!=Yt&&"constructor"in e&&"constructor"in t&&!(typeof ut=="function"&&ut instanceof ut&&typeof Yt=="function"&&Yt instanceof Yt)&&(g=!1)}return i.delete(e),i.delete(t),g}var dg=tT;var nT=1,fg="[object Arguments]",pg="[object Array]",Bi="[object Object]",rT=Object.prototype,hg=rT.hasOwnProperty;function oT(e,t,n,r,o,i){var s=Q(e),a=Q(t),l=s?pg:lt(e),c=a?pg:lt(t);l=l==fg?Bi:l,c=c==fg?Bi:c;var u=l==Bi,f=c==Bi,p=l==c;if(p&&Wt(e)){if(!Wt(t))return!1;s=!0,u=!1}if(p&&!u)return i||(i=new St),s||bi(e)?ji(e,t,n,r,o,i):ug(e,t,l,n,r,o,i);if(!(n&nT)){var d=u&&hg.call(e,"__wrapped__"),h=f&&hg.call(t,"__wrapped__");if(d||h){var g=d?e.value():e,v=h?t.value():t;return i||(i=new St),o(g,v,n,r,i)}}return p?(i||(i=new St),dg(e,t,n,r,o,i)):!1}var gg=oT;function mg(e,t,n,r,o){return e===t?!0:e==null||t==null||!ae(e)&&!ae(t)?e!==e&&t!==t:gg(e,t,n,r,mg,o)}var Hi=mg;var iT=1,sT=2;function aT(e,t,n,r){var o=n.length,i=o,s=!r;if(e==null)return!i;for(e=Object(e);o--;){var a=n[o];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){a=n[o];var l=a[0],c=e[l],u=a[1];if(s&&a[2]){if(c===void 0&&!(l in e))return!1}else{var f=new St;if(r)var p=r(c,u,l,e,t,f);if(!(p===void 0?Hi(u,c,iT|sT,r,f):p))return!1}}return!0}var yg=aT;function lT(e){return e===e&&!le(e)}var Ui=lT;function cT(e){for(var t=Ke(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ui(o)]}return t}var vg=cT;function uT(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var $i=uT;function dT(e){var t=vg(e);return t.length==1&&t[0][2]?$i(t[0][0],t[0][1]):function(n){return n===e||yg(n,e,t)}}var Dg=dT;function fT(e,t){return e!=null&&t in Object(e)}var wg=fT;function pT(e,t,n){t=Ti(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var s=Ct(t[r]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&Sn(o)&&wi(s,o)&&(Q(e)||Ii(e)))}var Eg=pT;function hT(e,t){return e!=null&&Eg(e,t,wg)}var _g=hT;var gT=1,mT=2;function yT(e,t){return An(e)&&Ui(t)?$i(Ct(e),t):function(n){var r=hh(n,e);return r===void 0&&r===t?_g(n,e):Hi(t,r,gT|mT)}}var Ig=yT;function vT(e){return function(t){return t?.[e]}}var bg=vT;function DT(e){return function(t){return xi(t,e)}}var Cg=DT;function wT(e){return An(e)?bg(Ct(e)):Cg(e)}var Sg=wT;function ET(e){return typeof e=="function"?e:e==null?Cp:typeof e=="object"?Q(e)?Ig(e[0],e[1]):Dg(e):Sg(e)}var Wi=ET;function _T(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var ql=_T;function IT(e){return function(t,n,r){var o=Object(t);if(!Tn(t)){var i=Wi(n,3);t=Ke(t),n=function(a){return i(o[a],a,o)}}var s=e(t,n,r);return s>-1?o[i?t[s]:s]:void 0}}var Tg=IT;var bT=Math.max;function CT(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:bp(n);return o<0&&(o=bT(r+o,0)),Rp(e,Wi(t,3),o)}var xg=CT;var ST=Tg(xg),Zl=ST;function TT(e){return e&&e.length?e[0]:void 0}var Gi=TT;var X={mreServiceBase:"https://test.kc-np.o360.cloud/Handlers/saml2.ashx",mreBaseUrl:"https://www.medicalreferenceengine.com/mre/",tokenServer:"/Token/token/",url:"/",appName:"kcApp",secret:""};var Mg=[{name:"aa_togglePhysicianPaymentType (Dev Only)",sdkVisible:!1,example:""},{name:"aa_LoadPhyNpiTaxonomy (Dev Only)",sdkVisible:!1,example:""},{name:"aa_SetEgpSortRules (Dev Only)",sdkVisible:!1,example:{includePriority:"",includeSeverity:"",includeMortality:"",includeElixhauser:"",includeHcc:"",includeRa:"",includePxPriority:""}},{name:"aa_CreateAgpInput (Dev Only)",sdkVisible:!1,example:""},{name:"acsuCloneDischargeDisposition (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuGetFacilitiesByIds (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuGetFacilitiesByUsernames (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuMergeMultiRegion (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuSaveDischargeDisposition (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuSaveWebstratUser (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"addGhostRows (Dev Only)",sdkVisible:!1,example:{includeAdmitTypeAndAdmissionSource:!1}},{name:"addRemCodes (Dev Only)",sdkVisible:!1,example:{diagnosisCodes:[{code:"B700",codeType:"REMD",label:"short label",longLabel:"Long label"}],hcpcsCodes:[{code:"12001",codeType:"REMH",label:"short label",longLabel:"Long label",units:"1",modifier1:"26",modifier2:null,modifier3:null,modifier4:null,modifier5:null}]}},{name:"swapActiveAndGhostRows (Dev Only)",sdkVisible:!1,example:""},{name:"recordMode (Dev Only)",sdkVisible:!1,example:""},{name:"addCodes",sdkVisible:!0,example:{codes:[{code:"B700",codeType:"I10CM",dxIndic1:"N"},{code:"X2C1361",codeType:"ICD10PCS",date:"2024-03-21T20:01:28.953Z"}],editedcode:null,codeSource:"encoder",documentHighlight:!0}},{name:"deleteCodes",sdkVisible:!0,example:{codes:[{uniqueId:"uniqueIdgoeshere",codeType:"I10CM"}]}},{name:"defaultSettings",sdkVisible:!1,example:""},{name:"getInputPatientClaim",sdkVisible:!1,example:""},{name:"getPayerList",sdkVisible:!0,example:{sendingFacility:"001",npi:null,payer:null,taxonomy:null,paymentType:"01"}},{name:"getPatientRecord",sdkVisible:!1,example:""},{name:"getPatientRecord-truncated",sdkVisible:!1,example:""},{name:"getOptimizerInput",sdkVisible:!1,example:""},{name:"cacAuthenticateUser (Dev Only)",sdkVisible:!1,example:{user:"UserName",pw:"EncryptedPW",isForLogin:!0}},{name:"cacChangePwd (Dev Only)",sdkVisible:!1,example:{user:"UserName",currentPw:"EncryptedPw",newPw:"EncryptedPw"}},{name:"cacGetGroups (Dev Only)",sdkVisible:!1,example:""},{name:"cacResetPwd (Dev Only)",sdkVisible:!1,example:{user:"UserName",newPw:"EncryptedPw"}},{name:"cacGetUserInfo (Dev Only)",sdkVisible:!1,example:{user:"UserName"}},{name:"cacUpdateLastLoginTime (Dev Only)",sdkVisible:!1,example:{user:12345}},{name:"callClaimsManager (Dev Only)",sdkVisible:!1,example:""},{name:"clearCache (Dev Only)",sdkVisible:!1,example:""},{name:"closeAllKCWindows",sdkVisible:!1,example:""},{name:"closeAllKCWindowsExceptEncoder",sdkVisible:!0,example:""},{name:"clearSelectedRow",sdkVisible:!0,example:""},{name:"clearPatientRecord",sdkVisible:!0,example:""},{name:"clearHighlight",sdkVisible:!1,example:""},{name:"editsCount",sdkVisible:!1,example:""},{name:"enableEncoder",sdkVisible:!1,example:""},{name:"disableEncoder",sdkVisible:!1,example:""},{name:"disableChildWindows",sdkVisible:!1,example:""},{name:"enableChildWindows",sdkVisible:!1,example:""},{name:"launchCodeSummaryReport",sdkVisible:!0,example:""},{name:"launchEdits",sdkVisible:!0,example:""},{name:"launchIndex",sdkVisible:!0,example:{codeType:"I10CM",phrase:"ANGINA"}},{name:"launchLogic",sdkVisible:!0,example:{codeType:"I10CM",phrase:"ANGINA"}},{name:"launchTabular",sdkVisible:!0,example:{codeType:"I10CM",code:"A000"}},{name:"launchFacilityLookup",sdkVisible:!0,example:{paymentType:"01",rateFilePath:"C:\\inetpub\\wwwroot\\HSS\\Data\\allpaykc"}},{name:"loadNotes",sdkVisible:!1,example:{AccessType:"All",codeType:"I10CM",NoteType:"Code",Identifier:"",IdentifierSearchLower:"",IdentifierSearchUpper:"",Category:"",Ids:{User:"",Facility:"",Organization:""},AllFacilities:!0}},{name:"loadOrganizationSettings",sdkVisible:!1,example:""},{name:"loadPatientRecord",sdkVisible:!0,example:""},{name:"openEncoder",sdkVisible:!0,example:""},{name:"potentialImpactDisplay (Dev Only)",sdkVisible:!1,example:""},{name:"potentialImpactClear",sdkVisible:!1,example:""},{name:"potentialImpactDisable",sdkVisible:!1,example:""},{name:"potentialImpactEnable",sdkVisible:!1,example:""},{name:"potentialImpactEnableEgp",sdkVisible:!1,example:{enabled:!1}},{name:"potentialImpactInitialize",sdkVisible:!1,example:""},{name:"resetApplication",sdkVisible:!0,example:""},{name:"savePatientRecord",sdkVisible:!0,example:""},{name:"selectRowOnHighlightClick",sdkVisible:!1,example:{uniqueId:"uniqueIdGoesHere"}},{name:"setAuthToken",sdkVisible:!1,example:""},{name:"toggleEgpCompression",sdkVisible:!1,example:{enableCompression:!1}},{name:"setChargeCapture",sdkVisible:!0,example:[{cptCode:"G0382",modifiers:"77,GA,PO",revCode:"450",startDate:"2025-2-11",units:1,codeRange:"99281-99285,99291-99292,G0380-G0384"},{cptCode:"96365",modifiers:"59,XE,XS,XU",revCode:"450",startDate:"Tue Feb 11 2025 13:25:46 GMT-0500 (Eastern Standard Time)",units:56,codeRange:"96360-96361,96365-96368,96372,96374-96376"},{cptCode:"99221",modifiers:"IN,IP,IR,IS,IX",revCode:"760",startDate:"2025-02-11T00:00:00.000Z",units:9999,codeRange:"99221-99223,99231-99233,99234-99236, 99238-99239,G0378 \u2013 G0379"}]},{name:"showCurrentConfig (Dev Only)",sdkVisible:!1,example:""},{name:"updateAbstractInfo",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"HCPCS",abstractInfo:"A"}]},{name:"updateBaseUrl",sdkVisible:!1,example:""},{name:"updateCodes",sdkVisible:!0,example:[{uniqueId:"uniqueIdGoesHere",codeType:"I10CM",dxIndic1:"Y"},{uniqueId:"uniqueIdGoesHere",codeType:"ICD10PCS",date:"2024-03-21T20:01:28.953Z",selectedProvider:"freeFormProvider"},{uniqueId:"uniqueIdGoesHere",codeType:"HCPCS",date:"2024-03-21T20:01:28.953Z",selectedProvider:"freeFormProvider",revCode:"0250",units:"1",modifier1:{value:"23"},i10Reimbursement:{charges:"$1,000.00"},i9Reimbursement:{charges:"$1,000.00"}}]},{name:"updateComments",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"I10CM",comments:"C"}]},{name:"updateDemographics",sdkVisible:!0,example:""},{name:"updateDocumentCount",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"I10CM",documentCount:"3"}]},{name:"updateExcludeFromBilling",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"HCPCS",excludeFromBilling:"X"}]},{name:"updateRedFlag",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"I10CM",redFlag:"F"}]},{name:"hasCriticalEdits",sdkVisible:!0,example:""},{name:"hasEdits",sdkVisible:!0,example:""},{name:"ReloadMainPod",sdkVisible:!1,example:""},{name:"ReloadCodeSummary",sdkVisible:!1,example:""},{name:"ReloadDemographics",sdkVisible:!1,example:""},{name:"ReloadEdits",sdkVisible:!1,example:""},{name:"ReloadReimbursement",sdkVisible:!1,example:""},{name:"logout",sdkVisible:!0,example:""},{name:"getRowSpecificInfo",sdkVisible:!0,example:["uniqueId1GoesHere","uniqueId2GoesHere"]},{name:"isEditGroupPriceInProgress",sdkVisible:!1,example:""},{name:"addCodesNoEdit",sdkVisible:!1,example:{codes:[{code:"B700",codeType:"I10CM",dxIndic1:"N"},{code:"X2C1361",codeType:"ICD10PCS",date:"2024-03-21T20:01:28.953Z"}]}},{name:"setQueryImpactVisibility",sdkVisible:!1,example:{isVisible:!0}},{name:"setSyncVisibility",sdkVisible:!1,example:{isVisible:!0}},{name:"showScratchCodeState",sdkVisible:!1,example:{isVisible:!0}},{name:"showQueryHistoryState",sdkVisible:!1,example:{isVisible:!0}},{name:"showQueryHistoryBtn",sdkVisible:!1,example:{isVisible:!0}},{name:"updateCptWithRange",sdkVisible:!1,example:{codes:[{code:"",units:""}],emCodeRanges:[{from:"",to:""}]}},{name:"launchModal (Dev Only)",sdkVisible:!1,example:{messageType:"info",title:"Test Modal",message:["Test Modal"]}},{name:"simulateKcVersion (Dev Only)",sdkVisible:!1,example:{kcVersion:"1.2.3"}},{name:"startEnvironmentPromiseRace (Dev Only)",sdkVisible:!1,example:{alternateUrl:"https://dev.kc-np.o360.cloud/v202501"}}];var Vg=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(r){return new(r||e)(E(Ut),E(mt))};static \u0275dir=q({type:e})}return e})(),ns=(()=>{class e extends Vg{static \u0275fac=(()=>{let n;return function(o){return(n||(n=wn(e)))(o||e)}})();static \u0275dir=q({type:e,features:[ve]})}return e})(),Hn=new w(""),NT={provide:Hn,useExisting:Fe(()=>Xl),multi:!0},Xl=(()=>{class e extends ns{writeValue(n){this.setProperty("checked",n)}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wn(e)))(o||e)}})();static \u0275dir=q({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,o){r&1&&z("change",function(s){return o.onChange(s.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[rt([NT]),ve]})}return e})(),AT={provide:Hn,useExisting:Fe(()=>Un),multi:!0};function kT(){let e=vt()?vt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var OT=new w(""),Un=(()=>{class e extends Vg{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!kT())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(r){return new(r||e)(E(Ut),E(mt),E(OT,8))};static \u0275dir=q({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&z("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[rt([AT]),ve]})}return e})();function ec(e){return e==null||tc(e)===0}function tc(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var rs=new w(""),nc=new w(""),RT=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ar=class{static min(t){return FT(t)}static max(t){return PT(t)}static required(t){return jg(t)}static requiredTrue(t){return LT(t)}static email(t){return VT(t)}static minLength(t){return jT(t)}static maxLength(t){return BT(t)}static pattern(t){return HT(t)}static nullValidator(t){return qi()}static compose(t){return Gg(t)}static composeAsync(t){return qg(t)}};function FT(e){return t=>{if(t.value==null||e==null)return null;let n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}function PT(e){return t=>{if(t.value==null||e==null)return null;let n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}function jg(e){return ec(e.value)?{required:!0}:null}function LT(e){return e.value===!0?null:{required:!0}}function VT(e){return ec(e.value)||RT.test(e.value)?null:{email:!0}}function jT(e){return t=>{let n=t.value?.length??tc(t.value);return n===null||n===0?null:n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}function BT(e){return t=>{let n=t.value?.length??tc(t.value);return n!==null&&n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}function HT(e){if(!e)return qi;let t,n;return typeof e=="string"?(n="",e.charAt(0)!=="^"&&(n+="^"),n+=e,e.charAt(e.length-1)!=="$"&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),r=>{if(ec(r.value))return null;let o=r.value;return t.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}function qi(e){return null}function Bg(e){return e!=null}function Hg(e){return mr(e)?At(e):e}function Ug(e){let t={};return e.forEach(n=>{t=n!=null?P(P({},t),n):t}),Object.keys(t).length===0?null:t}function $g(e,t){return t.map(n=>n(e))}function UT(e){return!e.validate}function Wg(e){return e.map(t=>UT(t)?t:n=>t.validate(n))}function Gg(e){if(!e)return null;let t=e.filter(Bg);return t.length==0?null:function(n){return Ug($g(n,t))}}function zg(e){return e!=null?Gg(Wg(e)):null}function qg(e){if(!e)return null;let t=e.filter(Bg);return t.length==0?null:function(n){let r=$g(n,t).map(Hg);return Js(r).pipe(fe(Ug))}}function Zg(e){return e!=null?qg(Wg(e)):null}function Ng(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Kg(e){return e._rawValidators}function Yg(e){return e._rawAsyncValidators}function Kl(e){return e?Array.isArray(e)?e:[e]:[]}function Zi(e,t){return Array.isArray(e)?e.includes(t):e===t}function Ag(e,t){let n=Kl(t);return Kl(e).forEach(o=>{Zi(n,o)||n.push(o)}),n}function kg(e,t){return Kl(t).filter(n=>!Zi(e,n))}var Ki=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=zg(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Zg(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},qt=class extends Ki{name;get formDirective(){return null}get path(){return null}},Zt=class extends Ki{_parent=null;name=null;valueAccessor=null},Yi=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},$T={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},OH=G(P({},$T),{"[class.ng-submitted]":"isSubmitted"}),os=(()=>{class e extends Yi{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(E(Zt,2))};static \u0275dir=q({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&fi("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[ve]})}return e})(),Jg=(()=>{class e extends Yi{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(E(qt,10))};static \u0275dir=q({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&fi("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},standalone:!1,features:[ve]})}return e})();var Tr="VALID",zi="INVALID",jn="PENDING",xr="DISABLED",Tt=class{},Ji=class extends Tt{value;source;constructor(t,n){super(),this.value=t,this.source=n}},Mr=class extends Tt{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},Nr=class extends Tt{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},Bn=class extends Tt{status;source;constructor(t,n){super(),this.status=t,this.source=n}},Yl=class extends Tt{source;constructor(t){super(),this.source=t}},Jl=class extends Tt{source;constructor(t){super(),this.source=t}};function Qg(e){return(is(e)?e.validators:e)||null}function WT(e){return Array.isArray(e)?zg(e):e||null}function Xg(e,t){return(is(t)?t.asyncValidators:e)||null}function GT(e){return Array.isArray(e)?Zg(e):e||null}function is(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function zT(e,t,n){let r=e.controls;if(!(t?Object.keys(r):r).length)throw new _(1e3,"");if(!r[n])throw new _(1001,"")}function qT(e,t,n){e._forEachChild((r,o)=>{if(n[o]===void 0)throw new _(1002,"")})}var Qi=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return ot(this.statusReactive)}set status(t){ot(()=>this.statusReactive.set(t))}_status=Dr(()=>this.statusReactive());statusReactive=pr(void 0);get valid(){return this.status===Tr}get invalid(){return this.status===zi}get pending(){return this.status==jn}get disabled(){return this.status===xr}get enabled(){return this.status!==xr}errors;get pristine(){return ot(this.pristineReactive)}set pristine(t){ot(()=>this.pristineReactive.set(t))}_pristine=Dr(()=>this.pristineReactive());pristineReactive=pr(!0);get dirty(){return!this.pristine}get touched(){return ot(this.touchedReactive)}set touched(t){ot(()=>this.touchedReactive.set(t))}_touched=Dr(()=>this.touchedReactive());touchedReactive=pr(!1);get untouched(){return!this.touched}_events=new Qe;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Ag(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Ag(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(kg(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(kg(t,this._rawAsyncValidators))}hasValidator(t){return Zi(this._rawValidators,t)}hasAsyncValidator(t){return Zi(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(G(P({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Nr(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new Nr(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(G(P({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Mr(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new Mr(!0,r))}markAsPending(t={}){this.status=jn;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Bn(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(G(P({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=xr,this.errors=null,this._forEachChild(o=>{o.disable(G(P({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Ji(this.value,r)),this._events.next(new Bn(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(G(P({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Tr,this._forEachChild(r=>{r.enable(G(P({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(G(P({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Tr||this.status===jn)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Ji(this.value,n)),this._events.next(new Bn(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(G(P({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?xr:Tr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=jn,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=Hg(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Bn(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new pe,this.statusChanges=new pe}_calculateStatus(){return this._allControlsDisabled()?xr:this.errors?zi:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(jn)?jn:this._anyControlsHaveStatus(zi)?zi:Tr}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new Mr(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new Nr(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){is(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=WT(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=GT(this._rawAsyncValidators)}},Xi=class extends Qi{constructor(t,n,r){super(Qg(n),Xg(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){qT(this,!0,t),Object.keys(t).forEach(r=>{zT(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){t!=null&&(Object.keys(t).forEach(r=>{let o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t?t[o]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>r._syncPendingControls()?!0:n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{let r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var ss=new w("",{providedIn:"root",factory:()=>as}),as="always";function em(e,t){return[...t.path,e]}function Ql(e,t,n=as){rc(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),KT(e,t),JT(e,t),YT(e,t),ZT(e,t)}function Og(e,t,n=!0){let r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),ts(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function es(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function ZT(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function rc(e,t){let n=Kg(e);t.validator!==null?e.setValidators(Ng(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=Yg(e);t.asyncValidator!==null?e.setAsyncValidators(Ng(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();es(t._rawValidators,o),es(t._rawAsyncValidators,o)}function ts(e,t){let n=!1;if(e!==null){if(t.validator!==null){let o=Kg(e);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==t.validator);i.length!==o.length&&(n=!0,e.setValidators(i))}}if(t.asyncValidator!==null){let o=Yg(e);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==t.asyncValidator);i.length!==o.length&&(n=!0,e.setAsyncValidators(i))}}}let r=()=>{};return es(t._rawValidators,r),es(t._rawAsyncValidators,r),n}function KT(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&tm(e,t)})}function YT(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&tm(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function tm(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function JT(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function QT(e,t){e==null,rc(e,t)}function XT(e,t){return ts(e,t)}function nm(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function ex(e){return Object.getPrototypeOf(e.constructor)===ns}function tx(e,t){e._syncPendingControls(),t.forEach(n=>{let r=n.control;r.updateOn==="submit"&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function rm(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===Un?n=i:ex(i)?r=i:o=i}),o||r||n||null}function nx(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Rg(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Fg(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var kr=class extends Qi{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(Qg(n),Xg(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),is(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Fg(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Rg(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Rg(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Fg(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var rx=e=>e instanceof kr;var ox={provide:Zt,useExisting:Fe(()=>Or)},Pg=Promise.resolve(),Or=(()=>{class e extends Zt{_changeDetectorRef;callSetDisabledState;control=new kr;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new pe;constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=rm(this,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),nm(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Ql(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){Pg.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&Pl(r);Pg.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?em(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(E(qt,9),E(rs,10),E(nc,10),E(Hn,10),E(vr,8),E(ss,8))};static \u0275dir=q({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[rt([ox]),ve,vn]})}return e})();var om=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275dir=q({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return e})();var im=new w("");var ix={provide:qt,useExisting:Fe(()=>oc)},oc=(()=>{class e extends qt{callSetDisabledState;get submitted(){return ot(this._submittedReactive)}set submitted(n){this._submittedReactive.set(n)}_submitted=Dr(()=>this._submittedReactive());_submittedReactive=pr(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new pe;constructor(n,r,o){super(),this.callSetDisabledState=o,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ts(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let r=this.form.get(n.path);return Ql(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){Og(n.control||null,n,!1),nx(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this._submittedReactive.set(!0),tx(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new Yl(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this._submittedReactive.set(!1),this.form._events.next(new Jl(this.form))}_updateDomValue(){this.directives.forEach(n=>{let r=n.control,o=this.form.get(n.path);r!==o&&(Og(r||null,n),rx(o)&&(Ql(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let r=this.form.get(n.path);QT(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let r=this.form.get(n.path);r&&XT(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){rc(this.form,this),this._oldForm&&ts(this._oldForm,this)}static \u0275fac=function(r){return new(r||e)(E(rs,10),E(nc,10),E(ss,8))};static \u0275dir=q({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&z("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[rt([ix]),ve,vn]})}return e})();var sx={provide:Zt,useExisting:Fe(()=>ic)},ic=(()=>{class e extends Zt{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(n){}model;update=new pe;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(n,r,o,i,s){super(),this._ngModelWarningConfig=s,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=rm(this,i)}ngOnChanges(n){this._added||this._setUpControl(),nm(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return em(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(r){return new(r||e)(E(qt,13),E(rs,10),E(nc,10),E(Hn,10),E(im,8))};static \u0275dir=q({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[rt([sx]),ve,vn]})}return e})();var ax={provide:Hn,useExisting:Fe(()=>$n),multi:!0};function sm(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function lx(e){return e.split(":")[0]}var $n=(()=>{class e extends ns{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;writeValue(n){this.value=n;let r=this._getOptionId(n),o=sm(r,n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){let r=lx(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wn(e)))(o||e)}})();static \u0275dir=q({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,o){r&1&&z("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[rt([ax]),ve]})}return e})(),ls=(()=>{class e{_element;_renderer;_select;id;constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(sm(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(r){return new(r||e)(E(mt),E(Ut),E($n,9))};static \u0275dir=q({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),cx={provide:Hn,useExisting:Fe(()=>am),multi:!0};function Lg(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function ux(e){return e.split(":")[0]}var am=(()=>{class e extends ns{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;writeValue(n){this.value=n;let r;if(Array.isArray(n)){let o=n.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{let o=[],i=r.selectedOptions;if(i!==void 0){let s=i;for(let a=0;a<s.length;a++){let l=s[a],c=this._getOptionValue(l.value);o.push(c)}}else{let s=r.options;for(let a=0;a<s.length;a++){let l=s[a];if(l.selected){let c=this._getOptionValue(l.value);o.push(c)}}}this.value=o,n(o)}}_registerOption(n){let r=(this._idCounter++).toString();return this._optionMap.set(r,n),r}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r)._value,n))return r;return null}_getOptionValue(n){let r=ux(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wn(e)))(o||e)}})();static \u0275dir=q({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,o){r&1&&z("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[rt([cx]),ve]})}return e})(),cs=(()=>{class e{_element;_renderer;_select;id;_value;constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(Lg(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(Lg(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(r){return new(r||e)(E(mt),E(Ut),E(am,9))};static \u0275dir=q({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();var dx=(()=>{class e{_validator=qi;_onChange;_enabled;ngOnChanges(n){if(this.inputName in n){let r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):qi,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}static \u0275fac=function(r){return new(r||e)};static \u0275dir=q({type:e,features:[vn]})}return e})();var fx={provide:rs,useExisting:Fe(()=>sc),multi:!0};var sc=(()=>{class e extends dx{required;inputName="required";normalizeInput=Pl;createValidator=n=>jg;enabled(n){return n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wn(e)))(o||e)}})();static \u0275dir=q({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,o){r&2&&Ol("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[rt([fx]),ve]})}return e})();var lm=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=yt({type:e});static \u0275inj=gt({})}return e})();var us=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:ss,useValue:n.callSetDisabledState??as}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=yt({type:e});static \u0275inj=gt({imports:[lm]})}return e})(),ds=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:im,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:ss,useValue:n.callSetDisabledState??as}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=yt({type:e});static \u0275inj=gt({imports:[lm]})}return e})();var Wn=(()=>{class e{constructor(){this.signInForm=new Xi({username:new kr({value:"",disabled:!1},[Ar.required]),organization:new kr({value:"Hartford HealthCare",disabled:!1},[Ar.required])}),this.serverErrorMessageModel={id:"ServerError",messageType:"error",content:"",visible:!1},this.clientErrorMessageModel={id:"ClientError",messageType:"error",content:"Review the form and correct highlighted fields.",visible:!1},this.busy=!1,this.advancedMode=!1,this.serverError=this.serverErrorMessageModel,this.clientError=this.clientErrorMessageModel,this.username="",this.organization="Hartford HealthCare",this.signInButtonText=this.advancedMode?"Generate Token":"Launch Encoder",this.signInHeaderText=this.advancedMode?"Create Token":"Enter Info",this.userNameDisabled=!1}clearClientError(){this.serverError.visible=!1,this.clientError.visible=!1,this.signInForm.markAsPristine()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var zn=class{},Rr=class{},Ye=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
|
|
8
8
|
`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var ps=class{encodeKey(t){return um(t)}encodeValue(t){return um(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function px(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],l=n.get(s)||[];l.push(a),n.set(s,l)}),n}var hx=/%(\d[a-f0-9])/gi,gx={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function um(e){return encodeURIComponent(e).replace(hx,(t,n)=>gx[n]??t)}function fs(e){return`${e}`}var ct=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new ps,t.fromString){if(t.fromObject)throw new _(2805,!1);this.map=px(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(fs):[fs(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(fs(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(fs(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var hs=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function mx(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function dm(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function fm(e){return typeof Blob<"u"&&e instanceof Blob}function pm(e){return typeof FormData<"u"&&e instanceof FormData}function yx(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var hm="Content-Type",gm="Accept",ym="X-Request-URL",vm="text/plain",Dm="application/json",vx=`${Dm}, ${vm}, */*`,Gn=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(mx(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new Ye,this.context??=new hs,!this.params)this.params=new ct,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),l=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+l+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||dm(this.body)||fm(this.body)||pm(this.body)||yx(this.body)?this.body:this.body instanceof ct?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||pm(this.body)?null:fm(this.body)?this.body.type||null:dm(this.body)?null:typeof this.body=="string"?vm:this.body instanceof ct?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Dm:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.transferCache??this.transferCache,s=t.body!==void 0?t.body:this.body,a=t.withCredentials??this.withCredentials,l=t.reportProgress??this.reportProgress,c=t.headers||this.headers,u=t.params||this.params,f=t.context??this.context;return t.setHeaders!==void 0&&(c=Object.keys(t.setHeaders).reduce((p,d)=>p.set(d,t.setHeaders[d]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((p,d)=>p.set(d,t.setParams[d]),u)),new e(n,r,s,{params:u,headers:c,context:f,reportProgress:l,responseType:o,withCredentials:a,transferCache:i})}},Kt=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Kt||{}),qn=class{headers;status;statusText;url;ok;type;constructor(t,n=200,r="OK"){this.headers=t.headers||new Ye,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},gs=class e extends qn{constructor(t={}){super(t)}type=Kt.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Fr=class e extends qn{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Kt.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Pr=class extends qn{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},Dx=200,wx=204;function lc(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var ys=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Gn)i=n;else{let l;o.headers instanceof Ye?l=o.headers:l=new Ye(o.headers);let c;o.params&&(o.params instanceof ct?c=o.params:c=new ct({fromObject:o.params})),i=new Gn(n,r,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let s=go(i).pipe(Xs(l=>this.handler.handle(l)));if(n instanceof Gn||o.observe==="events")return s;let a=s.pipe(Qs(l=>l instanceof Fr));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(fe(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new _(2806,!1);return l.body}));case"blob":return a.pipe(fe(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new _(2807,!1);return l.body}));case"text":return a.pipe(fe(l=>{if(l.body!==null&&typeof l.body!="string")throw new _(2808,!1);return l.body}));case"json":default:return a.pipe(fe(l=>l.body))}case"response":return a;default:throw new _(2809,!1)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new ct().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,lc(o,r))}post(n,r,o={}){return this.request("POST",n,lc(o,r))}put(n,r,o={}){return this.request("PUT",n,lc(o,r))}static \u0275fac=function(r){return new(r||e)(T(zn))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})();var Ex=new w("");function wm(e,t){return t(e)}function _x(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}function Ix(e,t,n){return(r,o)=>ei(n,()=>t(r,i=>e(i,o)))}var Em=new w(""),uc=new w(""),_m=new w(""),dc=new w("",{providedIn:"root",factory:()=>!0});function bx(){let e=null;return(t,n)=>{e===null&&(e=(S(Em,{optional:!0})??[]).reduceRight(_x,wm));let r=S(Bt);if(S(dc)){let i=r.add();return e(t,n).pipe(yo(()=>r.remove(i)))}else return e(t,n)}}var ms=(()=>{class e extends zn{backend;injector;chain=null;pendingTasks=S(Bt);contributeToStability=S(dc);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(uc),...this.injector.get(_m,[])]));this.chain=r.reduceRight((o,i)=>Ix(o,i,this.injector),wm)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(yo(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(T(Rr),T(je))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})();var Cx=/^\)\]\}',?\n/,Sx=RegExp(`^${ym}:`,"m");function Tx(e){return"responseURL"in e&&e.responseURL?e.responseURL:Sx.test(e.getAllResponseHeaders())?e.getResponseHeader(ym):null}var cc=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new _(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?At(r.\u0275loadImpl()):go(null)).pipe(ea(()=>new W(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((g,v)=>s.setRequestHeader(g,v.join(","))),n.headers.has(gm)||s.setRequestHeader(gm,vx),!n.headers.has(hm)){let g=n.detectContentTypeHeader();g!==null&&s.setRequestHeader(hm,g)}if(n.responseType){let g=n.responseType.toLowerCase();s.responseType=g!=="json"?g:"text"}let a=n.serializeBody(),l=null,c=()=>{if(l!==null)return l;let g=s.statusText||"OK",v=new Ye(s.getAllResponseHeaders()),I=Tx(s)||n.url;return l=new gs({headers:v,status:s.status,statusText:g,url:I}),l},u=()=>{let{headers:g,status:v,statusText:I,url:Ee}=c(),K=null;v!==wx&&(K=typeof s.response>"u"?s.responseText:s.response),v===0&&(v=K?Dx:0);let ut=v>=200&&v<300;if(n.responseType==="json"&&typeof K=="string"){let Yt=K;K=K.replace(Cx,"");try{K=K!==""?JSON.parse(K):null}catch(Vm){K=Yt,ut&&(ut=!1,K={error:Vm,text:K})}}ut?(i.next(new Fr({body:K,headers:g,status:v,statusText:I,url:Ee||void 0})),i.complete()):i.error(new Pr({error:K,headers:g,status:v,statusText:I,url:Ee||void 0}))},f=g=>{let{url:v}=c(),I=new Pr({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:v||void 0});i.error(I)},p=!1,d=g=>{p||(i.next(c()),p=!0);let v={type:Kt.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(v.total=g.total),n.responseType==="text"&&s.responseText&&(v.partialText=s.responseText),i.next(v)},h=g=>{let v={type:Kt.UploadProgress,loaded:g.loaded};g.lengthComputable&&(v.total=g.total),i.next(v)};return s.addEventListener("load",u),s.addEventListener("error",f),s.addEventListener("timeout",f),s.addEventListener("abort",f),n.reportProgress&&(s.addEventListener("progress",d),a!==null&&s.upload&&s.upload.addEventListener("progress",h)),s.send(a),i.next({type:Kt.Sent}),()=>{s.removeEventListener("error",f),s.removeEventListener("abort",f),s.removeEventListener("load",u),s.removeEventListener("timeout",f),n.reportProgress&&(s.removeEventListener("progress",d),a!==null&&s.upload&&s.upload.removeEventListener("progress",h)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(T($t))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})(),Im=new w(""),xx="XSRF-TOKEN",Mx=new w("",{providedIn:"root",factory:()=>xx}),Nx="X-XSRF-TOKEN",Ax=new w("",{providedIn:"root",factory:()=>Nx}),Lr=class{},kx=(()=>{class e{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r){this.doc=n,this.cookieName=r}getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ir(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)(T(ge),T(Mx))};static \u0275prov=O({token:e,factory:e.\u0275fac})}return e})();function Ox(e,t){let n=e.url.toLowerCase();if(!S(Im)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=S(Lr).getToken(),o=S(Ax);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var fc=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(fc||{});function Rx(e,t){return{\u0275kind:e,\u0275providers:t}}function pc(...e){let t=[ys,cc,ms,{provide:zn,useExisting:ms},{provide:Rr,useFactory:()=>S(Ex,{optional:!0})??S(cc)},{provide:uc,useValue:Ox,multi:!0},{provide:Im,useValue:!0},{provide:Lr,useClass:kx}];for(let n of e)t.push(...n.\u0275providers);return id(t)}var mm=new w("");function hc(){return Rx(fc.LegacyInterceptors,[{provide:mm,useFactory:bx},{provide:uc,useExisting:mm,multi:!0}])}var vs=(()=>{class e{constructor(){}wrapAsArray(n){return n.charAt(0)!=="["&&(n="["+n),n.charAt(n.length)!=="]"&&(n=n+"]"),n}removeBrackets(n){return n.charAt(0)==="["&&(n=n.substring(1)),n.charAt(n.length-1)==="]"&&(n=n.substring(0,n.length-1)),n}isJson(n){try{return JSON.parse(n)&&n}catch{return!1}}getCurrentDate(){let n=new Date,r=n.getDate(),o=n.getMonth()+1,i=n.getFullYear();return o+"/"+r+"/"+i}getBirthDateISO(){let n=new Date;return n.setFullYear(n.getFullYear()-30),n.toISOString()}getCurrentDateISO(){return new Date().toISOString()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Ds=(()=>{class e{constructor(n,r,o){this.signInService=n,this.stringService=r,this.http=o,this.kcSdk=window.kcSdk,this.sessionTypes=[this.kcSdk.sessionTypes.DX,this.kcSdk.sessionTypes.CMPX,this.kcSdk.sessionTypes.I10CM,this.kcSdk.sessionTypes.ICD10PCS,this.kcSdk.sessionTypes.HCPCS],this.i9I10States=[this.kcSdk.i9I10States.I9,this.kcSdk.i9I10States.I10],this.patientTypes=[this.kcSdk.patientType.INPATIENT,this.kcSdk.patientType.OUTPATIENT,this.kcSdk.patientType.IRF,this.kcSdk.patientType.CAH,this.kcSdk.patientType.SNF],this.selectedPatientType=this.patientTypes[0],this.selectedI9I10State=this.i9I10States[1],this.selectedSessionType=this.sessionTypes[0],this.selectedEncoderTab=this.kcSdk.encoderTabs.LOGIC,this.encoderPhraseCode="",this.WEB_KC="web/KC.html",this.WEB_ENCODER="web/Encoder.html",this.exampleUrl="http://www.google.com",this.exampleDemographicsData={sex:"M",sendingFacility:"001",birthDate:this.stringService.getBirthDateISO(),admitDate:this.stringService.getCurrentDateISO(),dischargeDate:this.stringService.getCurrentDateISO(),patientType:this.kcSdk.patientType.INPATIENT,financialClass:"09"},this.encoderDemographics=JSON.stringify(this.exampleDemographicsData,null,2),this.encoderTabs=[this.kcSdk.encoderTabs.LOGIC,this.kcSdk.encoderTabs.INDEX,this.kcSdk.encoderTabs.TABULAR],this.clientExampleToken="",this.selectedPod="",this.outputJson="",this.sdkKcIsListening=!1,this.sdkEncoderIsListening=!1,this.version=this.kcSdk.version,this.exampleAuthToken={access_token:""},this.closeAllKCWindows=this.kcSdk.closeAllKCWindows,this.workflow=this.kcSdk.workflow,this.selectedWorkflowApi=Gi(this.kcSdk.workflow),this.workflowInput=X.url+this.WEB_KC,this.kcWindowName=this.kcSdk.kcWindow.name,this.encoderWindowName=this.kcSdk.encoderWindow.name,this.apisForAllWindows=[{name:"launch KC",fn:this.kcSdk.kcWindow.launch,windowName:this.kcWindowName},{name:"launch Encoder",fn:this.kcSdk.encoderWindow.launch,windowName:this.encoderWindowName},{name:"loadPatientRecord",fn:this.kcSdk.kcWindow.loadPatientRecord,windowName:this.kcWindowName},{name:"assignConfig",fn:this.kcSdk.kcWindow.assignConfig,windowName:this.kcWindowName},{name:"setAuthToken",fn:this.kcSdk.kcWindow.setAuthToken,windowName:this.kcWindowName},{name:"setDemographics",fn:this.kcSdk.kcWindow.setDemographics,windowName:this.kcWindowName},{name:"setAuthToken",fn:this.kcSdk.encoderWindow.setAuthToken,windowName:this.encoderWindowName},{name:"setDemographics",fn:this.kcSdk.encoderWindow.setDemographics,windowName:this.encoderWindowName},{name:"addCodes",fn:this.kcSdk.kcWindow.addCodes,windowName:this.kcWindowName},{name:"clearPatientRecord",fn:this.kcSdk.kcWindow.clearPatientRecord,windowName:this.kcWindowName},{name:"clearSelectedRow",fn:this.kcSdk.kcWindow.clearSelectedRow,windowName:this.kcWindowName},{name:"closeAllKCWindowsExceptEncoder",fn:this.kcSdk.kcWindow.closeAllKCWindowsExceptEncoder,windowName:this.kcWindowName},{name:"deleteCodes",fn:this.kcSdk.kcWindow.deleteCodes,windowName:this.kcWindowName},{name:"getPayerList",fn:this.kcSdk.kcWindow.getPayerList,windowName:this.kcWindowName},{name:"getRowSpecificInfo",fn:this.kcSdk.kcWindow.getRowSpecificInfo,windowName:this.kcWindowName},{name:"hasCriticalEdits",fn:this.kcSdk.kcWindow.hasCriticalEdits,windowName:this.kcWindowName},{name:"hasEdits",fn:this.kcSdk.kcWindow.hasEdits,windowName:this.kcWindowName},{name:"launchCodeSummaryReport",fn:this.kcSdk.kcWindow.launchCodeSummaryReport,windowName:this.kcWindowName},{name:"launchEdits",fn:this.kcSdk.kcWindow.launchEdits,windowName:this.kcWindowName},{name:"launchIndex",fn:this.kcSdk.kcWindow.launchIndex,windowName:this.kcWindowName},{name:"launchLogic",fn:this.kcSdk.kcWindow.launchLogic,windowName:this.kcWindowName},{name:"launchTabular",fn:this.kcSdk.kcWindow.launchTabular,windowName:this.kcWindowName},{name:"launchFacilityLookup",fn:this.kcSdk.kcWindow.launchFacilityLookup,windowName:this.kcWindowName},{name:"launchIndex",fn:this.kcSdk.encoderWindow.launchIndex,windowName:this.encoderWindowName},{name:"launchLogic",fn:this.kcSdk.encoderWindow.launchLogic,windowName:this.encoderWindowName},{name:"launchTabular",fn:this.kcSdk.encoderWindow.launchTabular,windowName:this.encoderWindowName},{name:"logout",fn:this.kcSdk.kcWindow.logout,windowName:this.kcWindowName},{name:"resetApplication",fn:this.kcSdk.kcWindow.resetApplication,windowName:this.kcWindowName},{name:"savePatientRecord",fn:this.kcSdk.kcWindow.savePatientRecord,windowName:this.kcWindowName},{name:"updateCodes",fn:this.kcSdk.kcWindow.updateCodes,windowName:this.kcWindowName},{name:"updateDemographics",fn:this.kcSdk.kcWindow.updateDemographics,windowName:this.kcWindowName},{name:"openEncoder",fn:this.kcSdk.kcWindow.openEncoder,windowName:this.kcWindowName}],this.availableApis=Gl(this.apisForAllWindows),this.availableApiSelected=this.availableApis[0],this.workflowWindow=this.kcWindowName,this.runWorkflow=this.kcSdk.processWorkflow,this.doSigninSubmit=()=>{setTimeout(()=>{if(!this.signInService.signInForm.valid){this.signInService.serverError.visible=!1,this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine();return}if(document.getElementById("kc-sdk-advanced-mode").checked)this.generateToken();else{let s={grant_type:"org_login",username:this.signInService.signInForm.controls.username.value,organizationId:this.signInService.signInForm.controls.organization.value,enableEncoder:!0,client_id:X.appName,client_secret:X.secret};this.setAuthToken(s).subscribe({next:()=>{this.launchEncoder()},error:a=>{this.signInService.serverError.content=a}})}this.signInService.clearClientError()})},this.generateToken=()=>{if(this.signInService.signInForm.valid){let i={grant_type:"org_login",username:this.signInService.signInForm.controls.username.value,organizationId:this.signInService.signInForm.controls.organization.value,enableEncoder:!0,client_id:X.appName,client_secret:X.secret};this.setAuthToken(i).subscribe({next:()=>{this.signInService.clearClientError(),this.signInService.serverError.visible=!1,this.signInService.clientError.visible=!1,this.signInService.signInForm.markAsPristine(),this.clientExampleToken=this.exampleAuthToken.access_token},error:s=>{this.signInService.serverError.content=s}})}else this.signInService.serverError.visible=!1,this.signInService.clientError.content="Review the form and correct highlighted fields.",this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine()},this.launchEncoder=()=>{let i={sessionType:this.selectedSessionType,encoderTab:this.selectedEncoderTab,codePhrase:this.encoderPhraseCode},s=X.url+this.WEB_ENCODER,a=this.encoderDemographics,l=this.selectedI9I10State;this.clientExampleToken&&(this.exampleAuthToken.access_token=this.clientExampleToken),this.kcSdk.encoderWindow.launch(s,this.exampleAuthToken,l,a,i)},this.setAuthToken=i=>new W(s=>{let a={headers:new Ye({"Content-Type":"application/json"})},l={username:btoa(i.username),organization:i.organizationId,clientId:X.appName};this.http.post(X.tokenServer+"orgLogin",l,a).subscribe({next:c=>{c&&(this.exampleAuthToken.access_token=c.token,this.logOutput("auth","token generated - userName:'"+i.username+"' org: '"+i.organizationId+"'")),s.next(c)},error:c=>{c.status===401&&(this.exampleAuthToken.access_token="",this.signInService.serverError.visible=!1,this.signInService.clientError.content="Failed to authenticate user.",this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine());let u=c&&c.message?c.message:"undefined error message";this.logOutput("auth","token exception: "+u),s.error(u)}})}),this.onStateChange=()=>{this.filterSessionTypes(this.selectedI9I10State)},this.onPatientTypeChange=()=>{try{let i=JSON.parse(this.encoderDemographics);i.patientType=this.selectedPatientType,this.encoderDemographics=JSON.stringify(i,null,2)}catch{this.exampleDemographicsData.patientType=this.selectedPatientType,this.encoderDemographics=JSON.stringify(this.exampleDemographicsData,null,2)}},this.launchKc=()=>{if(!this.signInService.signInForm.valid){this.signInService.serverError.visible=!1,this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine();return}this.signInService.clearClientError();let i={grant_type:"org_login",username:this.signInService.signInForm.controls.username.value,organizationId:this.signInService.signInForm.controls.organization.value,enableEncoder:!0,client_id:X.appName,client_secret:X.secret};this.setAuthToken(i).subscribe({next:s=>{let a=X.url+this.WEB_KC,l=this.encoderDemographics,c=this.selectedI9I10State;this.clientExampleToken&&(this.exampleAuthToken.access_token=this.clientExampleToken),this.kcSdk.kcWindow.launch(a,this.exampleAuthToken,c,l)},error:s=>{this.signInService.serverError.content=s}})},this.launchReferences=()=>{if(!this.signInService.signInForm.valid){this.signInService.serverError.visible=!1,this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine();return}this.signInService.clearClientError();let i={grant_type:"org_login",username:this.signInService.signInForm.controls.username.value,organizationId:this.signInService.signInForm.controls.organization.value,enableEncoder:!0,client_id:X.appName,client_secret:X.secret};this.setAuthToken(i).subscribe({next:()=>{this.kcSdk.launchReferences(this.encoderPhraseCode,this.selectedSessionType.name,this.exampleAuthToken.access_token)},error:s=>{this.signInService.serverError.content=s}})},this.selectedSessionType=this.sessionTypes[0]}filterSessionTypes(n){this.sessionTypes.length=0;for(let r in this.kcSdk.sessionTypes){let o=this.kcSdk.sessionTypes[r];o.state.indexOf(n.value)>-1&&this.sessionTypes.push(o)}this.selectedSessionType=this.sessionTypes[0]}logOutput(n,r){let o={event:n,response:this.stringService.isJson(r)?JSON.parse(r):r};o.event==="editGroupPriceCompleted"&&(o.response=[]),this.outputJson=this.outputJson?[this.stringService.removeBrackets(this.outputJson),JSON.stringify(o,null,2)].join(`,
|
|
9
9
|
`):JSON.stringify(o,null,2),this.outputJson=this.stringService.wrapAsArray(this.outputJson),this.scrollLogToBottom()}scrollLogToBottom(){setTimeout(()=>{let n=document.getElementById("kc-sdk-input");n&&(n.scrollTop=n.scrollHeight)})}static{this.\u0275fac=function(r){return new(r||e)(T(Wn),T(vs),T(ys))}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var ws=e=>({"tk-rfrm-has-error":e}),Sm=(e,t)=>({"tk-form-field-error":e,"":t});function Px(e,t){if(e&1&&(y(0,"div",27),R(1),m()),e&2){let n=F();D(),En(" ",n.SignInService.clientError.content," ")}}function Lx(e,t){if(e&1&&(y(0,"div",27),R(1),m()),e&2){let n=F();D(),En(" ",n.SignInService.serverError.content," ")}}function Vx(e,t){e&1&&(y(0,"span",28),R(1," User name is required. "),m())}function jx(e,t){e&1&&(y(0,"span",29),R(1," Organization is required. "),m())}function Bx(e,t){if(e&1){let n=Me();y(0,"button",30),z("click",function(){H(n);let o=F();return U(o.SdkTesterService.launchKc())}),R(1," Launch KC "),m()}if(e&2){let n=F();C("disabled",n.SignInService.busy)}}function Hx(e,t){if(e&1){let n=Me();y(0,"button",31),z("click",function(){H(n);let o=F();return U(o.SdkTesterService.launchReferences())}),R(1," Launch References "),m()}if(e&2){let n=F();C("disabled",n.SignInService.busy)}}function Ux(e,t){if(e&1){let n=Me();y(0,"tr")(1,"td",7)(2,"label",32),R(3,"PhraseCode:"),m(),y(4,"input",33),we("ngModelChange",function(o){H(n);let i=F();return Ne(i.SdkTesterService.encoderPhraseCode,o)||(i.SdkTesterService.encoderPhraseCode=o),U(o)}),m()()()}if(e&2){let n=F();D(4),De("ngModel",n.SdkTesterService.encoderPhraseCode)}}function $x(e,t){if(e&1&&(y(0,"option",38),R(1),m()),e&2){let n=t.$implicit;C("value",n),D(),qe(n)}}function Wx(e,t){if(e&1){let n=Me();y(0,"tr")(1,"td",34)(2,"label",35),R(3,"Encoder Tab:"),m(),y(4,"select",36),we("ngModelChange",function(o){H(n);let i=F();return Ne(i.SdkTesterService.selectedEncoderTab,o)||(i.SdkTesterService.selectedEncoderTab=o),U(o)}),ie(5,$x,2,2,"option",37),m()()()}if(e&2){let n=F();D(4),De("ngModel",n.SdkTesterService.selectedEncoderTab),D(),C("ngForOf",n.SdkTesterService.encoderTabs)}}function Gx(e,t){if(e&1&&(y(0,"option",42),R(1),m()),e&2){let n=t.$implicit;C("ngValue",n),D(),qe(n.value)}}function zx(e,t){if(e&1){let n=Me();y(0,"tr")(1,"td",34)(2,"label",39),R(3,"State:"),m(),y(4,"select",40),we("ngModelChange",function(o){H(n);let i=F();return Ne(i.SdkTesterService.selectedI9I10State,o)||(i.SdkTesterService.selectedI9I10State=o),U(o)}),z("change",function(){H(n);let o=F();return U(o.SdkTesterService.onStateChange())}),ie(5,Gx,2,2,"option",41),m()()()}if(e&2){let n=F();D(4),De("ngModel",n.SdkTesterService.selectedI9I10State),D(),C("ngForOf",n.SdkTesterService.i9I10States)}}function qx(e,t){if(e&1&&(y(0,"option",42),R(1),m()),e&2){let n=t.$implicit;C("ngValue",n),D(),qe(n.name)}}function Zx(e,t){if(e&1){let n=Me();y(0,"tr")(1,"td",34)(2,"label",43),R(3,"SessionType:"),m(),y(4,"select",44),we("ngModelChange",function(o){H(n);let i=F();return Ne(i.SdkTesterService.selectedSessionType,o)||(i.SdkTesterService.selectedSessionType=o),U(o)}),ie(5,qx,2,2,"option",41),m()()()}if(e&2){let n=F();D(4),De("ngModel",n.SdkTesterService.selectedSessionType),D(),C("ngForOf",n.SdkTesterService.sessionTypes)}}function Kx(e,t){if(e&1&&(y(0,"option",42),R(1),m()),e&2){let n=t.$implicit;C("ngValue",n),D(),qe(n.displayValue)}}function Yx(e,t){if(e&1){let n=Me();y(0,"tr")(1,"td",34)(2,"label",45),R(3,"Patient Type:"),m(),y(4,"select",46),we("ngModelChange",function(o){H(n);let i=F();return Ne(i.SdkTesterService.selectedPatientType,o)||(i.SdkTesterService.selectedPatientType=o),U(o)}),z("change",function(){H(n);let o=F();return U(o.SdkTesterService.onPatientTypeChange())}),ie(5,Kx,2,2,"option",41),m()()()}if(e&2){let n=F();D(4),De("ngModel",n.SdkTesterService.selectedPatientType),D(),C("ngForOf",n.SdkTesterService.patientTypes)}}function Jx(e,t){if(e&1){let n=Me();y(0,"tr")(1,"td",7)(2,"label"),R(3,"Demographics:"),m(),y(4,"textarea",47),we("ngModelChange",function(o){H(n);let i=F();return Ne(i.SdkTesterService.encoderDemographics,o)||(i.SdkTesterService.encoderDemographics=o),U(o)}),m()()()}if(e&2){let n=F();D(4),De("ngModel",n.SdkTesterService.encoderDemographics)}}var Tm=(()=>{class e{constructor(n,r){this.signInService=n,this.sdkTesterService=r,this.userNameError=!1,this.orgError=!1,this.inAdvancedMode=!1,this.SignInService=this.signInService,this.SdkTesterService=this.sdkTesterService}get username(){return this.signInService.signInForm.get("username")}get organization(){return this.signInService.signInForm.get("organization")}static{this.\u0275fac=function(r){return new(r||e)(E(Wn),E(Ds))}}static{this.\u0275cmp=di({type:e,selectors:[["app-sign-in"]],inputs:{inAdvancedMode:"inAdvancedMode"},decls:58,vars:36,consts:[["ngForm","ngForm"],[1,"sdk-sign-in-container",2,"margin","0 auto"],[1,"tk-margin-left-2t"],["role","presentation",1,"tk-tabl-form-sip","kc-sdk-tester-sign-in-table"],[1,"sign-in-left-side"],["method","post","novalidate","",3,"ngSubmit","formGroup"],[1,"sdk-login-table"],["colspan","3"],["tabindex","-1"],["class","icon-exclamationbox",4,"ngIf"],["tabindex","-1","for","kc-userNameInput","id","kc-userNameLblId",1,"kc-label-padding"],[1,"tk-rfrm-group",3,"ngClass"],[1,"tk-rfrm-columnar-container"],[1,"tk-rfrm-error-container"],["type","text","spellcheck","false","id","kc-userNameInput","formControlName","username",0,"kc","focus-on-me","true","autocomplete","off","aria-required","true","aria-autocomplete","none","aria-describedby","signInField_inputTip UserName_errormessage","required","true",1,"tk-margin-left-min",3,"keyup","blur","ngClass"],[1,"small-dot","kc-sdk-signin-required"],[3,"ngClass"],["id","kc-userName_errormessage","class","tk-padding-left-1t","aria-required","true","aria-invalid","true","aria-describedby","User name is required",4,"ngIf"],["tabindex","-1","for","kc-orgId","id","kc-orgLblId",1,"kc-label-padding"],["type","text","id","kc-orgId","formControlName","organization","autocomplete","off","aria-required","true","aria-autocomplete","none","aria-describedby","signInField_inputTip Org_errormessage","required","true",1,"tk-margin-left-min",3,"keyup","blur","ngClass"],["id","kc-Org_errormessage","class","tk-padding-left-1t","aria-describedby","Organization is required","aria-required","true","aria-invalid","true",4,"ngIf"],["colspan","3",1,"tester-sign-in-button-space"],["type","button","name","sdk-launch-kc-button","id","sdk-launch-kc-button","value","Launch KC","class","kc-tk-btn kc-tk-btn-primary tk-margin-left-min tk-margin-top-none tk-margin-bottom-none",3,"disabled","click",4,"ngIf"],["name","generate_token","id","kc-generate_tokenBtnId","value","Generate_Token","enable-default","true","label","whatever",1,"kc-tk-btn","kc-tk-btn-primary","tk-margin-left-min","tk-margin-top-none","tk-margin-bottom-none",3,"disabled"],["type","button","name","sdk-launch-references-button","id","sdk-launch-references-button","value","Launch References","class","kc-tk-btn kc-tk-btn-primary tk-margin-left-min tk-margin-top-none tk-margin-bottom-none",3,"disabled","click",4,"ngIf"],[1,"sdk-login-table-inputs"],[4,"ngIf"],[1,"icon-exclamationbox"],["id","kc-userName_errormessage","aria-required","true","aria-invalid","true","aria-describedby","User name is required",1,"tk-padding-left-1t"],["id","kc-Org_errormessage","aria-describedby","Organization is required","aria-required","true","aria-invalid","true",1,"tk-padding-left-1t"],["type","button","name","sdk-launch-kc-button","id","sdk-launch-kc-button","value","Launch KC",1,"kc-tk-btn","kc-tk-btn-primary","tk-margin-left-min","tk-margin-top-none","tk-margin-bottom-none",3,"click","disabled"],["type","button","name","sdk-launch-references-button","id","sdk-launch-references-button","value","Launch References",1,"kc-tk-btn","kc-tk-btn-primary","tk-margin-left-min","tk-margin-top-none","tk-margin-bottom-none",3,"click","disabled"],[1,"kc-encoder-phrasecode-text"],["autoCapitalize","","type","text","id","kc-encoder-phrasecode",1,"kc-encoder-phrasecode-input",3,"ngModelChange","ngModel"],["colspan","3",1,"col-md","kc-simple-mode-inputs"],[1,"kc-encoder-tab-text"],["id","kc-encoder-tab-dropdown",1,"tester-encoder-tab",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"kc-state-text"],["id","kc-state-dropdown",1,"tester-state",3,"ngModelChange","change","ngModel"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],[1,"kc-session-type-text"],["id","kc-session-type-dropdown",1,"tester-session-type",3,"ngModelChange","ngModel"],[1,"kc-patient-type-text"],["id","kc-patient-type-dropdown",1,"patient-type",3,"ngModelChange","change","ngModel"],["name","workflowInput","id","kc-sdk-sign-in-demographics-input","placeholder","Demographics input","spellcheck","false",1,"tester-text-area","ng-pristine","ng-valid","ng-touched",3,"ngModelChange","ngModel"]],template:function(r,o){if(r&1){let i=Me();y(0,"div",1)(1,"div",2)(2,"table",3)(3,"tbody")(4,"tr")(5,"td",4)(6,"form",5,0),z("ngSubmit",function(){return H(i),U(o.SdkTesterService.doSigninSubmit())}),y(8,"table",6)(9,"tr")(10,"td",7)(11,"h2",8),R(12),m(),ie(13,Px,2,1,"div",9)(14,Lx,2,1,"div",9),m()(),y(15,"tr")(16,"td")(17,"label",10),R(18,"User name"),m()(),y(19,"td",11)(20,"div")(21,"div",12)(22,"div",13)(23,"input",14),z("keyup",function(){return H(i),U(o.userNameError=!!(o.SignInService.signInForm.controls.username.dirty&&o.SignInService.signInForm.controls.username.invalid))})("blur",function(){return H(i),U(o.userNameError=!!o.SignInService.signInForm.controls.username.invalid)}),m(),te(24,"div",15),m()()()(),y(25,"td",16)(26,"div")(27,"div",12)(28,"div",13),ie(29,Vx,2,0,"span",17),m()()()()(),y(30,"tr")(31,"td")(32,"label",18),R(33,"Organization"),m()(),y(34,"td",11)(35,"div",12)(36,"div",13)(37,"input",19),z("keyup",function(){return H(i),U(o.orgError=!!(o.SignInService.signInForm.controls.organization.dirty&&o.SignInService.signInForm.controls.organization.invalid))})("blur",function(){return H(i),U(o.orgError=!!o.SignInService.signInForm.controls.organization.invalid)}),m(),te(38,"div",15),m()()(),y(39,"td",16)(40,"div")(41,"div",12)(42,"div",13),ie(43,jx,2,0,"span",20),m()()()()(),y(44,"tr")(45,"td",21),ie(46,Bx,2,1,"button",22),y(47,"button",23),R(48),m(),ie(49,Hx,2,1,"button",24),m()()()()(),y(50,"td")(51,"table",25),ie(52,Ux,5,1,"tr",26)(53,Wx,6,2,"tr",26)(54,zx,6,2,"tr",26)(55,Zx,6,2,"tr",26)(56,Yx,6,2,"tr",26)(57,Jx,5,1,"tr",26),m()()()()()()()}if(r&2){let i=Xf(7);D(6),C("formGroup",o.SignInService.signInForm),D(6),qe(o.inAdvancedMode?"Create Token":"Enter Info"),D(),C("ngIf",o.SignInService.clientError.visible),D(),C("ngIf",o.SignInService.serverError.visible),D(5),C("ngClass",yr(22,ws,o.userNameError||o.SignInService.signInForm.controls.username.invalid&&i.submitted)),D(4),C("ngClass",_n(24,Sm,o.userNameError||i.submitted&&o.SignInService.signInForm.controls.username.invalid,o.SignInService.signInForm.controls.username.valid)),D(2),C("ngClass",yr(27,ws,o.userNameError||o.SignInService.signInForm.controls.username.invalid&&i.submitted)),D(4),C("ngIf",(o.SignInService.signInForm.controls.username.dirty||i.submitted)&&o.SignInService.signInForm.controls.username.invalid),D(5),C("ngClass",yr(29,ws,o.orgError||o.SignInService.signInForm.controls.organization.invalid&&i.submitted)),D(3),C("ngClass",_n(31,Sm,o.orgError||i.submitted&&o.SignInService.signInForm.controls.organization.invalid,o.SignInService.signInForm.controls.organization.valid)),D(2),C("ngClass",yr(34,ws,o.orgError||o.SignInService.signInForm.controls.organization.invalid&&i.submitted)),D(4),C("ngIf",(o.SignInService.signInForm.controls.organization.dirty||i.submitted)&&o.SignInService.signInForm.controls.organization.invalid),D(3),C("ngIf",!o.inAdvancedMode),D(),C("disabled",o.SignInService.busy),D(),En(" ",o.inAdvancedMode?"Generate Token":"Launch Encoder"," "),D(),C("ngIf",!o.inAdvancedMode),D(3),C("ngIf",!o.inAdvancedMode),D(),C("ngIf",!o.inAdvancedMode),D(),C("ngIf",!o.inAdvancedMode),D(),C("ngIf",!o.inAdvancedMode),D(),C("ngIf",!o.inAdvancedMode),D(),C("ngIf",!o.inAdvancedMode)}},dependencies:[bn,Er,In,_r,us,om,ls,cs,Un,$n,os,Jg,sc,Or,ds,oc,ic],encapsulation:2})}}return e})();var xm=(e,t)=>({dot:!0,"not-listening":e,listening:t});function Qx(e,t){e&1&&(y(0,"div",8)(1,"div",11),te(2,"app-sign-in",12),m()()),e&2&&(D(2),C("inAdvancedMode",!1))}function Xx(e,t){if(e&1&&(y(0,"option",33),R(1),m()),e&2){let n=t.$implicit;C("ngValue",n.name),D(),qe(n.name)}}function eM(e,t){if(e&1){let n=Me();y(0,"div",13)(1,"div",14)(2,"input",15),z("click",function(){H(n);let o=F();return U(o.clearInputOutput())}),m(),y(3,"input",16),z("click",function(){H(n);let o=F();return U(o.SdkTesterService.closeAllKCWindows())}),m(),te(4,"br"),y(5,"H2",4),R(6,"Select API:"),m(),te(7,"br"),y(8,"select",17),we("ngModelChange",function(o){H(n);let i=F();return Ne(i.selectedApi,o)||(i.selectedApi=o),U(o)}),z("change",function(){H(n);let o=F();return U(o.onSelectedNewWorkflowApiChange())}),y(9,"option",18),R(10,"launch KC"),m(),y(11,"option",19),R(12,"launch Encoder"),m(),y(13,"option",20),R(14,"assignConfig"),m(),y(15,"option",21),R(16,"setDemographics"),m(),y(17,"option",22),R(18,"setAuthToken"),m(),ie(19,Xx,2,2,"option",23),m(),te(20,"br"),y(21,"div",24),te(22,"br"),y(23,"input",25),z("click",function(){H(n);let o=F();return U(o.callApi())}),m()(),te(24,"br")(25,"br"),m(),y(26,"div",26)(27,"div",27)(28,"textarea",28),we("ngModelChange",function(o){H(n);let i=F();return Ne(i.SdkTesterService.workflowInput,o)||(i.SdkTesterService.workflowInput=o),U(o)}),m(),te(29,"br"),m()(),y(30,"div",29)(31,"div",30)(32,"input",31),z("click",function(){H(n);let o=F();return U(o.clearOutput())}),m(),y(33,"textarea",32),we("ngModelChange",function(o){H(n);let i=F();return Ne(i.SdkTesterService.outputJson,o)||(i.SdkTesterService.outputJson=o),U(o)}),m(),te(34,"br"),m()()()}if(e&2){let n=F();D(3),C("disabled",!n.SdkTesterService.sdkKcIsListening&&!n.SdkTesterService.sdkEncoderIsListening),D(5),De("ngModel",n.selectedApi),D(11),C("ngForOf",n.apiMethods),D(9),De("ngModel",n.SdkTesterService.workflowInput),D(5),De("ngModel",n.SdkTesterService.outputJson)}}var Mm=(()=>{class e{constructor(n,r,o,i,s,a){this.document=n,this.sdkTesterService=r,this.stringService=o,this.signInService=i,this.ngZone=s,this.cdr=a,this.title="sdk-tester",this.kcSdk=window.kcSdk,this.kcNotLaunched=!1,this.devApis=Mg,this.selectedApi="",this.spacesToIndent=4,this.clearInputOutput=()=>{this.sdkTesterService.outputJson="",this.clearWorkflow(),this.signInService.clearClientError()},this.clearOutput=()=>{this.sdkTesterService.outputJson=""},this.kcWindowDataChanged=c=>{setTimeout(()=>{this.sdkTesterService.logOutput(c.callback,c.value),this.cdr.detectChanges()})},this.encoderWindowDataChanged=c=>{setTimeout(()=>{this.sdkTesterService.logOutput(c.callback,c.value),this.cdr.detectChanges()})},this.kcListeningChanged=c=>{setTimeout(()=>{this.sdkTesterService.sdkKcIsListening=this.kcSdk.kcWindowIsListening,this.sdkTesterService.logOutput(c.callback,this.kcSdk.kcWindowIsListening),this.cdr.detectChanges()})},this.encoderListeningChanged=c=>{setTimeout(()=>{this.sdkTesterService.sdkEncoderIsListening=this.kcSdk.encoderWindowIsListening,this.sdkTesterService.logOutput(c.callback,this.kcSdk.encoderWindowIsListening),this.cdr.detectChanges()})},this.workflowComplete=()=>{setTimeout(()=>{this.onSelectedNewWorkflowApiChange(),this.cdr.detectChanges()})},this.advancedModeOnChange=()=>{this.signInService.clearClientError(),this.clearInputOutput(),this.signInService.advancedMode&&(this.populateSdkApis(),this.onSelectedNewWorkflowApiChange())},this.clearWorkflow=()=>{this.kcSdk.clearWorkflow()},this.onSelectedWorkflowApiChange=()=>{let c=this.document.getElementById("kc-workflow")?.selectedIndex||0,u=this.kcSdk.workflow[c];u&&(this.sdkTesterService.workflowInput=JSON.stringify(u.args,null,2))},this.onSelectedNewWorkflowApiChange=()=>{this.sdkTesterService.clientExampleToken&&(this.sdkTesterService.exampleAuthToken.access_token=this.sdkTesterService.clientExampleToken);let c=this.apiMethods.find(p=>p.name===this.selectedApi)?.example;switch(this.selectedApi){case"assignConfig":this.sdkTesterService.workflowInput=JSON.stringify({rcpEndpointUri:this.sdkTesterService.exampleUrl},null,2);break;case"setDemographics":this.sdkTesterService.workflowInput=JSON.stringify(this.sdkTesterService.exampleDemographicsData,null,2);break;case"setAuthToken":this.sdkTesterService.workflowInput=JSON.stringify(this.sdkTesterService.exampleAuthToken,null,2);break;case"launch KC":this.sdkTesterService.workflowWindow=this.sdkTesterService.kcWindowName;let p=X.url+this.sdkTesterService.WEB_KC,d=this.sdkTesterService.selectedI9I10State,h=[JSON.stringify(p,null,2),JSON.stringify(this.sdkTesterService.exampleAuthToken,null,2),JSON.stringify(d,null,2),JSON.stringify(this.sdkTesterService.exampleDemographicsData,null,2)].join(`,
|
|
10
10
|
`);this.sdkTesterService.workflowInput=this.stringService.wrapAsArray(h);break;case"launch Encoder":this.sdkTesterService.workflowWindow=this.sdkTesterService.encoderWindowName;let g=X.url+this.sdkTesterService.WEB_ENCODER,v=this.sdkTesterService.exampleDemographicsData,I={sessionType:this.kcSdk.sessionTypes.I10CM,encoderTab:this.kcSdk.encoderTabs.LOGIC,codePhrase:"ANGINA"},Ee=this.sdkTesterService.selectedI9I10State,K=[JSON.stringify(g,null,2),JSON.stringify(this.sdkTesterService.exampleAuthToken,null,2),JSON.stringify(Ee,null,2),JSON.stringify(v,null,2),JSON.stringify(I,null,2)].join(`,
|