From f6325cef7a12c6281071054fbbcd425166180ffd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bengt=20Wei=C3=9Fe?= Date: Wed, 24 Apr 2024 12:30:41 +0200 Subject: [PATCH] Updates --- index.html | 2 +- main-D5FNW64D.js => main-BNGGINU7.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename main-D5FNW64D.js => main-BNGGINU7.js (99%) diff --git a/index.html b/index.html index 14677274..a1ff0229 100644 --- a/index.html +++ b/index.html @@ -18,5 +18,5 @@ - + diff --git a/main-D5FNW64D.js b/main-BNGGINU7.js similarity index 99% rename from main-D5FNW64D.js rename to main-BNGGINU7.js index 6b4f7750..e2061142 100644 --- a/main-D5FNW64D.js +++ b/main-BNGGINU7.js @@ -12,8 +12,8 @@ ${r.map((n,i)=>`${i+1}) ${n.toString()}`).join(` `);return r===-1?t:t.substring(0,r)}function nf(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var jO=Me({__forward_ref__:Me});function lt(e){return e.__forward_ref__=lt,e.toString=function(){return Ct(this())},e}function gt(e){return Wf(e)?e():e}function Wf(e){return typeof e=="function"&&e.hasOwnProperty(jO)&&e.__forward_ref__===lt}function Y(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function _t(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ma(e){return rf(e,Qf)||rf(e,jf)}function Kf(e){return Ma(e)!==null}function rf(e,t){return e.hasOwnProperty(t)?e[t]:null}function ZO(e){let t=e&&(e[Qf]||e[jf]);return t||null}function of(e){return e&&(e.hasOwnProperty(sf)||e.hasOwnProperty(XO))?e[sf]:null}var Qf=Me({\u0275prov:Me}),sf=Me({\u0275inj:Me}),jf=Me({ngInjectableDef:Me}),XO=Me({ngInjectorDef:Me}),j=class{constructor(t,r){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=Y({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Zf(e){return e&&!!e.\u0275providers}var JO=Me({\u0275cmp:Me}),eA=Me({\u0275dir:Me}),tA=Me({\u0275pipe:Me}),nA=Me({\u0275mod:Me}),pa=Me({\u0275fac:Me}),po=Me({__NG_ELEMENT_ID__:Me}),af=Me({__NG_ENV_ID__:Me});function gi(e){return typeof e=="string"?e:e==null?"":String(e)}function rA(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():gi(e)}function iA(e,t){let r=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new N(-200,e)}function ad(e,t){throw new N(-201,!1)}var ue=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}(ue||{}),su;function Xf(){return su}function bt(e){let t=su;return su=e,t}function Jf(e,t,r){let n=Ma(e);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&ue.Optional)return null;if(t!==void 0)return t;ad(e,"Injector")}var oA={},_o=oA,au="__NG_DI_FLAG__",_a="ngTempTokenPath",sA="ngTokenPath",aA=/\n/gm,lA="\u0275",lf="__source",mi;function cA(){return mi}function $n(e){let t=mi;return mi=e,t}function uA(e,t=ue.Default){if(mi===void 0)throw new N(-203,!1);return mi===null?Jf(e,void 0,t):mi.get(e,t&ue.Optional?null:void 0,t)}function K(e,t=ue.Default){return(Xf()||uA)(gt(e),t)}function w(e,t=ue.Default){return K(e,wa(t))}function wa(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function lu(e){let t=[];for(let r=0;r ");else if(typeof t=="object"){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):Ct(a)))}i=`{${o.join(", ")}}`}return`${r}${n?"("+n+")":""}[${i}]: ${e.replace(aA,` - `)}`}var ld=eg(zf("Optional"),8);var tg=eg(zf("SkipSelf"),4);function hr(e,t){let r=e.hasOwnProperty(pa);return r?e[pa]:null}function mA(e,t,r){if(e.length!==t.length)return!1;for(let n=0;nArray.isArray(r)?cd(r,t):t(r))}function ng(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function ma(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function gA(e,t){let r=[];for(let n=0;nt;){let o=i-2;e[i]=e[o],i--}e[t]=r,e[t+1]=n}}function EA(e,t,r){let n=Io(e,t);return n>=0?e[n|1]=r:(n=~n,hA(e,n,t,r)),n}function $c(e,t){let r=Io(e,t);if(r>=0)return e[r|1]}function Io(e,t){return SA(e,t,1)}function SA(e,t,r){let n=0,i=e.length>>r;for(;i!==n;){let o=n+(i-n>>1),s=e[o<t?i=o:n=o+1}return~(i<t){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[u+1].toLowerCase(),n&2&&c!==d){if(Zt(n))return!1;s=!0}}}}return Zt(n)||s}function Zt(e){return(e&1)===0}function IA(e,t,r,n){if(t===null)return-1;let i=0;if(n||!r){let o=!1;for(;i-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?i+="."+s:n&4&&(i+=" "+s);else i!==""&&!Zt(s)&&(t+=uf(o,i),i=""),n=s,o=o||!Zt(n);r++}return i!==""&&(t+=uf(o,i)),t}function wA(e){return e.map(MA).join(",")}function xA(e){let t=[],r=[],n=1,i=2;for(;n{let t=_g(e),r=Ie(k({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===og.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||pn.Emulated,styles:e.styles||Ft,_:null,schemas:e.schemas||null,tView:null,id:""});mg(r);let n=e.dependencies;return r.directiveDefs=pf(n,!1),r.pipeDefs=pf(n,!0),r.id=kA(r),r})}function LA(e){return Er(e)||cg(e)}function PA(e){return e!==null}function mt(e){return Ro(()=>({type:e.type,bootstrap:e.bootstrap||Ft,declarations:e.declarations||Ft,imports:e.imports||Ft,exports:e.exports||Ft,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function df(e,t){if(e==null)return hi;let r={};for(let n in e)if(e.hasOwnProperty(n)){let i=e[n],o,s,a=F.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),t?(r[o]=a!==F.None?[n,a]:n,t[o]=s):r[o]=n}return r}function Oe(e){return Ro(()=>{let t=_g(e);return mg(t),t})}function lg(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Er(e){return e[JO]||null}function cg(e){return e[eA]||null}function ug(e){return e[tA]||null}function dg(e){let t=Er(e)||cg(e)||ug(e);return t!==null?t.standalone:!1}function pg(e,t){let r=e[nA]||null;if(!r&&t===!0)throw new Error(`Type ${Ct(e)} does not have '\u0275mod' property.`);return r}function _g(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,inputTransforms:null,inputConfig:e.inputs||hi,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||Ft,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:df(e.inputs,t),outputs:df(e.outputs),debugInfo:null}}function mg(e){e.features?.forEach(t=>t(e))}function pf(e,t){if(!e)return null;let r=t?ug:LA;return()=>(typeof e=="function"?e():e).map(n=>r(n)).filter(PA)}function kA(e){let t=0,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let i of r)t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Ri(e){return{\u0275providers:e}}function dd(...e){return{\u0275providers:fg(!0,e),\u0275fromNgModule:!0}}function fg(e,...t){let r=[],n=new Set,i,o=s=>{r.push(s)};return cd(t,s=>{let a=s;uu(a,o,[],n)&&(i||=[],i.push(a))}),i!==void 0&&gg(i,o),r}function gg(e,t){for(let r=0;r{t(o,n)})}}function uu(e,t,r,n){if(e=gt(e),!e)return!1;let i=null,o=of(e),s=!o&&Er(e);if(!o&&!s){let l=e.ngModule;if(o=of(l),o)i=l;else return!1}else{if(s&&!s.standalone)return!1;i=e}let a=n.has(i);if(s){if(a)return!1;if(n.add(i),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)uu(c,t,r,n)}}else if(o){if(o.imports!=null&&!a){n.add(i);let c;try{cd(o.imports,u=>{uu(u,t,r,n)&&(c||=[],c.push(u))})}finally{}c!==void 0&&gg(c,t)}if(!a){let c=hr(i)||(()=>new i);t({provide:i,useFactory:c,deps:Ft},i),t({provide:ig,useValue:i,multi:!0},i),t({provide:Ei,useValue:()=>K(i),multi:!0},i)}let l=o.providers;if(l!=null&&!a){let c=e;pd(l,u=>{t(u,c)})}}else return!1;return i!==e&&e.providers!==void 0}function pd(e,t){for(let r of e)Zf(r)&&(r=r.\u0275providers),Array.isArray(r)?pd(r,t):t(r)}var FA=Me({provide:String,useValue:Me});function hg(e){return e!==null&&typeof e=="object"&&FA in e}function UA(e){return!!(e&&e.useExisting)}function BA(e){return!!(e&&e.useFactory)}function Si(e){return typeof e=="function"}function GA(e){return!!e.useClass}var xa=new j(""),sa={},VA={},zc;function _d(){return zc===void 0&&(zc=new fa),zc}var Ut=class{},fo=class extends Ut{get destroyed(){return this._destroyed}constructor(t,r,n,i){super(),this.parent=r,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,pu(t,s=>this.processProvider(s)),this.records.set(rg,di(void 0,this)),i.has("environment")&&this.records.set(Ut,di(void 0,this));let o=this.records.get(xa);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(ig,Ft,ue.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=he(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of r)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),he(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let r=$n(this),n=bt(void 0),i;try{return t()}finally{$n(r),bt(n)}}get(t,r=_o,n=ue.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(af))return t[af](this);n=wa(n);let i,o=$n(this),s=bt(void 0);try{if(!(n&ue.SkipSelf)){let l=this.records.get(t);if(l===void 0){let c=zA(t)&&Ma(t);c&&this.injectableDefInScope(c)?l=di(du(t),sa):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l)}let a=n&ue.Self?_d():this.parent;return r=n&ue.Optional&&r===_o?null:r,a.get(t,r)}catch(a){if(a.name==="NullInjectorError"){if((a[_a]=a[_a]||[]).unshift(Ct(t)),o)throw a;return pA(a,t,"R3InjectorError",this.source)}else throw a}finally{bt(s),$n(o)}}resolveInjectorInitializers(){let t=he(null),r=$n(this),n=bt(void 0),i;try{let o=this.get(Ei,Ft,ue.Self);for(let s of o)s()}finally{$n(r),bt(n),he(t)}}toString(){let t=[],r=this.records;for(let n of r.keys())t.push(Ct(n));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new N(205,!1)}processProvider(t){t=gt(t);let r=Si(t)?t:gt(t&&t.provide),n=YA(t);if(!Si(t)&&t.multi===!0){let i=this.records.get(r);i||(i=di(void 0,sa,!0),i.factory=()=>lu(i.multi),this.records.set(r,i)),r=t,i.multi.push(t)}this.records.set(r,n)}hydrate(t,r){let n=he(null);try{return r.value===sa&&(r.value=VA,r.value=r.factory()),typeof r.value=="object"&&r.value&&$A(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{he(n)}}injectableDefInScope(t){if(!t.providedIn)return!1;let r=gt(t.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(t){let r=this._onDestroyHooks.indexOf(t);r!==-1&&this._onDestroyHooks.splice(r,1)}};function du(e){let t=Ma(e),r=t!==null?t.factory:hr(e);if(r!==null)return r;if(e instanceof j)throw new N(204,!1);if(e instanceof Function)return HA(e);throw new N(204,!1)}function HA(e){if(e.length>0)throw new N(204,!1);let r=ZO(e);return r!==null?()=>r.factory(e):()=>new e}function YA(e){if(hg(e))return di(void 0,e.useValue);{let t=Eg(e);return di(t,sa)}}function Eg(e,t,r){let n;if(Si(e)){let i=gt(e);return hr(i)||du(i)}else if(hg(e))n=()=>gt(e.useValue);else if(BA(e))n=()=>e.useFactory(...lu(e.deps||[]));else if(UA(e))n=()=>K(gt(e.useExisting));else{let i=gt(e&&(e.useClass||e.provide));if(qA(e))n=()=>new i(...lu(e.deps));else return hr(i)||du(i)}return n}function di(e,t,r=!1){return{factory:e,value:t,multi:r?[]:void 0}}function qA(e){return!!e.deps}function $A(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function zA(e){return typeof e=="function"||typeof e=="object"&&e instanceof j}function pu(e,t){for(let r of e)Array.isArray(r)?pu(r,t):r&&Zf(r)?pu(r.\u0275providers,t):t(r)}function Nr(e,t){e instanceof fo&&e.assertNotDestroyed();let r,n=$n(e),i=bt(void 0);try{return t()}finally{$n(n),bt(i)}}function Sg(){return Xf()!==void 0||cA()!=null}function Tg(e){if(!Sg())throw new N(-203,!1)}function WA(e){return typeof e=="function"}var Dn=0,ne=1,Q=2,at=3,Xt=4,At=5,go=6,ho=7,Bt=8,Ti=9,Jt=10,qe=11,Eo=12,_f=13,Ii=14,en=15,No=16,pi=17,yn=18,La=19,bg=20,zn=21,Wc=22,Sr=23,ht=25,Cg=1;var Tr=7,ga=8,bi=9,yt=10,md=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(md||{});function fr(e){return Array.isArray(e)&&typeof e[Cg]=="object"}function On(e){return Array.isArray(e)&&e[Cg]===!0}function fd(e){return(e.flags&4)!==0}function Pa(e){return e.componentOffset>-1}function ka(e){return(e.flags&1)===1}function Wn(e){return!!e.template}function KA(e){return(e[Q]&512)!==0}var _u=class{constructor(t,r,n){this.previousValue=t,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function yg(e,t,r,n){t!==null?t.applyValueToInputSignal(t,n):e[r]=n}function vt(){return vg}function vg(e){return e.type.prototype.ngOnChanges&&(e.setInput=jA),QA}vt.ngInherit=!0;function QA(){let e=Ig(this),t=e?.current;if(t){let r=e.previous;if(r===hi)e.previous=t;else for(let n in t)r[n]=t[n];e.current=null,this.ngOnChanges(t)}}function jA(e,t,r,n,i){let o=this.declaredInputs[n],s=Ig(e)||ZA(e,{previous:hi,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[o];a[o]=new _u(c&&c.currentValue,r,l===hi),yg(e,t,i,r)}var Rg="__ngSimpleChanges__";function Ig(e){return e[Rg]||null}function ZA(e,t){return e[Rg]=t}var mf=null;var un=function(e,t,r){mf?.(e,t,r)},Ng="svg",XA="math",JA=!1;function eM(){return JA}function _n(e){for(;Array.isArray(e);)e=e[Dn];return e}function Dg(e,t){return _n(t[e])}function Gt(e,t){return _n(t[e.index])}function gd(e,t){return e.data[t]}function Og(e,t){return e[t]}function jn(e,t){let r=t[e];return fr(r)?r:r[Dn]}function tM(e){return(e[Q]&4)===4}function hd(e){return(e[Q]&128)===128}function nM(e){return On(e[at])}function Ci(e,t){return t==null?null:e[t]}function Ag(e){e[pi]=0}function rM(e){e[Q]&1024||(e[Q]|=1024,hd(e)&&So(e))}function iM(e,t){for(;e>0;)t=t[Ii],e--;return t}function Ed(e){return!!(e[Q]&9216||e[Sr]?.dirty)}function mu(e){e[Jt].changeDetectionScheduler?.notify(1),Ed(e)?So(e):e[Q]&64&&(eM()?(e[Q]|=1024,So(e)):e[Jt].changeDetectionScheduler?.notify())}function So(e){e[Jt].changeDetectionScheduler?.notify();let t=To(e);for(;t!==null&&!(t[Q]&8192||(t[Q]|=8192,!hd(t)));)t=To(t)}function Mg(e,t){if((e[Q]&256)===256)throw new N(911,!1);e[zn]===null&&(e[zn]=[]),e[zn].push(t)}function oM(e,t){if(e[zn]===null)return;let r=e[zn].indexOf(t);r!==-1&&e[zn].splice(r,1)}function To(e){let t=e[at];return On(t)?t[at]:t}var re={lFrame:Bg(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function sM(){return re.lFrame.elementDepthCount}function aM(){re.lFrame.elementDepthCount++}function lM(){re.lFrame.elementDepthCount--}function wg(){return re.bindingsEnabled}function xg(){return re.skipHydrationRootTNode!==null}function cM(e){return re.skipHydrationRootTNode===e}function uM(){re.skipHydrationRootTNode=null}function fe(){return re.lFrame.lView}function Qe(){return re.lFrame.tView}function tn(e){return re.lFrame.contextLView=e,e[Bt]}function nn(e){return re.lFrame.contextLView=null,e}function Rt(){let e=Lg();for(;e!==null&&e.type===64;)e=e.parent;return e}function Lg(){return re.lFrame.currentTNode}function dM(){let e=re.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Dr(e,t){let r=re.lFrame;r.currentTNode=e,r.isParent=t}function Sd(){return re.lFrame.isParent}function Td(){re.lFrame.isParent=!1}function pM(){return re.lFrame.contextLView}function bd(){let e=re.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function _M(){return re.lFrame.bindingIndex}function mM(e){return re.lFrame.bindingIndex=e}function Do(){return re.lFrame.bindingIndex++}function Pg(e){let t=re.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}function fM(){return re.lFrame.inI18n}function gM(e,t){let r=re.lFrame;r.bindingIndex=r.bindingRootIndex=e,fu(t)}function hM(){return re.lFrame.currentDirectiveIndex}function fu(e){re.lFrame.currentDirectiveIndex=e}function EM(e){let t=re.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function kg(){return re.lFrame.currentQueryIndex}function Cd(e){re.lFrame.currentQueryIndex=e}function SM(e){let t=e[ne];return t.type===2?t.declTNode:t.type===1?e[At]:null}function Fg(e,t,r){if(r&ue.SkipSelf){let i=t,o=e;for(;i=i.parent,i===null&&!(r&ue.Host);)if(i=SM(o),i===null||(o=o[Ii],i.type&10))break;if(i===null)return!1;t=i,e=o}let n=re.lFrame=Ug();return n.currentTNode=t,n.lView=e,!0}function yd(e){let t=Ug(),r=e[ne];re.lFrame=t,t.currentTNode=r.firstChild,t.lView=e,t.tView=r,t.contextLView=e,t.bindingIndex=r.bindingStartIndex,t.inI18n=!1}function Ug(){let e=re.lFrame,t=e===null?null:e.child;return t===null?Bg(e):t}function Bg(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 Gg(){let e=re.lFrame;return re.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Vg=Gg;function vd(){let e=Gg();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 TM(e){return(re.lFrame.contextLView=iM(e,re.lFrame.contextLView))[Bt]}function Or(){return re.lFrame.selectedIndex}function br(e){re.lFrame.selectedIndex=e}function Rd(){let e=re.lFrame;return gd(e.tView,e.selectedIndex)}function Hg(){re.lFrame.currentNamespace=Ng}function Yg(){bM()}function bM(){re.lFrame.currentNamespace=null}function CM(){return re.lFrame.currentNamespace}var qg=!0;function Fa(){return qg}function Ua(e){qg=e}function yM(e,t,r){let{ngOnChanges:n,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(n){let s=vg(t);(r.preOrderHooks??=[]).push(e,s),(r.preOrderCheckHooks??=[]).push(e,s)}i&&(r.preOrderHooks??=[]).push(0-e,i),o&&((r.preOrderHooks??=[]).push(e,o),(r.preOrderCheckHooks??=[]).push(e,o))}function Ba(e,t){for(let r=t.directiveStart,n=t.directiveEnd;r=n)break}else t[l]<0&&(e[pi]+=65536),(a>14>16&&(e[Q]&3)===t&&(e[Q]+=16384,ff(a,o)):ff(a,o)}var fi=-1,Cr=class{constructor(t,r,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function RM(e){return e instanceof Cr}function IM(e){return(e.flags&8)!==0}function NM(e){return(e.flags&16)!==0}function zg(e){return e!==fi}function ha(e){return e&32767}function DM(e){return e>>16}function Ea(e,t){let r=DM(e),n=t;for(;r>0;)n=n[Ii],r--;return n}var gu=!0;function Sa(e){let t=gu;return gu=e,t}var OM=256,Wg=OM-1,Kg=5,AM=0,dn={};function MM(e,t,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(po)&&(n=r[po]),n==null&&(n=r[po]=AM++);let i=n&Wg,o=1<>Kg)]|=o}function Ta(e,t){let r=Qg(e,t);if(r!==-1)return r;let n=t[ne];n.firstCreatePass&&(e.injectorIndex=t.length,Qc(n.data,e),Qc(t,null),Qc(n.blueprint,null));let i=Id(e,t),o=e.injectorIndex;if(zg(i)){let s=ha(i),a=Ea(i,t),l=a[ne].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|l[s+c]}return t[o+8]=i,o}function Qc(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Qg(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Id(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let r=0,n=null,i=t;for(;i!==null;){if(n=eh(i),n===null)return fi;if(r++,i=i[Ii],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return fi}function hu(e,t,r){MM(e,t,r)}function jg(e,t,r){if(r&ue.Optional||e!==void 0)return e;ad(t,"NodeInjector")}function Zg(e,t,r,n){if(r&ue.Optional&&n===void 0&&(n=null),!(r&(ue.Self|ue.Host))){let i=e[Ti],o=bt(void 0);try{return i?i.get(t,n,r&ue.Optional):Jf(t,n,r&ue.Optional)}finally{bt(o)}}return jg(n,t,r)}function Xg(e,t,r,n=ue.Default,i){if(e!==null){if(t[Q]&2048&&!(n&ue.Self)){let s=PM(e,t,r,n,dn);if(s!==dn)return s}let o=Jg(e,t,r,n,dn);if(o!==dn)return o}return Zg(t,r,n,i)}function Jg(e,t,r,n,i){let o=xM(r);if(typeof o=="function"){if(!Fg(t,e,n))return n&ue.Host?jg(i,r,n):Zg(t,r,n,i);try{let s;if(s=o(n),s==null&&!(n&ue.Optional))ad(r);else return s}finally{Vg()}}else if(typeof o=="number"){let s=null,a=Qg(e,t),l=fi,c=n&ue.Host?t[en][At]:null;for((a===-1||n&ue.SkipSelf)&&(l=a===-1?Id(e,t):t[a+8],l===fi||!hf(n,!1)?a=-1:(s=t[ne],a=ha(l),t=Ea(l,t)));a!==-1;){let u=t[ne];if(gf(o,a,u.data)){let d=wM(a,t,r,s,n,c);if(d!==dn)return d}l=t[a+8],l!==fi&&hf(n,t[ne].data[a+8]===c)&&gf(o,a,t)?(s=u,a=ha(l),t=Ea(l,t)):a=-1}}return i}function wM(e,t,r,n,i,o){let s=t[ne],a=s.data[e+8],l=n==null?Pa(a)&&gu:n!=s&&(a.type&3)!==0,c=i&ue.Host&&o===a,u=ca(a,s,r,l,c);return u!==null?yr(t,s,u,a):dn}function ca(e,t,r,n,i){let o=e.providerIndexes,s=t.data,a=o&1048575,l=e.directiveStart,c=e.directiveEnd,u=o>>20,d=n?a:a+u,p=i?a+u:c;for(let _=d;_=l&&m.type===r)return _}if(i){let _=s[l];if(_&&Wn(_)&&_.type===r)return l}return null}function yr(e,t,r,n){let i=e[r],o=t.data;if(RM(i)){let s=i;s.resolving&&iA(rA(o[r]));let a=Sa(s.canSeeViewProviders);s.resolving=!0;let l,c=s.injectImpl?bt(s.injectImpl):null,u=Fg(e,n,ue.Default);try{i=e[r]=s.factory(void 0,o,e,n),t.firstCreatePass&&r>=n.directiveStart&&yM(r,o[r],t)}finally{c!==null&&bt(c),Sa(a),s.resolving=!1,Vg()}}return i}function xM(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(po)?e[po]:void 0;return typeof t=="number"?t>=0?t&Wg:LM:t}function gf(e,t,r){let n=1<>Kg)]&n)}function hf(e,t){return!(e&ue.Self)&&!(e&ue.Host&&t)}var gr=class{constructor(t,r){this._tNode=t,this._lView=r}get(t,r,n){return Xg(this._tNode,this._lView,t,wa(n),r)}};function LM(){return new gr(Rt(),fe())}function rn(e){return Ro(()=>{let t=e.prototype.constructor,r=t[pa]||Eu(t),n=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==n;){let o=i[pa]||Eu(i);if(o&&o!==r)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Eu(e){return Wf(e)?()=>{let t=Eu(gt(e));return t&&t()}:hr(e)}function PM(e,t,r,n,i){let o=e,s=t;for(;o!==null&&s!==null&&s[Q]&2048&&!(s[Q]&512);){let a=Jg(o,s,r,n|ue.Self,dn);if(a!==dn)return a;let l=o.parent;if(!l){let c=s[bg];if(c){let u=c.get(r,dn,n);if(u!==dn)return u}l=eh(s),s=s[Ii]}o=l}return i}function eh(e){let t=e[ne],r=t.type;return r===2?t.declTNode:r===1?e[At]:null}function Ef(e,t=null,r=null,n){let i=th(e,t,r,n);return i.resolveInjectorInitializers(),i}function th(e,t=null,r=null,n,i=new Set){let o=[r||Ft,dd(e)];return n=n||(typeof e=="object"?void 0:Ct(e)),new fo(o,t||_d(),n||null,i)}var An=(()=>{let t=class t{static create(n,i){if(Array.isArray(n))return Ef({name:""},i,n,"");{let o=n.name??"";return Ef({name:o},n.parent,n.providers,o)}}};t.THROW_IF_NOT_FOUND=_o,t.NULL=new fa,t.\u0275prov=Y({token:t,providedIn:"any",factory:()=>K(rg)}),t.__NG_ELEMENT_ID__=-1;let e=t;return e})();var kM="ngOriginalError";function jc(e){return e[kM]}var vn=class{constructor(){this._console=console}handleError(t){let r=this._findOriginalError(t);this._console.error("ERROR",t),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(t){let r=t&&jc(t);for(;r&&jc(r);)r=jc(r);return r||null}},nh=new j("",{providedIn:"root",factory:()=>w(vn).handleError.bind(void 0)}),Ar=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=FM,t.__NG_ENV_ID__=n=>n;let e=t;return e})(),Su=class extends Ar{constructor(t){super(),this._lView=t}onDestroy(t){return Mg(this._lView,t),()=>oM(this._lView,t)}};function FM(){return new Su(fe())}function Sf(e,t){return $f(e,t)}function UM(e){return $f(qf,e)}var ee=(Sf.required=UM,Sf);function BM(){return Ni(Rt(),fe())}function Ni(e,t){return new ct(Gt(e,t))}var ct=(()=>{let t=class t{constructor(n){this.nativeElement=n}};t.__NG_ELEMENT_ID__=BM;let e=t;return e})();function GM(e){return e instanceof ct?e.nativeElement:e}var Tu=class extends Ke{constructor(t=!1){super(),this.destroyRef=void 0,this.__isAsync=t,Sg()&&(this.destroyRef=w(Ar,{optional:!0})??void 0)}emit(t){let r=he(null);try{super.next(t)}finally{he(r)}}subscribe(t,r,n){let i=t,o=r||(()=>null),s=n;if(t&&typeof t=="object"){let l=t;i=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=Zc(o),i&&(i=Zc(i)),s&&(s=Zc(s)));let a=super.subscribe({next:i,error:o,complete:s});return t instanceof He&&t.add(a),a}};function Zc(e){return t=>{setTimeout(e,void 0,t)}}var Ce=Tu;function VM(){return this._results[Symbol.iterator]()}var bu=class e{get changes(){return this._changes??=new Ce}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let r=e.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=VM)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,r){return this._results.reduce(t,r)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,r){this.dirty=!1;let n=fA(t);(this._changesDetected=!mA(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function rh(e){return(e.flags&128)===128}var ih=new Map,HM=0;function YM(){return HM++}function qM(e){ih.set(e[La],e)}function $M(e){ih.delete(e[La])}var Tf="__ngContext__";function Kn(e,t){fr(t)?(e[Tf]=t[La],qM(t)):e[Tf]=t}function oh(e){return ah(e[Eo])}function sh(e){return ah(e[Xt])}function ah(e){for(;e!==null&&!On(e);)e=e[Xt];return e}var Cu;function lh(e){Cu=e}function ch(){if(Cu!==void 0)return Cu;if(typeof document<"u")return document;throw new N(210,!1)}var Ga=new j("",{providedIn:"root",factory:()=>zM}),zM="ng",Nd=new j(""),Mn=new j("",{providedIn:"platform",factory:()=>"unknown"});var Dd=new j(""),Od=new j("",{providedIn:"root",factory:()=>ch().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var WM="h",KM="b";var QM=()=>null;function Ad(e,t,r=!1){return QM(e,t,r)}var uh=!1,jM=new j("",{providedIn:"root",factory:()=>uh});var ta;function ZM(){if(ta===void 0&&(ta=null,pt.trustedTypes))try{ta=pt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ta}function Va(e){return ZM()?.createHTML(e)||e}var na;function XM(){if(na===void 0&&(na=null,pt.trustedTypes))try{na=pt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return na}function bf(e){return XM()?.createHTML(e)||e}var Rn=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Yf})`}},yu=class extends Rn{getTypeName(){return"HTML"}},vu=class extends Rn{getTypeName(){return"Style"}},Ru=class extends Rn{getTypeName(){return"Script"}},Iu=class extends Rn{getTypeName(){return"URL"}},Nu=class extends Rn{getTypeName(){return"ResourceURL"}};function wn(e){return e instanceof Rn?e.changingThisBreaksApplicationSecurity:e}function Mr(e,t){let r=JM(e);if(r!=null&&r!==t){if(r==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${r} (see ${Yf})`)}return r===t}function JM(e){return e instanceof Rn&&e.getTypeName()||null}function dh(e){return new yu(e)}function ph(e){return new vu(e)}function _h(e){return new Ru(e)}function mh(e){return new Iu(e)}function fh(e){return new Nu(e)}function ew(e){let t=new Ou(e);return tw()?new Du(t):t}var Du=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let r=new window.DOMParser().parseFromString(Va(t),"text/html").body;return r===null?this.inertDocumentHelper.getInertBodyElement(t):(r.removeChild(r.firstChild),r)}catch{return null}}},Ou=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let r=this.inertDocument.createElement("template");return r.innerHTML=Va(t),r}};function tw(){try{return!!new window.DOMParser().parseFromString(Va(""),"text/html")}catch{return!1}}var nw=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Md(e){return e=String(e),e.match(nw)?e:"unsafe:"+e}function xn(e){let t={};for(let r of e.split(","))t[r]=!0;return t}function Oo(...e){let t={};for(let r of e)for(let n in r)r.hasOwnProperty(n)&&(t[n]=!0);return t}var gh=xn("area,br,col,hr,img,wbr"),hh=xn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Eh=xn("rp,rt"),rw=Oo(Eh,hh),iw=Oo(hh,xn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),ow=Oo(Eh,xn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Cf=Oo(gh,iw,ow,rw),Sh=xn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),sw=xn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),aw=xn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),lw=Oo(Sh,sw,aw),cw=xn("script,style,template"),Au=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let r=t.firstChild,n=!0,i=[];for(;r;){if(r.nodeType===Node.ELEMENT_NODE?n=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,n&&r.firstChild){i.push(r),r=pw(r);continue}for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let o=dw(r);if(o){r=o;break}r=i.pop()}}return this.buf.join("")}startElement(t){let r=yf(t).toLowerCase();if(!Cf.hasOwnProperty(r))return this.sanitizedSomething=!0,!cw.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);let n=t.attributes;for(let i=0;i"),!0}endElement(t){let r=yf(t).toLowerCase();Cf.hasOwnProperty(r)&&!gh.hasOwnProperty(r)&&(this.buf.push(""))}chars(t){this.buf.push(vf(t))}};function uw(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function dw(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Th(t);return t}function pw(e){let t=e.firstChild;if(t&&uw(e,t))throw Th(t);return t}function yf(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Th(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var _w=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,mw=/([^\#-~ |!])/g;function vf(e){return e.replace(/&/g,"&").replace(_w,function(t){let r=t.charCodeAt(0),n=t.charCodeAt(1);return"&#"+((r-55296)*1024+(n-56320)+65536)+";"}).replace(mw,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var ra;function wd(e,t){let r=null;try{ra=ra||ew(e);let n=t?String(t):"";r=ra.getInertBodyElement(n);let i=5,o=n;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,n=o,o=r.innerHTML,r=ra.getInertBodyElement(n)}while(n!==o);let a=new Au().sanitizeChildren(Rf(r)||r);return Va(a)}finally{if(r){let n=Rf(r)||r;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function Rf(e){return"content"in e&&fw(e)?e.content:null}function fw(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var Vt=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Vt||{});function Ha(e){let t=gw();return t?bf(t.sanitize(Vt.HTML,e)||""):Mr(e,"HTML")?bf(wn(e)):wd(ch(),gi(e))}function gw(){let e=fe();return e&&e[Jt].sanitizer}var hw=/^>|^->||--!>|)/g,Sw="\u200B$1\u200B";function Tw(e){return e.replace(hw,t=>t.replace(Ew,Sw))}function bh(e){return e instanceof Function?e():e}var In=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(In||{}),bw;function xd(e,t){return bw(e,t)}function _i(e,t,r,n,i){if(n!=null){let o,s=!1;On(n)?o=n:fr(n)&&(s=!0,n=n[Dn]);let a=_n(n);e===0&&r!==null?i==null?Ih(t,r,a):Ca(t,r,a,i||null,!0):e===1&&r!==null?Ca(t,r,a,i||null,!0):e===2?Fw(t,a,s):e===3&&t.destroyNode(a),o!=null&&Bw(t,e,o,r,i)}}function Cw(e,t){return e.createText(t)}function yw(e,t,r){e.setValue(t,r)}function vw(e,t){return e.createComment(Tw(t))}function Ch(e,t,r){return e.createElement(t,r)}function Rw(e,t){yh(e,t),t[Dn]=null,t[At]=null}function Iw(e,t,r,n,i,o){n[Dn]=i,n[At]=t,qa(e,n,r,1,i,o)}function yh(e,t){t[Jt].changeDetectionScheduler?.notify(1),qa(e,t,t[qe],2,null,null)}function Nw(e){let t=e[Eo];if(!t)return Xc(e[ne],e);for(;t;){let r=null;if(fr(t))r=t[Eo];else{let n=t[yt];n&&(r=n)}if(!r){for(;t&&!t[Xt]&&t!==e;)fr(t)&&Xc(t[ne],t),t=t[at];t===null&&(t=e),fr(t)&&Xc(t[ne],t),r=t&&t[Xt]}t=r}}function Dw(e,t,r,n){let i=yt+n,o=r.length;n>0&&(r[i-1][Xt]=t),n0&&(e[r-1][Xt]=n[Xt]);let o=ma(e,yt+t);Rw(n[ne],n);let s=o[yn];s!==null&&s.detachView(o[ne]),n[at]=null,n[Xt]=null,n[Q]&=-129}return n}function Ld(e,t){if(!(t[Q]&256)){let r=t[qe];r.destroyNode&&qa(e,t,r,3,null,null),Nw(t)}}function Xc(e,t){if(t[Q]&256)return;let r=he(null);try{t[Q]&=-129,t[Q]|=256,t[Sr]&&bm(t[Sr]),Mw(e,t),Aw(e,t),t[ne].type===1&&t[qe].destroy();let n=t[No];if(n!==null&&On(t[at])){n!==t[at]&&vh(n,t);let i=t[yn];i!==null&&i.detachView(e)}$M(t)}finally{he(r)}}function Aw(e,t){let r=e.cleanup,n=t[ho];if(r!==null)for(let o=0;o=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[r[o+1]];r[o].call(s)}n!==null&&(t[ho]=null);let i=t[zn];if(i!==null){t[zn]=null;for(let o=0;o-1){let{encapsulation:o}=e.data[n.directiveStart+i];if(o===pn.None||o===pn.Emulated)return null}return Gt(n,r)}}function Ca(e,t,r,n,i){e.insertBefore(t,r,n,i)}function Ih(e,t,r){e.appendChild(t,r)}function If(e,t,r,n,i){n!==null?Ca(e,t,r,n,i):Ih(e,t,r)}function xw(e,t,r,n){e.removeChild(t,r,n)}function Pd(e,t){return e.parentNode(t)}function Lw(e,t){return e.nextSibling(t)}function Nh(e,t,r){return kw(e,t,r)}function Pw(e,t,r){return e.type&40?Gt(e,r):null}var kw=Pw,Nf;function Ya(e,t,r,n){let i=Rh(e,n,t),o=t[qe],s=n.parent||t[At],a=Nh(s,n,t);if(i!=null)if(Array.isArray(r))for(let l=0;lht&&wh(e,t,ht,!1),un(s?2:0,i),r(n,i)}finally{br(o),un(s?3:1,i)}}function Fd(e,t,r){if(fd(t)){let n=he(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;snull;function Kw(e,t,r,n){let i=Hh(t);i.push(r),e.firstCreatePass&&Yh(e).push(n,i.length-1)}function Qw(e,t,r,n,i,o){let s=t?t.injectorIndex:-1,a=0;return xg()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Df(e,t,r,n,i){for(let o in t){if(!t.hasOwnProperty(o))continue;let s=t[o];if(s===void 0)continue;n??={};let a,l=F.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let c=o;if(i!==null){if(!i.hasOwnProperty(o))continue;c=i[o]}e===0?Of(n,r,c,a,l):Of(n,r,c,a)}return n}function Of(e,t,r,n,i){let o;e.hasOwnProperty(r)?(o=e[r]).push(t,n):o=e[r]=[t,n],i!==void 0&&o.push(i)}function jw(e,t,r){let n=t.directiveStart,i=t.directiveEnd,o=e.data,s=t.attrs,a=[],l=null,c=null;for(let u=n;u0;){let r=e[--t];if(typeof r=="number"&&r<0)return r}return 0}function tx(e,t,r,n){let i=r.directiveStart,o=r.directiveEnd;Pa(r)&&lx(t,r,e.data[i+r.componentOffset]),e.firstCreatePass||Ta(r,t),Kn(n,t);let s=r.initialInputs;for(let a=i;a{So(e.lView)},consumerOnSignalRead(){this.lView[Sr]=this}}),Qh=100;function jh(e,t=!0,r=0){let n=e[Jt],i=n.rendererFactory,o=!1;o||i.begin?.();try{yx(e,r)}catch(s){throw t&&qh(e,s),s}finally{o||(i.end?.(),n.inlineEffectRunner?.flush())}}function yx(e,t){Pu(e,t);let r=0;for(;Ed(e);){if(r===Qh)throw new N(103,!1);r++,Pu(e,1)}}function vx(e,t,r,n){let i=t[Q];if((i&256)===256)return;let o=!1;!o&&t[Jt].inlineEffectRunner?.flush(),yd(t);let s=null,a=null;!o&&Rx(e)&&(a=Sx(t),s=Sm(a));try{Ag(t),mM(e.bindingStartIndex),r!==null&&Ph(e,t,r,2,n);let l=(i&3)===3;if(!o)if(l){let d=e.preOrderCheckHooks;d!==null&&aa(t,d,null)}else{let d=e.preOrderHooks;d!==null&&la(t,d,0,null),Kc(t,0)}if(Ix(t),Zh(t,0),e.contentQueries!==null&&Vh(e,t),!o)if(l){let d=e.contentCheckHooks;d!==null&&aa(t,d)}else{let d=e.contentHooks;d!==null&&la(t,d,1),Kc(t,1)}Hw(e,t);let c=e.components;c!==null&&Jh(t,c,0);let u=e.viewQuery;if(u!==null&&xu(2,u,n),!o)if(l){let d=e.viewCheckHooks;d!==null&&aa(t,d)}else{let d=e.viewHooks;d!==null&&la(t,d,2),Kc(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Wc]){for(let d of t[Wc])d();t[Wc]=null}o||(t[Q]&=-73)}catch(l){throw So(t),l}finally{a!==null&&(Tm(a,s),bx(a)),vd()}}function Rx(e){return e.type!==2}function Zh(e,t){for(let r=oh(e);r!==null;r=sh(r))for(let n=yt;n-1&&(ba(t,n),ma(r,n))}this._attachedToViewContainer=!1}Ld(this._lView[ne],this._lView)}onDestroy(t){Mg(this._lView,t)}markForCheck(){qd(this._cdRefInjectingView||this._lView)}detach(){this._lView[Q]&=-129}reattach(){mu(this._lView),this._lView[Q]|=128}detectChanges(){this._lView[Q]|=1024,jh(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new N(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,yh(this._lView[ne],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new N(902,!1);this._appRef=t,mu(this._lView)}},yi=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Ax;let e=t;return e})(),Dx=yi,Ox=class extends Dx{constructor(t,r,n){super(),this._declarationLView=t,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,r){return this.createEmbeddedViewImpl(t,r)}createEmbeddedViewImpl(t,r,n){let i=zh(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:r,dehydratedView:n});return new vr(i)}};function Ax(){return $d(Rt(),fe())}function $d(e,t){return e.type&4?new Ox(t,e,Ni(e,t)):null}var A3=new RegExp(`^(\\d+)*(${KM}|${WM})*(.*)`);var Mx=()=>null;function ku(e,t){return Mx(e,t)}var bo=class{},Fu=class{},va=class{};function wx(e){let t=Error(`No component factory found for ${Ct(e)}.`);return t[xx]=e,t}var xx="ngComponent";var Uu=class{resolveComponentFactory(t){throw wx(t)}},Wa=(()=>{let t=class t{};t.NULL=new Uu;let e=t;return e})(),Rr=class{},Mt=(()=>{let t=class t{constructor(){this.destroyNode=null}};t.__NG_ELEMENT_ID__=()=>Lx();let e=t;return e})();function Lx(){let e=fe(),t=Rt(),r=jn(t.index,e);return(fr(r)?r:e)[qe]}var Px=(()=>{let t=class t{};t.\u0275prov=Y({token:t,providedIn:"root",factory:()=>null});let e=t;return e})(),Jc={};var Af=new Set;function Ao(e){Af.has(e)||(Af.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function Mf(...e){}function kx(){let e=typeof pt.requestAnimationFrame=="function",t=pt[e?"requestAnimationFrame":"setTimeout"],r=pt[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&r){let n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);let i=r[Zone.__symbol__("OriginalDelegate")];i&&(r=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:r}}var ye=class e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ce(!1),this.onMicrotaskEmpty=new Ce(!1),this.onStable=new Ce(!1),this.onError=new Ce(!1),typeof Zone>"u")throw new N(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&r,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=kx().nativeRequestAnimationFrame,Bx(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new N(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new N(909,!1)}run(t,r,n){return this._inner.run(t,r,n)}runTask(t,r,n,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,Fx,Mf,Mf);try{return o.runTask(s,r,n)}finally{o.cancelTask(s)}}runGuarded(t,r,n){return this._inner.runGuarded(t,r,n)}runOutsideAngular(t){return this._outer.run(t)}},Fx={};function zd(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 Ux(e){e.isCheckStableRunning||e.lastRequestAnimationFrameId!==-1||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(pt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Bu(e),e.isCheckStableRunning=!0,zd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Bu(e))}function Bx(e){let t=()=>{Ux(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,i,o,s,a)=>{if(Gx(a))return r.invokeTask(i,o,s,a);try{return wf(e),r.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),xf(e)}},onInvoke:(r,n,i,o,s,a,l)=>{try{return wf(e),r.invoke(i,o,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),xf(e)}},onHasTask:(r,n,i,o)=>{r.hasTask(i,o),n===i&&(o.change=="microTask"?(e._hasPendingMicrotasks=o.microTask,Bu(e),zd(e)):o.change=="macroTask"&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,n,i,o)=>(r.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}function Bu(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.lastRequestAnimationFrameId!==-1?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function wf(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function xf(e){e._nesting--,zd(e)}function Gx(e){return!Array.isArray(e)||e.length!==1?!1:e[0].data?.__ignore_ng_zone__===!0}var eE=(()=>{let t=class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let i of n)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=Y({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function Ra(e,t,r){let n=r?e.styles:null,i=r?e.classes:null,o=0;if(t!==null)for(let s=0;s0&&Ah(e,r,o.join(" "))}}function Wx(e,t,r){let n=e.projection=[];for(let i=0;i{let t=class t{};t.__NG_ELEMENT_ID__=Qx;let e=t;return e})();function Qx(){let e=Rt();return nE(e,fe())}var jx=wr,tE=class extends jx{constructor(t,r,n){super(),this._lContainer=t,this._hostTNode=r,this._hostLView=n}get element(){return Ni(this._hostTNode,this._hostLView)}get injector(){return new gr(this._hostTNode,this._hostLView)}get parentInjector(){let t=Id(this._hostTNode,this._hostLView);if(zg(t)){let r=Ea(t,this._hostLView),n=ha(t),i=r[ne].data[n+8];return new gr(i,r)}else return new gr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let r=Pf(this._lContainer);return r!==null&&r[t]||null}get length(){return this._lContainer.length-yt}createEmbeddedView(t,r,n){let i,o;typeof n=="number"?i=n:n!=null&&(i=n.index,o=n.injector);let s=ku(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(r||{},o,s);return this.insertImpl(a,i,Lu(this._hostTNode,s)),a}createComponent(t,r,n,i,o){let s=t&&!WA(t),a;if(s)a=r;else{let m=r||{};a=m.index,n=m.injector,i=m.projectableNodes,o=m.environmentInjector||m.ngModuleRef}let l=s?t:new Co(Er(t)),c=n||this.parentInjector;if(!o&&l.ngModule==null){let f=(s?c:this.parentInjector).get(Ut,null);f&&(o=f)}let u=Er(l.componentType??{}),d=ku(this._lContainer,u?.id??null),p=d?.firstChild??null,_=l.create(c,i,p,o);return this.insertImpl(_.hostView,a,Lu(this._hostTNode,d)),_}insert(t,r){return this.insertImpl(t,r,!0)}insertImpl(t,r,n){let i=t._lView;if(nM(i)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let l=i[at],c=new tE(l,l[At],l[at]);c.detach(c.indexOf(t))}}let o=this._adjustIndex(r),s=this._lContainer;return Wh(s,i,o,n),t.attachToViewContainerRef(),ng(eu(s),o,t),t}move(t,r){return this.insert(t,r)}indexOf(t){let r=Pf(this._lContainer);return r!==null?r.indexOf(t):-1}remove(t){let r=this._adjustIndex(t,-1),n=ba(this._lContainer,r);n&&(ma(eu(this._lContainer),r),Ld(n[ne],n))}detach(t){let r=this._adjustIndex(t,-1),n=ba(this._lContainer,r);return n&&ma(eu(this._lContainer),r)!=null?new vr(n):null}_adjustIndex(t,r=0){return t??this.length+r}};function Pf(e){return e[ga]}function eu(e){return e[ga]||(e[ga]=[])}function nE(e,t){let r,n=t[e.index];return On(n)?r=n:(r=Gh(n,t,null,e),t[e.index]=r,za(t,r)),Xx(r,t,e,n),new tE(r,e,t)}function Zx(e,t){let r=e[qe],n=r.createComment(""),i=Gt(t,e),o=Pd(r,i);return Ca(r,o,n,Lw(r,i),!1),n}var Xx=tL,Jx=()=>!1;function eL(e,t,r){return Jx(e,t,r)}function tL(e,t,r,n){if(e[Tr])return;let i;r.type&8?i=_n(n):i=Zx(t,r),e[Tr]=i}var Hu=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Yu=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let r=t.queries;if(r!==null){let n=t.contentQueries!==null?t.contentQueries[0]:r.length,i=[];for(let o=0;o0)n.push(s[a/2]);else{let c=o[a+1],u=t[-l];for(let d=yt;dt.trim())}function uL(e,t,r){e.queries===null&&(e.queries=new $u),e.queries.track(new zu(t,r))}function Wd(e,t){return e.queries.getByIndex(t)}function dL(e,t){let r=e[ne],n=Wd(r,t);return n.crossesNgTemplate?Wu(r,e,t,[]):rE(r,e,n,t)}function pL(e){return typeof e=="function"&&e[Vn]!==void 0}function Mo(e,t){Ao("NgSignals");let r=Nm(e),n=r[Vn];return t?.equal&&(n.equal=t.equal),r.set=i=>Ds(n,i),r.update=i=>Dm(n,i),r.asReadonly=_L.bind(r),r}function _L(){let e=this[Vn];if(e.readonlyFn===void 0){let t=()=>this();t[Vn]=e,e.readonlyFn=t}return e.readonlyFn}function iE(e){return pL(e)&&typeof e.set=="function"}function mL(e){return Object.getPrototypeOf(e.prototype).constructor}function je(e){let t=mL(e.type),r=!0,n=[e];for(;t;){let i;if(Wn(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new N(903,!1);i=t.\u0275dir}if(i){if(r){n.push(i);let s=e;s.inputs=ia(e.inputs),s.inputTransforms=ia(e.inputTransforms),s.declaredInputs=ia(e.declaredInputs),s.outputs=ia(e.outputs);let a=i.hostBindings;a&&SL(e,a);let l=i.viewQuery,c=i.contentQueries;if(l&&hL(e,l),c&&EL(e,c),fL(e,i),QO(e.outputs,i.outputs),Wn(i)&&i.data.animation){let u=e.data;u.animation=(u.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;n--){let i=e[n];i.hostVars=t+=i.hostVars,i.hostAttrs=mo(i.hostAttrs,r=mo(r,i.hostAttrs))}}function ia(e){return e===hi?{}:e===Ft?[]:e}function hL(e,t){let r=e.viewQuery;r?e.viewQuery=(n,i)=>{t(n,i),r(n,i)}:e.viewQuery=t}function EL(e,t){let r=e.contentQueries;r?e.contentQueries=(n,i,o)=>{t(n,i,o),r(n,i,o)}:e.contentQueries=t}function SL(e,t){let r=e.hostBindings;r?e.hostBindings=(n,i)=>{t(n,i),r(n,i)}:e.hostBindings=t}var Qn=class{},yo=class{};var Ku=class extends Qn{constructor(t,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Ia(this);let i=pg(t);this._bootstrapComponents=bh(i.bootstrap),this._r3Injector=th(t,r,[{provide:Qn,useValue:this},{provide:Wa,useValue:this.componentFactoryResolver},...n],Ct(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Qu=class extends yo{constructor(t){super(),this.moduleType=t}create(t){return new Ku(this.moduleType,t,[])}};var Na=class extends Qn{constructor(t){super(),this.componentFactoryResolver=new Ia(this),this.instance=null;let r=new fo([...t.providers,{provide:Qn,useValue:this},{provide:Wa,useValue:this.componentFactoryResolver}],t.parent||_d(),t.debugName,new Set(["environment"]));this.injector=r,t.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Kd(e,t,r=null){return new Na({providers:e,parent:t,debugName:r,runEnvironmentInitializers:!0}).injector}var Ka=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ot(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),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)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function oE(e){return bL(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function TL(e,t){if(Array.isArray(e))for(let r=0;r>17&32767}function AL(e){return(e&2)==2}function ML(e,t){return e&131071|t<<17}function ju(e){return e|2}function vi(e){return(e&131068)>>2}function tu(e,t){return e&-131069|t<<2}function wL(e){return(e&1)===1}function Zu(e){return e|1}function xL(e,t,r,n,i,o){let s=o?t.classBindings:t.styleBindings,a=Ir(s),l=vi(s);e[n]=r;let c=!1,u;if(Array.isArray(r)){let d=r;u=d[1],(u===null||Io(d,u)>0)&&(c=!0)}else u=r;if(i)if(l!==0){let p=Ir(e[a+1]);e[n+1]=oa(p,a),p!==0&&(e[p+1]=tu(e[p+1],n)),e[a+1]=ML(e[a+1],n)}else e[n+1]=oa(a,0),a!==0&&(e[a+1]=tu(e[a+1],n)),a=n;else e[n+1]=oa(l,0),a===0?a=n:e[l+1]=tu(e[l+1],n),l=n;c&&(e[n+1]=ju(e[n+1])),kf(e,u,n,!0),kf(e,u,n,!1),LL(t,u,e,n,o),s=oa(a,l),o?t.classBindings=s:t.styleBindings=s}function LL(e,t,r,n,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&Io(o,t)>=0&&(r[n+1]=Zu(r[n+1]))}function kf(e,t,r,n){let i=e[r+1],o=t===null,s=n?Ir(i):vi(i),a=!1;for(;s!==0&&(a===!1||o);){let l=e[s],c=e[s+1];PL(l,t)&&(a=!0,e[s+1]=n?Zu(c):ju(c)),s=n?Ir(c):vi(c)}a&&(e[r+1]=n?ju(i):Zu(i))}function PL(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Io(e,t)>=0:!1}function ie(e,t,r){let n=fe(),i=Do();if(Nn(n,i,t)){let o=Qe(),s=Rd();Fh(o,s,n,e,t,n[qe],r,!1)}return ie}function Ff(e,t,r,n,i){let o=t.inputs,s=i?"class":"style";Hd(e,r,o[s],s,n)}function ja(e,t,r){return aE(e,t,r,!1),ja}function Za(e,t){return aE(e,t,null,!0),Za}function aE(e,t,r,n){let i=fe(),o=Qe(),s=Pg(2);if(o.firstUpdatePass&&FL(o,e,s,n),t!==mn&&Nn(i,s,t)){let a=o.data[Or()];HL(o,a,i,i[qe],e,i[s+1]=YL(t,r),n,s)}}function kL(e,t){return t>=e.expandoStartIndex}function FL(e,t,r,n){let i=e.data;if(i[r+1]===null){let o=i[Or()],s=kL(e,r);qL(o,n)&&t===null&&!s&&(t=!1),t=UL(i,o,t,n),xL(i,o,t,r,s,n)}}function UL(e,t,r,n){let i=EM(e),o=n?t.residualClasses:t.residualStyles;if(i===null)(n?t.classBindings:t.styleBindings)===0&&(r=nu(null,e,t,r,n),r=vo(r,t.attrs,n),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(r=nu(i,e,t,r,n),o===null){let l=BL(e,t,n);l!==void 0&&Array.isArray(l)&&(l=nu(null,e,t,l[1],n),l=vo(l,t.attrs,n),GL(e,t,n,l))}else o=VL(e,t,n)}return o!==void 0&&(n?t.residualClasses=o:t.residualStyles=o),r}function BL(e,t,r){let n=r?t.classBindings:t.styleBindings;if(vi(n)!==0)return e[Ir(n)]}function GL(e,t,r,n){let i=r?t.classBindings:t.styleBindings;e[Ir(i)]=n}function VL(e,t,r){let n,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0;){let l=e[i],c=Array.isArray(l),u=c?l[1]:l,d=u===null,p=r[i+1];p===mn&&(p=d?Ft:void 0);let _=d?$c(p,n):u===n?p:void 0;if(c&&!Da(_)&&(_=$c(l,n)),Da(_)&&(a=_,s))return a;let m=e[i+1];i=s?Ir(m):vi(m)}if(t!==null){let l=o?t.residualClasses:t.residualStyles;l!=null&&(a=$c(l,n))}return a}function Da(e){return e!==void 0}function YL(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Ct(wn(e)))),e}function qL(e,t){return(e.flags&(t?8:16))!==0}function wo(e,t,r){Ao("NgControlFlow");let n=fe(),i=Do(),o=$L(n,ht+e),s=0;if(Nn(n,i,t)){let a=he(null);try{if(hx(o,s),t!==-1){let l=zL(n[ne],ht+t),c=ku(o,l.tView.ssrId),u=zh(n,l,r,{dehydratedView:c});Wh(o,u,s,Lu(l,c))}}finally{he(a)}}else{let a=gx(o,s);a!==void 0&&(a[Bt]=r)}}function $L(e,t){return e[t]}function zL(e,t){return gd(e,t)}function WL(e,t,r,n,i,o){let s=t.consts,a=Ci(s,i),l=Di(t,e,2,n,a);return Vd(t,r,l,Ci(s,o)),l.attrs!==null&&Ra(l,l.attrs,!1),l.mergedAttrs!==null&&Ra(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function v(e,t,r,n){let i=fe(),o=Qe(),s=ht+e,a=i[qe],l=o.firstCreatePass?WL(s,o,i,t,r,n):o.data[s],c=KL(o,i,l,a,t,e);i[s]=c;let u=ka(l);return Dr(l,!0),Mh(a,c,l),!vL(l)&&Fa()&&Ya(o,i,c,l),sM()===0&&Kn(c,i),aM(),u&&(Ud(o,i,l),Fd(o,l,i)),n!==null&&Bd(i,l),v}function R(){let e=Rt();Sd()?Td():(e=e.parent,Dr(e,!1));let t=e;cM(t)&&uM(),lM();let r=Qe();return r.firstCreatePass&&(Ba(r,e),fd(e)&&r.queries.elementEnd(e)),t.classesWithoutHost!=null&&IM(t)&&Ff(r,t,fe(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&NM(t)&&Ff(r,t,fe(),t.stylesWithoutHost,!1),R}function de(e,t,r,n){return v(e,t,r,n),R(),de}var KL=(e,t,r,n,i,o)=>(Ua(!0),Ch(n,i,CM()));function QL(e,t,r,n,i){let o=t.consts,s=Ci(o,n),a=Di(t,e,8,"ng-container",s);s!==null&&Ra(a,s,!0);let l=Ci(o,i);return Vd(t,r,a,l),t.queries!==null&&t.queries.elementStart(t,a),a}function Xa(e,t,r){let n=fe(),i=Qe(),o=e+ht,s=i.firstCreatePass?QL(o,i,n,t,r):i.data[o];Dr(s,!0);let a=jL(i,n,s,e);return n[o]=a,Fa()&&Ya(i,n,a,s),Kn(a,n),ka(s)&&(Ud(i,n,s),Fd(i,s,n)),r!=null&&Bd(n,s),Xa}function Ja(){let e=Rt(),t=Qe();return Sd()?Td():(e=e.parent,Dr(e,!1)),t.firstCreatePass&&(Ba(t,e),fd(e)&&t.queries.elementEnd(e)),Ja}var jL=(e,t,r,n)=>(Ua(!0),vw(t[qe],""));function Oi(){return fe()}var Oa="en-US";var ZL=Oa;function XL(e){typeof e=="string"&&(ZL=e.toLowerCase().replace(/_/g,"-"))}function Ee(e,t,r,n){let i=fe(),o=Qe(),s=Rt();return lE(o,i,i[qe],s,e,t,n),Ee}function JL(e,t,r,n){let i=e.cleanup;if(i!=null)for(let o=0;ol?a[l]:null}typeof s=="string"&&(o+=2)}return null}function lE(e,t,r,n,i,o,s){let a=ka(n),c=e.firstCreatePass&&Yh(e),u=t[Bt],d=Hh(t),p=!0;if(n.type&3||s){let f=Gt(n,t),S=s?s(f):f,b=d.length,D=s?y=>s(_n(y[n.index])):n.index,C=null;if(!s&&a&&(C=JL(e,t,i,n.index)),C!==null){let y=C.__ngLastListenerFn__||C;y.__ngNextListenerFn__=o,C.__ngLastListenerFn__=o,p=!1}else{o=Gf(n,t,u,o,!1);let y=r.listen(S,i,o);d.push(o,y),c&&c.push(i,D,b,b+1)}}else o=Gf(n,t,u,o,!1);let _=n.outputs,m;if(p&&_!==null&&(m=_[i])){let f=m.length;if(f)for(let S=0;S-1?jn(e.index,t):t;qd(a);let l=Bf(t,r,n,s),c=o.__ngNextListenerFn__;for(;c;)l=Bf(t,r,c,s)&&l,c=c.__ngNextListenerFn__;return i&&l===!1&&s.preventDefault(),l}}function cE(e=1){return TM(e)}function eP(e,t){let r=null,n=NA(e);for(let i=0;i=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),t[r]=n}function Zd(e){let t=pM();return Og(t,ht+e)}function O(e,t=""){let r=fe(),n=Qe(),i=e+ht,o=n.firstCreatePass?Di(n,i,1,t,null):n.data[i],s=nP(n,r,o,t,e);r[i]=s,Fa()&&Ya(n,r,s,o),Dr(o,!1)}var nP=(e,t,r,n,i)=>(Ua(!0),Cw(t[qe],n));function Ln(e){return wt("",e,""),Ln}function wt(e,t,r){let n=fe(),i=DL(n,e,t,r);return i!==mn&&$h(n,Or(),i),wt}function xr(e,t,r,n,i){let o=fe(),s=OL(o,e,t,r,n,i);return s!==mn&&$h(o,Or(),s),xr}function Ze(e,t,r){iE(t)&&(t=t());let n=fe(),i=Do();if(Nn(n,i,t)){let o=Qe(),s=Rd();Fh(o,s,n,e,t,n[qe],r,!1)}return Ze}function nt(e,t){let r=iE(e);return r&&e.set(t),r}function Xe(e,t){let r=fe(),n=Qe(),i=Rt();return lE(n,r,r[qe],i,e,t),Xe}function rP(e,t,r){let n=Qe();if(n.firstCreatePass){let i=Wn(e);Xu(r,n.data,n.blueprint,i,!0),Xu(t,n.data,n.blueprint,i,!1)}}function Xu(e,t,r,n,i){if(e=gt(e),Array.isArray(e))for(let o=0;o>20;if(Si(e)||!e.multi){let _=new Cr(c,i,P),m=iu(l,t,i?u:u+p,d);m===-1?(hu(Ta(a,s),o,l),ru(o,e,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(_),s.push(_)):(r[m]=_,s[m]=_)}else{let _=iu(l,t,u+p,d),m=iu(l,t,u,u+p),f=_>=0&&r[_],S=m>=0&&r[m];if(i&&!S||!i&&!f){hu(Ta(a,s),o,l);let b=sP(i?oP:iP,r.length,i,n,c);!i&&S&&(r[m].providerFactory=b),ru(o,e,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(b),s.push(b)}else{let b=pE(r[i?m:_],c,!i&&n);ru(o,e,_>-1?_:m,b)}!i&&n&&S&&r[m].componentProviders++}}}function ru(e,t,r,n){let i=Si(t),o=GA(t);if(i||o){let l=(o?gt(t.useClass):t).prototype.ngOnDestroy;if(l){let c=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let u=c.indexOf(r);u===-1?c.push(r,[n,l]):c[u+1].push(n,l)}else c.push(r,l)}}}function pE(e,t,r){return r&&e.componentProviders++,e.multi.push(t)-1}function iu(e,t,r,n){for(let i=r;i{r.providersResolver=(n,i)=>rP(n,i?i(e):e,t)}}var aP=(()=>{let t=class t{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let i=fg(!1,n.type),o=i.length>0?Kd([i],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()}}};t.\u0275prov=Y({token:t,providedIn:"environment",factory:()=>new t(K(Ut))});let e=t;return e})();function oe(e){Ao("NgStandalone"),e.getStandaloneInjector=t=>t.get(aP).getOrCreateStandaloneInjector(e)}function Ai(e,t,r){let n=bd()+e,i=fe();return i[n]===mn?sE(i,n,r?t.call(r):t()):CL(i,n)}function tl(e,t,r,n){return _E(fe(),bd(),e,t,r,n)}function lP(e,t){let r=e[t];return r===mn?void 0:r}function _E(e,t,r,n,i,o){let s=t+r;return Nn(e,s,i)?sE(e,s+1,o?n.call(o,i):n(i)):lP(e,s+1)}function nl(e,t){let r=Qe(),n,i=e+ht;r.firstCreatePass?(n=cP(t,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks??=[]).push(i,n.onDestroy)):n=r.data[i];let o=n.factory||(n.factory=hr(n.type,!0)),s,a=bt(P);try{let l=Sa(!1),c=o();return Sa(l),tP(r,fe(),i,c),c}finally{bt(a)}}function cP(e,t){if(t)for(let r=t.length-1;r>=0;r--){let n=t[r];if(e===n.name)return n}}function rl(e,t,r){let n=e+ht,i=fe(),o=Og(i,n);return uP(i,n)?_E(i,bd(),t,o.transform,r,o):o.transform(r)}function uP(e,t){return e[ne].data[t].pure}var il=(()=>{let t=class t{log(n){console.log(n)}warn(n){console.warn(n)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();var Xd=new j(""),xo=new j(""),ol=(()=>{let t=class t{constructor(n,i,o){this._ngZone=n,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Jd||(dP(o),o.addToWindow(i)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ye.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&this._pendingCount===0&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(n)?(clearTimeout(i.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n()},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:o})}whenStable(n,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,o){return[]}};t.\u0275fac=function(i){return new(i||t)(K(ye),K(sl),K(xo))},t.\u0275prov=Y({token:t,factory:t.\u0275fac});let e=t;return e})(),sl=(()=>{let t=class t{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return Jd?.findTestabilityInTree(this,n,i)??null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();function dP(e){Jd=e}var Jd;function Lr(e){return!!e&&typeof e.then=="function"}function mE(e){return!!e&&typeof e.subscribe=="function"}var fE=new j(""),gE=(()=>{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=w(fE,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(Lr(s))n.push(s);else if(mE(s)){let a=new Promise((l,c)=>{s.subscribe({complete:l,error:c})});n.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),n.length===0&&i(),this.initialized=!0}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),ep=new j("");function pP(){Im(()=>{throw new N(600,!1)})}function _P(e){return e.isBoundToModule}function mP(e,t,r){try{let n=r();return Lr(n)?n.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):n}catch(n){throw t.runOutsideAngular(()=>e.handleError(n)),n}}var Mi=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=w(nh),this.afterRenderEffectManager=w(eE),this.externalTestViews=new Set,this.beforeRender=new Ke,this.afterTick=new Ke,this.componentTypes=[],this.components=[],this.isStable=w(Ka).hasPendingTasks.pipe(ge(n=>!n)),this._injector=w(Ut)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){let o=n instanceof va;if(!this._injector.get(gE).done){let _=!o&&dg(n),m=!1;throw new N(405,m)}let a;o?a=n:a=this._injector.get(Wa).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let l=_P(a)?void 0:this._injector.get(Qn),c=i||a.selector,u=a.create(An.NULL,[],c,l),d=u.location.nativeElement,p=u.injector.get(Xd,null);return p?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),ou(this.components,u),p?.unregisterApplication(d)}),this._loadComponent(u),u}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new N(101,!1);let i=he(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,he(i)}}detectChangesInAttachedViews(n){let i=0,o=this.afterRenderEffectManager;for(;;){if(i===Qh)throw new N(103,!1);if(n){let s=i===0;this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:l}of this._views)fP(a,s,l)}if(i++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>ed(s))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>ed(s))))break}}attachView(n){let i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){let i=n;ou(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let i=this._injector.get(ep,[]);[...this._bootstrapListeners,...i].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._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>ou(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new N(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function ou(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}function fP(e,t,r){!t&&!ed(e)||gP(e,r,t)}function ed(e){return Ed(e)}function gP(e,t,r){let n;r?(n=0,e[Q]|=1024):e[Q]&64?n=0:n=1,jh(e,t,n)}var td=class{constructor(t,r){this.ngModuleFactory=t,this.componentFactories=r}},tp=(()=>{let t=class t{compileModuleSync(n){return new Qu(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let i=this.compileModuleSync(n),o=pg(n),s=bh(o.declarations).reduce((a,l)=>{let c=Er(l);return c&&a.push(new Co(c)),a},[]);return new td(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var hP=(()=>{let t=class t{constructor(){this.zone=w(ye),this.applicationRef=w(Mi)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function EP(e){return[{provide:ye,useFactory:e},{provide:Ei,multi:!0,useFactory:()=>{let t=w(hP,{optional:!0});return()=>t.initialize()}},{provide:Ei,multi:!0,useFactory:()=>{let t=w(CP);return()=>{t.initialize()}}},{provide:nh,useFactory:SP}]}function SP(){let e=w(ye),t=w(vn);return r=>e.runOutsideAngular(()=>t.handleError(r))}function TP(e){let t=EP(()=>new ye(bP(e)));return Ri([[],t])}function bP(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var CP=(()=>{let t=class t{constructor(){this.subscription=new He,this.initialized=!1,this.zone=w(ye),this.pendingTasks=w(Ka)}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(()=>{ye.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ye.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function yP(){return typeof $localize<"u"&&$localize.locale||Oa}var np=new j("",{providedIn:"root",factory:()=>w(np,ue.Optional|ue.SkipSelf)||yP()});var hE=new j("");var da=null;function vP(e=[],t){return An.create({name:t,providers:[{provide:xa,useValue:"platform"},{provide:hE,useValue:new Set([()=>da=null])},...e]})}function RP(e=[]){if(da)return da;let t=vP(e);return da=t,pP(),IP(t),t}function IP(e){e.get(Nd,null)?.forEach(r=>r())}var Pn=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=NP;let e=t;return e})();function NP(e){return DP(Rt(),fe(),(e&16)===16)}function DP(e,t,r){if(Pa(e)&&!r){let n=jn(e.index,t);return new vr(n,n)}else if(e.type&47){let n=t[en];return new vr(n,t)}return null}var nd=class{constructor(){}supports(t){return oE(t)}create(t){return new rd(t)}},OP=(e,t)=>t,rd=class{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||OP}forEachItem(t){let r;for(r=this._itHead;r!==null;r=r._next)t(r)}forEachOperation(t){let r=this._itHead,n=this._removalsHead,i=0,o=null;for(;r||n;){let s=!n||r&&r.currentIndex{s=this._trackByFn(i,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,i),n=!0):(n&&(r=this._verifyReinsertion(r,a,s,i)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,i++}),this.length=i;return this._truncate(r),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,r,n,i){let o;return t===null?o=this._itTail:(o=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),t!==null?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._reinsertAfter(t,o,i)):(t=this._linkedRecords===null?null:this._linkedRecords.get(n,i),t!==null?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._moveAfter(t,o,i)):t=this._addAfter(new id(r,n),o,i)),t}_verifyReinsertion(t,r,n,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?t=this._reinsertAfter(o,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;t!==null;){let r=t._next;this._addToRemovals(this._unlink(t)),t=r}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,r,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let i=t._prevRemoved,o=t._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(t,r,n),this._addToMoves(t,n),t}_moveAfter(t,r,n){return this._unlink(t),this._insertAfter(t,r,n),this._addToMoves(t,n),t}_addAfter(t,r,n){return this._insertAfter(t,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,r,n){let i=r===null?this._itHead:r._next;return t._next=i,t._prev=r,i===null?this._itTail=t:i._prev=t,r===null?this._itHead=t:r._next=t,this._linkedRecords===null&&(this._linkedRecords=new Aa),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let r=t._prev,n=t._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._prev=r,t}_addToMoves(t,r){return t.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Aa),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,r){return t.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},id=class{constructor(t,r){this.item=t,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},od=class{constructor(){this._head=null,this._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,r){let n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){let r=t._prevDup,n=t._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},Aa=class{constructor(){this.map=new Map}put(t){let r=t.trackById,n=this.map.get(r);n||(n=new od,this.map.set(r,n)),n.add(t)}get(t,r){let n=t,i=this.map.get(n);return i?i.get(t,r):null}remove(t){let r=t.trackById;return this.map.get(r).remove(t)&&this.map.delete(r),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Vf(e,t,r){let n=e.previousIndex;if(n===null)return n;let i=0;return r&&n{let t=class t{constructor(n){this.factories=n}static create(n,i){if(i!=null){let o=i.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:i=>t.create(n,i||Hf()),deps:[[t,new tg,new ld]]}}find(n){let i=this.factories.find(o=>o.supports(n));if(i!=null)return i;throw new N(901,!1)}};t.\u0275prov=Y({token:t,providedIn:"root",factory:Hf});let e=t;return e})();var EE=(()=>{let t=class t{constructor(n){}};t.\u0275fac=function(i){return new(i||t)(K(Mi))},t.\u0275mod=mt({type:t}),t.\u0275inj=_t({});let e=t;return e})();function SE(e){try{let{rootComponent:t,appProviders:r,platformProviders:n}=e,i=RP(n),o=[TP(),...r||[]],a=new Na({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,l=a.get(ye);return l.run(()=>{a.resolveInjectorInitializers();let c=a.get(vn,null),u;l.runOutsideAngular(()=>{u=l.onError.subscribe({next:_=>{c.handleError(_)}})});let d=()=>a.destroy(),p=i.get(hE);return p.add(d),a.onDestroy(()=>{u.unsubscribe(),p.delete(d)}),mP(c,l,()=>{let _=a.get(gE);return _.runInitializers(),_.donePromise.then(()=>{let m=a.get(np,Oa);XL(m||Oa);let f=a.get(Mi);return t!==void 0&&f.bootstrap(t),f})})})}catch(t){return Promise.reject(t)}}function Lo(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var vE=null;function fn(){return vE}function RE(e){vE??=e}var al=class{};var rt=new j(""),IE=(()=>{let t=class t{historyGo(n){throw new Error("")}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:()=>w(xP),providedIn:"platform"});let e=t;return e})();var xP=(()=>{let t=class t extends IE{constructor(){super(),this._doc=w(rt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return fn().getBaseHref(this._doc)}onPopState(n){let i=fn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){let i=fn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",n,!1),()=>i.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,i,o){this._history.pushState(n,i,o)}replaceState(n,i,o){this._history.replaceState(n,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:()=>new t,providedIn:"platform"});let e=t;return e})();function NE(e,t){if(e.length==0)return t;if(t.length==0)return e;let r=0;return e.endsWith("/")&&r++,t.startsWith("/")&&r++,r==2?e+t.substring(1):r==1?e+t:e+"/"+t}function TE(e){let t=e.match(/#|\?|$/),r=t&&t.index||e.length,n=r-(e[r-1]==="/"?1:0);return e.slice(0,n)+e.slice(r)}function Pr(e){return e&&e[0]!=="?"?"?"+e:e}var cl=(()=>{let t=class t{historyGo(n){throw new Error("")}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:()=>w(DE),providedIn:"root"});let e=t;return e})(),LP=new j(""),DE=(()=>{let t=class t extends cl{constructor(n,i){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??w(rt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return NE(this._baseHref,n)}path(n=!1){let i=this._platformLocation.pathname+Pr(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${i}${o}`:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Pr(s));this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Pr(s));this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};t.\u0275fac=function(i){return new(i||t)(K(IE),K(LP,8))},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Po=(()=>{let t=class t{constructor(n){this._subject=new Ce,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let i=this._locationStrategy.getBaseHref();this._basePath=FP(TE(bE(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,i=""){return this.path()==this.normalize(n+Pr(i))}normalize(n){return t.stripTrailingSlash(kP(this._basePath,bE(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,i="",o=null){this._locationStrategy.pushState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Pr(i)),o)}replaceState(n,i="",o=null){this._locationStrategy.replaceState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Pr(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",i){this._urlChangeListeners.forEach(o=>o(n,i))}subscribe(n,i,o){return this._subject.subscribe({next:n,error:i,complete:o})}};t.normalizeQueryParams=Pr,t.joinWithSlash=NE,t.stripTrailingSlash=TE,t.\u0275fac=function(i){return new(i||t)(K(cl))},t.\u0275prov=Y({token:t,factory:()=>PP(),providedIn:"root"});let e=t;return e})();function PP(){return new Po(K(cl))}function kP(e,t){if(!e||!t.startsWith(e))return t;let r=t.substring(e.length);return r===""||["/",";","?","#"].includes(r[0])?r:t}function bE(e){return e.replace(/\/index.html$/,"")}function FP(e){if(new RegExp("^(https?:)?//").test(e)){let[,r]=e.split(/\/\/[^\/]+/);return r}return e}function OE(e,t){t=encodeURIComponent(t);for(let r of e.split(";")){let n=r.indexOf("="),[i,o]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var ip=/\s+/,CE=[],AE=(()=>{let t=class t{constructor(n,i){this._ngEl=n,this._renderer=i,this.initialClasses=CE,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(ip):CE}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(ip):n}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let i of n)this._updateState(i,!0);else if(n!=null)for(let i of Object.keys(n))this._updateState(i,!!n[i]);this._applyStateDiff()}_updateState(n,i){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(n,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let i=n[0],o=n[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(n,i){n=n.trim(),n.length>0&&n.split(ip).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};t.\u0275fac=function(i){return new(i||t)(P(ct),P(Mt))},t.\u0275dir=Oe({type:t,selectors:[["","ngClass",""]],inputs:{klass:[F.None,"class","klass"],ngClass:"ngClass"},standalone:!0});let e=t;return e})();var op=class{constructor(t,r,n,i){this.$implicit=t,this.ngForOf=r,this.index=n,this.count=i}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}},ME=(()=>{let t=class t{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,i,o){this._viewContainer=n,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else 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 i=this._viewContainer;n.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new op(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(s===null?void 0:s);else if(s!==null){let l=i.get(s);i.move(l,a),yE(l,o)}});for(let o=0,s=i.length;o{let s=i.get(o.currentIndex);yE(s,o)})}static ngTemplateContextGuard(n,i){return!0}};t.\u0275fac=function(i){return new(i||t)(P(wr),P(yi),P(rp))},t.\u0275dir=Oe({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let e=t;return e})();function yE(e,t){e.context.$implicit=t.item}var ul=(()=>{let t=class t{transform(n){return JSON.stringify(n,null,2)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275pipe=lg({name:"json",type:t,pure:!1,standalone:!0});let e=t;return e})();var dl=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=mt({type:t}),t.\u0275inj=_t({});let e=t;return e})(),wE="browser",UP="server";function wi(e){return e===UP}var ll=class{};var cp=class extends al{constructor(){super(...arguments),this.supportsDOMEvents=!0}},up=class e extends cp{static makeCurrent(){RE(new e)}onAndCancel(t,r,n){return t.addEventListener(r,n),()=>{t.removeEventListener(r,n)}}dispatchEvent(t,r){t.dispatchEvent(r)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,r){return r=r||this.getDefaultDocument(),r.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,r){return r==="window"?window:r==="document"?t:r==="body"?t.body:null}getBaseHref(t){let r=GP();return r==null?null:VP(r)}resetBaseElement(){ko=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return OE(document.cookie,t)}},ko=null;function GP(){return ko=ko||document.querySelector("base"),ko?ko.getAttribute("href"):null}function VP(e){return new URL(e,document.baseURI).pathname}var dp=class{addToWindow(t){pt.getAngularTestability=(n,i=!0)=>{let o=t.findTestabilityInTree(n,i);if(o==null)throw new N(5103,!1);return o},pt.getAllAngularTestabilities=()=>t.getAllTestabilities(),pt.getAllAngularRootElements=()=>t.getAllRootElements();let r=n=>{let i=pt.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&n()};i.forEach(a=>{a.whenStable(s)})};pt.frameworkStabilizers||(pt.frameworkStabilizers=[]),pt.frameworkStabilizers.push(r)}findTestabilityInTree(t,r,n){if(r==null)return null;let i=t.getTestability(r);return i??(n?fn().isShadowRoot(r)?this.findTestabilityInTree(t,r.host,!0):this.findTestabilityInTree(t,r.parentElement,!0):null)}},HP=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac});let e=t;return e})(),pp=new j(""),PE=(()=>{let t=class t{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,o){return this._findPluginFor(i).addEventListener(n,i,o)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(s=>s.supports(n)),!i)throw new N(5101,!1);return this._eventNameToPlugin.set(n,i),i}};t.\u0275fac=function(i){return new(i||t)(K(pp),K(ye))},t.\u0275prov=Y({token:t,factory:t.\u0275fac});let e=t;return e})(),pl=class{constructor(t){this._doc=t}},ap="ng-app-id",kE=(()=>{let t=class t{constructor(n,i,o,s={}){this.doc=n,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=wi(s),this.resetHostNodes()}addStyles(n){for(let i of n)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(n){for(let i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){let i=this.styleRef;i.get(n)?.elements?.forEach(o=>o.remove()),i.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${ap}="${this.appId}"]`);if(n?.length){let i=new Map;return n.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(n,i){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=i,s.usage}return o.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===n)return o.delete(i),s.removeAttribute(ap),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(ap,this.appId),n.appendChild(a),a}}addStyleToHost(n,i){let o=this.getStyleElement(n,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};t.\u0275fac=function(i){return new(i||t)(K(rt),K(Ga),K(Od,8),K(Mn))},t.\u0275prov=Y({token:t,factory:t.\u0275fac});let e=t;return e})(),lp={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},mp=/%COMP%/g,FE="%COMP%",YP=`_nghost-${FE}`,qP=`_ngcontent-${FE}`,$P=!0,zP=new j("",{providedIn:"root",factory:()=>$P});function WP(e){return qP.replace(mp,e)}function KP(e){return YP.replace(mp,e)}function UE(e,t){return t.map(r=>r.replace(mp,e))}var _l=(()=>{let t=class t{constructor(n,i,o,s,a,l,c,u=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=l,this.ngZone=c,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=wi(l),this.defaultRenderer=new Fo(n,a,c,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===pn.ShadowDom&&(i=Ie(k({},i),{encapsulation:pn.Emulated}));let o=this.getOrCreateRenderer(n,i);return o instanceof ml?o.applyToHost(n):o instanceof Uo&&o.applyStyles(),o}getOrCreateRenderer(n,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,l=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,p=this.platformIsServer;switch(i.encapsulation){case pn.Emulated:s=new ml(c,u,i,this.appId,d,a,l,p);break;case pn.ShadowDom:return new _p(c,u,n,i,a,l,this.nonce,p);default:s=new Uo(c,u,i,d,a,l,p);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(i){return new(i||t)(K(PE),K(kE),K(Ga),K(zP),K(rt),K(Mn),K(ye),K(Od))},t.\u0275prov=Y({token:t,factory:t.\u0275fac});let e=t;return e})(),Fo=class{constructor(t,r,n,i){this.eventManager=t,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,r){return r?this.doc.createElementNS(lp[r]||r,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,r){(xE(t)?t.content:t).appendChild(r)}insertBefore(t,r,n){t&&(xE(t)?t.content:t).insertBefore(r,n)}removeChild(t,r){t&&t.removeChild(r)}selectRootElement(t,r){let n=typeof t=="string"?this.doc.querySelector(t):t;if(!n)throw new N(-5104,!1);return r||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,r,n,i){if(i){r=i+":"+r;let o=lp[i];o?t.setAttributeNS(o,r,n):t.setAttribute(r,n)}else t.setAttribute(r,n)}removeAttribute(t,r,n){if(n){let i=lp[n];i?t.removeAttributeNS(i,r):t.removeAttribute(`${n}:${r}`)}else t.removeAttribute(r)}addClass(t,r){t.classList.add(r)}removeClass(t,r){t.classList.remove(r)}setStyle(t,r,n,i){i&(In.DashCase|In.Important)?t.style.setProperty(r,n,i&In.Important?"important":""):t.style[r]=n}removeStyle(t,r,n){n&In.DashCase?t.style.removeProperty(r):t.style[r]=""}setProperty(t,r,n){t!=null&&(t[r]=n)}setValue(t,r){t.nodeValue=r}listen(t,r,n){if(typeof t=="string"&&(t=fn().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${r}`);return this.eventManager.addEventListener(t,r,this.decoratePreventDefault(n))}decoratePreventDefault(t){return r=>{if(r==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(r)):t(r))===!1&&r.preventDefault()}}};function xE(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var _p=class extends Fo{constructor(t,r,n,i,o,s,a,l){super(t,o,s,l),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=UE(i.id,i.styles);for(let u of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,r){return super.appendChild(this.nodeOrShadowRoot(t),r)}insertBefore(t,r,n){return super.insertBefore(this.nodeOrShadowRoot(t),r,n)}removeChild(t,r){return super.removeChild(this.nodeOrShadowRoot(t),r)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Uo=class extends Fo{constructor(t,r,n,i,o,s,a,l){super(t,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=l?UE(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},ml=class extends Uo{constructor(t,r,n,i,o,s,a,l){let c=i+"-"+n.id;super(t,r,n,o,s,a,l,c),this.contentAttr=WP(c),this.hostAttr=KP(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,r){let n=super.createElement(t,r);return super.setAttribute(n,this.contentAttr,""),n}},QP=(()=>{let t=class t extends pl{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,o){return n.addEventListener(i,o,!1),()=>this.removeEventListener(n,i,o)}removeEventListener(n,i,o){return n.removeEventListener(i,o)}};t.\u0275fac=function(i){return new(i||t)(K(rt))},t.\u0275prov=Y({token:t,factory:t.\u0275fac});let e=t;return e})(),LE=["alt","control","meta","shift"],jP={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ZP={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},XP=(()=>{let t=class t extends pl{constructor(n){super(n)}supports(n){return t.parseEventName(n)!=null}addEventListener(n,i,o){let s=t.parseEventName(i),a=t.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>fn().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let i=n.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=t._normalizeKey(i.pop()),a="",l=i.indexOf("code");if(l>-1&&(i.splice(l,1),a="code."),LE.forEach(u=>{let d=i.indexOf(u);d>-1&&(i.splice(d,1),a+=u+".")}),a+=s,i.length!=0||s.length===0)return null;let c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(n,i){let o=jP[n.key]||n.key,s="";return i.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),LE.forEach(a=>{if(a!==o){let l=ZP[a];l(n)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(n,i,o){return s=>{t.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>i(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};t.\u0275fac=function(i){return new(i||t)(K(rt))},t.\u0275prov=Y({token:t,factory:t.\u0275fac});let e=t;return e})();function BE(e,t){return SE(k({rootComponent:e},JP(t)))}function JP(e){return{appProviders:[...GE,...e?.providers??[]],platformProviders:r0}}function e0(){up.makeCurrent()}function t0(){return new vn}function n0(){return lh(document),document}var r0=[{provide:Mn,useValue:wE},{provide:Nd,useValue:e0,multi:!0},{provide:rt,useFactory:n0,deps:[]}];var i0=new j(""),o0=[{provide:xo,useClass:dp,deps:[]},{provide:Xd,useClass:ol,deps:[ye,sl,xo]},{provide:ol,useClass:ol,deps:[ye,sl,xo]}],GE=[{provide:xa,useValue:"root"},{provide:vn,useFactory:t0,deps:[]},{provide:pp,useClass:QP,multi:!0,deps:[rt,ye,Mn]},{provide:pp,useClass:XP,multi:!0,deps:[rt]},_l,kE,PE,{provide:Rr,useExisting:_l},{provide:ll,useClass:HP,deps:[]},[]],VE=(()=>{let t=class t{constructor(n){}static withServerTransition(n){return{ngModule:t,providers:[{provide:Ga,useValue:n.appId}]}}};t.\u0275fac=function(i){return new(i||t)(K(i0,12))},t.\u0275mod=mt({type:t}),t.\u0275inj=_t({providers:[...GE,...o0],imports:[dl,EE]});let e=t;return e})();var HE=(()=>{let t=class t{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};t.\u0275fac=function(i){return new(i||t)(K(rt))},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Xn=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:function(i){let o=null;return i?o=new(i||t):o=K(s0),o},providedIn:"root"});let e=t;return e})(),s0=(()=>{let t=class t extends Xn{constructor(n){super(),this._doc=n}sanitize(n,i){if(i==null)return null;switch(n){case Vt.NONE:return i;case Vt.HTML:return Mr(i,"HTML")?wn(i):wd(this._doc,String(i)).toString();case Vt.STYLE:return Mr(i,"Style")?wn(i):i;case Vt.SCRIPT:if(Mr(i,"Script"))return wn(i);throw new N(5200,!1);case Vt.URL:return Mr(i,"URL")?wn(i):Md(String(i));case Vt.RESOURCE_URL:if(Mr(i,"ResourceURL"))return wn(i);throw new N(5201,!1);default:throw new N(5202,!1)}}bypassSecurityTrustHtml(n){return dh(n)}bypassSecurityTrustStyle(n){return ph(n)}bypassSecurityTrustScript(n){return _h(n)}bypassSecurityTrustUrl(n){return mh(n)}bypassSecurityTrustResourceUrl(n){return fh(n)}};t.\u0275fac=function(i){return new(i||t)(K(rt))},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var pe=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(pe||{}),gn="*";function YE(e,t=null){return{type:pe.Sequence,steps:e,options:t}}function gp(e){return{type:pe.Style,styles:e,offset:null}}var Jn=class{constructor(t=0,r=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+r}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let r=t=="start"?this._onStartFns:this._onDoneFns;r.forEach(n=>n()),r.length=0}},Bo=class{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let r=0,n=0,i=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++r==o&&this._onFinish()}),s.onDestroy(()=>{++n==o&&this._onDestroy()}),s.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let r=t*this.totalTime;this.players.forEach(n=>{let i=n.totalTime?Math.min(1,r/n.totalTime):1;n.setPosition(i)})}getPosition(){let t=this.players.reduce((r,n)=>r===null||n.totalTime>r.totalTime?n:r,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let r=t=="start"?this._onStartFns:this._onDoneFns;r.forEach(n=>n()),r.length=0}},fl="!";function qE(e){return new N(3e3,!1)}function a0(){return new N(3100,!1)}function l0(){return new N(3101,!1)}function c0(e){return new N(3001,!1)}function u0(e){return new N(3003,!1)}function d0(e){return new N(3004,!1)}function p0(e,t){return new N(3005,!1)}function _0(){return new N(3006,!1)}function m0(){return new N(3007,!1)}function f0(e,t){return new N(3008,!1)}function g0(e){return new N(3002,!1)}function h0(e,t,r,n,i){return new N(3010,!1)}function E0(){return new N(3011,!1)}function S0(){return new N(3012,!1)}function T0(){return new N(3200,!1)}function b0(){return new N(3202,!1)}function C0(){return new N(3013,!1)}function y0(e){return new N(3014,!1)}function v0(e){return new N(3015,!1)}function R0(e){return new N(3016,!1)}function I0(e,t){return new N(3404,!1)}function N0(e){return new N(3502,!1)}function D0(e){return new N(3503,!1)}function O0(){return new N(3300,!1)}function A0(e){return new N(3504,!1)}function M0(e){return new N(3301,!1)}function w0(e,t){return new N(3302,!1)}function x0(e){return new N(3303,!1)}function L0(e,t){return new N(3400,!1)}function P0(e){return new N(3401,!1)}function k0(e){return new N(3402,!1)}function F0(e,t){return new N(3505,!1)}function er(e){switch(e.length){case 0:return new Jn;case 1:return e[0];default:return new Bo(e)}}function iS(e,t,r=new Map,n=new Map){let i=[],o=[],s=-1,a=null;if(t.forEach(l=>{let c=l.get("offset"),u=c==s,d=u&&a||new Map;l.forEach((p,_)=>{let m=_,f=p;if(_!=="offset")switch(m=e.normalizePropertyName(m,i),f){case fl:f=r.get(_);break;case gn:f=n.get(_);break;default:f=e.normalizeStyleValue(_,m,f,i);break}d.set(m,f)}),u||o.push(d),a=d,s=c}),i.length)throw N0(i);return o}function Bp(e,t,r,n){switch(t){case"start":e.onStart(()=>n(r&&hp(r,"start",e)));break;case"done":e.onDone(()=>n(r&&hp(r,"done",e)));break;case"destroy":e.onDestroy(()=>n(r&&hp(r,"destroy",e)));break}}function hp(e,t,r){let n=r.totalTime,i=!!r.disabled,o=Gp(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,n??e.totalTime,i),s=e._data;return s!=null&&(o._data=s),o}function Gp(e,t,r,n,i="",o=0,s){return{element:e,triggerName:t,fromState:r,toState:n,phaseName:i,totalTime:o,disabled:!!s}}function Lt(e,t,r){let n=e.get(t);return n||e.set(t,n=r),n}function $E(e){let t=e.indexOf(":"),r=e.substring(1,t),n=e.slice(t+1);return[r,n]}var U0=typeof document>"u"?null:document.documentElement;function Vp(e){let t=e.parentNode||e.host||null;return t===U0?null:t}function B0(e){return e.substring(1,6)=="ebkit"}var kr=null,zE=!1;function G0(e){kr||(kr=V0()||{},zE=kr.style?"WebkitAppearance"in kr.style:!1);let t=!0;return kr.style&&!B0(e)&&(t=e in kr.style,!t&&zE&&(t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in kr.style)),t}function V0(){return typeof document<"u"?document.body:null}function oS(e,t){for(;t;){if(t===e)return!0;t=Vp(t)}return!1}function sS(e,t,r){if(r)return Array.from(e.querySelectorAll(t));let n=e.querySelector(t);return n?[n]:[]}var Hp=(()=>{let t=class t{validateStyleProperty(n){return G0(n)}matchesElement(n,i){return!1}containsElement(n,i){return oS(n,i)}getParentElement(n){return Vp(n)}query(n,i,o){return sS(n,i,o)}computeStyle(n,i,o){return o||""}animate(n,i,o,s,a,l=[],c){return new Jn(o,s)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac});let e=t;return e})(),zp=class zp{};zp.NOOP=new Hp;var Br=zp,Gr=class{};var H0=1e3,aS="{{",Y0="}}",lS="ng-enter",yp="ng-leave",gl="ng-trigger",bl=".ng-trigger",WE="ng-animating",vp=".ng-animating";function kn(e){if(typeof e=="number")return e;let t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Rp(parseFloat(t[1]),t[2])}function Rp(e,t){switch(t){case"s":return e*H0;default:return e}}function Cl(e,t,r){return e.hasOwnProperty("duration")?e:q0(e,t,r)}function q0(e,t,r){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,o=0,s="";if(typeof e=="string"){let a=e.match(n);if(a===null)return t.push(qE(e)),{duration:0,delay:0,easing:""};i=Rp(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(o=Rp(parseFloat(l),a[4]));let c=a[5];c&&(s=c)}else i=e;if(!r){let a=!1,l=t.length;i<0&&(t.push(a0()),a=!0),o<0&&(t.push(l0()),a=!0),a&&t.splice(l,0,qE(e))}return{duration:i,delay:o,easing:s}}function $0(e){return e.length?e[0]instanceof Map?e:e.map(t=>new Map(Object.entries(t))):[]}function hn(e,t,r){t.forEach((n,i)=>{let o=Yp(i);r&&!r.has(i)&&r.set(i,e.style[o]),e.style[o]=n})}function Ur(e,t){t.forEach((r,n)=>{let i=Yp(n);e.style[i]=""})}function Go(e){return Array.isArray(e)?e.length==1?e[0]:YE(e):e}function z0(e,t,r){let n=t.params||{},i=cS(e);i.length&&i.forEach(o=>{n.hasOwnProperty(o)||r.push(c0(o))})}var Ip=new RegExp(`${aS}\\s*(.+?)\\s*${Y0}`,"g");function cS(e){let t=[];if(typeof e=="string"){let r;for(;r=Ip.exec(e);)t.push(r[1]);Ip.lastIndex=0}return t}function Ho(e,t,r){let n=`${e}`,i=n.replace(Ip,(o,s)=>{let a=t[s];return a==null&&(r.push(u0(s)),a=""),a.toString()});return i==n?e:i}var W0=/-+([a-z0-9])/g;function Yp(e){return e.replace(W0,(...t)=>t[1].toUpperCase())}function K0(e,t){return e===0||t===0}function Q0(e,t,r){if(r.size&&t.length){let n=t[0],i=[];if(r.forEach((o,s)=>{n.has(s)||i.push(s),n.set(s,o)}),i.length)for(let o=1;os.set(a,qp(e,a)))}}return t}function xt(e,t,r){switch(t.type){case pe.Trigger:return e.visitTrigger(t,r);case pe.State:return e.visitState(t,r);case pe.Transition:return e.visitTransition(t,r);case pe.Sequence:return e.visitSequence(t,r);case pe.Group:return e.visitGroup(t,r);case pe.Animate:return e.visitAnimate(t,r);case pe.Keyframes:return e.visitKeyframes(t,r);case pe.Style:return e.visitStyle(t,r);case pe.Reference:return e.visitReference(t,r);case pe.AnimateChild:return e.visitAnimateChild(t,r);case pe.AnimateRef:return e.visitAnimateRef(t,r);case pe.Query:return e.visitQuery(t,r);case pe.Stagger:return e.visitStagger(t,r);default:throw d0(t.type)}}function qp(e,t){return window.getComputedStyle(e)[t]}var j0=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),yl=class extends Gr{normalizePropertyName(t,r){return Yp(t)}normalizeStyleValue(t,r,n,i){let o="",s=n.toString().trim();if(j0.has(r)&&n!==0&&n!=="0")if(typeof n=="number")o="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&i.push(p0(t,n))}return s+o}};var vl="*";function Z0(e,t){let r=[];return typeof e=="string"?e.split(/\s*,\s*/).forEach(n=>X0(n,r,t)):r.push(e),r}function X0(e,t,r){if(e[0]==":"){let l=J0(e,r);if(typeof l=="function"){t.push(l);return}e=l}let n=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return r.push(v0(e)),t;let i=n[1],o=n[2],s=n[3];t.push(KE(i,s));let a=i==vl&&s==vl;o[0]=="<"&&!a&&t.push(KE(s,i))}function J0(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(r,n)=>parseFloat(n)>parseFloat(r);case":decrement":return(r,n)=>parseFloat(n) *"}}var hl=new Set(["true","1"]),El=new Set(["false","0"]);function KE(e,t){let r=hl.has(e)||El.has(e),n=hl.has(t)||El.has(t);return(i,o)=>{let s=e==vl||e==i,a=t==vl||t==o;return!s&&r&&typeof i=="boolean"&&(s=i?hl.has(e):El.has(e)),!a&&n&&typeof o=="boolean"&&(a=o?hl.has(t):El.has(t)),s&&a}}var uS=":self",ek=new RegExp(`s*${uS}s*,?`,"g");function dS(e,t,r,n){return new Np(e).build(t,r,n)}var QE="",Np=class{constructor(t){this._driver=t}build(t,r,n){let i=new Dp(r);return this._resetContextStyleTimingState(i),xt(this,Go(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector=QE,t.collectedStyles=new Map,t.collectedStyles.set(QE,new Map),t.currentTime=0}visitTrigger(t,r){let n=r.queryCount=0,i=r.depCount=0,o=[],s=[];return t.name.charAt(0)=="@"&&r.errors.push(_0()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(r),a.type==pe.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,r))}),l.name=c}else if(a.type==pe.Transition){let l=this.visitTransition(a,r);n+=l.queryCount,i+=l.depCount,s.push(l)}else r.errors.push(m0())}),{type:pe.Trigger,name:t.name,states:o,transitions:s,queryCount:n,depCount:i,options:null}}visitState(t,r){let n=this.visitStyle(t.styles,r),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){let o=new Set,s=i||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{cS(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&r.errors.push(f0(t.name,[...o.values()]))}return{type:pe.State,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,r){r.queryCount=0,r.depCount=0;let n=xt(this,Go(t.animation),r),i=Z0(t.expr,r.errors);return{type:pe.Transition,matchers:i,animation:n,queryCount:r.queryCount,depCount:r.depCount,options:Fr(t.options)}}visitSequence(t,r){return{type:pe.Sequence,steps:t.steps.map(n=>xt(this,n,r)),options:Fr(t.options)}}visitGroup(t,r){let n=r.currentTime,i=0,o=t.steps.map(s=>{r.currentTime=n;let a=xt(this,s,r);return i=Math.max(i,r.currentTime),a});return r.currentTime=i,{type:pe.Group,steps:o,options:Fr(t.options)}}visitAnimate(t,r){let n=ik(t.timings,r.errors);r.currentAnimateTimings=n;let i,o=t.styles?t.styles:gp({});if(o.type==pe.Keyframes)i=this.visitKeyframes(o,r);else{let s=t.styles,a=!1;if(!s){a=!0;let c={};n.easing&&(c.easing=n.easing),s=gp(c)}r.currentTime+=n.duration+n.delay;let l=this.visitStyle(s,r);l.isEmptyStep=a,i=l}return r.currentAnimateTimings=null,{type:pe.Animate,timings:n,style:i,options:null}}visitStyle(t,r){let n=this._makeStyleAst(t,r);return this._validateStyleAst(n,r),n}_makeStyleAst(t,r){let n=[],i=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of i)typeof a=="string"?a===gn?n.push(a):r.errors.push(g0(a)):n.push(new Map(Object.entries(a)));let o=!1,s=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let l of a.values())if(l.toString().indexOf(aS)>=0){o=!0;break}}}),{type:pe.Style,styles:n,easing:s,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,r){let n=r.currentAnimateTimings,i=r.currentTime,o=r.currentTime;n&&o>0&&(o-=n.duration+n.delay),t.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,l)=>{let c=r.collectedStyles.get(r.currentQuerySelector),u=c.get(l),d=!0;u&&(o!=i&&o>=u.startTime&&i<=u.endTime&&(r.errors.push(h0(l,u.startTime,u.endTime,o,i)),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:i}),r.options&&z0(a,r.options,r.errors)})})}visitKeyframes(t,r){let n={type:pe.Keyframes,styles:[],options:null};if(!r.currentAnimateTimings)return r.errors.push(E0()),n;let i=1,o=0,s=[],a=!1,l=!1,c=0,u=t.steps.map(b=>{let D=this._makeStyleAst(b,r),C=D.offset!=null?D.offset:rk(D.styles),y=0;return C!=null&&(o++,y=D.offset=C),l=l||y<0||y>1,a=a||y0&&o{let C=p>0?D==_?1:p*D:s[D],y=C*S;r.currentTime=m+f.delay+y,f.duration=y,this._validateStyleAst(b,r),b.offset=C,n.styles.push(b)}),n}visitReference(t,r){return{type:pe.Reference,animation:xt(this,Go(t.animation),r),options:Fr(t.options)}}visitAnimateChild(t,r){return r.depCount++,{type:pe.AnimateChild,options:Fr(t.options)}}visitAnimateRef(t,r){return{type:pe.AnimateRef,animation:this.visitReference(t.animation,r),options:Fr(t.options)}}visitQuery(t,r){let n=r.currentQuerySelector,i=t.options||{};r.queryCount++,r.currentQuery=t;let[o,s]=tk(t.selector);r.currentQuerySelector=n.length?n+" "+o:o,Lt(r.collectedStyles,r.currentQuerySelector,new Map);let a=xt(this,Go(t.animation),r);return r.currentQuery=null,r.currentQuerySelector=n,{type:pe.Query,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Fr(t.options)}}visitStagger(t,r){r.currentQuery||r.errors.push(C0());let n=t.timings==="full"?{duration:0,delay:0,easing:"full"}:Cl(t.timings,r.errors,!0);return{type:pe.Stagger,animation:xt(this,Go(t.animation),r),timings:n,options:null}}};function tk(e){let t=!!e.split(/\s*,\s*/).find(r=>r==uS);return t&&(e=e.replace(ek,"")),e=e.replace(/@\*/g,bl).replace(/@\w+/g,r=>bl+"-"+r.slice(1)).replace(/:animating/g,vp),[e,t]}function nk(e){return e?k({},e):null}var Dp=class{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function rk(e){if(typeof e=="string")return null;let t=null;if(Array.isArray(e))e.forEach(r=>{if(r instanceof Map&&r.has("offset")){let n=r;t=parseFloat(n.get("offset")),n.delete("offset")}});else if(e instanceof Map&&e.has("offset")){let r=e;t=parseFloat(r.get("offset")),r.delete("offset")}return t}function ik(e,t){if(e.hasOwnProperty("duration"))return e;if(typeof e=="number"){let o=Cl(e,t).duration;return Ep(o,0,"")}let r=e;if(r.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=Ep(0,0,"");return o.dynamic=!0,o.strValue=r,o}let i=Cl(r,t);return Ep(i.duration,i.delay,i.easing)}function Fr(e){return e?(e=k({},e),e.params&&(e.params=nk(e.params))):e={},e}function Ep(e,t,r){return{duration:e,delay:t,easing:r}}function $p(e,t,r,n,i,o,s=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:r,postStyleProps:n,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}var Yo=class{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,r){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...r)}has(t){return this._map.has(t)}clear(){this._map.clear()}},ok=1,sk=":enter",ak=new RegExp(sk,"g"),lk=":leave",ck=new RegExp(lk,"g");function pS(e,t,r,n,i,o=new Map,s=new Map,a,l,c=[]){return new Op().buildKeyframes(e,t,r,n,i,o,s,a,l,c)}var Op=class{buildKeyframes(t,r,n,i,o,s,a,l,c,u=[]){c=c||new Yo;let d=new Ap(t,r,c,i,o,u,[]);d.options=l;let p=l.delay?kn(l.delay):0;d.currentTimeline.delayNextStep(p),d.currentTimeline.setStyles([s],null,d.errors,l),xt(this,n,d);let _=d.timelines.filter(m=>m.containsAnimation());if(_.length&&a.size){let m;for(let f=_.length-1;f>=0;f--){let S=_[f];if(S.element===r){m=S;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,d.errors,l)}return _.length?_.map(m=>m.buildKeyframes()):[$p(r,[],[],[],0,p,"",!1)]}visitTrigger(t,r){}visitState(t,r){}visitTransition(t,r){}visitAnimateChild(t,r){let n=r.subInstructions.get(r.element);if(n){let i=r.createSubContext(t.options),o=r.currentTimeline.currentTime,s=this._visitSubInstructions(n,i,i.options);o!=s&&r.transformIntoNewTimeline(s)}r.previousNode=t}visitAnimateRef(t,r){let n=r.createSubContext(t.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],r,n),this.visitReference(t.animation,n),r.transformIntoNewTimeline(n.currentTimeline.currentTime),r.previousNode=t}_applyAnimationRefDelays(t,r,n){for(let i of t){let o=i?.delay;if(o){let s=typeof o=="number"?o:kn(Ho(o,i?.params??{},r.errors));n.delayNextStep(s)}}}_visitSubInstructions(t,r,n){let o=r.currentTimeline.currentTime,s=n.duration!=null?kn(n.duration):null,a=n.delay!=null?kn(n.delay):null;return s!==0&&t.forEach(l=>{let c=r.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(t,r){r.updateOptions(t.options,!0),xt(this,t.animation,r),r.previousNode=t}visitSequence(t,r){let n=r.subContextCount,i=r,o=t.options;if(o&&(o.params||o.delay)&&(i=r.createSubContext(o),i.transformIntoNewTimeline(),o.delay!=null)){i.previousNode.type==pe.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Rl);let s=kn(o.delay);i.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>xt(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),r.previousNode=t}visitGroup(t,r){let n=[],i=r.currentTimeline.currentTime,o=t.options&&t.options.delay?kn(t.options.delay):0;t.steps.forEach(s=>{let a=r.createSubContext(t.options);o&&a.delayNextStep(o),xt(this,s,a),i=Math.max(i,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(s=>r.currentTimeline.mergeTimelineCollectedStyles(s)),r.transformIntoNewTimeline(i),r.previousNode=t}_visitTiming(t,r){if(t.dynamic){let n=t.strValue,i=r.params?Ho(n,r.params,r.errors):n;return Cl(i,r.errors)}else return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,r){let n=r.currentAnimateTimings=this._visitTiming(t.timings,r),i=r.currentTimeline;n.delay&&(r.incrementTime(n.delay),i.snapshotCurrentStyles());let o=t.style;o.type==pe.Keyframes?this.visitKeyframes(o,r):(r.incrementTime(n.duration),this.visitStyle(o,r),i.applyStylesToKeyframe()),r.currentAnimateTimings=null,r.previousNode=t}visitStyle(t,r){let n=r.currentTimeline,i=r.currentAnimateTimings;!i&&n.hasCurrentStyleProperties()&&n.forwardFrame();let o=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(o):n.setStyles(t.styles,o,r.errors,r.options),r.previousNode=t}visitKeyframes(t,r){let n=r.currentAnimateTimings,i=r.currentTimeline.duration,o=n.duration,a=r.createSubContext().currentTimeline;a.easing=n.easing,t.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*o),a.setStyles(l.styles,l.easing,r.errors,r.options),a.applyStylesToKeyframe()}),r.currentTimeline.mergeTimelineCollectedStyles(a),r.transformIntoNewTimeline(i+o),r.previousNode=t}visitQuery(t,r){let n=r.currentTimeline.currentTime,i=t.options||{},o=i.delay?kn(i.delay):0;o&&(r.previousNode.type===pe.Style||n==0&&r.currentTimeline.hasCurrentStyleProperties())&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Rl);let s=n,a=r.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,r.errors);r.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{r.currentQueryIndex=u;let d=r.createSubContext(t.options,c);o&&d.delayNextStep(o),c===r.element&&(l=d.currentTimeline),xt(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe();let p=d.currentTimeline.currentTime;s=Math.max(s,p)}),r.currentQueryIndex=0,r.currentQueryTotal=0,r.transformIntoNewTimeline(s),l&&(r.currentTimeline.mergeTimelineCollectedStyles(l),r.currentTimeline.snapshotCurrentStyles()),r.previousNode=t}visitStagger(t,r){let n=r.parentContext,i=r.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(r.currentQueryTotal-1),l=s*r.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime;break}let u=r.currentTimeline;l&&u.delayNextStep(l);let d=u.currentTime;xt(this,t.animation,r),r.previousNode=t,n.currentStaggerTime=i.currentTime-d+(i.startTime-n.currentTimeline.startTime)}},Rl={},Ap=class e{constructor(t,r,n,i,o,s,a,l){this._driver=t,this.element=r,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Rl,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Il(this._driver,r,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,r){if(!t)return;let n=t,i=this.options;n.duration!=null&&(i.duration=kn(n.duration)),n.delay!=null&&(i.delay=kn(n.delay));let o=n.params;if(o){let s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!r||!s.hasOwnProperty(a))&&(s[a]=Ho(o[a],s,this.errors))})}}_copyOptions(){let t={};if(this.options){let r=this.options.params;if(r){let n=t.params={};Object.keys(r).forEach(i=>{n[i]=r[i]})}}return t}createSubContext(t=null,r,n){let i=r||this.element,o=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=Rl,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,r,n){let i={duration:r??t.duration,delay:this.currentTimeline.currentTime+(n??0)+t.delay,easing:""},o=new Mp(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,r,n,i,o,s){let a=[];if(i&&a.push(this.element),t.length>0){t=t.replace(ak,"."+this._enterClassName),t=t.replace(ck,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,t,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!o&&a.length==0&&s.push(y0(r)),a}},Il=class e{constructor(t,r,n,i){this._driver=t,this.element=r,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(r),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(r,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){let r=this._keyframes.size===1&&this._pendingStyles.size;this.duration||r?(this.forwardTime(this.currentTime+t),r&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,r){return this.applyStylesToKeyframe(),new e(this._driver,t,r||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=ok,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,r){this._localTimelineStyles.set(t,r),this._globalTimelineStyles.set(t,r),this._styleSummary.set(t,{time:this.currentTime,value:r})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[r,n]of this._globalTimelineStyles)this._backFill.set(r,n||gn),this._currentKeyframe.set(r,gn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,r,n,i){r&&this._previousKeyframe.set("easing",r);let o=i&&i.params||{},s=uk(t,this._globalTimelineStyles);for(let[a,l]of s){let c=Ho(l,o,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??gn),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,r)=>{this._currentKeyframe.set(r,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,r)=>{this._currentKeyframe.has(r)||this._currentKeyframe.set(r,t)}))}snapshotCurrentStyles(){for(let[t,r]of this._localTimelineStyles)this._pendingStyles.set(t,r),this._updateStyle(t,r)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let t=[];for(let r in this._currentKeyframe)t.push(r);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((r,n)=>{let i=this._styleSummary.get(n);(!i||r.time>i.time)&&this._updateStyle(n,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,r=new Set,n=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((u,d)=>{u===fl?t.add(d):u===gn&&r.add(d)}),n||c.set("offset",l/this.duration),i.push(c)});let o=[...t.values()],s=[...r.values()];if(n){let a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return $p(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}},Mp=class extends Il{constructor(t,r,n,i,o,s,a=!1){super(t,r,s.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:r,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&r){let o=[],s=n+r,a=r/s,l=new Map(t[0]);l.set("offset",0),o.push(l);let c=new Map(t[0]);c.set("offset",jE(a)),o.push(c);let u=t.length-1;for(let d=1;d<=u;d++){let p=new Map(t[d]),_=p.get("offset"),m=r+_*n;p.set("offset",jE(m/s)),o.push(p)}n=s,r=0,i="",t=o}return $p(this.element,t,this.preStyleProps,this.postStyleProps,n,r,i,!0)}};function jE(e,t=3){let r=Math.pow(10,t-1);return Math.round(e*r)/r}function uk(e,t){let r=new Map,n;return e.forEach(i=>{if(i==="*"){n??=t.keys();for(let o of n)r.set(o,gn)}else for(let[o,s]of i)r.set(o,s)}),r}function ZE(e,t,r,n,i,o,s,a,l,c,u,d,p){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:r,fromStyles:o,toState:n,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:p}}var Sp={},Nl=class{constructor(t,r,n){this._triggerName=t,this.ast=r,this._stateStyles=n}match(t,r,n,i){return dk(this.ast.matchers,t,r,n,i)}buildStyles(t,r,n){let i=this._stateStyles.get("*");return t!==void 0&&(i=this._stateStyles.get(t?.toString())||i),i?i.buildStyles(r,n):new Map}build(t,r,n,i,o,s,a,l,c,u){let d=[],p=this.ast.options&&this.ast.options.params||Sp,_=a&&a.params||Sp,m=this.buildStyles(n,_,d),f=l&&l.params||Sp,S=this.buildStyles(i,f,d),b=new Set,D=new Map,C=new Map,y=i==="void",M={params:_S(f,p),delay:this.ast.options?.delay},x=u?[]:pS(t,r,this.ast.animation,o,s,m,S,M,c,d),U=0;return x.forEach(q=>{U=Math.max(q.duration+q.delay,U)}),d.length?ZE(r,this._triggerName,n,i,y,m,S,[],[],D,C,U,d):(x.forEach(q=>{let J=q.element,H=Lt(D,J,new Set);q.preStyleProps.forEach(xe=>H.add(xe));let Ne=Lt(C,J,new Set);q.postStyleProps.forEach(xe=>Ne.add(xe)),J!==r&&b.add(J)}),ZE(r,this._triggerName,n,i,y,m,S,x,[...b.values()],D,C,U))}};function dk(e,t,r,n,i){return e.some(o=>o(t,r,n,i))}function _S(e,t){let r=k({},t);return Object.entries(e).forEach(([n,i])=>{i!=null&&(r[n]=i)}),r}var wp=class{constructor(t,r,n){this.styles=t,this.defaultParams=r,this.normalizer=n}buildStyles(t,r){let n=new Map,i=_S(t,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=Ho(s,i,r));let l=this.normalizer.normalizePropertyName(a,r);s=this.normalizer.normalizeStyleValue(a,l,s,r),n.set(a,s)})}),n}};function pk(e,t,r){return new xp(e,t,r)}var xp=class{constructor(t,r,n){this.name=t,this.ast=r,this._normalizer=n,this.transitionFactories=[],this.states=new Map,r.states.forEach(i=>{let o=i.options&&i.options.params||{};this.states.set(i.name,new wp(i.style,o,n))}),XE(this.states,"true","1"),XE(this.states,"false","0"),r.transitions.forEach(i=>{this.transitionFactories.push(new Nl(t,i,this.states))}),this.fallbackTransition=_k(t,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,r,n,i){return this.transitionFactories.find(s=>s.match(t,r,n,i))||null}matchStyles(t,r,n){return this.fallbackTransition.buildStyles(t,r,n)}};function _k(e,t,r){let n=[(s,a)=>!0],i={type:pe.Sequence,steps:[],options:null},o={type:pe.Transition,animation:i,matchers:n,options:null,queryCount:0,depCount:0};return new Nl(e,o,t)}function XE(e,t,r){e.has(t)?e.has(r)||e.set(r,e.get(t)):e.has(r)&&e.set(t,e.get(r))}var mk=new Yo,Lp=class{constructor(t,r,n){this.bodyNode=t,this._driver=r,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,r){let n=[],i=[],o=dS(this._driver,r,n,i);if(n.length)throw D0(n);i.length&&void 0,this._animations.set(t,o)}_buildPlayer(t,r,n){let i=t.element,o=iS(this._normalizer,t.keyframes,r,n);return this._driver.animate(i,o,t.duration,t.delay,t.easing,[],!0)}create(t,r,n={}){let i=[],o=this._animations.get(t),s,a=new Map;if(o?(s=pS(this._driver,r,o,lS,yp,new Map,new Map,n,mk,i),s.forEach(u=>{let d=Lt(a,u.element,new Map);u.postStyleProps.forEach(p=>d.set(p,null))})):(i.push(O0()),s=[]),i.length)throw A0(i);a.forEach((u,d)=>{u.forEach((p,_)=>{u.set(_,this._driver.computeStyle(d,_,gn))})});let l=s.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),c=er(l);return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){let r=this._getPlayer(t);r.destroy(),this._playersById.delete(t);let n=this.players.indexOf(r);n>=0&&this.players.splice(n,1)}_getPlayer(t){let r=this._playersById.get(t);if(!r)throw M0(t);return r}listen(t,r,n,i){let o=Gp(r,"","","");return Bp(this._getPlayer(t),n,o,i),()=>{}}command(t,r,n,i){if(n=="register"){this.register(t,i[0]);return}if(n=="create"){let s=i[0]||{};this.create(t,r,s);return}let o=this._getPlayer(t);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t);break}}},JE="ng-animate-queued",fk=".ng-animate-queued",Tp="ng-animate-disabled",gk=".ng-animate-disabled",hk="ng-star-inserted",Ek=".ng-star-inserted",Sk=[],mS={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Tk={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},on="__ng_removed",qo=class{get params(){return this.options.params}constructor(t,r=""){this.namespaceId=r;let n=t&&t.hasOwnProperty("value"),i=n?t.value:t;if(this.value=Ck(i),n){let o=t,{value:s}=o,a=gm(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){let r=t.params;if(r){let n=this.options.params;Object.keys(r).forEach(i=>{n[i]==null&&(n[i]=r[i])})}}},Vo="void",bp=new qo(Vo),Pp=class{constructor(t,r,n){this.id=t,this.hostElement=r,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Ht(r,this._hostClassName)}listen(t,r,n,i){if(!this._triggers.has(r))throw w0(n,r);if(n==null||n.length==0)throw x0(r);if(!yk(n))throw L0(n,r);let o=Lt(this._elementListeners,t,[]),s={name:r,phase:n,callback:i};o.push(s);let a=Lt(this._engine.statesByElement,t,new Map);return a.has(r)||(Ht(t,gl),Ht(t,gl+"-"+r),a.set(r,bp)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(r)||a.delete(r)})}}register(t,r){return this._triggers.has(t)?!1:(this._triggers.set(t,r),!0)}_getTrigger(t){let r=this._triggers.get(t);if(!r)throw P0(t);return r}trigger(t,r,n,i=!0){let o=this._getTrigger(r),s=new $o(this.id,r,t),a=this._engine.statesByElement.get(t);a||(Ht(t,gl),Ht(t,gl+"-"+r),this._engine.statesByElement.set(t,a=new Map));let l=a.get(r),c=new qo(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(r,c),l||(l=bp),!(c.value===Vo)&&l.value===c.value){if(!Ik(l.params,c.params)){let f=[],S=o.matchStyles(l.value,l.params,f),b=o.matchStyles(c.value,c.params,f);f.length?this._engine.reportError(f):this._engine.afterFlush(()=>{Ur(t,S),hn(t,b)})}return}let p=Lt(this._engine.playersByElement,t,[]);p.forEach(f=>{f.namespaceId==this.id&&f.triggerName==r&&f.queued&&f.destroy()});let _=o.matchTransition(l.value,c.value,t,c.params),m=!1;if(!_){if(!i)return;_=o.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:r,transition:_,fromState:l,toState:c,player:s,isFallbackTransition:m}),m||(Ht(t,JE),s.onStart(()=>{xi(t,JE)})),s.onDone(()=>{let f=this.players.indexOf(s);f>=0&&this.players.splice(f,1);let S=this._engine.playersByElement.get(t);if(S){let b=S.indexOf(s);b>=0&&S.splice(b,1)}}),this.players.push(s),p.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(r=>r.delete(t)),this._elementListeners.forEach((r,n)=>{this._elementListeners.set(n,r.filter(i=>i.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);let r=this._engine.playersByElement.get(t);r&&(r.forEach(n=>n.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,r){let n=this._engine.driver.query(t,bl,!0);n.forEach(i=>{if(i[on])return;let o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(s=>s.triggerLeaveAnimation(i,r,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(t,r,n,i){let o=this._engine.statesByElement.get(t),s=new Map;if(o){let a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){let u=this.trigger(t,c,Vo,i);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,r,s),n&&er(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){let r=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(r&&n){let i=new Set;r.forEach(o=>{let s=o.name;if(i.has(s))return;i.add(s);let l=this._triggers.get(s).fallbackTransition,c=n.get(s)||bp,u=new qo(Vo),d=new $o(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,r){let n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,r),this.triggerLeaveAnimation(t,r,!0))return;let i=!1;if(n.totalAnimations){let o=n.players.length?n.playersByQueriedElement.get(t):[];if(o&&o.length)i=!0;else{let s=t;for(;s=s.parentNode;)if(n.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,r);else{let o=t[on];(!o||o===mS)&&(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,r))}}insertNode(t,r){Ht(t,this._hostClassName)}drainQueuedTransitions(t){let r=[];return this._queue.forEach(n=>{let i=n.player;if(i.destroyed)return;let o=n.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==n.triggerName){let l=Gp(o,n.triggerName,n.fromState.value,n.toState.value);l._data=t,Bp(n.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):r.push(n)}),this._queue=[],r.sort((n,i)=>{let o=n.transition.ast.depCount,s=i.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(n.element,i.element)?1:-1})}destroy(t){this.players.forEach(r=>r.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}},kp=class{_onRemovalComplete(t,r){this.onRemovalComplete(t,r)}constructor(t,r,n,i){this.bodyNode=t,this.driver=r,this._normalizer=n,this.scheduler=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,s)=>{}}get queuedPlayers(){let t=[];return this._namespaceList.forEach(r=>{r.players.forEach(n=>{n.queued&&t.push(n)})}),t}createNamespace(t,r){let n=new Pp(t,r,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,r)?this._balanceNamespaceList(n,r):(this.newHostElements.set(r,n),this.collectEnterElement(r)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,r){let n=this._namespaceList,i=this.namespacesByHostElement;if(n.length-1>=0){let s=!1,a=this.driver.getParentElement(r);for(;a;){let l=i.get(a);if(l){let c=n.indexOf(l);n.splice(c+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||n.unshift(t)}else n.push(t);return i.set(r,t),t}register(t,r){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,r)),n}registerTrigger(t,r,n){let i=this._namespaceLookup[t];i&&i.register(r,n)&&this.totalAnimations++}destroy(t,r){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(t);this.namespacesByHostElement.delete(n.hostElement);let i=this._namespaceList.indexOf(n);i>=0&&this._namespaceList.splice(i,1),n.destroy(r),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){let r=new Set,n=this.statesByElement.get(t);if(n){for(let i of n.values())if(i.namespaceId){let o=this._fetchNamespace(i.namespaceId);o&&r.add(o)}}return r}trigger(t,r,n,i){if(Sl(r)){let o=this._fetchNamespace(t);if(o)return o.trigger(r,n,i),!0}return!1}insertNode(t,r,n,i){if(!Sl(r))return;let o=r[on];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(r);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){let s=this._fetchNamespace(t);s&&s.insertNode(r,n)}i&&this.collectEnterElement(r)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,r){r?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Ht(t,Tp)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),xi(t,Tp))}removeNode(t,r,n){if(Sl(r)){this.scheduler?.notify();let i=t?this._fetchNamespace(t):null;i?i.removeNode(r,n):this.markElementAsRemoved(t,r,!1,n);let o=this.namespacesByHostElement.get(r);o&&o.id!==t&&o.removeNode(r,n)}else this._onRemovalComplete(r,n)}markElementAsRemoved(t,r,n,i,o){this.collectedLeaveElements.push(r),r[on]={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,r,n,i,o){return Sl(r)?this._fetchNamespace(t).listen(r,n,i,o):()=>{}}_buildInstruction(t,r,n,i,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,r,o)}destroyInnerAnimations(t){let r=this.driver.query(t,bl,!0);r.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(r=this.driver.query(t,vp,!0),r.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(t){let r=this.playersByElement.get(t);r&&r.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(t){let r=this.playersByQueriedElement.get(t);r&&r.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return er(this.players).onDone(()=>t());t()})}processLeaveNode(t){let r=t[on];if(r&&r.setForRemoval){if(t[on]=mS,r.namespaceId){this.destroyInnerAnimations(t);let n=this._fetchNamespace(r.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,r.setForRemoval)}t.classList?.contains(Tp)&&this.markElementAsDisabled(t,!1),this.driver.query(t,gk,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(t=-1){let r=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,i)=>this._balanceNamespaceList(n,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],r.length?er(r).onDone(()=>{n.forEach(i=>i())}):n.forEach(i=>i())}}reportError(t){throw k0(t)}_flushAnimations(t,r){let n=new Yo,i=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(A=>{u.add(A);let E=this.driver.query(A,fk,!0);for(let T=0;T{let T=lS+f++;m.set(E,T),A.forEach(I=>Ht(I,T))});let S=[],b=new Set,D=new Set;for(let A=0;Ab.add(I)):D.add(E))}let C=new Map,y=nS(p,Array.from(b));y.forEach((A,E)=>{let T=yp+f++;C.set(E,T),A.forEach(I=>Ht(I,T))}),t.push(()=>{_.forEach((A,E)=>{let T=m.get(E);A.forEach(I=>xi(I,T))}),y.forEach((A,E)=>{let T=C.get(E);A.forEach(I=>xi(I,T))}),S.forEach(A=>{this.processLeaveNode(A)})});let M=[],x=[];for(let A=this._namespaceList.length-1;A>=0;A--)this._namespaceList[A].drainQueuedTransitions(r).forEach(T=>{let I=T.player,B=T.element;if(M.push(I),this.collectedEnterElements.length){let Pe=B[on];if(Pe&&Pe.setForMove){if(Pe.previousTriggersValues&&Pe.previousTriggersValues.has(T.triggerName)){let dt=Pe.previousTriggersValues.get(T.triggerName),$e=this.statesByElement.get(T.element);if($e&&$e.has(T.triggerName)){let $t=$e.get(T.triggerName);$t.value=dt,$e.set(T.triggerName,$t)}}I.destroy();return}}let z=!d||!this.driver.containsElement(d,B),W=C.get(B),Te=m.get(B),_e=this._buildInstruction(T,n,Te,W,z);if(_e.errors&&_e.errors.length){x.push(_e);return}if(z){I.onStart(()=>Ur(B,_e.fromStyles)),I.onDestroy(()=>hn(B,_e.toStyles)),i.push(I);return}if(T.isFallbackTransition){I.onStart(()=>Ur(B,_e.fromStyles)),I.onDestroy(()=>hn(B,_e.toStyles)),i.push(I);return}let Ve=[];_e.timelines.forEach(Pe=>{Pe.stretchStartingKeyframe=!0,this.disabledNodes.has(Pe.element)||Ve.push(Pe)}),_e.timelines=Ve,n.append(B,_e.timelines);let We={instruction:_e,player:I,element:B};s.push(We),_e.queriedElements.forEach(Pe=>Lt(a,Pe,[]).push(I)),_e.preStyleProps.forEach((Pe,dt)=>{if(Pe.size){let $e=l.get(dt);$e||l.set(dt,$e=new Set),Pe.forEach(($t,Bn)=>$e.add(Bn))}}),_e.postStyleProps.forEach((Pe,dt)=>{let $e=c.get(dt);$e||c.set(dt,$e=new Set),Pe.forEach(($t,Bn)=>$e.add(Bn))})});if(x.length){let A=[];x.forEach(E=>{A.push(F0(E.triggerName,E.errors))}),M.forEach(E=>E.destroy()),this.reportError(A)}let U=new Map,q=new Map;s.forEach(A=>{let E=A.element;n.has(E)&&(q.set(E,E),this._beforeAnimationBuild(A.player.namespaceId,A.instruction,U))}),i.forEach(A=>{let E=A.element;this._getPreviousPlayers(E,!1,A.namespaceId,A.triggerName,null).forEach(I=>{Lt(U,E,[]).push(I),I.destroy()})});let J=S.filter(A=>rS(A,l,c)),H=new Map;tS(H,this.driver,D,c,gn).forEach(A=>{rS(A,l,c)&&J.push(A)});let xe=new Map;_.forEach((A,E)=>{tS(xe,this.driver,new Set(A),l,fl)}),J.forEach(A=>{let E=H.get(A),T=xe.get(A);H.set(A,new Map([...E?.entries()??[],...T?.entries()??[]]))});let Le=[],De=[],Ge={};s.forEach(A=>{let{element:E,player:T,instruction:I}=A;if(n.has(E)){if(u.has(E)){T.onDestroy(()=>hn(E,I.toStyles)),T.disabled=!0,T.overrideTotalTime(I.totalTime),i.push(T);return}let B=Ge;if(q.size>1){let W=E,Te=[];for(;W=W.parentNode;){let _e=q.get(W);if(_e){B=_e;break}Te.push(W)}Te.forEach(_e=>q.set(_e,B))}let z=this._buildAnimation(T.namespaceId,I,U,o,xe,H);if(T.setRealPlayer(z),B===Ge)Le.push(T);else{let W=this.playersByElement.get(B);W&&W.length&&(T.parentPlayer=er(W)),i.push(T)}}else Ur(E,I.fromStyles),T.onDestroy(()=>hn(E,I.toStyles)),De.push(T),u.has(E)&&i.push(T)}),De.forEach(A=>{let E=o.get(A.element);if(E&&E.length){let T=er(E);A.setRealPlayer(T)}}),i.forEach(A=>{A.parentPlayer?A.syncPlayerEvents(A.parentPlayer):A.destroy()});for(let A=0;A!z.destroyed);B.length?vk(this,E,B):this.processLeaveNode(E)}return S.length=0,Le.forEach(A=>{this.players.push(A),A.onDone(()=>{A.destroy();let E=this.players.indexOf(A);this.players.splice(E,1)}),A.play()}),Le}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,r,n,i,o){let s=[];if(r){let a=this.playersByQueriedElement.get(t);a&&(s=a)}else{let a=this.playersByElement.get(t);if(a){let l=!o||o==Vo;a.forEach(c=>{c.queued||!l&&c.triggerName!=i||s.push(c)})}}return(n||i)&&(s=s.filter(a=>!(n&&n!=a.namespaceId||i&&i!=a.triggerName))),s}_beforeAnimationBuild(t,r,n){let i=r.triggerName,o=r.element,s=r.isRemovalTransition?void 0:t,a=r.isRemovalTransition?void 0:i;for(let l of r.timelines){let c=l.element,u=c!==o,d=Lt(n,c,[]);this._getPreviousPlayers(c,u,s,a,r.toState).forEach(_=>{let m=_.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),_.destroy(),d.push(_)})}Ur(o,r.fromStyles)}_buildAnimation(t,r,n,i,o,s){let a=r.triggerName,l=r.element,c=[],u=new Set,d=new Set,p=r.timelines.map(m=>{let f=m.element;u.add(f);let S=f[on];if(S&&S.removedBeforeQueried)return new Jn(m.duration,m.delay);let b=f!==l,D=Rk((n.get(f)||Sk).map(U=>U.getRealPlayer())).filter(U=>{let q=U;return q.element?q.element===f:!1}),C=o.get(f),y=s.get(f),M=iS(this._normalizer,m.keyframes,C,y),x=this._buildPlayer(m,M,D);if(m.subTimeline&&i&&d.add(f),b){let U=new $o(t,a,f);U.setRealPlayer(x),c.push(U)}return x});c.forEach(m=>{Lt(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>bk(this.playersByQueriedElement,m.element,m))}),u.forEach(m=>Ht(m,WE));let _=er(p);return _.onDestroy(()=>{u.forEach(m=>xi(m,WE)),hn(l,r.toStyles)}),d.forEach(m=>{Lt(i,m,[]).push(_)}),_}_buildPlayer(t,r,n){return r.length>0?this.driver.animate(t.element,r,t.duration,t.delay,t.easing,n):new Jn(t.duration,t.delay)}},$o=class{constructor(t,r,n){this.namespaceId=t,this.triggerName=r,this.element=n,this._player=new Jn,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((r,n)=>{r.forEach(i=>Bp(t,n,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){let r=this._player;r.triggerCallback&&t.onStart(()=>r.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,r){Lt(this._queuedCallbacks,t,[]).push(r)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){let r=this._player;r.triggerCallback&&r.triggerCallback(t)}};function bk(e,t,r){let n=e.get(t);if(n){if(n.length){let i=n.indexOf(r);n.splice(i,1)}n.length==0&&e.delete(t)}return n}function Ck(e){return e??null}function Sl(e){return e&&e.nodeType===1}function yk(e){return e=="start"||e=="done"}function eS(e,t){let r=e.style.display;return e.style.display=t??"none",r}function tS(e,t,r,n,i){let o=[];r.forEach(l=>o.push(eS(l)));let s=[];n.forEach((l,c)=>{let u=new Map;l.forEach(d=>{let p=t.computeStyle(c,d,i);u.set(d,p),(!p||p.length==0)&&(c[on]=Tk,s.push(c))}),e.set(c,u)});let a=0;return r.forEach(l=>eS(l,o[a++])),s}function nS(e,t){let r=new Map;if(e.forEach(a=>r.set(a,[])),t.length==0)return r;let n=1,i=new Set(t),o=new Map;function s(a){if(!a)return n;let l=o.get(a);if(l)return l;let c=a.parentNode;return r.has(c)?l=c:i.has(c)?l=n:l=s(c),o.set(a,l),l}return t.forEach(a=>{let l=s(a);l!==n&&r.get(l).push(a)}),r}function Ht(e,t){e.classList?.add(t)}function xi(e,t){e.classList?.remove(t)}function vk(e,t,r){er(r).onDone(()=>e.processLeaveNode(t))}function Rk(e){let t=[];return fS(e,t),t}function fS(e,t){for(let r=0;ri.add(o)):t.set(e,n),r.delete(e),!0}var Pi=class{constructor(t,r,n,i){this._driver=r,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(o,s)=>{},this._transitionEngine=new kp(t.body,r,n,i),this._timelineEngine=new Lp(t.body,r,n),this._transitionEngine.onRemovalComplete=(o,s)=>this.onRemovalComplete(o,s)}registerTrigger(t,r,n,i,o){let s=t+"-"+i,a=this._triggerCache[s];if(!a){let l=[],c=[],u=dS(this._driver,o,l,c);if(l.length)throw I0(i,l);c.length&&void 0,a=pk(i,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(r,i,a)}register(t,r){this._transitionEngine.register(t,r)}destroy(t,r){this._transitionEngine.destroy(t,r)}onInsert(t,r,n,i){this._transitionEngine.insertNode(t,r,n,i)}onRemove(t,r,n){this._transitionEngine.removeNode(t,r,n)}disableAnimations(t,r){this._transitionEngine.markElementAsDisabled(t,r)}process(t,r,n,i){if(n.charAt(0)=="@"){let[o,s]=$E(n),a=i;this._timelineEngine.command(o,r,s,a)}else this._transitionEngine.trigger(t,r,n,i)}listen(t,r,n,i,o){if(n.charAt(0)=="@"){let[s,a]=$E(n);return this._timelineEngine.listen(s,r,a,o)}return this._transitionEngine.listen(t,r,n,i,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}};function Nk(e,t){let r=null,n=null;return Array.isArray(t)&&t.length?(r=Cp(t[0]),t.length>1&&(n=Cp(t[t.length-1]))):t instanceof Map&&(r=Cp(t)),r||n?new Fp(e,r,n):null}var Li=class Li{constructor(t,r,n){this._element=t,this._startStyles=r,this._endStyles=n,this._state=0;let i=Li.initialStylesByElement.get(t);i||Li.initialStylesByElement.set(t,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&hn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(hn(this._element,this._initialStyles),this._endStyles&&(hn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Li.initialStylesByElement.delete(this._element),this._startStyles&&(Ur(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ur(this._element,this._endStyles),this._endStyles=null),hn(this._element,this._initialStyles),this._state=3)}};Li.initialStylesByElement=new WeakMap;var Fp=Li;function Cp(e){let t=null;return e.forEach((r,n)=>{Dk(n)&&(t=t||new Map,t.set(n,r))}),t}function Dk(e){return e==="display"||e==="position"}var Dl=class{constructor(t,r,n,i){this.element=t,this.keyframes=r,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map;let r=()=>this._onFinish();this.domPlayer.addEventListener("finish",r),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",r)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){let r=[];return t.forEach(n=>{r.push(Object.fromEntries(n))}),r}_triggerWebAnimation(t,r,n){return t.animate(this._convertKeyframesToObject(r),n)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,i)=>{i!=="offset"&&t.set(i,this._finished?n:qp(this.element,i))}),this.currentSnapshot=t}triggerCallback(t){let r=t==="start"?this._onStartFns:this._onDoneFns;r.forEach(n=>n()),r.length=0}},Ol=class{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,r){return!1}containsElement(t,r){return oS(t,r)}getParentElement(t){return Vp(t)}query(t,r,n){return sS(t,r,n)}computeStyle(t,r,n){return qp(t,r)}animate(t,r,n,i,o,s=[]){let a=i==0?"both":"forwards",l={duration:n,delay:i,fill:a};o&&(l.easing=o);let c=new Map,u=s.filter(_=>_ instanceof Dl);K0(n,i)&&u.forEach(_=>{_.currentSnapshot.forEach((m,f)=>c.set(f,m))});let d=$0(r).map(_=>new Map(_));d=Q0(t,d,c);let p=Nk(t,d);return new Dl(t,d,l,p)}};var Tl="@",gS="@.disabled",Al=class{constructor(t,r,n,i){this.namespaceId=t,this.delegate=r,this.engine=n,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(t){this.delegate.destroyNode?.(t)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(t,r){return this.delegate.createElement(t,r)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,r){this.delegate.appendChild(t,r),this.engine.onInsert(this.namespaceId,r,t,!1)}insertBefore(t,r,n,i=!0){this.delegate.insertBefore(t,r,n),this.engine.onInsert(this.namespaceId,r,t,i)}removeChild(t,r,n){this.engine.onRemove(this.namespaceId,r,this.delegate)}selectRootElement(t,r){return this.delegate.selectRootElement(t,r)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,r,n,i){this.delegate.setAttribute(t,r,n,i)}removeAttribute(t,r,n){this.delegate.removeAttribute(t,r,n)}addClass(t,r){this.delegate.addClass(t,r)}removeClass(t,r){this.delegate.removeClass(t,r)}setStyle(t,r,n,i){this.delegate.setStyle(t,r,n,i)}removeStyle(t,r,n){this.delegate.removeStyle(t,r,n)}setProperty(t,r,n){r.charAt(0)==Tl&&r==gS?this.disableAnimations(t,!!n):this.delegate.setProperty(t,r,n)}setValue(t,r){this.delegate.setValue(t,r)}listen(t,r,n){return this.delegate.listen(t,r,n)}disableAnimations(t,r){this.engine.disableAnimations(t,r)}},Up=class extends Al{constructor(t,r,n,i,o){super(r,n,i,o),this.factory=t,this.namespaceId=r}setProperty(t,r,n){r.charAt(0)==Tl?r.charAt(1)=="."&&r==gS?(n=n===void 0?!0:!!n,this.disableAnimations(t,n)):this.engine.process(this.namespaceId,t,r.slice(1),n):this.delegate.setProperty(t,r,n)}listen(t,r,n){if(r.charAt(0)==Tl){let i=Ok(t),o=r.slice(1),s="";return o.charAt(0)!=Tl&&([o,s]=Ak(o)),this.engine.listen(this.namespaceId,i,o,s,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,n,a)})}return this.delegate.listen(t,r,n)}};function Ok(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}function Ak(e){let t=e.indexOf("."),r=e.substring(0,t),n=e.slice(t+1);return[r,n]}var Ml=class{constructor(t,r,n){this.delegate=t,this.engine=r,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,r.onRemovalComplete=(i,o)=>{let s=o?.parentNode(i);s&&o.removeChild(s,i)}}createRenderer(t,r){let n="",i=this.delegate.createRenderer(t,r);if(!t||!r?.data?.animation){let c=this._rendererCache,u=c.get(i);if(!u){let d=()=>c.delete(i);u=new Al(n,i,this.engine,d),c.set(i,u)}return u}let o=r.id,s=r.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(o,s,t,c.name,c)};return r.data.animation.forEach(a),new Up(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,r,n){if(t>=0&&tr(n));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),i.push([r,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var wk=(()=>{let t=class t extends Pi{constructor(n,i,o){super(n,i,o,w(bo,{optional:!0}))}ngOnDestroy(){this.flush()}};t.\u0275fac=function(i){return new(i||t)(K(rt),K(Br),K(Gr))},t.\u0275prov=Y({token:t,factory:t.\u0275fac});let e=t;return e})();function xk(){return new yl}function Lk(e,t,r){return new Ml(e,t,r)}var ES=[{provide:Gr,useFactory:xk},{provide:Pi,useClass:wk},{provide:Rr,useFactory:Lk,deps:[_l,Pi,ye]}],hS=[{provide:Br,useFactory:()=>new Ol},{provide:Dd,useValue:"BrowserAnimations"},...ES],Pk=[{provide:Br,useClass:Hp},{provide:Dd,useValue:"NoopAnimations"},...ES],SS=(()=>{let t=class t{static withConfig(n){return{ngModule:t,providers:n.disableAnimations?Pk:hS}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=mt({type:t}),t.\u0275inj=_t({providers:hS,imports:[VE]});let e=t;return e})();var se="primary",ss=Symbol("RouteTitle"),Zp=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let r=this.params[t];return Array.isArray(r)?r[0]:r}return null}getAll(t){if(this.has(t)){let r=this.params[t];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function Gi(e){return new Zp(e)}function kk(e,t,r){let n=r.path.split("/");if(n.length>e.length||r.pathMatch==="full"&&(t.hasChildren()||n.lengthn[o]===i)}else return e===t}function IS(e){return e.length>0?e[e.length-1]:null}function rr(e){return lo(e)?e:Lr(e)?Ye(Promise.resolve(e)):te(e)}var Uk={exact:DS,subset:OS},NS={exact:Bk,subset:Gk,ignored:()=>!0};function TS(e,t,r){return Uk[r.paths](e.root,t.root,r.matrixParams)&&NS[r.queryParams](e.queryParams,t.queryParams)&&!(r.fragment==="exact"&&e.fragment!==t.fragment)}function Bk(e,t){return En(e,t)}function DS(e,t,r){if(!Hr(e.segments,t.segments)||!Ll(e.segments,t.segments,r)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let n in t.children)if(!e.children[n]||!DS(e.children[n],t.children[n],r))return!1;return!0}function Gk(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(r=>RS(e[r],t[r]))}function OS(e,t,r){return AS(e,t,t.segments,r)}function AS(e,t,r,n){if(e.segments.length>r.length){let i=e.segments.slice(0,r.length);return!(!Hr(i,r)||t.hasChildren()||!Ll(i,r,n))}else if(e.segments.length===r.length){if(!Hr(e.segments,r)||!Ll(e.segments,r,n))return!1;for(let i in t.children)if(!e.children[i]||!OS(e.children[i],t.children[i],n))return!1;return!0}else{let i=r.slice(0,e.segments.length),o=r.slice(e.segments.length);return!Hr(e.segments,i)||!Ll(e.segments,i,n)||!e.children[se]?!1:AS(e.children[se],t,o,n)}}function Ll(e,t,r){return t.every((n,i)=>NS[r](e[i].parameters,n.parameters))}var tr=class{constructor(t=new ve([],{}),r={},n=null){this.root=t,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Gi(this.queryParams),this._queryParamMap}toString(){return Yk.serialize(this)}},ve=class{constructor(t,r){this.segments=t,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Pl(this)}},Vr=class{constructor(t,r){this.path=t,this.parameters=r}get parameterMap(){return this._parameterMap??=Gi(this.parameters),this._parameterMap}toString(){return wS(this)}};function Vk(e,t){return Hr(e,t)&&e.every((r,n)=>En(r.parameters,t[n].parameters))}function Hr(e,t){return e.length!==t.length?!1:e.every((r,n)=>r.path===t[n].path)}function Hk(e,t){let r=[];return Object.entries(e.children).forEach(([n,i])=>{n===se&&(r=r.concat(t(i,n)))}),Object.entries(e.children).forEach(([n,i])=>{n!==se&&(r=r.concat(t(i,n)))}),r}var v_=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:()=>new Fl,providedIn:"root"});let e=t;return e})(),Fl=class{parse(t){let r=new e_(t);return new tr(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(t){let r=`/${zo(t.root,!0)}`,n=zk(t.queryParams),i=typeof t.fragment=="string"?`#${qk(t.fragment)}`:"";return`${r}${n}${i}`}},Yk=new Fl;function Pl(e){return e.segments.map(t=>wS(t)).join("/")}function zo(e,t){if(!e.hasChildren())return Pl(e);if(t){let r=e.children[se]?zo(e.children[se],!1):"",n=[];return Object.entries(e.children).forEach(([i,o])=>{i!==se&&n.push(`${i}:${zo(o,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=Hk(e,(n,i)=>i===se?[zo(e.children[se],!1)]:[`${i}:${zo(n,!1)}`]);return Object.keys(e.children).length===1&&e.children[se]!=null?`${Pl(e)}/${r[0]}`:`${Pl(e)}/(${r.join("//")})`}}function MS(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function wl(e){return MS(e).replace(/%3B/gi,";")}function qk(e){return encodeURI(e)}function Jp(e){return MS(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function kl(e){return decodeURIComponent(e)}function bS(e){return kl(e.replace(/\+/g,"%20"))}function wS(e){return`${Jp(e.path)}${$k(e.parameters)}`}function $k(e){return Object.entries(e).map(([t,r])=>`;${Jp(t)}=${Jp(r)}`).join("")}function zk(e){let t=Object.entries(e).map(([r,n])=>Array.isArray(n)?n.map(i=>`${wl(r)}=${wl(i)}`).join("&"):`${wl(r)}=${wl(n)}`).filter(r=>r);return t.length?`?${t.join("&")}`:""}var Wk=/^[^\/()?;#]+/;function Wp(e){let t=e.match(Wk);return t?t[0]:""}var Kk=/^[^\/()?;=#]+/;function Qk(e){let t=e.match(Kk);return t?t[0]:""}var jk=/^[^=?&#]+/;function Zk(e){let t=e.match(jk);return t?t[0]:""}var Xk=/^[^&#]+/;function Jk(e){let t=e.match(Xk);return t?t[0]:""}var e_=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new ve([],{}):new ve([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(r).length>0)&&(n[se]=new ve(t,r)),n}parseSegment(){let t=Wp(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new N(4009,!1);return this.capture(t),new Vr(kl(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let r=Qk(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let i=Wp(this.remaining);i&&(n=i,this.capture(n))}t[kl(r)]=kl(n)}parseQueryParam(t){let r=Zk(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=Jk(this.remaining);s&&(n=s,this.capture(n))}let i=bS(r),o=bS(n);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Wp(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new N(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=se);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[se]:new ve([],s),this.consumeOptional("//")}return r}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new N(4011,!1)}};function xS(e){return e.segments.length>0?new ve([],{[se]:e}):e}function LS(e){let t={};for(let[n,i]of Object.entries(e.children)){let o=LS(i);if(n===se&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[n]=o)}let r=new ve(e.segments,t);return eF(r)}function eF(e){if(e.numberOfChildren===1&&e.children[se]){let t=e.children[se];return new ve(e.segments.concat(t.segments),t.children)}return e}function Vi(e){return e instanceof tr}function tF(e,t,r=null,n=null){let i=PS(e);return kS(i,t,r,n)}function PS(e){let t;function r(o){let s={};for(let l of o.children){let c=r(l);s[l.outlet]=c}let a=new ve(o.url,s);return o===e&&(t=a),a}let n=r(e.root),i=xS(n);return t??i}function kS(e,t,r,n){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return Kp(i,i,i,r,n);let o=nF(t);if(o.toRoot())return Kp(i,i,new ve([],{}),r,n);let s=rF(o,i,e),a=s.processChildren?Qo(s.segmentGroup,s.index,o.commands):US(s.segmentGroup,s.index,o.commands);return Kp(i,s.segmentGroup,a,r,n)}function Ul(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Xo(e){return typeof e=="object"&&e!=null&&e.outlets}function Kp(e,t,r,n,i){let o={};n&&Object.entries(n).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`});let s;e===t?s=r:s=FS(e,t,r);let a=xS(LS(s));return new tr(a,o,i)}function FS(e,t,r){let n={};return Object.entries(e.children).forEach(([i,o])=>{o===t?n[i]=r:n[i]=FS(o,t,r)}),new ve(e.segments,n)}var Bl=class{constructor(t,r,n){if(this.isAbsolute=t,this.numberOfDoubleDots=r,this.commands=n,t&&n.length>0&&Ul(n[0]))throw new N(4003,!1);let i=n.find(Xo);if(i&&i!==IS(n))throw new N(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function nF(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Bl(!0,0,e);let t=0,r=!1,n=e.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?r=!0:a===".."?t++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Bl(r,t,n)}var Ui=class{constructor(t,r,n){this.segmentGroup=t,this.processChildren=r,this.index=n}};function rF(e,t,r){if(e.isAbsolute)return new Ui(t,!0,0);if(!r)return new Ui(t,!1,NaN);if(r.parent===null)return new Ui(r,!0,0);let n=Ul(e.commands[0])?0:1,i=r.segments.length-1+n;return iF(r,i,e.numberOfDoubleDots)}function iF(e,t,r){let n=e,i=t,o=r;for(;o>i;){if(o-=i,n=n.parent,!n)throw new N(4005,!1);i=n.segments.length}return new Ui(n,!1,i-o)}function oF(e){return Xo(e[0])?e[0].outlets:{[se]:e}}function US(e,t,r){if(e??=new ve([],{}),e.segments.length===0&&e.hasChildren())return Qo(e,t,r);let n=sF(e,t,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndexo!==se)&&e.children[se]&&e.numberOfChildren===1&&e.children[se].segments.length===0){let o=Qo(e.children[se],t,r);return new ve(e.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=US(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new ve(e.segments,i)}}function sF(e,t,r){let n=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return o;let s=e.segments[i],a=r[n];if(Xo(a))break;let l=`${a}`,c=n0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!yS(l,c,s))return o;n+=2}else{if(!yS(l,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function t_(e,t,r){let n=e.segments.slice(0,t),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(t[r]=t_(new ve([],{}),0,n))}),t}function CS(e){let t={};return Object.entries(e).forEach(([r,n])=>t[r]=`${n}`),t}function yS(e,t,r){return e==r.path&&En(t,r.parameters)}var jo="imperative",ut=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(ut||{}),Yt=class{constructor(t,r){this.id=t,this.url=r}},Jo=class extends Yt{constructor(t,r,n="imperative",i=null){super(t,r),this.type=ut.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Yr=class extends Yt{constructor(t,r,n){super(t,r),this.urlAfterRedirects=n,this.type=ut.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},kt=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(kt||{}),n_=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(n_||{}),nr=class extends Yt{constructor(t,r,n,i){super(t,r),this.reason=n,this.code=i,this.type=ut.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},qr=class extends Yt{constructor(t,r,n,i){super(t,r),this.reason=n,this.code=i,this.type=ut.NavigationSkipped}},es=class extends Yt{constructor(t,r,n,i){super(t,r),this.error=n,this.target=i,this.type=ut.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Gl=class extends Yt{constructor(t,r,n,i){super(t,r),this.urlAfterRedirects=n,this.state=i,this.type=ut.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},r_=class extends Yt{constructor(t,r,n,i){super(t,r),this.urlAfterRedirects=n,this.state=i,this.type=ut.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},i_=class extends Yt{constructor(t,r,n,i,o){super(t,r),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o,this.type=ut.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},o_=class extends Yt{constructor(t,r,n,i){super(t,r),this.urlAfterRedirects=n,this.state=i,this.type=ut.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},s_=class extends Yt{constructor(t,r,n,i){super(t,r),this.urlAfterRedirects=n,this.state=i,this.type=ut.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},a_=class{constructor(t){this.route=t,this.type=ut.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},l_=class{constructor(t){this.route=t,this.type=ut.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},c_=class{constructor(t){this.snapshot=t,this.type=ut.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},u_=class{constructor(t){this.snapshot=t,this.type=ut.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},d_=class{constructor(t){this.snapshot=t,this.type=ut.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},p_=class{constructor(t){this.snapshot=t,this.type=ut.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var ts=class{},ns=class{constructor(t){this.url=t}};var __=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new zl,this.attachRef=null}},zl=(()=>{let t=class t{constructor(){this.contexts=new Map}onChildOutletCreated(n,i){let o=this.getOrCreateContext(n);o.outlet=i,this.contexts.set(n,o)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new __,this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Vl=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let r=this.pathFromRoot(t);return r.length>1?r[r.length-2]:null}children(t){let r=m_(t,this._root);return r?r.children.map(n=>n.value):[]}firstChild(t){let r=m_(t,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(t){let r=f_(t,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return f_(t,this._root).map(r=>r.value)}};function m_(e,t){if(e===t.value)return t;for(let r of t.children){let n=m_(e,r);if(n)return n}return null}function f_(e,t){if(e===t.value)return[t];for(let r of t.children){let n=f_(e,r);if(n.length)return n.unshift(t),n}return[]}var Pt=class{constructor(t,r){this.value=t,this.children=r}toString(){return`TreeNode(${this.value})`}};function Fi(e){let t={};return e&&e.children.forEach(r=>t[r.value.outlet]=r),t}var Hl=class extends Vl{constructor(t,r){super(t),this.snapshot=r,I_(this,t)}toString(){return this.snapshot.toString()}};function BS(e){let t=lF(e),r=new ot([new Vr("",{})]),n=new ot({}),i=new ot({}),o=new ot({}),s=new ot(""),a=new Hi(r,n,o,s,i,se,e,t.root);return a.snapshot=t.root,new Hl(new Pt(a,[]),t)}function lF(e){let t={},r={},n={},i="",o=new rs([],t,n,i,r,se,e,null,{});return new Yl("",new Pt(o,[]))}var Hi=class{constructor(t,r,n,i,o,s,a,l){this.urlSubject=t,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(ge(c=>c[ss]))??te(void 0),this.url=t,this.params=r,this.queryParams=n,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(ge(t=>Gi(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ge(t=>Gi(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function R_(e,t,r="emptyOnly"){let n,{routeConfig:i}=e;return t!==null&&(r==="always"||i?.path===""||!t.component&&!t.routeConfig?.loadComponent)?n={params:k(k({},t.params),e.params),data:k(k({},t.data),e.data),resolve:k(k(k(k({},e.data),t.data),i?.data),e._resolvedData)}:n={params:k({},e.params),data:k({},e.data),resolve:k(k({},e.data),e._resolvedData??{})},i&&VS(i)&&(n.resolve[ss]=i.title),n}var rs=class{get title(){return this.data?.[ss]}constructor(t,r,n,i,o,s,a,l,c){this.url=t,this.params=r,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Gi(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Gi(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${r}')`}},Yl=class extends Vl{constructor(t,r){super(r),this.url=t,I_(this,r)}toString(){return GS(this._root)}};function I_(e,t){t.value._routerState=e,t.children.forEach(r=>I_(e,r))}function GS(e){let t=e.children.length>0?` { ${e.children.map(GS).join(", ")} } `:"";return`${e.value}${t}`}function Qp(e){if(e.snapshot){let t=e.snapshot,r=e._futureSnapshot;e.snapshot=r,En(t.queryParams,r.queryParams)||e.queryParamsSubject.next(r.queryParams),t.fragment!==r.fragment&&e.fragmentSubject.next(r.fragment),En(t.params,r.params)||e.paramsSubject.next(r.params),Fk(t.url,r.url)||e.urlSubject.next(r.url),En(t.data,r.data)||e.dataSubject.next(r.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function g_(e,t){let r=En(e.params,t.params)&&Vk(e.url,t.url),n=!e.parent!=!t.parent;return r&&!n&&(!e.parent||g_(e.parent,t.parent))}function VS(e){return typeof e.title=="string"||e.title===null}var cF=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=se,this.activateEvents=new Ce,this.deactivateEvents=new Ce,this.attachEvents=new Ce,this.detachEvents=new Ce,this.parentContexts=w(zl),this.location=w(wr),this.changeDetector=w(Pn),this.environmentInjector=w(Ut),this.inputBinder=w(N_,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:o}=n.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new N(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new N(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new N(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,i){if(this.isActivated)throw new N(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,c=new h_(n,l,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=Oe({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[vt]});let e=t;return e})(),h_=class{constructor(t,r,n){this.route=t,this.childContexts=r,this.parent=n,this.__ngOutletInjector=!0}get(t,r){return t===Hi?this.route:t===zl?this.childContexts:this.parent.get(t,r)}},N_=new j("");function uF(e,t,r){let n=is(e,t._root,r?r._root:void 0);return new Hl(n,t)}function is(e,t,r){if(r&&e.shouldReuseRoute(t.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=t.value;let i=dF(e,t,r);return new Pt(n,i)}else{if(e.shouldAttach(t.value)){let o=e.retrieve(t.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>is(e,a)),s}}let n=pF(t.value),i=t.children.map(o=>is(e,o));return new Pt(n,i)}}function dF(e,t,r){return t.children.map(n=>{for(let i of r.children)if(e.shouldReuseRoute(n.value,i.value.snapshot))return is(e,n,i);return is(e,n)})}function pF(e){return new Hi(new ot(e.url),new ot(e.params),new ot(e.queryParams),new ot(e.fragment),new ot(e.data),e.outlet,e.component,e)}var HS="ngNavigationCancelingError";function YS(e,t){let{redirectTo:r,navigationBehaviorOptions:n}=Vi(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=qS(!1,kt.Redirect);return i.url=r,i.navigationBehaviorOptions=n,i}function qS(e,t){let r=new Error(`NavigationCancelingError: ${e||""}`);return r[HS]=!0,r.cancellationCode=t,r}function _F(e){return $S(e)&&Vi(e.url)}function $S(e){return!!e&&e[HS]}var mF=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=X({type:t,selectors:[["ng-component"]],standalone:!0,features:[oe],decls:1,vars:0,template:function(i,o){i&1&&de(0,"router-outlet")},dependencies:[cF],encapsulation:2});let e=t;return e})();function fF(e,t){return e.providers&&!e._injector&&(e._injector=Kd(e.providers,t,`Route: ${e.path}`)),e._injector??t}function D_(e){let t=e.children&&e.children.map(D_),r=t?Ie(k({},e),{children:t}):k({},e);return!r.component&&!r.loadComponent&&(t||r.loadChildren)&&r.outlet&&r.outlet!==se&&(r.component=mF),r}function Sn(e){return e.outlet||se}function gF(e,t){let r=e.filter(n=>Sn(n)===t);return r.push(...e.filter(n=>Sn(n)!==t)),r}function as(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let r=t.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var hF=(e,t,r,n)=>ge(i=>(new E_(t,i.targetRouterState,i.currentRouterState,r,n).activate(e),i)),E_=class{constructor(t,r,n,i,o){this.routeReuseStrategy=t,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(t){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,t),Qp(this.futureState.root),this.activateChildRoutes(r,n,t)}deactivateChildRoutes(t,r,n){let i=Fi(r);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(t,r,n){let i=t.value,o=r?r.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(t,r,s.children)}else this.deactivateChildRoutes(t,r,n);else o&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(t,r){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,r):this.deactivateRouteAndOutlet(t,r)}detachAndStoreRouteSubtree(t,r){let n=r.getContext(t.value.outlet),i=n&&t.value.component?n.children:r,o=Fi(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,r){let n=r.getContext(t.value.outlet),i=n&&t.value.component?n.children:r,o=Fi(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(t,r,n){let i=Fi(r);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new p_(o.value.snapshot))}),t.children.length&&this.forwardEvent(new u_(t.value.snapshot))}activateRoutes(t,r,n){let i=t.value,o=r?r.value:null;if(Qp(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,r,s.children)}else this.activateChildRoutes(t,r,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Qp(a.route.value),this.activateChildRoutes(t,null,s.children)}else{let a=as(i.snapshot);s.attachRef=null,s.route=i,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,n)}},ql=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Bi=class{constructor(t,r){this.component=t,this.route=r}};function EF(e,t,r){let n=e._root,i=t?t._root:null;return Wo(n,i,r,[n.value])}function SF(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function qi(e,t){let r=Symbol(),n=t.get(e,r);return n===r?typeof e=="function"&&!Kf(e)?e:t.get(e):n}function Wo(e,t,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Fi(t);return e.children.forEach(s=>{TF(s,o[s.value.outlet],r,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Zo(a,r.getContext(s),i)),i}function TF(e,t,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=t?t.value:null,a=r?r.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=bF(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new ql(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Wo(e,t,a?a.children:null,n,i):Wo(e,t,r,n,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Bi(a.outlet.component,s))}else s&&Zo(t,a,i),i.canActivateChecks.push(new ql(n)),o.component?Wo(e,null,a?a.children:null,n,i):Wo(e,null,r,n,i);return i}function bF(e,t,r){if(typeof r=="function")return r(e,t);switch(r){case"pathParamsChange":return!Hr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Hr(e.url,t.url)||!En(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!g_(e,t)||!En(e.queryParams,t.queryParams);case"paramsChange":default:return!g_(e,t)}}function Zo(e,t,r){let n=Fi(e),i=e.value;Object.entries(n).forEach(([o,s])=>{i.component?t?Zo(s,t.children.getContext(o),r):Zo(s,null,r):Zo(s,t,r)}),i.component?t&&t.outlet&&t.outlet.isActivated?r.canDeactivateChecks.push(new Bi(t.outlet.component,i)):r.canDeactivateChecks.push(new Bi(null,i)):r.canDeactivateChecks.push(new Bi(null,i))}function ls(e){return typeof e=="function"}function CF(e){return typeof e=="boolean"}function yF(e){return e&&ls(e.canLoad)}function vF(e){return e&&ls(e.canActivate)}function RF(e){return e&&ls(e.canActivateChild)}function IF(e){return e&&ls(e.canDeactivate)}function NF(e){return e&&ls(e.canMatch)}function zS(e){return e instanceof Kt||e?.name==="EmptyError"}var xl=Symbol("INITIAL_VALUE");function Yi(){return jt(e=>Zs(e.map(t=>t.pipe(Cn(1),qc(xl)))).pipe(ge(t=>{for(let r of t)if(r!==!0){if(r===xl)return xl;if(r===!1||r instanceof tr)return r}return!0}),Qt(t=>t!==xl),Cn(1)))}function DF(e,t){return Ue(r=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?te(Ie(k({},r),{guardsResult:!0})):OF(s,n,i,e).pipe(Ue(a=>a&&CF(a)?AF(n,o,e,t):te(a)),ge(a=>Ie(k({},r),{guardsResult:a})))})}function OF(e,t,r,n){return Ye(e).pipe(Ue(i=>PF(i.component,i.route,r,t,n)),cn(i=>i!==!0,!0))}function AF(e,t,r,n){return Ye(t).pipe(ci(i=>ai(wF(i.route.parent,n),MF(i.route,n),LF(e,i.path,r),xF(e,i.route,r))),cn(i=>i!==!0,!0))}function MF(e,t){return e!==null&&t&&t(new d_(e)),te(!0)}function wF(e,t){return e!==null&&t&&t(new c_(e)),te(!0)}function xF(e,t,r){let n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||n.length===0)return te(!0);let i=n.map(o=>li(()=>{let s=as(t)??r,a=qi(o,s),l=vF(a)?a.canActivate(t,e):Nr(s,()=>a(t,e));return rr(l).pipe(cn())}));return te(i).pipe(Yi())}function LF(e,t,r){let n=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>SF(s)).filter(s=>s!==null).map(s=>li(()=>{let a=s.guards.map(l=>{let c=as(s.node)??r,u=qi(l,c),d=RF(u)?u.canActivateChild(n,e):Nr(c,()=>u(n,e));return rr(d).pipe(cn())});return te(a).pipe(Yi())}));return te(o).pipe(Yi())}function PF(e,t,r,n,i){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return te(!0);let s=o.map(a=>{let l=as(t)??i,c=qi(a,l),u=IF(c)?c.canDeactivate(e,t,r,n):Nr(l,()=>c(e,t,r,n));return rr(u).pipe(cn())});return te(s).pipe(Yi())}function kF(e,t,r,n){let i=t.canLoad;if(i===void 0||i.length===0)return te(!0);let o=i.map(s=>{let a=qi(s,e),l=yF(a)?a.canLoad(t,r):Nr(e,()=>a(t,r));return rr(l)});return te(o).pipe(Yi(),WS(n))}function WS(e){return wc(st(t=>{if(Vi(t))throw YS(e,t)}),ge(t=>t===!0))}function FF(e,t,r,n){let i=t.canMatch;if(!i||i.length===0)return te(!0);let o=i.map(s=>{let a=qi(s,e),l=NF(a)?a.canMatch(t,r):Nr(e,()=>a(t,r));return rr(l)});return te(o).pipe(Yi(),WS(n))}var os=class{constructor(t){this.segmentGroup=t||null}},$l=class extends Error{constructor(t){super(),this.urlTree=t}};function ki(e){return oi(new os(e))}function UF(e){return oi(new N(4e3,!1))}function BF(e){return oi(qS(!1,kt.GuardRejected))}var S_=class{constructor(t,r){this.urlSerializer=t,this.urlTree=r}lineralizeSegments(t,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return te(n);if(i.numberOfChildren>1||!i.children[se])return UF(t.redirectTo);i=i.children[se]}}applyRedirectCommands(t,r,n){let i=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),t,n);if(r.startsWith("/"))throw new $l(i);return i}applyRedirectCreateUrlTree(t,r,n,i){let o=this.createSegmentGroup(t,r.root,n,i);return new tr(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(t,r){let n={};return Object.entries(t).forEach(([i,o])=>{if(typeof o=="string"&&o.startsWith(":")){let a=o.substring(1);n[i]=r[a]}else n[i]=o}),n}createSegmentGroup(t,r,n,i){let o=this.createSegments(t,r.segments,n,i),s={};return Object.entries(r.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(t,l,n,i)}),new ve(o,s)}createSegments(t,r,n,i){return r.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,i):this.findOrReturn(o,n))}findPosParam(t,r,n){let i=n[r.path.substring(1)];if(!i)throw new N(4001,!1);return i}findOrReturn(t,r){let n=0;for(let i of r){if(i.path===t.path)return r.splice(n),i;n++}return t}},T_={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function GF(e,t,r,n,i){let o=O_(e,t,r);return o.matched?(n=fF(t,n),FF(n,t,r,i).pipe(ge(s=>s===!0?o:k({},T_)))):te(o)}function O_(e,t,r){if(t.path==="**")return VF(r);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||r.length>0)?k({},T_):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(t.matcher||kk)(r,e,t);if(!i)return k({},T_);let o={};Object.entries(i.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=i.consumed.length>0?k(k({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function VF(e){return{matched:!0,parameters:e.length>0?IS(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function vS(e,t,r,n){return r.length>0&&qF(e,r,n)?{segmentGroup:new ve(t,YF(n,new ve(r,e.children))),slicedSegments:[]}:r.length===0&&$F(e,r,n)?{segmentGroup:new ve(e.segments,HF(e,r,n,e.children)),slicedSegments:r}:{segmentGroup:new ve(e.segments,e.children),slicedSegments:r}}function HF(e,t,r,n){let i={};for(let o of r)if(Wl(e,t,o)&&!n[Sn(o)]){let s=new ve([],{});i[Sn(o)]=s}return k(k({},n),i)}function YF(e,t){let r={};r[se]=t;for(let n of e)if(n.path===""&&Sn(n)!==se){let i=new ve([],{});r[Sn(n)]=i}return r}function qF(e,t,r){return r.some(n=>Wl(e,t,n)&&Sn(n)!==se)}function $F(e,t,r){return r.some(n=>Wl(e,t,n))}function Wl(e,t,r){return(e.hasChildren()||t.length>0)&&r.pathMatch==="full"?!1:r.path===""}function zF(e,t,r,n){return Sn(e)!==n&&(n===se||!Wl(t,r,e))?!1:O_(t,e,r).matched}function WF(e,t,r){return t.length===0&&!e.children[r]}var b_=class{};function KF(e,t,r,n,i,o,s="emptyOnly"){return new C_(e,t,r,n,i,s,o).recognize()}var QF=31,C_=class{constructor(t,r,n,i,o,s,a){this.injector=t,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new S_(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new N(4002,`'${t.segmentGroup}'`)}recognize(){let t=vS(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(ge(r=>{let n=new rs([],Object.freeze({}),Object.freeze(k({},this.urlTree.queryParams)),this.urlTree.fragment,{},se,this.rootComponentType,null,{}),i=new Pt(n,r),o=new Yl("",i),s=tF(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,se).pipe(Yn(n=>{if(n instanceof $l)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof os?this.noMatchError(n):n}))}inheritParamsAndData(t,r){let n=t.value,i=R_(n,r,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),t.children.forEach(o=>this.inheritParamsAndData(o,n))}processSegmentGroup(t,r,n,i){return n.segments.length===0&&n.hasChildren()?this.processChildren(t,r,n):this.processSegment(t,r,n,n.segments,i,!0).pipe(ge(o=>o instanceof Pt?[o]:[]))}processChildren(t,r,n){let i=[];for(let o of Object.keys(n.children))o==="primary"?i.unshift(o):i.push(o);return Ye(i).pipe(ci(o=>{let s=n.children[o],a=gF(r,o);return this.processSegmentGroup(t,a,s,o)}),Vc((o,s)=>(o.push(...s),o)),qn(null),Gc(),Ue(o=>{if(o===null)return ki(n);let s=KS(o);return jF(s),te(s)}))}processSegment(t,r,n,i,o,s){return Ye(r).pipe(ci(a=>this.processSegmentAgainstRoute(a._injector??t,r,a,n,i,o,s).pipe(Yn(l=>{if(l instanceof os)return te(null);throw l}))),cn(a=>!!a),Yn(a=>{if(zS(a))return WF(n,i,o)?te(new b_):ki(n);throw a}))}processSegmentAgainstRoute(t,r,n,i,o,s,a){return zF(n,i,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,n,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,i,r,n,o,s):ki(i):ki(i)}expandSegmentAgainstRouteUsingRedirect(t,r,n,i,o,s){let{matched:a,consumedSegments:l,positionalParamSegments:c,remainingSegments:u}=O_(r,i,o);if(!a)return ki(r);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>QF&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,c);return this.applyRedirects.lineralizeSegments(i,d).pipe(Ue(p=>this.processSegment(t,n,r,p.concat(u),s,!1)))}matchSegmentAgainstRoute(t,r,n,i,o){let s=GF(r,n,i,t,this.urlSerializer);return n.path==="**"&&(r.children={}),s.pipe(jt(a=>a.matched?(t=n._injector??t,this.getChildConfig(t,n,i).pipe(jt(({routes:l})=>{let c=n._loadedInjector??t,{consumedSegments:u,remainingSegments:d,parameters:p}=a,_=new rs(u,p,Object.freeze(k({},this.urlTree.queryParams)),this.urlTree.fragment,XF(n),Sn(n),n.component??n._loadedComponent??null,n,JF(n)),{segmentGroup:m,slicedSegments:f}=vS(r,u,d,l);if(f.length===0&&m.hasChildren())return this.processChildren(c,l,m).pipe(ge(b=>b===null?null:new Pt(_,b)));if(l.length===0&&f.length===0)return te(new Pt(_,[]));let S=Sn(n)===o;return this.processSegment(c,l,m,f,S?se:o,!0).pipe(ge(b=>new Pt(_,b instanceof Pt?[b]:[])))}))):ki(r)))}getChildConfig(t,r,n){return r.children?te({routes:r.children,injector:t}):r.loadChildren?r._loadedRoutes!==void 0?te({routes:r._loadedRoutes,injector:r._loadedInjector}):kF(t,r,n,this.urlSerializer).pipe(Ue(i=>i?this.configLoader.loadChildren(t,r).pipe(st(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):BF(r))):te({routes:[],injector:t})}};function jF(e){e.sort((t,r)=>t.value.outlet===se?-1:r.value.outlet===se?1:t.value.outlet.localeCompare(r.value.outlet))}function ZF(e){let t=e.value.routeConfig;return t&&t.path===""}function KS(e){let t=[],r=new Set;for(let n of e){if(!ZF(n)){t.push(n);continue}let i=t.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),r.add(i)):t.push(n)}for(let n of r){let i=KS(n.children);t.push(new Pt(n.value,i))}return t.filter(n=>!r.has(n))}function XF(e){return e.data||{}}function JF(e){return e.resolve||{}}function eU(e,t,r,n,i,o){return Ue(s=>KF(e,t,r,n,s.extractedUrl,i,o).pipe(ge(({state:a,tree:l})=>Ie(k({},s),{targetSnapshot:a,urlAfterRedirects:l}))))}function tU(e,t){return Ue(r=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return te(r);let o=new Set(i.map(l=>l.route)),s=new Set;for(let l of o)if(!s.has(l))for(let c of QS(l))s.add(c);let a=0;return Ye(s).pipe(ci(l=>o.has(l)?nU(l,n,e,t):(l.data=R_(l,l.parent,e).resolve,te(void 0))),st(()=>a++),ui(1),Ue(l=>a===s.size?te(r):Ot))})}function QS(e){let t=e.children.map(r=>QS(r)).flat();return[e,...t]}function nU(e,t,r,n){let i=e.routeConfig,o=e._resolve;return i?.title!==void 0&&!VS(i)&&(o[ss]=i.title),rU(o,e,t,n).pipe(ge(s=>(e._resolvedData=s,e.data=R_(e,e.parent,r).resolve,null)))}function rU(e,t,r,n){let i=Xp(e);if(i.length===0)return te({});let o={};return Ye(i).pipe(Ue(s=>iU(e[s],t,r,n).pipe(cn(),st(a=>{o[s]=a}))),ui(1),Bc(o),Yn(s=>zS(s)?Ot:oi(s)))}function iU(e,t,r,n){let i=as(t)??n,o=qi(e,i),s=o.resolve?o.resolve(t,r):Nr(i,()=>o(t,r));return rr(s)}function jp(e){return jt(t=>{let r=e(t);return r?Ye(r).pipe(ge(()=>t)):te(t)})}var jS=(()=>{let t=class t{buildTitle(n){let i,o=n.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===se);return i}getResolvedTitleForRoute(n){return n.data[ss]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:()=>w(oU),providedIn:"root"});let e=t;return e})(),oU=(()=>{let t=class t extends jS{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};t.\u0275fac=function(i){return new(i||t)(K(HE))},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),A_=new j("",{providedIn:"root",factory:()=>({})}),M_=new j(""),sU=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=w(tp)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return te(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=rr(n.loadComponent()).pipe(ge(ZS),st(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),co(()=>{this.componentLoaders.delete(n)})),o=new ni(i,()=>new Ke).pipe(ti());return this.componentLoaders.set(n,o),o}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return te({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=aU(i,this.compiler,n,this.onLoadEndListener).pipe(co(()=>{this.childrenLoaders.delete(i)})),a=new ni(s,()=>new Ke).pipe(ti());return this.childrenLoaders.set(i,a),a}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function aU(e,t,r,n){return rr(e.loadChildren()).pipe(ge(ZS),Ue(i=>i instanceof yo||Array.isArray(i)?te(i):Ye(t.compileModuleAsync(i))),ge(i=>{n&&n(e);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(r).injector,s=o.get(M_,[],{optional:!0,self:!0}).flat()),{routes:s.map(D_),injector:o}}))}function lU(e){return e&&typeof e=="object"&&"default"in e}function ZS(e){return lU(e)?e.default:e}var w_=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:()=>w(cU),providedIn:"root"});let e=t;return e})(),cU=(()=>{let t=class t{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),uU=new j("");var dU=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Ke,this.transitionAbortSubject=new Ke,this.configLoader=w(sU),this.environmentInjector=w(Ut),this.urlSerializer=w(v_),this.rootContexts=w(zl),this.location=w(Po),this.inputBindingEnabled=w(N_,{optional:!0})!==null,this.titleStrategy=w(jS),this.options=w(A_,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=w(w_),this.createViewTransition=w(uU,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>te(void 0),this.rootComponentType=null;let n=o=>this.events.next(new a_(o)),i=o=>this.events.next(new l_(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(Ie(k(k({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,o){return this.transitions=new ot({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:jo,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Qt(s=>s.id!==0),ge(s=>Ie(k({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),jt(s=>{let a=!1,l=!1;return te(s).pipe(jt(c=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",kt.SupersededByNewNavigation),Ot;this.currentTransition=s,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?Ie(k({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&d!=="reload"){let p="";return this.events.next(new qr(c.id,this.urlSerializer.serialize(c.rawUrl),p,n_.IgnoredSameUrlNavigation)),c.resolve(null),Ot}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return te(c).pipe(jt(p=>{let _=this.transitions?.getValue();return this.events.next(new Jo(p.id,this.urlSerializer.serialize(p.extractedUrl),p.source,p.restoredState)),_!==this.transitions?.getValue()?Ot:Promise.resolve(p)}),eU(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),st(p=>{s.targetSnapshot=p.targetSnapshot,s.urlAfterRedirects=p.urlAfterRedirects,this.currentNavigation=Ie(k({},this.currentNavigation),{finalUrl:p.urlAfterRedirects});let _=new Gl(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(_)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:p,extractedUrl:_,source:m,restoredState:f,extras:S}=c,b=new Jo(p,this.urlSerializer.serialize(_),m,f);this.events.next(b);let D=BS(this.rootComponentType).snapshot;return this.currentTransition=s=Ie(k({},c),{targetSnapshot:D,urlAfterRedirects:_,extras:Ie(k({},S),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=_,te(s)}else{let p="";return this.events.next(new qr(c.id,this.urlSerializer.serialize(c.extractedUrl),p,n_.IgnoredByUrlHandlingStrategy)),c.resolve(null),Ot}}),st(c=>{let u=new r_(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),ge(c=>(this.currentTransition=s=Ie(k({},c),{guards:EF(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),s)),DF(this.environmentInjector,c=>this.events.next(c)),st(c=>{if(s.guardsResult=c.guardsResult,Vi(c.guardsResult))throw YS(this.urlSerializer,c.guardsResult);let u=new i_(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(u)}),Qt(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",kt.GuardRejected),!1)),jp(c=>{if(c.guards.canActivateChecks.length)return te(c).pipe(st(u=>{let d=new o_(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}),jt(u=>{let d=!1;return te(u).pipe(tU(this.paramsInheritanceStrategy,this.environmentInjector),st({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(u,"",kt.NoDataFromResolver)}}))}),st(u=>{let d=new s_(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}))}),jp(c=>{let u=d=>{let p=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&p.push(this.configLoader.loadComponent(d.routeConfig).pipe(st(_=>{d.component=_}),ge(()=>{})));for(let _ of d.children)p.push(...u(_));return p};return Zs(u(c.targetSnapshot.root)).pipe(qn(null),Cn(1))}),jp(()=>this.afterPreactivation()),jt(()=>{let{currentSnapshot:c,targetSnapshot:u}=s,d=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return d?Ye(d).pipe(ge(()=>s)):te(s)}),ge(c=>{let u=uF(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=s=Ie(k({},c),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,s}),st(()=>{this.events.next(new ts)}),hF(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Cn(1),st({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Yr(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),uo(this.transitionAbortSubject.pipe(st(c=>{throw c}))),co(()=>{!a&&!l&&this.cancelNavigationTransition(s,"",kt.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),Yn(c=>{if(l=!0,$S(c))this.events.next(new nr(s.id,this.urlSerializer.serialize(s.extractedUrl),c.message,c.cancellationCode)),_F(c)?this.events.next(new ns(c.url)):s.resolve(!1);else{this.events.next(new es(s.id,this.urlSerializer.serialize(s.extractedUrl),c,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(c))}catch(u){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(u)}}return Ot}))}))}cancelNavigationTransition(n,i,o){let s=new nr(n.id,this.urlSerializer.serialize(n.extractedUrl),i,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function pU(e){return e!==jo}var _U=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:()=>w(mU),providedIn:"root"});let e=t;return e})(),y_=class{shouldDetach(t){return!1}store(t,r){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,r){return t.routeConfig===r.routeConfig}},mU=(()=>{let t=class t extends y_{};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=rn(t)))(o||t)}})(),t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),XS=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:()=>w(fU),providedIn:"root"});let e=t;return e})(),fU=(()=>{let t=class t extends XS{constructor(){super(...arguments),this.location=w(Po),this.urlSerializer=w(v_),this.options=w(A_,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=w(w_),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new tr,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=BS(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof Jo)this.stateMemento=this.createStateMemento();else if(n instanceof qr)this.rawUrlTree=i.initialUrl;else if(n instanceof Gl){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else n instanceof ts?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):n instanceof nr&&(n.code===kt.GuardRejected||n.code===kt.NoDataFromResolver)?this.restoreHistory(i):n instanceof es?this.restoreHistory(i,!0):n instanceof Yr&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=k(k({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=k(k({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=rn(t)))(o||t)}})(),t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Ko=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Ko||{});function gU(e,t){e.events.pipe(Qt(r=>r instanceof Yr||r instanceof nr||r instanceof es||r instanceof qr),ge(r=>r instanceof Yr||r instanceof qr?Ko.COMPLETE:(r instanceof nr?r.code===kt.Redirect||r.code===kt.SupersededByNewNavigation:!1)?Ko.REDIRECTING:Ko.FAILED),Qt(r=>r!==Ko.REDIRECTING),Cn(1)).subscribe(()=>{t()})}function hU(e){throw e}var EU={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},SU={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},JS=(()=>{let t=class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=w(il),this.stateManager=w(XS),this.options=w(A_,{optional:!0})||{},this.pendingTasks=w(Ka),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=w(dU),this.urlSerializer=w(v_),this.location=w(Po),this.urlHandlingStrategy=w(w_),this._events=new Ke,this.errorHandler=this.options.errorHandler||hU,this.navigated=!1,this.routeReuseStrategy=w(_U),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=w(M_,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!w(N_,{optional:!0}),this.eventsSubscription=new He,this.isNgZoneEnabled=w(ye)instanceof ye&&ye.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof nr&&i.code!==kt.Redirect&&i.code!==kt.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Yr)this.navigated=!0;else if(i instanceof ns){let a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),l={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||pU(o.source)};this.scheduleNavigation(a,jo,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}bU(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),jo,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)})}navigateToSyncWithBrowser(n,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let c=k({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(s.state=c)}let l=this.parseUrl(n);this.scheduleNavigation(l,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(D_),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:l,preserveFragment:c}=i,u=c?this.currentUrlTree.fragment:a,d=null;switch(l){case"merge":d=k(k({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let p;try{let _=o?o.snapshot:this.routerState.snapshot.root;p=PS(_)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),p=this.currentUrlTree.root}return kS(p,n,d,u??null)}navigateByUrl(n,i={skipLocationChange:!1}){let o=Vi(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,jo,null,i)}navigate(n,i={skipLocationChange:!1}){return TU(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let o;if(i===!0?o=k({},EU):i===!1?o=k({},SU):o=i,Vi(n))return TS(this.currentUrlTree,n,o);let s=this.parseUrl(n);return TS(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((i,[o,s])=>(s!=null&&(i[o]=s),i),{})}scheduleNavigation(n,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let l,c,u;a?(l=a.resolve,c=a.reject,u=a.promise):u=new Promise((p,_)=>{l=p,c=_});let d=this.pendingTasks.add();return gU(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(p=>Promise.reject(p))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function TU(e){for(let t=0;tr.\u0275providers)])}function yU(e){return e.routerState.root}function vU(){let e=w(An);return t=>{let r=e.get(Mi);if(t!==r.components[0])return;let n=e.get(JS),i=e.get(RU);e.get(IU)===1&&n.initialNavigation(),e.get(NU,null,ue.Optional)?.setUpPreloading(),e.get(CU,null,ue.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var RU=new j("",{factory:()=>new Ke}),IU=new j("",{providedIn:"root",factory:()=>1});var NU=new j("");var Kl={toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"],["table"]]},$i=new j("config",{providedIn:"root",factory:()=>({modules:Kl})});var tT=e=>Ri([{provide:$i,useValue:e}]);function Ql(e){e||(Tg(Ql),e=w(Ar));let t=new me(r=>e.onDestroy(r.next.bind(r)));return r=>r.pipe(uo(t))}var dT=(()=>{let t=class t{constructor(n,i){this._renderer=n,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};t.\u0275fac=function(i){return new(i||t)(P(Mt),P(ct))},t.\u0275dir=Oe({type:t});let e=t;return e})(),P_=(()=>{let t=class t extends dT{};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=rn(t)))(o||t)}})(),t.\u0275dir=Oe({type:t,features:[je]});let e=t;return e})(),ir=new j("");var DU={provide:ir,useExisting:lt(()=>pT),multi:!0};function OU(){let e=fn()?fn().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var AU=new j(""),pT=(()=>{let t=class t extends dT{constructor(n,i,o){super(n,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!OU())}writeValue(n){let i=n??"";this.setProperty("value",i)}_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)}};t.\u0275fac=function(i){return new(i||t)(P(Mt),P(ct),P(AU,8))},t.\u0275dir=Oe({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){i&1&&Ee("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[It([DU]),je]});let e=t;return e})();function MU(e){return e==null||(typeof e=="string"||Array.isArray(e))&&e.length===0}var Tn=new j(""),$r=new j("");function wU(e){return MU(e.value)?{required:!0}:null}function nT(e){return null}function _T(e){return e!=null}function mT(e){return Lr(e)?Ye(e):e}function fT(e){let t={};return e.forEach(r=>{t=r!=null?k(k({},t),r):t}),Object.keys(t).length===0?null:t}function gT(e,t){return t.map(r=>r(e))}function xU(e){return!e.validate}function hT(e){return e.map(t=>xU(t)?t:r=>t.validate(r))}function LU(e){if(!e)return null;let t=e.filter(_T);return t.length==0?null:function(r){return fT(gT(r,t))}}function k_(e){return e!=null?LU(hT(e)):null}function PU(e){if(!e)return null;let t=e.filter(_T);return t.length==0?null:function(r){let n=gT(r,t).map(mT);return Uc(n).pipe(ge(fT))}}function F_(e){return e!=null?PU(hT(e)):null}function rT(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function ET(e){return e._rawValidators}function ST(e){return e._rawAsyncValidators}function x_(e){return e?Array.isArray(e)?e:[e]:[]}function Zl(e,t){return Array.isArray(e)?e.includes(t):e===t}function iT(e,t){let r=x_(t);return x_(e).forEach(i=>{Zl(r,i)||r.push(i)}),r}function oT(e,t){return x_(t).filter(r=>!Zl(e,r))}var Xl=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=k_(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=F_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,r){return this.control?this.control.hasError(t,r):!1}getError(t,r){return this.control?this.control.getError(t,r):null}},St=class extends Xl{get formDirective(){return null}get path(){return null}},Fn=class extends Xl{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Jl=class{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},kU={"[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"},I4=Ie(k({},kU),{"[class.ng-submitted]":"isSubmitted"}),Be=(()=>{let t=class t extends Jl{constructor(n){super(n)}};t.\u0275fac=function(i){return new(i||t)(P(Fn,2))},t.\u0275dir=Oe({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&Za("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[je]});let e=t;return e})(),Qi=(()=>{let t=class t extends Jl{constructor(n){super(n)}};t.\u0275fac=function(i){return new(i||t)(P(St,10))},t.\u0275dir=Oe({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){i&2&&Za("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[je]});let e=t;return e})();var cs="VALID",jl="INVALID",zi="PENDING",us="DISABLED";function U_(e){return(rc(e)?e.validators:e)||null}function FU(e){return Array.isArray(e)?k_(e):e||null}function B_(e,t){return(rc(t)?t.asyncValidators:e)||null}function UU(e){return Array.isArray(e)?F_(e):e||null}function rc(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function TT(e,t,r){let n=e.controls;if(!(t?Object.keys(n):n).length)throw new N(1e3,"");if(!n[r])throw new N(1001,"")}function bT(e,t,r){e._forEachChild((n,i)=>{if(r[i]===void 0)throw new N(1002,"")})}var Wi=class{constructor(t,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===cs}get invalid(){return this.status===jl}get pending(){return this.status==zi}get disabled(){return this.status===us}get enabled(){return this.status!==us}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(iT(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(iT(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(oT(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(oT(t,this._rawAsyncValidators))}hasValidator(t){return Zl(this._rawValidators,t)}hasAsyncValidator(t){return Zl(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(r=>{r.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=zi,t.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){let r=this._parentMarkedDirty(t.onlySelf);this.status=us,this.errors=null,this._forEachChild(n=>{n.disable(Ie(k({},t),{onlySelf:!0}))}),this._updateValue(),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Ie(k({},t),{skipPristineCheck:r})),this._onDisabledChange.forEach(n=>n(!0))}enable(t={}){let r=this._parentMarkedDirty(t.onlySelf);this.status=cs,this._forEachChild(n=>{n.enable(Ie(k({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Ie(k({},t),{skipPristineCheck:r})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===cs||this.status===zi)&&this._runAsyncValidator(t.emitEvent)),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?us:cs}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=zi,this._hasOwnPendingAsyncValidator=!0;let r=mT(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,r={}){this.errors=t,this._updateControlsErrors(r.emitEvent!==!1)}get(t){let r=t;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((n,i)=>n&&n._find(i),this)}getError(t,r){let n=r?this.get(r):this;return n&&n.errors?n.errors[t]:null}hasError(t,r){return!!this.getError(t,r)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Ce,this.statusChanges=new Ce}_calculateStatus(){return this._allControlsDisabled()?us:this.errors?jl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(zi)?zi:this._anyControlsHaveStatus(jl)?jl:cs}_anyControlsHaveStatus(t){return this._anyControls(r=>r.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){rc(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let r=this._parent&&this._parent.dirty;return!t&&!!r&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=FU(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=UU(this._rawAsyncValidators)}},Ki=class extends Wi{constructor(t,r,n){super(U_(r),B_(n,r)),this.controls=t,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,r){return this.controls[t]?this.controls[t]:(this.controls[t]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(t,r,n={}){this.registerControl(t,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(t,r,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],r&&this.registerControl(t,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,r={}){bT(this,!0,t),Object.keys(t).forEach(n=>{TT(this,!0,n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(t,r={}){t!=null&&(Object.keys(t).forEach(n=>{let i=this.controls[n];i&&i.patchValue(t[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(t={},r={}){this._forEachChild((n,i)=>{n.reset(t?t[i]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r),this._updateTouched(r),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(t,r,n)=>(t[n]=r.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(r,n)=>n._syncPendingControls()?!0:r);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(r=>{let n=this.controls[r];n&&t(n,r)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[r,n]of Object.entries(this.controls))if(this.contains(r)&&t(n))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(r,n,i)=>((n.enabled||this.disabled)&&(r[i]=n.value),r))}_reduceChildren(t,r){let n=t;return this._forEachChild((i,o)=>{n=r(n,i,o)}),n}_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 L_=class extends Ki{};var ji=new j("CallSetDisabledState",{providedIn:"root",factory:()=>ic}),ic="always";function oc(e,t){return[...t.path,e]}function ps(e,t,r=ic){G_(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||r==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),GU(e,t),HU(e,t),VU(e,t),BU(e,t)}function ec(e,t,r=!0){let n=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),nc(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function tc(e,t){e.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(t)})}function BU(e,t){if(t.valueAccessor.setDisabledState){let r=n=>{t.valueAccessor.setDisabledState(n)};e.registerOnDisabledChange(r),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(r)})}}function G_(e,t){let r=ET(e);t.validator!==null?e.setValidators(rT(r,t.validator)):typeof r=="function"&&e.setValidators([r]);let n=ST(e);t.asyncValidator!==null?e.setAsyncValidators(rT(n,t.asyncValidator)):typeof n=="function"&&e.setAsyncValidators([n]);let i=()=>e.updateValueAndValidity();tc(t._rawValidators,i),tc(t._rawAsyncValidators,i)}function nc(e,t){let r=!1;if(e!==null){if(t.validator!==null){let i=ET(e);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==t.validator);o.length!==i.length&&(r=!0,e.setValidators(o))}}if(t.asyncValidator!==null){let i=ST(e);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==t.asyncValidator);o.length!==i.length&&(r=!0,e.setAsyncValidators(o))}}}let n=()=>{};return tc(t._rawValidators,n),tc(t._rawAsyncValidators,n),r}function GU(e,t){t.valueAccessor.registerOnChange(r=>{e._pendingValue=r,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&CT(e,t)})}function VU(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&CT(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function CT(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function HU(e,t){let r=(n,i)=>{t.valueAccessor.writeValue(n),i&&t.viewToModelUpdate(n)};e.registerOnChange(r),t._registerOnDestroy(()=>{e._unregisterOnChange(r)})}function yT(e,t){e==null,G_(e,t)}function YU(e,t){return nc(e,t)}function V_(e,t){if(!e.hasOwnProperty("model"))return!1;let r=e.model;return r.isFirstChange()?!0:!Object.is(t,r.currentValue)}function qU(e){return Object.getPrototypeOf(e.constructor)===P_}function vT(e,t){e._syncPendingControls(),t.forEach(r=>{let n=r.control;n.updateOn==="submit"&&n._pendingChange&&(r.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function H_(e,t){if(!t)return null;Array.isArray(t);let r,n,i;return t.forEach(o=>{o.constructor===pT?r=o:qU(o)?n=o:i=o}),i||n||r||null}function $U(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var zU={provide:St,useExisting:lt(()=>Y_)},ds=Promise.resolve(),Y_=(()=>{let t=class t extends St{constructor(n,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ce,this.form=new Ki({},k_(n),F_(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){ds.then(()=>{let i=this._findContainer(n.path);n.control=i.registerControl(n.name,n.control),ps(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){ds.then(()=>{let i=this._findContainer(n.path);i&&i.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){ds.then(()=>{let i=this._findContainer(n.path),o=new Ki({});yT(o,n),i.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){ds.then(()=>{let i=this._findContainer(n.path);i&&i.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,i){ds.then(()=>{this.form.get(n.path).setValue(i)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,vT(this.form,this._directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}};t.\u0275fac=function(i){return new(i||t)(P(Tn,10),P($r,10),P(ji,8))},t.\u0275dir=Oe({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){i&1&&Ee("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[F.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[It([zU]),je]});let e=t;return e})();function sT(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}function aT(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var Et=class extends Wi{constructor(t=null,r,n){super(U_(r),B_(n,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),rc(r)&&(r.nonNullable||r.initialValueIsDefault)&&(aT(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,r={}){this.value=this._pendingValue=t,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(t,r={}){this.setValue(t,r)}reset(t=this.defaultValue,r={}){this._applyFormState(t),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){sT(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){sT(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){aT(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 WU=e=>e instanceof Et,KU=(()=>{let t=class t extends St{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return oc(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=rn(t)))(o||t)}})(),t.\u0275dir=Oe({type:t,features:[je]});let e=t;return e})();var QU={provide:Fn,useExisting:lt(()=>Je)},lT=Promise.resolve(),Je=(()=>{let t=class t extends Fn{constructor(n,i,o,s,a,l){super(),this._changeDetectorRef=a,this.callSetDisabledState=l,this.control=new Et,this._registered=!1,this.name="",this.update=new Ce,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=H_(this,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let i=n.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),V_(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(){ps(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){lT.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let i=n.isDisabled.currentValue,o=i!==0&&Lo(i);lT.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?oc(n,this._parent):[n]}};t.\u0275fac=function(i){return new(i||t)(P(St,9),P(Tn,10),P($r,10),P(ir,10),P(Pn,8),P(ji,8))},t.\u0275dir=Oe({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[F.None,"disabled","isDisabled"],model:[F.None,"ngModel","model"],options:[F.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[It([QU]),je,vt]});let e=t;return e})(),Zi=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=Oe({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let e=t;return e})();var q_=new j(""),jU={provide:Fn,useExisting:lt(()=>$_)},$_=(()=>{let t=class t extends Fn{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new Ce,this._ngModelWarningSent=!1,this._setValidators(n),this._setAsyncValidators(i),this.valueAccessor=H_(this,o)}ngOnChanges(n){if(this._isControlChanged(n)){let i=n.form.previousValue;i&&ec(i,this,!1),ps(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}V_(n,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&ec(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_isControlChanged(n){return n.hasOwnProperty("form")}};t._ngModelWarningSentOnce=!1,t.\u0275fac=function(i){return new(i||t)(P(Tn,10),P($r,10),P(ir,10),P(q_,8),P(ji,8))},t.\u0275dir=Oe({type:t,selectors:[["","formControl",""]],inputs:{form:[F.None,"formControl","form"],isDisabled:[F.None,"disabled","isDisabled"],model:[F.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[It([jU]),je,vt]});let e=t;return e})(),ZU={provide:St,useExisting:lt(()=>or)},or=(()=>{let t=class t extends St{constructor(n,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ce,this._setValidators(n),this._setAsyncValidators(i)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(nc(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 i=this.form.get(n.path);return ps(i,n,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),i}getControl(n){return this.form.get(n.path)}removeControl(n){ec(n.control||null,n,!1),$U(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,i){this.form.get(n.path).setValue(i)}onSubmit(n){return this.submitted=!0,vT(this.form,this.directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_updateDomValue(){this.directives.forEach(n=>{let i=n.control,o=this.form.get(n.path);i!==o&&(ec(i||null,n),WU(o)&&(ps(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let i=this.form.get(n.path);yT(i,n),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let i=this.form.get(n.path);i&&YU(i,n)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){G_(this.form,this),this._oldForm&&nc(this._oldForm,this)}_checkFormPresent(){this.form}};t.\u0275fac=function(i){return new(i||t)(P(Tn,10),P($r,10),P(ji,8))},t.\u0275dir=Oe({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,o){i&1&&Ee("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[F.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[It([ZU]),je,vt]});let e=t;return e})(),XU={provide:St,useExisting:lt(()=>sc)},sc=(()=>{let t=class t extends KU{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}_checkParentType(){RT(this._parent)}};t.\u0275fac=function(i){return new(i||t)(P(St,13),P(Tn,10),P($r,10))},t.\u0275dir=Oe({type:t,selectors:[["","formGroupName",""]],inputs:{name:[F.None,"formGroupName","name"]},features:[It([XU]),je]});let e=t;return e})(),JU={provide:St,useExisting:lt(()=>ac)},ac=(()=>{let t=class t extends St{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return oc(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){RT(this._parent)}};t.\u0275fac=function(i){return new(i||t)(P(St,13),P(Tn,10),P($r,10))},t.\u0275dir=Oe({type:t,selectors:[["","formArrayName",""]],inputs:{name:[F.None,"formArrayName","name"]},features:[It([JU]),je]});let e=t;return e})();function RT(e){return!(e instanceof sc)&&!(e instanceof or)&&!(e instanceof ac)}var eB={provide:Fn,useExisting:lt(()=>zr)},zr=(()=>{let t=class t extends Fn{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new Ce,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=H_(this,s)}ngOnChanges(n){this._added||this._setUpControl(),V_(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 oc(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};t._ngModelWarningSentOnce=!1,t.\u0275fac=function(i){return new(i||t)(P(St,13),P(Tn,10),P($r,10),P(ir,10),P(q_,8))},t.\u0275dir=Oe({type:t,selectors:[["","formControlName",""]],inputs:{name:[F.None,"formControlName","name"],isDisabled:[F.None,"disabled","isDisabled"],model:[F.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[It([eB]),je,vt]});let e=t;return e})(),tB={provide:ir,useExisting:lt(()=>NT),multi:!0};function IT(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function nB(e){return e.split(":")[0]}var NT=(()=>{let t=class t extends P_{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let i=this._getOptionId(n),o=IT(i,n);this.setProperty("value",o)}registerOnChange(n){this.onChange=i=>{this.value=this._getOptionValue(i),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),n))return i;return null}_getOptionValue(n){let i=nB(n);return this._optionMap.has(i)?this._optionMap.get(i):n}};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=rn(t)))(o||t)}})(),t.\u0275dir=Oe({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(i,o){i&1&&Ee("change",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[It([tB]),je]});let e=t;return e})(),DT=(()=>{let t=class t{constructor(n,i,o){this._element=n,this._renderer=i,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(IT(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))}};t.\u0275fac=function(i){return new(i||t)(P(ct),P(Mt),P(NT,9))},t.\u0275dir=Oe({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let e=t;return e})(),rB={provide:ir,useExisting:lt(()=>OT),multi:!0};function cT(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function iB(e){return e.split(":")[0]}var OT=(()=>{let t=class t extends P_{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let i;if(Array.isArray(n)){let o=n.map(s=>this._getOptionId(s));i=(s,a)=>{s._setSelected(o.indexOf(a.toString())>-1)}}else i=(o,s)=>{o._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(n){this.onChange=i=>{let o=[],s=i.selectedOptions;if(s!==void 0){let a=s;for(let l=0;l{let n;return function(o){return(n||(n=rn(t)))(o||t)}})(),t.\u0275dir=Oe({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(i,o){i&1&&Ee("change",function(a){return o.onChange(a.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[It([rB]),je]});let e=t;return e})(),AT=(()=>{let t=class t{constructor(n,i,o){this._element=n,this._renderer=i,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(cT(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(cT(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))}};t.\u0275fac=function(i){return new(i||t)(P(ct),P(Mt),P(OT,9))},t.\u0275dir=Oe({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let e=t;return e})();var oB=(()=>{let t=class t{constructor(){this._validator=nT}ngOnChanges(n){if(this.inputName in n){let i=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):nT,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=Oe({type:t,features:[vt]});let e=t;return e})();var sB={provide:Tn,useExisting:lt(()=>ms),multi:!0};var ms=(()=>{let t=class t extends oB{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Lo,this.createValidator=n=>wU}enabled(n){return n}};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=rn(t)))(o||t)}})(),t.\u0275dir=Oe({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,o){i&2&&Qa("required",o._enabled?"":null)},inputs:{required:"required"},features:[It([sB]),je]});let e=t;return e})();var MT=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=mt({type:t}),t.\u0275inj=_t({});let e=t;return e})(),_s=class extends Wi{constructor(t,r,n){super(U_(r),B_(n,r)),this.controls=t,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,r={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}insert(t,r,n={}){this.controls.splice(t,0,r),this._registerControl(r),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,r={}){let n=this._adjustIndex(t);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:r.emitEvent})}setControl(t,r,n={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),r&&(this.controls.splice(i,0,r),this._registerControl(r)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,r={}){bT(this,!1,t),t.forEach((n,i)=>{TT(this,!1,i),this.at(i).setValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(t,r={}){t!=null&&(t.forEach((n,i)=>{this.at(i)&&this.at(i).patchValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(t=[],r={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r),this._updateTouched(r),this.updateValueAndValidity(r)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(r=>r._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((r,n)=>n._syncPendingControls()?!0:r,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((r,n)=>{t(r,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(r=>r.enabled&&t(r))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};function uT(e){return!!e&&(e.asyncValidators!==void 0||e.validators!==void 0||e.updateOn!==void 0)}var sr=(()=>{let t=class t{constructor(){this.useNonNullable=!1}get nonNullable(){let n=new t;return n.useNonNullable=!0,n}group(n,i=null){let o=this._reduceControls(n),s={};return uT(i)?s=i:i!==null&&(s.validators=i.validator,s.asyncValidators=i.asyncValidator),new Ki(o,s)}record(n,i=null){let o=this._reduceControls(n);return new L_(o,i)}control(n,i,o){let s={};return this.useNonNullable?(uT(i)?s=i:(s.validators=i,s.asyncValidators=o),new Et(n,Ie(k({},s),{nonNullable:!0}))):new Et(n,i,o)}array(n,i,o){let s=n.map(a=>this._createControl(a));return new _s(s,i,o)}_reduceControls(n){let i={};return Object.keys(n).forEach(o=>{i[o]=this._createControl(n[o])}),i}_createControl(n){if(n instanceof Et)return n;if(n instanceof Wi)return n;if(Array.isArray(n)){let i=n[0],o=n.length>1?n[1]:null,s=n.length>2?n[2]:null;return this.control(i,o,s)}else return this.control(n)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var ze=(()=>{let t=class t{static withConfig(n){return{ngModule:t,providers:[{provide:ji,useValue:n.callSetDisabledState??ic}]}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=mt({type:t}),t.\u0275inj=_t({imports:[MT]});let e=t;return e})(),ar=(()=>{let t=class t{static withConfig(n){return{ngModule:t,providers:[{provide:q_,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:ji,useValue:n.callSetDisabledState??ic}]}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=mt({type:t}),t.\u0275inj=_t({imports:[MT]});let e=t;return e})();var aB=[[["","above-quill-editor-toolbar",""]],[["","quill-editor-toolbar",""]],[["","below-quill-editor-toolbar",""]]],lB=["[above-quill-editor-toolbar]","[quill-editor-toolbar]","[below-quill-editor-toolbar]"];function cB(e,t){e&1&&de(0,"div",0)}function uB(e,t){e&1&&de(0,"div",0)}var fs=(e,t)=>e||t||"html",wT=()=>new me(e=>{let t=requestAnimationFrame(()=>{e.next(),e.complete()});return()=>cancelAnimationFrame(t)}),z_=(()=>{let t=class t{constructor(n,i){this.config=i,this.quill$=li(()=>vs(this,null,function*(){if(!this.Quill){let o=this.document.addEventListener;this.document.addEventListener=this.document.__zone_symbol__addEventListener||this.document.addEventListener;let s=yield import("./chunk-OSF2O467.js");this.document.addEventListener=o,this.Quill=s.default?.default??s.default??s}return this.config.customOptions?.forEach(o=>{let s=this.Quill.import(o.import);s.whitelist=o.whitelist,this.Quill.register(s,!0,this.config.suppressGlobalRegisterWarning)}),yield this.registerCustomModules(this.Quill,this.config.customModules,this.config.suppressGlobalRegisterWarning)})).pipe(Yc({bufferSize:1,refCount:!0})),this.document=n.get(rt),this.config||(this.config={modules:Kl})}getQuill(){return this.quill$}registerCustomModules(n,i,o){return vs(this,null,function*(){if(Array.isArray(i))for(let{implementation:s,path:a}of i)lo(s)&&(s=yield kc(s)),n.register(a,s,o);return n})}};t.\u0275fac=function(i){return new(i||t)(K(An),K($i,8))},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),dB=(()=>{let t=class t{constructor(){this.format=ee(void 0),this.theme=ee(void 0),this.modules=ee(void 0),this.debug=ee(!1),this.readOnly=ee(!1),this.placeholder=ee(void 0),this.maxLength=ee(void 0),this.minLength=ee(void 0),this.required=ee(!1),this.formats=ee(void 0),this.customToolbarPosition=ee("top"),this.sanitize=ee(!1),this.beforeRender=ee(void 0),this.styles=ee(null),this.registry=ee(void 0),this.bounds=ee(void 0),this.customOptions=ee([]),this.customModules=ee([]),this.trackChanges=ee(void 0),this.classes=ee(void 0),this.trimOnValidation=ee(!1),this.linkPlaceholder=ee(void 0),this.compareValues=ee(!1),this.filterNull=ee(!1),this.debounceTime=ee(void 0),this.defaultEmptyValue=ee(null),this.onEditorCreated=new Ce,this.onEditorChanged=new Ce,this.onContentChanged=new Ce,this.onSelectionChanged=new Ce,this.onFocus=new Ce,this.onBlur=new Ce,this.onNativeFocus=new Ce,this.onNativeBlur=new Ce,this.disabled=!1,this.toolbarPosition=Mo("top"),this.subscription=null,this.quillSubscription=null,this.elementRef=w(ct),this.document=w(rt),this.cd=w(Pn),this.domSanitizer=w(Xn),this.platformId=w(Mn),this.renderer=w(Mt),this.zone=w(ye),this.service=w(z_),this.destroyRef=w(Ar),this.valueGetter=ee(n=>{let i=n.getSemanticHTML();(i==="


"||i==="

")&&(i=this.defaultEmptyValue());let o=i,s=fs(this.format(),this.service.config.format);if(s==="text")o=n.getText();else if(s==="object")o=n.getContents();else if(s==="json")try{o=JSON.stringify(n.getContents())}catch{o=n.getText()}return o}),this.valueSetter=ee((n,i)=>{let o=fs(this.format(),this.service.config.format);if(o==="html")return([!0,!1].includes(this.sanitize())?this.sanitize():this.service.config.sanitize||!1)&&(i=this.domSanitizer.sanitize(Vt.HTML,i)),n.clipboard.convert({html:i});if(o==="json")try{return JSON.parse(i)}catch{return[{insert:i}]}return i}),this.selectionChangeHandler=(n,i,o)=>{let s=this.trackChanges()||this.service.config.trackChanges,a=!n&&!!this.onModelTouched&&(o==="user"||s&&s==="all");!this.onBlur.observed&&!this.onFocus.observed&&!this.onSelectionChanged.observed&&!a||this.zone.run(()=>{n===null?this.onBlur.emit({editor:this.quillEditor,source:o}):i===null&&this.onFocus.emit({editor:this.quillEditor,source:o}),this.onSelectionChanged.emit({editor:this.quillEditor,oldRange:i,range:n,source:o}),a&&this.onModelTouched(),this.cd.markForCheck()})},this.textChangeHandler=(n,i,o)=>{let s=this.quillEditor.getText(),a=this.quillEditor.getContents(),l=this.quillEditor.getSemanticHTML();(l==="


"||l==="

")&&(l=this.defaultEmptyValue());let c=this.trackChanges()||this.service.config.trackChanges,u=(o==="user"||c&&c==="all")&&!!this.onModelChange;!this.onContentChanged.observed&&!u||this.zone.run(()=>{if(u){let d=this.valueGetter();this.onModelChange(d(this.quillEditor))}this.onContentChanged.emit({content:a,delta:n,editor:this.quillEditor,html:l,oldDelta:i,source:o,text:s}),this.cd.markForCheck()})},this.editorChangeHandler=(n,i,o,s)=>{if(this.onEditorChanged.observed)if(n==="text-change"){let a=this.quillEditor.getText(),l=this.quillEditor.getContents(),c=this.quillEditor.getSemanticHTML();(c==="


"||c==="

")&&(c=this.defaultEmptyValue()),this.zone.run(()=>{this.onEditorChanged.emit({content:l,delta:i,editor:this.quillEditor,event:n,html:c,oldDelta:o,source:s,text:a}),this.cd.markForCheck()})}else this.zone.run(()=>{this.onEditorChanged.emit({editor:this.quillEditor,event:n,oldRange:o,range:i,source:s}),this.cd.markForCheck()})}}static normalizeClassNames(n){return n.trim().split(" ").reduce((o,s)=>{let a=s.trim();return a&&o.push(a),o},[])}ngOnInit(){this.toolbarPosition.set(this.customToolbarPosition())}ngAfterViewInit(){wi(this.platformId)||(this.quillSubscription=this.service.getQuill().pipe(Ue(n=>{let i=[this.service.registerCustomModules(n,this.customModules())],o=this.beforeRender()??this.service.config.beforeRender;return o&&i.push(o()),Promise.all(i).then(()=>n)})).subscribe(n=>{this.editorElem=this.elementRef.nativeElement.querySelector("[quill-editor-element]");let i=this.elementRef.nativeElement.querySelector("[quill-editor-toolbar]"),o=Object.assign({},this.modules()||this.service.config.modules);i?o.toolbar=i:o.toolbar===void 0&&(o.toolbar=Kl.toolbar);let s=this.placeholder()!==void 0?this.placeholder():this.service.config.placeholder;s===void 0&&(s="Insert text here ...");let a=this.styles();a&&Object.keys(a).forEach(_=>{this.renderer.setStyle(this.editorElem,_,a[_])}),this.classes()&&this.addClasses(this.classes()),this.customOptions().forEach(_=>{let m=n.import(_.import);m.whitelist=_.whitelist,n.register(m,!0)});let l=this.bounds()&&this.bounds()==="self"?this.editorElem:this.bounds();l||(l=this.service.config.bounds?this.service.config.bounds:this.document.body);let c=this.debug();!c&&c!==!1&&this.service.config.debug&&(c=this.service.config.debug);let u=this.readOnly();!u&&this.readOnly()!==!1&&(u=this.service.config.readOnly!==void 0?this.service.config.readOnly:!1);let d=this.defaultEmptyValue;this.service.config.hasOwnProperty("defaultEmptyValue")&&(d=this.service.config.defaultEmptyValue);let p=this.formats();if(!p&&p===void 0&&(p=this.service.config.formats?[...this.service.config.formats]:this.service.config.formats===null?null:void 0),this.zone.runOutsideAngular(()=>{if(this.quillEditor=new n(this.editorElem,{bounds:l,debug:c,formats:p,modules:o,placeholder:s,readOnly:u,defaultEmptyValue:d,registry:this.registry(),theme:this.theme()||(this.service.config.theme?this.service.config.theme:"snow")}),this.onNativeBlur.observed&&(this.quillEditor.scroll.domNode.addEventListener("blur",()=>this.onNativeBlur.next({editor:this.quillEditor,source:"dom"})),this.quillEditor.getModule("toolbar").container?.addEventListener("mousedown",m=>m.preventDefault())),this.onNativeFocus.observed&&this.quillEditor.scroll.domNode.addEventListener("focus",()=>this.onNativeFocus.next({editor:this.quillEditor,source:"dom"})),this.linkPlaceholder()){let m=this.quillEditor?.theme?.tooltip?.root?.querySelector("input[data-link]");m?.dataset&&(m.dataset.link=this.linkPlaceholder())}}),this.content){if(fs(this.format(),this.service.config.format)==="text")this.quillEditor.setText(this.content,"silent");else{let S=this.valueSetter()(this.quillEditor,this.content);this.quillEditor.setContents(S,"silent")}this.quillEditor.getModule("history").clear()}this.setDisabledState(),this.addQuillEventListeners(),!(!this.onEditorCreated.observed&&!this.onValidatorChanged)&&wT().pipe(Ql(this.destroyRef)).subscribe(()=>{this.onValidatorChanged&&this.onValidatorChanged(),this.onEditorCreated.emit(this.quillEditor)})}))}ngOnDestroy(){this.dispose(),this.quillSubscription?.unsubscribe(),this.quillSubscription=null}ngOnChanges(n){if(this.quillEditor){if(n.readOnly&&this.quillEditor.enable(!n.readOnly.currentValue),n.placeholder&&(this.quillEditor.root.dataset.placeholder=n.placeholder.currentValue),n.defaultEmptyValue&&(this.quillEditor.root.dataset.defaultEmptyValue=n.defaultEmptyValue.currentValue),n.styles){let i=n.styles.currentValue,o=n.styles.previousValue;o&&Object.keys(o).forEach(s=>{this.renderer.removeStyle(this.editorElem,s)}),i&&Object.keys(i).forEach(s=>{this.renderer.setStyle(this.editorElem,s,this.styles()[s])})}if(n.classes){let i=n.classes.currentValue,o=n.classes.previousValue;o&&this.removeClasses(o),i&&this.addClasses(i)}n.debounceTime&&this.addQuillEventListeners()}}addClasses(n){t.normalizeClassNames(n).forEach(i=>{this.renderer.addClass(this.editorElem,i)})}removeClasses(n){t.normalizeClassNames(n).forEach(i=>{this.renderer.removeClass(this.editorElem,i)})}writeValue(n){if(this.filterNull()&&n===null||(this.content=n,!this.quillEditor))return;let i=fs(this.format(),this.service.config.format),s=this.valueSetter()(this.quillEditor,n);if(this.compareValues()){let a=this.quillEditor.getContents();if(JSON.stringify(a)===JSON.stringify(s))return}if(n){i==="text"?this.quillEditor.setText(n):this.quillEditor.setContents(s);return}this.quillEditor.setText("")}setDisabledState(n=this.disabled){this.disabled=n,this.quillEditor&&(n?(this.quillEditor.disable(),this.renderer.setAttribute(this.elementRef.nativeElement,"disabled","disabled")):(this.readOnly()||this.quillEditor.enable(),this.renderer.removeAttribute(this.elementRef.nativeElement,"disabled")))}registerOnChange(n){this.onModelChange=n}registerOnTouched(n){this.onModelTouched=n}registerOnValidatorChange(n){this.onValidatorChanged=n}validate(){if(!this.quillEditor)return null;let n={},i=!0,o=this.quillEditor.getText(),s=this.trimOnValidation()?o.trim().length:o.length===1&&o.trim().length===0?0:o.length-1,a=this.quillEditor.getContents().ops,l=!!a&&a.length===1&&[` -`,""].includes(a[0].insert?.toString());return this.minLength()&&s&&sthis.maxLength()&&(n.maxLengthError={given:s,maxLength:this.maxLength()},i=!1),this.required()&&!s&&l&&(n.requiredError={empty:!0},i=!1),i?null:n}addQuillEventListeners(){this.dispose(),this.zone.runOutsideAngular(()=>{this.subscription=new He,this.subscription.add(_r(this.quillEditor,"selection-change").subscribe(([o,s,a])=>{this.selectionChangeHandler(o,s,a)}));let n=_r(this.quillEditor,"text-change"),i=_r(this.quillEditor,"editor-change");typeof this.debounceTime()=="number"&&(n=n.pipe(mr(this.debounceTime())),i=i.pipe(mr(this.debounceTime()))),this.subscription.add(n.subscribe(([o,s,a])=>{this.textChangeHandler(o,s,a)})),this.subscription.add(i.subscribe(([o,s,a,l])=>{this.editorChangeHandler(o,s,a,l)}))})}dispose(){this.subscription!==null&&(this.subscription.unsubscribe(),this.subscription=null)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=Oe({type:t,inputs:{format:[F.SignalBased,"format"],theme:[F.SignalBased,"theme"],modules:[F.SignalBased,"modules"],debug:[F.SignalBased,"debug"],readOnly:[F.SignalBased,"readOnly"],placeholder:[F.SignalBased,"placeholder"],maxLength:[F.SignalBased,"maxLength"],minLength:[F.SignalBased,"minLength"],required:[F.SignalBased,"required"],formats:[F.SignalBased,"formats"],customToolbarPosition:[F.SignalBased,"customToolbarPosition"],sanitize:[F.SignalBased,"sanitize"],beforeRender:[F.SignalBased,"beforeRender"],styles:[F.SignalBased,"styles"],registry:[F.SignalBased,"registry"],bounds:[F.SignalBased,"bounds"],customOptions:[F.SignalBased,"customOptions"],customModules:[F.SignalBased,"customModules"],trackChanges:[F.SignalBased,"trackChanges"],classes:[F.SignalBased,"classes"],trimOnValidation:[F.SignalBased,"trimOnValidation"],linkPlaceholder:[F.SignalBased,"linkPlaceholder"],compareValues:[F.SignalBased,"compareValues"],filterNull:[F.SignalBased,"filterNull"],debounceTime:[F.SignalBased,"debounceTime"],defaultEmptyValue:[F.SignalBased,"defaultEmptyValue"],valueGetter:[F.SignalBased,"valueGetter"],valueSetter:[F.SignalBased,"valueSetter"]},outputs:{onEditorCreated:"onEditorCreated",onEditorChanged:"onEditorChanged",onContentChanged:"onContentChanged",onSelectionChanged:"onSelectionChanged",onFocus:"onFocus",onBlur:"onBlur",onNativeFocus:"onNativeFocus",onNativeBlur:"onNativeBlur"},features:[vt]});let e=t;return e})(),Se=(()=>{let t=class t extends dB{};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=rn(t)))(o||t)}})(),t.\u0275cmp=X({type:t,selectors:[["quill-editor"]],standalone:!0,features:[It([{multi:!0,provide:ir,useExisting:lt(()=>t)},{multi:!0,provide:Tn,useExisting:lt(()=>t)}]),je,oe],ngContentSelectors:lB,decls:5,vars:2,consts:[["quill-editor-element",""]],template:function(i,o){i&1&&(uE(aB),Zn(0,cB,1,0,"div",0),el(1),el(2,1),el(3,2),Zn(4,uB,1,0,"div",0)),i&2&&(wo(0,o.toolbarPosition()!=="top"?0:-1),G(4),wo(4,o.toolbarPosition()==="top"?4:-1))},styles:["[_nghost-%COMP%]{display:inline-block}"]});let e=t;return e})(),lc=(()=>{let t=class t{constructor(n,i){this.sanitizer=n,this.service=i,this.content=ee(""),this.theme=ee(void 0),this.sanitize=ee(!1),this.innerHTML=Mo(""),this.themeClass=Mo("ql-snow")}ngOnChanges(n){if(n.theme){let i=n.theme.currentValue||(this.service.config.theme?this.service.config.theme:"snow");this.themeClass.set(`ql-${i} ngx-quill-view-html`)}else if(!this.theme()){let i=this.service.config.theme?this.service.config.theme:"snow";this.themeClass.set(`ql-${i} ngx-quill-view-html`)}if(n.content){let i=n.content.currentValue,s=([!0,!1].includes(this.sanitize())?this.sanitize():this.service.config.sanitize||!1)?i:this.sanitizer.bypassSecurityTrustHtml(i);this.innerHTML.set(s)}}};t.\u0275fac=function(i){return new(i||t)(P(Xn),P(z_))},t.\u0275cmp=X({type:t,selectors:[["quill-view-html"]],inputs:{content:[F.SignalBased,"content"],theme:[F.SignalBased,"theme"],sanitize:[F.SignalBased,"sanitize"]},standalone:!0,features:[vt,oe],decls:2,vars:2,consts:[[1,"ql-container",3,"ngClass"],[1,"ql-editor",3,"innerHTML"]],template:function(i,o){i&1&&(v(0,"div",0),de(1,"div",1),R()),i&2&&(ie("ngClass",o.themeClass()),G(),ie("innerHTML",o.innerHTML(),Ha))},dependencies:[AE],styles:[`.ql-container.ngx-quill-view-html{border:0} + `)}`}var ld=eg(zf("Optional"),8);var tg=eg(zf("SkipSelf"),4);function hr(e,t){let r=e.hasOwnProperty(pa);return r?e[pa]:null}function mA(e,t,r){if(e.length!==t.length)return!1;for(let n=0;nArray.isArray(r)?cd(r,t):t(r))}function ng(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function ma(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function gA(e,t){let r=[];for(let n=0;nt;){let o=i-2;e[i]=e[o],i--}e[t]=r,e[t+1]=n}}function EA(e,t,r){let n=Io(e,t);return n>=0?e[n|1]=r:(n=~n,hA(e,n,t,r)),n}function $c(e,t){let r=Io(e,t);if(r>=0)return e[r|1]}function Io(e,t){return SA(e,t,1)}function SA(e,t,r){let n=0,i=e.length>>r;for(;i!==n;){let o=n+(i-n>>1),s=e[o<t?i=o:n=o+1}return~(i<t){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[u+1].toLowerCase(),n&2&&c!==d){if(Zt(n))return!1;s=!0}}}}return Zt(n)||s}function Zt(e){return(e&1)===0}function IA(e,t,r,n){if(t===null)return-1;let i=0;if(n||!r){let o=!1;for(;i-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?i+="."+s:n&4&&(i+=" "+s);else i!==""&&!Zt(s)&&(t+=uf(o,i),i=""),n=s,o=o||!Zt(n);r++}return i!==""&&(t+=uf(o,i)),t}function wA(e){return e.map(MA).join(",")}function xA(e){let t=[],r=[],n=1,i=2;for(;n{let t=_g(e),r=Ie(k({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===og.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||pn.Emulated,styles:e.styles||Ft,_:null,schemas:e.schemas||null,tView:null,id:""});mg(r);let n=e.dependencies;return r.directiveDefs=pf(n,!1),r.pipeDefs=pf(n,!0),r.id=kA(r),r})}function LA(e){return Er(e)||cg(e)}function PA(e){return e!==null}function mt(e){return Ro(()=>({type:e.type,bootstrap:e.bootstrap||Ft,declarations:e.declarations||Ft,imports:e.imports||Ft,exports:e.exports||Ft,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function df(e,t){if(e==null)return hi;let r={};for(let n in e)if(e.hasOwnProperty(n)){let i=e[n],o,s,a=F.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),t?(r[o]=a!==F.None?[n,a]:n,t[o]=s):r[o]=n}return r}function Oe(e){return Ro(()=>{let t=_g(e);return mg(t),t})}function lg(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Er(e){return e[JO]||null}function cg(e){return e[eA]||null}function ug(e){return e[tA]||null}function dg(e){let t=Er(e)||cg(e)||ug(e);return t!==null?t.standalone:!1}function pg(e,t){let r=e[nA]||null;if(!r&&t===!0)throw new Error(`Type ${Ct(e)} does not have '\u0275mod' property.`);return r}function _g(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,inputTransforms:null,inputConfig:e.inputs||hi,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||Ft,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:df(e.inputs,t),outputs:df(e.outputs),debugInfo:null}}function mg(e){e.features?.forEach(t=>t(e))}function pf(e,t){if(!e)return null;let r=t?ug:LA;return()=>(typeof e=="function"?e():e).map(n=>r(n)).filter(PA)}function kA(e){let t=0,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let i of r)t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Ri(e){return{\u0275providers:e}}function dd(...e){return{\u0275providers:fg(!0,e),\u0275fromNgModule:!0}}function fg(e,...t){let r=[],n=new Set,i,o=s=>{r.push(s)};return cd(t,s=>{let a=s;uu(a,o,[],n)&&(i||=[],i.push(a))}),i!==void 0&&gg(i,o),r}function gg(e,t){for(let r=0;r{t(o,n)})}}function uu(e,t,r,n){if(e=gt(e),!e)return!1;let i=null,o=of(e),s=!o&&Er(e);if(!o&&!s){let l=e.ngModule;if(o=of(l),o)i=l;else return!1}else{if(s&&!s.standalone)return!1;i=e}let a=n.has(i);if(s){if(a)return!1;if(n.add(i),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)uu(c,t,r,n)}}else if(o){if(o.imports!=null&&!a){n.add(i);let c;try{cd(o.imports,u=>{uu(u,t,r,n)&&(c||=[],c.push(u))})}finally{}c!==void 0&&gg(c,t)}if(!a){let c=hr(i)||(()=>new i);t({provide:i,useFactory:c,deps:Ft},i),t({provide:ig,useValue:i,multi:!0},i),t({provide:Ei,useValue:()=>K(i),multi:!0},i)}let l=o.providers;if(l!=null&&!a){let c=e;pd(l,u=>{t(u,c)})}}else return!1;return i!==e&&e.providers!==void 0}function pd(e,t){for(let r of e)Zf(r)&&(r=r.\u0275providers),Array.isArray(r)?pd(r,t):t(r)}var FA=Me({provide:String,useValue:Me});function hg(e){return e!==null&&typeof e=="object"&&FA in e}function UA(e){return!!(e&&e.useExisting)}function BA(e){return!!(e&&e.useFactory)}function Si(e){return typeof e=="function"}function GA(e){return!!e.useClass}var xa=new j(""),sa={},VA={},zc;function _d(){return zc===void 0&&(zc=new fa),zc}var Ut=class{},fo=class extends Ut{get destroyed(){return this._destroyed}constructor(t,r,n,i){super(),this.parent=r,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,pu(t,s=>this.processProvider(s)),this.records.set(rg,di(void 0,this)),i.has("environment")&&this.records.set(Ut,di(void 0,this));let o=this.records.get(xa);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(ig,Ft,ue.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=he(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of r)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),he(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let r=$n(this),n=bt(void 0),i;try{return t()}finally{$n(r),bt(n)}}get(t,r=_o,n=ue.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(af))return t[af](this);n=wa(n);let i,o=$n(this),s=bt(void 0);try{if(!(n&ue.SkipSelf)){let l=this.records.get(t);if(l===void 0){let c=zA(t)&&Ma(t);c&&this.injectableDefInScope(c)?l=di(du(t),sa):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l)}let a=n&ue.Self?_d():this.parent;return r=n&ue.Optional&&r===_o?null:r,a.get(t,r)}catch(a){if(a.name==="NullInjectorError"){if((a[_a]=a[_a]||[]).unshift(Ct(t)),o)throw a;return pA(a,t,"R3InjectorError",this.source)}else throw a}finally{bt(s),$n(o)}}resolveInjectorInitializers(){let t=he(null),r=$n(this),n=bt(void 0),i;try{let o=this.get(Ei,Ft,ue.Self);for(let s of o)s()}finally{$n(r),bt(n),he(t)}}toString(){let t=[],r=this.records;for(let n of r.keys())t.push(Ct(n));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new N(205,!1)}processProvider(t){t=gt(t);let r=Si(t)?t:gt(t&&t.provide),n=YA(t);if(!Si(t)&&t.multi===!0){let i=this.records.get(r);i||(i=di(void 0,sa,!0),i.factory=()=>lu(i.multi),this.records.set(r,i)),r=t,i.multi.push(t)}this.records.set(r,n)}hydrate(t,r){let n=he(null);try{return r.value===sa&&(r.value=VA,r.value=r.factory()),typeof r.value=="object"&&r.value&&$A(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{he(n)}}injectableDefInScope(t){if(!t.providedIn)return!1;let r=gt(t.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(t){let r=this._onDestroyHooks.indexOf(t);r!==-1&&this._onDestroyHooks.splice(r,1)}};function du(e){let t=Ma(e),r=t!==null?t.factory:hr(e);if(r!==null)return r;if(e instanceof j)throw new N(204,!1);if(e instanceof Function)return HA(e);throw new N(204,!1)}function HA(e){if(e.length>0)throw new N(204,!1);let r=ZO(e);return r!==null?()=>r.factory(e):()=>new e}function YA(e){if(hg(e))return di(void 0,e.useValue);{let t=Eg(e);return di(t,sa)}}function Eg(e,t,r){let n;if(Si(e)){let i=gt(e);return hr(i)||du(i)}else if(hg(e))n=()=>gt(e.useValue);else if(BA(e))n=()=>e.useFactory(...lu(e.deps||[]));else if(UA(e))n=()=>K(gt(e.useExisting));else{let i=gt(e&&(e.useClass||e.provide));if(qA(e))n=()=>new i(...lu(e.deps));else return hr(i)||du(i)}return n}function di(e,t,r=!1){return{factory:e,value:t,multi:r?[]:void 0}}function qA(e){return!!e.deps}function $A(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function zA(e){return typeof e=="function"||typeof e=="object"&&e instanceof j}function pu(e,t){for(let r of e)Array.isArray(r)?pu(r,t):r&&Zf(r)?pu(r.\u0275providers,t):t(r)}function Nr(e,t){e instanceof fo&&e.assertNotDestroyed();let r,n=$n(e),i=bt(void 0);try{return t()}finally{$n(n),bt(i)}}function Sg(){return Xf()!==void 0||cA()!=null}function Tg(e){if(!Sg())throw new N(-203,!1)}function WA(e){return typeof e=="function"}var Dn=0,ne=1,Q=2,at=3,Xt=4,At=5,go=6,ho=7,Bt=8,Ti=9,Jt=10,qe=11,Eo=12,_f=13,Ii=14,en=15,No=16,pi=17,yn=18,La=19,bg=20,zn=21,Wc=22,Sr=23,ht=25,Cg=1;var Tr=7,ga=8,bi=9,yt=10,md=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(md||{});function fr(e){return Array.isArray(e)&&typeof e[Cg]=="object"}function On(e){return Array.isArray(e)&&e[Cg]===!0}function fd(e){return(e.flags&4)!==0}function Pa(e){return e.componentOffset>-1}function ka(e){return(e.flags&1)===1}function Wn(e){return!!e.template}function KA(e){return(e[Q]&512)!==0}var _u=class{constructor(t,r,n){this.previousValue=t,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function yg(e,t,r,n){t!==null?t.applyValueToInputSignal(t,n):e[r]=n}function vt(){return vg}function vg(e){return e.type.prototype.ngOnChanges&&(e.setInput=jA),QA}vt.ngInherit=!0;function QA(){let e=Ig(this),t=e?.current;if(t){let r=e.previous;if(r===hi)e.previous=t;else for(let n in t)r[n]=t[n];e.current=null,this.ngOnChanges(t)}}function jA(e,t,r,n,i){let o=this.declaredInputs[n],s=Ig(e)||ZA(e,{previous:hi,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[o];a[o]=new _u(c&&c.currentValue,r,l===hi),yg(e,t,i,r)}var Rg="__ngSimpleChanges__";function Ig(e){return e[Rg]||null}function ZA(e,t){return e[Rg]=t}var mf=null;var un=function(e,t,r){mf?.(e,t,r)},Ng="svg",XA="math",JA=!1;function eM(){return JA}function _n(e){for(;Array.isArray(e);)e=e[Dn];return e}function Dg(e,t){return _n(t[e])}function Gt(e,t){return _n(t[e.index])}function gd(e,t){return e.data[t]}function Og(e,t){return e[t]}function jn(e,t){let r=t[e];return fr(r)?r:r[Dn]}function tM(e){return(e[Q]&4)===4}function hd(e){return(e[Q]&128)===128}function nM(e){return On(e[at])}function Ci(e,t){return t==null?null:e[t]}function Ag(e){e[pi]=0}function rM(e){e[Q]&1024||(e[Q]|=1024,hd(e)&&So(e))}function iM(e,t){for(;e>0;)t=t[Ii],e--;return t}function Ed(e){return!!(e[Q]&9216||e[Sr]?.dirty)}function mu(e){e[Jt].changeDetectionScheduler?.notify(1),Ed(e)?So(e):e[Q]&64&&(eM()?(e[Q]|=1024,So(e)):e[Jt].changeDetectionScheduler?.notify())}function So(e){e[Jt].changeDetectionScheduler?.notify();let t=To(e);for(;t!==null&&!(t[Q]&8192||(t[Q]|=8192,!hd(t)));)t=To(t)}function Mg(e,t){if((e[Q]&256)===256)throw new N(911,!1);e[zn]===null&&(e[zn]=[]),e[zn].push(t)}function oM(e,t){if(e[zn]===null)return;let r=e[zn].indexOf(t);r!==-1&&e[zn].splice(r,1)}function To(e){let t=e[at];return On(t)?t[at]:t}var re={lFrame:Bg(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function sM(){return re.lFrame.elementDepthCount}function aM(){re.lFrame.elementDepthCount++}function lM(){re.lFrame.elementDepthCount--}function wg(){return re.bindingsEnabled}function xg(){return re.skipHydrationRootTNode!==null}function cM(e){return re.skipHydrationRootTNode===e}function uM(){re.skipHydrationRootTNode=null}function fe(){return re.lFrame.lView}function Qe(){return re.lFrame.tView}function tn(e){return re.lFrame.contextLView=e,e[Bt]}function nn(e){return re.lFrame.contextLView=null,e}function Rt(){let e=Lg();for(;e!==null&&e.type===64;)e=e.parent;return e}function Lg(){return re.lFrame.currentTNode}function dM(){let e=re.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Dr(e,t){let r=re.lFrame;r.currentTNode=e,r.isParent=t}function Sd(){return re.lFrame.isParent}function Td(){re.lFrame.isParent=!1}function pM(){return re.lFrame.contextLView}function bd(){let e=re.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function _M(){return re.lFrame.bindingIndex}function mM(e){return re.lFrame.bindingIndex=e}function Do(){return re.lFrame.bindingIndex++}function Pg(e){let t=re.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}function fM(){return re.lFrame.inI18n}function gM(e,t){let r=re.lFrame;r.bindingIndex=r.bindingRootIndex=e,fu(t)}function hM(){return re.lFrame.currentDirectiveIndex}function fu(e){re.lFrame.currentDirectiveIndex=e}function EM(e){let t=re.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function kg(){return re.lFrame.currentQueryIndex}function Cd(e){re.lFrame.currentQueryIndex=e}function SM(e){let t=e[ne];return t.type===2?t.declTNode:t.type===1?e[At]:null}function Fg(e,t,r){if(r&ue.SkipSelf){let i=t,o=e;for(;i=i.parent,i===null&&!(r&ue.Host);)if(i=SM(o),i===null||(o=o[Ii],i.type&10))break;if(i===null)return!1;t=i,e=o}let n=re.lFrame=Ug();return n.currentTNode=t,n.lView=e,!0}function yd(e){let t=Ug(),r=e[ne];re.lFrame=t,t.currentTNode=r.firstChild,t.lView=e,t.tView=r,t.contextLView=e,t.bindingIndex=r.bindingStartIndex,t.inI18n=!1}function Ug(){let e=re.lFrame,t=e===null?null:e.child;return t===null?Bg(e):t}function Bg(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 Gg(){let e=re.lFrame;return re.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Vg=Gg;function vd(){let e=Gg();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 TM(e){return(re.lFrame.contextLView=iM(e,re.lFrame.contextLView))[Bt]}function Or(){return re.lFrame.selectedIndex}function br(e){re.lFrame.selectedIndex=e}function Rd(){let e=re.lFrame;return gd(e.tView,e.selectedIndex)}function Hg(){re.lFrame.currentNamespace=Ng}function Yg(){bM()}function bM(){re.lFrame.currentNamespace=null}function CM(){return re.lFrame.currentNamespace}var qg=!0;function Fa(){return qg}function Ua(e){qg=e}function yM(e,t,r){let{ngOnChanges:n,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(n){let s=vg(t);(r.preOrderHooks??=[]).push(e,s),(r.preOrderCheckHooks??=[]).push(e,s)}i&&(r.preOrderHooks??=[]).push(0-e,i),o&&((r.preOrderHooks??=[]).push(e,o),(r.preOrderCheckHooks??=[]).push(e,o))}function Ba(e,t){for(let r=t.directiveStart,n=t.directiveEnd;r=n)break}else t[l]<0&&(e[pi]+=65536),(a>14>16&&(e[Q]&3)===t&&(e[Q]+=16384,ff(a,o)):ff(a,o)}var fi=-1,Cr=class{constructor(t,r,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function RM(e){return e instanceof Cr}function IM(e){return(e.flags&8)!==0}function NM(e){return(e.flags&16)!==0}function zg(e){return e!==fi}function ha(e){return e&32767}function DM(e){return e>>16}function Ea(e,t){let r=DM(e),n=t;for(;r>0;)n=n[Ii],r--;return n}var gu=!0;function Sa(e){let t=gu;return gu=e,t}var OM=256,Wg=OM-1,Kg=5,AM=0,dn={};function MM(e,t,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(po)&&(n=r[po]),n==null&&(n=r[po]=AM++);let i=n&Wg,o=1<>Kg)]|=o}function Ta(e,t){let r=Qg(e,t);if(r!==-1)return r;let n=t[ne];n.firstCreatePass&&(e.injectorIndex=t.length,Qc(n.data,e),Qc(t,null),Qc(n.blueprint,null));let i=Id(e,t),o=e.injectorIndex;if(zg(i)){let s=ha(i),a=Ea(i,t),l=a[ne].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|l[s+c]}return t[o+8]=i,o}function Qc(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Qg(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Id(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let r=0,n=null,i=t;for(;i!==null;){if(n=eh(i),n===null)return fi;if(r++,i=i[Ii],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return fi}function hu(e,t,r){MM(e,t,r)}function jg(e,t,r){if(r&ue.Optional||e!==void 0)return e;ad(t,"NodeInjector")}function Zg(e,t,r,n){if(r&ue.Optional&&n===void 0&&(n=null),!(r&(ue.Self|ue.Host))){let i=e[Ti],o=bt(void 0);try{return i?i.get(t,n,r&ue.Optional):Jf(t,n,r&ue.Optional)}finally{bt(o)}}return jg(n,t,r)}function Xg(e,t,r,n=ue.Default,i){if(e!==null){if(t[Q]&2048&&!(n&ue.Self)){let s=PM(e,t,r,n,dn);if(s!==dn)return s}let o=Jg(e,t,r,n,dn);if(o!==dn)return o}return Zg(t,r,n,i)}function Jg(e,t,r,n,i){let o=xM(r);if(typeof o=="function"){if(!Fg(t,e,n))return n&ue.Host?jg(i,r,n):Zg(t,r,n,i);try{let s;if(s=o(n),s==null&&!(n&ue.Optional))ad(r);else return s}finally{Vg()}}else if(typeof o=="number"){let s=null,a=Qg(e,t),l=fi,c=n&ue.Host?t[en][At]:null;for((a===-1||n&ue.SkipSelf)&&(l=a===-1?Id(e,t):t[a+8],l===fi||!hf(n,!1)?a=-1:(s=t[ne],a=ha(l),t=Ea(l,t)));a!==-1;){let u=t[ne];if(gf(o,a,u.data)){let d=wM(a,t,r,s,n,c);if(d!==dn)return d}l=t[a+8],l!==fi&&hf(n,t[ne].data[a+8]===c)&&gf(o,a,t)?(s=u,a=ha(l),t=Ea(l,t)):a=-1}}return i}function wM(e,t,r,n,i,o){let s=t[ne],a=s.data[e+8],l=n==null?Pa(a)&&gu:n!=s&&(a.type&3)!==0,c=i&ue.Host&&o===a,u=ca(a,s,r,l,c);return u!==null?yr(t,s,u,a):dn}function ca(e,t,r,n,i){let o=e.providerIndexes,s=t.data,a=o&1048575,l=e.directiveStart,c=e.directiveEnd,u=o>>20,d=n?a:a+u,p=i?a+u:c;for(let _=d;_=l&&m.type===r)return _}if(i){let _=s[l];if(_&&Wn(_)&&_.type===r)return l}return null}function yr(e,t,r,n){let i=e[r],o=t.data;if(RM(i)){let s=i;s.resolving&&iA(rA(o[r]));let a=Sa(s.canSeeViewProviders);s.resolving=!0;let l,c=s.injectImpl?bt(s.injectImpl):null,u=Fg(e,n,ue.Default);try{i=e[r]=s.factory(void 0,o,e,n),t.firstCreatePass&&r>=n.directiveStart&&yM(r,o[r],t)}finally{c!==null&&bt(c),Sa(a),s.resolving=!1,Vg()}}return i}function xM(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(po)?e[po]:void 0;return typeof t=="number"?t>=0?t&Wg:LM:t}function gf(e,t,r){let n=1<>Kg)]&n)}function hf(e,t){return!(e&ue.Self)&&!(e&ue.Host&&t)}var gr=class{constructor(t,r){this._tNode=t,this._lView=r}get(t,r,n){return Xg(this._tNode,this._lView,t,wa(n),r)}};function LM(){return new gr(Rt(),fe())}function rn(e){return Ro(()=>{let t=e.prototype.constructor,r=t[pa]||Eu(t),n=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==n;){let o=i[pa]||Eu(i);if(o&&o!==r)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Eu(e){return Wf(e)?()=>{let t=Eu(gt(e));return t&&t()}:hr(e)}function PM(e,t,r,n,i){let o=e,s=t;for(;o!==null&&s!==null&&s[Q]&2048&&!(s[Q]&512);){let a=Jg(o,s,r,n|ue.Self,dn);if(a!==dn)return a;let l=o.parent;if(!l){let c=s[bg];if(c){let u=c.get(r,dn,n);if(u!==dn)return u}l=eh(s),s=s[Ii]}o=l}return i}function eh(e){let t=e[ne],r=t.type;return r===2?t.declTNode:r===1?e[At]:null}function Ef(e,t=null,r=null,n){let i=th(e,t,r,n);return i.resolveInjectorInitializers(),i}function th(e,t=null,r=null,n,i=new Set){let o=[r||Ft,dd(e)];return n=n||(typeof e=="object"?void 0:Ct(e)),new fo(o,t||_d(),n||null,i)}var An=(()=>{let t=class t{static create(n,i){if(Array.isArray(n))return Ef({name:""},i,n,"");{let o=n.name??"";return Ef({name:o},n.parent,n.providers,o)}}};t.THROW_IF_NOT_FOUND=_o,t.NULL=new fa,t.\u0275prov=Y({token:t,providedIn:"any",factory:()=>K(rg)}),t.__NG_ELEMENT_ID__=-1;let e=t;return e})();var kM="ngOriginalError";function jc(e){return e[kM]}var vn=class{constructor(){this._console=console}handleError(t){let r=this._findOriginalError(t);this._console.error("ERROR",t),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(t){let r=t&&jc(t);for(;r&&jc(r);)r=jc(r);return r||null}},nh=new j("",{providedIn:"root",factory:()=>w(vn).handleError.bind(void 0)}),Ar=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=FM,t.__NG_ENV_ID__=n=>n;let e=t;return e})(),Su=class extends Ar{constructor(t){super(),this._lView=t}onDestroy(t){return Mg(this._lView,t),()=>oM(this._lView,t)}};function FM(){return new Su(fe())}function Sf(e,t){return $f(e,t)}function UM(e){return $f(qf,e)}var ee=(Sf.required=UM,Sf);function BM(){return Ni(Rt(),fe())}function Ni(e,t){return new ct(Gt(e,t))}var ct=(()=>{let t=class t{constructor(n){this.nativeElement=n}};t.__NG_ELEMENT_ID__=BM;let e=t;return e})();function GM(e){return e instanceof ct?e.nativeElement:e}var Tu=class extends Ke{constructor(t=!1){super(),this.destroyRef=void 0,this.__isAsync=t,Sg()&&(this.destroyRef=w(Ar,{optional:!0})??void 0)}emit(t){let r=he(null);try{super.next(t)}finally{he(r)}}subscribe(t,r,n){let i=t,o=r||(()=>null),s=n;if(t&&typeof t=="object"){let l=t;i=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=Zc(o),i&&(i=Zc(i)),s&&(s=Zc(s)));let a=super.subscribe({next:i,error:o,complete:s});return t instanceof He&&t.add(a),a}};function Zc(e){return t=>{setTimeout(e,void 0,t)}}var Ce=Tu;function VM(){return this._results[Symbol.iterator]()}var bu=class e{get changes(){return this._changes??=new Ce}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let r=e.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=VM)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,r){return this._results.reduce(t,r)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,r){this.dirty=!1;let n=fA(t);(this._changesDetected=!mA(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function rh(e){return(e.flags&128)===128}var ih=new Map,HM=0;function YM(){return HM++}function qM(e){ih.set(e[La],e)}function $M(e){ih.delete(e[La])}var Tf="__ngContext__";function Kn(e,t){fr(t)?(e[Tf]=t[La],qM(t)):e[Tf]=t}function oh(e){return ah(e[Eo])}function sh(e){return ah(e[Xt])}function ah(e){for(;e!==null&&!On(e);)e=e[Xt];return e}var Cu;function lh(e){Cu=e}function ch(){if(Cu!==void 0)return Cu;if(typeof document<"u")return document;throw new N(210,!1)}var Ga=new j("",{providedIn:"root",factory:()=>zM}),zM="ng",Nd=new j(""),Mn=new j("",{providedIn:"platform",factory:()=>"unknown"});var Dd=new j(""),Od=new j("",{providedIn:"root",factory:()=>ch().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var WM="h",KM="b";var QM=()=>null;function Ad(e,t,r=!1){return QM(e,t,r)}var uh=!1,jM=new j("",{providedIn:"root",factory:()=>uh});var ta;function ZM(){if(ta===void 0&&(ta=null,pt.trustedTypes))try{ta=pt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ta}function Va(e){return ZM()?.createHTML(e)||e}var na;function XM(){if(na===void 0&&(na=null,pt.trustedTypes))try{na=pt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return na}function bf(e){return XM()?.createHTML(e)||e}var Rn=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Yf})`}},yu=class extends Rn{getTypeName(){return"HTML"}},vu=class extends Rn{getTypeName(){return"Style"}},Ru=class extends Rn{getTypeName(){return"Script"}},Iu=class extends Rn{getTypeName(){return"URL"}},Nu=class extends Rn{getTypeName(){return"ResourceURL"}};function wn(e){return e instanceof Rn?e.changingThisBreaksApplicationSecurity:e}function Mr(e,t){let r=JM(e);if(r!=null&&r!==t){if(r==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${r} (see ${Yf})`)}return r===t}function JM(e){return e instanceof Rn&&e.getTypeName()||null}function dh(e){return new yu(e)}function ph(e){return new vu(e)}function _h(e){return new Ru(e)}function mh(e){return new Iu(e)}function fh(e){return new Nu(e)}function ew(e){let t=new Ou(e);return tw()?new Du(t):t}var Du=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let r=new window.DOMParser().parseFromString(Va(t),"text/html").body;return r===null?this.inertDocumentHelper.getInertBodyElement(t):(r.removeChild(r.firstChild),r)}catch{return null}}},Ou=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let r=this.inertDocument.createElement("template");return r.innerHTML=Va(t),r}};function tw(){try{return!!new window.DOMParser().parseFromString(Va(""),"text/html")}catch{return!1}}var nw=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Md(e){return e=String(e),e.match(nw)?e:"unsafe:"+e}function xn(e){let t={};for(let r of e.split(","))t[r]=!0;return t}function Oo(...e){let t={};for(let r of e)for(let n in r)r.hasOwnProperty(n)&&(t[n]=!0);return t}var gh=xn("area,br,col,hr,img,wbr"),hh=xn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Eh=xn("rp,rt"),rw=Oo(Eh,hh),iw=Oo(hh,xn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),ow=Oo(Eh,xn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Cf=Oo(gh,iw,ow,rw),Sh=xn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),sw=xn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),aw=xn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),lw=Oo(Sh,sw,aw),cw=xn("script,style,template"),Au=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let r=t.firstChild,n=!0,i=[];for(;r;){if(r.nodeType===Node.ELEMENT_NODE?n=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,n&&r.firstChild){i.push(r),r=pw(r);continue}for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let o=dw(r);if(o){r=o;break}r=i.pop()}}return this.buf.join("")}startElement(t){let r=yf(t).toLowerCase();if(!Cf.hasOwnProperty(r))return this.sanitizedSomething=!0,!cw.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);let n=t.attributes;for(let i=0;i"),!0}endElement(t){let r=yf(t).toLowerCase();Cf.hasOwnProperty(r)&&!gh.hasOwnProperty(r)&&(this.buf.push(""))}chars(t){this.buf.push(vf(t))}};function uw(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function dw(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Th(t);return t}function pw(e){let t=e.firstChild;if(t&&uw(e,t))throw Th(t);return t}function yf(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Th(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var _w=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,mw=/([^\#-~ |!])/g;function vf(e){return e.replace(/&/g,"&").replace(_w,function(t){let r=t.charCodeAt(0),n=t.charCodeAt(1);return"&#"+((r-55296)*1024+(n-56320)+65536)+";"}).replace(mw,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var ra;function wd(e,t){let r=null;try{ra=ra||ew(e);let n=t?String(t):"";r=ra.getInertBodyElement(n);let i=5,o=n;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,n=o,o=r.innerHTML,r=ra.getInertBodyElement(n)}while(n!==o);let a=new Au().sanitizeChildren(Rf(r)||r);return Va(a)}finally{if(r){let n=Rf(r)||r;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function Rf(e){return"content"in e&&fw(e)?e.content:null}function fw(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var Vt=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Vt||{});function Ha(e){let t=gw();return t?bf(t.sanitize(Vt.HTML,e)||""):Mr(e,"HTML")?bf(wn(e)):wd(ch(),gi(e))}function gw(){let e=fe();return e&&e[Jt].sanitizer}var hw=/^>|^->||--!>|)/g,Sw="\u200B$1\u200B";function Tw(e){return e.replace(hw,t=>t.replace(Ew,Sw))}function bh(e){return e instanceof Function?e():e}var In=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(In||{}),bw;function xd(e,t){return bw(e,t)}function _i(e,t,r,n,i){if(n!=null){let o,s=!1;On(n)?o=n:fr(n)&&(s=!0,n=n[Dn]);let a=_n(n);e===0&&r!==null?i==null?Ih(t,r,a):Ca(t,r,a,i||null,!0):e===1&&r!==null?Ca(t,r,a,i||null,!0):e===2?Fw(t,a,s):e===3&&t.destroyNode(a),o!=null&&Bw(t,e,o,r,i)}}function Cw(e,t){return e.createText(t)}function yw(e,t,r){e.setValue(t,r)}function vw(e,t){return e.createComment(Tw(t))}function Ch(e,t,r){return e.createElement(t,r)}function Rw(e,t){yh(e,t),t[Dn]=null,t[At]=null}function Iw(e,t,r,n,i,o){n[Dn]=i,n[At]=t,qa(e,n,r,1,i,o)}function yh(e,t){t[Jt].changeDetectionScheduler?.notify(1),qa(e,t,t[qe],2,null,null)}function Nw(e){let t=e[Eo];if(!t)return Xc(e[ne],e);for(;t;){let r=null;if(fr(t))r=t[Eo];else{let n=t[yt];n&&(r=n)}if(!r){for(;t&&!t[Xt]&&t!==e;)fr(t)&&Xc(t[ne],t),t=t[at];t===null&&(t=e),fr(t)&&Xc(t[ne],t),r=t&&t[Xt]}t=r}}function Dw(e,t,r,n){let i=yt+n,o=r.length;n>0&&(r[i-1][Xt]=t),n0&&(e[r-1][Xt]=n[Xt]);let o=ma(e,yt+t);Rw(n[ne],n);let s=o[yn];s!==null&&s.detachView(o[ne]),n[at]=null,n[Xt]=null,n[Q]&=-129}return n}function Ld(e,t){if(!(t[Q]&256)){let r=t[qe];r.destroyNode&&qa(e,t,r,3,null,null),Nw(t)}}function Xc(e,t){if(t[Q]&256)return;let r=he(null);try{t[Q]&=-129,t[Q]|=256,t[Sr]&&bm(t[Sr]),Mw(e,t),Aw(e,t),t[ne].type===1&&t[qe].destroy();let n=t[No];if(n!==null&&On(t[at])){n!==t[at]&&vh(n,t);let i=t[yn];i!==null&&i.detachView(e)}$M(t)}finally{he(r)}}function Aw(e,t){let r=e.cleanup,n=t[ho];if(r!==null)for(let o=0;o=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[r[o+1]];r[o].call(s)}n!==null&&(t[ho]=null);let i=t[zn];if(i!==null){t[zn]=null;for(let o=0;o-1){let{encapsulation:o}=e.data[n.directiveStart+i];if(o===pn.None||o===pn.Emulated)return null}return Gt(n,r)}}function Ca(e,t,r,n,i){e.insertBefore(t,r,n,i)}function Ih(e,t,r){e.appendChild(t,r)}function If(e,t,r,n,i){n!==null?Ca(e,t,r,n,i):Ih(e,t,r)}function xw(e,t,r,n){e.removeChild(t,r,n)}function Pd(e,t){return e.parentNode(t)}function Lw(e,t){return e.nextSibling(t)}function Nh(e,t,r){return kw(e,t,r)}function Pw(e,t,r){return e.type&40?Gt(e,r):null}var kw=Pw,Nf;function Ya(e,t,r,n){let i=Rh(e,n,t),o=t[qe],s=n.parent||t[At],a=Nh(s,n,t);if(i!=null)if(Array.isArray(r))for(let l=0;lht&&wh(e,t,ht,!1),un(s?2:0,i),r(n,i)}finally{br(o),un(s?3:1,i)}}function Fd(e,t,r){if(fd(t)){let n=he(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;snull;function Kw(e,t,r,n){let i=Hh(t);i.push(r),e.firstCreatePass&&Yh(e).push(n,i.length-1)}function Qw(e,t,r,n,i,o){let s=t?t.injectorIndex:-1,a=0;return xg()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Df(e,t,r,n,i){for(let o in t){if(!t.hasOwnProperty(o))continue;let s=t[o];if(s===void 0)continue;n??={};let a,l=F.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let c=o;if(i!==null){if(!i.hasOwnProperty(o))continue;c=i[o]}e===0?Of(n,r,c,a,l):Of(n,r,c,a)}return n}function Of(e,t,r,n,i){let o;e.hasOwnProperty(r)?(o=e[r]).push(t,n):o=e[r]=[t,n],i!==void 0&&o.push(i)}function jw(e,t,r){let n=t.directiveStart,i=t.directiveEnd,o=e.data,s=t.attrs,a=[],l=null,c=null;for(let u=n;u0;){let r=e[--t];if(typeof r=="number"&&r<0)return r}return 0}function tx(e,t,r,n){let i=r.directiveStart,o=r.directiveEnd;Pa(r)&&lx(t,r,e.data[i+r.componentOffset]),e.firstCreatePass||Ta(r,t),Kn(n,t);let s=r.initialInputs;for(let a=i;a{So(e.lView)},consumerOnSignalRead(){this.lView[Sr]=this}}),Qh=100;function jh(e,t=!0,r=0){let n=e[Jt],i=n.rendererFactory,o=!1;o||i.begin?.();try{yx(e,r)}catch(s){throw t&&qh(e,s),s}finally{o||(i.end?.(),n.inlineEffectRunner?.flush())}}function yx(e,t){Pu(e,t);let r=0;for(;Ed(e);){if(r===Qh)throw new N(103,!1);r++,Pu(e,1)}}function vx(e,t,r,n){let i=t[Q];if((i&256)===256)return;let o=!1;!o&&t[Jt].inlineEffectRunner?.flush(),yd(t);let s=null,a=null;!o&&Rx(e)&&(a=Sx(t),s=Sm(a));try{Ag(t),mM(e.bindingStartIndex),r!==null&&Ph(e,t,r,2,n);let l=(i&3)===3;if(!o)if(l){let d=e.preOrderCheckHooks;d!==null&&aa(t,d,null)}else{let d=e.preOrderHooks;d!==null&&la(t,d,0,null),Kc(t,0)}if(Ix(t),Zh(t,0),e.contentQueries!==null&&Vh(e,t),!o)if(l){let d=e.contentCheckHooks;d!==null&&aa(t,d)}else{let d=e.contentHooks;d!==null&&la(t,d,1),Kc(t,1)}Hw(e,t);let c=e.components;c!==null&&Jh(t,c,0);let u=e.viewQuery;if(u!==null&&xu(2,u,n),!o)if(l){let d=e.viewCheckHooks;d!==null&&aa(t,d)}else{let d=e.viewHooks;d!==null&&la(t,d,2),Kc(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Wc]){for(let d of t[Wc])d();t[Wc]=null}o||(t[Q]&=-73)}catch(l){throw So(t),l}finally{a!==null&&(Tm(a,s),bx(a)),vd()}}function Rx(e){return e.type!==2}function Zh(e,t){for(let r=oh(e);r!==null;r=sh(r))for(let n=yt;n-1&&(ba(t,n),ma(r,n))}this._attachedToViewContainer=!1}Ld(this._lView[ne],this._lView)}onDestroy(t){Mg(this._lView,t)}markForCheck(){qd(this._cdRefInjectingView||this._lView)}detach(){this._lView[Q]&=-129}reattach(){mu(this._lView),this._lView[Q]|=128}detectChanges(){this._lView[Q]|=1024,jh(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new N(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,yh(this._lView[ne],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new N(902,!1);this._appRef=t,mu(this._lView)}},yi=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Ax;let e=t;return e})(),Dx=yi,Ox=class extends Dx{constructor(t,r,n){super(),this._declarationLView=t,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,r){return this.createEmbeddedViewImpl(t,r)}createEmbeddedViewImpl(t,r,n){let i=zh(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:r,dehydratedView:n});return new vr(i)}};function Ax(){return $d(Rt(),fe())}function $d(e,t){return e.type&4?new Ox(t,e,Ni(e,t)):null}var A3=new RegExp(`^(\\d+)*(${KM}|${WM})*(.*)`);var Mx=()=>null;function ku(e,t){return Mx(e,t)}var bo=class{},Fu=class{},va=class{};function wx(e){let t=Error(`No component factory found for ${Ct(e)}.`);return t[xx]=e,t}var xx="ngComponent";var Uu=class{resolveComponentFactory(t){throw wx(t)}},Wa=(()=>{let t=class t{};t.NULL=new Uu;let e=t;return e})(),Rr=class{},Mt=(()=>{let t=class t{constructor(){this.destroyNode=null}};t.__NG_ELEMENT_ID__=()=>Lx();let e=t;return e})();function Lx(){let e=fe(),t=Rt(),r=jn(t.index,e);return(fr(r)?r:e)[qe]}var Px=(()=>{let t=class t{};t.\u0275prov=Y({token:t,providedIn:"root",factory:()=>null});let e=t;return e})(),Jc={};var Af=new Set;function Ao(e){Af.has(e)||(Af.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function Mf(...e){}function kx(){let e=typeof pt.requestAnimationFrame=="function",t=pt[e?"requestAnimationFrame":"setTimeout"],r=pt[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&r){let n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);let i=r[Zone.__symbol__("OriginalDelegate")];i&&(r=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:r}}var ye=class e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ce(!1),this.onMicrotaskEmpty=new Ce(!1),this.onStable=new Ce(!1),this.onError=new Ce(!1),typeof Zone>"u")throw new N(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&r,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=kx().nativeRequestAnimationFrame,Bx(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new N(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new N(909,!1)}run(t,r,n){return this._inner.run(t,r,n)}runTask(t,r,n,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,Fx,Mf,Mf);try{return o.runTask(s,r,n)}finally{o.cancelTask(s)}}runGuarded(t,r,n){return this._inner.runGuarded(t,r,n)}runOutsideAngular(t){return this._outer.run(t)}},Fx={};function zd(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 Ux(e){e.isCheckStableRunning||e.lastRequestAnimationFrameId!==-1||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(pt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Bu(e),e.isCheckStableRunning=!0,zd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Bu(e))}function Bx(e){let t=()=>{Ux(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,i,o,s,a)=>{if(Gx(a))return r.invokeTask(i,o,s,a);try{return wf(e),r.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),xf(e)}},onInvoke:(r,n,i,o,s,a,l)=>{try{return wf(e),r.invoke(i,o,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),xf(e)}},onHasTask:(r,n,i,o)=>{r.hasTask(i,o),n===i&&(o.change=="microTask"?(e._hasPendingMicrotasks=o.microTask,Bu(e),zd(e)):o.change=="macroTask"&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,n,i,o)=>(r.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}function Bu(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.lastRequestAnimationFrameId!==-1?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function wf(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function xf(e){e._nesting--,zd(e)}function Gx(e){return!Array.isArray(e)||e.length!==1?!1:e[0].data?.__ignore_ng_zone__===!0}var eE=(()=>{let t=class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let i of n)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=Y({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function Ra(e,t,r){let n=r?e.styles:null,i=r?e.classes:null,o=0;if(t!==null)for(let s=0;s0&&Ah(e,r,o.join(" "))}}function Wx(e,t,r){let n=e.projection=[];for(let i=0;i{let t=class t{};t.__NG_ELEMENT_ID__=Qx;let e=t;return e})();function Qx(){let e=Rt();return nE(e,fe())}var jx=wr,tE=class extends jx{constructor(t,r,n){super(),this._lContainer=t,this._hostTNode=r,this._hostLView=n}get element(){return Ni(this._hostTNode,this._hostLView)}get injector(){return new gr(this._hostTNode,this._hostLView)}get parentInjector(){let t=Id(this._hostTNode,this._hostLView);if(zg(t)){let r=Ea(t,this._hostLView),n=ha(t),i=r[ne].data[n+8];return new gr(i,r)}else return new gr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let r=Pf(this._lContainer);return r!==null&&r[t]||null}get length(){return this._lContainer.length-yt}createEmbeddedView(t,r,n){let i,o;typeof n=="number"?i=n:n!=null&&(i=n.index,o=n.injector);let s=ku(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(r||{},o,s);return this.insertImpl(a,i,Lu(this._hostTNode,s)),a}createComponent(t,r,n,i,o){let s=t&&!WA(t),a;if(s)a=r;else{let m=r||{};a=m.index,n=m.injector,i=m.projectableNodes,o=m.environmentInjector||m.ngModuleRef}let l=s?t:new Co(Er(t)),c=n||this.parentInjector;if(!o&&l.ngModule==null){let f=(s?c:this.parentInjector).get(Ut,null);f&&(o=f)}let u=Er(l.componentType??{}),d=ku(this._lContainer,u?.id??null),p=d?.firstChild??null,_=l.create(c,i,p,o);return this.insertImpl(_.hostView,a,Lu(this._hostTNode,d)),_}insert(t,r){return this.insertImpl(t,r,!0)}insertImpl(t,r,n){let i=t._lView;if(nM(i)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let l=i[at],c=new tE(l,l[At],l[at]);c.detach(c.indexOf(t))}}let o=this._adjustIndex(r),s=this._lContainer;return Wh(s,i,o,n),t.attachToViewContainerRef(),ng(eu(s),o,t),t}move(t,r){return this.insert(t,r)}indexOf(t){let r=Pf(this._lContainer);return r!==null?r.indexOf(t):-1}remove(t){let r=this._adjustIndex(t,-1),n=ba(this._lContainer,r);n&&(ma(eu(this._lContainer),r),Ld(n[ne],n))}detach(t){let r=this._adjustIndex(t,-1),n=ba(this._lContainer,r);return n&&ma(eu(this._lContainer),r)!=null?new vr(n):null}_adjustIndex(t,r=0){return t??this.length+r}};function Pf(e){return e[ga]}function eu(e){return e[ga]||(e[ga]=[])}function nE(e,t){let r,n=t[e.index];return On(n)?r=n:(r=Gh(n,t,null,e),t[e.index]=r,za(t,r)),Xx(r,t,e,n),new tE(r,e,t)}function Zx(e,t){let r=e[qe],n=r.createComment(""),i=Gt(t,e),o=Pd(r,i);return Ca(r,o,n,Lw(r,i),!1),n}var Xx=tL,Jx=()=>!1;function eL(e,t,r){return Jx(e,t,r)}function tL(e,t,r,n){if(e[Tr])return;let i;r.type&8?i=_n(n):i=Zx(t,r),e[Tr]=i}var Hu=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Yu=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let r=t.queries;if(r!==null){let n=t.contentQueries!==null?t.contentQueries[0]:r.length,i=[];for(let o=0;o0)n.push(s[a/2]);else{let c=o[a+1],u=t[-l];for(let d=yt;dt.trim())}function uL(e,t,r){e.queries===null&&(e.queries=new $u),e.queries.track(new zu(t,r))}function Wd(e,t){return e.queries.getByIndex(t)}function dL(e,t){let r=e[ne],n=Wd(r,t);return n.crossesNgTemplate?Wu(r,e,t,[]):rE(r,e,n,t)}function pL(e){return typeof e=="function"&&e[Vn]!==void 0}function Mo(e,t){Ao("NgSignals");let r=Nm(e),n=r[Vn];return t?.equal&&(n.equal=t.equal),r.set=i=>Ds(n,i),r.update=i=>Dm(n,i),r.asReadonly=_L.bind(r),r}function _L(){let e=this[Vn];if(e.readonlyFn===void 0){let t=()=>this();t[Vn]=e,e.readonlyFn=t}return e.readonlyFn}function iE(e){return pL(e)&&typeof e.set=="function"}function mL(e){return Object.getPrototypeOf(e.prototype).constructor}function je(e){let t=mL(e.type),r=!0,n=[e];for(;t;){let i;if(Wn(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new N(903,!1);i=t.\u0275dir}if(i){if(r){n.push(i);let s=e;s.inputs=ia(e.inputs),s.inputTransforms=ia(e.inputTransforms),s.declaredInputs=ia(e.declaredInputs),s.outputs=ia(e.outputs);let a=i.hostBindings;a&&SL(e,a);let l=i.viewQuery,c=i.contentQueries;if(l&&hL(e,l),c&&EL(e,c),fL(e,i),QO(e.outputs,i.outputs),Wn(i)&&i.data.animation){let u=e.data;u.animation=(u.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;n--){let i=e[n];i.hostVars=t+=i.hostVars,i.hostAttrs=mo(i.hostAttrs,r=mo(r,i.hostAttrs))}}function ia(e){return e===hi?{}:e===Ft?[]:e}function hL(e,t){let r=e.viewQuery;r?e.viewQuery=(n,i)=>{t(n,i),r(n,i)}:e.viewQuery=t}function EL(e,t){let r=e.contentQueries;r?e.contentQueries=(n,i,o)=>{t(n,i,o),r(n,i,o)}:e.contentQueries=t}function SL(e,t){let r=e.hostBindings;r?e.hostBindings=(n,i)=>{t(n,i),r(n,i)}:e.hostBindings=t}var Qn=class{},yo=class{};var Ku=class extends Qn{constructor(t,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Ia(this);let i=pg(t);this._bootstrapComponents=bh(i.bootstrap),this._r3Injector=th(t,r,[{provide:Qn,useValue:this},{provide:Wa,useValue:this.componentFactoryResolver},...n],Ct(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Qu=class extends yo{constructor(t){super(),this.moduleType=t}create(t){return new Ku(this.moduleType,t,[])}};var Na=class extends Qn{constructor(t){super(),this.componentFactoryResolver=new Ia(this),this.instance=null;let r=new fo([...t.providers,{provide:Qn,useValue:this},{provide:Wa,useValue:this.componentFactoryResolver}],t.parent||_d(),t.debugName,new Set(["environment"]));this.injector=r,t.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Kd(e,t,r=null){return new Na({providers:e,parent:t,debugName:r,runEnvironmentInitializers:!0}).injector}var Ka=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ot(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),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)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function oE(e){return bL(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function TL(e,t){if(Array.isArray(e))for(let r=0;r>17&32767}function AL(e){return(e&2)==2}function ML(e,t){return e&131071|t<<17}function ju(e){return e|2}function vi(e){return(e&131068)>>2}function tu(e,t){return e&-131069|t<<2}function wL(e){return(e&1)===1}function Zu(e){return e|1}function xL(e,t,r,n,i,o){let s=o?t.classBindings:t.styleBindings,a=Ir(s),l=vi(s);e[n]=r;let c=!1,u;if(Array.isArray(r)){let d=r;u=d[1],(u===null||Io(d,u)>0)&&(c=!0)}else u=r;if(i)if(l!==0){let p=Ir(e[a+1]);e[n+1]=oa(p,a),p!==0&&(e[p+1]=tu(e[p+1],n)),e[a+1]=ML(e[a+1],n)}else e[n+1]=oa(a,0),a!==0&&(e[a+1]=tu(e[a+1],n)),a=n;else e[n+1]=oa(l,0),a===0?a=n:e[l+1]=tu(e[l+1],n),l=n;c&&(e[n+1]=ju(e[n+1])),kf(e,u,n,!0),kf(e,u,n,!1),LL(t,u,e,n,o),s=oa(a,l),o?t.classBindings=s:t.styleBindings=s}function LL(e,t,r,n,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&Io(o,t)>=0&&(r[n+1]=Zu(r[n+1]))}function kf(e,t,r,n){let i=e[r+1],o=t===null,s=n?Ir(i):vi(i),a=!1;for(;s!==0&&(a===!1||o);){let l=e[s],c=e[s+1];PL(l,t)&&(a=!0,e[s+1]=n?Zu(c):ju(c)),s=n?Ir(c):vi(c)}a&&(e[r+1]=n?ju(i):Zu(i))}function PL(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Io(e,t)>=0:!1}function ie(e,t,r){let n=fe(),i=Do();if(Nn(n,i,t)){let o=Qe(),s=Rd();Fh(o,s,n,e,t,n[qe],r,!1)}return ie}function Ff(e,t,r,n,i){let o=t.inputs,s=i?"class":"style";Hd(e,r,o[s],s,n)}function ja(e,t,r){return aE(e,t,r,!1),ja}function Za(e,t){return aE(e,t,null,!0),Za}function aE(e,t,r,n){let i=fe(),o=Qe(),s=Pg(2);if(o.firstUpdatePass&&FL(o,e,s,n),t!==mn&&Nn(i,s,t)){let a=o.data[Or()];HL(o,a,i,i[qe],e,i[s+1]=YL(t,r),n,s)}}function kL(e,t){return t>=e.expandoStartIndex}function FL(e,t,r,n){let i=e.data;if(i[r+1]===null){let o=i[Or()],s=kL(e,r);qL(o,n)&&t===null&&!s&&(t=!1),t=UL(i,o,t,n),xL(i,o,t,r,s,n)}}function UL(e,t,r,n){let i=EM(e),o=n?t.residualClasses:t.residualStyles;if(i===null)(n?t.classBindings:t.styleBindings)===0&&(r=nu(null,e,t,r,n),r=vo(r,t.attrs,n),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(r=nu(i,e,t,r,n),o===null){let l=BL(e,t,n);l!==void 0&&Array.isArray(l)&&(l=nu(null,e,t,l[1],n),l=vo(l,t.attrs,n),GL(e,t,n,l))}else o=VL(e,t,n)}return o!==void 0&&(n?t.residualClasses=o:t.residualStyles=o),r}function BL(e,t,r){let n=r?t.classBindings:t.styleBindings;if(vi(n)!==0)return e[Ir(n)]}function GL(e,t,r,n){let i=r?t.classBindings:t.styleBindings;e[Ir(i)]=n}function VL(e,t,r){let n,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0;){let l=e[i],c=Array.isArray(l),u=c?l[1]:l,d=u===null,p=r[i+1];p===mn&&(p=d?Ft:void 0);let _=d?$c(p,n):u===n?p:void 0;if(c&&!Da(_)&&(_=$c(l,n)),Da(_)&&(a=_,s))return a;let m=e[i+1];i=s?Ir(m):vi(m)}if(t!==null){let l=o?t.residualClasses:t.residualStyles;l!=null&&(a=$c(l,n))}return a}function Da(e){return e!==void 0}function YL(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Ct(wn(e)))),e}function qL(e,t){return(e.flags&(t?8:16))!==0}function wo(e,t,r){Ao("NgControlFlow");let n=fe(),i=Do(),o=$L(n,ht+e),s=0;if(Nn(n,i,t)){let a=he(null);try{if(hx(o,s),t!==-1){let l=zL(n[ne],ht+t),c=ku(o,l.tView.ssrId),u=zh(n,l,r,{dehydratedView:c});Wh(o,u,s,Lu(l,c))}}finally{he(a)}}else{let a=gx(o,s);a!==void 0&&(a[Bt]=r)}}function $L(e,t){return e[t]}function zL(e,t){return gd(e,t)}function WL(e,t,r,n,i,o){let s=t.consts,a=Ci(s,i),l=Di(t,e,2,n,a);return Vd(t,r,l,Ci(s,o)),l.attrs!==null&&Ra(l,l.attrs,!1),l.mergedAttrs!==null&&Ra(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function v(e,t,r,n){let i=fe(),o=Qe(),s=ht+e,a=i[qe],l=o.firstCreatePass?WL(s,o,i,t,r,n):o.data[s],c=KL(o,i,l,a,t,e);i[s]=c;let u=ka(l);return Dr(l,!0),Mh(a,c,l),!vL(l)&&Fa()&&Ya(o,i,c,l),sM()===0&&Kn(c,i),aM(),u&&(Ud(o,i,l),Fd(o,l,i)),n!==null&&Bd(i,l),v}function R(){let e=Rt();Sd()?Td():(e=e.parent,Dr(e,!1));let t=e;cM(t)&&uM(),lM();let r=Qe();return r.firstCreatePass&&(Ba(r,e),fd(e)&&r.queries.elementEnd(e)),t.classesWithoutHost!=null&&IM(t)&&Ff(r,t,fe(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&NM(t)&&Ff(r,t,fe(),t.stylesWithoutHost,!1),R}function de(e,t,r,n){return v(e,t,r,n),R(),de}var KL=(e,t,r,n,i,o)=>(Ua(!0),Ch(n,i,CM()));function QL(e,t,r,n,i){let o=t.consts,s=Ci(o,n),a=Di(t,e,8,"ng-container",s);s!==null&&Ra(a,s,!0);let l=Ci(o,i);return Vd(t,r,a,l),t.queries!==null&&t.queries.elementStart(t,a),a}function Xa(e,t,r){let n=fe(),i=Qe(),o=e+ht,s=i.firstCreatePass?QL(o,i,n,t,r):i.data[o];Dr(s,!0);let a=jL(i,n,s,e);return n[o]=a,Fa()&&Ya(i,n,a,s),Kn(a,n),ka(s)&&(Ud(i,n,s),Fd(i,s,n)),r!=null&&Bd(n,s),Xa}function Ja(){let e=Rt(),t=Qe();return Sd()?Td():(e=e.parent,Dr(e,!1)),t.firstCreatePass&&(Ba(t,e),fd(e)&&t.queries.elementEnd(e)),Ja}var jL=(e,t,r,n)=>(Ua(!0),vw(t[qe],""));function Oi(){return fe()}var Oa="en-US";var ZL=Oa;function XL(e){typeof e=="string"&&(ZL=e.toLowerCase().replace(/_/g,"-"))}function Ee(e,t,r,n){let i=fe(),o=Qe(),s=Rt();return lE(o,i,i[qe],s,e,t,n),Ee}function JL(e,t,r,n){let i=e.cleanup;if(i!=null)for(let o=0;ol?a[l]:null}typeof s=="string"&&(o+=2)}return null}function lE(e,t,r,n,i,o,s){let a=ka(n),c=e.firstCreatePass&&Yh(e),u=t[Bt],d=Hh(t),p=!0;if(n.type&3||s){let f=Gt(n,t),S=s?s(f):f,b=d.length,D=s?y=>s(_n(y[n.index])):n.index,C=null;if(!s&&a&&(C=JL(e,t,i,n.index)),C!==null){let y=C.__ngLastListenerFn__||C;y.__ngNextListenerFn__=o,C.__ngLastListenerFn__=o,p=!1}else{o=Gf(n,t,u,o,!1);let y=r.listen(S,i,o);d.push(o,y),c&&c.push(i,D,b,b+1)}}else o=Gf(n,t,u,o,!1);let _=n.outputs,m;if(p&&_!==null&&(m=_[i])){let f=m.length;if(f)for(let S=0;S-1?jn(e.index,t):t;qd(a);let l=Bf(t,r,n,s),c=o.__ngNextListenerFn__;for(;c;)l=Bf(t,r,c,s)&&l,c=c.__ngNextListenerFn__;return i&&l===!1&&s.preventDefault(),l}}function cE(e=1){return TM(e)}function eP(e,t){let r=null,n=NA(e);for(let i=0;i=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),t[r]=n}function Zd(e){let t=pM();return Og(t,ht+e)}function O(e,t=""){let r=fe(),n=Qe(),i=e+ht,o=n.firstCreatePass?Di(n,i,1,t,null):n.data[i],s=nP(n,r,o,t,e);r[i]=s,Fa()&&Ya(n,r,s,o),Dr(o,!1)}var nP=(e,t,r,n,i)=>(Ua(!0),Cw(t[qe],n));function Ln(e){return wt("",e,""),Ln}function wt(e,t,r){let n=fe(),i=DL(n,e,t,r);return i!==mn&&$h(n,Or(),i),wt}function xr(e,t,r,n,i){let o=fe(),s=OL(o,e,t,r,n,i);return s!==mn&&$h(o,Or(),s),xr}function Ze(e,t,r){iE(t)&&(t=t());let n=fe(),i=Do();if(Nn(n,i,t)){let o=Qe(),s=Rd();Fh(o,s,n,e,t,n[qe],r,!1)}return Ze}function nt(e,t){let r=iE(e);return r&&e.set(t),r}function Xe(e,t){let r=fe(),n=Qe(),i=Rt();return lE(n,r,r[qe],i,e,t),Xe}function rP(e,t,r){let n=Qe();if(n.firstCreatePass){let i=Wn(e);Xu(r,n.data,n.blueprint,i,!0),Xu(t,n.data,n.blueprint,i,!1)}}function Xu(e,t,r,n,i){if(e=gt(e),Array.isArray(e))for(let o=0;o>20;if(Si(e)||!e.multi){let _=new Cr(c,i,P),m=iu(l,t,i?u:u+p,d);m===-1?(hu(Ta(a,s),o,l),ru(o,e,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(_),s.push(_)):(r[m]=_,s[m]=_)}else{let _=iu(l,t,u+p,d),m=iu(l,t,u,u+p),f=_>=0&&r[_],S=m>=0&&r[m];if(i&&!S||!i&&!f){hu(Ta(a,s),o,l);let b=sP(i?oP:iP,r.length,i,n,c);!i&&S&&(r[m].providerFactory=b),ru(o,e,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(b),s.push(b)}else{let b=pE(r[i?m:_],c,!i&&n);ru(o,e,_>-1?_:m,b)}!i&&n&&S&&r[m].componentProviders++}}}function ru(e,t,r,n){let i=Si(t),o=GA(t);if(i||o){let l=(o?gt(t.useClass):t).prototype.ngOnDestroy;if(l){let c=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let u=c.indexOf(r);u===-1?c.push(r,[n,l]):c[u+1].push(n,l)}else c.push(r,l)}}}function pE(e,t,r){return r&&e.componentProviders++,e.multi.push(t)-1}function iu(e,t,r,n){for(let i=r;i{r.providersResolver=(n,i)=>rP(n,i?i(e):e,t)}}var aP=(()=>{let t=class t{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let i=fg(!1,n.type),o=i.length>0?Kd([i],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()}}};t.\u0275prov=Y({token:t,providedIn:"environment",factory:()=>new t(K(Ut))});let e=t;return e})();function oe(e){Ao("NgStandalone"),e.getStandaloneInjector=t=>t.get(aP).getOrCreateStandaloneInjector(e)}function Ai(e,t,r){let n=bd()+e,i=fe();return i[n]===mn?sE(i,n,r?t.call(r):t()):CL(i,n)}function tl(e,t,r,n){return _E(fe(),bd(),e,t,r,n)}function lP(e,t){let r=e[t];return r===mn?void 0:r}function _E(e,t,r,n,i,o){let s=t+r;return Nn(e,s,i)?sE(e,s+1,o?n.call(o,i):n(i)):lP(e,s+1)}function nl(e,t){let r=Qe(),n,i=e+ht;r.firstCreatePass?(n=cP(t,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks??=[]).push(i,n.onDestroy)):n=r.data[i];let o=n.factory||(n.factory=hr(n.type,!0)),s,a=bt(P);try{let l=Sa(!1),c=o();return Sa(l),tP(r,fe(),i,c),c}finally{bt(a)}}function cP(e,t){if(t)for(let r=t.length-1;r>=0;r--){let n=t[r];if(e===n.name)return n}}function rl(e,t,r){let n=e+ht,i=fe(),o=Og(i,n);return uP(i,n)?_E(i,bd(),t,o.transform,r,o):o.transform(r)}function uP(e,t){return e[ne].data[t].pure}var il=(()=>{let t=class t{log(n){console.log(n)}warn(n){console.warn(n)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();var Xd=new j(""),xo=new j(""),ol=(()=>{let t=class t{constructor(n,i,o){this._ngZone=n,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Jd||(dP(o),o.addToWindow(i)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ye.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&this._pendingCount===0&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(n)?(clearTimeout(i.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n()},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:o})}whenStable(n,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,o){return[]}};t.\u0275fac=function(i){return new(i||t)(K(ye),K(sl),K(xo))},t.\u0275prov=Y({token:t,factory:t.\u0275fac});let e=t;return e})(),sl=(()=>{let t=class t{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return Jd?.findTestabilityInTree(this,n,i)??null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();function dP(e){Jd=e}var Jd;function Lr(e){return!!e&&typeof e.then=="function"}function mE(e){return!!e&&typeof e.subscribe=="function"}var fE=new j(""),gE=(()=>{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=w(fE,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(Lr(s))n.push(s);else if(mE(s)){let a=new Promise((l,c)=>{s.subscribe({complete:l,error:c})});n.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),n.length===0&&i(),this.initialized=!0}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),ep=new j("");function pP(){Im(()=>{throw new N(600,!1)})}function _P(e){return e.isBoundToModule}function mP(e,t,r){try{let n=r();return Lr(n)?n.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):n}catch(n){throw t.runOutsideAngular(()=>e.handleError(n)),n}}var Mi=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=w(nh),this.afterRenderEffectManager=w(eE),this.externalTestViews=new Set,this.beforeRender=new Ke,this.afterTick=new Ke,this.componentTypes=[],this.components=[],this.isStable=w(Ka).hasPendingTasks.pipe(ge(n=>!n)),this._injector=w(Ut)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){let o=n instanceof va;if(!this._injector.get(gE).done){let _=!o&&dg(n),m=!1;throw new N(405,m)}let a;o?a=n:a=this._injector.get(Wa).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let l=_P(a)?void 0:this._injector.get(Qn),c=i||a.selector,u=a.create(An.NULL,[],c,l),d=u.location.nativeElement,p=u.injector.get(Xd,null);return p?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),ou(this.components,u),p?.unregisterApplication(d)}),this._loadComponent(u),u}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new N(101,!1);let i=he(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,he(i)}}detectChangesInAttachedViews(n){let i=0,o=this.afterRenderEffectManager;for(;;){if(i===Qh)throw new N(103,!1);if(n){let s=i===0;this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:l}of this._views)fP(a,s,l)}if(i++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>ed(s))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>ed(s))))break}}attachView(n){let i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){let i=n;ou(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let i=this._injector.get(ep,[]);[...this._bootstrapListeners,...i].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._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>ou(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new N(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function ou(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}function fP(e,t,r){!t&&!ed(e)||gP(e,r,t)}function ed(e){return Ed(e)}function gP(e,t,r){let n;r?(n=0,e[Q]|=1024):e[Q]&64?n=0:n=1,jh(e,t,n)}var td=class{constructor(t,r){this.ngModuleFactory=t,this.componentFactories=r}},tp=(()=>{let t=class t{compileModuleSync(n){return new Qu(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let i=this.compileModuleSync(n),o=pg(n),s=bh(o.declarations).reduce((a,l)=>{let c=Er(l);return c&&a.push(new Co(c)),a},[]);return new td(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var hP=(()=>{let t=class t{constructor(){this.zone=w(ye),this.applicationRef=w(Mi)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function EP(e){return[{provide:ye,useFactory:e},{provide:Ei,multi:!0,useFactory:()=>{let t=w(hP,{optional:!0});return()=>t.initialize()}},{provide:Ei,multi:!0,useFactory:()=>{let t=w(CP);return()=>{t.initialize()}}},{provide:nh,useFactory:SP}]}function SP(){let e=w(ye),t=w(vn);return r=>e.runOutsideAngular(()=>t.handleError(r))}function TP(e){let t=EP(()=>new ye(bP(e)));return Ri([[],t])}function bP(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var CP=(()=>{let t=class t{constructor(){this.subscription=new He,this.initialized=!1,this.zone=w(ye),this.pendingTasks=w(Ka)}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(()=>{ye.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ye.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function yP(){return typeof $localize<"u"&&$localize.locale||Oa}var np=new j("",{providedIn:"root",factory:()=>w(np,ue.Optional|ue.SkipSelf)||yP()});var hE=new j("");var da=null;function vP(e=[],t){return An.create({name:t,providers:[{provide:xa,useValue:"platform"},{provide:hE,useValue:new Set([()=>da=null])},...e]})}function RP(e=[]){if(da)return da;let t=vP(e);return da=t,pP(),IP(t),t}function IP(e){e.get(Nd,null)?.forEach(r=>r())}var Pn=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=NP;let e=t;return e})();function NP(e){return DP(Rt(),fe(),(e&16)===16)}function DP(e,t,r){if(Pa(e)&&!r){let n=jn(e.index,t);return new vr(n,n)}else if(e.type&47){let n=t[en];return new vr(n,t)}return null}var nd=class{constructor(){}supports(t){return oE(t)}create(t){return new rd(t)}},OP=(e,t)=>t,rd=class{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||OP}forEachItem(t){let r;for(r=this._itHead;r!==null;r=r._next)t(r)}forEachOperation(t){let r=this._itHead,n=this._removalsHead,i=0,o=null;for(;r||n;){let s=!n||r&&r.currentIndex{s=this._trackByFn(i,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,i),n=!0):(n&&(r=this._verifyReinsertion(r,a,s,i)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,i++}),this.length=i;return this._truncate(r),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,r,n,i){let o;return t===null?o=this._itTail:(o=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),t!==null?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._reinsertAfter(t,o,i)):(t=this._linkedRecords===null?null:this._linkedRecords.get(n,i),t!==null?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._moveAfter(t,o,i)):t=this._addAfter(new id(r,n),o,i)),t}_verifyReinsertion(t,r,n,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?t=this._reinsertAfter(o,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;t!==null;){let r=t._next;this._addToRemovals(this._unlink(t)),t=r}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,r,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let i=t._prevRemoved,o=t._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(t,r,n),this._addToMoves(t,n),t}_moveAfter(t,r,n){return this._unlink(t),this._insertAfter(t,r,n),this._addToMoves(t,n),t}_addAfter(t,r,n){return this._insertAfter(t,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,r,n){let i=r===null?this._itHead:r._next;return t._next=i,t._prev=r,i===null?this._itTail=t:i._prev=t,r===null?this._itHead=t:r._next=t,this._linkedRecords===null&&(this._linkedRecords=new Aa),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let r=t._prev,n=t._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._prev=r,t}_addToMoves(t,r){return t.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Aa),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,r){return t.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},id=class{constructor(t,r){this.item=t,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},od=class{constructor(){this._head=null,this._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,r){let n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){let r=t._prevDup,n=t._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},Aa=class{constructor(){this.map=new Map}put(t){let r=t.trackById,n=this.map.get(r);n||(n=new od,this.map.set(r,n)),n.add(t)}get(t,r){let n=t,i=this.map.get(n);return i?i.get(t,r):null}remove(t){let r=t.trackById;return this.map.get(r).remove(t)&&this.map.delete(r),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Vf(e,t,r){let n=e.previousIndex;if(n===null)return n;let i=0;return r&&n{let t=class t{constructor(n){this.factories=n}static create(n,i){if(i!=null){let o=i.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:i=>t.create(n,i||Hf()),deps:[[t,new tg,new ld]]}}find(n){let i=this.factories.find(o=>o.supports(n));if(i!=null)return i;throw new N(901,!1)}};t.\u0275prov=Y({token:t,providedIn:"root",factory:Hf});let e=t;return e})();var EE=(()=>{let t=class t{constructor(n){}};t.\u0275fac=function(i){return new(i||t)(K(Mi))},t.\u0275mod=mt({type:t}),t.\u0275inj=_t({});let e=t;return e})();function SE(e){try{let{rootComponent:t,appProviders:r,platformProviders:n}=e,i=RP(n),o=[TP(),...r||[]],a=new Na({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,l=a.get(ye);return l.run(()=>{a.resolveInjectorInitializers();let c=a.get(vn,null),u;l.runOutsideAngular(()=>{u=l.onError.subscribe({next:_=>{c.handleError(_)}})});let d=()=>a.destroy(),p=i.get(hE);return p.add(d),a.onDestroy(()=>{u.unsubscribe(),p.delete(d)}),mP(c,l,()=>{let _=a.get(gE);return _.runInitializers(),_.donePromise.then(()=>{let m=a.get(np,Oa);XL(m||Oa);let f=a.get(Mi);return t!==void 0&&f.bootstrap(t),f})})})}catch(t){return Promise.reject(t)}}function Lo(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var vE=null;function fn(){return vE}function RE(e){vE??=e}var al=class{};var rt=new j(""),IE=(()=>{let t=class t{historyGo(n){throw new Error("")}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:()=>w(xP),providedIn:"platform"});let e=t;return e})();var xP=(()=>{let t=class t extends IE{constructor(){super(),this._doc=w(rt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return fn().getBaseHref(this._doc)}onPopState(n){let i=fn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){let i=fn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",n,!1),()=>i.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,i,o){this._history.pushState(n,i,o)}replaceState(n,i,o){this._history.replaceState(n,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:()=>new t,providedIn:"platform"});let e=t;return e})();function NE(e,t){if(e.length==0)return t;if(t.length==0)return e;let r=0;return e.endsWith("/")&&r++,t.startsWith("/")&&r++,r==2?e+t.substring(1):r==1?e+t:e+"/"+t}function TE(e){let t=e.match(/#|\?|$/),r=t&&t.index||e.length,n=r-(e[r-1]==="/"?1:0);return e.slice(0,n)+e.slice(r)}function Pr(e){return e&&e[0]!=="?"?"?"+e:e}var cl=(()=>{let t=class t{historyGo(n){throw new Error("")}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:()=>w(DE),providedIn:"root"});let e=t;return e})(),LP=new j(""),DE=(()=>{let t=class t extends cl{constructor(n,i){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??w(rt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return NE(this._baseHref,n)}path(n=!1){let i=this._platformLocation.pathname+Pr(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${i}${o}`:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Pr(s));this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Pr(s));this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};t.\u0275fac=function(i){return new(i||t)(K(IE),K(LP,8))},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Po=(()=>{let t=class t{constructor(n){this._subject=new Ce,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let i=this._locationStrategy.getBaseHref();this._basePath=FP(TE(bE(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,i=""){return this.path()==this.normalize(n+Pr(i))}normalize(n){return t.stripTrailingSlash(kP(this._basePath,bE(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,i="",o=null){this._locationStrategy.pushState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Pr(i)),o)}replaceState(n,i="",o=null){this._locationStrategy.replaceState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Pr(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",i){this._urlChangeListeners.forEach(o=>o(n,i))}subscribe(n,i,o){return this._subject.subscribe({next:n,error:i,complete:o})}};t.normalizeQueryParams=Pr,t.joinWithSlash=NE,t.stripTrailingSlash=TE,t.\u0275fac=function(i){return new(i||t)(K(cl))},t.\u0275prov=Y({token:t,factory:()=>PP(),providedIn:"root"});let e=t;return e})();function PP(){return new Po(K(cl))}function kP(e,t){if(!e||!t.startsWith(e))return t;let r=t.substring(e.length);return r===""||["/",";","?","#"].includes(r[0])?r:t}function bE(e){return e.replace(/\/index.html$/,"")}function FP(e){if(new RegExp("^(https?:)?//").test(e)){let[,r]=e.split(/\/\/[^\/]+/);return r}return e}function OE(e,t){t=encodeURIComponent(t);for(let r of e.split(";")){let n=r.indexOf("="),[i,o]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var ip=/\s+/,CE=[],AE=(()=>{let t=class t{constructor(n,i){this._ngEl=n,this._renderer=i,this.initialClasses=CE,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(ip):CE}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(ip):n}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let i of n)this._updateState(i,!0);else if(n!=null)for(let i of Object.keys(n))this._updateState(i,!!n[i]);this._applyStateDiff()}_updateState(n,i){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(n,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let i=n[0],o=n[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(n,i){n=n.trim(),n.length>0&&n.split(ip).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};t.\u0275fac=function(i){return new(i||t)(P(ct),P(Mt))},t.\u0275dir=Oe({type:t,selectors:[["","ngClass",""]],inputs:{klass:[F.None,"class","klass"],ngClass:"ngClass"},standalone:!0});let e=t;return e})();var op=class{constructor(t,r,n,i){this.$implicit=t,this.ngForOf=r,this.index=n,this.count=i}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}},ME=(()=>{let t=class t{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,i,o){this._viewContainer=n,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else 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 i=this._viewContainer;n.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new op(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(s===null?void 0:s);else if(s!==null){let l=i.get(s);i.move(l,a),yE(l,o)}});for(let o=0,s=i.length;o{let s=i.get(o.currentIndex);yE(s,o)})}static ngTemplateContextGuard(n,i){return!0}};t.\u0275fac=function(i){return new(i||t)(P(wr),P(yi),P(rp))},t.\u0275dir=Oe({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let e=t;return e})();function yE(e,t){e.context.$implicit=t.item}var ul=(()=>{let t=class t{transform(n){return JSON.stringify(n,null,2)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275pipe=lg({name:"json",type:t,pure:!1,standalone:!0});let e=t;return e})();var dl=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=mt({type:t}),t.\u0275inj=_t({});let e=t;return e})(),wE="browser",UP="server";function wi(e){return e===UP}var ll=class{};var cp=class extends al{constructor(){super(...arguments),this.supportsDOMEvents=!0}},up=class e extends cp{static makeCurrent(){RE(new e)}onAndCancel(t,r,n){return t.addEventListener(r,n),()=>{t.removeEventListener(r,n)}}dispatchEvent(t,r){t.dispatchEvent(r)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,r){return r=r||this.getDefaultDocument(),r.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,r){return r==="window"?window:r==="document"?t:r==="body"?t.body:null}getBaseHref(t){let r=GP();return r==null?null:VP(r)}resetBaseElement(){ko=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return OE(document.cookie,t)}},ko=null;function GP(){return ko=ko||document.querySelector("base"),ko?ko.getAttribute("href"):null}function VP(e){return new URL(e,document.baseURI).pathname}var dp=class{addToWindow(t){pt.getAngularTestability=(n,i=!0)=>{let o=t.findTestabilityInTree(n,i);if(o==null)throw new N(5103,!1);return o},pt.getAllAngularTestabilities=()=>t.getAllTestabilities(),pt.getAllAngularRootElements=()=>t.getAllRootElements();let r=n=>{let i=pt.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&n()};i.forEach(a=>{a.whenStable(s)})};pt.frameworkStabilizers||(pt.frameworkStabilizers=[]),pt.frameworkStabilizers.push(r)}findTestabilityInTree(t,r,n){if(r==null)return null;let i=t.getTestability(r);return i??(n?fn().isShadowRoot(r)?this.findTestabilityInTree(t,r.host,!0):this.findTestabilityInTree(t,r.parentElement,!0):null)}},HP=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac});let e=t;return e})(),pp=new j(""),PE=(()=>{let t=class t{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,o){return this._findPluginFor(i).addEventListener(n,i,o)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(s=>s.supports(n)),!i)throw new N(5101,!1);return this._eventNameToPlugin.set(n,i),i}};t.\u0275fac=function(i){return new(i||t)(K(pp),K(ye))},t.\u0275prov=Y({token:t,factory:t.\u0275fac});let e=t;return e})(),pl=class{constructor(t){this._doc=t}},ap="ng-app-id",kE=(()=>{let t=class t{constructor(n,i,o,s={}){this.doc=n,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=wi(s),this.resetHostNodes()}addStyles(n){for(let i of n)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(n){for(let i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){let i=this.styleRef;i.get(n)?.elements?.forEach(o=>o.remove()),i.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${ap}="${this.appId}"]`);if(n?.length){let i=new Map;return n.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(n,i){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=i,s.usage}return o.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===n)return o.delete(i),s.removeAttribute(ap),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(ap,this.appId),n.appendChild(a),a}}addStyleToHost(n,i){let o=this.getStyleElement(n,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};t.\u0275fac=function(i){return new(i||t)(K(rt),K(Ga),K(Od,8),K(Mn))},t.\u0275prov=Y({token:t,factory:t.\u0275fac});let e=t;return e})(),lp={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},mp=/%COMP%/g,FE="%COMP%",YP=`_nghost-${FE}`,qP=`_ngcontent-${FE}`,$P=!0,zP=new j("",{providedIn:"root",factory:()=>$P});function WP(e){return qP.replace(mp,e)}function KP(e){return YP.replace(mp,e)}function UE(e,t){return t.map(r=>r.replace(mp,e))}var _l=(()=>{let t=class t{constructor(n,i,o,s,a,l,c,u=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=l,this.ngZone=c,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=wi(l),this.defaultRenderer=new Fo(n,a,c,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===pn.ShadowDom&&(i=Ie(k({},i),{encapsulation:pn.Emulated}));let o=this.getOrCreateRenderer(n,i);return o instanceof ml?o.applyToHost(n):o instanceof Uo&&o.applyStyles(),o}getOrCreateRenderer(n,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,l=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,p=this.platformIsServer;switch(i.encapsulation){case pn.Emulated:s=new ml(c,u,i,this.appId,d,a,l,p);break;case pn.ShadowDom:return new _p(c,u,n,i,a,l,this.nonce,p);default:s=new Uo(c,u,i,d,a,l,p);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(i){return new(i||t)(K(PE),K(kE),K(Ga),K(zP),K(rt),K(Mn),K(ye),K(Od))},t.\u0275prov=Y({token:t,factory:t.\u0275fac});let e=t;return e})(),Fo=class{constructor(t,r,n,i){this.eventManager=t,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,r){return r?this.doc.createElementNS(lp[r]||r,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,r){(xE(t)?t.content:t).appendChild(r)}insertBefore(t,r,n){t&&(xE(t)?t.content:t).insertBefore(r,n)}removeChild(t,r){t&&t.removeChild(r)}selectRootElement(t,r){let n=typeof t=="string"?this.doc.querySelector(t):t;if(!n)throw new N(-5104,!1);return r||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,r,n,i){if(i){r=i+":"+r;let o=lp[i];o?t.setAttributeNS(o,r,n):t.setAttribute(r,n)}else t.setAttribute(r,n)}removeAttribute(t,r,n){if(n){let i=lp[n];i?t.removeAttributeNS(i,r):t.removeAttribute(`${n}:${r}`)}else t.removeAttribute(r)}addClass(t,r){t.classList.add(r)}removeClass(t,r){t.classList.remove(r)}setStyle(t,r,n,i){i&(In.DashCase|In.Important)?t.style.setProperty(r,n,i&In.Important?"important":""):t.style[r]=n}removeStyle(t,r,n){n&In.DashCase?t.style.removeProperty(r):t.style[r]=""}setProperty(t,r,n){t!=null&&(t[r]=n)}setValue(t,r){t.nodeValue=r}listen(t,r,n){if(typeof t=="string"&&(t=fn().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${r}`);return this.eventManager.addEventListener(t,r,this.decoratePreventDefault(n))}decoratePreventDefault(t){return r=>{if(r==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(r)):t(r))===!1&&r.preventDefault()}}};function xE(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var _p=class extends Fo{constructor(t,r,n,i,o,s,a,l){super(t,o,s,l),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=UE(i.id,i.styles);for(let u of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,r){return super.appendChild(this.nodeOrShadowRoot(t),r)}insertBefore(t,r,n){return super.insertBefore(this.nodeOrShadowRoot(t),r,n)}removeChild(t,r){return super.removeChild(this.nodeOrShadowRoot(t),r)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Uo=class extends Fo{constructor(t,r,n,i,o,s,a,l){super(t,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=l?UE(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},ml=class extends Uo{constructor(t,r,n,i,o,s,a,l){let c=i+"-"+n.id;super(t,r,n,o,s,a,l,c),this.contentAttr=WP(c),this.hostAttr=KP(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,r){let n=super.createElement(t,r);return super.setAttribute(n,this.contentAttr,""),n}},QP=(()=>{let t=class t extends pl{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,o){return n.addEventListener(i,o,!1),()=>this.removeEventListener(n,i,o)}removeEventListener(n,i,o){return n.removeEventListener(i,o)}};t.\u0275fac=function(i){return new(i||t)(K(rt))},t.\u0275prov=Y({token:t,factory:t.\u0275fac});let e=t;return e})(),LE=["alt","control","meta","shift"],jP={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ZP={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},XP=(()=>{let t=class t extends pl{constructor(n){super(n)}supports(n){return t.parseEventName(n)!=null}addEventListener(n,i,o){let s=t.parseEventName(i),a=t.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>fn().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let i=n.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=t._normalizeKey(i.pop()),a="",l=i.indexOf("code");if(l>-1&&(i.splice(l,1),a="code."),LE.forEach(u=>{let d=i.indexOf(u);d>-1&&(i.splice(d,1),a+=u+".")}),a+=s,i.length!=0||s.length===0)return null;let c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(n,i){let o=jP[n.key]||n.key,s="";return i.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),LE.forEach(a=>{if(a!==o){let l=ZP[a];l(n)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(n,i,o){return s=>{t.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>i(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};t.\u0275fac=function(i){return new(i||t)(K(rt))},t.\u0275prov=Y({token:t,factory:t.\u0275fac});let e=t;return e})();function BE(e,t){return SE(k({rootComponent:e},JP(t)))}function JP(e){return{appProviders:[...GE,...e?.providers??[]],platformProviders:r0}}function e0(){up.makeCurrent()}function t0(){return new vn}function n0(){return lh(document),document}var r0=[{provide:Mn,useValue:wE},{provide:Nd,useValue:e0,multi:!0},{provide:rt,useFactory:n0,deps:[]}];var i0=new j(""),o0=[{provide:xo,useClass:dp,deps:[]},{provide:Xd,useClass:ol,deps:[ye,sl,xo]},{provide:ol,useClass:ol,deps:[ye,sl,xo]}],GE=[{provide:xa,useValue:"root"},{provide:vn,useFactory:t0,deps:[]},{provide:pp,useClass:QP,multi:!0,deps:[rt,ye,Mn]},{provide:pp,useClass:XP,multi:!0,deps:[rt]},_l,kE,PE,{provide:Rr,useExisting:_l},{provide:ll,useClass:HP,deps:[]},[]],VE=(()=>{let t=class t{constructor(n){}static withServerTransition(n){return{ngModule:t,providers:[{provide:Ga,useValue:n.appId}]}}};t.\u0275fac=function(i){return new(i||t)(K(i0,12))},t.\u0275mod=mt({type:t}),t.\u0275inj=_t({providers:[...GE,...o0],imports:[dl,EE]});let e=t;return e})();var HE=(()=>{let t=class t{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};t.\u0275fac=function(i){return new(i||t)(K(rt))},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Xn=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:function(i){let o=null;return i?o=new(i||t):o=K(s0),o},providedIn:"root"});let e=t;return e})(),s0=(()=>{let t=class t extends Xn{constructor(n){super(),this._doc=n}sanitize(n,i){if(i==null)return null;switch(n){case Vt.NONE:return i;case Vt.HTML:return Mr(i,"HTML")?wn(i):wd(this._doc,String(i)).toString();case Vt.STYLE:return Mr(i,"Style")?wn(i):i;case Vt.SCRIPT:if(Mr(i,"Script"))return wn(i);throw new N(5200,!1);case Vt.URL:return Mr(i,"URL")?wn(i):Md(String(i));case Vt.RESOURCE_URL:if(Mr(i,"ResourceURL"))return wn(i);throw new N(5201,!1);default:throw new N(5202,!1)}}bypassSecurityTrustHtml(n){return dh(n)}bypassSecurityTrustStyle(n){return ph(n)}bypassSecurityTrustScript(n){return _h(n)}bypassSecurityTrustUrl(n){return mh(n)}bypassSecurityTrustResourceUrl(n){return fh(n)}};t.\u0275fac=function(i){return new(i||t)(K(rt))},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var pe=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(pe||{}),gn="*";function YE(e,t=null){return{type:pe.Sequence,steps:e,options:t}}function gp(e){return{type:pe.Style,styles:e,offset:null}}var Jn=class{constructor(t=0,r=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+r}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let r=t=="start"?this._onStartFns:this._onDoneFns;r.forEach(n=>n()),r.length=0}},Bo=class{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let r=0,n=0,i=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++r==o&&this._onFinish()}),s.onDestroy(()=>{++n==o&&this._onDestroy()}),s.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let r=t*this.totalTime;this.players.forEach(n=>{let i=n.totalTime?Math.min(1,r/n.totalTime):1;n.setPosition(i)})}getPosition(){let t=this.players.reduce((r,n)=>r===null||n.totalTime>r.totalTime?n:r,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let r=t=="start"?this._onStartFns:this._onDoneFns;r.forEach(n=>n()),r.length=0}},fl="!";function qE(e){return new N(3e3,!1)}function a0(){return new N(3100,!1)}function l0(){return new N(3101,!1)}function c0(e){return new N(3001,!1)}function u0(e){return new N(3003,!1)}function d0(e){return new N(3004,!1)}function p0(e,t){return new N(3005,!1)}function _0(){return new N(3006,!1)}function m0(){return new N(3007,!1)}function f0(e,t){return new N(3008,!1)}function g0(e){return new N(3002,!1)}function h0(e,t,r,n,i){return new N(3010,!1)}function E0(){return new N(3011,!1)}function S0(){return new N(3012,!1)}function T0(){return new N(3200,!1)}function b0(){return new N(3202,!1)}function C0(){return new N(3013,!1)}function y0(e){return new N(3014,!1)}function v0(e){return new N(3015,!1)}function R0(e){return new N(3016,!1)}function I0(e,t){return new N(3404,!1)}function N0(e){return new N(3502,!1)}function D0(e){return new N(3503,!1)}function O0(){return new N(3300,!1)}function A0(e){return new N(3504,!1)}function M0(e){return new N(3301,!1)}function w0(e,t){return new N(3302,!1)}function x0(e){return new N(3303,!1)}function L0(e,t){return new N(3400,!1)}function P0(e){return new N(3401,!1)}function k0(e){return new N(3402,!1)}function F0(e,t){return new N(3505,!1)}function er(e){switch(e.length){case 0:return new Jn;case 1:return e[0];default:return new Bo(e)}}function iS(e,t,r=new Map,n=new Map){let i=[],o=[],s=-1,a=null;if(t.forEach(l=>{let c=l.get("offset"),u=c==s,d=u&&a||new Map;l.forEach((p,_)=>{let m=_,f=p;if(_!=="offset")switch(m=e.normalizePropertyName(m,i),f){case fl:f=r.get(_);break;case gn:f=n.get(_);break;default:f=e.normalizeStyleValue(_,m,f,i);break}d.set(m,f)}),u||o.push(d),a=d,s=c}),i.length)throw N0(i);return o}function Bp(e,t,r,n){switch(t){case"start":e.onStart(()=>n(r&&hp(r,"start",e)));break;case"done":e.onDone(()=>n(r&&hp(r,"done",e)));break;case"destroy":e.onDestroy(()=>n(r&&hp(r,"destroy",e)));break}}function hp(e,t,r){let n=r.totalTime,i=!!r.disabled,o=Gp(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,n??e.totalTime,i),s=e._data;return s!=null&&(o._data=s),o}function Gp(e,t,r,n,i="",o=0,s){return{element:e,triggerName:t,fromState:r,toState:n,phaseName:i,totalTime:o,disabled:!!s}}function Lt(e,t,r){let n=e.get(t);return n||e.set(t,n=r),n}function $E(e){let t=e.indexOf(":"),r=e.substring(1,t),n=e.slice(t+1);return[r,n]}var U0=typeof document>"u"?null:document.documentElement;function Vp(e){let t=e.parentNode||e.host||null;return t===U0?null:t}function B0(e){return e.substring(1,6)=="ebkit"}var kr=null,zE=!1;function G0(e){kr||(kr=V0()||{},zE=kr.style?"WebkitAppearance"in kr.style:!1);let t=!0;return kr.style&&!B0(e)&&(t=e in kr.style,!t&&zE&&(t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in kr.style)),t}function V0(){return typeof document<"u"?document.body:null}function oS(e,t){for(;t;){if(t===e)return!0;t=Vp(t)}return!1}function sS(e,t,r){if(r)return Array.from(e.querySelectorAll(t));let n=e.querySelector(t);return n?[n]:[]}var Hp=(()=>{let t=class t{validateStyleProperty(n){return G0(n)}matchesElement(n,i){return!1}containsElement(n,i){return oS(n,i)}getParentElement(n){return Vp(n)}query(n,i,o){return sS(n,i,o)}computeStyle(n,i,o){return o||""}animate(n,i,o,s,a,l=[],c){return new Jn(o,s)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac});let e=t;return e})(),zp=class zp{};zp.NOOP=new Hp;var Br=zp,Gr=class{};var H0=1e3,aS="{{",Y0="}}",lS="ng-enter",yp="ng-leave",gl="ng-trigger",bl=".ng-trigger",WE="ng-animating",vp=".ng-animating";function kn(e){if(typeof e=="number")return e;let t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Rp(parseFloat(t[1]),t[2])}function Rp(e,t){switch(t){case"s":return e*H0;default:return e}}function Cl(e,t,r){return e.hasOwnProperty("duration")?e:q0(e,t,r)}function q0(e,t,r){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,o=0,s="";if(typeof e=="string"){let a=e.match(n);if(a===null)return t.push(qE(e)),{duration:0,delay:0,easing:""};i=Rp(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(o=Rp(parseFloat(l),a[4]));let c=a[5];c&&(s=c)}else i=e;if(!r){let a=!1,l=t.length;i<0&&(t.push(a0()),a=!0),o<0&&(t.push(l0()),a=!0),a&&t.splice(l,0,qE(e))}return{duration:i,delay:o,easing:s}}function $0(e){return e.length?e[0]instanceof Map?e:e.map(t=>new Map(Object.entries(t))):[]}function hn(e,t,r){t.forEach((n,i)=>{let o=Yp(i);r&&!r.has(i)&&r.set(i,e.style[o]),e.style[o]=n})}function Ur(e,t){t.forEach((r,n)=>{let i=Yp(n);e.style[i]=""})}function Go(e){return Array.isArray(e)?e.length==1?e[0]:YE(e):e}function z0(e,t,r){let n=t.params||{},i=cS(e);i.length&&i.forEach(o=>{n.hasOwnProperty(o)||r.push(c0(o))})}var Ip=new RegExp(`${aS}\\s*(.+?)\\s*${Y0}`,"g");function cS(e){let t=[];if(typeof e=="string"){let r;for(;r=Ip.exec(e);)t.push(r[1]);Ip.lastIndex=0}return t}function Ho(e,t,r){let n=`${e}`,i=n.replace(Ip,(o,s)=>{let a=t[s];return a==null&&(r.push(u0(s)),a=""),a.toString()});return i==n?e:i}var W0=/-+([a-z0-9])/g;function Yp(e){return e.replace(W0,(...t)=>t[1].toUpperCase())}function K0(e,t){return e===0||t===0}function Q0(e,t,r){if(r.size&&t.length){let n=t[0],i=[];if(r.forEach((o,s)=>{n.has(s)||i.push(s),n.set(s,o)}),i.length)for(let o=1;os.set(a,qp(e,a)))}}return t}function xt(e,t,r){switch(t.type){case pe.Trigger:return e.visitTrigger(t,r);case pe.State:return e.visitState(t,r);case pe.Transition:return e.visitTransition(t,r);case pe.Sequence:return e.visitSequence(t,r);case pe.Group:return e.visitGroup(t,r);case pe.Animate:return e.visitAnimate(t,r);case pe.Keyframes:return e.visitKeyframes(t,r);case pe.Style:return e.visitStyle(t,r);case pe.Reference:return e.visitReference(t,r);case pe.AnimateChild:return e.visitAnimateChild(t,r);case pe.AnimateRef:return e.visitAnimateRef(t,r);case pe.Query:return e.visitQuery(t,r);case pe.Stagger:return e.visitStagger(t,r);default:throw d0(t.type)}}function qp(e,t){return window.getComputedStyle(e)[t]}var j0=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),yl=class extends Gr{normalizePropertyName(t,r){return Yp(t)}normalizeStyleValue(t,r,n,i){let o="",s=n.toString().trim();if(j0.has(r)&&n!==0&&n!=="0")if(typeof n=="number")o="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&i.push(p0(t,n))}return s+o}};var vl="*";function Z0(e,t){let r=[];return typeof e=="string"?e.split(/\s*,\s*/).forEach(n=>X0(n,r,t)):r.push(e),r}function X0(e,t,r){if(e[0]==":"){let l=J0(e,r);if(typeof l=="function"){t.push(l);return}e=l}let n=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return r.push(v0(e)),t;let i=n[1],o=n[2],s=n[3];t.push(KE(i,s));let a=i==vl&&s==vl;o[0]=="<"&&!a&&t.push(KE(s,i))}function J0(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(r,n)=>parseFloat(n)>parseFloat(r);case":decrement":return(r,n)=>parseFloat(n) *"}}var hl=new Set(["true","1"]),El=new Set(["false","0"]);function KE(e,t){let r=hl.has(e)||El.has(e),n=hl.has(t)||El.has(t);return(i,o)=>{let s=e==vl||e==i,a=t==vl||t==o;return!s&&r&&typeof i=="boolean"&&(s=i?hl.has(e):El.has(e)),!a&&n&&typeof o=="boolean"&&(a=o?hl.has(t):El.has(t)),s&&a}}var uS=":self",ek=new RegExp(`s*${uS}s*,?`,"g");function dS(e,t,r,n){return new Np(e).build(t,r,n)}var QE="",Np=class{constructor(t){this._driver=t}build(t,r,n){let i=new Dp(r);return this._resetContextStyleTimingState(i),xt(this,Go(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector=QE,t.collectedStyles=new Map,t.collectedStyles.set(QE,new Map),t.currentTime=0}visitTrigger(t,r){let n=r.queryCount=0,i=r.depCount=0,o=[],s=[];return t.name.charAt(0)=="@"&&r.errors.push(_0()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(r),a.type==pe.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,r))}),l.name=c}else if(a.type==pe.Transition){let l=this.visitTransition(a,r);n+=l.queryCount,i+=l.depCount,s.push(l)}else r.errors.push(m0())}),{type:pe.Trigger,name:t.name,states:o,transitions:s,queryCount:n,depCount:i,options:null}}visitState(t,r){let n=this.visitStyle(t.styles,r),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){let o=new Set,s=i||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{cS(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&r.errors.push(f0(t.name,[...o.values()]))}return{type:pe.State,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,r){r.queryCount=0,r.depCount=0;let n=xt(this,Go(t.animation),r),i=Z0(t.expr,r.errors);return{type:pe.Transition,matchers:i,animation:n,queryCount:r.queryCount,depCount:r.depCount,options:Fr(t.options)}}visitSequence(t,r){return{type:pe.Sequence,steps:t.steps.map(n=>xt(this,n,r)),options:Fr(t.options)}}visitGroup(t,r){let n=r.currentTime,i=0,o=t.steps.map(s=>{r.currentTime=n;let a=xt(this,s,r);return i=Math.max(i,r.currentTime),a});return r.currentTime=i,{type:pe.Group,steps:o,options:Fr(t.options)}}visitAnimate(t,r){let n=ik(t.timings,r.errors);r.currentAnimateTimings=n;let i,o=t.styles?t.styles:gp({});if(o.type==pe.Keyframes)i=this.visitKeyframes(o,r);else{let s=t.styles,a=!1;if(!s){a=!0;let c={};n.easing&&(c.easing=n.easing),s=gp(c)}r.currentTime+=n.duration+n.delay;let l=this.visitStyle(s,r);l.isEmptyStep=a,i=l}return r.currentAnimateTimings=null,{type:pe.Animate,timings:n,style:i,options:null}}visitStyle(t,r){let n=this._makeStyleAst(t,r);return this._validateStyleAst(n,r),n}_makeStyleAst(t,r){let n=[],i=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of i)typeof a=="string"?a===gn?n.push(a):r.errors.push(g0(a)):n.push(new Map(Object.entries(a)));let o=!1,s=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let l of a.values())if(l.toString().indexOf(aS)>=0){o=!0;break}}}),{type:pe.Style,styles:n,easing:s,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,r){let n=r.currentAnimateTimings,i=r.currentTime,o=r.currentTime;n&&o>0&&(o-=n.duration+n.delay),t.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,l)=>{let c=r.collectedStyles.get(r.currentQuerySelector),u=c.get(l),d=!0;u&&(o!=i&&o>=u.startTime&&i<=u.endTime&&(r.errors.push(h0(l,u.startTime,u.endTime,o,i)),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:i}),r.options&&z0(a,r.options,r.errors)})})}visitKeyframes(t,r){let n={type:pe.Keyframes,styles:[],options:null};if(!r.currentAnimateTimings)return r.errors.push(E0()),n;let i=1,o=0,s=[],a=!1,l=!1,c=0,u=t.steps.map(b=>{let D=this._makeStyleAst(b,r),C=D.offset!=null?D.offset:rk(D.styles),y=0;return C!=null&&(o++,y=D.offset=C),l=l||y<0||y>1,a=a||y0&&o{let C=p>0?D==_?1:p*D:s[D],y=C*S;r.currentTime=m+f.delay+y,f.duration=y,this._validateStyleAst(b,r),b.offset=C,n.styles.push(b)}),n}visitReference(t,r){return{type:pe.Reference,animation:xt(this,Go(t.animation),r),options:Fr(t.options)}}visitAnimateChild(t,r){return r.depCount++,{type:pe.AnimateChild,options:Fr(t.options)}}visitAnimateRef(t,r){return{type:pe.AnimateRef,animation:this.visitReference(t.animation,r),options:Fr(t.options)}}visitQuery(t,r){let n=r.currentQuerySelector,i=t.options||{};r.queryCount++,r.currentQuery=t;let[o,s]=tk(t.selector);r.currentQuerySelector=n.length?n+" "+o:o,Lt(r.collectedStyles,r.currentQuerySelector,new Map);let a=xt(this,Go(t.animation),r);return r.currentQuery=null,r.currentQuerySelector=n,{type:pe.Query,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Fr(t.options)}}visitStagger(t,r){r.currentQuery||r.errors.push(C0());let n=t.timings==="full"?{duration:0,delay:0,easing:"full"}:Cl(t.timings,r.errors,!0);return{type:pe.Stagger,animation:xt(this,Go(t.animation),r),timings:n,options:null}}};function tk(e){let t=!!e.split(/\s*,\s*/).find(r=>r==uS);return t&&(e=e.replace(ek,"")),e=e.replace(/@\*/g,bl).replace(/@\w+/g,r=>bl+"-"+r.slice(1)).replace(/:animating/g,vp),[e,t]}function nk(e){return e?k({},e):null}var Dp=class{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function rk(e){if(typeof e=="string")return null;let t=null;if(Array.isArray(e))e.forEach(r=>{if(r instanceof Map&&r.has("offset")){let n=r;t=parseFloat(n.get("offset")),n.delete("offset")}});else if(e instanceof Map&&e.has("offset")){let r=e;t=parseFloat(r.get("offset")),r.delete("offset")}return t}function ik(e,t){if(e.hasOwnProperty("duration"))return e;if(typeof e=="number"){let o=Cl(e,t).duration;return Ep(o,0,"")}let r=e;if(r.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=Ep(0,0,"");return o.dynamic=!0,o.strValue=r,o}let i=Cl(r,t);return Ep(i.duration,i.delay,i.easing)}function Fr(e){return e?(e=k({},e),e.params&&(e.params=nk(e.params))):e={},e}function Ep(e,t,r){return{duration:e,delay:t,easing:r}}function $p(e,t,r,n,i,o,s=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:r,postStyleProps:n,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}var Yo=class{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,r){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...r)}has(t){return this._map.has(t)}clear(){this._map.clear()}},ok=1,sk=":enter",ak=new RegExp(sk,"g"),lk=":leave",ck=new RegExp(lk,"g");function pS(e,t,r,n,i,o=new Map,s=new Map,a,l,c=[]){return new Op().buildKeyframes(e,t,r,n,i,o,s,a,l,c)}var Op=class{buildKeyframes(t,r,n,i,o,s,a,l,c,u=[]){c=c||new Yo;let d=new Ap(t,r,c,i,o,u,[]);d.options=l;let p=l.delay?kn(l.delay):0;d.currentTimeline.delayNextStep(p),d.currentTimeline.setStyles([s],null,d.errors,l),xt(this,n,d);let _=d.timelines.filter(m=>m.containsAnimation());if(_.length&&a.size){let m;for(let f=_.length-1;f>=0;f--){let S=_[f];if(S.element===r){m=S;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,d.errors,l)}return _.length?_.map(m=>m.buildKeyframes()):[$p(r,[],[],[],0,p,"",!1)]}visitTrigger(t,r){}visitState(t,r){}visitTransition(t,r){}visitAnimateChild(t,r){let n=r.subInstructions.get(r.element);if(n){let i=r.createSubContext(t.options),o=r.currentTimeline.currentTime,s=this._visitSubInstructions(n,i,i.options);o!=s&&r.transformIntoNewTimeline(s)}r.previousNode=t}visitAnimateRef(t,r){let n=r.createSubContext(t.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],r,n),this.visitReference(t.animation,n),r.transformIntoNewTimeline(n.currentTimeline.currentTime),r.previousNode=t}_applyAnimationRefDelays(t,r,n){for(let i of t){let o=i?.delay;if(o){let s=typeof o=="number"?o:kn(Ho(o,i?.params??{},r.errors));n.delayNextStep(s)}}}_visitSubInstructions(t,r,n){let o=r.currentTimeline.currentTime,s=n.duration!=null?kn(n.duration):null,a=n.delay!=null?kn(n.delay):null;return s!==0&&t.forEach(l=>{let c=r.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(t,r){r.updateOptions(t.options,!0),xt(this,t.animation,r),r.previousNode=t}visitSequence(t,r){let n=r.subContextCount,i=r,o=t.options;if(o&&(o.params||o.delay)&&(i=r.createSubContext(o),i.transformIntoNewTimeline(),o.delay!=null)){i.previousNode.type==pe.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Rl);let s=kn(o.delay);i.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>xt(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),r.previousNode=t}visitGroup(t,r){let n=[],i=r.currentTimeline.currentTime,o=t.options&&t.options.delay?kn(t.options.delay):0;t.steps.forEach(s=>{let a=r.createSubContext(t.options);o&&a.delayNextStep(o),xt(this,s,a),i=Math.max(i,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(s=>r.currentTimeline.mergeTimelineCollectedStyles(s)),r.transformIntoNewTimeline(i),r.previousNode=t}_visitTiming(t,r){if(t.dynamic){let n=t.strValue,i=r.params?Ho(n,r.params,r.errors):n;return Cl(i,r.errors)}else return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,r){let n=r.currentAnimateTimings=this._visitTiming(t.timings,r),i=r.currentTimeline;n.delay&&(r.incrementTime(n.delay),i.snapshotCurrentStyles());let o=t.style;o.type==pe.Keyframes?this.visitKeyframes(o,r):(r.incrementTime(n.duration),this.visitStyle(o,r),i.applyStylesToKeyframe()),r.currentAnimateTimings=null,r.previousNode=t}visitStyle(t,r){let n=r.currentTimeline,i=r.currentAnimateTimings;!i&&n.hasCurrentStyleProperties()&&n.forwardFrame();let o=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(o):n.setStyles(t.styles,o,r.errors,r.options),r.previousNode=t}visitKeyframes(t,r){let n=r.currentAnimateTimings,i=r.currentTimeline.duration,o=n.duration,a=r.createSubContext().currentTimeline;a.easing=n.easing,t.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*o),a.setStyles(l.styles,l.easing,r.errors,r.options),a.applyStylesToKeyframe()}),r.currentTimeline.mergeTimelineCollectedStyles(a),r.transformIntoNewTimeline(i+o),r.previousNode=t}visitQuery(t,r){let n=r.currentTimeline.currentTime,i=t.options||{},o=i.delay?kn(i.delay):0;o&&(r.previousNode.type===pe.Style||n==0&&r.currentTimeline.hasCurrentStyleProperties())&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Rl);let s=n,a=r.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,r.errors);r.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{r.currentQueryIndex=u;let d=r.createSubContext(t.options,c);o&&d.delayNextStep(o),c===r.element&&(l=d.currentTimeline),xt(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe();let p=d.currentTimeline.currentTime;s=Math.max(s,p)}),r.currentQueryIndex=0,r.currentQueryTotal=0,r.transformIntoNewTimeline(s),l&&(r.currentTimeline.mergeTimelineCollectedStyles(l),r.currentTimeline.snapshotCurrentStyles()),r.previousNode=t}visitStagger(t,r){let n=r.parentContext,i=r.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(r.currentQueryTotal-1),l=s*r.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime;break}let u=r.currentTimeline;l&&u.delayNextStep(l);let d=u.currentTime;xt(this,t.animation,r),r.previousNode=t,n.currentStaggerTime=i.currentTime-d+(i.startTime-n.currentTimeline.startTime)}},Rl={},Ap=class e{constructor(t,r,n,i,o,s,a,l){this._driver=t,this.element=r,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Rl,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Il(this._driver,r,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,r){if(!t)return;let n=t,i=this.options;n.duration!=null&&(i.duration=kn(n.duration)),n.delay!=null&&(i.delay=kn(n.delay));let o=n.params;if(o){let s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!r||!s.hasOwnProperty(a))&&(s[a]=Ho(o[a],s,this.errors))})}}_copyOptions(){let t={};if(this.options){let r=this.options.params;if(r){let n=t.params={};Object.keys(r).forEach(i=>{n[i]=r[i]})}}return t}createSubContext(t=null,r,n){let i=r||this.element,o=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=Rl,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,r,n){let i={duration:r??t.duration,delay:this.currentTimeline.currentTime+(n??0)+t.delay,easing:""},o=new Mp(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,r,n,i,o,s){let a=[];if(i&&a.push(this.element),t.length>0){t=t.replace(ak,"."+this._enterClassName),t=t.replace(ck,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,t,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!o&&a.length==0&&s.push(y0(r)),a}},Il=class e{constructor(t,r,n,i){this._driver=t,this.element=r,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(r),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(r,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){let r=this._keyframes.size===1&&this._pendingStyles.size;this.duration||r?(this.forwardTime(this.currentTime+t),r&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,r){return this.applyStylesToKeyframe(),new e(this._driver,t,r||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=ok,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,r){this._localTimelineStyles.set(t,r),this._globalTimelineStyles.set(t,r),this._styleSummary.set(t,{time:this.currentTime,value:r})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[r,n]of this._globalTimelineStyles)this._backFill.set(r,n||gn),this._currentKeyframe.set(r,gn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,r,n,i){r&&this._previousKeyframe.set("easing",r);let o=i&&i.params||{},s=uk(t,this._globalTimelineStyles);for(let[a,l]of s){let c=Ho(l,o,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??gn),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,r)=>{this._currentKeyframe.set(r,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,r)=>{this._currentKeyframe.has(r)||this._currentKeyframe.set(r,t)}))}snapshotCurrentStyles(){for(let[t,r]of this._localTimelineStyles)this._pendingStyles.set(t,r),this._updateStyle(t,r)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let t=[];for(let r in this._currentKeyframe)t.push(r);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((r,n)=>{let i=this._styleSummary.get(n);(!i||r.time>i.time)&&this._updateStyle(n,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,r=new Set,n=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((u,d)=>{u===fl?t.add(d):u===gn&&r.add(d)}),n||c.set("offset",l/this.duration),i.push(c)});let o=[...t.values()],s=[...r.values()];if(n){let a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return $p(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}},Mp=class extends Il{constructor(t,r,n,i,o,s,a=!1){super(t,r,s.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:r,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&r){let o=[],s=n+r,a=r/s,l=new Map(t[0]);l.set("offset",0),o.push(l);let c=new Map(t[0]);c.set("offset",jE(a)),o.push(c);let u=t.length-1;for(let d=1;d<=u;d++){let p=new Map(t[d]),_=p.get("offset"),m=r+_*n;p.set("offset",jE(m/s)),o.push(p)}n=s,r=0,i="",t=o}return $p(this.element,t,this.preStyleProps,this.postStyleProps,n,r,i,!0)}};function jE(e,t=3){let r=Math.pow(10,t-1);return Math.round(e*r)/r}function uk(e,t){let r=new Map,n;return e.forEach(i=>{if(i==="*"){n??=t.keys();for(let o of n)r.set(o,gn)}else for(let[o,s]of i)r.set(o,s)}),r}function ZE(e,t,r,n,i,o,s,a,l,c,u,d,p){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:r,fromStyles:o,toState:n,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:p}}var Sp={},Nl=class{constructor(t,r,n){this._triggerName=t,this.ast=r,this._stateStyles=n}match(t,r,n,i){return dk(this.ast.matchers,t,r,n,i)}buildStyles(t,r,n){let i=this._stateStyles.get("*");return t!==void 0&&(i=this._stateStyles.get(t?.toString())||i),i?i.buildStyles(r,n):new Map}build(t,r,n,i,o,s,a,l,c,u){let d=[],p=this.ast.options&&this.ast.options.params||Sp,_=a&&a.params||Sp,m=this.buildStyles(n,_,d),f=l&&l.params||Sp,S=this.buildStyles(i,f,d),b=new Set,D=new Map,C=new Map,y=i==="void",M={params:_S(f,p),delay:this.ast.options?.delay},x=u?[]:pS(t,r,this.ast.animation,o,s,m,S,M,c,d),U=0;return x.forEach(q=>{U=Math.max(q.duration+q.delay,U)}),d.length?ZE(r,this._triggerName,n,i,y,m,S,[],[],D,C,U,d):(x.forEach(q=>{let J=q.element,H=Lt(D,J,new Set);q.preStyleProps.forEach(xe=>H.add(xe));let Ne=Lt(C,J,new Set);q.postStyleProps.forEach(xe=>Ne.add(xe)),J!==r&&b.add(J)}),ZE(r,this._triggerName,n,i,y,m,S,x,[...b.values()],D,C,U))}};function dk(e,t,r,n,i){return e.some(o=>o(t,r,n,i))}function _S(e,t){let r=k({},t);return Object.entries(e).forEach(([n,i])=>{i!=null&&(r[n]=i)}),r}var wp=class{constructor(t,r,n){this.styles=t,this.defaultParams=r,this.normalizer=n}buildStyles(t,r){let n=new Map,i=_S(t,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=Ho(s,i,r));let l=this.normalizer.normalizePropertyName(a,r);s=this.normalizer.normalizeStyleValue(a,l,s,r),n.set(a,s)})}),n}};function pk(e,t,r){return new xp(e,t,r)}var xp=class{constructor(t,r,n){this.name=t,this.ast=r,this._normalizer=n,this.transitionFactories=[],this.states=new Map,r.states.forEach(i=>{let o=i.options&&i.options.params||{};this.states.set(i.name,new wp(i.style,o,n))}),XE(this.states,"true","1"),XE(this.states,"false","0"),r.transitions.forEach(i=>{this.transitionFactories.push(new Nl(t,i,this.states))}),this.fallbackTransition=_k(t,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,r,n,i){return this.transitionFactories.find(s=>s.match(t,r,n,i))||null}matchStyles(t,r,n){return this.fallbackTransition.buildStyles(t,r,n)}};function _k(e,t,r){let n=[(s,a)=>!0],i={type:pe.Sequence,steps:[],options:null},o={type:pe.Transition,animation:i,matchers:n,options:null,queryCount:0,depCount:0};return new Nl(e,o,t)}function XE(e,t,r){e.has(t)?e.has(r)||e.set(r,e.get(t)):e.has(r)&&e.set(t,e.get(r))}var mk=new Yo,Lp=class{constructor(t,r,n){this.bodyNode=t,this._driver=r,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,r){let n=[],i=[],o=dS(this._driver,r,n,i);if(n.length)throw D0(n);i.length&&void 0,this._animations.set(t,o)}_buildPlayer(t,r,n){let i=t.element,o=iS(this._normalizer,t.keyframes,r,n);return this._driver.animate(i,o,t.duration,t.delay,t.easing,[],!0)}create(t,r,n={}){let i=[],o=this._animations.get(t),s,a=new Map;if(o?(s=pS(this._driver,r,o,lS,yp,new Map,new Map,n,mk,i),s.forEach(u=>{let d=Lt(a,u.element,new Map);u.postStyleProps.forEach(p=>d.set(p,null))})):(i.push(O0()),s=[]),i.length)throw A0(i);a.forEach((u,d)=>{u.forEach((p,_)=>{u.set(_,this._driver.computeStyle(d,_,gn))})});let l=s.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),c=er(l);return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){let r=this._getPlayer(t);r.destroy(),this._playersById.delete(t);let n=this.players.indexOf(r);n>=0&&this.players.splice(n,1)}_getPlayer(t){let r=this._playersById.get(t);if(!r)throw M0(t);return r}listen(t,r,n,i){let o=Gp(r,"","","");return Bp(this._getPlayer(t),n,o,i),()=>{}}command(t,r,n,i){if(n=="register"){this.register(t,i[0]);return}if(n=="create"){let s=i[0]||{};this.create(t,r,s);return}let o=this._getPlayer(t);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t);break}}},JE="ng-animate-queued",fk=".ng-animate-queued",Tp="ng-animate-disabled",gk=".ng-animate-disabled",hk="ng-star-inserted",Ek=".ng-star-inserted",Sk=[],mS={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Tk={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},on="__ng_removed",qo=class{get params(){return this.options.params}constructor(t,r=""){this.namespaceId=r;let n=t&&t.hasOwnProperty("value"),i=n?t.value:t;if(this.value=Ck(i),n){let o=t,{value:s}=o,a=gm(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){let r=t.params;if(r){let n=this.options.params;Object.keys(r).forEach(i=>{n[i]==null&&(n[i]=r[i])})}}},Vo="void",bp=new qo(Vo),Pp=class{constructor(t,r,n){this.id=t,this.hostElement=r,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Ht(r,this._hostClassName)}listen(t,r,n,i){if(!this._triggers.has(r))throw w0(n,r);if(n==null||n.length==0)throw x0(r);if(!yk(n))throw L0(n,r);let o=Lt(this._elementListeners,t,[]),s={name:r,phase:n,callback:i};o.push(s);let a=Lt(this._engine.statesByElement,t,new Map);return a.has(r)||(Ht(t,gl),Ht(t,gl+"-"+r),a.set(r,bp)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(r)||a.delete(r)})}}register(t,r){return this._triggers.has(t)?!1:(this._triggers.set(t,r),!0)}_getTrigger(t){let r=this._triggers.get(t);if(!r)throw P0(t);return r}trigger(t,r,n,i=!0){let o=this._getTrigger(r),s=new $o(this.id,r,t),a=this._engine.statesByElement.get(t);a||(Ht(t,gl),Ht(t,gl+"-"+r),this._engine.statesByElement.set(t,a=new Map));let l=a.get(r),c=new qo(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(r,c),l||(l=bp),!(c.value===Vo)&&l.value===c.value){if(!Ik(l.params,c.params)){let f=[],S=o.matchStyles(l.value,l.params,f),b=o.matchStyles(c.value,c.params,f);f.length?this._engine.reportError(f):this._engine.afterFlush(()=>{Ur(t,S),hn(t,b)})}return}let p=Lt(this._engine.playersByElement,t,[]);p.forEach(f=>{f.namespaceId==this.id&&f.triggerName==r&&f.queued&&f.destroy()});let _=o.matchTransition(l.value,c.value,t,c.params),m=!1;if(!_){if(!i)return;_=o.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:r,transition:_,fromState:l,toState:c,player:s,isFallbackTransition:m}),m||(Ht(t,JE),s.onStart(()=>{xi(t,JE)})),s.onDone(()=>{let f=this.players.indexOf(s);f>=0&&this.players.splice(f,1);let S=this._engine.playersByElement.get(t);if(S){let b=S.indexOf(s);b>=0&&S.splice(b,1)}}),this.players.push(s),p.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(r=>r.delete(t)),this._elementListeners.forEach((r,n)=>{this._elementListeners.set(n,r.filter(i=>i.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);let r=this._engine.playersByElement.get(t);r&&(r.forEach(n=>n.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,r){let n=this._engine.driver.query(t,bl,!0);n.forEach(i=>{if(i[on])return;let o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(s=>s.triggerLeaveAnimation(i,r,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(t,r,n,i){let o=this._engine.statesByElement.get(t),s=new Map;if(o){let a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){let u=this.trigger(t,c,Vo,i);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,r,s),n&&er(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){let r=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(r&&n){let i=new Set;r.forEach(o=>{let s=o.name;if(i.has(s))return;i.add(s);let l=this._triggers.get(s).fallbackTransition,c=n.get(s)||bp,u=new qo(Vo),d=new $o(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,r){let n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,r),this.triggerLeaveAnimation(t,r,!0))return;let i=!1;if(n.totalAnimations){let o=n.players.length?n.playersByQueriedElement.get(t):[];if(o&&o.length)i=!0;else{let s=t;for(;s=s.parentNode;)if(n.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,r);else{let o=t[on];(!o||o===mS)&&(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,r))}}insertNode(t,r){Ht(t,this._hostClassName)}drainQueuedTransitions(t){let r=[];return this._queue.forEach(n=>{let i=n.player;if(i.destroyed)return;let o=n.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==n.triggerName){let l=Gp(o,n.triggerName,n.fromState.value,n.toState.value);l._data=t,Bp(n.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):r.push(n)}),this._queue=[],r.sort((n,i)=>{let o=n.transition.ast.depCount,s=i.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(n.element,i.element)?1:-1})}destroy(t){this.players.forEach(r=>r.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}},kp=class{_onRemovalComplete(t,r){this.onRemovalComplete(t,r)}constructor(t,r,n,i){this.bodyNode=t,this.driver=r,this._normalizer=n,this.scheduler=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,s)=>{}}get queuedPlayers(){let t=[];return this._namespaceList.forEach(r=>{r.players.forEach(n=>{n.queued&&t.push(n)})}),t}createNamespace(t,r){let n=new Pp(t,r,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,r)?this._balanceNamespaceList(n,r):(this.newHostElements.set(r,n),this.collectEnterElement(r)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,r){let n=this._namespaceList,i=this.namespacesByHostElement;if(n.length-1>=0){let s=!1,a=this.driver.getParentElement(r);for(;a;){let l=i.get(a);if(l){let c=n.indexOf(l);n.splice(c+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||n.unshift(t)}else n.push(t);return i.set(r,t),t}register(t,r){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,r)),n}registerTrigger(t,r,n){let i=this._namespaceLookup[t];i&&i.register(r,n)&&this.totalAnimations++}destroy(t,r){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(t);this.namespacesByHostElement.delete(n.hostElement);let i=this._namespaceList.indexOf(n);i>=0&&this._namespaceList.splice(i,1),n.destroy(r),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){let r=new Set,n=this.statesByElement.get(t);if(n){for(let i of n.values())if(i.namespaceId){let o=this._fetchNamespace(i.namespaceId);o&&r.add(o)}}return r}trigger(t,r,n,i){if(Sl(r)){let o=this._fetchNamespace(t);if(o)return o.trigger(r,n,i),!0}return!1}insertNode(t,r,n,i){if(!Sl(r))return;let o=r[on];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(r);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){let s=this._fetchNamespace(t);s&&s.insertNode(r,n)}i&&this.collectEnterElement(r)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,r){r?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Ht(t,Tp)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),xi(t,Tp))}removeNode(t,r,n){if(Sl(r)){this.scheduler?.notify();let i=t?this._fetchNamespace(t):null;i?i.removeNode(r,n):this.markElementAsRemoved(t,r,!1,n);let o=this.namespacesByHostElement.get(r);o&&o.id!==t&&o.removeNode(r,n)}else this._onRemovalComplete(r,n)}markElementAsRemoved(t,r,n,i,o){this.collectedLeaveElements.push(r),r[on]={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,r,n,i,o){return Sl(r)?this._fetchNamespace(t).listen(r,n,i,o):()=>{}}_buildInstruction(t,r,n,i,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,r,o)}destroyInnerAnimations(t){let r=this.driver.query(t,bl,!0);r.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(r=this.driver.query(t,vp,!0),r.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(t){let r=this.playersByElement.get(t);r&&r.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(t){let r=this.playersByQueriedElement.get(t);r&&r.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return er(this.players).onDone(()=>t());t()})}processLeaveNode(t){let r=t[on];if(r&&r.setForRemoval){if(t[on]=mS,r.namespaceId){this.destroyInnerAnimations(t);let n=this._fetchNamespace(r.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,r.setForRemoval)}t.classList?.contains(Tp)&&this.markElementAsDisabled(t,!1),this.driver.query(t,gk,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(t=-1){let r=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,i)=>this._balanceNamespaceList(n,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],r.length?er(r).onDone(()=>{n.forEach(i=>i())}):n.forEach(i=>i())}}reportError(t){throw k0(t)}_flushAnimations(t,r){let n=new Yo,i=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(A=>{u.add(A);let E=this.driver.query(A,fk,!0);for(let T=0;T{let T=lS+f++;m.set(E,T),A.forEach(I=>Ht(I,T))});let S=[],b=new Set,D=new Set;for(let A=0;Ab.add(I)):D.add(E))}let C=new Map,y=nS(p,Array.from(b));y.forEach((A,E)=>{let T=yp+f++;C.set(E,T),A.forEach(I=>Ht(I,T))}),t.push(()=>{_.forEach((A,E)=>{let T=m.get(E);A.forEach(I=>xi(I,T))}),y.forEach((A,E)=>{let T=C.get(E);A.forEach(I=>xi(I,T))}),S.forEach(A=>{this.processLeaveNode(A)})});let M=[],x=[];for(let A=this._namespaceList.length-1;A>=0;A--)this._namespaceList[A].drainQueuedTransitions(r).forEach(T=>{let I=T.player,B=T.element;if(M.push(I),this.collectedEnterElements.length){let Pe=B[on];if(Pe&&Pe.setForMove){if(Pe.previousTriggersValues&&Pe.previousTriggersValues.has(T.triggerName)){let dt=Pe.previousTriggersValues.get(T.triggerName),$e=this.statesByElement.get(T.element);if($e&&$e.has(T.triggerName)){let $t=$e.get(T.triggerName);$t.value=dt,$e.set(T.triggerName,$t)}}I.destroy();return}}let z=!d||!this.driver.containsElement(d,B),W=C.get(B),Te=m.get(B),_e=this._buildInstruction(T,n,Te,W,z);if(_e.errors&&_e.errors.length){x.push(_e);return}if(z){I.onStart(()=>Ur(B,_e.fromStyles)),I.onDestroy(()=>hn(B,_e.toStyles)),i.push(I);return}if(T.isFallbackTransition){I.onStart(()=>Ur(B,_e.fromStyles)),I.onDestroy(()=>hn(B,_e.toStyles)),i.push(I);return}let Ve=[];_e.timelines.forEach(Pe=>{Pe.stretchStartingKeyframe=!0,this.disabledNodes.has(Pe.element)||Ve.push(Pe)}),_e.timelines=Ve,n.append(B,_e.timelines);let We={instruction:_e,player:I,element:B};s.push(We),_e.queriedElements.forEach(Pe=>Lt(a,Pe,[]).push(I)),_e.preStyleProps.forEach((Pe,dt)=>{if(Pe.size){let $e=l.get(dt);$e||l.set(dt,$e=new Set),Pe.forEach(($t,Bn)=>$e.add(Bn))}}),_e.postStyleProps.forEach((Pe,dt)=>{let $e=c.get(dt);$e||c.set(dt,$e=new Set),Pe.forEach(($t,Bn)=>$e.add(Bn))})});if(x.length){let A=[];x.forEach(E=>{A.push(F0(E.triggerName,E.errors))}),M.forEach(E=>E.destroy()),this.reportError(A)}let U=new Map,q=new Map;s.forEach(A=>{let E=A.element;n.has(E)&&(q.set(E,E),this._beforeAnimationBuild(A.player.namespaceId,A.instruction,U))}),i.forEach(A=>{let E=A.element;this._getPreviousPlayers(E,!1,A.namespaceId,A.triggerName,null).forEach(I=>{Lt(U,E,[]).push(I),I.destroy()})});let J=S.filter(A=>rS(A,l,c)),H=new Map;tS(H,this.driver,D,c,gn).forEach(A=>{rS(A,l,c)&&J.push(A)});let xe=new Map;_.forEach((A,E)=>{tS(xe,this.driver,new Set(A),l,fl)}),J.forEach(A=>{let E=H.get(A),T=xe.get(A);H.set(A,new Map([...E?.entries()??[],...T?.entries()??[]]))});let Le=[],De=[],Ge={};s.forEach(A=>{let{element:E,player:T,instruction:I}=A;if(n.has(E)){if(u.has(E)){T.onDestroy(()=>hn(E,I.toStyles)),T.disabled=!0,T.overrideTotalTime(I.totalTime),i.push(T);return}let B=Ge;if(q.size>1){let W=E,Te=[];for(;W=W.parentNode;){let _e=q.get(W);if(_e){B=_e;break}Te.push(W)}Te.forEach(_e=>q.set(_e,B))}let z=this._buildAnimation(T.namespaceId,I,U,o,xe,H);if(T.setRealPlayer(z),B===Ge)Le.push(T);else{let W=this.playersByElement.get(B);W&&W.length&&(T.parentPlayer=er(W)),i.push(T)}}else Ur(E,I.fromStyles),T.onDestroy(()=>hn(E,I.toStyles)),De.push(T),u.has(E)&&i.push(T)}),De.forEach(A=>{let E=o.get(A.element);if(E&&E.length){let T=er(E);A.setRealPlayer(T)}}),i.forEach(A=>{A.parentPlayer?A.syncPlayerEvents(A.parentPlayer):A.destroy()});for(let A=0;A!z.destroyed);B.length?vk(this,E,B):this.processLeaveNode(E)}return S.length=0,Le.forEach(A=>{this.players.push(A),A.onDone(()=>{A.destroy();let E=this.players.indexOf(A);this.players.splice(E,1)}),A.play()}),Le}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,r,n,i,o){let s=[];if(r){let a=this.playersByQueriedElement.get(t);a&&(s=a)}else{let a=this.playersByElement.get(t);if(a){let l=!o||o==Vo;a.forEach(c=>{c.queued||!l&&c.triggerName!=i||s.push(c)})}}return(n||i)&&(s=s.filter(a=>!(n&&n!=a.namespaceId||i&&i!=a.triggerName))),s}_beforeAnimationBuild(t,r,n){let i=r.triggerName,o=r.element,s=r.isRemovalTransition?void 0:t,a=r.isRemovalTransition?void 0:i;for(let l of r.timelines){let c=l.element,u=c!==o,d=Lt(n,c,[]);this._getPreviousPlayers(c,u,s,a,r.toState).forEach(_=>{let m=_.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),_.destroy(),d.push(_)})}Ur(o,r.fromStyles)}_buildAnimation(t,r,n,i,o,s){let a=r.triggerName,l=r.element,c=[],u=new Set,d=new Set,p=r.timelines.map(m=>{let f=m.element;u.add(f);let S=f[on];if(S&&S.removedBeforeQueried)return new Jn(m.duration,m.delay);let b=f!==l,D=Rk((n.get(f)||Sk).map(U=>U.getRealPlayer())).filter(U=>{let q=U;return q.element?q.element===f:!1}),C=o.get(f),y=s.get(f),M=iS(this._normalizer,m.keyframes,C,y),x=this._buildPlayer(m,M,D);if(m.subTimeline&&i&&d.add(f),b){let U=new $o(t,a,f);U.setRealPlayer(x),c.push(U)}return x});c.forEach(m=>{Lt(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>bk(this.playersByQueriedElement,m.element,m))}),u.forEach(m=>Ht(m,WE));let _=er(p);return _.onDestroy(()=>{u.forEach(m=>xi(m,WE)),hn(l,r.toStyles)}),d.forEach(m=>{Lt(i,m,[]).push(_)}),_}_buildPlayer(t,r,n){return r.length>0?this.driver.animate(t.element,r,t.duration,t.delay,t.easing,n):new Jn(t.duration,t.delay)}},$o=class{constructor(t,r,n){this.namespaceId=t,this.triggerName=r,this.element=n,this._player=new Jn,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((r,n)=>{r.forEach(i=>Bp(t,n,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){let r=this._player;r.triggerCallback&&t.onStart(()=>r.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,r){Lt(this._queuedCallbacks,t,[]).push(r)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){let r=this._player;r.triggerCallback&&r.triggerCallback(t)}};function bk(e,t,r){let n=e.get(t);if(n){if(n.length){let i=n.indexOf(r);n.splice(i,1)}n.length==0&&e.delete(t)}return n}function Ck(e){return e??null}function Sl(e){return e&&e.nodeType===1}function yk(e){return e=="start"||e=="done"}function eS(e,t){let r=e.style.display;return e.style.display=t??"none",r}function tS(e,t,r,n,i){let o=[];r.forEach(l=>o.push(eS(l)));let s=[];n.forEach((l,c)=>{let u=new Map;l.forEach(d=>{let p=t.computeStyle(c,d,i);u.set(d,p),(!p||p.length==0)&&(c[on]=Tk,s.push(c))}),e.set(c,u)});let a=0;return r.forEach(l=>eS(l,o[a++])),s}function nS(e,t){let r=new Map;if(e.forEach(a=>r.set(a,[])),t.length==0)return r;let n=1,i=new Set(t),o=new Map;function s(a){if(!a)return n;let l=o.get(a);if(l)return l;let c=a.parentNode;return r.has(c)?l=c:i.has(c)?l=n:l=s(c),o.set(a,l),l}return t.forEach(a=>{let l=s(a);l!==n&&r.get(l).push(a)}),r}function Ht(e,t){e.classList?.add(t)}function xi(e,t){e.classList?.remove(t)}function vk(e,t,r){er(r).onDone(()=>e.processLeaveNode(t))}function Rk(e){let t=[];return fS(e,t),t}function fS(e,t){for(let r=0;ri.add(o)):t.set(e,n),r.delete(e),!0}var Pi=class{constructor(t,r,n,i){this._driver=r,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(o,s)=>{},this._transitionEngine=new kp(t.body,r,n,i),this._timelineEngine=new Lp(t.body,r,n),this._transitionEngine.onRemovalComplete=(o,s)=>this.onRemovalComplete(o,s)}registerTrigger(t,r,n,i,o){let s=t+"-"+i,a=this._triggerCache[s];if(!a){let l=[],c=[],u=dS(this._driver,o,l,c);if(l.length)throw I0(i,l);c.length&&void 0,a=pk(i,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(r,i,a)}register(t,r){this._transitionEngine.register(t,r)}destroy(t,r){this._transitionEngine.destroy(t,r)}onInsert(t,r,n,i){this._transitionEngine.insertNode(t,r,n,i)}onRemove(t,r,n){this._transitionEngine.removeNode(t,r,n)}disableAnimations(t,r){this._transitionEngine.markElementAsDisabled(t,r)}process(t,r,n,i){if(n.charAt(0)=="@"){let[o,s]=$E(n),a=i;this._timelineEngine.command(o,r,s,a)}else this._transitionEngine.trigger(t,r,n,i)}listen(t,r,n,i,o){if(n.charAt(0)=="@"){let[s,a]=$E(n);return this._timelineEngine.listen(s,r,a,o)}return this._transitionEngine.listen(t,r,n,i,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}};function Nk(e,t){let r=null,n=null;return Array.isArray(t)&&t.length?(r=Cp(t[0]),t.length>1&&(n=Cp(t[t.length-1]))):t instanceof Map&&(r=Cp(t)),r||n?new Fp(e,r,n):null}var Li=class Li{constructor(t,r,n){this._element=t,this._startStyles=r,this._endStyles=n,this._state=0;let i=Li.initialStylesByElement.get(t);i||Li.initialStylesByElement.set(t,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&hn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(hn(this._element,this._initialStyles),this._endStyles&&(hn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Li.initialStylesByElement.delete(this._element),this._startStyles&&(Ur(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ur(this._element,this._endStyles),this._endStyles=null),hn(this._element,this._initialStyles),this._state=3)}};Li.initialStylesByElement=new WeakMap;var Fp=Li;function Cp(e){let t=null;return e.forEach((r,n)=>{Dk(n)&&(t=t||new Map,t.set(n,r))}),t}function Dk(e){return e==="display"||e==="position"}var Dl=class{constructor(t,r,n,i){this.element=t,this.keyframes=r,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map;let r=()=>this._onFinish();this.domPlayer.addEventListener("finish",r),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",r)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){let r=[];return t.forEach(n=>{r.push(Object.fromEntries(n))}),r}_triggerWebAnimation(t,r,n){return t.animate(this._convertKeyframesToObject(r),n)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,i)=>{i!=="offset"&&t.set(i,this._finished?n:qp(this.element,i))}),this.currentSnapshot=t}triggerCallback(t){let r=t==="start"?this._onStartFns:this._onDoneFns;r.forEach(n=>n()),r.length=0}},Ol=class{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,r){return!1}containsElement(t,r){return oS(t,r)}getParentElement(t){return Vp(t)}query(t,r,n){return sS(t,r,n)}computeStyle(t,r,n){return qp(t,r)}animate(t,r,n,i,o,s=[]){let a=i==0?"both":"forwards",l={duration:n,delay:i,fill:a};o&&(l.easing=o);let c=new Map,u=s.filter(_=>_ instanceof Dl);K0(n,i)&&u.forEach(_=>{_.currentSnapshot.forEach((m,f)=>c.set(f,m))});let d=$0(r).map(_=>new Map(_));d=Q0(t,d,c);let p=Nk(t,d);return new Dl(t,d,l,p)}};var Tl="@",gS="@.disabled",Al=class{constructor(t,r,n,i){this.namespaceId=t,this.delegate=r,this.engine=n,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(t){this.delegate.destroyNode?.(t)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(t,r){return this.delegate.createElement(t,r)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,r){this.delegate.appendChild(t,r),this.engine.onInsert(this.namespaceId,r,t,!1)}insertBefore(t,r,n,i=!0){this.delegate.insertBefore(t,r,n),this.engine.onInsert(this.namespaceId,r,t,i)}removeChild(t,r,n){this.engine.onRemove(this.namespaceId,r,this.delegate)}selectRootElement(t,r){return this.delegate.selectRootElement(t,r)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,r,n,i){this.delegate.setAttribute(t,r,n,i)}removeAttribute(t,r,n){this.delegate.removeAttribute(t,r,n)}addClass(t,r){this.delegate.addClass(t,r)}removeClass(t,r){this.delegate.removeClass(t,r)}setStyle(t,r,n,i){this.delegate.setStyle(t,r,n,i)}removeStyle(t,r,n){this.delegate.removeStyle(t,r,n)}setProperty(t,r,n){r.charAt(0)==Tl&&r==gS?this.disableAnimations(t,!!n):this.delegate.setProperty(t,r,n)}setValue(t,r){this.delegate.setValue(t,r)}listen(t,r,n){return this.delegate.listen(t,r,n)}disableAnimations(t,r){this.engine.disableAnimations(t,r)}},Up=class extends Al{constructor(t,r,n,i,o){super(r,n,i,o),this.factory=t,this.namespaceId=r}setProperty(t,r,n){r.charAt(0)==Tl?r.charAt(1)=="."&&r==gS?(n=n===void 0?!0:!!n,this.disableAnimations(t,n)):this.engine.process(this.namespaceId,t,r.slice(1),n):this.delegate.setProperty(t,r,n)}listen(t,r,n){if(r.charAt(0)==Tl){let i=Ok(t),o=r.slice(1),s="";return o.charAt(0)!=Tl&&([o,s]=Ak(o)),this.engine.listen(this.namespaceId,i,o,s,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,n,a)})}return this.delegate.listen(t,r,n)}};function Ok(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}function Ak(e){let t=e.indexOf("."),r=e.substring(0,t),n=e.slice(t+1);return[r,n]}var Ml=class{constructor(t,r,n){this.delegate=t,this.engine=r,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,r.onRemovalComplete=(i,o)=>{let s=o?.parentNode(i);s&&o.removeChild(s,i)}}createRenderer(t,r){let n="",i=this.delegate.createRenderer(t,r);if(!t||!r?.data?.animation){let c=this._rendererCache,u=c.get(i);if(!u){let d=()=>c.delete(i);u=new Al(n,i,this.engine,d),c.set(i,u)}return u}let o=r.id,s=r.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(o,s,t,c.name,c)};return r.data.animation.forEach(a),new Up(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,r,n){if(t>=0&&tr(n));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),i.push([r,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var wk=(()=>{let t=class t extends Pi{constructor(n,i,o){super(n,i,o,w(bo,{optional:!0}))}ngOnDestroy(){this.flush()}};t.\u0275fac=function(i){return new(i||t)(K(rt),K(Br),K(Gr))},t.\u0275prov=Y({token:t,factory:t.\u0275fac});let e=t;return e})();function xk(){return new yl}function Lk(e,t,r){return new Ml(e,t,r)}var ES=[{provide:Gr,useFactory:xk},{provide:Pi,useClass:wk},{provide:Rr,useFactory:Lk,deps:[_l,Pi,ye]}],hS=[{provide:Br,useFactory:()=>new Ol},{provide:Dd,useValue:"BrowserAnimations"},...ES],Pk=[{provide:Br,useClass:Hp},{provide:Dd,useValue:"NoopAnimations"},...ES],SS=(()=>{let t=class t{static withConfig(n){return{ngModule:t,providers:n.disableAnimations?Pk:hS}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=mt({type:t}),t.\u0275inj=_t({providers:hS,imports:[VE]});let e=t;return e})();var se="primary",ss=Symbol("RouteTitle"),Zp=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let r=this.params[t];return Array.isArray(r)?r[0]:r}return null}getAll(t){if(this.has(t)){let r=this.params[t];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function Gi(e){return new Zp(e)}function kk(e,t,r){let n=r.path.split("/");if(n.length>e.length||r.pathMatch==="full"&&(t.hasChildren()||n.lengthn[o]===i)}else return e===t}function IS(e){return e.length>0?e[e.length-1]:null}function rr(e){return lo(e)?e:Lr(e)?Ye(Promise.resolve(e)):te(e)}var Uk={exact:DS,subset:OS},NS={exact:Bk,subset:Gk,ignored:()=>!0};function TS(e,t,r){return Uk[r.paths](e.root,t.root,r.matrixParams)&&NS[r.queryParams](e.queryParams,t.queryParams)&&!(r.fragment==="exact"&&e.fragment!==t.fragment)}function Bk(e,t){return En(e,t)}function DS(e,t,r){if(!Hr(e.segments,t.segments)||!Ll(e.segments,t.segments,r)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let n in t.children)if(!e.children[n]||!DS(e.children[n],t.children[n],r))return!1;return!0}function Gk(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(r=>RS(e[r],t[r]))}function OS(e,t,r){return AS(e,t,t.segments,r)}function AS(e,t,r,n){if(e.segments.length>r.length){let i=e.segments.slice(0,r.length);return!(!Hr(i,r)||t.hasChildren()||!Ll(i,r,n))}else if(e.segments.length===r.length){if(!Hr(e.segments,r)||!Ll(e.segments,r,n))return!1;for(let i in t.children)if(!e.children[i]||!OS(e.children[i],t.children[i],n))return!1;return!0}else{let i=r.slice(0,e.segments.length),o=r.slice(e.segments.length);return!Hr(e.segments,i)||!Ll(e.segments,i,n)||!e.children[se]?!1:AS(e.children[se],t,o,n)}}function Ll(e,t,r){return t.every((n,i)=>NS[r](e[i].parameters,n.parameters))}var tr=class{constructor(t=new ve([],{}),r={},n=null){this.root=t,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Gi(this.queryParams),this._queryParamMap}toString(){return Yk.serialize(this)}},ve=class{constructor(t,r){this.segments=t,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Pl(this)}},Vr=class{constructor(t,r){this.path=t,this.parameters=r}get parameterMap(){return this._parameterMap??=Gi(this.parameters),this._parameterMap}toString(){return wS(this)}};function Vk(e,t){return Hr(e,t)&&e.every((r,n)=>En(r.parameters,t[n].parameters))}function Hr(e,t){return e.length!==t.length?!1:e.every((r,n)=>r.path===t[n].path)}function Hk(e,t){let r=[];return Object.entries(e.children).forEach(([n,i])=>{n===se&&(r=r.concat(t(i,n)))}),Object.entries(e.children).forEach(([n,i])=>{n!==se&&(r=r.concat(t(i,n)))}),r}var v_=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:()=>new Fl,providedIn:"root"});let e=t;return e})(),Fl=class{parse(t){let r=new e_(t);return new tr(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(t){let r=`/${zo(t.root,!0)}`,n=zk(t.queryParams),i=typeof t.fragment=="string"?`#${qk(t.fragment)}`:"";return`${r}${n}${i}`}},Yk=new Fl;function Pl(e){return e.segments.map(t=>wS(t)).join("/")}function zo(e,t){if(!e.hasChildren())return Pl(e);if(t){let r=e.children[se]?zo(e.children[se],!1):"",n=[];return Object.entries(e.children).forEach(([i,o])=>{i!==se&&n.push(`${i}:${zo(o,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=Hk(e,(n,i)=>i===se?[zo(e.children[se],!1)]:[`${i}:${zo(n,!1)}`]);return Object.keys(e.children).length===1&&e.children[se]!=null?`${Pl(e)}/${r[0]}`:`${Pl(e)}/(${r.join("//")})`}}function MS(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function wl(e){return MS(e).replace(/%3B/gi,";")}function qk(e){return encodeURI(e)}function Jp(e){return MS(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function kl(e){return decodeURIComponent(e)}function bS(e){return kl(e.replace(/\+/g,"%20"))}function wS(e){return`${Jp(e.path)}${$k(e.parameters)}`}function $k(e){return Object.entries(e).map(([t,r])=>`;${Jp(t)}=${Jp(r)}`).join("")}function zk(e){let t=Object.entries(e).map(([r,n])=>Array.isArray(n)?n.map(i=>`${wl(r)}=${wl(i)}`).join("&"):`${wl(r)}=${wl(n)}`).filter(r=>r);return t.length?`?${t.join("&")}`:""}var Wk=/^[^\/()?;#]+/;function Wp(e){let t=e.match(Wk);return t?t[0]:""}var Kk=/^[^\/()?;=#]+/;function Qk(e){let t=e.match(Kk);return t?t[0]:""}var jk=/^[^=?&#]+/;function Zk(e){let t=e.match(jk);return t?t[0]:""}var Xk=/^[^&#]+/;function Jk(e){let t=e.match(Xk);return t?t[0]:""}var e_=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new ve([],{}):new ve([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(r).length>0)&&(n[se]=new ve(t,r)),n}parseSegment(){let t=Wp(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new N(4009,!1);return this.capture(t),new Vr(kl(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let r=Qk(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let i=Wp(this.remaining);i&&(n=i,this.capture(n))}t[kl(r)]=kl(n)}parseQueryParam(t){let r=Zk(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=Jk(this.remaining);s&&(n=s,this.capture(n))}let i=bS(r),o=bS(n);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Wp(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new N(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=se);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[se]:new ve([],s),this.consumeOptional("//")}return r}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new N(4011,!1)}};function xS(e){return e.segments.length>0?new ve([],{[se]:e}):e}function LS(e){let t={};for(let[n,i]of Object.entries(e.children)){let o=LS(i);if(n===se&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[n]=o)}let r=new ve(e.segments,t);return eF(r)}function eF(e){if(e.numberOfChildren===1&&e.children[se]){let t=e.children[se];return new ve(e.segments.concat(t.segments),t.children)}return e}function Vi(e){return e instanceof tr}function tF(e,t,r=null,n=null){let i=PS(e);return kS(i,t,r,n)}function PS(e){let t;function r(o){let s={};for(let l of o.children){let c=r(l);s[l.outlet]=c}let a=new ve(o.url,s);return o===e&&(t=a),a}let n=r(e.root),i=xS(n);return t??i}function kS(e,t,r,n){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return Kp(i,i,i,r,n);let o=nF(t);if(o.toRoot())return Kp(i,i,new ve([],{}),r,n);let s=rF(o,i,e),a=s.processChildren?Qo(s.segmentGroup,s.index,o.commands):US(s.segmentGroup,s.index,o.commands);return Kp(i,s.segmentGroup,a,r,n)}function Ul(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Xo(e){return typeof e=="object"&&e!=null&&e.outlets}function Kp(e,t,r,n,i){let o={};n&&Object.entries(n).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`});let s;e===t?s=r:s=FS(e,t,r);let a=xS(LS(s));return new tr(a,o,i)}function FS(e,t,r){let n={};return Object.entries(e.children).forEach(([i,o])=>{o===t?n[i]=r:n[i]=FS(o,t,r)}),new ve(e.segments,n)}var Bl=class{constructor(t,r,n){if(this.isAbsolute=t,this.numberOfDoubleDots=r,this.commands=n,t&&n.length>0&&Ul(n[0]))throw new N(4003,!1);let i=n.find(Xo);if(i&&i!==IS(n))throw new N(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function nF(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Bl(!0,0,e);let t=0,r=!1,n=e.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?r=!0:a===".."?t++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Bl(r,t,n)}var Ui=class{constructor(t,r,n){this.segmentGroup=t,this.processChildren=r,this.index=n}};function rF(e,t,r){if(e.isAbsolute)return new Ui(t,!0,0);if(!r)return new Ui(t,!1,NaN);if(r.parent===null)return new Ui(r,!0,0);let n=Ul(e.commands[0])?0:1,i=r.segments.length-1+n;return iF(r,i,e.numberOfDoubleDots)}function iF(e,t,r){let n=e,i=t,o=r;for(;o>i;){if(o-=i,n=n.parent,!n)throw new N(4005,!1);i=n.segments.length}return new Ui(n,!1,i-o)}function oF(e){return Xo(e[0])?e[0].outlets:{[se]:e}}function US(e,t,r){if(e??=new ve([],{}),e.segments.length===0&&e.hasChildren())return Qo(e,t,r);let n=sF(e,t,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndexo!==se)&&e.children[se]&&e.numberOfChildren===1&&e.children[se].segments.length===0){let o=Qo(e.children[se],t,r);return new ve(e.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=US(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new ve(e.segments,i)}}function sF(e,t,r){let n=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return o;let s=e.segments[i],a=r[n];if(Xo(a))break;let l=`${a}`,c=n0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!yS(l,c,s))return o;n+=2}else{if(!yS(l,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function t_(e,t,r){let n=e.segments.slice(0,t),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(t[r]=t_(new ve([],{}),0,n))}),t}function CS(e){let t={};return Object.entries(e).forEach(([r,n])=>t[r]=`${n}`),t}function yS(e,t,r){return e==r.path&&En(t,r.parameters)}var jo="imperative",ut=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(ut||{}),Yt=class{constructor(t,r){this.id=t,this.url=r}},Jo=class extends Yt{constructor(t,r,n="imperative",i=null){super(t,r),this.type=ut.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Yr=class extends Yt{constructor(t,r,n){super(t,r),this.urlAfterRedirects=n,this.type=ut.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},kt=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(kt||{}),n_=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(n_||{}),nr=class extends Yt{constructor(t,r,n,i){super(t,r),this.reason=n,this.code=i,this.type=ut.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},qr=class extends Yt{constructor(t,r,n,i){super(t,r),this.reason=n,this.code=i,this.type=ut.NavigationSkipped}},es=class extends Yt{constructor(t,r,n,i){super(t,r),this.error=n,this.target=i,this.type=ut.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Gl=class extends Yt{constructor(t,r,n,i){super(t,r),this.urlAfterRedirects=n,this.state=i,this.type=ut.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},r_=class extends Yt{constructor(t,r,n,i){super(t,r),this.urlAfterRedirects=n,this.state=i,this.type=ut.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},i_=class extends Yt{constructor(t,r,n,i,o){super(t,r),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o,this.type=ut.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},o_=class extends Yt{constructor(t,r,n,i){super(t,r),this.urlAfterRedirects=n,this.state=i,this.type=ut.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},s_=class extends Yt{constructor(t,r,n,i){super(t,r),this.urlAfterRedirects=n,this.state=i,this.type=ut.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},a_=class{constructor(t){this.route=t,this.type=ut.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},l_=class{constructor(t){this.route=t,this.type=ut.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},c_=class{constructor(t){this.snapshot=t,this.type=ut.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},u_=class{constructor(t){this.snapshot=t,this.type=ut.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},d_=class{constructor(t){this.snapshot=t,this.type=ut.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},p_=class{constructor(t){this.snapshot=t,this.type=ut.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var ts=class{},ns=class{constructor(t){this.url=t}};var __=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new zl,this.attachRef=null}},zl=(()=>{let t=class t{constructor(){this.contexts=new Map}onChildOutletCreated(n,i){let o=this.getOrCreateContext(n);o.outlet=i,this.contexts.set(n,o)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new __,this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Vl=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let r=this.pathFromRoot(t);return r.length>1?r[r.length-2]:null}children(t){let r=m_(t,this._root);return r?r.children.map(n=>n.value):[]}firstChild(t){let r=m_(t,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(t){let r=f_(t,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return f_(t,this._root).map(r=>r.value)}};function m_(e,t){if(e===t.value)return t;for(let r of t.children){let n=m_(e,r);if(n)return n}return null}function f_(e,t){if(e===t.value)return[t];for(let r of t.children){let n=f_(e,r);if(n.length)return n.unshift(t),n}return[]}var Pt=class{constructor(t,r){this.value=t,this.children=r}toString(){return`TreeNode(${this.value})`}};function Fi(e){let t={};return e&&e.children.forEach(r=>t[r.value.outlet]=r),t}var Hl=class extends Vl{constructor(t,r){super(t),this.snapshot=r,I_(this,t)}toString(){return this.snapshot.toString()}};function BS(e){let t=lF(e),r=new ot([new Vr("",{})]),n=new ot({}),i=new ot({}),o=new ot({}),s=new ot(""),a=new Hi(r,n,o,s,i,se,e,t.root);return a.snapshot=t.root,new Hl(new Pt(a,[]),t)}function lF(e){let t={},r={},n={},i="",o=new rs([],t,n,i,r,se,e,null,{});return new Yl("",new Pt(o,[]))}var Hi=class{constructor(t,r,n,i,o,s,a,l){this.urlSubject=t,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(ge(c=>c[ss]))??te(void 0),this.url=t,this.params=r,this.queryParams=n,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(ge(t=>Gi(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ge(t=>Gi(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function R_(e,t,r="emptyOnly"){let n,{routeConfig:i}=e;return t!==null&&(r==="always"||i?.path===""||!t.component&&!t.routeConfig?.loadComponent)?n={params:k(k({},t.params),e.params),data:k(k({},t.data),e.data),resolve:k(k(k(k({},e.data),t.data),i?.data),e._resolvedData)}:n={params:k({},e.params),data:k({},e.data),resolve:k(k({},e.data),e._resolvedData??{})},i&&VS(i)&&(n.resolve[ss]=i.title),n}var rs=class{get title(){return this.data?.[ss]}constructor(t,r,n,i,o,s,a,l,c){this.url=t,this.params=r,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Gi(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Gi(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${r}')`}},Yl=class extends Vl{constructor(t,r){super(r),this.url=t,I_(this,r)}toString(){return GS(this._root)}};function I_(e,t){t.value._routerState=e,t.children.forEach(r=>I_(e,r))}function GS(e){let t=e.children.length>0?` { ${e.children.map(GS).join(", ")} } `:"";return`${e.value}${t}`}function Qp(e){if(e.snapshot){let t=e.snapshot,r=e._futureSnapshot;e.snapshot=r,En(t.queryParams,r.queryParams)||e.queryParamsSubject.next(r.queryParams),t.fragment!==r.fragment&&e.fragmentSubject.next(r.fragment),En(t.params,r.params)||e.paramsSubject.next(r.params),Fk(t.url,r.url)||e.urlSubject.next(r.url),En(t.data,r.data)||e.dataSubject.next(r.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function g_(e,t){let r=En(e.params,t.params)&&Vk(e.url,t.url),n=!e.parent!=!t.parent;return r&&!n&&(!e.parent||g_(e.parent,t.parent))}function VS(e){return typeof e.title=="string"||e.title===null}var cF=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=se,this.activateEvents=new Ce,this.deactivateEvents=new Ce,this.attachEvents=new Ce,this.detachEvents=new Ce,this.parentContexts=w(zl),this.location=w(wr),this.changeDetector=w(Pn),this.environmentInjector=w(Ut),this.inputBinder=w(N_,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:o}=n.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new N(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new N(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new N(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,i){if(this.isActivated)throw new N(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,c=new h_(n,l,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=Oe({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[vt]});let e=t;return e})(),h_=class{constructor(t,r,n){this.route=t,this.childContexts=r,this.parent=n,this.__ngOutletInjector=!0}get(t,r){return t===Hi?this.route:t===zl?this.childContexts:this.parent.get(t,r)}},N_=new j("");function uF(e,t,r){let n=is(e,t._root,r?r._root:void 0);return new Hl(n,t)}function is(e,t,r){if(r&&e.shouldReuseRoute(t.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=t.value;let i=dF(e,t,r);return new Pt(n,i)}else{if(e.shouldAttach(t.value)){let o=e.retrieve(t.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>is(e,a)),s}}let n=pF(t.value),i=t.children.map(o=>is(e,o));return new Pt(n,i)}}function dF(e,t,r){return t.children.map(n=>{for(let i of r.children)if(e.shouldReuseRoute(n.value,i.value.snapshot))return is(e,n,i);return is(e,n)})}function pF(e){return new Hi(new ot(e.url),new ot(e.params),new ot(e.queryParams),new ot(e.fragment),new ot(e.data),e.outlet,e.component,e)}var HS="ngNavigationCancelingError";function YS(e,t){let{redirectTo:r,navigationBehaviorOptions:n}=Vi(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=qS(!1,kt.Redirect);return i.url=r,i.navigationBehaviorOptions=n,i}function qS(e,t){let r=new Error(`NavigationCancelingError: ${e||""}`);return r[HS]=!0,r.cancellationCode=t,r}function _F(e){return $S(e)&&Vi(e.url)}function $S(e){return!!e&&e[HS]}var mF=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=X({type:t,selectors:[["ng-component"]],standalone:!0,features:[oe],decls:1,vars:0,template:function(i,o){i&1&&de(0,"router-outlet")},dependencies:[cF],encapsulation:2});let e=t;return e})();function fF(e,t){return e.providers&&!e._injector&&(e._injector=Kd(e.providers,t,`Route: ${e.path}`)),e._injector??t}function D_(e){let t=e.children&&e.children.map(D_),r=t?Ie(k({},e),{children:t}):k({},e);return!r.component&&!r.loadComponent&&(t||r.loadChildren)&&r.outlet&&r.outlet!==se&&(r.component=mF),r}function Sn(e){return e.outlet||se}function gF(e,t){let r=e.filter(n=>Sn(n)===t);return r.push(...e.filter(n=>Sn(n)!==t)),r}function as(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let r=t.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var hF=(e,t,r,n)=>ge(i=>(new E_(t,i.targetRouterState,i.currentRouterState,r,n).activate(e),i)),E_=class{constructor(t,r,n,i,o){this.routeReuseStrategy=t,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(t){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,t),Qp(this.futureState.root),this.activateChildRoutes(r,n,t)}deactivateChildRoutes(t,r,n){let i=Fi(r);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(t,r,n){let i=t.value,o=r?r.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(t,r,s.children)}else this.deactivateChildRoutes(t,r,n);else o&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(t,r){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,r):this.deactivateRouteAndOutlet(t,r)}detachAndStoreRouteSubtree(t,r){let n=r.getContext(t.value.outlet),i=n&&t.value.component?n.children:r,o=Fi(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,r){let n=r.getContext(t.value.outlet),i=n&&t.value.component?n.children:r,o=Fi(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(t,r,n){let i=Fi(r);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new p_(o.value.snapshot))}),t.children.length&&this.forwardEvent(new u_(t.value.snapshot))}activateRoutes(t,r,n){let i=t.value,o=r?r.value:null;if(Qp(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,r,s.children)}else this.activateChildRoutes(t,r,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Qp(a.route.value),this.activateChildRoutes(t,null,s.children)}else{let a=as(i.snapshot);s.attachRef=null,s.route=i,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,n)}},ql=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Bi=class{constructor(t,r){this.component=t,this.route=r}};function EF(e,t,r){let n=e._root,i=t?t._root:null;return Wo(n,i,r,[n.value])}function SF(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function qi(e,t){let r=Symbol(),n=t.get(e,r);return n===r?typeof e=="function"&&!Kf(e)?e:t.get(e):n}function Wo(e,t,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Fi(t);return e.children.forEach(s=>{TF(s,o[s.value.outlet],r,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Zo(a,r.getContext(s),i)),i}function TF(e,t,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=t?t.value:null,a=r?r.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=bF(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new ql(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Wo(e,t,a?a.children:null,n,i):Wo(e,t,r,n,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Bi(a.outlet.component,s))}else s&&Zo(t,a,i),i.canActivateChecks.push(new ql(n)),o.component?Wo(e,null,a?a.children:null,n,i):Wo(e,null,r,n,i);return i}function bF(e,t,r){if(typeof r=="function")return r(e,t);switch(r){case"pathParamsChange":return!Hr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Hr(e.url,t.url)||!En(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!g_(e,t)||!En(e.queryParams,t.queryParams);case"paramsChange":default:return!g_(e,t)}}function Zo(e,t,r){let n=Fi(e),i=e.value;Object.entries(n).forEach(([o,s])=>{i.component?t?Zo(s,t.children.getContext(o),r):Zo(s,null,r):Zo(s,t,r)}),i.component?t&&t.outlet&&t.outlet.isActivated?r.canDeactivateChecks.push(new Bi(t.outlet.component,i)):r.canDeactivateChecks.push(new Bi(null,i)):r.canDeactivateChecks.push(new Bi(null,i))}function ls(e){return typeof e=="function"}function CF(e){return typeof e=="boolean"}function yF(e){return e&&ls(e.canLoad)}function vF(e){return e&&ls(e.canActivate)}function RF(e){return e&&ls(e.canActivateChild)}function IF(e){return e&&ls(e.canDeactivate)}function NF(e){return e&&ls(e.canMatch)}function zS(e){return e instanceof Kt||e?.name==="EmptyError"}var xl=Symbol("INITIAL_VALUE");function Yi(){return jt(e=>Zs(e.map(t=>t.pipe(Cn(1),qc(xl)))).pipe(ge(t=>{for(let r of t)if(r!==!0){if(r===xl)return xl;if(r===!1||r instanceof tr)return r}return!0}),Qt(t=>t!==xl),Cn(1)))}function DF(e,t){return Ue(r=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?te(Ie(k({},r),{guardsResult:!0})):OF(s,n,i,e).pipe(Ue(a=>a&&CF(a)?AF(n,o,e,t):te(a)),ge(a=>Ie(k({},r),{guardsResult:a})))})}function OF(e,t,r,n){return Ye(e).pipe(Ue(i=>PF(i.component,i.route,r,t,n)),cn(i=>i!==!0,!0))}function AF(e,t,r,n){return Ye(t).pipe(ci(i=>ai(wF(i.route.parent,n),MF(i.route,n),LF(e,i.path,r),xF(e,i.route,r))),cn(i=>i!==!0,!0))}function MF(e,t){return e!==null&&t&&t(new d_(e)),te(!0)}function wF(e,t){return e!==null&&t&&t(new c_(e)),te(!0)}function xF(e,t,r){let n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||n.length===0)return te(!0);let i=n.map(o=>li(()=>{let s=as(t)??r,a=qi(o,s),l=vF(a)?a.canActivate(t,e):Nr(s,()=>a(t,e));return rr(l).pipe(cn())}));return te(i).pipe(Yi())}function LF(e,t,r){let n=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>SF(s)).filter(s=>s!==null).map(s=>li(()=>{let a=s.guards.map(l=>{let c=as(s.node)??r,u=qi(l,c),d=RF(u)?u.canActivateChild(n,e):Nr(c,()=>u(n,e));return rr(d).pipe(cn())});return te(a).pipe(Yi())}));return te(o).pipe(Yi())}function PF(e,t,r,n,i){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return te(!0);let s=o.map(a=>{let l=as(t)??i,c=qi(a,l),u=IF(c)?c.canDeactivate(e,t,r,n):Nr(l,()=>c(e,t,r,n));return rr(u).pipe(cn())});return te(s).pipe(Yi())}function kF(e,t,r,n){let i=t.canLoad;if(i===void 0||i.length===0)return te(!0);let o=i.map(s=>{let a=qi(s,e),l=yF(a)?a.canLoad(t,r):Nr(e,()=>a(t,r));return rr(l)});return te(o).pipe(Yi(),WS(n))}function WS(e){return wc(st(t=>{if(Vi(t))throw YS(e,t)}),ge(t=>t===!0))}function FF(e,t,r,n){let i=t.canMatch;if(!i||i.length===0)return te(!0);let o=i.map(s=>{let a=qi(s,e),l=NF(a)?a.canMatch(t,r):Nr(e,()=>a(t,r));return rr(l)});return te(o).pipe(Yi(),WS(n))}var os=class{constructor(t){this.segmentGroup=t||null}},$l=class extends Error{constructor(t){super(),this.urlTree=t}};function ki(e){return oi(new os(e))}function UF(e){return oi(new N(4e3,!1))}function BF(e){return oi(qS(!1,kt.GuardRejected))}var S_=class{constructor(t,r){this.urlSerializer=t,this.urlTree=r}lineralizeSegments(t,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return te(n);if(i.numberOfChildren>1||!i.children[se])return UF(t.redirectTo);i=i.children[se]}}applyRedirectCommands(t,r,n){let i=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),t,n);if(r.startsWith("/"))throw new $l(i);return i}applyRedirectCreateUrlTree(t,r,n,i){let o=this.createSegmentGroup(t,r.root,n,i);return new tr(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(t,r){let n={};return Object.entries(t).forEach(([i,o])=>{if(typeof o=="string"&&o.startsWith(":")){let a=o.substring(1);n[i]=r[a]}else n[i]=o}),n}createSegmentGroup(t,r,n,i){let o=this.createSegments(t,r.segments,n,i),s={};return Object.entries(r.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(t,l,n,i)}),new ve(o,s)}createSegments(t,r,n,i){return r.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,i):this.findOrReturn(o,n))}findPosParam(t,r,n){let i=n[r.path.substring(1)];if(!i)throw new N(4001,!1);return i}findOrReturn(t,r){let n=0;for(let i of r){if(i.path===t.path)return r.splice(n),i;n++}return t}},T_={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function GF(e,t,r,n,i){let o=O_(e,t,r);return o.matched?(n=fF(t,n),FF(n,t,r,i).pipe(ge(s=>s===!0?o:k({},T_)))):te(o)}function O_(e,t,r){if(t.path==="**")return VF(r);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||r.length>0)?k({},T_):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(t.matcher||kk)(r,e,t);if(!i)return k({},T_);let o={};Object.entries(i.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=i.consumed.length>0?k(k({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function VF(e){return{matched:!0,parameters:e.length>0?IS(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function vS(e,t,r,n){return r.length>0&&qF(e,r,n)?{segmentGroup:new ve(t,YF(n,new ve(r,e.children))),slicedSegments:[]}:r.length===0&&$F(e,r,n)?{segmentGroup:new ve(e.segments,HF(e,r,n,e.children)),slicedSegments:r}:{segmentGroup:new ve(e.segments,e.children),slicedSegments:r}}function HF(e,t,r,n){let i={};for(let o of r)if(Wl(e,t,o)&&!n[Sn(o)]){let s=new ve([],{});i[Sn(o)]=s}return k(k({},n),i)}function YF(e,t){let r={};r[se]=t;for(let n of e)if(n.path===""&&Sn(n)!==se){let i=new ve([],{});r[Sn(n)]=i}return r}function qF(e,t,r){return r.some(n=>Wl(e,t,n)&&Sn(n)!==se)}function $F(e,t,r){return r.some(n=>Wl(e,t,n))}function Wl(e,t,r){return(e.hasChildren()||t.length>0)&&r.pathMatch==="full"?!1:r.path===""}function zF(e,t,r,n){return Sn(e)!==n&&(n===se||!Wl(t,r,e))?!1:O_(t,e,r).matched}function WF(e,t,r){return t.length===0&&!e.children[r]}var b_=class{};function KF(e,t,r,n,i,o,s="emptyOnly"){return new C_(e,t,r,n,i,s,o).recognize()}var QF=31,C_=class{constructor(t,r,n,i,o,s,a){this.injector=t,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new S_(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new N(4002,`'${t.segmentGroup}'`)}recognize(){let t=vS(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(ge(r=>{let n=new rs([],Object.freeze({}),Object.freeze(k({},this.urlTree.queryParams)),this.urlTree.fragment,{},se,this.rootComponentType,null,{}),i=new Pt(n,r),o=new Yl("",i),s=tF(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,se).pipe(Yn(n=>{if(n instanceof $l)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof os?this.noMatchError(n):n}))}inheritParamsAndData(t,r){let n=t.value,i=R_(n,r,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),t.children.forEach(o=>this.inheritParamsAndData(o,n))}processSegmentGroup(t,r,n,i){return n.segments.length===0&&n.hasChildren()?this.processChildren(t,r,n):this.processSegment(t,r,n,n.segments,i,!0).pipe(ge(o=>o instanceof Pt?[o]:[]))}processChildren(t,r,n){let i=[];for(let o of Object.keys(n.children))o==="primary"?i.unshift(o):i.push(o);return Ye(i).pipe(ci(o=>{let s=n.children[o],a=gF(r,o);return this.processSegmentGroup(t,a,s,o)}),Vc((o,s)=>(o.push(...s),o)),qn(null),Gc(),Ue(o=>{if(o===null)return ki(n);let s=KS(o);return jF(s),te(s)}))}processSegment(t,r,n,i,o,s){return Ye(r).pipe(ci(a=>this.processSegmentAgainstRoute(a._injector??t,r,a,n,i,o,s).pipe(Yn(l=>{if(l instanceof os)return te(null);throw l}))),cn(a=>!!a),Yn(a=>{if(zS(a))return WF(n,i,o)?te(new b_):ki(n);throw a}))}processSegmentAgainstRoute(t,r,n,i,o,s,a){return zF(n,i,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,n,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,i,r,n,o,s):ki(i):ki(i)}expandSegmentAgainstRouteUsingRedirect(t,r,n,i,o,s){let{matched:a,consumedSegments:l,positionalParamSegments:c,remainingSegments:u}=O_(r,i,o);if(!a)return ki(r);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>QF&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,c);return this.applyRedirects.lineralizeSegments(i,d).pipe(Ue(p=>this.processSegment(t,n,r,p.concat(u),s,!1)))}matchSegmentAgainstRoute(t,r,n,i,o){let s=GF(r,n,i,t,this.urlSerializer);return n.path==="**"&&(r.children={}),s.pipe(jt(a=>a.matched?(t=n._injector??t,this.getChildConfig(t,n,i).pipe(jt(({routes:l})=>{let c=n._loadedInjector??t,{consumedSegments:u,remainingSegments:d,parameters:p}=a,_=new rs(u,p,Object.freeze(k({},this.urlTree.queryParams)),this.urlTree.fragment,XF(n),Sn(n),n.component??n._loadedComponent??null,n,JF(n)),{segmentGroup:m,slicedSegments:f}=vS(r,u,d,l);if(f.length===0&&m.hasChildren())return this.processChildren(c,l,m).pipe(ge(b=>b===null?null:new Pt(_,b)));if(l.length===0&&f.length===0)return te(new Pt(_,[]));let S=Sn(n)===o;return this.processSegment(c,l,m,f,S?se:o,!0).pipe(ge(b=>new Pt(_,b instanceof Pt?[b]:[])))}))):ki(r)))}getChildConfig(t,r,n){return r.children?te({routes:r.children,injector:t}):r.loadChildren?r._loadedRoutes!==void 0?te({routes:r._loadedRoutes,injector:r._loadedInjector}):kF(t,r,n,this.urlSerializer).pipe(Ue(i=>i?this.configLoader.loadChildren(t,r).pipe(st(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):BF(r))):te({routes:[],injector:t})}};function jF(e){e.sort((t,r)=>t.value.outlet===se?-1:r.value.outlet===se?1:t.value.outlet.localeCompare(r.value.outlet))}function ZF(e){let t=e.value.routeConfig;return t&&t.path===""}function KS(e){let t=[],r=new Set;for(let n of e){if(!ZF(n)){t.push(n);continue}let i=t.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),r.add(i)):t.push(n)}for(let n of r){let i=KS(n.children);t.push(new Pt(n.value,i))}return t.filter(n=>!r.has(n))}function XF(e){return e.data||{}}function JF(e){return e.resolve||{}}function eU(e,t,r,n,i,o){return Ue(s=>KF(e,t,r,n,s.extractedUrl,i,o).pipe(ge(({state:a,tree:l})=>Ie(k({},s),{targetSnapshot:a,urlAfterRedirects:l}))))}function tU(e,t){return Ue(r=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return te(r);let o=new Set(i.map(l=>l.route)),s=new Set;for(let l of o)if(!s.has(l))for(let c of QS(l))s.add(c);let a=0;return Ye(s).pipe(ci(l=>o.has(l)?nU(l,n,e,t):(l.data=R_(l,l.parent,e).resolve,te(void 0))),st(()=>a++),ui(1),Ue(l=>a===s.size?te(r):Ot))})}function QS(e){let t=e.children.map(r=>QS(r)).flat();return[e,...t]}function nU(e,t,r,n){let i=e.routeConfig,o=e._resolve;return i?.title!==void 0&&!VS(i)&&(o[ss]=i.title),rU(o,e,t,n).pipe(ge(s=>(e._resolvedData=s,e.data=R_(e,e.parent,r).resolve,null)))}function rU(e,t,r,n){let i=Xp(e);if(i.length===0)return te({});let o={};return Ye(i).pipe(Ue(s=>iU(e[s],t,r,n).pipe(cn(),st(a=>{o[s]=a}))),ui(1),Bc(o),Yn(s=>zS(s)?Ot:oi(s)))}function iU(e,t,r,n){let i=as(t)??n,o=qi(e,i),s=o.resolve?o.resolve(t,r):Nr(i,()=>o(t,r));return rr(s)}function jp(e){return jt(t=>{let r=e(t);return r?Ye(r).pipe(ge(()=>t)):te(t)})}var jS=(()=>{let t=class t{buildTitle(n){let i,o=n.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===se);return i}getResolvedTitleForRoute(n){return n.data[ss]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:()=>w(oU),providedIn:"root"});let e=t;return e})(),oU=(()=>{let t=class t extends jS{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};t.\u0275fac=function(i){return new(i||t)(K(HE))},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),A_=new j("",{providedIn:"root",factory:()=>({})}),M_=new j(""),sU=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=w(tp)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return te(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=rr(n.loadComponent()).pipe(ge(ZS),st(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),co(()=>{this.componentLoaders.delete(n)})),o=new ni(i,()=>new Ke).pipe(ti());return this.componentLoaders.set(n,o),o}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return te({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=aU(i,this.compiler,n,this.onLoadEndListener).pipe(co(()=>{this.childrenLoaders.delete(i)})),a=new ni(s,()=>new Ke).pipe(ti());return this.childrenLoaders.set(i,a),a}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function aU(e,t,r,n){return rr(e.loadChildren()).pipe(ge(ZS),Ue(i=>i instanceof yo||Array.isArray(i)?te(i):Ye(t.compileModuleAsync(i))),ge(i=>{n&&n(e);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(r).injector,s=o.get(M_,[],{optional:!0,self:!0}).flat()),{routes:s.map(D_),injector:o}}))}function lU(e){return e&&typeof e=="object"&&"default"in e}function ZS(e){return lU(e)?e.default:e}var w_=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:()=>w(cU),providedIn:"root"});let e=t;return e})(),cU=(()=>{let t=class t{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),uU=new j("");var dU=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Ke,this.transitionAbortSubject=new Ke,this.configLoader=w(sU),this.environmentInjector=w(Ut),this.urlSerializer=w(v_),this.rootContexts=w(zl),this.location=w(Po),this.inputBindingEnabled=w(N_,{optional:!0})!==null,this.titleStrategy=w(jS),this.options=w(A_,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=w(w_),this.createViewTransition=w(uU,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>te(void 0),this.rootComponentType=null;let n=o=>this.events.next(new a_(o)),i=o=>this.events.next(new l_(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(Ie(k(k({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,o){return this.transitions=new ot({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:jo,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Qt(s=>s.id!==0),ge(s=>Ie(k({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),jt(s=>{let a=!1,l=!1;return te(s).pipe(jt(c=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",kt.SupersededByNewNavigation),Ot;this.currentTransition=s,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?Ie(k({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&d!=="reload"){let p="";return this.events.next(new qr(c.id,this.urlSerializer.serialize(c.rawUrl),p,n_.IgnoredSameUrlNavigation)),c.resolve(null),Ot}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return te(c).pipe(jt(p=>{let _=this.transitions?.getValue();return this.events.next(new Jo(p.id,this.urlSerializer.serialize(p.extractedUrl),p.source,p.restoredState)),_!==this.transitions?.getValue()?Ot:Promise.resolve(p)}),eU(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),st(p=>{s.targetSnapshot=p.targetSnapshot,s.urlAfterRedirects=p.urlAfterRedirects,this.currentNavigation=Ie(k({},this.currentNavigation),{finalUrl:p.urlAfterRedirects});let _=new Gl(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(_)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:p,extractedUrl:_,source:m,restoredState:f,extras:S}=c,b=new Jo(p,this.urlSerializer.serialize(_),m,f);this.events.next(b);let D=BS(this.rootComponentType).snapshot;return this.currentTransition=s=Ie(k({},c),{targetSnapshot:D,urlAfterRedirects:_,extras:Ie(k({},S),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=_,te(s)}else{let p="";return this.events.next(new qr(c.id,this.urlSerializer.serialize(c.extractedUrl),p,n_.IgnoredByUrlHandlingStrategy)),c.resolve(null),Ot}}),st(c=>{let u=new r_(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),ge(c=>(this.currentTransition=s=Ie(k({},c),{guards:EF(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),s)),DF(this.environmentInjector,c=>this.events.next(c)),st(c=>{if(s.guardsResult=c.guardsResult,Vi(c.guardsResult))throw YS(this.urlSerializer,c.guardsResult);let u=new i_(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(u)}),Qt(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",kt.GuardRejected),!1)),jp(c=>{if(c.guards.canActivateChecks.length)return te(c).pipe(st(u=>{let d=new o_(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}),jt(u=>{let d=!1;return te(u).pipe(tU(this.paramsInheritanceStrategy,this.environmentInjector),st({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(u,"",kt.NoDataFromResolver)}}))}),st(u=>{let d=new s_(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}))}),jp(c=>{let u=d=>{let p=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&p.push(this.configLoader.loadComponent(d.routeConfig).pipe(st(_=>{d.component=_}),ge(()=>{})));for(let _ of d.children)p.push(...u(_));return p};return Zs(u(c.targetSnapshot.root)).pipe(qn(null),Cn(1))}),jp(()=>this.afterPreactivation()),jt(()=>{let{currentSnapshot:c,targetSnapshot:u}=s,d=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return d?Ye(d).pipe(ge(()=>s)):te(s)}),ge(c=>{let u=uF(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=s=Ie(k({},c),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,s}),st(()=>{this.events.next(new ts)}),hF(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Cn(1),st({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Yr(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),uo(this.transitionAbortSubject.pipe(st(c=>{throw c}))),co(()=>{!a&&!l&&this.cancelNavigationTransition(s,"",kt.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),Yn(c=>{if(l=!0,$S(c))this.events.next(new nr(s.id,this.urlSerializer.serialize(s.extractedUrl),c.message,c.cancellationCode)),_F(c)?this.events.next(new ns(c.url)):s.resolve(!1);else{this.events.next(new es(s.id,this.urlSerializer.serialize(s.extractedUrl),c,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(c))}catch(u){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(u)}}return Ot}))}))}cancelNavigationTransition(n,i,o){let s=new nr(n.id,this.urlSerializer.serialize(n.extractedUrl),i,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function pU(e){return e!==jo}var _U=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:()=>w(mU),providedIn:"root"});let e=t;return e})(),y_=class{shouldDetach(t){return!1}store(t,r){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,r){return t.routeConfig===r.routeConfig}},mU=(()=>{let t=class t extends y_{};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=rn(t)))(o||t)}})(),t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),XS=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:()=>w(fU),providedIn:"root"});let e=t;return e})(),fU=(()=>{let t=class t extends XS{constructor(){super(...arguments),this.location=w(Po),this.urlSerializer=w(v_),this.options=w(A_,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=w(w_),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new tr,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=BS(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof Jo)this.stateMemento=this.createStateMemento();else if(n instanceof qr)this.rawUrlTree=i.initialUrl;else if(n instanceof Gl){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else n instanceof ts?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):n instanceof nr&&(n.code===kt.GuardRejected||n.code===kt.NoDataFromResolver)?this.restoreHistory(i):n instanceof es?this.restoreHistory(i,!0):n instanceof Yr&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=k(k({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=k(k({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=rn(t)))(o||t)}})(),t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Ko=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Ko||{});function gU(e,t){e.events.pipe(Qt(r=>r instanceof Yr||r instanceof nr||r instanceof es||r instanceof qr),ge(r=>r instanceof Yr||r instanceof qr?Ko.COMPLETE:(r instanceof nr?r.code===kt.Redirect||r.code===kt.SupersededByNewNavigation:!1)?Ko.REDIRECTING:Ko.FAILED),Qt(r=>r!==Ko.REDIRECTING),Cn(1)).subscribe(()=>{t()})}function hU(e){throw e}var EU={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},SU={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},JS=(()=>{let t=class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=w(il),this.stateManager=w(XS),this.options=w(A_,{optional:!0})||{},this.pendingTasks=w(Ka),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=w(dU),this.urlSerializer=w(v_),this.location=w(Po),this.urlHandlingStrategy=w(w_),this._events=new Ke,this.errorHandler=this.options.errorHandler||hU,this.navigated=!1,this.routeReuseStrategy=w(_U),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=w(M_,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!w(N_,{optional:!0}),this.eventsSubscription=new He,this.isNgZoneEnabled=w(ye)instanceof ye&&ye.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof nr&&i.code!==kt.Redirect&&i.code!==kt.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Yr)this.navigated=!0;else if(i instanceof ns){let a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),l={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||pU(o.source)};this.scheduleNavigation(a,jo,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}bU(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),jo,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)})}navigateToSyncWithBrowser(n,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let c=k({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(s.state=c)}let l=this.parseUrl(n);this.scheduleNavigation(l,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(D_),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:l,preserveFragment:c}=i,u=c?this.currentUrlTree.fragment:a,d=null;switch(l){case"merge":d=k(k({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let p;try{let _=o?o.snapshot:this.routerState.snapshot.root;p=PS(_)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),p=this.currentUrlTree.root}return kS(p,n,d,u??null)}navigateByUrl(n,i={skipLocationChange:!1}){let o=Vi(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,jo,null,i)}navigate(n,i={skipLocationChange:!1}){return TU(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let o;if(i===!0?o=k({},EU):i===!1?o=k({},SU):o=i,Vi(n))return TS(this.currentUrlTree,n,o);let s=this.parseUrl(n);return TS(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((i,[o,s])=>(s!=null&&(i[o]=s),i),{})}scheduleNavigation(n,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let l,c,u;a?(l=a.resolve,c=a.reject,u=a.promise):u=new Promise((p,_)=>{l=p,c=_});let d=this.pendingTasks.add();return gU(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(p=>Promise.reject(p))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function TU(e){for(let t=0;tr.\u0275providers)])}function yU(e){return e.routerState.root}function vU(){let e=w(An);return t=>{let r=e.get(Mi);if(t!==r.components[0])return;let n=e.get(JS),i=e.get(RU);e.get(IU)===1&&n.initialNavigation(),e.get(NU,null,ue.Optional)?.setUpPreloading(),e.get(CU,null,ue.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var RU=new j("",{factory:()=>new Ke}),IU=new j("",{providedIn:"root",factory:()=>1});var NU=new j("");var Kl={toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"],["table"]]},$i=new j("config",{providedIn:"root",factory:()=>({modules:Kl})});var tT=e=>Ri([{provide:$i,useValue:e}]);function Ql(e){e||(Tg(Ql),e=w(Ar));let t=new me(r=>e.onDestroy(r.next.bind(r)));return r=>r.pipe(uo(t))}var dT=(()=>{let t=class t{constructor(n,i){this._renderer=n,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};t.\u0275fac=function(i){return new(i||t)(P(Mt),P(ct))},t.\u0275dir=Oe({type:t});let e=t;return e})(),P_=(()=>{let t=class t extends dT{};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=rn(t)))(o||t)}})(),t.\u0275dir=Oe({type:t,features:[je]});let e=t;return e})(),ir=new j("");var DU={provide:ir,useExisting:lt(()=>pT),multi:!0};function OU(){let e=fn()?fn().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var AU=new j(""),pT=(()=>{let t=class t extends dT{constructor(n,i,o){super(n,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!OU())}writeValue(n){let i=n??"";this.setProperty("value",i)}_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)}};t.\u0275fac=function(i){return new(i||t)(P(Mt),P(ct),P(AU,8))},t.\u0275dir=Oe({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){i&1&&Ee("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[It([DU]),je]});let e=t;return e})();function MU(e){return e==null||(typeof e=="string"||Array.isArray(e))&&e.length===0}var Tn=new j(""),$r=new j("");function wU(e){return MU(e.value)?{required:!0}:null}function nT(e){return null}function _T(e){return e!=null}function mT(e){return Lr(e)?Ye(e):e}function fT(e){let t={};return e.forEach(r=>{t=r!=null?k(k({},t),r):t}),Object.keys(t).length===0?null:t}function gT(e,t){return t.map(r=>r(e))}function xU(e){return!e.validate}function hT(e){return e.map(t=>xU(t)?t:r=>t.validate(r))}function LU(e){if(!e)return null;let t=e.filter(_T);return t.length==0?null:function(r){return fT(gT(r,t))}}function k_(e){return e!=null?LU(hT(e)):null}function PU(e){if(!e)return null;let t=e.filter(_T);return t.length==0?null:function(r){let n=gT(r,t).map(mT);return Uc(n).pipe(ge(fT))}}function F_(e){return e!=null?PU(hT(e)):null}function rT(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function ET(e){return e._rawValidators}function ST(e){return e._rawAsyncValidators}function x_(e){return e?Array.isArray(e)?e:[e]:[]}function Zl(e,t){return Array.isArray(e)?e.includes(t):e===t}function iT(e,t){let r=x_(t);return x_(e).forEach(i=>{Zl(r,i)||r.push(i)}),r}function oT(e,t){return x_(t).filter(r=>!Zl(e,r))}var Xl=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=k_(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=F_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,r){return this.control?this.control.hasError(t,r):!1}getError(t,r){return this.control?this.control.getError(t,r):null}},St=class extends Xl{get formDirective(){return null}get path(){return null}},Fn=class extends Xl{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Jl=class{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},kU={"[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"},I4=Ie(k({},kU),{"[class.ng-submitted]":"isSubmitted"}),Be=(()=>{let t=class t extends Jl{constructor(n){super(n)}};t.\u0275fac=function(i){return new(i||t)(P(Fn,2))},t.\u0275dir=Oe({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&Za("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[je]});let e=t;return e})(),Qi=(()=>{let t=class t extends Jl{constructor(n){super(n)}};t.\u0275fac=function(i){return new(i||t)(P(St,10))},t.\u0275dir=Oe({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){i&2&&Za("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[je]});let e=t;return e})();var cs="VALID",jl="INVALID",zi="PENDING",us="DISABLED";function U_(e){return(rc(e)?e.validators:e)||null}function FU(e){return Array.isArray(e)?k_(e):e||null}function B_(e,t){return(rc(t)?t.asyncValidators:e)||null}function UU(e){return Array.isArray(e)?F_(e):e||null}function rc(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function TT(e,t,r){let n=e.controls;if(!(t?Object.keys(n):n).length)throw new N(1e3,"");if(!n[r])throw new N(1001,"")}function bT(e,t,r){e._forEachChild((n,i)=>{if(r[i]===void 0)throw new N(1002,"")})}var Wi=class{constructor(t,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===cs}get invalid(){return this.status===jl}get pending(){return this.status==zi}get disabled(){return this.status===us}get enabled(){return this.status!==us}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(iT(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(iT(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(oT(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(oT(t,this._rawAsyncValidators))}hasValidator(t){return Zl(this._rawValidators,t)}hasAsyncValidator(t){return Zl(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(r=>{r.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=zi,t.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){let r=this._parentMarkedDirty(t.onlySelf);this.status=us,this.errors=null,this._forEachChild(n=>{n.disable(Ie(k({},t),{onlySelf:!0}))}),this._updateValue(),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Ie(k({},t),{skipPristineCheck:r})),this._onDisabledChange.forEach(n=>n(!0))}enable(t={}){let r=this._parentMarkedDirty(t.onlySelf);this.status=cs,this._forEachChild(n=>{n.enable(Ie(k({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Ie(k({},t),{skipPristineCheck:r})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===cs||this.status===zi)&&this._runAsyncValidator(t.emitEvent)),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?us:cs}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=zi,this._hasOwnPendingAsyncValidator=!0;let r=mT(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,r={}){this.errors=t,this._updateControlsErrors(r.emitEvent!==!1)}get(t){let r=t;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((n,i)=>n&&n._find(i),this)}getError(t,r){let n=r?this.get(r):this;return n&&n.errors?n.errors[t]:null}hasError(t,r){return!!this.getError(t,r)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Ce,this.statusChanges=new Ce}_calculateStatus(){return this._allControlsDisabled()?us:this.errors?jl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(zi)?zi:this._anyControlsHaveStatus(jl)?jl:cs}_anyControlsHaveStatus(t){return this._anyControls(r=>r.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){rc(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let r=this._parent&&this._parent.dirty;return!t&&!!r&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=FU(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=UU(this._rawAsyncValidators)}},Ki=class extends Wi{constructor(t,r,n){super(U_(r),B_(n,r)),this.controls=t,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,r){return this.controls[t]?this.controls[t]:(this.controls[t]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(t,r,n={}){this.registerControl(t,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(t,r,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],r&&this.registerControl(t,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,r={}){bT(this,!0,t),Object.keys(t).forEach(n=>{TT(this,!0,n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(t,r={}){t!=null&&(Object.keys(t).forEach(n=>{let i=this.controls[n];i&&i.patchValue(t[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(t={},r={}){this._forEachChild((n,i)=>{n.reset(t?t[i]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r),this._updateTouched(r),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(t,r,n)=>(t[n]=r.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(r,n)=>n._syncPendingControls()?!0:r);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(r=>{let n=this.controls[r];n&&t(n,r)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[r,n]of Object.entries(this.controls))if(this.contains(r)&&t(n))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(r,n,i)=>((n.enabled||this.disabled)&&(r[i]=n.value),r))}_reduceChildren(t,r){let n=t;return this._forEachChild((i,o)=>{n=r(n,i,o)}),n}_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 L_=class extends Ki{};var ji=new j("CallSetDisabledState",{providedIn:"root",factory:()=>ic}),ic="always";function oc(e,t){return[...t.path,e]}function ps(e,t,r=ic){G_(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||r==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),GU(e,t),HU(e,t),VU(e,t),BU(e,t)}function ec(e,t,r=!0){let n=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),nc(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function tc(e,t){e.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(t)})}function BU(e,t){if(t.valueAccessor.setDisabledState){let r=n=>{t.valueAccessor.setDisabledState(n)};e.registerOnDisabledChange(r),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(r)})}}function G_(e,t){let r=ET(e);t.validator!==null?e.setValidators(rT(r,t.validator)):typeof r=="function"&&e.setValidators([r]);let n=ST(e);t.asyncValidator!==null?e.setAsyncValidators(rT(n,t.asyncValidator)):typeof n=="function"&&e.setAsyncValidators([n]);let i=()=>e.updateValueAndValidity();tc(t._rawValidators,i),tc(t._rawAsyncValidators,i)}function nc(e,t){let r=!1;if(e!==null){if(t.validator!==null){let i=ET(e);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==t.validator);o.length!==i.length&&(r=!0,e.setValidators(o))}}if(t.asyncValidator!==null){let i=ST(e);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==t.asyncValidator);o.length!==i.length&&(r=!0,e.setAsyncValidators(o))}}}let n=()=>{};return tc(t._rawValidators,n),tc(t._rawAsyncValidators,n),r}function GU(e,t){t.valueAccessor.registerOnChange(r=>{e._pendingValue=r,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&CT(e,t)})}function VU(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&CT(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function CT(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function HU(e,t){let r=(n,i)=>{t.valueAccessor.writeValue(n),i&&t.viewToModelUpdate(n)};e.registerOnChange(r),t._registerOnDestroy(()=>{e._unregisterOnChange(r)})}function yT(e,t){e==null,G_(e,t)}function YU(e,t){return nc(e,t)}function V_(e,t){if(!e.hasOwnProperty("model"))return!1;let r=e.model;return r.isFirstChange()?!0:!Object.is(t,r.currentValue)}function qU(e){return Object.getPrototypeOf(e.constructor)===P_}function vT(e,t){e._syncPendingControls(),t.forEach(r=>{let n=r.control;n.updateOn==="submit"&&n._pendingChange&&(r.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function H_(e,t){if(!t)return null;Array.isArray(t);let r,n,i;return t.forEach(o=>{o.constructor===pT?r=o:qU(o)?n=o:i=o}),i||n||r||null}function $U(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var zU={provide:St,useExisting:lt(()=>Y_)},ds=Promise.resolve(),Y_=(()=>{let t=class t extends St{constructor(n,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ce,this.form=new Ki({},k_(n),F_(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){ds.then(()=>{let i=this._findContainer(n.path);n.control=i.registerControl(n.name,n.control),ps(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){ds.then(()=>{let i=this._findContainer(n.path);i&&i.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){ds.then(()=>{let i=this._findContainer(n.path),o=new Ki({});yT(o,n),i.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){ds.then(()=>{let i=this._findContainer(n.path);i&&i.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,i){ds.then(()=>{this.form.get(n.path).setValue(i)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,vT(this.form,this._directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}};t.\u0275fac=function(i){return new(i||t)(P(Tn,10),P($r,10),P(ji,8))},t.\u0275dir=Oe({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){i&1&&Ee("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[F.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[It([zU]),je]});let e=t;return e})();function sT(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}function aT(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var Et=class extends Wi{constructor(t=null,r,n){super(U_(r),B_(n,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),rc(r)&&(r.nonNullable||r.initialValueIsDefault)&&(aT(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,r={}){this.value=this._pendingValue=t,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(t,r={}){this.setValue(t,r)}reset(t=this.defaultValue,r={}){this._applyFormState(t),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){sT(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){sT(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){aT(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 WU=e=>e instanceof Et,KU=(()=>{let t=class t extends St{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return oc(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=rn(t)))(o||t)}})(),t.\u0275dir=Oe({type:t,features:[je]});let e=t;return e})();var QU={provide:Fn,useExisting:lt(()=>Je)},lT=Promise.resolve(),Je=(()=>{let t=class t extends Fn{constructor(n,i,o,s,a,l){super(),this._changeDetectorRef=a,this.callSetDisabledState=l,this.control=new Et,this._registered=!1,this.name="",this.update=new Ce,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=H_(this,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let i=n.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),V_(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(){ps(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){lT.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let i=n.isDisabled.currentValue,o=i!==0&&Lo(i);lT.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?oc(n,this._parent):[n]}};t.\u0275fac=function(i){return new(i||t)(P(St,9),P(Tn,10),P($r,10),P(ir,10),P(Pn,8),P(ji,8))},t.\u0275dir=Oe({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[F.None,"disabled","isDisabled"],model:[F.None,"ngModel","model"],options:[F.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[It([QU]),je,vt]});let e=t;return e})(),Zi=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=Oe({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let e=t;return e})();var q_=new j(""),jU={provide:Fn,useExisting:lt(()=>$_)},$_=(()=>{let t=class t extends Fn{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new Ce,this._ngModelWarningSent=!1,this._setValidators(n),this._setAsyncValidators(i),this.valueAccessor=H_(this,o)}ngOnChanges(n){if(this._isControlChanged(n)){let i=n.form.previousValue;i&&ec(i,this,!1),ps(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}V_(n,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&ec(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_isControlChanged(n){return n.hasOwnProperty("form")}};t._ngModelWarningSentOnce=!1,t.\u0275fac=function(i){return new(i||t)(P(Tn,10),P($r,10),P(ir,10),P(q_,8),P(ji,8))},t.\u0275dir=Oe({type:t,selectors:[["","formControl",""]],inputs:{form:[F.None,"formControl","form"],isDisabled:[F.None,"disabled","isDisabled"],model:[F.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[It([jU]),je,vt]});let e=t;return e})(),ZU={provide:St,useExisting:lt(()=>or)},or=(()=>{let t=class t extends St{constructor(n,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ce,this._setValidators(n),this._setAsyncValidators(i)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(nc(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 i=this.form.get(n.path);return ps(i,n,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),i}getControl(n){return this.form.get(n.path)}removeControl(n){ec(n.control||null,n,!1),$U(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,i){this.form.get(n.path).setValue(i)}onSubmit(n){return this.submitted=!0,vT(this.form,this.directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_updateDomValue(){this.directives.forEach(n=>{let i=n.control,o=this.form.get(n.path);i!==o&&(ec(i||null,n),WU(o)&&(ps(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let i=this.form.get(n.path);yT(i,n),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let i=this.form.get(n.path);i&&YU(i,n)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){G_(this.form,this),this._oldForm&&nc(this._oldForm,this)}_checkFormPresent(){this.form}};t.\u0275fac=function(i){return new(i||t)(P(Tn,10),P($r,10),P(ji,8))},t.\u0275dir=Oe({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,o){i&1&&Ee("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[F.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[It([ZU]),je,vt]});let e=t;return e})(),XU={provide:St,useExisting:lt(()=>sc)},sc=(()=>{let t=class t extends KU{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}_checkParentType(){RT(this._parent)}};t.\u0275fac=function(i){return new(i||t)(P(St,13),P(Tn,10),P($r,10))},t.\u0275dir=Oe({type:t,selectors:[["","formGroupName",""]],inputs:{name:[F.None,"formGroupName","name"]},features:[It([XU]),je]});let e=t;return e})(),JU={provide:St,useExisting:lt(()=>ac)},ac=(()=>{let t=class t extends St{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return oc(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){RT(this._parent)}};t.\u0275fac=function(i){return new(i||t)(P(St,13),P(Tn,10),P($r,10))},t.\u0275dir=Oe({type:t,selectors:[["","formArrayName",""]],inputs:{name:[F.None,"formArrayName","name"]},features:[It([JU]),je]});let e=t;return e})();function RT(e){return!(e instanceof sc)&&!(e instanceof or)&&!(e instanceof ac)}var eB={provide:Fn,useExisting:lt(()=>zr)},zr=(()=>{let t=class t extends Fn{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new Ce,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=H_(this,s)}ngOnChanges(n){this._added||this._setUpControl(),V_(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 oc(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};t._ngModelWarningSentOnce=!1,t.\u0275fac=function(i){return new(i||t)(P(St,13),P(Tn,10),P($r,10),P(ir,10),P(q_,8))},t.\u0275dir=Oe({type:t,selectors:[["","formControlName",""]],inputs:{name:[F.None,"formControlName","name"],isDisabled:[F.None,"disabled","isDisabled"],model:[F.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[It([eB]),je,vt]});let e=t;return e})(),tB={provide:ir,useExisting:lt(()=>NT),multi:!0};function IT(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function nB(e){return e.split(":")[0]}var NT=(()=>{let t=class t extends P_{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let i=this._getOptionId(n),o=IT(i,n);this.setProperty("value",o)}registerOnChange(n){this.onChange=i=>{this.value=this._getOptionValue(i),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),n))return i;return null}_getOptionValue(n){let i=nB(n);return this._optionMap.has(i)?this._optionMap.get(i):n}};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=rn(t)))(o||t)}})(),t.\u0275dir=Oe({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(i,o){i&1&&Ee("change",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[It([tB]),je]});let e=t;return e})(),DT=(()=>{let t=class t{constructor(n,i,o){this._element=n,this._renderer=i,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(IT(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))}};t.\u0275fac=function(i){return new(i||t)(P(ct),P(Mt),P(NT,9))},t.\u0275dir=Oe({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let e=t;return e})(),rB={provide:ir,useExisting:lt(()=>OT),multi:!0};function cT(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function iB(e){return e.split(":")[0]}var OT=(()=>{let t=class t extends P_{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let i;if(Array.isArray(n)){let o=n.map(s=>this._getOptionId(s));i=(s,a)=>{s._setSelected(o.indexOf(a.toString())>-1)}}else i=(o,s)=>{o._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(n){this.onChange=i=>{let o=[],s=i.selectedOptions;if(s!==void 0){let a=s;for(let l=0;l{let n;return function(o){return(n||(n=rn(t)))(o||t)}})(),t.\u0275dir=Oe({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(i,o){i&1&&Ee("change",function(a){return o.onChange(a.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[It([rB]),je]});let e=t;return e})(),AT=(()=>{let t=class t{constructor(n,i,o){this._element=n,this._renderer=i,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(cT(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(cT(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))}};t.\u0275fac=function(i){return new(i||t)(P(ct),P(Mt),P(OT,9))},t.\u0275dir=Oe({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let e=t;return e})();var oB=(()=>{let t=class t{constructor(){this._validator=nT}ngOnChanges(n){if(this.inputName in n){let i=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):nT,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=Oe({type:t,features:[vt]});let e=t;return e})();var sB={provide:Tn,useExisting:lt(()=>ms),multi:!0};var ms=(()=>{let t=class t extends oB{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Lo,this.createValidator=n=>wU}enabled(n){return n}};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=rn(t)))(o||t)}})(),t.\u0275dir=Oe({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,o){i&2&&Qa("required",o._enabled?"":null)},inputs:{required:"required"},features:[It([sB]),je]});let e=t;return e})();var MT=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=mt({type:t}),t.\u0275inj=_t({});let e=t;return e})(),_s=class extends Wi{constructor(t,r,n){super(U_(r),B_(n,r)),this.controls=t,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,r={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}insert(t,r,n={}){this.controls.splice(t,0,r),this._registerControl(r),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,r={}){let n=this._adjustIndex(t);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:r.emitEvent})}setControl(t,r,n={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),r&&(this.controls.splice(i,0,r),this._registerControl(r)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,r={}){bT(this,!1,t),t.forEach((n,i)=>{TT(this,!1,i),this.at(i).setValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(t,r={}){t!=null&&(t.forEach((n,i)=>{this.at(i)&&this.at(i).patchValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(t=[],r={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r),this._updateTouched(r),this.updateValueAndValidity(r)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(r=>r._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((r,n)=>n._syncPendingControls()?!0:r,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((r,n)=>{t(r,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(r=>r.enabled&&t(r))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};function uT(e){return!!e&&(e.asyncValidators!==void 0||e.validators!==void 0||e.updateOn!==void 0)}var sr=(()=>{let t=class t{constructor(){this.useNonNullable=!1}get nonNullable(){let n=new t;return n.useNonNullable=!0,n}group(n,i=null){let o=this._reduceControls(n),s={};return uT(i)?s=i:i!==null&&(s.validators=i.validator,s.asyncValidators=i.asyncValidator),new Ki(o,s)}record(n,i=null){let o=this._reduceControls(n);return new L_(o,i)}control(n,i,o){let s={};return this.useNonNullable?(uT(i)?s=i:(s.validators=i,s.asyncValidators=o),new Et(n,Ie(k({},s),{nonNullable:!0}))):new Et(n,i,o)}array(n,i,o){let s=n.map(a=>this._createControl(a));return new _s(s,i,o)}_reduceControls(n){let i={};return Object.keys(n).forEach(o=>{i[o]=this._createControl(n[o])}),i}_createControl(n){if(n instanceof Et)return n;if(n instanceof Wi)return n;if(Array.isArray(n)){let i=n[0],o=n.length>1?n[1]:null,s=n.length>2?n[2]:null;return this.control(i,o,s)}else return this.control(n)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var ze=(()=>{let t=class t{static withConfig(n){return{ngModule:t,providers:[{provide:ji,useValue:n.callSetDisabledState??ic}]}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=mt({type:t}),t.\u0275inj=_t({imports:[MT]});let e=t;return e})(),ar=(()=>{let t=class t{static withConfig(n){return{ngModule:t,providers:[{provide:q_,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:ji,useValue:n.callSetDisabledState??ic}]}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=mt({type:t}),t.\u0275inj=_t({imports:[MT]});let e=t;return e})();var aB=[[["","above-quill-editor-toolbar",""]],[["","quill-editor-toolbar",""]],[["","below-quill-editor-toolbar",""]]],lB=["[above-quill-editor-toolbar]","[quill-editor-toolbar]","[below-quill-editor-toolbar]"];function cB(e,t){e&1&&de(0,"div",0)}function uB(e,t){e&1&&de(0,"div",0)}var fs=(e,t)=>e||t||"html",wT=()=>new me(e=>{let t=requestAnimationFrame(()=>{e.next(),e.complete()});return()=>cancelAnimationFrame(t)}),z_=(()=>{let t=class t{constructor(n,i){this.config=i,this.quill$=li(()=>vs(this,null,function*(){if(!this.Quill){let o=this.document.addEventListener;this.document.addEventListener=this.document.__zone_symbol__addEventListener||this.document.addEventListener;let s=yield import("./chunk-OSF2O467.js");this.document.addEventListener=o,this.Quill=s.default?.default??s.default??s}return this.config.customOptions?.forEach(o=>{let s=this.Quill.import(o.import);s.whitelist=o.whitelist,this.Quill.register(s,!0,this.config.suppressGlobalRegisterWarning)}),yield this.registerCustomModules(this.Quill,this.config.customModules,this.config.suppressGlobalRegisterWarning)})).pipe(Yc({bufferSize:1,refCount:!0})),this.document=n.get(rt),this.config||(this.config={modules:Kl})}getQuill(){return this.quill$}registerCustomModules(n,i,o){return vs(this,null,function*(){if(Array.isArray(i))for(let{implementation:s,path:a}of i)lo(s)&&(s=yield kc(s)),n.register(a,s,o);return n})}};t.\u0275fac=function(i){return new(i||t)(K(An),K($i,8))},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),dB=(()=>{let t=class t{constructor(){this.format=ee(void 0),this.theme=ee(void 0),this.modules=ee(void 0),this.debug=ee(!1),this.readOnly=ee(!1),this.placeholder=ee(void 0),this.maxLength=ee(void 0),this.minLength=ee(void 0),this.required=ee(!1),this.formats=ee(void 0),this.customToolbarPosition=ee("top"),this.sanitize=ee(!1),this.beforeRender=ee(void 0),this.styles=ee(null),this.registry=ee(void 0),this.bounds=ee(void 0),this.customOptions=ee([]),this.customModules=ee([]),this.trackChanges=ee(void 0),this.classes=ee(void 0),this.trimOnValidation=ee(!1),this.linkPlaceholder=ee(void 0),this.compareValues=ee(!1),this.filterNull=ee(!1),this.debounceTime=ee(void 0),this.defaultEmptyValue=ee(null),this.onEditorCreated=new Ce,this.onEditorChanged=new Ce,this.onContentChanged=new Ce,this.onSelectionChanged=new Ce,this.onFocus=new Ce,this.onBlur=new Ce,this.onNativeFocus=new Ce,this.onNativeBlur=new Ce,this.disabled=!1,this.toolbarPosition=Mo("top"),this.subscription=null,this.quillSubscription=null,this.elementRef=w(ct),this.document=w(rt),this.cd=w(Pn),this.domSanitizer=w(Xn),this.platformId=w(Mn),this.renderer=w(Mt),this.zone=w(ye),this.service=w(z_),this.destroyRef=w(Ar),this.valueGetter=ee(n=>{let i=n.getSemanticHTML();this.isEmptyValue(i)&&(i=this.defaultEmptyValue());let o=i,s=fs(this.format(),this.service.config.format);if(s==="text")o=n.getText();else if(s==="object")o=n.getContents();else if(s==="json")try{o=JSON.stringify(n.getContents())}catch{o=n.getText()}return o}),this.valueSetter=ee((n,i)=>{let o=fs(this.format(),this.service.config.format);if(o==="html")return([!0,!1].includes(this.sanitize())?this.sanitize():this.service.config.sanitize||!1)&&(i=this.domSanitizer.sanitize(Vt.HTML,i)),n.clipboard.convert({html:i});if(o==="json")try{return JSON.parse(i)}catch{return[{insert:i}]}return i}),this.selectionChangeHandler=(n,i,o)=>{let s=this.trackChanges()||this.service.config.trackChanges,a=!n&&!!this.onModelTouched&&(o==="user"||s&&s==="all");!this.onBlur.observed&&!this.onFocus.observed&&!this.onSelectionChanged.observed&&!a||this.zone.run(()=>{n===null?this.onBlur.emit({editor:this.quillEditor,source:o}):i===null&&this.onFocus.emit({editor:this.quillEditor,source:o}),this.onSelectionChanged.emit({editor:this.quillEditor,oldRange:i,range:n,source:o}),a&&this.onModelTouched(),this.cd.markForCheck()})},this.textChangeHandler=(n,i,o)=>{let s=this.quillEditor.getText(),a=this.quillEditor.getContents(),l=this.quillEditor.getSemanticHTML();this.isEmptyValue(l)&&(l=this.defaultEmptyValue());let c=this.trackChanges()||this.service.config.trackChanges,u=(o==="user"||c&&c==="all")&&!!this.onModelChange;!this.onContentChanged.observed&&!u||this.zone.run(()=>{if(u){let d=this.valueGetter();this.onModelChange(d(this.quillEditor))}this.onContentChanged.emit({content:a,delta:n,editor:this.quillEditor,html:l,oldDelta:i,source:o,text:s}),this.cd.markForCheck()})},this.editorChangeHandler=(n,i,o,s)=>{if(this.onEditorChanged.observed)if(n==="text-change"){let a=this.quillEditor.getText(),l=this.quillEditor.getContents(),c=this.quillEditor.getSemanticHTML();this.isEmptyValue(c)&&(c=this.defaultEmptyValue()),this.zone.run(()=>{this.onEditorChanged.emit({content:l,delta:i,editor:this.quillEditor,event:n,html:c,oldDelta:o,source:s,text:a}),this.cd.markForCheck()})}else this.zone.run(()=>{this.onEditorChanged.emit({editor:this.quillEditor,event:n,oldRange:o,range:i,source:s}),this.cd.markForCheck()})}}static normalizeClassNames(n){return n.trim().split(" ").reduce((o,s)=>{let a=s.trim();return a&&o.push(a),o},[])}ngOnInit(){this.toolbarPosition.set(this.customToolbarPosition())}ngAfterViewInit(){wi(this.platformId)||(this.quillSubscription=this.service.getQuill().pipe(Ue(n=>{let i=[this.service.registerCustomModules(n,this.customModules())],o=this.beforeRender()??this.service.config.beforeRender;return o&&i.push(o()),Promise.all(i).then(()=>n)})).subscribe(n=>{this.editorElem=this.elementRef.nativeElement.querySelector("[quill-editor-element]");let i=this.elementRef.nativeElement.querySelector("[quill-editor-toolbar]"),o=Object.assign({},this.modules()||this.service.config.modules);i?o.toolbar=i:o.toolbar===void 0&&(o.toolbar=Kl.toolbar);let s=this.placeholder()!==void 0?this.placeholder():this.service.config.placeholder;s===void 0&&(s="Insert text here ...");let a=this.styles();a&&Object.keys(a).forEach(_=>{this.renderer.setStyle(this.editorElem,_,a[_])}),this.classes()&&this.addClasses(this.classes()),this.customOptions().forEach(_=>{let m=n.import(_.import);m.whitelist=_.whitelist,n.register(m,!0)});let l=this.bounds()&&this.bounds()==="self"?this.editorElem:this.bounds();l||(l=this.service.config.bounds?this.service.config.bounds:this.document.body);let c=this.debug();!c&&c!==!1&&this.service.config.debug&&(c=this.service.config.debug);let u=this.readOnly();!u&&this.readOnly()!==!1&&(u=this.service.config.readOnly!==void 0?this.service.config.readOnly:!1);let d=this.defaultEmptyValue;this.service.config.hasOwnProperty("defaultEmptyValue")&&(d=this.service.config.defaultEmptyValue);let p=this.formats();if(!p&&p===void 0&&(p=this.service.config.formats?[...this.service.config.formats]:this.service.config.formats===null?null:void 0),this.zone.runOutsideAngular(()=>{if(this.quillEditor=new n(this.editorElem,{bounds:l,debug:c,formats:p,modules:o,placeholder:s,readOnly:u,defaultEmptyValue:d,registry:this.registry(),theme:this.theme()||(this.service.config.theme?this.service.config.theme:"snow")}),this.onNativeBlur.observed&&(this.quillEditor.scroll.domNode.addEventListener("blur",()=>this.onNativeBlur.next({editor:this.quillEditor,source:"dom"})),this.quillEditor.getModule("toolbar").container?.addEventListener("mousedown",m=>m.preventDefault())),this.onNativeFocus.observed&&this.quillEditor.scroll.domNode.addEventListener("focus",()=>this.onNativeFocus.next({editor:this.quillEditor,source:"dom"})),this.linkPlaceholder()){let m=this.quillEditor?.theme?.tooltip?.root?.querySelector("input[data-link]");m?.dataset&&(m.dataset.link=this.linkPlaceholder())}}),this.content){if(fs(this.format(),this.service.config.format)==="text")this.quillEditor.setText(this.content,"silent");else{let S=this.valueSetter()(this.quillEditor,this.content);this.quillEditor.setContents(S,"silent")}this.quillEditor.getModule("history").clear()}this.setDisabledState(),this.addQuillEventListeners(),!(!this.onEditorCreated.observed&&!this.onValidatorChanged)&&wT().pipe(Ql(this.destroyRef)).subscribe(()=>{this.onValidatorChanged&&this.onValidatorChanged(),this.onEditorCreated.emit(this.quillEditor)})}))}ngOnDestroy(){this.dispose(),this.quillSubscription?.unsubscribe(),this.quillSubscription=null}ngOnChanges(n){if(this.quillEditor){if(n.readOnly&&this.quillEditor.enable(!n.readOnly.currentValue),n.placeholder&&(this.quillEditor.root.dataset.placeholder=n.placeholder.currentValue),n.defaultEmptyValue&&(this.quillEditor.root.dataset.defaultEmptyValue=n.defaultEmptyValue.currentValue),n.styles){let i=n.styles.currentValue,o=n.styles.previousValue;o&&Object.keys(o).forEach(s=>{this.renderer.removeStyle(this.editorElem,s)}),i&&Object.keys(i).forEach(s=>{this.renderer.setStyle(this.editorElem,s,this.styles()[s])})}if(n.classes){let i=n.classes.currentValue,o=n.classes.previousValue;o&&this.removeClasses(o),i&&this.addClasses(i)}n.debounceTime&&this.addQuillEventListeners()}}addClasses(n){t.normalizeClassNames(n).forEach(i=>{this.renderer.addClass(this.editorElem,i)})}removeClasses(n){t.normalizeClassNames(n).forEach(i=>{this.renderer.removeClass(this.editorElem,i)})}writeValue(n){if(this.filterNull()&&n===null||(this.content=n,!this.quillEditor))return;let i=fs(this.format(),this.service.config.format),s=this.valueSetter()(this.quillEditor,n);if(this.compareValues()){let a=this.quillEditor.getContents();if(JSON.stringify(a)===JSON.stringify(s))return}if(n){i==="text"?this.quillEditor.setText(n):this.quillEditor.setContents(s);return}this.quillEditor.setText("")}setDisabledState(n=this.disabled){this.disabled=n,this.quillEditor&&(n?(this.quillEditor.disable(),this.renderer.setAttribute(this.elementRef.nativeElement,"disabled","disabled")):(this.readOnly()||this.quillEditor.enable(),this.renderer.removeAttribute(this.elementRef.nativeElement,"disabled")))}registerOnChange(n){this.onModelChange=n}registerOnTouched(n){this.onModelTouched=n}registerOnValidatorChange(n){this.onValidatorChanged=n}validate(){if(!this.quillEditor)return null;let n={},i=!0,o=this.quillEditor.getText(),s=this.trimOnValidation()?o.trim().length:o.length===1&&o.trim().length===0?0:o.length-1,a=this.quillEditor.getContents().ops,l=!!a&&a.length===1&&[` +`,""].includes(a[0].insert?.toString());return this.minLength()&&s&&sthis.maxLength()&&(n.maxLengthError={given:s,maxLength:this.maxLength()},i=!1),this.required()&&!s&&l&&(n.requiredError={empty:!0},i=!1),i?null:n}addQuillEventListeners(){this.dispose(),this.zone.runOutsideAngular(()=>{this.subscription=new He,this.subscription.add(_r(this.quillEditor,"selection-change").subscribe(([o,s,a])=>{this.selectionChangeHandler(o,s,a)}));let n=_r(this.quillEditor,"text-change"),i=_r(this.quillEditor,"editor-change");typeof this.debounceTime()=="number"&&(n=n.pipe(mr(this.debounceTime())),i=i.pipe(mr(this.debounceTime()))),this.subscription.add(n.subscribe(([o,s,a])=>{this.textChangeHandler(o,s,a)})),this.subscription.add(i.subscribe(([o,s,a,l])=>{this.editorChangeHandler(o,s,a,l)}))})}dispose(){this.subscription!==null&&(this.subscription.unsubscribe(),this.subscription=null)}isEmptyValue(n){return n==="

"||n==="
"||n==="


"||n==="

"}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=Oe({type:t,inputs:{format:[F.SignalBased,"format"],theme:[F.SignalBased,"theme"],modules:[F.SignalBased,"modules"],debug:[F.SignalBased,"debug"],readOnly:[F.SignalBased,"readOnly"],placeholder:[F.SignalBased,"placeholder"],maxLength:[F.SignalBased,"maxLength"],minLength:[F.SignalBased,"minLength"],required:[F.SignalBased,"required"],formats:[F.SignalBased,"formats"],customToolbarPosition:[F.SignalBased,"customToolbarPosition"],sanitize:[F.SignalBased,"sanitize"],beforeRender:[F.SignalBased,"beforeRender"],styles:[F.SignalBased,"styles"],registry:[F.SignalBased,"registry"],bounds:[F.SignalBased,"bounds"],customOptions:[F.SignalBased,"customOptions"],customModules:[F.SignalBased,"customModules"],trackChanges:[F.SignalBased,"trackChanges"],classes:[F.SignalBased,"classes"],trimOnValidation:[F.SignalBased,"trimOnValidation"],linkPlaceholder:[F.SignalBased,"linkPlaceholder"],compareValues:[F.SignalBased,"compareValues"],filterNull:[F.SignalBased,"filterNull"],debounceTime:[F.SignalBased,"debounceTime"],defaultEmptyValue:[F.SignalBased,"defaultEmptyValue"],valueGetter:[F.SignalBased,"valueGetter"],valueSetter:[F.SignalBased,"valueSetter"]},outputs:{onEditorCreated:"onEditorCreated",onEditorChanged:"onEditorChanged",onContentChanged:"onContentChanged",onSelectionChanged:"onSelectionChanged",onFocus:"onFocus",onBlur:"onBlur",onNativeFocus:"onNativeFocus",onNativeBlur:"onNativeBlur"},features:[vt]});let e=t;return e})(),Se=(()=>{let t=class t extends dB{};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=rn(t)))(o||t)}})(),t.\u0275cmp=X({type:t,selectors:[["quill-editor"]],standalone:!0,features:[It([{multi:!0,provide:ir,useExisting:lt(()=>t)},{multi:!0,provide:Tn,useExisting:lt(()=>t)}]),je,oe],ngContentSelectors:lB,decls:5,vars:2,consts:[["quill-editor-element",""]],template:function(i,o){i&1&&(uE(aB),Zn(0,cB,1,0,"div",0),el(1),el(2,1),el(3,2),Zn(4,uB,1,0,"div",0)),i&2&&(wo(0,o.toolbarPosition()!=="top"?0:-1),G(4),wo(4,o.toolbarPosition()==="top"?4:-1))},styles:["[_nghost-%COMP%]{display:inline-block}"]});let e=t;return e})(),lc=(()=>{let t=class t{constructor(n,i){this.sanitizer=n,this.service=i,this.content=ee(""),this.theme=ee(void 0),this.sanitize=ee(!1),this.innerHTML=Mo(""),this.themeClass=Mo("ql-snow")}ngOnChanges(n){if(n.theme){let i=n.theme.currentValue||(this.service.config.theme?this.service.config.theme:"snow");this.themeClass.set(`ql-${i} ngx-quill-view-html`)}else if(!this.theme()){let i=this.service.config.theme?this.service.config.theme:"snow";this.themeClass.set(`ql-${i} ngx-quill-view-html`)}if(n.content){let i=n.content.currentValue,s=([!0,!1].includes(this.sanitize())?this.sanitize():this.service.config.sanitize||!1)?i:this.sanitizer.bypassSecurityTrustHtml(i);this.innerHTML.set(s)}}};t.\u0275fac=function(i){return new(i||t)(P(Xn),P(z_))},t.\u0275cmp=X({type:t,selectors:[["quill-view-html"]],inputs:{content:[F.SignalBased,"content"],theme:[F.SignalBased,"theme"],sanitize:[F.SignalBased,"sanitize"]},standalone:!0,features:[vt,oe],decls:2,vars:2,consts:[[1,"ql-container",3,"ngClass"],[1,"ql-editor",3,"innerHTML"]],template:function(i,o){i&1&&(v(0,"div",0),de(1,"div",1),R()),i&2&&(ie("ngClass",o.themeClass()),G(),ie("innerHTML",o.innerHTML(),Ha))},dependencies:[AE],styles:[`.ql-container.ngx-quill-view-html{border:0} `],encapsulation:2});let e=t;return e})(),xT=(()=>{let t=class t{constructor(n,i,o,s,a,l){this.elementRef=n,this.renderer=i,this.zone=o,this.service=s,this.domSanitizer=a,this.platformId=l,this.format=ee(void 0),this.theme=ee(void 0),this.modules=ee(void 0),this.debug=ee(!1),this.formats=ee(void 0),this.sanitize=ee(!1),this.beforeRender=ee(void 0),this.strict=ee(!0),this.content=ee(),this.customModules=ee([]),this.customOptions=ee([]),this.onEditorCreated=new Ce,this.quillSubscription=null,this.destroyRef=w(Ar),this.valueSetter=(c,u)=>{let d=fs(this.format(),this.service.config.format),p=u;if(d==="text")c.setText(p);else{if(d==="html")([!0,!1].includes(this.sanitize())?this.sanitize():this.service.config.sanitize||!1)&&(u=this.domSanitizer.sanitize(Vt.HTML,u)),p=c.clipboard.convert({html:u});else if(d==="json")try{p=JSON.parse(u)}catch{p=[{insert:u}]}c.setContents(p)}}}ngOnChanges(n){this.quillEditor&&n.content&&this.valueSetter(this.quillEditor,n.content.currentValue)}ngAfterViewInit(){wi(this.platformId)||(this.quillSubscription=this.service.getQuill().pipe(Ue(n=>{let i=[this.service.registerCustomModules(n,this.customModules())],o=this.beforeRender()??this.service.config.beforeRender;return o&&i.push(o()),Promise.all(i).then(()=>n)})).subscribe(n=>{let i=Object.assign({},this.modules()||this.service.config.modules);i.toolbar=!1,this.customOptions().forEach(l=>{let c=n.import(l.import);c.whitelist=l.whitelist,n.register(c,!0)});let o=this.debug();!o&&o!==!1&&this.service.config.debug&&(o=this.service.config.debug);let s=this.formats();!s&&s===void 0&&(s=this.service.config.formats?Object.assign({},this.service.config.formats):this.service.config.formats===null?null:void 0);let a=this.theme()||(this.service.config.theme?this.service.config.theme:"snow");this.editorElem=this.elementRef.nativeElement.querySelector("[quill-view-element]"),this.zone.runOutsideAngular(()=>{this.quillEditor=new n(this.editorElem,{debug:o,formats:s,modules:i,readOnly:!0,strict:this.strict(),theme:a})}),this.renderer.addClass(this.editorElem,"ngx-quill-view"),this.content()&&this.valueSetter(this.quillEditor,this.content()),this.onEditorCreated.observed&&wT().pipe(Ql(this.destroyRef)).subscribe(()=>{this.onEditorCreated.emit(this.quillEditor)})}))}ngOnDestroy(){this.quillSubscription?.unsubscribe(),this.quillSubscription=null}};t.\u0275fac=function(i){return new(i||t)(P(ct),P(Mt),P(ye),P(z_),P(Xn),P(Mn))},t.\u0275cmp=X({type:t,selectors:[["quill-view"]],inputs:{format:[F.SignalBased,"format"],theme:[F.SignalBased,"theme"],modules:[F.SignalBased,"modules"],debug:[F.SignalBased,"debug"],formats:[F.SignalBased,"formats"],sanitize:[F.SignalBased,"sanitize"],beforeRender:[F.SignalBased,"beforeRender"],strict:[F.SignalBased,"strict"],content:[F.SignalBased,"content"],customModules:[F.SignalBased,"customModules"],customOptions:[F.SignalBased,"customOptions"]},outputs:{onEditorCreated:"onEditorCreated"},standalone:!0,features:[vt,oe],decls:1,vars:0,consts:[["quill-view-element",""]],template:function(i,o){i&1&&de(0,"div",0)},styles:[`.ql-container.ngx-quill-view{border:0} `],encapsulation:2});let e=t;return e})(),LT=(()=>{let t=class t{static forRoot(n){return{ngModule:t,providers:[{provide:$i,useValue:n}]}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=mt({type:t}),t.\u0275inj=_t({});let e=t;return e})();var PT=[];var cc=class{constructor(t,r){this.quill=t,this.options=r;let n=document.querySelector(this.options.container);this.quill.on("editor-change",()=>{let i=this.calculate();n.innerHTML=i+" "+this.options.unit+"s"})}calculate(){let t=this.quill.getText().trim();return this.options.unit==="word"?t?t.split(/\s+/).length:0:t.length}};var kT={providers:[eT(PT),dd(SS),tT({customModules:[{implementation:cc,path:"modules/counter"}],customOptions:[{import:"formats/font",whitelist:["mirza","roboto","aref","serif","sansserif","monospace"]}]})]};var FT=(()=>{let t=class t{constructor(){this.placeholder="placeholder"}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=X({type:t,selectors:[["app-bubble-editor"]],standalone:!0,features:[oe],decls:5,vars:1,consts:[["id","bubble"],["type","button",3,"click"],["theme","bubble",3,"placeholder"]],template:function(i,o){i&1&&(v(0,"h3",0),O(1,"Bubble editor"),R(),v(2,"button",1),Ee("click",function(){return o.placeholder=o.placeholder+"!"}),O(3,` Change placeholder `),R(),de(4,"quill-editor",2)),i&2&&(G(4),ie("placeholder",o.placeholder))},dependencies:[Se],encapsulation:2});let e=t;return e})();var UT=(()=>{let t=class t{activateRTL(n){n.format("align","right"),n.format("direction","rtl")}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=X({type:t,selectors:[["app-activate-rtl"]],standalone:!0,features:[oe],decls:3,vars:0,consts:[["id","rtl"],[3,"onEditorCreated"]],template:function(i,o){i&1&&(v(0,"h3",0),O(1,"Activate rtl-direction"),R(),v(2,"quill-editor",1),Ee("onEditorCreated",function(a){return o.activateRTL(a)}),R())},dependencies:[Se],encapsulation:2});let e=t;return e})();var BT=(()=>{let t=class t{constructor(n){console.log("Child-Module - Global config",n)}};t.\u0275fac=function(i){return new(i||t)(P($i))},t.\u0275cmp=X({type:t,selectors:[["app-child"]],decls:6,vars:1,consts:[["id","child-module"],[3,"content"]],template:function(i,o){i&1&&(v(0,"h3",0),O(1,"QuillModule in a Child Module"),R(),de(2,"quill-editor"),v(3,"h4"),O(4,"Quill View HTML"),R(),de(5,"quill-view-html",1)),i&2&&(G(5),ie("content","

View HTML Component in child module

"))},dependencies:[Se,lc],encapsulation:2});let e=t;return e})();var GT=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=mt({type:t}),t.\u0275inj=_t({imports:[LT]});let e=t;return e})();var mB=()=>({container:"#counter",unit:"word"}),fB=e=>({counter:e}),VT=(()=>{let t=class t{constructor(){this.editorModel=[{attributes:{font:"roboto"},insert:"test"}]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=X({type:t,selectors:[["app-custom-toolbar"]],standalone:!0,features:[oe],decls:35,vars:9,consts:[["id","toolbar-bottom"],["customToolbarPosition","bottom","format","object",3,"ngModelChange","ngModel","modules"],["above-quill-editor-toolbar",""],["quill-editor-toolbar",""],[1,"ql-formats"],["type","button",1,"ql-bold"],["viewBox","0 0 18 18"],["d","M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z",1,"ql-stroke"],["d","M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z",1,"ql-stroke"],[1,"ql-font"],["value","aref"],["value","mirza"],["selected","","value","roboto"],[1,"ql-align",3,"title"],["selected",""],["value","center"],["value","right"],["value","justify"],[1,"ql-color",3,"title"],[1,"ql-background",3,"title"],["id","counter"],["below-quill-editor-toolbar",""]],template:function(i,o){i&1&&(v(0,"h3",0),O(1,"Custom Toolbar (position: bottom) with toolbar title-attributes + Word counter"),R(),v(2,"quill-editor",1),Xe("ngModelChange",function(a){return nt(o.editorModel,a)||(o.editorModel=a),a}),v(3,"div",2),O(4,' "above-quill-toolbar" projection content '),R(),v(5,"div",3)(6,"span",4)(7,"button",5),Hg(),v(8,"svg",6),de(9,"path",7)(10,"path",8),R()()(),Yg(),v(11,"span",4)(12,"select",9)(13,"option",10),O(14,"Aref Ruqaa"),R(),v(15,"option",11),O(16,"Mirza"),R(),v(17,"option",12),O(18,"Roboto"),R()(),v(19,"select",13),de(20,"option",14)(21,"option",15)(22,"option",16)(23,"option",17),R(),v(24,"select",13),de(25,"option",14)(26,"option",15)(27,"option",16)(28,"option",17),R(),de(29,"select",18)(30,"select",19),R(),v(31,"span",4),de(32,"div",20),R()(),v(33,"div",21),O(34,' "below-quill-toolbar" projection content '),R()()),i&2&&(G(2),Ze("ngModel",o.editorModel),ie("modules",tl(7,fB,Ai(6,mB))),G(17),ie("title","Aligment"),G(5),ie("title","Aligment2"),G(5),ie("title","Color"),G(),ie("title","BackgroundColor"))},dependencies:[Se,ze,DT,AT,Be,Je],encapsulation:2});let e=t;return e})();var gB=()=>({height:"200px"}),HT=(()=>{let t=class t{constructor(){this.blurred=!1,this.focused=!1}created(n){console.log("editor-created",n)}changedEditor(n){console.log("editor-change",n)}focus(n){console.log("focus",n),this.focused=!0,this.blurred=!1}nativeFocus(n){console.log("native-focus",n)}blur(n){console.log("blur",n),this.focused=!1,this.blurred=!0}nativeBlur(n){console.log("native-blur",n)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=X({type:t,selectors:[["app-default"]],standalone:!0,features:[oe],decls:5,vars:4,consts:[["id","focusBlur"],[3,"onFocus","onNativeFocus","onEditorChanged","onBlur","onNativeBlur","onEditorCreated","styles"]],template:function(i,o){i&1&&(v(0,"h3",0),O(1,"Default editor with height of 200px"),R(),v(2,"p"),O(3),R(),v(4,"quill-editor",1),Ee("onFocus",function(a){return o.focus(a)})("onNativeFocus",function(a){return o.nativeFocus(a)})("onEditorChanged",function(a){return o.changedEditor(a)})("onBlur",function(a){return o.blur(a)})("onNativeBlur",function(a){return o.nativeBlur(a)})("onEditorCreated",function(a){return o.created(a)}),R()),i&2&&(G(3),xr("focused: ",o.focused,", blurred: ",o.blurred,""),G(),ie("styles",Ai(3,gB)))},dependencies:[Se],encapsulation:2});let e=t;return e})();var YT=(()=>{let t=class t{constructor(n,i){this.sanitizer=n,this.fb=i,this.form=this.fb.group({html:new Et('
test
  • 1
  • 1-1
  • 2
    1. numbered
    2. numbered-1

'),matQuillHtml:new Et('
test
  • 1
  • 1-1
  • 2
    1. numbered
    2. numbered-1

')})}ngOnInit(){setTimeout(()=>{this.form.get("html").patchValue('
  1. test
'),this.form.get("matQuillHtml").patchValue('
  1. test
')},4e3)}byPassHTML(n){return this.sanitizer.bypassSecurityTrustHtml(n)}};t.\u0275fac=function(i){return new(i||t)(P(Xn),P(sr))},t.\u0275cmp=X({type:t,selectors:[["app-format-html"]],standalone:!0,features:[oe],decls:13,vars:4,consts:[["id","html"],[1,"ql-container","ql-snow",2,"border-width","0"],[1,"ql-editor",2,"width","100%",3,"innerHTML"],[3,"formGroup"],["format","html","formControlName","html"]],template:function(i,o){i&1&&(v(0,"h3",0),O(1,"Format - HTML"),R(),v(2,"pre"),O(3," "),v(4,"code"),O(5),R(),O(6,`