From 6780474c3db1ddc37fd5483dd6b38b1c93b86053 Mon Sep 17 00:00:00 2001 From: oliveregger Date: Wed, 10 Jul 2024 07:38:42 +0000 Subject: [PATCH] server: rebuild the Angular GUI resources --- matchbox-server/src/main/resources/static/browser/index.html | 2 +- .../static/browser/{main-22JUNBY5.js => main-A4Z2UT2J.js} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename matchbox-server/src/main/resources/static/browser/{main-22JUNBY5.js => main-A4Z2UT2J.js} (99%) diff --git a/matchbox-server/src/main/resources/static/browser/index.html b/matchbox-server/src/main/resources/static/browser/index.html index 49293248f46..8be00b302bc 100644 --- a/matchbox-server/src/main/resources/static/browser/index.html +++ b/matchbox-server/src/main/resources/static/browser/index.html @@ -11,5 +11,5 @@ - + diff --git a/matchbox-server/src/main/resources/static/browser/main-22JUNBY5.js b/matchbox-server/src/main/resources/static/browser/main-A4Z2UT2J.js similarity index 99% rename from matchbox-server/src/main/resources/static/browser/main-22JUNBY5.js rename to matchbox-server/src/main/resources/static/browser/main-A4Z2UT2J.js index 8e385c7a4bf..61e3f4cb1e3 100644 --- a/matchbox-server/src/main/resources/static/browser/main-22JUNBY5.js +++ b/matchbox-server/src/main/resources/static/browser/main-A4Z2UT2J.js @@ -1047,7 +1047,7 @@ ${i.map((n,r)=>`${r+1}) ${n.toString()}`).join(` `+t.message,r,i,n),t[HB]=r,t[Xm]=null,t}function ZB(t,e,i,n=null){t=t&&t.charAt(0)===` `&&t.charAt(1)==WB?t.slice(2):t;let r=di(e);if(Array.isArray(e))r=e.map(di).join(" -> ");else if(typeof e=="object"){let s=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];s.push(o+":"+(typeof a=="string"?JSON.stringify(a):di(a)))}r=`{${s.join(", ")}}`}return`${i}${n?"("+n+")":""}[${r}]: ${t.replace(zB,` `)}`}var Ys=BD(LD("Optional"),8);var Wo=BD(LD("SkipSelf"),4);function Za(t,e){let i=t.hasOwnProperty(Qm);return i?t[Qm]:null}function QB(t,e,i){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(i)?Zy(i,e):e(i))}function jD(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function Jm(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function JB(t,e){let i=[];for(let n=0;ne;){let s=r-2;t[r]=t[s],r--}t[e]=i,t[e+1]=n}}function kp(t,e,i){let n=yd(t,e);return n>=0?t[n|1]=i:(n=~n,e4(t,n,e,i)),n}function Tb(t,e){let i=yd(t,e);if(i>=0)return t[i|1]}function yd(t,e){return t4(t,e,1)}function t4(t,e,i){let n=0,r=t.length>>i;for(;r!==n;){let s=n+(r-n>>1),o=t[s<e?r=s:n=s+1}return~(r<e){o=s-1;break}}}for(;s-1){let s;for(;++rs?d="":d=r[u+1].toLowerCase(),n&2&&c!==d){if(Vr(n))return!1;o=!0}}}}return Vr(n)||o}function Vr(t){return(t&1)===0}function a4(t,e,i,n){if(e===null)return-1;let r=0;if(n||!i){let s=!1;for(;r-1)for(i++;i0?'="'+a+'"':"")+"]"}else n&8?r+="."+o:n&4&&(r+=" "+o);else r!==""&&!Vr(o)&&(e+=YM(s,r),r=""),n=o,s=s||!Vr(n);i++}return r!==""&&(e+=YM(s,r)),e}function f4(t){return t.map(h4).join(",")}function m4(t){let e=[],i=[],n=1,r=2;for(;n{let e=JD(t),i=We(Z({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===WD.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||us.Emulated,styles:t.styles||Si,_:null,schemas:t.schemas||null,tView:null,id:""});ek(i);let n=t.dependencies;return i.directiveDefs=ZM(n,!1),i.pipeDefs=ZM(n,!0),i.id=_4(i),i})}function p4(t){return Bo(t)||KD(t)}function g4(t){return t!==null}function ce(t){return bd(()=>({type:t.type,bootstrap:t.bootstrap||Si,declarations:t.declarations||Si,imports:t.imports||Si,exports:t.exports||Si,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function KM(t,e){if(t==null)return vc;let i={};for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],s,o,a=yc.None;Array.isArray(r)?(a=r[0],s=r[1],o=r[2]??s):(s=r,o=r),e?(i[s]=a!==yc.None?[n,a]:n,e[s]=o):i[s]=n}return i}function Me(t){return bd(()=>{let e=JD(t);return ek(e),e})}function wd(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function Bo(t){return t[FB]||null}function KD(t){return t[PB]||null}function ZD(t){return t[UB]||null}function QD(t){let e=Bo(t)||KD(t)||ZD(t);return e!==null?e.standalone:!1}function XD(t,e){let i=t[$B]||null;if(!i&&e===!0)throw new Error(`Type ${di(t)} does not have '\u0275mod' property.`);return i}function JD(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||vc,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Si,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:KM(t.inputs,e),outputs:KM(t.outputs),debugInfo:null}}function ek(t){t.features?.forEach(e=>e(t))}function ZM(t,e){if(!t)return null;let i=e?ZD:p4;return()=>(typeof t=="function"?t():t).map(n=>i(n)).filter(g4)}function _4(t){let e=0,i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let r of i)e=Math.imul(31,e)+r.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function Ac(t){return{\u0275providers:t}}function v4(...t){return{\u0275providers:tk(!0,t),\u0275fromNgModule:!0}}function tk(t,...e){let i=[],n=new Set,r,s=o=>{i.push(o)};return Zy(e,o=>{let a=o;Kb(a,s,[],n)&&(r||=[],r.push(a))}),r!==void 0&&nk(r,s),i}function nk(t,e){for(let i=0;i{e(s,n)})}}function Kb(t,e,i,n){if(t=ui(t),!t)return!1;let r=null,s=HM(t),o=!s&&Bo(t);if(!s&&!o){let l=t.ngModule;if(s=HM(l),s)r=l;else return!1}else{if(o&&!o.standalone)return!1;r=t}let a=n.has(r);if(o){if(a)return!1;if(n.add(r),o.dependencies){let l=typeof o.dependencies=="function"?o.dependencies():o.dependencies;for(let c of l)Kb(c,e,i,n)}}else if(s){if(s.imports!=null&&!a){n.add(r);let c;try{Zy(s.imports,u=>{Kb(u,e,i,n)&&(c||=[],c.push(u))})}finally{}c!==void 0&&nk(c,e)}if(!a){let c=Za(r)||(()=>new r);e({provide:r,useFactory:c,deps:Si},r),e({provide:zD,useValue:r,multi:!0},r),e({provide:bc,useValue:()=>V(r),multi:!0},r)}let l=s.providers;if(l!=null&&!a){let c=t;Xy(l,u=>{e(u,c)})}}else return!1;return r!==t&&t.providers!==void 0}function Xy(t,e){for(let i of t)UD(i)&&(i=i.\u0275providers),Array.isArray(i)?Xy(i,e):e(i)}var b4=Ht({provide:String,useValue:Ht});function ik(t){return t!==null&&typeof t=="object"&&b4 in t}function y4(t){return!!(t&&t.useExisting)}function w4(t){return!!(t&&t.useFactory)}function wc(t){return typeof t=="function"}function C4(t){return!!t.useClass}var Tp=new Q(""),zm={},x4={},Ab;function Jy(){return Ab===void 0&&(Ab=new ep),Ab}var An=class{},fd=class extends An{get destroyed(){return this._destroyed}constructor(e,i,n,r){super(),this.parent=i,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Qb(e,o=>this.processProvider(o)),this.records.set(HD,fc(void 0,this)),r.has("environment")&&this.records.set(An,fc(void 0,this));let s=this.records.get(Tp);s!=null&&typeof s.value=="string"&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(zD,Si,dt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=pt(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let i=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of i)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),pt(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let i=Uo(this),n=Ei(void 0),r;try{return e()}finally{Uo(i),Ei(n)}}get(e,i=dd,n=dt.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(WM))return e[WM](this);n=Dp(n);let r,s=Uo(this),o=Ei(void 0);try{if(!(n&dt.SkipSelf)){let l=this.records.get(e);if(l===void 0){let c=D4(e)&&Mp(e);c&&this.injectableDefInScope(c)?l=fc(Zb(e),zm):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l)}let a=n&dt.Self?Jy():this.parent;return i=n&dt.Optional&&i===dd?null:i,a.get(e,i)}catch(a){if(a.name==="NullInjectorError"){if((a[Xm]=a[Xm]||[]).unshift(di(e)),s)throw a;return KB(a,e,"R3InjectorError",this.source)}else throw a}finally{Ei(o),Uo(s)}}resolveInjectorInitializers(){let e=pt(null),i=Uo(this),n=Ei(void 0),r;try{let s=this.get(bc,Si,dt.Self);for(let o of s)o()}finally{Uo(i),Ei(n),pt(e)}}toString(){let e=[],i=this.records;for(let n of i.keys())e.push(di(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Te(205,!1)}processProvider(e){e=ui(e);let i=wc(e)?e:ui(e&&e.provide),n=S4(e);if(!wc(e)&&e.multi===!0){let r=this.records.get(i);r||(r=fc(void 0,zm,!0),r.factory=()=>Gb(r.multi),this.records.set(i,r)),i=e,r.multi.push(e)}this.records.set(i,n)}hydrate(e,i){let n=pt(null);try{return i.value===zm&&(i.value=x4,i.value=i.factory()),typeof i.value=="object"&&i.value&&M4(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}finally{pt(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let i=ui(e.providedIn);return typeof i=="string"?i==="any"||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(e){let i=this._onDestroyHooks.indexOf(e);i!==-1&&this._onDestroyHooks.splice(i,1)}};function Zb(t){let e=Mp(t),i=e!==null?e.factory:Za(t);if(i!==null)return i;if(t instanceof Q)throw new Te(204,!1);if(t instanceof Function)return E4(t);throw new Te(204,!1)}function E4(t){if(t.length>0)throw new Te(204,!1);let i=OB(t);return i!==null?()=>i.factory(t):()=>new t}function S4(t){if(ik(t))return fc(void 0,t.useValue);{let e=rk(t);return fc(e,zm)}}function rk(t,e,i){let n;if(wc(t)){let r=ui(t);return Za(r)||Zb(r)}else if(ik(t))n=()=>ui(t.useValue);else if(w4(t))n=()=>t.useFactory(...Gb(t.deps||[]));else if(y4(t))n=()=>V(ui(t.useExisting));else{let r=ui(t&&(t.useClass||t.provide));if(I4(t))n=()=>new r(...Gb(t.deps));else return Za(r)||Zb(r)}return n}function fc(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function I4(t){return!!t.deps}function M4(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function D4(t){return typeof t=="function"||typeof t=="object"&&t instanceof Q}function Qb(t,e){for(let i of t)Array.isArray(i)?Qb(i,e):i&&UD(i)?Qb(i.\u0275providers,e):e(i)}function Ii(t,e){t instanceof fd&&t.assertNotDestroyed();let i,n=Uo(t),r=Ei(void 0);try{return e()}finally{Uo(n),Ei(r)}}function sk(){return $D()!==void 0||qB()!=null}function e1(t){if(!sk())throw new Te(-203,!1)}function k4(t){let e=Cn.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function T4(t){return typeof t=="function"}var fs=0,nt=1,Je=2,Jn=3,jr=4,Mi=5,Cc=6,tp=7,Qn=8,xc=9,ds=10,Zt=11,md=12,QM=13,Rc=14,Vi=15,Qa=16,mc=17,zs=18,Ap=19,ok=20,$o=21,Wm=22,hr=23,Rn=25,t1=1;var Xa=7,np=8,Ec=9,Xn=10,ip=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(ip||{});function Vo(t){return Array.isArray(t)&&typeof t[t1]=="object"}function Ks(t){return Array.isArray(t)&&t[t1]===!0}function n1(t){return(t.flags&4)!==0}function Rp(t){return t.componentOffset>-1}function Lp(t){return(t.flags&1)===1}function Ws(t){return!!t.template}function Xb(t){return(t[Je]&512)!==0}var Jb=class{constructor(e,i,n){this.previousValue=e,this.currentValue=i,this.firstChange=n}isFirstChange(){return this.firstChange}};function ak(t,e,i,n){e!==null?e.applyValueToInputSignal(e,n):t[i]=n}function Mt(){return lk}function lk(t){return t.type.prototype.ngOnChanges&&(t.setInput=R4),A4}Mt.ngInherit=!0;function A4(){let t=uk(this),e=t?.current;if(e){let i=t.previous;if(i===vc)t.previous=e;else for(let n in e)i[n]=e[n];t.current=null,this.ngOnChanges(e)}}function R4(t,e,i,n,r){let s=this.declaredInputs[n],o=uk(t)||L4(t,{previous:vc,current:null}),a=o.current||(o.current={}),l=o.previous,c=l[s];a[s]=new Jb(c&&c.currentValue,i,l===vc),ak(t,e,r,i)}var ck="__ngSimpleChanges__";function uk(t){return t[ck]||null}function L4(t,e){return t[ck]=e}var XM=null;var ls=function(t,e,i){XM?.(t,e,i)},dk="svg",O4="math";function hs(t){for(;Array.isArray(t);)t=t[fs];return t}function N4(t){for(;Array.isArray(t);){if(typeof t[t1]=="object")return t;t=t[fs]}return null}function hk(t,e){return hs(e[t])}function mr(t,e){return hs(e[t.index])}function i1(t,e){return t.data[e]}function r1(t,e){return t[e]}function qo(t,e){let i=e[t];return Vo(i)?i:i[fs]}function F4(t){return(t[Je]&4)===4}function s1(t){return(t[Je]&128)===128}function P4(t){return Ks(t[Jn])}function jo(t,e){return e==null?null:t[e]}function fk(t){t[mc]=0}function mk(t){t[Je]&1024||(t[Je]|=1024,s1(t)&&Op(t))}function U4(t,e){for(;t>0;)e=e[Rc],t--;return e}function pd(t){return!!(t[Je]&9216||t[hr]?.dirty)}function ey(t){t[ds].changeDetectionScheduler?.notify(7),t[Je]&64&&(t[Je]|=1024),pd(t)&&Op(t)}function Op(t){t[ds].changeDetectionScheduler?.notify(0);let e=Ja(t);for(;e!==null&&!(e[Je]&8192||(e[Je]|=8192,!s1(e)));)e=Ja(e)}function pk(t,e){if((t[Je]&256)===256)throw new Te(911,!1);t[$o]===null&&(t[$o]=[]),t[$o].push(e)}function $4(t,e){if(t[$o]===null)return;let i=t[$o].indexOf(e);i!==-1&&t[$o].splice(i,1)}function Ja(t){let e=t[Jn];return Ks(e)?e[Jn]:e}var ot={lFrame:Ek(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var gk=!1;function V4(){return ot.lFrame.elementDepthCount}function B4(){ot.lFrame.elementDepthCount++}function j4(){ot.lFrame.elementDepthCount--}function _k(){return ot.bindingsEnabled}function vk(){return ot.skipHydrationRootTNode!==null}function H4(t){return ot.skipHydrationRootTNode===t}function z4(){ot.skipHydrationRootTNode=null}function Qe(){return ot.lFrame.lView}function Yt(){return ot.lFrame.tView}function we(t){return ot.lFrame.contextLView=t,t[Qn]}function Ce(t){return ot.lFrame.contextLView=null,t}function On(){let t=bk();for(;t!==null&&t.type===64;)t=t.parent;return t}function bk(){return ot.lFrame.currentTNode}function W4(){let t=ot.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function ol(t,e){let i=ot.lFrame;i.currentTNode=t,i.isParent=e}function o1(){return ot.lFrame.isParent}function a1(){ot.lFrame.isParent=!1}function q4(){return ot.lFrame.contextLView}function yk(){return gk}function JM(t){gk=t}function Np(){let t=ot.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function G4(){return ot.lFrame.bindingIndex}function Y4(t){return ot.lFrame.bindingIndex=t}function Go(){return ot.lFrame.bindingIndex++}function l1(t){let e=ot.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function K4(){return ot.lFrame.inI18n}function Z4(t,e){let i=ot.lFrame;i.bindingIndex=i.bindingRootIndex=t,ty(e)}function Q4(){return ot.lFrame.currentDirectiveIndex}function ty(t){ot.lFrame.currentDirectiveIndex=t}function c1(t){let e=ot.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function wk(){return ot.lFrame.currentQueryIndex}function u1(t){ot.lFrame.currentQueryIndex=t}function X4(t){let e=t[nt];return e.type===2?e.declTNode:e.type===1?t[Mi]:null}function Ck(t,e,i){if(i&dt.SkipSelf){let r=e,s=t;for(;r=r.parent,r===null&&!(i&dt.Host);)if(r=X4(s),r===null||(s=s[Rc],r.type&10))break;if(r===null)return!1;e=r,t=s}let n=ot.lFrame=xk();return n.currentTNode=e,n.lView=t,!0}function d1(t){let e=xk(),i=t[nt];ot.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function xk(){let t=ot.lFrame,e=t===null?null:t.child;return e===null?Ek(t):e}function Ek(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Sk(){let t=ot.lFrame;return ot.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Ik=Sk;function h1(){let t=Sk();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function J4(t){return(ot.lFrame.contextLView=U4(t,ot.lFrame.contextLView))[Qn]}function Zs(){return ot.lFrame.selectedIndex}function el(t){ot.lFrame.selectedIndex=t}function Lc(){let t=ot.lFrame;return i1(t.tView,t.selectedIndex)}function xn(){ot.lFrame.currentNamespace=dk}function Yo(){e6()}function e6(){ot.lFrame.currentNamespace=null}function t6(){return ot.lFrame.currentNamespace}var Mk=!0;function Fp(){return Mk}function Pp(t){Mk=t}function n6(t,e,i){let{ngOnChanges:n,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(n){let o=lk(e);(i.preOrderHooks??=[]).push(t,o),(i.preOrderCheckHooks??=[]).push(t,o)}r&&(i.preOrderHooks??=[]).push(0-t,r),s&&((i.preOrderHooks??=[]).push(t,s),(i.preOrderCheckHooks??=[]).push(t,s))}function Up(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[l]<0&&(t[mc]+=65536),(a>14>16&&(t[Je]&3)===e&&(t[Je]+=16384,eD(a,s)):eD(a,s)}var _c=-1,tl=class{constructor(e,i,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n}};function r6(t){return t instanceof tl}function s6(t){return(t.flags&8)!==0}function o6(t){return(t.flags&16)!==0}var Lb={},ny=class{constructor(e,i){this.injector=e,this.parentInjector=i}get(e,i,n){n=Dp(n);let r=this.injector.get(e,Lb,n);return r!==Lb||i===Lb?r:this.parentInjector.get(e,i,n)}};function kk(t){return t!==_c}function rp(t){return t&32767}function a6(t){return t>>16}function sp(t,e){let i=a6(t),n=e;for(;i>0;)n=n[Rc],i--;return n}var iy=!0;function op(t){let e=iy;return iy=t,e}var l6=256,Tk=l6-1,Ak=5,c6=0,cs={};function u6(t,e,i){let n;typeof i=="string"?n=i.charCodeAt(0)||0:i.hasOwnProperty(cd)&&(n=i[cd]),n==null&&(n=i[cd]=c6++);let r=n&Tk,s=1<>Ak)]|=s}function ap(t,e){let i=Rk(t,e);if(i!==-1)return i;let n=e[nt];n.firstCreatePass&&(t.injectorIndex=e.length,Ob(n.data,t),Ob(e,null),Ob(n.blueprint,null));let r=f1(t,e),s=t.injectorIndex;if(kk(r)){let o=rp(r),a=sp(r,e),l=a[nt].data;for(let c=0;c<8;c++)e[s+c]=a[o+c]|l[o+c]}return e[s+8]=r,s}function Ob(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Rk(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function f1(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let i=0,n=null,r=e;for(;r!==null;){if(n=Pk(r),n===null)return _c;if(i++,r=r[Rc],n.injectorIndex!==-1)return n.injectorIndex|i<<16}return _c}function ry(t,e,i){u6(t,e,i)}function d6(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let i=t.attrs;if(i){let n=i.length,r=0;for(;r>20,d=n?a:a+u,h=r?a+u:c;for(let f=d;f=l&&m.type===i)return f}if(r){let f=o[l];if(f&&Ws(f)&&f.type===i)return l}return null}function nl(t,e,i,n){let r=t[i],s=e.data;if(r6(r)){let o=r;o.resolving&&BB(VB(s[i]));let a=op(o.canSeeViewProviders);o.resolving=!0;let l,c=o.injectImpl?Ei(o.injectImpl):null,u=Ck(t,n,dt.Default);try{r=t[i]=o.factory(void 0,s,t,n),e.firstCreatePass&&i>=n.directiveStart&&n6(i,s[i],e)}finally{c!==null&&Ei(c),op(a),o.resolving=!1,Ik()}}return r}function f6(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(cd)?t[cd]:void 0;return typeof e=="number"?e>=0?e&Tk:m6:e}function tD(t,e,i){let n=1<>Ak)]&n)}function nD(t,e){return!(t&dt.Self)&&!(t&dt.Host&&e)}var Ya=class{constructor(e,i){this._tNode=e,this._lView=i}get(e,i,n){return Nk(this._tNode,this._lView,e,Dp(n),i)}};function m6(){return new Ya(On(),Qe())}function ei(t){return bd(()=>{let e=t.prototype.constructor,i=e[Qm]||sy(e),n=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){let s=r[Qm]||sy(r);if(s&&s!==i)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function sy(t){return OD(t)?()=>{let e=sy(ui(t));return e&&e()}:Za(t)}function p6(t,e,i,n,r){let s=t,o=e;for(;s!==null&&o!==null&&o[Je]&2048&&!(o[Je]&512);){let a=Fk(s,o,i,n|dt.Self,cs);if(a!==cs)return a;let l=s.parent;if(!l){let c=o[ok];if(c){let u=c.get(i,cs,n);if(u!==cs)return u}l=Pk(o),o=o[Rc]}s=l}return r}function Pk(t){let e=t[nt],i=e.type;return i===2?e.declTNode:i===1?t[Mi]:null}function En(t){return d6(On(),t)}function iD(t,e=null,i=null,n){let r=Uk(t,e,i,n);return r.resolveInjectorInitializers(),r}function Uk(t,e=null,i=null,n,r=new Set){let s=[i||Si,v4(t)];return n=n||(typeof t=="object"?void 0:di(t)),new fd(s,e||Jy(),n||null,r)}var Ga=class Ga{static create(e,i){if(Array.isArray(e))return iD({name:""},i,e,"");{let n=e.name??"";return iD({name:n},e.parent,e.providers,n)}}};Ga.THROW_IF_NOT_FOUND=dd,Ga.NULL=new ep,Ga.\u0275prov=J({token:Ga,providedIn:"any",factory:()=>V(HD)}),Ga.__NG_ELEMENT_ID__=-1;var It=Ga;var g6=new Q("");g6.__NG_ELEMENT_ID__=t=>{let e=On();if(e===null)throw new Te(204,!1);if(e.type&2)return e.value;if(t&dt.Optional)return null;throw new Te(204,!1)};var _6="ngOriginalError";function Nb(t){return t[_6]}var hi=class{constructor(){this._console=console}handleError(e){let i=this._findOriginalError(e);this._console.error("ERROR",e),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(e){let i=e&&Nb(e);for(;i&&Nb(i);)i=Nb(i);return i||null}},$k=new Q("",{providedIn:"root",factory:()=>Y(hi).handleError.bind(void 0)}),Cd=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=v6,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),oy=class extends Cd{constructor(e){super(),this._lView=e}onDestroy(e){return pk(this._lView,e),()=>$4(this._lView,e)}};function v6(){return new oy(Qe())}function b6(){return Oc(On(),Qe())}function Oc(t,e){return new xe(mr(t,e))}var xe=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=b6;let t=e;return t})();function y6(t){return t instanceof xe?t.nativeElement:t}var ms=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new tn(!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)}};e.\u0275prov=J({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var ay=class extends ye{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,sk()&&(this.destroyRef=Y(Cd,{optional:!0})??void 0,this.pendingTasks=Y(ms,{optional:!0})??void 0)}emit(e){let i=pt(null);try{super.next(e)}finally{pt(i)}}subscribe(e,i,n){let r=e,s=i||(()=>null),o=n;if(e&&typeof e=="object"){let l=e;r=l.next?.bind(l),s=l.error?.bind(l),o=l.complete?.bind(l)}this.__isAsync&&(s=this.wrapInTimeout(s),r&&(r=this.wrapInTimeout(r)),o&&(o=this.wrapInTimeout(o)));let a=super.subscribe({next:r,error:s,complete:o});return e instanceof tt&&e.add(a),a}wrapInTimeout(e){return i=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(i),n!==void 0&&this.pendingTasks?.remove(n)})}}},se=ay;function w6(){return this._results[Symbol.iterator]()}var il=class t{get changes(){return this._changes??=new se}constructor(e=!1){this._emitDistinctChangesOnly=e,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 i=t.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=w6)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,i){return this._results.reduce(e,i)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,i){this.dirty=!1;let n=XB(e);(this._changesDetected=!QB(this._results,n,i))&&(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(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function Vk(t){return(t.flags&128)===128}var Bk=new Map,C6=0;function x6(){return C6++}function E6(t){Bk.set(t[Ap],t)}function S6(t){Bk.delete(t[Ap])}var rD="__ngContext__";function Ho(t,e){Vo(e)?(t[rD]=e[Ap],E6(e)):t[rD]=e}function jk(t){return zk(t[md])}function Hk(t){return zk(t[jr])}function zk(t){for(;t!==null&&!Ks(t);)t=t[jr];return t}var ly;function Wk(t){ly=t}function qk(){if(ly!==void 0)return ly;if(typeof document<"u")return document;throw new Te(210,!1)}var Nc=new Q("",{providedIn:"root",factory:()=>I6}),I6="ng",m1=new Q(""),fi=new Q("",{providedIn:"platform",factory:()=>"unknown"});var cn=new Q(""),xd=new Q("",{providedIn:"root",factory:()=>qk().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var M6="h",D6="b";var k6=()=>null;function p1(t,e,i=!1){return k6(t,e,i)}var Gk=!1,T6=new Q("",{providedIn:"root",factory:()=>Gk});var Um;function A6(){if(Um===void 0&&(Um=null,Cn.trustedTypes))try{Um=Cn.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Um}function $p(t){return A6()?.createHTML(t)||t}var $m;function Yk(){if($m===void 0&&($m=null,Cn.trustedTypes))try{$m=Cn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return $m}function sD(t){return Yk()?.createHTML(t)||t}function oD(t){return Yk()?.createScriptURL(t)||t}var qs=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${RD})`}},cy=class extends qs{getTypeName(){return"HTML"}},uy=class extends qs{getTypeName(){return"Style"}},dy=class extends qs{getTypeName(){return"Script"}},hy=class extends qs{getTypeName(){return"URL"}},fy=class extends qs{getTypeName(){return"ResourceURL"}};function pr(t){return t instanceof qs?t.changingThisBreaksApplicationSecurity:t}function Qs(t,e){let i=R6(t);if(i!=null&&i!==e){if(i==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${i} (see ${RD})`)}return i===e}function R6(t){return t instanceof qs&&t.getTypeName()||null}function Kk(t){return new cy(t)}function Zk(t){return new uy(t)}function Qk(t){return new dy(t)}function Xk(t){return new hy(t)}function Jk(t){return new fy(t)}function L6(t){let e=new py(t);return O6()?new my(e):e}var my=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let i=new window.DOMParser().parseFromString($p(e),"text/html").body;return i===null?this.inertDocumentHelper.getInertBodyElement(e):(i.removeChild(i.firstChild),i)}catch{return null}}},py=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let i=this.inertDocument.createElement("template");return i.innerHTML=$p(e),i}};function O6(){try{return!!new window.DOMParser().parseFromString($p(""),"text/html")}catch{return!1}}var N6=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Vp(t){return t=String(t),t.match(N6)?t:"unsafe:"+t}function Xs(t){let e={};for(let i of t.split(","))e[i]=!0;return e}function Ed(...t){let e={};for(let i of t)for(let n in i)i.hasOwnProperty(n)&&(e[n]=!0);return e}var eT=Xs("area,br,col,hr,img,wbr"),tT=Xs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),nT=Xs("rp,rt"),F6=Ed(nT,tT),P6=Ed(tT,Xs("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")),U6=Ed(nT,Xs("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")),aD=Ed(eT,P6,U6,F6),iT=Xs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),$6=Xs("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"),V6=Xs("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"),B6=Ed(iT,$6,V6),j6=Xs("script,style,template"),gy=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let i=e.firstChild,n=!0,r=[];for(;i;){if(i.nodeType===Node.ELEMENT_NODE?n=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,n&&i.firstChild){r.push(i),i=W6(i);continue}for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let s=z6(i);if(s){i=s;break}i=r.pop()}}return this.buf.join("")}startElement(e){let i=lD(e).toLowerCase();if(!aD.hasOwnProperty(i))return this.sanitizedSomething=!0,!j6.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);let n=e.attributes;for(let r=0;r"),!0}endElement(e){let i=lD(e).toLowerCase();aD.hasOwnProperty(i)&&!eT.hasOwnProperty(i)&&(this.buf.push(""))}chars(e){this.buf.push(cD(e))}};function H6(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function z6(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw rT(e);return e}function W6(t){let e=t.firstChild;if(e&&H6(t,e))throw rT(e);return e}function lD(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function rT(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var q6=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,G6=/([^\#-~ |!])/g;function cD(t){return t.replace(/&/g,"&").replace(q6,function(e){let i=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+((i-55296)*1024+(n-56320)+65536)+";"}).replace(G6,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var Vm;function g1(t,e){let i=null;try{Vm=Vm||L6(t);let n=e?String(e):"";i=Vm.getInertBodyElement(n);let r=5,s=n;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,n=s,s=i.innerHTML,i=Vm.getInertBodyElement(n)}while(n!==s);let a=new gy().sanitizeChildren(uD(i)||i);return $p(a)}finally{if(i){let n=uD(i)||i;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function uD(t){return"content"in t&&Y6(t)?t.content:null}function Y6(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Sn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Sn||{});function sT(t){let e=_1();return e?sD(e.sanitize(Sn.HTML,t)||""):Qs(t,"HTML")?sD(pr(t)):g1(qk(),Ka(t))}function K6(t){let e=_1();return e?e.sanitize(Sn.URL,t)||"":Qs(t,"URL")?pr(t):Vp(Ka(t))}function Z6(t){let e=_1();if(e)return oD(e.sanitize(Sn.RESOURCE_URL,t)||"");if(Qs(t,"ResourceURL"))return oD(pr(t));throw new Te(904,!1)}function Q6(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?Z6:K6}function oT(t,e,i){return Q6(e,i)(t)}function _1(){let t=Qe();return t&&t[ds].sanitizer}var X6=/^>|^->||--!>|)/g,ej="\u200B$1\u200B";function tj(t){return t.replace(X6,e=>e.replace(J6,ej))}function aT(t){return t instanceof Function?t():t}function lT(t){return(t??Y(It)).get(fi)==="browser"}var Gs=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Gs||{}),nj;function v1(t,e){return nj(t,e)}function pc(t,e,i,n,r){if(n!=null){let s,o=!1;Ks(n)?s=n:Vo(n)&&(o=!0,n=n[fs]);let a=hs(n);t===0&&i!==null?r==null?fT(e,i,a):lp(e,i,a,r||null,!0):t===1&&i!==null?lp(e,i,a,r||null,!0):t===2?_j(e,a,o):t===3&&e.destroyNode(a),s!=null&&bj(e,t,s,i,r)}}function ij(t,e){return t.createText(e)}function rj(t,e,i){t.setValue(e,i)}function sj(t,e){return t.createComment(tj(e))}function cT(t,e,i){return t.createElement(e,i)}function oj(t,e){uT(t,e),e[fs]=null,e[Mi]=null}function aj(t,e,i,n,r,s){n[fs]=r,n[Mi]=e,Hp(t,n,i,1,r,s)}function uT(t,e){e[ds].changeDetectionScheduler?.notify(8),Hp(t,e,e[Zt],2,null,null)}function lj(t){let e=t[md];if(!e)return Fb(t[nt],t);for(;e;){let i=null;if(Vo(e))i=e[md];else{let n=e[Xn];n&&(i=n)}if(!i){for(;e&&!e[jr]&&e!==t;)Vo(e)&&Fb(e[nt],e),e=e[Jn];e===null&&(e=t),Vo(e)&&Fb(e[nt],e),i=e&&e[jr]}e=i}}function cj(t,e,i,n){let r=Xn+n,s=i.length;n>0&&(i[r-1][jr]=e),n0&&(t[i-1][jr]=n[jr]);let s=Jm(t,Xn+e);oj(n[nt],n);let o=s[zs];o!==null&&o.detachView(s[nt]),n[Jn]=null,n[jr]=null,n[Je]&=-129}return n}function Bp(t,e){if(!(e[Je]&256)){let i=e[Zt];i.destroyNode&&Hp(t,e,i,3,null,null),lj(e)}}function Fb(t,e){if(e[Je]&256)return;let i=pt(null);try{e[Je]&=-129,e[Je]|=256,e[hr]&&cm(e[hr]),dj(t,e),uj(t,e),e[nt].type===1&&e[Zt].destroy();let n=e[Qa];if(n!==null&&Ks(e[Jn])){n!==e[Jn]&&b1(n,e);let r=e[zs];r!==null&&r.detachView(t)}S6(e)}finally{pt(i)}}function uj(t,e){let i=t.cleanup,n=e[tp];if(i!==null)for(let s=0;s=0?n[o]():n[-o].unsubscribe(),s+=2}else{let o=n[i[s+1]];i[s].call(o)}n!==null&&(e[tp]=null);let r=e[$o];if(r!==null){e[$o]=null;for(let s=0;s-1){let{encapsulation:s}=t.data[n.directiveStart+r];if(s===us.None||s===us.Emulated)return null}return mr(n,i)}}function lp(t,e,i,n,r){t.insertBefore(e,i,n,r)}function fT(t,e,i){t.appendChild(e,i)}function dD(t,e,i,n,r){n!==null?lp(t,e,i,n,r):fT(t,e,i)}function fj(t,e,i,n){t.removeChild(e,i,n)}function y1(t,e){return t.parentNode(e)}function mj(t,e){return t.nextSibling(e)}function mT(t,e,i){return gj(t,e,i)}function pj(t,e,i){return t.type&40?mr(t,i):null}var gj=pj,hD;function jp(t,e,i,n){let r=hT(t,n,e),s=e[Zt],o=n.parent||e[Mi],a=mT(o,n,e);if(r!=null)if(Array.isArray(i))for(let l=0;lRn&&bT(t,e,Rn,!1),ls(o?2:0,r),i(n,r)}finally{el(s),ls(o?3:1,r)}}function C1(t,e,i){if(n1(e)){let n=pt(null);try{let r=e.directiveStart,s=e.directiveEnd;for(let o=r;onull;function Dj(t,e,i,n){let r=DT(e);r.push(i),t.firstCreatePass&&kT(t).push(n,r.length-1)}function kj(t,e,i,n,r,s){let o=e?e.injectorIndex:-1,a=0;return vk()&&(a|=128),{type:i,index:n,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function fD(t,e,i,n,r){for(let s in e){if(!e.hasOwnProperty(s))continue;let o=e[s];if(o===void 0)continue;n??={};let a,l=yc.None;Array.isArray(o)?(a=o[0],l=o[1]):a=o;let c=s;if(r!==null){if(!r.hasOwnProperty(s))continue;c=r[s]}t===0?mD(n,i,c,a,l):mD(n,i,c,a)}return n}function mD(t,e,i,n,r){let s;t.hasOwnProperty(i)?(s=t[i]).push(e,n):s=t[i]=[e,n],r!==void 0&&s.push(r)}function Tj(t,e,i){let n=e.directiveStart,r=e.directiveEnd,s=t.data,o=e.attrs,a=[],l=null,c=null;for(let u=n;u0;){let i=t[--e];if(typeof i=="number"&&i<0)return i}return 0}function Nj(t,e,i,n){let r=i.directiveStart,s=i.directiveEnd;Rp(i)&&jj(e,i,t.data[r+i.componentOffset]),t.firstCreatePass||ap(i,e),Ho(n,e);let o=i.initialInputs;for(let a=r;a{Op(t.lView)},consumerOnSignalRead(){this.lView[hr]=this}});function t5(t){let e=t[hr]??Object.create(n5);return e.lView=t,e}var n5=We(Z({},om),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=Ja(t.lView);for(;e&&!FT(e[nt]);)e=Ja(e);e&&mk(e)},consumerOnSignalRead(){this.lView[hr]=this}});function FT(t){return t.type!==2}var i5=100;function PT(t,e=!0,i=0){let n=t[ds],r=n.rendererFactory,s=!1;s||r.begin?.();try{r5(t,i)}catch(o){throw e&&AT(t,o),o}finally{s||(r.end?.(),n.inlineEffectRunner?.flush())}}function r5(t,e){let i=yk();try{JM(!0),yy(t,e);let n=0;for(;pd(t);){if(n===i5)throw new Te(103,!1);n++,yy(t,1)}}finally{JM(i)}}function s5(t,e,i,n){let r=e[Je];if((r&256)===256)return;let s=!1,o=!1;!s&&e[ds].inlineEffectRunner?.flush(),d1(e);let a=!0,l=null,c=null;s||(FT(t)?(c=Qj(e),l=am(c)):dM()===null?(a=!1,c=t5(e),l=am(c)):e[hr]&&(cm(e[hr]),e[hr]=null));try{fk(e),Y4(t.bindingStartIndex),i!==null&&CT(t,e,i,2,n);let u=(r&3)===3;if(!s)if(u){let f=t.preOrderCheckHooks;f!==null&&qm(e,f,null)}else{let f=t.preOrderHooks;f!==null&&Gm(e,f,0,null),Rb(e,0)}if(o||o5(e),UT(e,0),t.contentQueries!==null&&MT(t,e),!s)if(u){let f=t.contentCheckHooks;f!==null&&qm(e,f)}else{let f=t.contentHooks;f!==null&&Gm(e,f,1),Rb(e,1)}Cj(t,e);let d=t.components;d!==null&&VT(e,d,0);let h=t.viewQuery;if(h!==null&&by(2,h,n),!s)if(u){let f=t.viewCheckHooks;f!==null&&qm(e,f)}else{let f=t.viewHooks;f!==null&&Gm(e,f,2),Rb(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Wm]){for(let f of e[Wm])f();e[Wm]=null}s||(e[Je]&=-73)}catch(u){throw s||Op(e),u}finally{c!==null&&(lb(c,l),a&&Jj(c)),h1()}}function UT(t,e){for(let i=jk(t);i!==null;i=Hk(i))for(let n=Xn;n-1&&(gd(e,n),Jm(i,n))}this._attachedToViewContainer=!1}Bp(this._lView[nt],this._lView)}onDestroy(e){pk(this._lView,e)}markForCheck(){k1(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Je]&=-129}reattach(){ey(this._lView),this._lView[Je]|=128}detectChanges(){this._lView[Je]|=1024,PT(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Te(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Xb(this._lView),i=this._lView[Qa];i!==null&&!e&&b1(i,this._lView),uT(this._lView[nt],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Te(902,!1);this._appRef=e;let i=Xb(this._lView),n=this._lView[Qa];n!==null&&!i&&dT(n,this._lView),ey(this._lView)}},$n=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=u5;let t=e;return t})(),l5=$n,c5=class extends l5{constructor(e,i,n){super(),this._declarationLView=e,this._declarationTContainer=i,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,n){let r=Id(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:i,dehydratedView:n});return new rl(r)}};function u5(){return qp(On(),Qe())}function qp(t,e){return t.type&4?new c5(e,t,Oc(t,e)):null}var bme=new RegExp(`^(\\d+)*(${D6}|${M6})*(.*)`);var d5=()=>null;function Ic(t,e){return d5(t,e)}var Mc=class{},BT=new Q("",{providedIn:"root",factory:()=>!1});var jT=new Q(""),wy=class{},up=class{};function h5(t){let e=Error(`No component factory found for ${di(t)}.`);return e[f5]=t,e}var f5="ngComponent";var Cy=class{resolveComponentFactory(e){throw h5(e)}},z1=class z1{};z1.NULL=new Cy;var fr=z1,Dc=class{},Ko=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>m5();let t=e;return t})();function m5(){let t=Qe(),e=On(),i=qo(e.index,t);return(Vo(i)?i:t)[Zt]}var p5=(()=>{let e=class e{};e.\u0275prov=J({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();var pD=new Set;function Zo(t){pD.has(t)||(pD.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function HT(t){let e=!0;return setTimeout(()=>{e&&(e=!1,t())}),typeof Cn.requestAnimationFrame=="function"&&Cn.requestAnimationFrame(()=>{e&&(e=!1,t())}),()=>{e=!1}}function gD(t){let e=!0;return queueMicrotask(()=>{e&&t()}),()=>{e=!1}}function _D(...t){}var be=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new se(!1),this.onMicrotaskEmpty=new se(!1),this.onStable=new se(!1),this.onError=new se(!1),typeof Zone>"u")throw new Te(908,!1);Zone.assertZonePatched();let r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&i,r.shouldCoalesceRunChangeDetection=n,r.callbackScheduled=!1,v5(r)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new Te(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new Te(909,!1)}run(e,i,n){return this._inner.run(e,i,n)}runTask(e,i,n,r){let s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,e,g5,_D,_D);try{return s.runTask(o,i,n)}finally{s.cancelTask(o)}}runGuarded(e,i,n){return this._inner.runGuarded(e,i,n)}runOutsideAngular(e){return this._outer.run(e)}},g5={};function T1(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function _5(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{HT(()=>{t.callbackScheduled=!1,xy(t),t.isCheckStableRunning=!0,T1(t),t.isCheckStableRunning=!1})}),xy(t))}function v5(t){let e=()=>{_5(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,r,s,o,a)=>{if(b5(a))return i.invokeTask(r,s,o,a);try{return vD(t),i.invokeTask(r,s,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),bD(t)}},onInvoke:(i,n,r,s,o,a,l)=>{try{return vD(t),i.invoke(r,s,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!y5(a)&&e(),bD(t)}},onHasTask:(i,n,r,s)=>{i.hasTask(r,s),n===r&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,xy(t),T1(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(i,n,r,s)=>(i.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function xy(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function vD(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function bD(t){t._nesting--,T1(t)}var dp=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new se,this.onMicrotaskEmpty=new se,this.onStable=new se,this.onError=new se}run(e,i,n){return e.apply(i,n)}runGuarded(e,i,n){return e.apply(i,n)}runOutsideAngular(e){return e()}runTask(e,i,n,r){return e.apply(i,n)}};function b5(t){return zT(t,"__ignore_ng_zone__")}function y5(t){return zT(t,"__scheduler_tick__")}function zT(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}function w5(t="zone.js",e){return t==="noop"?new dp:t==="zone.js"?new be(e):t}var Hs=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Hs||{}),WT={destroy(){}};function Dd(t,e){!e&&e1(Dd);let i=e?.injector??Y(It);if(!lT(i))return WT;Zo("NgAfterRender");let n=i.get(Gp),r=n.handler??=new fp,s=e?.phase??Hs.MixedReadWrite,o=()=>{r.unregister(l),a()},a=i.get(Cd).onDestroy(o),l=Ii(i,()=>new hp(s,t));return r.register(l),{destroy:o}}function ti(t,e){!e&&e1(ti);let i=e?.injector??Y(It);if(!lT(i))return WT;Zo("NgAfterNextRender");let n=i.get(Gp),r=n.handler??=new fp,s=e?.phase??Hs.MixedReadWrite,o=()=>{r.unregister(l),a()},a=i.get(Cd).onDestroy(o),l=Ii(i,()=>new hp(s,()=>{o(),t()}));return r.register(l),{destroy:o}}var hp=class{constructor(e,i){this.phase=e,this.callbackFn=i,this.zone=Y(be),this.errorHandler=Y(hi,{optional:!0}),Y(Mc,{optional:!0})?.notify(6)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(e){this.errorHandler?.handleError(e)}}},fp=class{constructor(){this.executingCallbacks=!1,this.buckets={[Hs.EarlyRead]:new Set,[Hs.Write]:new Set,[Hs.MixedReadWrite]:new Set,[Hs.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let i of e)i.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},Gp=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let r of n)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=J({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function mp(t,e,i){let n=i?t.styles:null,r=i?t.classes:null,s=0;if(e!==null)for(let o=0;o0&&_T(t,i,s.join(" "))}}function D5(t,e,i){let n=t.projection=[];for(let r=0;r{let e=class e{};e.__NG_ELEMENT_ID__=T5;let t=e;return t})();function T5(){let t=On();return GT(t,Qe())}var A5=un,qT=class extends A5{constructor(e,i,n){super(),this._lContainer=e,this._hostTNode=i,this._hostLView=n}get element(){return Oc(this._hostTNode,this._hostLView)}get injector(){return new Ya(this._hostTNode,this._hostLView)}get parentInjector(){let e=f1(this._hostTNode,this._hostLView);if(kk(e)){let i=sp(e,this._hostLView),n=rp(e),r=i[nt].data[n+8];return new Ya(r,i)}else return new Ya(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let i=wD(this._lContainer);return i!==null&&i[e]||null}get length(){return this._lContainer.length-Xn}createEmbeddedView(e,i,n){let r,s;typeof n=="number"?r=n:n!=null&&(r=n.index,s=n.injector);let o=Ic(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(i||{},s,o);return this.insertImpl(a,r,Sc(this._hostTNode,o)),a}createComponent(e,i,n,r,s){let o=e&&!T4(e),a;if(o)a=i;else{let m=i||{};a=m.index,n=m.injector,r=m.projectableNodes,s=m.environmentInjector||m.ngModuleRef}let l=o?e:new kc(Bo(e)),c=n||this.parentInjector;if(!s&&l.ngModule==null){let p=(o?c:this.parentInjector).get(An,null);p&&(s=p)}let u=Bo(l.componentType??{}),d=Ic(this._lContainer,u?.id??null),h=d?.firstChild??null,f=l.create(c,r,h,s);return this.insertImpl(f.hostView,a,Sc(this._hostTNode,d)),f}insert(e,i){return this.insertImpl(e,i,!0)}insertImpl(e,i,n){let r=e._lView;if(P4(r)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let l=r[Jn],c=new qT(l,l[Mi],l[Jn]);c.detach(c.indexOf(e))}}let s=this._adjustIndex(i),o=this._lContainer;return Md(o,r,s,n),e.attachToViewContainerRef(),jD(Pb(o),s,e),e}move(e,i){return this.insert(e,i)}indexOf(e){let i=wD(this._lContainer);return i!==null?i.indexOf(e):-1}remove(e){let i=this._adjustIndex(e,-1),n=gd(this._lContainer,i);n&&(Jm(Pb(this._lContainer),i),Bp(n[nt],n))}detach(e){let i=this._adjustIndex(e,-1),n=gd(this._lContainer,i);return n&&Jm(Pb(this._lContainer),i)!=null?new rl(n):null}_adjustIndex(e,i=0){return e??this.length+i}};function wD(t){return t[np]}function Pb(t){return t[np]||(t[np]=[])}function GT(t,e){let i,n=e[t.index];return Ks(n)?i=n:(i=IT(n,e,null,t),e[t.index]=i,Wp(e,i)),L5(i,e,t,n),new qT(i,t,e)}function R5(t,e){let i=t[Zt],n=i.createComment(""),r=mr(e,t),s=y1(i,r);return lp(i,s,n,mj(i,r),!1),n}var L5=F5,O5=()=>!1;function N5(t,e,i){return O5(t,e,i)}function F5(t,e,i,n){if(t[Xa])return;let r;i.type&8?r=hs(n):r=R5(e,i),t[Xa]=r}var Sy=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Iy=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let i=e.queries;if(i!==null){let n=e.contentQueries!==null?e.contentQueries[0]:i.length,r=[];for(let s=0;s0)n.push(o[a/2]);else{let c=s[a+1],u=e[-l];for(let d=Xn;de.trim())}function ZT(t,e,i){t.queries===null&&(t.queries=new My),t.queries.track(new Dy(e,i))}function W5(t,e){let i=t.contentQueries||(t.contentQueries=[]),n=i.length?i[i.length-1]:-1;e!==n&&i.push(t.queries.length-1,e)}function A1(t,e){return t.queries.getByIndex(e)}function q5(t,e){let i=t[nt],n=A1(i,e);return n.crossesNgTemplate?ky(i,t,e,[]):YT(i,t,n,e)}function Yp(t){return typeof t=="function"&&t[sm]!==void 0}function QT(t){return Yp(t)&&typeof t.set=="function"}function G5(t){let e=[],i=new Map;function n(r){let s=i.get(r);if(!s){let o=t(r);i.set(r,s=o.then(Q5))}return s}return _p.forEach((r,s)=>{let o=[];r.templateUrl&&o.push(n(r.templateUrl).then(c=>{r.template=c}));let a=typeof r.styles=="string"?[r.styles]:r.styles||[];if(r.styles=a,r.styleUrl&&r.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(r.styleUrls?.length){let c=r.styles.length,u=r.styleUrls;r.styleUrls.forEach((d,h)=>{a.push(""),o.push(n(d).then(f=>{a[c+h]=f,u.splice(u.indexOf(d),1),u.length==0&&(r.styleUrls=void 0)}))})}else r.styleUrl&&o.push(n(r.styleUrl).then(c=>{a.push(c),r.styleUrl=void 0}));let l=Promise.all(o).then(()=>X5(s));e.push(l)}),K5(),Promise.all(e).then(()=>{})}var _p=new Map,Y5=new Set;function K5(){let t=_p;return _p=new Map,t}function Z5(){return _p.size===0}function Q5(t){return typeof t=="string"?t:t.text()}function X5(t){Y5.delete(t)}function J5(t){return Object.getPrototypeOf(t.prototype).constructor}function sn(t){let e=J5(t.type),i=!0,n=[t];for(;e;){let r;if(Ws(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Te(903,!1);r=e.\u0275dir}if(r){if(i){n.push(r);let o=t;o.inputs=Bm(t.inputs),o.inputTransforms=Bm(t.inputTransforms),o.declaredInputs=Bm(t.declaredInputs),o.outputs=Bm(t.outputs);let a=r.hostBindings;a&&rH(t,a);let l=r.viewQuery,c=r.contentQueries;if(l&&nH(t,l),c&&iH(t,c),eH(t,r),RB(t.outputs,r.outputs),Ws(r)&&r.data.animation){let u=t.data;u.animation=(u.animation||[]).concat(r.data.animation)}}let s=r.features;if(s)for(let o=0;o=0;n--){let r=t[n];r.hostVars=e+=r.hostVars,r.hostAttrs=hd(r.hostAttrs,i=hd(i,r.hostAttrs))}}function Bm(t){return t===vc?{}:t===Si?[]:t}function nH(t,e){let i=t.viewQuery;i?t.viewQuery=(n,r)=>{e(n,r),i(n,r)}:t.viewQuery=e}function iH(t,e){let i=t.contentQueries;i?t.contentQueries=(n,r,s)=>{e(n,r,s),i(n,r,s)}:t.contentQueries=e}function rH(t,e){let i=t.hostBindings;i?t.hostBindings=(n,r)=>{e(n,r),i(n,r)}:t.hostBindings=e}function gt(t){let e=t.inputConfig,i={};for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];Array.isArray(r)&&r[3]&&(i[n]=r[3])}t.inputTransforms=i}var zo=class{},_d=class{};var vp=class extends zo{constructor(e,i,n){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new pp(this);let r=XD(e);this._bootstrapComponents=aT(r.bootstrap),this._r3Injector=Uk(e,i,[{provide:zo,useValue:this},{provide:fr,useValue:this.componentFactoryResolver},...n],di(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(i=>i()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},bp=class extends _d{constructor(e){super(),this.moduleType=e}create(e){return new vp(this.moduleType,e,[])}};function sH(t,e,i){return new vp(t,e,i)}var Ty=class extends zo{constructor(e){super(),this.componentFactoryResolver=new pp(this),this.instance=null;let i=new fd([...e.providers,{provide:zo,useValue:this},{provide:fr,useValue:this.componentFactoryResolver}],e.parent||Jy(),e.debugName,new Set(["environment"]));this.injector=i,e.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Kp(t,e,i=null){return new Ty({providers:t,parent:e,debugName:i,runEnvironmentInitializers:!0}).injector}function XT(t){return aH(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function oH(t,e){if(Array.isArray(t))for(let i=0;i>17&32767}function fH(t){return(t&2)==2}function mH(t,e){return t&131071|e<<17}function Ay(t){return t|2}function Tc(t){return(t&131068)>>2}function Ub(t,e){return t&-131069|e<<2}function pH(t){return(t&1)===1}function Ry(t){return t|1}function gH(t,e,i,n,r,s){let o=s?e.classBindings:e.styleBindings,a=sl(o),l=Tc(o);t[n]=i;let c=!1,u;if(Array.isArray(i)){let d=i;u=d[1],(u===null||yd(d,u)>0)&&(c=!0)}else u=i;if(r)if(l!==0){let h=sl(t[a+1]);t[n+1]=jm(h,a),h!==0&&(t[h+1]=Ub(t[h+1],n)),t[a+1]=mH(t[a+1],n)}else t[n+1]=jm(a,0),a!==0&&(t[a+1]=Ub(t[a+1],n)),a=n;else t[n+1]=jm(l,0),a===0?a=n:t[l+1]=Ub(t[l+1],n),l=n;c&&(t[n+1]=Ay(t[n+1])),CD(t,u,n,!0),CD(t,u,n,!1),_H(e,u,t,n,s),o=jm(a,l),s?e.classBindings=o:e.styleBindings=o}function _H(t,e,i,n,r){let s=r?t.residualClasses:t.residualStyles;s!=null&&typeof e=="string"&&yd(s,e)>=0&&(i[n+1]=Ry(i[n+1]))}function CD(t,e,i,n){let r=t[i+1],s=e===null,o=n?sl(r):Tc(r),a=!1;for(;o!==0&&(a===!1||s);){let l=t[o],c=t[o+1];vH(l,e)&&(a=!0,t[o+1]=n?Ry(c):Ay(c)),o=n?sl(c):Tc(c)}a&&(t[i+1]=n?Ay(r):Ry(r))}function vH(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?yd(t,e)>=0:!1}var Br={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function bH(t){return t.substring(Br.key,Br.keyEnd)}function yH(t){return wH(t),tA(t,nA(t,0,Br.textEnd))}function tA(t,e){let i=Br.textEnd;return i===e?-1:(e=Br.keyEnd=CH(t,Br.key=e,i),nA(t,e,i))}function wH(t){Br.key=0,Br.keyEnd=0,Br.value=0,Br.valueEnd=0,Br.textEnd=t.length}function nA(t,e,i){for(;e32;)e++;return e}function K(t,e,i){let n=Qe(),r=Go();if(Bi(n,r,e)){let s=Yt(),o=Lc();Sd(s,o,n,t,e,n[Zt],i,!1)}return K}function Ly(t,e,i,n,r){let s=e.inputs,o=r?"class":"style";M1(t,i,s[o],o,n)}function Vn(t,e,i){return rA(t,e,i,!1),Vn}function Ae(t,e){return rA(t,e,null,!0),Ae}function In(t){sA(DH,iA,t,!0)}function iA(t,e){for(let i=yH(e);i>=0;i=tA(e,i))kp(t,bH(e),!0)}function rA(t,e,i,n){let r=Qe(),s=Yt(),o=l1(2);if(s.firstUpdatePass&&aA(s,t,o,n),e!==ji&&Bi(r,o,e)){let a=s.data[Zs()];lA(s,a,r,r[Zt],t,r[o+1]=TH(e,i),n,o)}}function sA(t,e,i,n){let r=Yt(),s=l1(2);r.firstUpdatePass&&aA(r,null,s,n);let o=Qe();if(i!==ji&&Bi(o,s,i)){let a=r.data[Zs()];if(cA(a,n)&&!oA(r,s)){let l=n?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(i=zb(l,i||"")),Ly(r,a,o,i,n)}else kH(r,a,o,o[Zt],o[s+1],o[s+1]=MH(t,e,i),n,s)}}function oA(t,e){return e>=t.expandoStartIndex}function aA(t,e,i,n){let r=t.data;if(r[i+1]===null){let s=r[Zs()],o=oA(t,i);cA(s,n)&&e===null&&!o&&(e=!1),e=xH(r,s,e,n),gH(r,s,e,i,o,n)}}function xH(t,e,i,n){let r=c1(t),s=n?e.residualClasses:e.residualStyles;if(r===null)(n?e.classBindings:e.styleBindings)===0&&(i=$b(null,t,e,i,n),i=vd(i,e.attrs,n),s=null);else{let o=e.directiveStylingLast;if(o===-1||t[o]!==r)if(i=$b(r,t,e,i,n),s===null){let l=EH(t,e,n);l!==void 0&&Array.isArray(l)&&(l=$b(null,t,e,l[1],n),l=vd(l,e.attrs,n),SH(t,e,n,l))}else s=IH(t,e,n)}return s!==void 0&&(n?e.residualClasses=s:e.residualStyles=s),i}function EH(t,e,i){let n=i?e.classBindings:e.styleBindings;if(Tc(n)!==0)return t[sl(n)]}function SH(t,e,i,n){let r=i?e.classBindings:e.styleBindings;t[sl(r)]=n}function IH(t,e,i){let n,r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s0;){let l=t[r],c=Array.isArray(l),u=c?l[1]:l,d=u===null,h=i[r+1];h===ji&&(h=d?Si:void 0);let f=d?Tb(h,n):u===n?h:void 0;if(c&&!wp(f)&&(f=Tb(l,n)),wp(f)&&(a=f,o))return a;let m=t[r+1];r=o?sl(m):Tc(m)}if(e!==null){let l=s?e.residualClasses:e.residualStyles;l!=null&&(a=Tb(l,n))}return a}function wp(t){return t!==void 0}function TH(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=di(pr(t)))),t}function cA(t,e){return(t.flags&(e?8:16))!==0}function Zp(t,e,i){let n=Qe(),r=R1(n,t,e,i);sA(kp,iA,r,!0)}var Oy=class{destroy(e){}updateValue(e,i){}swap(e,i){let n=Math.min(e,i),r=Math.max(e,i),s=this.detach(r);if(r-n>1){let o=this.detach(n);this.attach(n,s),this.attach(r,o)}else this.attach(n,s)}move(e,i){this.attach(i,this.detach(e))}};function Vb(t,e,i,n,r){return t===i&&Object.is(e,n)?1:Object.is(r(t,e),r(i,n))?-1:0}function AH(t,e,i){let n,r,s=0,o=t.length-1,a=void 0;if(Array.isArray(e)){let l=e.length-1;for(;s<=o&&s<=l;){let c=t.at(s),u=e[s],d=Vb(s,c,s,u,i);if(d!==0){d<0&&t.updateValue(s,u),s++;continue}let h=t.at(o),f=e[l],m=Vb(o,h,l,f,i);if(m!==0){m<0&&t.updateValue(o,f),o--,l--;continue}let p=i(s,c),g=i(o,h),w=i(s,u);if(Object.is(w,g)){let C=i(l,f);Object.is(C,p)?(t.swap(s,o),t.updateValue(o,f),l--,o--):t.move(o,s),t.updateValue(s,u),s++;continue}if(n??=new Cp,r??=SD(t,s,o,i),Ny(t,n,s,w))t.updateValue(s,u),s++,o++;else if(r.has(w))n.set(p,t.detach(s)),o--;else{let C=t.create(s,e[s]);t.attach(s,C),s++,o++}}for(;s<=l;)ED(t,n,i,s,e[s]),s++}else if(e!=null){let l=e[Symbol.iterator](),c=l.next();for(;!c.done&&s<=o;){let u=t.at(s),d=c.value,h=Vb(s,u,s,d,i);if(h!==0)h<0&&t.updateValue(s,d),s++,c=l.next();else{n??=new Cp,r??=SD(t,s,o,i);let f=i(s,d);if(Ny(t,n,s,f))t.updateValue(s,d),s++,o++,c=l.next();else if(!r.has(f))t.attach(s,t.create(s,d)),s++,o++,c=l.next();else{let m=i(s,u);n.set(m,t.detach(s)),o--}}}for(;!c.done;)ED(t,n,i,t.length,c.value),c=l.next()}for(;s<=o;)t.destroy(t.detach(o--));n?.forEach(l=>{t.destroy(l)})}function Ny(t,e,i,n){return e!==void 0&&e.has(n)?(t.attach(i,e.get(n)),e.delete(n),!0):!1}function ED(t,e,i,n,r){if(Ny(t,e,n,i(n,r)))t.updateValue(n,r);else{let s=t.create(n,r);t.attach(n,s)}}function SD(t,e,i,n){let r=new Set;for(let s=e;s<=i;s++)r.add(n(s,t.at(s)));return r}var Cp=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let i=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(i)?(this.kvMap.set(e,this._vMap.get(i)),this._vMap.delete(i)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,i){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,i)}else this.kvMap.set(e,i)}forEach(e){for(let[i,n]of this.kvMap)if(e(n,i),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),e(n,i)}}};function ut(t,e){Zo("NgControlFlow");let i=Qe(),n=Go(),r=i[n]!==ji?i[n]:-1,s=r!==-1?xp(i,Rn+r):void 0,o=0;if(Bi(i,n,t)){let a=pt(null);try{if(s!==void 0&&OT(s,o),t!==-1){let l=Rn+t,c=xp(i,l),u=$y(i[nt],l),d=Ic(c,u.tView.ssrId),h=Id(i,u,e,{dehydratedView:d});Md(c,h,o,Sc(u,d))}}finally{pt(a)}}else if(s!==void 0){let a=LT(s,o);a!==void 0&&(a[Qn]=e)}}var Fy=class{constructor(e,i,n){this.lContainer=e,this.$implicit=i,this.$index=n}get $count(){return this.lContainer.length-Xn}};function L1(t,e){return e}var Py=class{constructor(e,i,n){this.hasEmptyBlock=e,this.trackByFn=i,this.liveCollection=n}};function Qo(t,e,i,n,r,s,o,a,l,c,u,d,h){Zo("NgControlFlow");let f=Qe(),m=Yt(),p=l!==void 0,g=Qe(),w=a?o.bind(g[Vi][Qn]):o,C=new Py(p,w);g[Rn+t]=C,yp(f,m,t+1,e,i,n,r,jo(m.consts,s)),p&&yp(f,m,t+2,l,c,u,d,jo(m.consts,h))}var Uy=class extends Oy{constructor(e,i,n){super(),this.lContainer=e,this.hostLView=i,this.templateTNode=n,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Xn}at(e){return this.getLView(e)[Qn].$implicit}attach(e,i){let n=i[Cc];this.needsIndexUpdate||=e!==this.length,Md(this.lContainer,i,e,Sc(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,RH(this.lContainer,e)}create(e,i){let n=Ic(this.lContainer,this.templateTNode.tView.ssrId),r=Id(this.hostLView,this.templateTNode,new Fy(this.lContainer,i,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),r}destroy(e){Bp(e[nt],e),this.operationsCounter?.recordDestroy()}updateValue(e,i){this.getLView(e)[Qn].$implicit=i}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(Pp(!0),cT(n,r,t6()));function FH(t,e,i,n,r){let s=e.consts,o=jo(s,n),a=Pc(e,t,8,"ng-container",o);o!==null&&mp(a,o,!0);let l=jo(s,r);return I1(e,i,a,l),e.queries!==null&&e.queries.elementStart(e,a),a}function Hi(t,e,i){let n=Qe(),r=Yt(),s=t+Rn,o=r.firstCreatePass?FH(s,r,n,e,i):r.data[s];ol(o,!0);let a=PH(r,n,o,t);return n[s]=a,Fp()&&jp(r,n,a,o),Ho(a,n),Lp(o)&&(x1(r,n,o),C1(r,o,n)),i!=null&&E1(n,o),Hi}function zi(){let t=On(),e=Yt();return o1()?a1():(t=t.parent,ol(t,!1)),e.firstCreatePass&&(Up(e,t),n1(t)&&e.queries.elementEnd(t)),zi}function al(t,e,i){return Hi(t,e,i),zi(),al}var PH=(t,e,i,n)=>(Pp(!0),sj(e[Zt],""));function lt(){return Qe()}function Wi(t,e,i){let n=Qe(),r=Go();if(Bi(n,r,e)){let s=Yt(),o=Lc();Sd(s,o,n,t,e,n[Zt],i,!0)}return Wi}function O1(t,e,i){let n=Qe(),r=Go();if(Bi(n,r,e)){let s=Yt(),o=Lc(),a=c1(s.data),l=TT(a,o,n);Sd(s,o,n,t,e,l,i,!0)}return O1}var qa=void 0;function UH(t){let e=t,i=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return i===1&&n===0?1:5}var $H=["en",[["a","p"],["AM","PM"],qa],[["AM","PM"],qa,qa],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],qa,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],qa,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",qa,"{1} 'at' {0}",qa],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",UH],Bb={};function gr(t){let e=VH(t),i=ID(e);if(i)return i;let n=e.split("-")[0];if(i=ID(n),i)return i;if(n==="en")return $H;throw new Te(701,!1)}function ID(t){return t in Bb||(Bb[t]=Cn.ng&&Cn.ng.common&&Cn.ng.common.locales&&Cn.ng.common.locales[t]),Bb[t]}var dn=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(dn||{});function VH(t){return t.toLowerCase().replace(/_/g,"-")}var Ep="en-US";var BH=Ep;function jH(t){typeof t=="string"&&(BH=t.toLowerCase().replace(/_/g,"-"))}var HH=(t,e,i)=>{};function oe(t,e,i,n){let r=Qe(),s=Yt(),o=On();return F1(s,r,r[Zt],o,t,e,n),oe}function N1(t,e){let i=On(),n=Qe(),r=Yt(),s=c1(r.data),o=TT(s,i,n);return F1(r,n,o,i,t,e),N1}function zH(t,e,i,n){let r=t.cleanup;if(r!=null)for(let s=0;sl?a[l]:null}typeof o=="string"&&(s+=2)}return null}function F1(t,e,i,n,r,s,o){let a=Lp(n),c=t.firstCreatePass&&kT(t),u=e[Qn],d=DT(e),h=!0;if(n.type&3||o){let p=mr(n,e),g=o?o(p):p,w=d.length,C=o?x=>o(hs(x[n.index])):n.index,E=null;if(!o&&a&&(E=zH(t,e,r,n.index)),E!==null){let x=E.__ngLastListenerFn__||E;x.__ngNextListenerFn__=s,E.__ngLastListenerFn__=s,h=!1}else{s=DD(n,e,u,s),HH(p,r,s);let x=i.listen(g,r,s);d.push(s,x),c&&c.push(r,C,w,w+1)}}else s=DD(n,e,u,s);let f=n.outputs,m;if(h&&f!==null&&(m=f[r])){let p=m.length;if(p)for(let g=0;g-1?qo(t.index,e):e;k1(o,5);let a=MD(e,i,n,s),l=r.__ngNextListenerFn__;for(;l;)a=MD(e,i,l,s)&&a,l=l.__ngNextListenerFn__;return a}}function te(t=1){return J4(t)}function WH(t,e){let i=null,n=l4(t);for(let r=0;r=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}function Mn(t){let e=q4();return r1(e,Rn+t)}function B(t,e=""){let i=Qe(),n=Yt(),r=t+Rn,s=n.firstCreatePass?Pc(n,r,1,e,null):n.data[r],o=YH(n,i,s,e,t);i[r]=o,Fp()&&jp(n,i,o,s),ol(s,!1)}var YH=(t,e,i,n,r)=>(Pp(!0),ij(e[Zt],n));function rt(t){return at("",t,""),rt}function at(t,e,i){let n=Qe(),r=R1(n,t,e,i);return r!==ji&&RT(n,Zs(),r),at}function Qp(t,e,i,n,r){let s=Qe(),o=hH(s,t,e,i,n,r);return o!==ji&&RT(s,Zs(),o),Qp}function Js(t,e,i){QT(e)&&(e=e());let n=Qe(),r=Go();if(Bi(n,r,e)){let s=Yt(),o=Lc();Sd(s,o,n,t,e,n[Zt],i,!1)}return Js}function Jo(t,e){let i=QT(t);return i&&t.set(e),i}function eo(t,e){let i=Qe(),n=Yt(),r=On();return F1(n,i,i[Zt],r,t,e),eo}function KH(t,e,i){let n=Yt();if(n.firstCreatePass){let r=Ws(t);Vy(i,n.data,n.blueprint,r,!0),Vy(e,n.data,n.blueprint,r,!1)}}function Vy(t,e,i,n,r){if(t=ui(t),Array.isArray(t))for(let s=0;s>20;if(wc(t)||!t.multi){let f=new tl(c,r,F),m=Hb(l,e,r?u:u+h,d);m===-1?(ry(ap(a,o),s,l),jb(s,t,e.length),e.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),i.push(f),o.push(f)):(i[m]=f,o[m]=f)}else{let f=Hb(l,e,u+h,d),m=Hb(l,e,u,u+h),p=f>=0&&i[f],g=m>=0&&i[m];if(r&&!g||!r&&!p){ry(ap(a,o),s,l);let w=XH(r?QH:ZH,i.length,r,n,c);!r&&g&&(i[m].providerFactory=w),jb(s,t,e.length,0),e.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),i.push(w),o.push(w)}else{let w=dA(i[r?m:f],c,!r&&n);jb(s,t,f>-1?f:m,w)}!r&&n&&g&&i[m].componentProviders++}}}function jb(t,e,i,n){let r=wc(e),s=C4(e);if(r||s){let l=(s?ui(e.useClass):e).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){let u=c.indexOf(i);u===-1?c.push(i,[n,l]):c[u+1].push(n,l)}else c.push(i,l)}}}function dA(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function Hb(t,e,i,n){for(let r=i;r{i.providersResolver=(n,r)=>KH(n,r?r(t):t,e)}}var JH=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=tk(!1,n.type),s=r.length>0?Kp([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,s)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=J({token:e,providedIn:"environment",factory:()=>new e(V(An))});let t=e;return t})();function Ge(t){Zo("NgStandalone"),t.getStandaloneInjector=e=>e.get(JH).getOrCreateStandaloneInjector(t)}function ll(t,e,i,n){return fA(Qe(),Np(),t,e,i,n)}function U1(t,e,i,n,r){return mA(Qe(),Np(),t,e,i,n,r)}function hA(t,e){let i=t[e];return i===ji?void 0:i}function fA(t,e,i,n,r,s){let o=e+i;return Bi(t,o,r)?JT(t,o+1,s?n.call(s,r):n(r)):hA(t,o+1)}function mA(t,e,i,n,r,s,o){let a=e+i;return eA(t,a,r,s)?JT(t,a+2,o?n.call(o,r,s):n(r,s)):hA(t,a+2)}function Uc(t,e){let i=Yt(),n,r=t+Rn;i.firstCreatePass?(n=e8(e,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks??=[]).push(r,n.onDestroy)):n=i.data[r];let s=n.factory||(n.factory=Za(n.type,!0)),o,a=Ei(F);try{let l=op(!1),c=s();return op(l),GH(i,Qe(),r,c),c}finally{Ei(a)}}function e8(t,e){if(e)for(let i=e.length-1;i>=0;i--){let n=e[i];if(t===n.name)return n}}function Xp(t,e,i){let n=t+Rn,r=Qe(),s=r1(r,n);return gA(r,n)?fA(r,Np(),e,s.transform,i,s):s.transform(i)}function pA(t,e,i,n){let r=t+Rn,s=Qe(),o=r1(s,r);return gA(s,r)?mA(s,Np(),e,o.transform,i,n,o):o.transform(i,n)}function gA(t,e){return t[nt].data[e].pure}function cl(t,e){return qp(t,e)}var Hm=null;function t8(t){Hm!==null&&(t.defaultEncapsulation!==Hm.defaultEncapsulation||t.preserveWhitespaces!==Hm.preserveWhitespaces)||(Hm=t)}var Jp=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var $1=new Q(""),kd=new Q(""),e0=(()=>{let e=class e{constructor(n,r,s){this._ngZone=n,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,V1||(n8(s),s.addToWindow(r)),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:()=>{be.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!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(r=>r.updateCb&&r.updateCb(n)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,s){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==o),n()},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:s})}whenStable(n,r,s){if(s&&!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,r,s),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,s){return[]}};e.\u0275fac=function(r){return new(r||e)(V(be),V(t0),V(kd))},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})(),t0=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}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,r=!0){return V1?.findTestabilityInTree(this,n,r)??null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function n8(t){V1=t}var V1;function ea(t){return!!t&&typeof t.then=="function"}function B1(t){return!!t&&typeof t.subscribe=="function"}var n0=new Q(""),_A=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=Y(n0,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let s of this.appInits){let o=s();if(ea(o))n.push(o);else if(B1(o)){let a=new Promise((l,c)=>{o.subscribe({complete:l,error:c})});n.push(a)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(s=>{this.reject(s)}),n.length===0&&r(),this.initialized=!0}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),i0=new Q("");function i8(){fM(()=>{throw new Te(600,!1)})}function r8(t){return t.isBoundToModule}var s8=10;function o8(t,e,i){try{let n=i();return ea(n)?n.catch(r=>{throw e.runOutsideAngular(()=>t.handleError(r)),r}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}function vA(t,e){return Array.isArray(e)?e.reduce(vA,t):Z(Z({},t),e)}var Hr=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Y($k),this.afterRenderEffectManager=Y(Gp),this.zonelessEnabled=Y(BT),this.externalTestViews=new Set,this.beforeRender=new ye,this.afterTick=new ye,this.componentTypes=[],this.components=[],this.isStable=Y(ms).hasPendingTasks.pipe(ve(n=>!n)),this._injector=Y(An)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){let s=n instanceof up;if(!this._injector.get(_A).done){let f=!s&&QD(n),m=!1;throw new Te(405,m)}let a;s?a=n:a=this._injector.get(fr).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let l=r8(a)?void 0:this._injector.get(zo),c=r||a.selector,u=a.create(It.NULL,[],c,l),d=u.location.nativeElement,h=u.injector.get($1,null);return h?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),Zm(this.components,u),h?.unregisterApplication(d)}),this._loadComponent(u),u}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new Te(101,!1);let r=pt(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(s){this.internalErrorHandler(s)}finally{this._runningTick=!1,pt(r),this.afterTick.next()}}detectChangesInAttachedViews(n){let r=null;this._injector.destroyed||(r=this._injector.get(Dc,null,{optional:!0}));let s=0,o=this.afterRenderEffectManager;for(;spd(l))&&(o.execute(),!this.allViews.some(({_lView:l})=>pd(l))))break}}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Zm(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(i0,[]);[...this._bootstrapListeners,...r].forEach(s=>s(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),()=>Zm(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new Te(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Zm(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function a8(t,e,i,n){if(!i&&!pd(t))return;PT(t,e,i&&!n?0:1)}var jy=class{constructor(e,i){this.ngModuleFactory=e,this.componentFactories=i}},r0=(()=>{let e=class e{compileModuleSync(n){return new bp(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),s=XD(n),o=aT(s.declarations).reduce((a,l)=>{let c=Bo(l);return c&&a.push(new kc(c)),a},[]);return new jy(r,o)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),l8=new Q("");function c8(t,e,i){let n=new bp(i);return Promise.resolve(n)}function kD(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var u8=(()=>{let e=class e{constructor(){this.zone=Y(be),this.changeDetectionScheduler=Y(Mc),this.applicationRef=Y(Hr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function d8({ngZoneFactory:t,ignoreChangesOutsideZone:e}){return t??=()=>new be(bA()),[{provide:be,useFactory:t},{provide:bc,multi:!0,useFactory:()=>{let i=Y(u8,{optional:!0});return()=>i.initialize()}},{provide:bc,multi:!0,useFactory:()=>{let i=Y(f8);return()=>{i.initialize()}}},{provide:$k,useFactory:h8},e===!0?{provide:jT,useValue:!0}:[]]}function h8(){let t=Y(be),e=Y(hi);return i=>t.runOutsideAngular(()=>e.handleError(i))}function bA(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var f8=(()=>{let e=class e{constructor(){this.subscription=new tt,this.initialized=!1,this.zone=Y(be),this.pendingTasks=Y(ms)}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(()=>{be.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{be.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var m8=(()=>{let e=class e{constructor(){this.appRef=Y(Hr),this.taskService=Y(ms),this.ngZone=Y(be),this.zonelessEnabled=Y(BT),this.disableScheduling=Y(jT,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new tt,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof dp||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?gD:HT;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=r(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=r(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&be.isInAngularZone())}tick(n){if(this.runningTick||this.appRef.destroyed)return;let r=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(n)},void 0,this.schedulerTickApplyArgs)}catch(s){throw this.taskService.remove(r),s}finally{this.cleanup()}this.useMicrotaskScheduler=!0,gD(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(r)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function p8(){return typeof $localize<"u"&&$localize.locale||Ep}var $c=new Q("",{providedIn:"root",factory:()=>Y($c,dt.Optional|dt.SkipSelf)||p8()});var yA=new Q(""),wA=(()=>{let e=class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){let s=w5(r?.ngZone,bA({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return s.run(()=>{let o=r?.ignoreChangesOutsideZone,a=sH(n.moduleType,this.injector,[...d8({ngZoneFactory:()=>s,ignoreChangesOutsideZone:o}),{provide:Mc,useExisting:m8}]),l=a.injector.get(hi,null);return s.runOutsideAngular(()=>{let c=s.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{Zm(this._modules,a),c.unsubscribe()})}),o8(l,s,()=>{let c=a.injector.get(_A);return c.runInitializers(),c.donePromise.then(()=>{let u=a.injector.get($c,Ep);return jH(u||Ep),this._moduleDoBootstrap(a),a})})})}bootstrapModule(n,r=[]){let s=vA({},r);return c8(this.injector,s,n).then(o=>this.bootstrapModuleFactory(o,s))}_moduleDoBootstrap(n){let r=n.injector.get(Hr);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(s=>r.bootstrap(s));else if(n.instance.ngDoBootstrap)n.instance.ngDoBootstrap(r);else throw new Te(-403,!1);this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Te(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());let n=this._injector.get(yA,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(r){return new(r||e)(V(It))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),ud=null,CA=new Q("");function g8(t){if(ud&&!ud.get(CA,!1))throw new Te(400,!1);i8(),ud=t;let e=t.get(wA);return b8(t),e}function j1(t,e,i=[]){let n=`Platform: ${e}`,r=new Q(n);return(s=[])=>{let o=xA();if(!o||o.injector.get(CA,!1)){let a=[...i,...s,{provide:r,useValue:!0}];t?t(a):g8(_8(a,n))}return v8(r)}}function _8(t=[],e){return It.create({name:e,providers:[{provide:Tp,useValue:"platform"},{provide:yA,useValue:new Set([()=>ud=null])},...t]})}function v8(t){let e=xA();if(!e)throw new Te(401,!1);return e}function xA(){return ud?.get(wA)??null}function b8(t){t.get(m1,null)?.forEach(i=>i())}var Ye=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=y8;let t=e;return t})();function y8(t){return w8(On(),Qe(),(t&16)===16)}function w8(t,e,i){if(Rp(t)&&!i){let n=qo(t.index,e);return new rl(n,n)}else if(t.type&47){let n=e[Vi];return new rl(n,e)}return null}var Hy=class{constructor(){}supports(e){return XT(e)}create(e){return new zy(e)}},C8=(t,e)=>e,zy=class{constructor(e){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=e||C8}forEachItem(e){let i;for(i=this._itHead;i!==null;i=i._next)e(i)}forEachOperation(e){let i=this._itHead,n=this._removalsHead,r=0,s=null;for(;i||n;){let o=!n||i&&i.currentIndex{o=this._trackByFn(r,a),i===null||!Object.is(i.trackById,o)?(i=this._mismatch(i,a,o,r),n=!0):(n&&(i=this._verifyReinsertion(i,a,o,r)),Object.is(i.item,a)||this._addIdentityChange(i,a)),i=i._next,r++}),this.length=r;return this._truncate(i),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,i,n,r){let s;return e===null?s=this._itTail:(s=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,i)||this._addIdentityChange(e,i),this._reinsertAfter(e,s,r)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,r),e!==null?(Object.is(e.item,i)||this._addIdentityChange(e,i),this._moveAfter(e,s,r)):e=this._addAfter(new Wy(i,n),s,r)),e}_verifyReinsertion(e,i,n,r){let s=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return s!==null?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;e!==null;){let i=e._next;this._addToRemovals(this._unlink(e)),e=i}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(e,i,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let r=e._prevRemoved,s=e._nextRemoved;return r===null?this._removalsHead=s:r._nextRemoved=s,s===null?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,i,n),this._addToMoves(e,n),e}_moveAfter(e,i,n){return this._unlink(e),this._insertAfter(e,i,n),this._addToMoves(e,n),e}_addAfter(e,i,n){return this._insertAfter(e,i,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,i,n){let r=i===null?this._itHead:i._next;return e._next=r,e._prev=i,r===null?this._itTail=e:r._prev=e,i===null?this._itHead=e:i._next=e,this._linkedRecords===null&&(this._linkedRecords=new Sp),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let i=e._prev,n=e._next;return i===null?this._itHead=n:i._next=n,n===null?this._itTail=i:n._prev=i,e}_addToMoves(e,i){return e.previousIndex===i||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Sp),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,i){return e.item=i,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Wy=class{constructor(e,i){this.item=e,this.trackById=i,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}},qy=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,i){let n;for(n=this._head;n!==null;n=n._nextDup)if((i===null||i<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let i=e._prevDup,n=e._nextDup;return i===null?this._head=n:i._nextDup=n,n===null?this._tail=i:n._prevDup=i,this._head===null}},Sp=class{constructor(){this.map=new Map}put(e){let i=e.trackById,n=this.map.get(i);n||(n=new qy,this.map.set(i,n)),n.add(e)}get(e,i){let n=e,r=this.map.get(n);return r?r.get(e,i):null}remove(e){let i=e.trackById;return this.map.get(i).remove(e)&&this.map.delete(i),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function TD(t,e,i){let n=t.previousIndex;if(n===null)return n;let r=0;return i&&n{let e=class e{constructor(n){this.factories=n}static create(n,r){if(r!=null){let s=r.factories.slice();n=n.concat(s)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||AD()),deps:[[e,new Wo,new Ys]]}}find(n){let r=this.factories.find(s=>s.supports(n));if(r!=null)return r;throw new Te(901,!1)}};e.\u0275prov=J({token:e,providedIn:"root",factory:AD});let t=e;return t})();var EA=j1(null,"core",[]),SA=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(r){return new(r||e)(V(Hr))},e.\u0275mod=ce({type:e}),e.\u0275inj=le({});let t=e;return t})();function Ne(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function hn(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}function Ad(t){let e=pt(null);try{return t()}finally{pt(e)}}var x8=new Q("",{providedIn:"root",factory:()=>Y(E8)}),E8=(()=>{let e=class e{};e.\u0275prov=J({token:e,providedIn:"root",factory:()=>new Gy});let t=e;return t})(),Gy=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=Y(ms),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),this.taskId===null){let i=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(i),this.taskId=null})}}enqueue(e){let i=e.creationZone;this.queues.has(i)||this.queues.set(i,new Set);let n=this.queues.get(i);n.has(e)||(this.queuedEffectCount++,n.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,i]of this.queues)e===null?this.flushQueue(i):e.run(()=>this.flushQueue(i))}flushQueue(e){for(let i of e)e.delete(i),this.queuedEffectCount--,i.run()}},Yy=class{constructor(e,i,n,r,s,o){this.scheduler=e,this.effectFn=i,this.creationZone=n,this.injector=s,this.watcher=mM(a=>this.runEffect(a),()=>this.schedule(),o),this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(i){this.injector.get(hi,null,{optional:!0})?.handleError(i)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function H1(t,e){Zo("NgSignals"),!e?.injector&&e1(H1);let i=e?.injector??Y(It),n=e?.manualCleanup!==!0?i.get(Cd):null,r=new Yy(i.get(x8),t,typeof Zone>"u"?null:Zone.current,n,i,e?.allowSignalWrites??!1),s=i.get(Ye,null,{optional:!0});return!s||!(s._lView[Je]&8)?r.watcher.notify():(s._lView[Wm]??=[]).push(r.watcher.notify),r}function IA(t){let e=Bo(t);if(!e)return null;let i=new kc(e);return{get selector(){return i.selector},get type(){return i.componentType},get inputs(){return i.inputs},get outputs(){return i.outputs},get ngContentSelectors(){return i.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var LA=null;function ps(){return LA}function OA(t){LA??=t}var f0=class{};var Fe=new Q(""),tw=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:()=>Y(S8),providedIn:"platform"});let t=e;return t})(),NA=new Q(""),S8=(()=>{let e=class e extends tw{constructor(){super(),this._doc=Y(Fe),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ps().getBaseHref(this._doc)}onPopState(n){let r=ps().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=ps().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.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,r,s){this._history.pushState(n,r,s)}replaceState(n,r,s){this._history.replaceState(n,r,s)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function nw(t,e){if(t.length==0)return e;if(e.length==0)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,i==2?t+e.substring(1):i==1?t+e:t+"/"+e}function MA(t){let e=t.match(/#|\?|$/),i=e&&e.index||t.length,n=i-(t[i-1]==="/"?1:0);return t.slice(0,n)+t.slice(i)}function no(t){return t&&t[0]!=="?"?"?"+t:t}var ro=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:()=>Y(iw),providedIn:"root"});let t=e;return t})(),FA=new Q(""),iw=(()=>{let e=class e extends ro{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??Y(Fe).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 nw(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+no(this._platformLocation.search),s=this._platformLocation.hash;return s&&n?`${r}${s}`:r}pushState(n,r,s,o){let a=this.prepareExternalUrl(s+no(o));this._platformLocation.pushState(n,r,a)}replaceState(n,r,s,o){let a=this.prepareExternalUrl(s+no(o));this._platformLocation.replaceState(n,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(r){return new(r||e)(V(tw),V(FA,8))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),PA=(()=>{let e=class e extends ro{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],r!=null&&(this._baseHref=r)}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}path(n=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=nw(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,s,o){let a=this.prepareExternalUrl(s+no(o));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,r,a)}replaceState(n,r,s,o){let a=this.prepareExternalUrl(s+no(o));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(r){return new(r||e)(V(tw),V(FA,8))},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})(),na=(()=>{let e=class e{constructor(n){this._subject=new se,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=D8(MA(DA(r))),this._locationStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+no(r))}normalize(n){return e.stripTrailingSlash(M8(this._basePath,DA(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",s=null){this._locationStrategy.pushState(s,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+no(r)),s)}replaceState(n,r="",s=null){this._locationStrategy.replaceState(s,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+no(r)),s)}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(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(s=>s(n,r))}subscribe(n,r,s){return this._subject.subscribe({next:n,error:r,complete:s})}};e.normalizeQueryParams=no,e.joinWithSlash=nw,e.stripTrailingSlash=MA,e.\u0275fac=function(r){return new(r||e)(V(ro))},e.\u0275prov=J({token:e,factory:()=>I8(),providedIn:"root"});let t=e;return t})();function I8(){return new na(V(ro))}function M8(t,e){if(!t||!e.startsWith(t))return e;let i=e.substring(t.length);return i===""||["/",";","?","#"].includes(i[0])?i:e}function DA(t){return t.replace(/\/index.html$/,"")}function D8(t){if(new RegExp("^(https?:)?//").test(t)){let[,i]=t.split(/\/\/[^\/]+/);return i}return t}var mi=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(mi||{}),zt=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(zt||{}),qi=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(qi||{}),ta={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function k8(t){return gr(t)[dn.LocaleId]}function T8(t,e,i){let n=gr(t),r=[n[dn.DayPeriodsFormat],n[dn.DayPeriodsStandalone]],s=_r(r,e);return _r(s,i)}function A8(t,e,i){let n=gr(t),r=[n[dn.DaysFormat],n[dn.DaysStandalone]],s=_r(r,e);return _r(s,i)}function R8(t,e,i){let n=gr(t),r=[n[dn.MonthsFormat],n[dn.MonthsStandalone]],s=_r(r,e);return _r(s,i)}function L8(t,e){let n=gr(t)[dn.Eras];return _r(n,e)}function s0(t,e){let i=gr(t);return _r(i[dn.DateFormat],e)}function o0(t,e){let i=gr(t);return _r(i[dn.TimeFormat],e)}function a0(t,e){let n=gr(t)[dn.DateTimeFormat];return _r(n,e)}function g0(t,e){let i=gr(t),n=i[dn.NumberSymbols][e];if(typeof n>"u"){if(e===ta.CurrencyDecimal)return i[dn.NumberSymbols][ta.Decimal];if(e===ta.CurrencyGroup)return i[dn.NumberSymbols][ta.Group]}return n}function UA(t){if(!t[dn.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[dn.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function O8(t){let e=gr(t);return UA(e),(e[dn.ExtraData][2]||[]).map(n=>typeof n=="string"?W1(n):[W1(n[0]),W1(n[1])])}function N8(t,e,i){let n=gr(t);UA(n);let r=[n[dn.ExtraData][0],n[dn.ExtraData][1]],s=_r(r,e)||[];return _r(s,i)||[]}function _r(t,e){for(let i=e;i>-1;i--)if(typeof t[i]<"u")return t[i];throw new Error("Locale data API: locale data undefined")}function W1(t){let[e,i]=t.split(":");return{hours:+e,minutes:+i}}var F8=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,l0={},P8=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,io=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(io||{}),Lt=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(Lt||{}),Rt=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(Rt||{});function U8(t,e,i,n){let r=G8(t);e=to(i,e)||e;let o=[],a;for(;e;)if(a=P8.exec(e),a){o=o.concat(a.slice(1));let u=o.pop();if(!u)break;e=u}else{o.push(e);break}let l=r.getTimezoneOffset();n&&(l=VA(n,l),r=q8(r,n,!0));let c="";return o.forEach(u=>{let d=z8(u);c+=d?d(r,i,l):u==="''"?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function m0(t,e,i){let n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function to(t,e){let i=k8(t);if(l0[i]??={},l0[i][e])return l0[i][e];let n="";switch(e){case"shortDate":n=s0(t,qi.Short);break;case"mediumDate":n=s0(t,qi.Medium);break;case"longDate":n=s0(t,qi.Long);break;case"fullDate":n=s0(t,qi.Full);break;case"shortTime":n=o0(t,qi.Short);break;case"mediumTime":n=o0(t,qi.Medium);break;case"longTime":n=o0(t,qi.Long);break;case"fullTime":n=o0(t,qi.Full);break;case"short":let r=to(t,"shortTime"),s=to(t,"shortDate");n=c0(a0(t,qi.Short),[r,s]);break;case"medium":let o=to(t,"mediumTime"),a=to(t,"mediumDate");n=c0(a0(t,qi.Medium),[o,a]);break;case"long":let l=to(t,"longTime"),c=to(t,"longDate");n=c0(a0(t,qi.Long),[l,c]);break;case"full":let u=to(t,"fullTime"),d=to(t,"fullDate");n=c0(a0(t,qi.Full),[u,d]);break}return n&&(l0[i][e]=n),n}function c0(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(i,n){return e!=null&&n in e?e[n]:i})),t}function zr(t,e,i="-",n,r){let s="";(t<0||r&&t<=0)&&(r?t=-t+1:(t=-t,s=i));let o=String(t);for(;o.length0||a>-i)&&(a+=i),t===Lt.Hours)a===0&&i===-12&&(a=12);else if(t===Lt.FractionalSeconds)return $8(a,e);let l=g0(o,ta.MinusSign);return zr(a,e,l,n,r)}}function V8(t,e){switch(t){case Lt.FullYear:return e.getFullYear();case Lt.Month:return e.getMonth();case Lt.Date:return e.getDate();case Lt.Hours:return e.getHours();case Lt.Minutes:return e.getMinutes();case Lt.Seconds:return e.getSeconds();case Lt.FractionalSeconds:return e.getMilliseconds();case Lt.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function Kt(t,e,i=mi.Format,n=!1){return function(r,s){return B8(r,s,t,e,i,n)}}function B8(t,e,i,n,r,s){switch(i){case Rt.Months:return R8(e,r,n)[t.getMonth()];case Rt.Days:return A8(e,r,n)[t.getDay()];case Rt.DayPeriods:let o=t.getHours(),a=t.getMinutes();if(s){let c=O8(e),u=N8(e,r,n),d=c.findIndex(h=>{if(Array.isArray(h)){let[f,m]=h,p=o>=f.hours&&a>=f.minutes,g=o0?Math.floor(r/60):Math.ceil(r/60);switch(t){case io.Short:return(r>=0?"+":"")+zr(o,2,s)+zr(Math.abs(r%60),2,s);case io.ShortGMT:return"GMT"+(r>=0?"+":"")+zr(o,1,s);case io.Long:return"GMT"+(r>=0?"+":"")+zr(o,2,s)+":"+zr(Math.abs(r%60),2,s);case io.Extended:return n===0?"Z":(r>=0?"+":"")+zr(o,2,s)+":"+zr(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${t}"`)}}}var j8=0,h0=4;function H8(t){let e=m0(t,j8,1).getDay();return m0(t,0,1+(e<=h0?h0:h0+7)-e)}function $A(t){let e=t.getDay(),i=e===0?-3:h0-e;return m0(t.getFullYear(),t.getMonth(),t.getDate()+i)}function q1(t,e=!1){return function(i,n){let r;if(e){let s=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,o=i.getDate();r=1+Math.floor((o+s)/7)}else{let s=$A(i),o=H8(s.getFullYear()),a=s.getTime()-o.getTime();r=1+Math.round(a/6048e5)}return zr(r,t,g0(n,ta.MinusSign))}}function d0(t,e=!1){return function(i,n){let s=$A(i).getFullYear();return zr(s,t,g0(n,ta.MinusSign),e)}}var G1={};function z8(t){if(G1[t])return G1[t];let e;switch(t){case"G":case"GG":case"GGG":e=Kt(Rt.Eras,zt.Abbreviated);break;case"GGGG":e=Kt(Rt.Eras,zt.Wide);break;case"GGGGG":e=Kt(Rt.Eras,zt.Narrow);break;case"y":e=_n(Lt.FullYear,1,0,!1,!0);break;case"yy":e=_n(Lt.FullYear,2,0,!0,!0);break;case"yyy":e=_n(Lt.FullYear,3,0,!1,!0);break;case"yyyy":e=_n(Lt.FullYear,4,0,!1,!0);break;case"Y":e=d0(1);break;case"YY":e=d0(2,!0);break;case"YYY":e=d0(3);break;case"YYYY":e=d0(4);break;case"M":case"L":e=_n(Lt.Month,1,1);break;case"MM":case"LL":e=_n(Lt.Month,2,1);break;case"MMM":e=Kt(Rt.Months,zt.Abbreviated);break;case"MMMM":e=Kt(Rt.Months,zt.Wide);break;case"MMMMM":e=Kt(Rt.Months,zt.Narrow);break;case"LLL":e=Kt(Rt.Months,zt.Abbreviated,mi.Standalone);break;case"LLLL":e=Kt(Rt.Months,zt.Wide,mi.Standalone);break;case"LLLLL":e=Kt(Rt.Months,zt.Narrow,mi.Standalone);break;case"w":e=q1(1);break;case"ww":e=q1(2);break;case"W":e=q1(1,!0);break;case"d":e=_n(Lt.Date,1);break;case"dd":e=_n(Lt.Date,2);break;case"c":case"cc":e=_n(Lt.Day,1);break;case"ccc":e=Kt(Rt.Days,zt.Abbreviated,mi.Standalone);break;case"cccc":e=Kt(Rt.Days,zt.Wide,mi.Standalone);break;case"ccccc":e=Kt(Rt.Days,zt.Narrow,mi.Standalone);break;case"cccccc":e=Kt(Rt.Days,zt.Short,mi.Standalone);break;case"E":case"EE":case"EEE":e=Kt(Rt.Days,zt.Abbreviated);break;case"EEEE":e=Kt(Rt.Days,zt.Wide);break;case"EEEEE":e=Kt(Rt.Days,zt.Narrow);break;case"EEEEEE":e=Kt(Rt.Days,zt.Short);break;case"a":case"aa":case"aaa":e=Kt(Rt.DayPeriods,zt.Abbreviated);break;case"aaaa":e=Kt(Rt.DayPeriods,zt.Wide);break;case"aaaaa":e=Kt(Rt.DayPeriods,zt.Narrow);break;case"b":case"bb":case"bbb":e=Kt(Rt.DayPeriods,zt.Abbreviated,mi.Standalone,!0);break;case"bbbb":e=Kt(Rt.DayPeriods,zt.Wide,mi.Standalone,!0);break;case"bbbbb":e=Kt(Rt.DayPeriods,zt.Narrow,mi.Standalone,!0);break;case"B":case"BB":case"BBB":e=Kt(Rt.DayPeriods,zt.Abbreviated,mi.Format,!0);break;case"BBBB":e=Kt(Rt.DayPeriods,zt.Wide,mi.Format,!0);break;case"BBBBB":e=Kt(Rt.DayPeriods,zt.Narrow,mi.Format,!0);break;case"h":e=_n(Lt.Hours,1,-12);break;case"hh":e=_n(Lt.Hours,2,-12);break;case"H":e=_n(Lt.Hours,1);break;case"HH":e=_n(Lt.Hours,2);break;case"m":e=_n(Lt.Minutes,1);break;case"mm":e=_n(Lt.Minutes,2);break;case"s":e=_n(Lt.Seconds,1);break;case"ss":e=_n(Lt.Seconds,2);break;case"S":e=_n(Lt.FractionalSeconds,1);break;case"SS":e=_n(Lt.FractionalSeconds,2);break;case"SSS":e=_n(Lt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=u0(io.Short);break;case"ZZZZZ":e=u0(io.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=u0(io.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=u0(io.Long);break;default:return null}return G1[t]=e,e}function VA(t,e){t=t.replace(/:/g,"");let i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function W8(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function q8(t,e,i){let n=i?-1:1,r=t.getTimezoneOffset(),s=VA(e,r);return W8(t,n*(s-r))}function G8(t){if(kA(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[r,s=1,o=1]=t.split("-").map(a=>+a);return m0(r,s-1,o)}let i=parseFloat(t);if(!isNaN(t-i))return new Date(i);let n;if(n=t.match(F8))return Y8(n)}let e=new Date(t);if(!kA(e))throw new Error(`Unable to convert "${t}" into a date`);return e}function Y8(t){let e=new Date(0),i=0,n=0,r=t[8]?e.setUTCFullYear:e.setFullYear,s=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),r.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let o=Number(t[4]||0)-i,a=Number(t[5]||0)-n,l=Number(t[6]||0),c=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return s.call(e,o,a,l,c),e}function kA(t){return t instanceof Date&&!isNaN(t.valueOf())}function _0(t,e){e=encodeURIComponent(e);for(let i of t.split(";")){let n=i.indexOf("="),[r,s]=n==-1?[i,""]:[i.slice(0,n),i.slice(n+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}var Y1=/\s+/,TA=[],vr=(()=>{let e=class e{constructor(n,r){this._ngEl=n,this._renderer=r,this.initialClasses=TA,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(Y1):TA}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Y1):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let s=this.stateMap.get(n);s!==void 0?(s.enabled!==r&&(s.changed=!0,s.enabled=r),s.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],s=n[1];s.changed?(this._toggleClass(r,s.enabled),s.changed=!1):s.touched||(s.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),s.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(Y1).forEach(s=>{r?this._renderer.addClass(this._ngEl.nativeElement,s):this._renderer.removeClass(this._ngEl.nativeElement,s)})}};e.\u0275fac=function(r){return new(r||e)(F(xe),F(Ko))},e.\u0275dir=Me({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var K1=class{constructor(e,i,n,r){this.$implicit=e,this.ngForOf=i,this.index=n,this.count=r}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}},gs=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,s){this._viewContainer=n,this._template=r,this._differs=s,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 r=this._viewContainer;n.forEachOperation((s,o,a)=>{if(s.previousIndex==null)r.createEmbeddedView(this._template,new K1(s.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)r.remove(o===null?void 0:o);else if(o!==null){let l=r.get(o);r.move(l,a),AA(l,s)}});for(let s=0,o=r.length;s{let o=r.get(s.currentIndex);AA(o,s)})}static ngTemplateContextGuard(n,r){return!0}};e.\u0275fac=function(r){return new(r||e)(F(un),F($n),F(Td))},e.\u0275dir=Me({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function AA(t,e){t.context.$implicit=e.item}var Di=(()=>{let e=class e{constructor(n,r){this._viewContainer=n,this._context=new Z1,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){RA("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){RA("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}};e.\u0275fac=function(r){return new(r||e)(F(un),F($n))},e.\u0275dir=Me({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),Z1=class{constructor(){this.$implicit=null,this.ngIf=null}};function RA(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${di(e)}'.`)}var v0=(()=>{let e=class e{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let s=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,s,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,s)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,s):!1,get:(n,r,s)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,s)}})}};e.\u0275fac=function(r){return new(r||e)(F(un))},e.\u0275dir=Me({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Mt]});let t=e;return t})();function BA(t,e){return new Te(2100,!1)}var Q1=class{createSubscription(e,i){return Ad(()=>e.subscribe({next:i,error:n=>{throw n}}))}dispose(e){Ad(()=>e.unsubscribe())}},X1=class{createSubscription(e,i){return e.then(i,n=>{throw n})}dispose(e){}},K8=new X1,Z8=new Q1,jA=(()=>{let e=class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(ea(n))return K8;if(B1(n))return Z8;throw BA(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(r){return new(r||e)(F(Ye,16))},e.\u0275pipe=wd({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var Q8="mediumDate",X8=new Q(""),J8=new Q(""),HA=(()=>{let e=class e{constructor(n,r,s){this.locale=n,this.defaultTimezone=r,this.defaultOptions=s}transform(n,r,s,o){if(n==null||n===""||n!==n)return null;try{let a=r??this.defaultOptions?.dateFormat??Q8,l=s??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return U8(n,a,o||this.locale,l)}catch(a){throw BA(e,a.message)}}};e.\u0275fac=function(r){return new(r||e)(F($c,16),F(X8,24),F(J8,24))},e.\u0275pipe=wd({name:"date",type:e,pure:!0,standalone:!0});let t=e;return t})();var zA=(()=>{let e=class e{transform(n){return JSON.stringify(n,null,2)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275pipe=wd({name:"json",type:e,pure:!1,standalone:!0});let t=e;return t})();var Wt=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({});let t=e;return t})(),rw="browser",ez="server";function ul(t){return t===rw}function b0(t){return t===ez}var WA=(()=>{let e=class e{};e.\u0275prov=J({token:e,providedIn:"root",factory:()=>ul(Y(fi))?new J1(Y(Fe),window):new ew});let t=e;return t})(),J1=class{constructor(e,i){this.document=e,this.window=i,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let i=tz(this.document,e);i&&(this.scrollToElement(i),i.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let i=e.getBoundingClientRect(),n=i.left+this.window.pageXOffset,r=i.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}};function tz(t,e){let i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;for(;r;){let s=r.shadowRoot;if(s){let o=s.getElementById(e)||s.querySelector(`[name="${e}"]`);if(o)return o}r=n.nextNode()}}return null}var ew=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},Vc=class{};var Ld=class{},w0=class{},Bn=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` -`).forEach(i=>{let n=i.indexOf(":");if(n>0){let r=i.slice(0,n),s=r.toLowerCase(),o=i.slice(n+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((i,n)=>{this.setHeaderEntries(n,i)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([i,n])=>{this.setHeaderEntries(i,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let i=this.headers.get(e.toLowerCase());return i&&i.length>0?i[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,i){return this.clone({name:e,value:i,op:"a"})}set(e,i){return this.clone({name:e,value:i,op:"s"})}delete(e,i){return this.clone({name:e,value:i,op:"d"})}maybeSetNormalizedName(e,i){this.normalizedNames.has(i)||this.normalizedNames.set(i,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(i=>{this.headers.set(i,e.headers.get(i)),this.normalizedNames.set(i,e.normalizedNames.get(i))})}clone(e){let i=new t;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}applyUpdate(e){let i=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,i);let r=(e.op==="a"?this.headers.get(i):void 0)||[];r.push(...n),this.headers.set(i,r);break;case"d":let s=e.value;if(!s)this.headers.delete(i),this.normalizedNames.delete(i);else{let o=this.headers.get(i);if(!o)return;o=o.filter(a=>s.indexOf(a)===-1),o.length===0?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,o)}break}}setHeaderEntries(e,i){let n=(Array.isArray(i)?i:[i]).map(s=>s.toString()),r=e.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(e,r)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(i=>e(this.normalizedNames.get(i),this.headers.get(i)))}};var ow=class{encodeKey(e){return qA(e)}encodeValue(e){return qA(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function nz(t,e){let i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let s=r.indexOf("="),[o,a]=s==-1?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,s)),e.decodeValue(r.slice(s+1))],l=i.get(o)||[];l.push(a),i.set(o,l)}),i}var iz=/%(\d[a-f0-9])/gi,rz={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function qA(t){return encodeURIComponent(t).replace(iz,(e,i)=>rz[i]??e)}function y0(t){return`${t}`}var ki=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new ow,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=nz(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(i=>{let n=e.fromObject[i],r=Array.isArray(n)?n.map(y0):[y0(n)];this.map.set(i,r)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let i=this.map.get(e);return i?i[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,i){return this.clone({param:e,value:i,op:"a"})}appendAll(e){let i=[];return Object.keys(e).forEach(n=>{let r=e[n];Array.isArray(r)?r.forEach(s=>{i.push({param:n,value:s,op:"a"})}):i.push({param:n,value:r,op:"a"})}),this.clone(i)}set(e,i){return this.clone({param:e,value:i,op:"s"})}delete(e,i){return this.clone({param:e,value:i,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let i=this.encoder.encodeKey(e);return this.map.get(e).map(n=>i+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let i=new t({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(e),i}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let i=(e.op==="a"?this.map.get(e.param):void 0)||[];i.push(y0(e.value)),this.map.set(e.param,i);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],r=n.indexOf(y0(e.value));r!==-1&&n.splice(r,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var aw=class{constructor(){this.map=new Map}set(e,i){return this.map.set(e,i),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function sz(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function GA(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function YA(t){return typeof Blob<"u"&&t instanceof Blob}function KA(t){return typeof FormData<"u"&&t instanceof FormData}function oz(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Rd=class t{constructor(e,i,n,r){this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let s;if(sz(this.method)||r?(this.body=n!==void 0?n:null,s=r):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),this.transferCache=s.transferCache),this.headers??=new Bn,this.context??=new aw,!this.params)this.params=new ki,this.urlWithParams=i;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=i;else{let a=i.indexOf("?"),l=a===-1?"?":ah.set(f,e.setHeaders[f]),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),u)),new t(i,n,o,{params:u,headers:c,context:d,reportProgress:l,responseType:r,withCredentials:a,transferCache:s})}},ra=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(ra||{}),Od=class{constructor(e,i=200,n="OK"){this.headers=e.headers||new Bn,this.status=e.status!==void 0?e.status:i,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},C0=class t extends Od{constructor(e={}){super(e),this.type=ra.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Nd=class t extends Od{constructor(e={}){super(e),this.type=ra.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},ia=class extends Od{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},e2=200,az=204;function sw(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var dl=(()=>{let e=class e{constructor(n){this.handler=n}request(n,r,s={}){let o;if(n instanceof Rd)o=n;else{let c;s.headers instanceof Bn?c=s.headers:c=new Bn(s.headers);let u;s.params&&(s.params instanceof ki?u=s.params:u=new ki({fromObject:s.params})),o=new Rd(n,r,s.body!==void 0?s.body:null,{headers:c,context:s.context,params:u,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials,transferCache:s.transferCache})}let a=de(o).pipe(Ur(c=>this.handler.handle(c)));if(n instanceof Rd||s.observe==="events")return a;let l=a.pipe(et(c=>c instanceof Nd));switch(s.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return l.pipe(ve(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return l.pipe(ve(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return l.pipe(ve(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return l.pipe(ve(c=>c.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new ki().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,s={}){return this.request("PATCH",n,sw(s,r))}post(n,r,s={}){return this.request("POST",n,sw(s,r))}put(n,r,s={}){return this.request("PUT",n,sw(s,r))}};e.\u0275fac=function(r){return new(r||e)(V(Ld))},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})(),lz=/^\)\]\}',?\n/,cz="X-Request-URL";function ZA(t){if(t.url)return t.url;let e=cz.toLocaleLowerCase();return t.headers.get(e)}var uz=(()=>{let e=class e{constructor(){this.fetchImpl=Y(lw,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=Y(be)}handle(n){return new Ke(r=>{let s=new AbortController;return this.doRequest(n,s.signal,r).then(cw,o=>r.error(new ia({error:o}))),()=>s.abort()})}doRequest(n,r,s){return Bt(this,null,function*(){let o=this.createRequestInit(n),a;try{let m=this.fetchImpl(n.urlWithParams,Z({signal:r},o));dz(m),s.next({type:ra.Sent}),a=yield m}catch(m){s.error(new ia({error:m,status:m.status??0,statusText:m.statusText,url:n.urlWithParams,headers:m.headers}));return}let l=new Bn(a.headers),c=a.statusText,u=ZA(a)??n.urlWithParams,d=a.status,h=null;if(n.reportProgress&&s.next(new C0({headers:l,status:d,statusText:c,url:u})),a.body){let m=a.headers.get("content-length"),p=[],g=a.body.getReader(),w=0,C,E,x=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Bt(this,null,function*(){for(;;){let{done:I,value:M}=yield g.read();if(I)break;if(p.push(M),w+=M.length,n.reportProgress){E=n.responseType==="text"?(E??"")+(C??=new TextDecoder).decode(M,{stream:!0}):void 0;let T=()=>s.next({type:ra.DownloadProgress,total:m?+m:void 0,loaded:w,partialText:E});x?x.run(T):T()}}}));let y=this.concatChunks(p,w);try{let I=a.headers.get("Content-Type")??"";h=this.parseBody(n,y,I)}catch(I){s.error(new ia({error:I,headers:new Bn(a.headers),status:a.status,statusText:a.statusText,url:ZA(a)??n.urlWithParams}));return}}d===0&&(d=h?e2:0),d>=200&&d<300?(s.next(new Nd({body:h,headers:l,status:d,statusText:c,url:u})),s.complete()):s.error(new ia({error:h,headers:l,status:d,statusText:c,url:u}))})}parseBody(n,r,s){switch(n.responseType){case"json":let o=new TextDecoder().decode(r).replace(lz,"");return o===""?null:JSON.parse(o);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:s});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},s=n.withCredentials?"include":void 0;if(n.headers.forEach((o,a)=>r[o]=a.join(",")),r.Accept??="application/json, text/plain, */*",!r["Content-Type"]){let o=n.detectContentTypeHeader();o!==null&&(r["Content-Type"]=o)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:s}}concatChunks(n,r){let s=new Uint8Array(r),o=0;for(let a of n)s.set(a,o),o+=a.length;return s}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})(),lw=class{};function cw(){}function dz(t){t.then(cw,cw)}function t2(t,e){return e(t)}function hz(t,e){return(i,n)=>e.intercept(i,{handle:r=>t(r,n)})}function fz(t,e,i){return(n,r)=>Ii(i,()=>e(n,s=>t(s,r)))}var uw=new Q(""),dw=new Q(""),mz=new Q(""),n2=new Q("",{providedIn:"root",factory:()=>!0});function pz(){let t=null;return(e,i)=>{t===null&&(t=(Y(uw,{optional:!0})??[]).reduceRight(hz,t2));let n=Y(ms);if(Y(n2)){let s=n.add();return t(e,i).pipe(as(()=>n.remove(s)))}else return t(e,i)}}var QA=(()=>{let e=class e extends Ld{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=Y(ms),this.contributeToStability=Y(n2)}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(dw),...this.injector.get(mz,[])]));this.chain=r.reduceRight((s,o)=>fz(s,o,this.injector),t2)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,s=>this.backend.handle(s)).pipe(as(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}};e.\u0275fac=function(r){return new(r||e)(V(w0),V(An))},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})();var gz=/^\)\]\}',?\n/;function _z(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var XA=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new Te(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?Tt(r.\u0275loadImpl()):de(null)).pipe(Nt(()=>new Ke(o=>{let a=r.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((g,w)=>a.setRequestHeader(g,w.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let g=n.detectContentTypeHeader();g!==null&&a.setRequestHeader("Content-Type",g)}if(n.responseType){let g=n.responseType.toLowerCase();a.responseType=g!=="json"?g:"text"}let l=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let g=a.statusText||"OK",w=new Bn(a.getAllResponseHeaders()),C=_z(a)||n.url;return c=new C0({headers:w,status:a.status,statusText:g,url:C}),c},d=()=>{let{headers:g,status:w,statusText:C,url:E}=u(),x=null;w!==az&&(x=typeof a.response>"u"?a.responseText:a.response),w===0&&(w=x?e2:0);let y=w>=200&&w<300;if(n.responseType==="json"&&typeof x=="string"){let I=x;x=x.replace(gz,"");try{x=x!==""?JSON.parse(x):null}catch(M){x=I,y&&(y=!1,x={error:M,text:x})}}y?(o.next(new Nd({body:x,headers:g,status:w,statusText:C,url:E||void 0})),o.complete()):o.error(new ia({error:x,headers:g,status:w,statusText:C,url:E||void 0}))},h=g=>{let{url:w}=u(),C=new ia({error:g,status:a.status||0,statusText:a.statusText||"Unknown Error",url:w||void 0});o.error(C)},f=!1,m=g=>{f||(o.next(u()),f=!0);let w={type:ra.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(w.total=g.total),n.responseType==="text"&&a.responseText&&(w.partialText=a.responseText),o.next(w)},p=g=>{let w={type:ra.UploadProgress,loaded:g.loaded};g.lengthComputable&&(w.total=g.total),o.next(w)};return a.addEventListener("load",d),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),n.reportProgress&&(a.addEventListener("progress",m),l!==null&&a.upload&&a.upload.addEventListener("progress",p)),a.send(l),o.next({type:ra.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",d),a.removeEventListener("timeout",h),n.reportProgress&&(a.removeEventListener("progress",m),l!==null&&a.upload&&a.upload.removeEventListener("progress",p)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(r){return new(r||e)(V(Vc))},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})(),i2=new Q(""),vz="XSRF-TOKEN",bz=new Q("",{providedIn:"root",factory:()=>vz}),yz="X-XSRF-TOKEN",wz=new Q("",{providedIn:"root",factory:()=>yz}),x0=class{},Cz=(()=>{let e=class e{constructor(n,r,s){this.doc=n,this.platform=r,this.cookieName=s,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=_0(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(r){return new(r||e)(V(Fe),V(fi),V(bz))},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})();function xz(t,e){let i=t.url.toLowerCase();if(!Y(i2)||t.method==="GET"||t.method==="HEAD"||i.startsWith("http://")||i.startsWith("https://"))return e(t);let n=Y(x0).getToken(),r=Y(wz);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),e(t)}var r2=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(r2||{});function Ez(t,e){return{\u0275kind:t,\u0275providers:e}}function s2(...t){let e=[dl,XA,QA,{provide:Ld,useExisting:QA},{provide:w0,useFactory:()=>Y(uz,{optional:!0})??Y(XA)},{provide:dw,useValue:xz,multi:!0},{provide:i2,useValue:!0},{provide:x0,useClass:Cz}];for(let i of t)e.push(...i.\u0275providers);return Ac(e)}var JA=new Q("");function o2(){return Ez(r2.LegacyInterceptors,[{provide:JA,useFactory:pz},{provide:dw,useExisting:JA,multi:!0}])}var mw=class extends f0{constructor(){super(...arguments),this.supportsDOMEvents=!0}},pw=class t extends mw{static makeCurrent(){OA(new t)}onAndCancel(e,i,n){return e.addEventListener(i,n),()=>{e.removeEventListener(i,n)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=Sz();return i==null?null:Iz(i)}resetBaseElement(){Fd=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return _0(document.cookie,e)}},Fd=null;function Sz(){return Fd=Fd||document.querySelector("base"),Fd?Fd.getAttribute("href"):null}function Iz(t){return new URL(t,document.baseURI).pathname}var gw=class{addToWindow(e){Cn.getAngularTestability=(n,r=!0)=>{let s=e.findTestabilityInTree(n,r);if(s==null)throw new Te(5103,!1);return s},Cn.getAllAngularTestabilities=()=>e.getAllTestabilities(),Cn.getAllAngularRootElements=()=>e.getAllRootElements();let i=n=>{let r=Cn.getAllAngularTestabilities(),s=r.length,o=function(){s--,s==0&&n()};r.forEach(a=>{a.whenStable(o)})};Cn.frameworkStabilizers||(Cn.frameworkStabilizers=[]),Cn.frameworkStabilizers.push(i)}findTestabilityInTree(e,i,n){if(i==null)return null;let r=e.getTestability(i);return r??(n?ps().isShadowRoot(i)?this.findTestabilityInTree(e,i.host,!0):this.findTestabilityInTree(e,i.parentElement,!0):null)}},Mz=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})(),_w=new Q(""),d2=(()=>{let e=class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(s=>{s.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,s){return this._findPluginFor(r).addEventListener(n,r,s)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new Te(5101,!1);return this._eventNameToPlugin.set(n,r),r}};e.\u0275fac=function(r){return new(r||e)(V(_w),V(be))},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})(),E0=class{constructor(e){this._doc=e}},hw="ng-app-id",h2=(()=>{let e=class e{constructor(n,r,s,o={}){this.doc=n,this.appId=r,this.nonce=s,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=b0(o),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(s=>s.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${hw}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(s=>{s.textContent!=null&&r.set(s.textContent,s)}),r}return null}changeUsageCount(n,r){let s=this.styleRef;if(s.has(n)){let o=s.get(n);return o.usage+=r,o.usage}return s.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let s=this.styleNodesInDOM,o=s?.get(r);if(o?.parentNode===n)return s.delete(r),o.removeAttribute(hw),o;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(hw,this.appId),n.appendChild(a),a}}addStyleToHost(n,r){let s=this.getStyleElement(n,r),o=this.styleRef,a=o.get(r)?.elements;a?a.push(s):o.set(r,{elements:[s],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(V(Fe),V(Nc),V(xd,8),V(fi))},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})(),fw={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/Math/MathML"},bw=/%COMP%/g,f2="%COMP%",Dz=`_nghost-${f2}`,kz=`_ngcontent-${f2}`,Tz=!0,Az=new Q("",{providedIn:"root",factory:()=>Tz});function Rz(t){return kz.replace(bw,t)}function Lz(t){return Dz.replace(bw,t)}function m2(t,e){return e.map(i=>i.replace(bw,t))}var l2=(()=>{let e=class e{constructor(n,r,s,o,a,l,c,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=l,this.ngZone=c,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=b0(l),this.defaultRenderer=new Pd(n,a,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===us.ShadowDom&&(r=We(Z({},r),{encapsulation:us.Emulated}));let s=this.getOrCreateRenderer(n,r);return s instanceof S0?s.applyToHost(n):s instanceof Ud&&s.applyStyles(),s}getOrCreateRenderer(n,r){let s=this.rendererByCompId,o=s.get(r.id);if(!o){let a=this.doc,l=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(r.encapsulation){case us.Emulated:o=new S0(c,u,r,this.appId,d,a,l,h);break;case us.ShadowDom:return new vw(c,u,n,r,a,l,this.nonce,h);default:o=new Ud(c,u,r,d,a,l,h);break}s.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(V(d2),V(h2),V(Nc),V(Az),V(Fe),V(fi),V(be),V(xd))},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})(),Pd=class{constructor(e,i,n,r){this.eventManager=e,this.doc=i,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS(fw[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(c2(e)?e.content:e).appendChild(i)}insertBefore(e,i,n){e&&(c2(e)?e.content:e).insertBefore(i,n)}removeChild(e,i){e&&e.removeChild(i)}selectRootElement(e,i){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new Te(-5104,!1);return i||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,n,r){if(r){i=r+":"+i;let s=fw[r];s?e.setAttributeNS(s,i,n):e.setAttribute(i,n)}else e.setAttribute(i,n)}removeAttribute(e,i,n){if(n){let r=fw[n];r?e.removeAttributeNS(r,i):e.removeAttribute(`${n}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,n,r){r&(Gs.DashCase|Gs.Important)?e.style.setProperty(i,n,r&Gs.Important?"important":""):e.style[i]=n}removeStyle(e,i,n){n&Gs.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,n){e!=null&&(e[i]=n)}setValue(e,i){e.nodeValue=i}listen(e,i,n){if(typeof e=="string"&&(e=ps().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(n))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function c2(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var vw=class extends Pd{constructor(e,i,n,r,s,o,a,l){super(e,s,o,l),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=m2(r.id,r.styles);for(let u of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,n){return super.insertBefore(this.nodeOrShadowRoot(e),i,n)}removeChild(e,i){return super.removeChild(this.nodeOrShadowRoot(e),i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ud=class extends Pd{constructor(e,i,n,r,s,o,a,l){super(e,s,o,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=l?m2(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},S0=class extends Ud{constructor(e,i,n,r,s,o,a,l){let c=r+"-"+n.id;super(e,i,n,s,o,a,l,c),this.contentAttr=Rz(c),this.hostAttr=Lz(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let n=super.createElement(e,i);return super.setAttribute(n,this.contentAttr,""),n}},Oz=(()=>{let e=class e extends E0{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,s){return n.addEventListener(r,s,!1),()=>this.removeEventListener(n,r,s)}removeEventListener(n,r,s){return n.removeEventListener(r,s)}};e.\u0275fac=function(r){return new(r||e)(V(Fe))},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})(),u2=["alt","control","meta","shift"],Nz={"\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"},Fz={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Pz=(()=>{let e=class e extends E0{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,s){let o=e.parseEventName(r),a=e.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ps().onAndCancel(n,o.domEventName,a))}static parseEventName(n){let r=n.toLowerCase().split("."),s=r.shift();if(r.length===0||!(s==="keydown"||s==="keyup"))return null;let o=e._normalizeKey(r.pop()),a="",l=r.indexOf("code");if(l>-1&&(r.splice(l,1),a="code."),u2.forEach(u=>{let d=r.indexOf(u);d>-1&&(r.splice(d,1),a+=u+".")}),a+=o,r.length!=0||o.length===0)return null;let c={};return c.domEventName=s,c.fullKey=a,c}static matchEventFullKeyCode(n,r){let s=Nz[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(s=n.code,o="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),u2.forEach(a=>{if(a!==s){let l=Fz[a];l(n)&&(o+=a+".")}}),o+=s,o===r)}static eventCallback(n,r,s){return o=>{e.matchEventFullKeyCode(o,n)&&s.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(r){return new(r||e)(V(Fe))},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})();function Uz(){pw.makeCurrent()}function $z(){return new hi}function Vz(){return Wk(document),document}var Bz=[{provide:fi,useValue:rw},{provide:m1,useValue:Uz,multi:!0},{provide:Fe,useFactory:Vz,deps:[]}],p2=j1(EA,"browser",Bz),jz=new Q(""),Hz=[{provide:kd,useClass:gw,deps:[]},{provide:$1,useClass:e0,deps:[be,t0,kd]},{provide:e0,useClass:e0,deps:[be,t0,kd]}],zz=[{provide:Tp,useValue:"root"},{provide:hi,useFactory:$z,deps:[]},{provide:_w,useClass:Oz,multi:!0,deps:[Fe,be,fi]},{provide:_w,useClass:Pz,multi:!0,deps:[Fe]},l2,h2,d2,{provide:Dc,useExisting:l2},{provide:Vc,useClass:Mz,deps:[]},[]],yw=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Nc,useValue:n.appId}]}}};e.\u0275fac=function(r){return new(r||e)(V(jz,12))},e.\u0275mod=ce({type:e}),e.\u0275inj=le({providers:[...zz,...Hz],imports:[Wt,SA]});let t=e;return t})();var g2=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(r){return new(r||e)(V(Fe))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var hl=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:function(r){let s=null;return r?s=new(r||e):s=V(Wz),s},providedIn:"root"});let t=e;return t})(),Wz=(()=>{let e=class e extends hl{constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case Sn.NONE:return r;case Sn.HTML:return Qs(r,"HTML")?pr(r):g1(this._doc,String(r)).toString();case Sn.STYLE:return Qs(r,"Style")?pr(r):r;case Sn.SCRIPT:if(Qs(r,"Script"))return pr(r);throw new Te(5200,!1);case Sn.URL:return Qs(r,"URL")?pr(r):Vp(String(r));case Sn.RESOURCE_URL:if(Qs(r,"ResourceURL"))return pr(r);throw new Te(5201,!1);default:throw new Te(5202,!1)}}bypassSecurityTrustHtml(n){return Kk(n)}bypassSecurityTrustStyle(n){return Zk(n)}bypassSecurityTrustScript(n){return Qk(n)}bypassSecurityTrustUrl(n){return Xk(n)}bypassSecurityTrustResourceUrl(n){return Jk(n)}};e.\u0275fac=function(r){return new(r||e)(V(Fe))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var ct="primary",eh=Symbol("RouteTitle"),Sw=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i[0]:i}return null}getAll(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function qc(t){return new Sw(t)}function qz(t,e,i){let n=i.path.split("/");if(n.length>t.length||i.pathMatch==="full"&&(e.hasChildren()||n.lengthn[s]===r)}else return t===e}function D2(t){return t.length>0?t[t.length-1]:null}function la(t){return ur(t)?t:ea(t)?Tt(Promise.resolve(t)):de(t)}var Yz={exact:T2,subset:A2},k2={exact:Kz,subset:Zz,ignored:()=>!0};function _2(t,e,i){return Yz[i.paths](t.root,e.root,i.matrixParams)&&k2[i.queryParams](t.queryParams,e.queryParams)&&!(i.fragment==="exact"&&t.fragment!==e.fragment)}function Kz(t,e){return vs(t,e)}function T2(t,e,i){if(!ml(t.segments,e.segments)||!D0(t.segments,e.segments,i)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!T2(t.children[n],e.children[n],i))return!1;return!0}function Zz(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>M2(t[i],e[i]))}function A2(t,e,i){return R2(t,e,e.segments,i)}function R2(t,e,i,n){if(t.segments.length>i.length){let r=t.segments.slice(0,i.length);return!(!ml(r,i)||e.hasChildren()||!D0(r,i,n))}else if(t.segments.length===i.length){if(!ml(t.segments,i)||!D0(t.segments,i,n))return!1;for(let r in e.children)if(!t.children[r]||!A2(t.children[r],e.children[r],n))return!1;return!0}else{let r=i.slice(0,t.segments.length),s=i.slice(t.segments.length);return!ml(t.segments,r)||!D0(t.segments,r,n)||!t.children[ct]?!1:R2(t.children[ct],e,s,n)}}function D0(t,e,i){return e.every((n,r)=>k2[i](t[r].parameters,n.parameters))}var sa=class{constructor(e=new Ft([],{}),i={},n=null){this.root=e,this.queryParams=i,this.fragment=n}get queryParamMap(){return this._queryParamMap??=qc(this.queryParams),this._queryParamMap}toString(){return Jz.serialize(this)}},Ft=class{constructor(e,i){this.segments=e,this.children=i,this.parent=null,Object.values(i).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return k0(this)}},fl=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap??=qc(this.parameters),this._parameterMap}toString(){return O2(this)}};function Qz(t,e){return ml(t,e)&&t.every((i,n)=>vs(i.parameters,e[n].parameters))}function ml(t,e){return t.length!==e.length?!1:t.every((i,n)=>i.path===e[n].path)}function Xz(t,e){let i=[];return Object.entries(t.children).forEach(([n,r])=>{n===ct&&(i=i.concat(e(r,n)))}),Object.entries(t.children).forEach(([n,r])=>{n!==ct&&(i=i.concat(e(r,n)))}),i}var th=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:()=>new Gc,providedIn:"root"});let t=e;return t})(),Gc=class{parse(e){let i=new Dw(e);return new sa(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${Vd(e.root,!0)}`,n=n7(e.queryParams),r=typeof e.fragment=="string"?`#${e7(e.fragment)}`:"";return`${i}${n}${r}`}},Jz=new Gc;function k0(t){return t.segments.map(e=>O2(e)).join("/")}function Vd(t,e){if(!t.hasChildren())return k0(t);if(e){let i=t.children[ct]?Vd(t.children[ct],!1):"",n=[];return Object.entries(t.children).forEach(([r,s])=>{r!==ct&&n.push(`${r}:${Vd(s,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}else{let i=Xz(t,(n,r)=>r===ct?[Vd(t.children[ct],!1)]:[`${r}:${Vd(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[ct]!=null?`${k0(t)}/${i[0]}`:`${k0(t)}/(${i.join("//")})`}}function L2(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function I0(t){return L2(t).replace(/%3B/gi,";")}function e7(t){return encodeURI(t)}function Mw(t){return L2(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function T0(t){return decodeURIComponent(t)}function v2(t){return T0(t.replace(/\+/g,"%20"))}function O2(t){return`${Mw(t.path)}${t7(t.parameters)}`}function t7(t){return Object.entries(t).map(([e,i])=>`;${Mw(e)}=${Mw(i)}`).join("")}function n7(t){let e=Object.entries(t).map(([i,n])=>Array.isArray(n)?n.map(r=>`${I0(i)}=${I0(r)}`).join("&"):`${I0(i)}=${I0(n)}`).filter(i=>i);return e.length?`?${e.join("&")}`:""}var i7=/^[^\/()?;#]+/;function ww(t){let e=t.match(i7);return e?e[0]:""}var r7=/^[^\/()?;=#]+/;function s7(t){let e=t.match(r7);return e?e[0]:""}var o7=/^[^=?&#]+/;function a7(t){let e=t.match(o7);return e?e[0]:""}var l7=/^[^&#]+/;function c7(t){let e=t.match(l7);return e?e[0]:""}var Dw=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ft([],{}):new Ft([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(n[ct]=new Ft(e,i)),n}parseSegment(){let e=ww(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new Te(4009,!1);return this.capture(e),new fl(T0(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=s7(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let r=ww(this.remaining);r&&(n=r,this.capture(n))}e[T0(i)]=T0(n)}parseQueryParam(e){let i=a7(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let o=c7(this.remaining);o&&(n=o,this.capture(n))}let r=v2(i),s=v2(n);if(e.hasOwnProperty(r)){let o=e[r];Array.isArray(o)||(o=[o],e[r]=o),o.push(s)}else e[r]=s}parseParens(e){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=ww(this.remaining),r=this.remaining[n.length];if(r!=="/"&&r!==")"&&r!==";")throw new Te(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=ct);let o=this.parseChildren();i[s]=Object.keys(o).length===1?o[ct]:new Ft([],o),this.consumeOptional("//")}return i}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new Te(4011,!1)}};function N2(t){return t.segments.length>0?new Ft([],{[ct]:t}):t}function F2(t){let e={};for(let[n,r]of Object.entries(t.children)){let s=F2(r);if(n===ct&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))e[o]=a;else(s.segments.length>0||s.hasChildren())&&(e[n]=s)}let i=new Ft(t.segments,e);return u7(i)}function u7(t){if(t.numberOfChildren===1&&t.children[ct]){let e=t.children[ct];return new Ft(t.segments.concat(e.segments),e.children)}return t}function qd(t){return t instanceof sa}function d7(t,e,i=null,n=null){let r=P2(t);return U2(r,e,i,n)}function P2(t){let e;function i(s){let o={};for(let l of s.children){let c=i(l);o[l.outlet]=c}let a=new Ft(s.url,o);return s===t&&(e=a),a}let n=i(t.root),r=N2(n);return e??r}function U2(t,e,i,n){let r=t;for(;r.parent;)r=r.parent;if(e.length===0)return Cw(r,r,r,i,n);let s=h7(e);if(s.toRoot())return Cw(r,r,new Ft([],{}),i,n);let o=f7(s,r,t),a=o.processChildren?Hd(o.segmentGroup,o.index,s.commands):V2(o.segmentGroup,o.index,s.commands);return Cw(r,o.segmentGroup,a,i,n)}function A0(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Gd(t){return typeof t=="object"&&t!=null&&t.outlets}function Cw(t,e,i,n,r){let s={};n&&Object.entries(n).forEach(([l,c])=>{s[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`});let o;t===e?o=i:o=$2(t,e,i);let a=N2(F2(o));return new sa(a,s,r)}function $2(t,e,i){let n={};return Object.entries(t.children).forEach(([r,s])=>{s===e?n[r]=i:n[r]=$2(s,e,i)}),new Ft(t.segments,n)}var R0=class{constructor(e,i,n){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=n,e&&n.length>0&&A0(n[0]))throw new Te(4003,!1);let r=n.find(Gd);if(r&&r!==D2(n))throw new Te(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function h7(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new R0(!0,0,t);let e=0,i=!1,n=t.reduce((r,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return typeof s!="string"?[...r,s]:o===0?(s.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?i=!0:a===".."?e++:a!=""&&r.push(a))}),r):[...r,s]},[]);return new R0(i,e,n)}var Hc=class{constructor(e,i,n){this.segmentGroup=e,this.processChildren=i,this.index=n}};function f7(t,e,i){if(t.isAbsolute)return new Hc(e,!0,0);if(!i)return new Hc(e,!1,NaN);if(i.parent===null)return new Hc(i,!0,0);let n=A0(t.commands[0])?0:1,r=i.segments.length-1+n;return m7(i,r,t.numberOfDoubleDots)}function m7(t,e,i){let n=t,r=e,s=i;for(;s>r;){if(s-=r,n=n.parent,!n)throw new Te(4005,!1);r=n.segments.length}return new Hc(n,!1,r-s)}function p7(t){return Gd(t[0])?t[0].outlets:{[ct]:t}}function V2(t,e,i){if(t??=new Ft([],{}),t.segments.length===0&&t.hasChildren())return Hd(t,e,i);let n=g7(t,e,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndexs!==ct)&&t.children[ct]&&t.numberOfChildren===1&&t.children[ct].segments.length===0){let s=Hd(t.children[ct],e,i);return new Ft(t.segments,s.children)}return Object.entries(n).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(r[s]=V2(t.children[s],e,o))}),Object.entries(t.children).forEach(([s,o])=>{n[s]===void 0&&(r[s]=o)}),new Ft(t.segments,r)}}function g7(t,e,i){let n=0,r=e,s={match:!1,pathIndex:0,commandIndex:0};for(;r=i.length)return s;let o=t.segments[r],a=i[n];if(Gd(a))break;let l=`${a}`,c=n0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!y2(l,c,o))return s;n+=2}else{if(!y2(l,{},o))return s;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}function kw(t,e,i){let n=t.segments.slice(0,e),r=0;for(;r{typeof n=="string"&&(n=[n]),n!==null&&(e[i]=kw(new Ft([],{}),0,n))}),e}function b2(t){let e={};return Object.entries(t).forEach(([i,n])=>e[i]=`${n}`),e}function y2(t,e,i){return t==i.path&&vs(e,i.parameters)}var zd="imperative",Nn=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Nn||{}),br=class{constructor(e,i){this.id=e,this.url=i}},Yc=class extends br{constructor(e,i,n="imperative",r=null){super(e,i),this.type=Nn.NavigationStart,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},bs=class extends br{constructor(e,i,n){super(e,i),this.urlAfterRedirects=n,this.type=Nn.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Yi=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Yi||{}),L0=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(L0||{}),so=class extends br{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=Nn.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},oa=class extends br{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=Nn.NavigationSkipped}},Yd=class extends br{constructor(e,i,n,r){super(e,i),this.error=n,this.target=r,this.type=Nn.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},O0=class extends br{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=Nn.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Tw=class extends br{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=Nn.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Aw=class extends br{constructor(e,i,n,r,s){super(e,i),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s,this.type=Nn.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Rw=class extends br{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=Nn.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Lw=class extends br{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=Nn.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ow=class{constructor(e){this.route=e,this.type=Nn.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Nw=class{constructor(e){this.route=e,this.type=Nn.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Fw=class{constructor(e){this.snapshot=e,this.type=Nn.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Pw=class{constructor(e){this.snapshot=e,this.type=Nn.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Uw=class{constructor(e){this.snapshot=e,this.type=Nn.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},$w=class{constructor(e){this.snapshot=e,this.type=Nn.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},N0=class{constructor(e,i,n){this.routerEvent=e,this.position=i,this.anchor=n,this.type=Nn.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},Kd=class{},Kc=class{constructor(e,i){this.url=e,this.navigationBehaviorOptions=i}};var Vw=class{constructor(e){this.injector=e,this.outlet=null,this.route=null,this.children=new nh(this.injector),this.attachRef=null}},nh=(()=>{let e=class e{constructor(n){this.parentInjector=n,this.contexts=new Map}onChildOutletCreated(n,r){let s=this.getOrCreateContext(n);s.outlet=r,this.contexts.set(n,s)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Vw(this.parentInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(r){return new(r||e)(V(An))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),F0=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let i=this.pathFromRoot(e);return i.length>1?i[i.length-2]:null}children(e){let i=Bw(e,this._root);return i?i.children.map(n=>n.value):[]}firstChild(e){let i=Bw(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=jw(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return jw(e,this._root).map(i=>i.value)}};function Bw(t,e){if(t===e.value)return e;for(let i of e.children){let n=Bw(t,i);if(n)return n}return null}function jw(t,e){if(t===e.value)return[e];for(let i of e.children){let n=jw(t,i);if(n.length)return n.unshift(e),n}return[]}var Gi=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};function jc(t){let e={};return t&&t.children.forEach(i=>e[i.value.outlet]=i),e}var P0=class extends F0{constructor(e,i){super(e),this.snapshot=i,Qw(this,e)}toString(){return this.snapshot.toString()}};function B2(t){let e=v7(t),i=new tn([new fl("",{})]),n=new tn({}),r=new tn({}),s=new tn({}),o=new tn(""),a=new pl(i,n,s,o,r,ct,t,e.root);return a.snapshot=e.root,new P0(new Gi(a,[]),e)}function v7(t){let e={},i={},n={},r="",s=new zc([],e,n,r,i,ct,t,null,{});return new $0("",new Gi(s,[]))}var pl=class{constructor(e,i,n,r,s,o,a,l){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(ve(c=>c[eh]))??de(void 0),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=s}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(ve(e=>qc(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ve(e=>qc(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function U0(t,e,i="emptyOnly"){let n,{routeConfig:r}=t;return e!==null&&(i==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:Z(Z({},e.params),t.params),data:Z(Z({},e.data),t.data),resolve:Z(Z(Z(Z({},t.data),e.data),r?.data),t._resolvedData)}:n={params:Z({},t.params),data:Z({},t.data),resolve:Z(Z({},t.data),t._resolvedData??{})},r&&H2(r)&&(n.resolve[eh]=r.title),n}var zc=class{get title(){return this.data?.[eh]}constructor(e,i,n,r,s,o,a,l,c){this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=o,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??=qc(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=qc(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${i}')`}},$0=class extends F0{constructor(e,i){super(i),this.url=e,Qw(this,i)}toString(){return j2(this._root)}};function Qw(t,e){e.value._routerState=t,e.children.forEach(i=>Qw(t,i))}function j2(t){let e=t.children.length>0?` { ${t.children.map(j2).join(", ")} } `:"";return`${t.value}${e}`}function xw(t){if(t.snapshot){let e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,vs(e.queryParams,i.queryParams)||t.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&t.fragmentSubject.next(i.fragment),vs(e.params,i.params)||t.paramsSubject.next(i.params),Gz(e.url,i.url)||t.urlSubject.next(i.url),vs(e.data,i.data)||t.dataSubject.next(i.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Hw(t,e){let i=vs(t.params,e.params)&&Qz(t.url,e.url),n=!t.parent!=!e.parent;return i&&!n&&(!t.parent||Hw(t.parent,e.parent))}function H2(t){return typeof t.title=="string"||t.title===null}var Xw=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=ct,this.activateEvents=new se,this.deactivateEvents=new se,this.attachEvents=new se,this.detachEvents=new se,this.parentContexts=Y(nh),this.location=Y(un),this.changeDetector=Y(Ye),this.inputBinder=Y(z0,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:s}=n.name;if(r)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),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 Te(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Te(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Te(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,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,r){if(this.isActivated)throw new Te(4013,!1);this._activatedRoute=n;let s=this.location,a=n.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,c=new zw(n,l,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Me({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Mt]});let t=e;return t})(),zw=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,i,n){this.route=e,this.childContexts=i,this.parent=n}get(e,i){return e===pl?this.route:e===nh?this.childContexts:this.parent.get(e,i)}},z0=new Q(""),w2=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:r}=n,s=Pr([r.queryParams,r.params,r.data]).pipe(Nt(([o,a,l],c)=>(l=Z(Z(Z({},o),a),l),c===0?de(l):Promise.resolve(l)))).subscribe(o=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(n);return}let a=IA(r.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:l}of a.inputs)n.activatedComponentRef.setInput(l,o[l])});this.outletDataSubscriptions.set(n,s)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})();function b7(t,e,i){let n=Zd(t,e._root,i?i._root:void 0);return new P0(n,e)}function Zd(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){let n=i.value;n._futureSnapshot=e.value;let r=y7(t,e,i);return new Gi(n,r)}else{if(t.shouldAttach(e.value)){let s=t.retrieve(e.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=e.value,o.children=e.children.map(a=>Zd(t,a)),o}}let n=w7(e.value),r=e.children.map(s=>Zd(t,s));return new Gi(n,r)}}function y7(t,e,i){return e.children.map(n=>{for(let r of i.children)if(t.shouldReuseRoute(n.value,r.value.snapshot))return Zd(t,n,r);return Zd(t,n)})}function w7(t){return new pl(new tn(t.url),new tn(t.params),new tn(t.queryParams),new tn(t.fragment),new tn(t.data),t.outlet,t.component,t)}var Qd=class{constructor(e,i){this.redirectTo=e,this.navigationBehaviorOptions=i}},z2="ngNavigationCancelingError";function V0(t,e){let{redirectTo:i,navigationBehaviorOptions:n}=qd(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=W2(!1,Yi.Redirect);return r.url=i,r.navigationBehaviorOptions=n,r}function W2(t,e){let i=new Error(`NavigationCancelingError: ${t||""}`);return i[z2]=!0,i.cancellationCode=e,i}function C7(t){return q2(t)&&qd(t.url)}function q2(t){return!!t&&t[z2]}var x7=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ee({type:e,selectors:[["ng-component"]],standalone:!0,features:[Ge],decls:1,vars:0,template:function(r,s){r&1&&ue(0,"router-outlet")},dependencies:[Xw],encapsulation:2});let t=e;return t})();function E7(t,e){return t.providers&&!t._injector&&(t._injector=Kp(t.providers,e,`Route: ${t.path}`)),t._injector??e}function Jw(t){let e=t.children&&t.children.map(Jw),i=e?We(Z({},t),{children:e}):Z({},t);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==ct&&(i.component=x7),i}function Wr(t){return t.outlet||ct}function S7(t,e){let i=t.filter(n=>Wr(n)===e);return i.push(...t.filter(n=>Wr(n)!==e)),i}function ih(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let i=e.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}var I7=(t,e,i,n)=>ve(r=>(new Ww(e,r.targetRouterState,r.currentRouterState,i,n).activate(t),r)),Ww=class{constructor(e,i,n,r,s){this.routeReuseStrategy=e,this.futureState=i,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=s}activate(e){let i=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,n,e),xw(this.futureState.root),this.activateChildRoutes(i,n,e)}deactivateChildRoutes(e,i,n){let r=jc(i);e.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,r[o],n),delete r[o]}),Object.values(r).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(e,i,n){let r=e.value,s=i?i.value:null;if(r===s)if(r.component){let o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(e,i,o.children)}else this.deactivateChildRoutes(e,i,n);else s&&this.deactivateRouteAndItsChildren(i,n)}deactivateRouteAndItsChildren(e,i){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,i):this.deactivateRouteAndOutlet(e,i)}detachAndStoreRouteSubtree(e,i){let n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,s=jc(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,r);if(n&&n.outlet){let o=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:a})}}deactivateRouteAndOutlet(e,i){let n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,s=jc(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,i,n){let r=jc(i);e.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],n),this.forwardEvent(new $w(s.value.snapshot))}),e.children.length&&this.forwardEvent(new Pw(e.value.snapshot))}activateRoutes(e,i,n){let r=e.value,s=i?i.value:null;if(xw(r),r===s)if(r.component){let o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,o.children)}else this.activateChildRoutes(e,i,n);else if(r.component){let o=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),xw(a.route.value),this.activateChildRoutes(e,null,o.children)}else{let a=ih(r.snapshot);o.attachRef=null,o.route=r,o.injector=a??o.injector,o.outlet&&o.outlet.activateWith(r,o.injector),this.activateChildRoutes(e,null,o.children)}}else this.activateChildRoutes(e,null,n)}},B0=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Wc=class{constructor(e,i){this.component=e,this.route=i}};function M7(t,e,i){let n=t._root,r=e?e._root:null;return Bd(n,r,i,[n.value])}function D7(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Qc(t,e){let i=Symbol(),n=e.get(t,i);return n===i?typeof t=="function"&&!ND(t)?t:e.get(t):n}function Bd(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=jc(e);return t.children.forEach(o=>{k7(o,s[o.value.outlet],i,n.concat([o.value]),r),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>Wd(a,i.getContext(o),r)),r}function k7(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=t.value,o=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let l=T7(o,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new B0(n)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?Bd(t,e,a?a.children:null,n,r):Bd(t,e,i,n,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Wc(a.outlet.component,o))}else o&&Wd(e,a,r),r.canActivateChecks.push(new B0(n)),s.component?Bd(t,null,a?a.children:null,n,r):Bd(t,null,i,n,r);return r}function T7(t,e,i){if(typeof i=="function")return i(t,e);switch(i){case"pathParamsChange":return!ml(t.url,e.url);case"pathParamsOrQueryParamsChange":return!ml(t.url,e.url)||!vs(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Hw(t,e)||!vs(t.queryParams,e.queryParams);case"paramsChange":default:return!Hw(t,e)}}function Wd(t,e,i){let n=jc(t),r=t.value;Object.entries(n).forEach(([s,o])=>{r.component?e?Wd(o,e.children.getContext(s),i):Wd(o,null,i):Wd(o,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new Wc(e.outlet.component,r)):i.canDeactivateChecks.push(new Wc(null,r)):i.canDeactivateChecks.push(new Wc(null,r))}function rh(t){return typeof t=="function"}function A7(t){return typeof t=="boolean"}function R7(t){return t&&rh(t.canLoad)}function L7(t){return t&&rh(t.canActivate)}function O7(t){return t&&rh(t.canActivateChild)}function N7(t){return t&&rh(t.canDeactivate)}function F7(t){return t&&rh(t.canMatch)}function G2(t){return t instanceof Bs||t?.name==="EmptyError"}var M0=Symbol("INITIAL_VALUE");function Zc(){return Nt(t=>Pr(t.map(e=>e.pipe(St(1),ci(M0)))).pipe(ve(e=>{for(let i of e)if(i!==!0){if(i===M0)return M0;if(i===!1||P7(i))return i}return!0}),et(e=>e!==M0),St(1)))}function P7(t){return qd(t)||t instanceof Qd}function U7(t,e){return Gt(i=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=i;return o.length===0&&s.length===0?de(We(Z({},i),{guardsResult:!0})):$7(o,n,r,t).pipe(Gt(a=>a&&A7(a)?V7(n,s,t,e):de(a)),ve(a=>We(Z({},i),{guardsResult:a})))})}function $7(t,e,i,n){return Tt(t).pipe(Gt(r=>W7(r.component,r.route,i,e,n)),xi(r=>r!==!0,!0))}function V7(t,e,i,n){return Tt(e).pipe(Ur(r=>$i(j7(r.route.parent,n),B7(r.route,n),z7(t,r.path,i),H7(t,r.route,i))),xi(r=>r!==!0,!0))}function B7(t,e){return t!==null&&e&&e(new Uw(t)),de(!0)}function j7(t,e){return t!==null&&e&&e(new Fw(t)),de(!0)}function H7(t,e,i){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return de(!0);let r=n.map(s=>js(()=>{let o=ih(e)??i,a=Qc(s,o),l=L7(a)?a.canActivate(e,t):Ii(o,()=>a(e,t));return la(l).pipe(xi())}));return de(r).pipe(Zc())}function z7(t,e,i){let n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(o=>D7(o)).filter(o=>o!==null).map(o=>js(()=>{let a=o.guards.map(l=>{let c=ih(o.node)??i,u=Qc(l,c),d=O7(u)?u.canActivateChild(n,t):Ii(c,()=>u(n,t));return la(d).pipe(xi())});return de(a).pipe(Zc())}));return de(s).pipe(Zc())}function W7(t,e,i,n,r){let s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||s.length===0)return de(!0);let o=s.map(a=>{let l=ih(e)??r,c=Qc(a,l),u=N7(c)?c.canDeactivate(t,e,i,n):Ii(l,()=>c(t,e,i,n));return la(u).pipe(xi())});return de(o).pipe(Zc())}function q7(t,e,i,n){let r=e.canLoad;if(r===void 0||r.length===0)return de(!0);let s=r.map(o=>{let a=Qc(o,t),l=R7(a)?a.canLoad(e,i):Ii(t,()=>a(e,i));return la(l)});return de(s).pipe(Zc(),Y2(n))}function Y2(t){return _b(mt(e=>{if(typeof e!="boolean")throw V0(t,e)}),ve(e=>e===!0))}function G7(t,e,i,n){let r=e.canMatch;if(!r||r.length===0)return de(!0);let s=r.map(o=>{let a=Qc(o,t),l=F7(a)?a.canMatch(e,i):Ii(t,()=>a(e,i));return la(l)});return de(s).pipe(Zc(),Y2(n))}var Xd=class{constructor(e){this.segmentGroup=e||null}},Jd=class extends Error{constructor(e){super(),this.urlTree=e}};function Bc(t){return Tn(new Xd(t))}function Y7(t){return Tn(new Te(4e3,!1))}function K7(t){return Tn(W2(!1,Yi.GuardRejected))}var qw=class{constructor(e,i){this.urlSerializer=e,this.urlTree=i}lineralizeSegments(e,i){let n=[],r=i.root;for(;;){if(n=n.concat(r.segments),r.numberOfChildren===0)return de(n);if(r.numberOfChildren>1||!r.children[ct])return Y7(`${e.redirectTo}`);r=r.children[ct]}}applyRedirectCommands(e,i,n,r,s){if(typeof i!="string"){let a=i,{queryParams:l,fragment:c,routeConfig:u,url:d,outlet:h,params:f,data:m,title:p}=r,g=Ii(s,()=>a({params:f,data:m,queryParams:l,fragment:c,routeConfig:u,url:d,outlet:h,title:p}));if(g instanceof sa)throw new Jd(g);i=g}let o=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,n);if(i[0]==="/")throw new Jd(o);return o}applyRedirectCreateUrlTree(e,i,n,r){let s=this.createSegmentGroup(e,i.root,n,r);return new sa(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(e,i){let n={};return Object.entries(e).forEach(([r,s])=>{if(typeof s=="string"&&s[0]===":"){let a=s.substring(1);n[r]=i[a]}else n[r]=s}),n}createSegmentGroup(e,i,n,r){let s=this.createSegments(e,i.segments,n,r),o={};return Object.entries(i.children).forEach(([a,l])=>{o[a]=this.createSegmentGroup(e,l,n,r)}),new Ft(s,o)}createSegments(e,i,n,r){return i.map(s=>s.path[0]===":"?this.findPosParam(e,s,r):this.findOrReturn(s,n))}findPosParam(e,i,n){let r=n[i.path.substring(1)];if(!r)throw new Te(4001,!1);return r}findOrReturn(e,i){let n=0;for(let r of i){if(r.path===e.path)return i.splice(n),r;n++}return e}},Gw={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Z7(t,e,i,n,r){let s=eC(t,e,i);return s.matched?(n=E7(e,n),G7(n,e,i,r).pipe(ve(o=>o===!0?s:Z({},Gw)))):de(s)}function eC(t,e,i){if(e.path==="**")return Q7(i);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||i.length>0)?Z({},Gw):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||qz)(i,t,e);if(!r)return Z({},Gw);let s={};Object.entries(r.posParams??{}).forEach(([a,l])=>{s[a]=l.path});let o=r.consumed.length>0?Z(Z({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:o,positionalParamSegments:r.posParams??{}}}function Q7(t){return{matched:!0,parameters:t.length>0?D2(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function C2(t,e,i,n){return i.length>0&&e9(t,i,n)?{segmentGroup:new Ft(e,J7(n,new Ft(i,t.children))),slicedSegments:[]}:i.length===0&&t9(t,i,n)?{segmentGroup:new Ft(t.segments,X7(t,i,n,t.children)),slicedSegments:i}:{segmentGroup:new Ft(t.segments,t.children),slicedSegments:i}}function X7(t,e,i,n){let r={};for(let s of i)if(W0(t,e,s)&&!n[Wr(s)]){let o=new Ft([],{});r[Wr(s)]=o}return Z(Z({},n),r)}function J7(t,e){let i={};i[ct]=e;for(let n of t)if(n.path===""&&Wr(n)!==ct){let r=new Ft([],{});i[Wr(n)]=r}return i}function e9(t,e,i){return i.some(n=>W0(t,e,n)&&Wr(n)!==ct)}function t9(t,e,i){return i.some(n=>W0(t,e,n))}function W0(t,e,i){return(t.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function n9(t,e,i,n){return Wr(t)!==n&&(n===ct||!W0(e,i,t))?!1:eC(e,t,i).matched}function i9(t,e,i){return e.length===0&&!t.children[i]}var Yw=class{};function r9(t,e,i,n,r,s,o="emptyOnly"){return new Kw(t,e,i,n,r,o,s).recognize()}var s9=31,Kw=class{constructor(e,i,n,r,s,o,a){this.injector=e,this.configLoader=i,this.rootComponentType=n,this.config=r,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new qw(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new Te(4002,`'${e.segmentGroup}'`)}recognize(){let e=C2(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(ve(({children:i,rootSnapshot:n})=>{let r=new Gi(n,i),s=new $0("",r),o=d7(n,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(e){let i=new zc([],Object.freeze({}),Object.freeze(Z({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),ct,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,ct,i).pipe(ve(n=>({children:n,rootSnapshot:i})),wn(n=>{if(n instanceof Jd)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Xd?this.noMatchError(n):n}))}processSegmentGroup(e,i,n,r,s){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,i,n,s):this.processSegment(e,i,n,n.segments,r,!0,s).pipe(ve(o=>o instanceof Gi?[o]:[]))}processChildren(e,i,n,r){let s=[];for(let o of Object.keys(n.children))o==="primary"?s.unshift(o):s.push(o);return Tt(s).pipe(Ur(o=>{let a=n.children[o],l=S7(i,o);return this.processSegmentGroup(e,l,a,o,r)}),Mb((o,a)=>(o.push(...a),o)),Po(null),Ib(),Gt(o=>{if(o===null)return Bc(n);let a=K2(o);return o9(a),de(a)}))}processSegment(e,i,n,r,s,o,a){return Tt(i).pipe(Ur(l=>this.processSegmentAgainstRoute(l._injector??e,i,l,n,r,s,o,a).pipe(wn(c=>{if(c instanceof Xd)return de(null);throw c}))),xi(l=>!!l),wn(l=>{if(G2(l))return i9(n,r,s)?de(new Yw):Bc(n);throw l}))}processSegmentAgainstRoute(e,i,n,r,s,o,a,l){return n9(n,r,s,o)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,n,s,o,l):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,n,s,o,l):Bc(r):Bc(r)}expandSegmentAgainstRouteUsingRedirect(e,i,n,r,s,o,a){let{matched:l,parameters:c,consumedSegments:u,positionalParamSegments:d,remainingSegments:h}=eC(i,r,s);if(!l)return Bc(i);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>s9&&(this.allowRedirects=!1));let f=new zc(s,c,Object.freeze(Z({},this.urlTree.queryParams)),this.urlTree.fragment,x2(r),Wr(r),r.component??r._loadedComponent??null,r,E2(r)),m=U0(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(m.params),f.data=Object.freeze(m.data);let p=this.applyRedirects.applyRedirectCommands(u,r.redirectTo,d,f,e);return this.applyRedirects.lineralizeSegments(r,p).pipe(Gt(g=>this.processSegment(e,n,i,g.concat(h),o,!1,a)))}matchSegmentAgainstRoute(e,i,n,r,s,o){let a=Z7(i,n,r,e,this.urlSerializer);return n.path==="**"&&(i.children={}),a.pipe(Nt(l=>l.matched?(e=n._injector??e,this.getChildConfig(e,n,r).pipe(Nt(({routes:c})=>{let u=n._loadedInjector??e,{parameters:d,consumedSegments:h,remainingSegments:f}=l,m=new zc(h,d,Object.freeze(Z({},this.urlTree.queryParams)),this.urlTree.fragment,x2(n),Wr(n),n.component??n._loadedComponent??null,n,E2(n)),p=U0(m,o,this.paramsInheritanceStrategy);m.params=Object.freeze(p.params),m.data=Object.freeze(p.data);let{segmentGroup:g,slicedSegments:w}=C2(i,h,f,c);if(w.length===0&&g.hasChildren())return this.processChildren(u,c,g,m).pipe(ve(E=>new Gi(m,E)));if(c.length===0&&w.length===0)return de(new Gi(m,[]));let C=Wr(n)===s;return this.processSegment(u,c,g,w,C?ct:s,!0,m).pipe(ve(E=>new Gi(m,E instanceof Gi?[E]:[])))}))):Bc(i)))}getChildConfig(e,i,n){return i.children?de({routes:i.children,injector:e}):i.loadChildren?i._loadedRoutes!==void 0?de({routes:i._loadedRoutes,injector:i._loadedInjector}):q7(e,i,n,this.urlSerializer).pipe(Gt(r=>r?this.configLoader.loadChildren(e,i).pipe(mt(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):K7(i))):de({routes:[],injector:e})}};function o9(t){t.sort((e,i)=>e.value.outlet===ct?-1:i.value.outlet===ct?1:e.value.outlet.localeCompare(i.value.outlet))}function a9(t){let e=t.value.routeConfig;return e&&e.path===""}function K2(t){let e=[],i=new Set;for(let n of t){if(!a9(n)){e.push(n);continue}let r=e.find(s=>n.value.routeConfig===s.value.routeConfig);r!==void 0?(r.children.push(...n.children),i.add(r)):e.push(n)}for(let n of i){let r=K2(n.children);e.push(new Gi(n.value,r))}return e.filter(n=>!i.has(n))}function x2(t){return t.data||{}}function E2(t){return t.resolve||{}}function l9(t,e,i,n,r,s){return Gt(o=>r9(t,e,i,n,o.extractedUrl,r,s).pipe(ve(({state:a,tree:l})=>We(Z({},o),{targetSnapshot:a,urlAfterRedirects:l}))))}function c9(t,e){return Gt(i=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=i;if(!r.length)return de(i);let s=new Set(r.map(l=>l.route)),o=new Set;for(let l of s)if(!o.has(l))for(let c of Z2(l))o.add(c);let a=0;return Tt(o).pipe(Ur(l=>s.has(l)?u9(l,n,t,e):(l.data=U0(l,l.parent,t).resolve,de(void 0))),mt(()=>a++),hc(1),Gt(l=>a===o.size?de(i):rn))})}function Z2(t){let e=t.children.map(i=>Z2(i)).flat();return[t,...e]}function u9(t,e,i,n){let r=t.routeConfig,s=t._resolve;return r?.title!==void 0&&!H2(r)&&(s[eh]=r.title),d9(s,t,e,n).pipe(ve(o=>(t._resolvedData=o,t.data=U0(t,t.parent,i).resolve,null)))}function d9(t,e,i,n){let r=Iw(t);if(r.length===0)return de({});let s={};return Tt(r).pipe(Gt(o=>h9(t[o],e,i,n).pipe(xi(),mt(a=>{if(a instanceof Qd)throw V0(new Gc,a);s[o]=a}))),hc(1),od(s),wn(o=>G2(o)?rn:Tn(o)))}function h9(t,e,i,n){let r=ih(e)??n,s=Qc(t,r),o=s.resolve?s.resolve(e,i):Ii(r,()=>s(e,i));return la(o)}function Ew(t){return Nt(e=>{let i=t(e);return i?Tt(i).pipe(ve(()=>e)):de(e)})}var Q2=(()=>{let e=class e{buildTitle(n){let r,s=n.root;for(;s!==void 0;)r=this.getResolvedTitleForRoute(s)??r,s=s.children.find(o=>o.outlet===ct);return r}getResolvedTitleForRoute(n){return n.data[eh]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:()=>Y(f9),providedIn:"root"});let t=e;return t})(),f9=(()=>{let e=class e extends Q2{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}};e.\u0275fac=function(r){return new(r||e)(V(g2))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),sh=new Q("",{providedIn:"root",factory:()=>({})}),j0=new Q(""),tC=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Y(r0)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return de(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=la(n.loadComponent()).pipe(ve(X2),mt(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),as(()=>{this.componentLoaders.delete(n)})),s=new Va(r,()=>new ye).pipe(nc());return this.componentLoaders.set(n,s),s}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return de({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=m9(r,this.compiler,n,this.onLoadEndListener).pipe(as(()=>{this.childrenLoaders.delete(r)})),a=new Va(o,()=>new ye).pipe(nc());return this.childrenLoaders.set(r,a),a}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function m9(t,e,i,n){return la(t.loadChildren()).pipe(ve(X2),Gt(r=>r instanceof _d||Array.isArray(r)?de(r):Tt(e.compileModuleAsync(r))),ve(r=>{n&&n(t);let s,o,a=!1;return Array.isArray(r)?(o=r,a=!0):(s=r.create(i).injector,o=s.get(j0,[],{optional:!0,self:!0}).flat()),{routes:o.map(Jw),injector:s}}))}function p9(t){return t&&typeof t=="object"&&"default"in t}function X2(t){return p9(t)?t.default:t}var nC=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:()=>Y(g9),providedIn:"root"});let t=e;return t})(),g9=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),J2=new Q(""),eR=new Q("");function _9(t,e,i){let n=t.get(eR),r=t.get(Fe);return t.get(be).runOutsideAngular(()=>{if(!r.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(c=>setTimeout(c));let s,o=new Promise(c=>{s=c}),a=r.startViewTransition(()=>(s(),v9(t))),{onViewTransitionCreated:l}=n;return l&&Ii(t,()=>l({transition:a,from:e,to:i})),o})}function v9(t){return new Promise(e=>{ti(()=>setTimeout(e),{injector:t,phase:Hs.Read})})}var b9=new Q(""),iC=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ye,this.transitionAbortSubject=new ye,this.configLoader=Y(tC),this.environmentInjector=Y(An),this.urlSerializer=Y(th),this.rootContexts=Y(nh),this.location=Y(na),this.inputBindingEnabled=Y(z0,{optional:!0})!==null,this.titleStrategy=Y(Q2),this.options=Y(sh,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=Y(nC),this.createViewTransition=Y(J2,{optional:!0}),this.navigationErrorHandler=Y(b9,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>de(void 0),this.rootComponentType=null;let n=s=>this.events.next(new Ow(s)),r=s=>this.events.next(new Nw(s));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(We(Z(Z({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,s){return this.transitions=new tn({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:zd,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(et(o=>o.id!==0),ve(o=>We(Z({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),Nt(o=>{let a=!1,l=!1;return de(o).pipe(Nt(c=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",Yi.SupersededByNewNavigation),rn;this.currentTransition=o,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?We(Z({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&d!=="reload"){let h="";return this.events.next(new oa(c.id,this.urlSerializer.serialize(c.rawUrl),h,L0.IgnoredSameUrlNavigation)),c.resolve(!1),rn}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return de(c).pipe(Nt(h=>{let f=this.transitions?.getValue();return this.events.next(new Yc(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions?.getValue()?rn:Promise.resolve(h)}),l9(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),mt(h=>{o.targetSnapshot=h.targetSnapshot,o.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=We(Z({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let f=new O0(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(f)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:h,extractedUrl:f,source:m,restoredState:p,extras:g}=c,w=new Yc(h,this.urlSerializer.serialize(f),m,p);this.events.next(w);let C=B2(this.rootComponentType).snapshot;return this.currentTransition=o=We(Z({},c),{targetSnapshot:C,urlAfterRedirects:f,extras:We(Z({},g),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,de(o)}else{let h="";return this.events.next(new oa(c.id,this.urlSerializer.serialize(c.extractedUrl),h,L0.IgnoredByUrlHandlingStrategy)),c.resolve(!1),rn}}),mt(c=>{let u=new Tw(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),ve(c=>(this.currentTransition=o=We(Z({},c),{guards:M7(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),o)),U7(this.environmentInjector,c=>this.events.next(c)),mt(c=>{if(o.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw V0(this.urlSerializer,c.guardsResult);let u=new Aw(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(u)}),et(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",Yi.GuardRejected),!1)),Ew(c=>{if(c.guards.canActivateChecks.length)return de(c).pipe(mt(u=>{let d=new Rw(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}),Nt(u=>{let d=!1;return de(u).pipe(c9(this.paramsInheritanceStrategy,this.environmentInjector),mt({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(u,"",Yi.NoDataFromResolver)}}))}),mt(u=>{let d=new Lw(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}))}),Ew(c=>{let u=d=>{let h=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe(mt(f=>{d.component=f}),ve(()=>{})));for(let f of d.children)h.push(...u(f));return h};return Pr(u(c.targetSnapshot.root)).pipe(Po(null),St(1))}),Ew(()=>this.afterPreactivation()),Nt(()=>{let{currentSnapshot:c,targetSnapshot:u}=o,d=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return d?Tt(d).pipe(ve(()=>o)):de(o)}),ve(c=>{let u=b7(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=o=We(Z({},c),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,o}),mt(()=>{this.events.next(new Kd)}),I7(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),St(1),mt({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new bs(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),ft(this.transitionAbortSubject.pipe(mt(c=>{throw c}))),as(()=>{!a&&!l&&this.cancelNavigationTransition(o,"",Yi.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),wn(c=>{if(l=!0,q2(c))this.events.next(new so(o.id,this.urlSerializer.serialize(o.extractedUrl),c.message,c.cancellationCode)),C7(c)?this.events.next(new Kc(c.url,c.navigationBehaviorOptions)):o.resolve(!1);else{let u=new Yd(o.id,this.urlSerializer.serialize(o.extractedUrl),c,o.targetSnapshot??void 0);try{let d=Ii(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(d instanceof Qd){let{message:h,cancellationCode:f}=V0(this.urlSerializer,d);this.events.next(new so(o.id,this.urlSerializer.serialize(o.extractedUrl),h,f)),this.events.next(new Kc(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(u);let h=n.errorHandler(c);o.resolve(!!h)}}catch(d){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(d)}}return rn}))}))}cancelNavigationTransition(n,r,s){let o=new so(n.id,this.urlSerializer.serialize(n.extractedUrl),r,s);this.events.next(o),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}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function y9(t){return t!==zd}var w9=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:()=>Y(C9),providedIn:"root"});let t=e;return t})(),Zw=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},C9=(()=>{let e=class e extends Zw{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=ei(e)))(s||e)}})(),e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),tR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:()=>Y(x9),providedIn:"root"});let t=e;return t})(),x9=(()=>{let e=class e extends tR{constructor(){super(...arguments),this.location=Y(na),this.urlSerializer=Y(th),this.options=Y(sh,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=Y(nC),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new sa,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=B2(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(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof Yc)this.stateMemento=this.createStateMemento();else if(n instanceof oa)this.rawUrlTree=r.initialUrl;else if(n instanceof O0){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(s,r)}}else n instanceof Kd?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):n instanceof so&&(n.code===Yi.GuardRejected||n.code===Yi.NoDataFromResolver)?this.restoreHistory(r):n instanceof Yd?this.restoreHistory(r,!0):n instanceof bs&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let s=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(s)||r.extras.replaceUrl){let o=this.browserPageId,a=Z(Z({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(s,"",a)}else{let o=Z(Z({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(s,"",o)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,o=this.currentPageId-s;o!==0?this.location.historyGo(o):this.currentUrlTree===n.finalUrl&&o===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&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,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=ei(e)))(s||e)}})(),e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),jd=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(jd||{});function nR(t,e){t.events.pipe(et(i=>i instanceof bs||i instanceof so||i instanceof Yd||i instanceof oa),ve(i=>i instanceof bs||i instanceof oa?jd.COMPLETE:(i instanceof so?i.code===Yi.Redirect||i.code===Yi.SupersededByNewNavigation:!1)?jd.REDIRECTING:jd.FAILED),et(i=>i!==jd.REDIRECTING),St(1)).subscribe(()=>{e()})}function E9(t){throw t}var S9={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},I9={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},aa=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=Y(Jp),this.stateManager=Y(tR),this.options=Y(sh,{optional:!0})||{},this.pendingTasks=Y(ms),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=Y(iC),this.urlSerializer=Y(th),this.location=Y(na),this.urlHandlingStrategy=Y(nC),this._events=new ye,this.errorHandler=this.options.errorHandler||E9,this.navigated=!1,this.routeReuseStrategy=Y(w9),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=Y(j0,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!Y(z0,{optional:!0}),this.eventsSubscription=new tt,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(r=>{try{let s=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(s!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof so&&r.code!==Yi.Redirect&&r.code!==Yi.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof bs)this.navigated=!0;else if(r instanceof Kc){let a=r.navigationBehaviorOptions,l=this.urlHandlingStrategy.merge(r.url,s.currentRawUrl),c=Z({info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:s.extras.replaceUrl||this.urlUpdateStrategy==="eager"||y9(s.source)},a);this.scheduleNavigation(l,zd,null,c,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}D9(r)&&this._events.next(r)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});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),zd,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,s){let o={replaceUrl:!0},a=s?.navigationId?s:null;if(s){let c=Z({},s);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let l=this.parseUrl(n);this.scheduleNavigation(l,r,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Jw),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,r={}){let{relativeTo:s,queryParams:o,fragment:a,queryParamsHandling:l,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:a,d=null;switch(l){case"merge":d=Z(Z({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let h;try{let f=s?s.snapshot:this.routerState.snapshot.root;h=P2(f)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),h=this.currentUrlTree.root}return U2(h,n,d,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let s=qd(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,zd,null,r)}navigate(n,r={skipLocationChange:!1}){return M9(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let s;if(r===!0?s=Z({},S9):r===!1?s=Z({},I9):s=r,qd(n))return _2(this.currentUrlTree,n,s);let o=this.parseUrl(n);return _2(this.currentUrlTree,o,s)}removeEmptyProps(n){return Object.entries(n).reduce((r,[s,o])=>(o!=null&&(r[s]=o),r),{})}scheduleNavigation(n,r,s,o,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((h,f)=>{l=h,c=f});let d=this.pendingTasks.add();return nR(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(h=>Promise.reject(h))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function M9(t){for(let e=0;e{let e=class e{constructor(n,r,s,o,a,l){this.router=n,this.route=r,this.tabIndexAttribute=s,this.renderer=o,this.el=a,this.locationStrategy=l,this.href=null,this.commands=null,this.onChanges=new ye,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof bs&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n!=null?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,s,o,a){let l=this.urlTree;if(l===null||this.isAnchorElement&&(n!==0||r||s||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(l,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let r=this.href===null?null:oT(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){let s=this.renderer,o=this.el.nativeElement;r!==null?s.setAttribute(o,n,r):s.removeAttribute(o,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(r){return new(r||e)(F(aa),F(pl),En("tabindex"),F(Ko),F(xe),F(ro))},e.\u0275dir=Me({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,s){r&1&&oe("click",function(a){return s.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&Re("target",s.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ne],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ne],replaceUrl:[2,"replaceUrl","replaceUrl",Ne],routerLink:"routerLink"},standalone:!0,features:[gt,Mt]});let t=e;return t})();var H0=class{};var k9=(()=>{let e=class e{constructor(n,r,s,o,a){this.router=n,this.injector=s,this.preloadingStrategy=o,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(et(n=>n instanceof bs),Ur(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){let s=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Kp(o.providers,n,`Route: ${o.path}`));let a=o._injector??n,l=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&s.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&s.push(this.processRoutes(l,o.children??o._loadedRoutes))}return Tt(s).pipe(Fo())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let s;r.loadChildren&&r.canLoad===void 0?s=this.loader.loadChildren(n,r):s=de(null);let o=s.pipe(Gt(a=>a===null?de(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(r);return Tt([o,a]).pipe(Fo())}else return o})}};e.\u0275fac=function(r){return new(r||e)(V(aa),V(r0),V(An),V(H0),V(tC))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),iR=new Q(""),T9=(()=>{let e=class e{constructor(n,r,s,o,a={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=s,this.zone=o,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=Y(An),a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Yc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof bs?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof oa&&n.code===L0.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof N0&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>Bt(this,null,function*(){yield new Promise(s=>{setTimeout(()=>{s()}),ti(()=>{s()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new N0(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(r){Fc()},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})();function A9(t){return t.routerState.root}function oh(t,e){return{\u0275kind:t,\u0275providers:e}}function R9(){let t=Y(It);return e=>{let i=t.get(Hr);if(e!==i.components[0])return;let n=t.get(aa),r=t.get(rR);t.get(rC)===1&&n.initialNavigation(),t.get(sR,null,dt.Optional)?.setUpPreloading(),t.get(iR,null,dt.Optional)?.init(),n.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var rR=new Q("",{factory:()=>new ye}),rC=new Q("",{providedIn:"root",factory:()=>1});function L9(){return oh(2,[{provide:rC,useValue:0},{provide:n0,multi:!0,deps:[It],useFactory:e=>{let i=e.get(NA,Promise.resolve());return()=>i.then(()=>new Promise(n=>{let r=e.get(aa),s=e.get(rR);nR(r,()=>{n(!0)}),e.get(iC).afterPreactivation=()=>(n(!0),s.closed?de(void 0):s),r.initialNavigation()}))}}])}function O9(){return oh(3,[{provide:n0,multi:!0,useFactory:()=>{let e=Y(aa);return()=>{e.setUpLocationChangeListener()}}},{provide:rC,useValue:2}])}var sR=new Q("");function N9(t){return oh(0,[{provide:sR,useExisting:k9},{provide:H0,useExisting:t}])}function F9(){return oh(8,[w2,{provide:z0,useExisting:w2}])}function P9(t){let e=[{provide:J2,useValue:_9},{provide:eR,useValue:Z({skipNextTransition:!!t?.skipInitialTransition},t)}];return oh(9,e)}var S2=new Q("ROUTER_FORROOT_GUARD"),U9=[na,{provide:th,useClass:Gc},aa,nh,{provide:pl,useFactory:A9,deps:[aa]},tC,[]],oR=(()=>{let e=class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[U9,[],{provide:j0,multi:!0,useValue:n},{provide:S2,useFactory:j9,deps:[[aa,new Ys,new Wo]]},{provide:sh,useValue:r||{}},r?.useHash?V9():B9(),$9(),r?.preloadingStrategy?N9(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?H9(r):[],r?.bindToComponentInputs?F9().\u0275providers:[],r?.enableViewTransitions?P9().\u0275providers:[],z9()]}}static forChild(n){return{ngModule:e,providers:[{provide:j0,multi:!0,useValue:n}]}}};e.\u0275fac=function(r){return new(r||e)(V(S2,8))},e.\u0275mod=ce({type:e}),e.\u0275inj=le({});let t=e;return t})();function $9(){return{provide:iR,useFactory:()=>{let t=Y(WA),e=Y(be),i=Y(sh),n=Y(iC),r=Y(th);return i.scrollOffset&&t.setOffset(i.scrollOffset),new T9(r,n,t,e,i)}}}function V9(){return{provide:ro,useClass:PA}}function B9(){return{provide:ro,useClass:iw}}function j9(t){return"guarded"}function H9(t){return[t.initialNavigation==="disabled"?O9().\u0275providers:[],t.initialNavigation==="enabledBlocking"?L9().\u0275providers:[]]}var I2=new Q("");function z9(){return[{provide:I2,useFactory:R9},{provide:i0,multi:!0,useExisting:I2}]}var ca=class{},lR=(()=>{class t extends ca{getTranslation(i){return de({})}static \u0275fac=(()=>{let i;return function(r){return(i||(i=ei(t)))(r||t)}})();static \u0275prov=J({token:t,factory:t.\u0275fac})}return t})(),ah=class{},cR=(()=>{class t{handle(i){return i.key}static \u0275fac=function(n){return new(n||t)};static \u0275prov=J({token:t,factory:t.\u0275fac})}return t})();function gl(t){return typeof t<"u"&&t!==null}function sC(t){return t&&typeof t=="object"&&!Array.isArray(t)}function hR(t,e){let i=Object.assign({},t);return sC(t)&&sC(e)&&Object.keys(e).forEach(n=>{sC(e[n])?n in t?i[n]=hR(t[n],e[n]):Object.assign(i,{[n]:e[n]}):Object.assign(i,{[n]:e[n]})}),i}var Xc=class{},uR=(()=>{class t extends Xc{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(i,n){let r;return typeof i=="string"?r=this.interpolateString(i,n):typeof i=="function"?r=this.interpolateFunction(i,n):r=i,r}getValue(i,n){let r=typeof n=="string"?n.split("."):[n];n="";do n+=r.shift(),gl(i)&&gl(i[n])&&(typeof i[n]=="object"||!r.length)?(i=i[n],n=""):r.length?n+=".":i=void 0;while(r.length);return i}interpolateFunction(i,n){return i(n)}interpolateString(i,n){return n?i.replace(this.templateMatcher,(r,s)=>{let o=this.getValue(n,s);return gl(o)?o:r}):i}static \u0275fac=(()=>{let i;return function(r){return(i||(i=ei(t)))(r||t)}})();static \u0275prov=J({token:t,factory:t.\u0275fac})}return t})(),Jc=class{},dR=(()=>{class t extends Jc{compile(i,n){return i}compileTranslations(i,n){return i}static \u0275fac=(()=>{let i;return function(r){return(i||(i=ei(t)))(r||t)}})();static \u0275prov=J({token:t,factory:t.\u0275fac})}return t})(),G0=class{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new se;onLangChange=new se;onDefaultLangChange=new se},oC=new Q("USE_STORE"),aC=new Q("USE_DEFAULT_LANG"),lC=new Q("DEFAULT_LANGUAGE"),cC=new Q("USE_EXTEND"),Y0=(()=>{class t{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new se;_onLangChange=new se;_onDefaultLangChange=new se;_defaultLang;_currentLang;_langs=[];_translations={};_translationRequests={};get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(i){this.isolate?this._defaultLang=i:this.store.defaultLang=i}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(i){this.isolate?this._currentLang=i:this.store.currentLang=i}get langs(){return this.isolate?this._langs:this.store.langs}set langs(i){this.isolate?this._langs=i:this.store.langs=i}get translations(){return this.isolate?this._translations:this.store.translations}set translations(i){this.isolate?this._translations=i:this.store.translations=i}constructor(i,n,r,s,o,a=!0,l=!1,c=!1,u){this.store=i,this.currentLoader=n,this.compiler=r,this.parser=s,this.missingTranslationHandler=o,this.useDefaultLang=a,this.isolate=l,this.extend=c,u&&this.setDefaultLang(u)}setDefaultLang(i){if(i===this.defaultLang)return;let n=this.retrieveTranslations(i);typeof n<"u"?(this.defaultLang==null&&(this.defaultLang=i),n.pipe(St(1)).subscribe(r=>{this.changeDefaultLang(i)})):this.changeDefaultLang(i)}getDefaultLang(){return this.defaultLang}use(i){if(i===this.currentLang)return de(this.translations[i]);let n=this.retrieveTranslations(i);return typeof n<"u"?(this.currentLang||(this.currentLang=i),n.pipe(St(1)).subscribe(r=>{this.changeLang(i)}),n):(this.changeLang(i),de(this.translations[i]))}retrieveTranslations(i){let n;return(typeof this.translations[i]>"u"||this.extend)&&(this._translationRequests[i]=this._translationRequests[i]||this.getTranslation(i),n=this._translationRequests[i]),n}getTranslation(i){this.pending=!0;let n=this.currentLoader.getTranslation(i).pipe(Wa(1),St(1));return this.loadingTranslations=n.pipe(ve(r=>this.compiler.compileTranslations(r,i)),Wa(1),St(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[i]=this.extend&&this.translations[i]?Z(Z({},r),this.translations[i]):r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),n}setTranslation(i,n,r=!1){n=this.compiler.compileTranslations(n,i),(r||this.extend)&&this.translations[i]?this.translations[i]=hR(this.translations[i],n):this.translations[i]=n,this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}getLangs(){return this.langs}addLangs(i){i.forEach(n=>{this.langs.indexOf(n)===-1&&this.langs.push(n)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(i,n,r){let s;if(n instanceof Array){let o={},a=!1;for(let l of n)o[l]=this.getParsedResult(i,l,r),ur(o[l])&&(a=!0);if(a){let l=n.map(c=>ur(o[c])?o[c]:de(o[c]));return Ha(l).pipe(ve(c=>{let u={};return c.forEach((d,h)=>{u[n[h]]=d}),u}))}return o}if(i&&(s=this.parser.interpolate(this.parser.getValue(i,n),r)),typeof s>"u"&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(s=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],n),r)),typeof s>"u"){let o={key:n,translateService:this};typeof r<"u"&&(o.interpolateParams=r),s=this.missingTranslationHandler.handle(o)}return typeof s<"u"?s:n}get(i,n){if(!gl(i)||!i.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Ur(r=>(r=this.getParsedResult(r,i,n),ur(r)?r:de(r))));{let r=this.getParsedResult(this.translations[this.currentLang],i,n);return ur(r)?r:de(r)}}getStreamOnTranslationChange(i,n){if(!gl(i)||!i.length)throw new Error('Parameter "key" required');return $i(js(()=>this.get(i,n)),this.onTranslationChange.pipe(Nt(r=>{let s=this.getParsedResult(r.translations,i,n);return typeof s.subscribe=="function"?s:de(s)})))}stream(i,n){if(!gl(i)||!i.length)throw new Error('Parameter "key" required');return $i(js(()=>this.get(i,n)),this.onLangChange.pipe(Nt(r=>{let s=this.getParsedResult(r.translations,i,n);return ur(s)?s:de(s)})))}instant(i,n){if(!gl(i)||!i.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],i,n);if(ur(r)){if(i instanceof Array){let s={};return i.forEach((o,a)=>{s[i[a]]=i[a]}),s}return i}else return r}set(i,n,r=this.currentLang){this.translations[r][i]=this.compiler.compile(n,r),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeLang(i){this.currentLang=i,this.onLangChange.emit({lang:i,translations:this.translations[i]}),this.defaultLang==null&&this.changeDefaultLang(i)}changeDefaultLang(i){this.defaultLang=i,this.onDefaultLangChange.emit({lang:i,translations:this.translations[i]})}reloadLang(i){return this.resetLang(i),this.getTranslation(i)}resetLang(i){this._translationRequests[i]=void 0,this.translations[i]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let i=window.navigator.languages?window.navigator.languages[0]:null;if(i=i||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,!(typeof i>"u"))return i.indexOf("-")!==-1&&(i=i.split("-")[0]),i.indexOf("_")!==-1&&(i=i.split("_")[0]),i}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let i=window.navigator.languages?window.navigator.languages[0]:null;return i=i||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,i}static \u0275fac=function(n){return new(n||t)(V(G0),V(ca),V(Jc),V(Xc),V(ah),V(aC),V(oC),V(cC),V(lC))};static \u0275prov=J({token:t,factory:t.\u0275fac})}return t})();var lh=(()=>{class t{static forRoot(i={}){return{ngModule:t,providers:[i.loader||{provide:ca,useClass:lR},i.compiler||{provide:Jc,useClass:dR},i.parser||{provide:Xc,useClass:uR},i.missingTranslationHandler||{provide:ah,useClass:cR},G0,{provide:oC,useValue:i.isolate},{provide:aC,useValue:i.useDefaultLang},{provide:cC,useValue:i.extend},{provide:lC,useValue:i.defaultLanguage},Y0]}}static forChild(i={}){return{ngModule:t,providers:[i.loader||{provide:ca,useClass:lR},i.compiler||{provide:Jc,useClass:dR},i.parser||{provide:Xc,useClass:uR},i.missingTranslationHandler||{provide:ah,useClass:cR},{provide:oC,useValue:i.isolate},{provide:aC,useValue:i.useDefaultLang},{provide:cC,useValue:i.extend},{provide:lC,useValue:i.defaultLanguage},Y0]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ce({type:t});static \u0275inj=le({})}return t})();var K0=class{http;prefix;suffix;constructor(e,i="/assets/i18n/",n=".json"){this.http=e,this.prefix=i,this.suffix=n}getTranslation(e){return this.http.get(`${this.prefix}${e}${this.suffix}`)}};var vL=ss(xC());var yr=(()=>{let e=class e{constructor(){}changeFhirMicroService(n){localStorage.setItem("fhirMicroServer",n)}getFhirMicroService(){return localStorage.getItem("fhirMicroServer")}getFhirClient(){return new vL.default({baseUrl:this.getFhirMicroService()})}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var su={name:"matchbox",version:"3.8.8",license:"MIT",scripts:{ng:"ng",start:"ng serve",build:"ng build --configuration production","build-matchbox":"ng build --configuration production --output-path ../matchbox-server/src/main/resources/static",test:"ng test","test-ci":"ng test --no-watch --no-progress --browsers=ChromeHeadlessNoSandbox --code-coverage",lint:"ng lint",e2e:"ng e2e"},private:!0,dependencies:{"@angular-devkit/build-angular":"^18.0.5","@angular/animations":"^18.0.4","@angular/cdk":"^18.0.4","@angular/common":"^18.0.4","@angular/core":"^18.0.4","@angular/forms":"^18.0.4","@angular/material":"^18.0.4","@angular/platform-browser":"^18.0.4","@angular/platform-browser-dynamic":"^18.0.4","@angular/router":"^18.0.4","@ngx-translate/core":"^15.0.0","@ngx-translate/http-loader":"^8.0.0","ace-builds":"^1.35.0","angular-oauth2-oidc":"^17.0.1","browserify-zlib":"^0.2.0",debug:"^4.3.5","fhir-kit-client":"1.9.2",fhirpath:"^3.13.3","highlightjs-line-numbers.js":"^2.8.0","js-untar":"^2.0.0","ngx-highlightjs":"^10.0.0","ngx-mat-select-search":"^7.0.5",pako:"^2.1.0",rxjs:"^7.8.1",tslib:"^2.6.1","zone.js":"^0.14.7"},devDependencies:{"@angular-eslint/builder":"^18.0.1","@angular-eslint/eslint-plugin":"^18.0.1","@angular-eslint/eslint-plugin-template":"^18.0.1","@angular-eslint/schematics":"^18.0.1","@angular-eslint/template-parser":"^18.0.1","@angular/cli":"^18.0.5","@angular/compiler":"^18.0.4","@angular/compiler-cli":"^18.0.4","@angular/language-service":"^18.0.4","@types/debug":"^4.1.12","@types/jasmine":"^5.1.4","@types/node":"^20.14.7","@types/pako":"^2.0.3","@typescript-eslint/eslint-plugin":"^7.13.1","@typescript-eslint/parser":"^7.13.1",eslint:"^8.57.0",husky:"^9.0.11",jasmine:"^5.1.0","jasmine-core":"^5.1.2","jasmine-spec-reporter":"^7.0.0","json-patch":"^0.7.0",karma:"^6.4.3","karma-chrome-launcher":"^3.2.0","karma-cli":"~2.0.0","karma-coverage-istanbul-reporter":"~3.0.2","karma-jasmine":"^5.1.0","karma-jasmine-html-reporter":"^2.1.0",prettier:"^3.3.2","pretty-quick":"^4.0.0","ts-node":"^10.9.2",tslint:"^6.1.3",typescript:"5.4.5"},browser:{fs:!1,os:!1,path:!1,zlib:!1},husky:{hooks:{"pre-commit":"pretty-quick --staged"}}};var RC;try{RC=typeof Intl<"u"&&Intl.v8BreakIterator}catch{RC=!1}var xt=(()=>{let e=class e{constructor(n){this._platformId=n,this.isBrowser=this._platformId?ul(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||RC)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(r){return new(r||e)(V(fi))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var ou,bL=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function LC(){if(ou)return ou;if(typeof document!="object"||!document)return ou=new Set(bL),ou;let t=document.createElement("input");return ou=new Set(bL.filter(e=>(t.setAttribute("type",e),t.type===e))),ou}var uh;function HW(){if(uh==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>uh=!0}))}finally{uh=uh||!1}return uh}function Ri(t){return HW()?t:!!t.capture}var vl;function yL(){if(vl==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return vl=!1,vl;if("scrollBehavior"in document.documentElement.style)vl=!0;else{let t=Element.prototype.scrollTo;t?vl=!/\{\s*\[native code\]\s*\}/.test(t.toString()):vl=!1}}return vl}var AC;function zW(){if(AC==null){let t=typeof document<"u"?document.head:null;AC=!!(t&&(t.createShadowRoot||t.attachShadow))}return AC}function wL(t){if(zW()){let e=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function OC(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}function Zi(t){return t.composedPath?t.composedPath()[0]:t.target}function dh(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Qi(t,...e){return e.length?e.some(i=>t[i]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Xi(t){return t!=null&&`${t}`!="false"}function au(t,e=0){return WW(t)?Number(t):e}function WW(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function lu(t){return Array.isArray(t)?t:[t]}function mn(t){return t==null?"":typeof t=="string"?t:`${t}px`}function wr(t){return t instanceof xe?t.nativeElement:t}var qW=(()=>{let e=class e{create(n){return typeof MutationObserver>"u"?null:new MutationObserver(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var ng=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({providers:[qW]});let t=e;return t})();var CL=new Set,bl,GW=(()=>{let e=class e{constructor(n,r){this._platform=n,this._nonce=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):KW}matchMedia(n){return(this._platform.WEBKIT||this._platform.BLINK)&&YW(n,this._nonce),this._matchMedia(n)}};e.\u0275fac=function(r){return new(r||e)(V(xt),V(xd,8))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function YW(t,e){if(!CL.has(t))try{bl||(bl=document.createElement("style"),e&&bl.setAttribute("nonce",e),bl.setAttribute("type","text/css"),document.head.appendChild(bl)),bl.sheet&&(bl.sheet.insertRule(`@media ${t} {body{ }}`,0),CL.add(t))}catch(i){console.error(i)}}function KW(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var EL=(()=>{let e=class e{constructor(n,r){this._mediaMatcher=n,this._zone=r,this._queries=new Map,this._destroySubject=new ye}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(n){return xL(lu(n)).some(s=>this._registerQuery(s).mql.matches)}observe(n){let s=xL(lu(n)).map(a=>this._registerQuery(a).observable),o=Pr(s);return o=$i(o.pipe(St(1)),o.pipe(ld(1),dr(0))),o.pipe(ve(a=>{let l={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:u})=>{l.matches=l.matches||c,l.breakpoints[u]=c}),l}))}_registerQuery(n){if(this._queries.has(n))return this._queries.get(n);let r=this._mediaMatcher.matchMedia(n),o={observable:new Ke(a=>{let l=c=>this._zone.run(()=>a.next(c));return r.addListener(l),()=>{r.removeListener(l)}}).pipe(ci(r),ve(({matches:a})=>({query:n,matches:a})),ft(this._destroySubject)),mql:r};return this._queries.set(n,o),o}};e.\u0275fac=function(r){return new(r||e)(V(GW),V(be))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function xL(t){return t.map(e=>e.split(",")).reduce((e,i)=>e.concat(i)).map(e=>e.trim())}var RL=" ";function VC(t,e,i){let n=og(t,e);i=i.trim(),!n.some(r=>r.trim()===i)&&(n.push(i),t.setAttribute(e,n.join(RL)))}function cg(t,e,i){let n=og(t,e);i=i.trim();let r=n.filter(s=>s!==i);r.length?t.setAttribute(e,r.join(RL)):t.removeAttribute(e)}function og(t,e){return t.getAttribute(e)?.match(/\S+/g)??[]}var LL="cdk-describedby-message",ig="cdk-describedby-host",PC=0,OL=(()=>{let e=class e{constructor(n,r){this._platform=r,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${PC++}`,this._document=n,this._id=Y(Nc)+"-"+PC++}describe(n,r,s){if(!this._canBeDescribed(n,r))return;let o=NC(r,s);typeof r!="string"?(SL(r,this._id),this._messageRegistry.set(o,{messageElement:r,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(r,s),this._isElementDescribedByMessage(n,o)||this._addMessageReference(n,o)}removeDescription(n,r,s){if(!r||!this._isElementNode(n))return;let o=NC(r,s);if(this._isElementDescribedByMessage(n,o)&&this._removeMessageReference(n,o),typeof r=="string"){let a=this._messageRegistry.get(o);a&&a.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let n=this._document.querySelectorAll(`[${ig}="${this._id}"]`);for(let r=0;rs.indexOf(LL)!=0);n.setAttribute("aria-describedby",r.join(" "))}_addMessageReference(n,r){let s=this._messageRegistry.get(r);VC(n,"aria-describedby",s.messageElement.id),n.setAttribute(ig,this._id),s.referenceCount++}_removeMessageReference(n,r){let s=this._messageRegistry.get(r);s.referenceCount--,cg(n,"aria-describedby",s.messageElement.id),n.removeAttribute(ig)}_isElementDescribedByMessage(n,r){let s=og(n,"aria-describedby"),o=this._messageRegistry.get(r),a=o&&o.messageElement.id;return!!a&&s.indexOf(a)!=-1}_canBeDescribed(n,r){if(!this._isElementNode(n))return!1;if(r&&typeof r=="object")return!0;let s=r==null?"":`${r}`.trim(),o=n.getAttribute("aria-label");return s?!o||o.trim()!==s:!1}_isElementNode(n){return n.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(r){return new(r||e)(V(Fe),V(xt))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function NC(t,e){return typeof t=="string"?`${e||""}/${t}`:t}function SL(t,e){t.id||(t.id=`${LL}-${e}-${PC++}`)}var UC=class{constructor(e,i){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new ye,this._typeaheadSubscription=tt.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=n=>n.disabled,this._pressedLetters=[],this.tabOut=new ye,this.change=new ye,e instanceof il?this._itemChangesSubscription=e.changes.subscribe(n=>this._itemsChanged(n.toArray())):Yp(e)&&(this._effectRef=H1(()=>this._itemsChanged(e()),{injector:i}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(mt(i=>this._pressedLetters.push(i)),dr(e),et(()=>this._pressedLetters.length>0),ve(()=>this._pressedLetters.join(""))).subscribe(i=>{let n=this._getItemsArray();for(let r=1;r!e[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(i){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let s=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(s>0?s:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let s=this._activeItemIndex+this._pageUpAndDown.delta,o=this._getItemsArray().length;this._setActiveItemByIndex(s=65&&i<=90||i>=48&&i<=57)&&this._letterKeyStream.next(String.fromCharCode(i)));return}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){let i=this._getItemsArray(),n=typeof e=="number"?e:i.indexOf(e),r=i[n];this._activeItem=r??null,this._activeItemIndex=n}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){let i=this._getItemsArray();for(let n=1;n<=i.length;n++){let r=(this._activeItemIndex+e*n+i.length)%i.length,s=i[r];if(!this._skipPredicateFn(s)){this.setActiveItem(r);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,i){let n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(e+=i,!n[e])return;this.setActiveItem(e)}}_getItemsArray(){return Yp(this._items)?this._items():this._items instanceof il?this._items.toArray():this._items}_itemsChanged(e){if(this._activeItem){let i=e.indexOf(this._activeItem);i>-1&&i!==this._activeItemIndex&&(this._activeItemIndex=i)}}},ag=class extends UC{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}};var nq=(()=>{let e=class e{constructor(n){this._platform=n}isDisabled(n){return n.hasAttribute("disabled")}isVisible(n){return rq(n)&&getComputedStyle(n).visibility==="visible"}isTabbable(n){if(!this._platform.isBrowser)return!1;let r=iq(hq(n));if(r&&(IL(r)===-1||!this.isVisible(r)))return!1;let s=n.nodeName.toLowerCase(),o=IL(n);return n.hasAttribute("contenteditable")?o!==-1:s==="iframe"||s==="object"||this._platform.WEBKIT&&this._platform.IOS&&!uq(n)?!1:s==="audio"?n.hasAttribute("controls")?o!==-1:!1:s==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||n.hasAttribute("controls"):n.tabIndex>=0}isFocusable(n,r){return dq(n)&&!this.isDisabled(n)&&(r?.ignoreVisibility||this.isVisible(n))}};e.\u0275fac=function(r){return new(r||e)(V(xt))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function iq(t){try{return t.frameElement}catch{return null}}function rq(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function sq(t){let e=t.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function oq(t){return lq(t)&&t.type=="hidden"}function aq(t){return cq(t)&&t.hasAttribute("href")}function lq(t){return t.nodeName.toLowerCase()=="input"}function cq(t){return t.nodeName.toLowerCase()=="a"}function NL(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let e=t.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function IL(t){if(!NL(t))return null;let e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function uq(t){let e=t.nodeName.toLowerCase(),i=e==="input"&&t.type;return i==="text"||i==="password"||e==="select"||e==="textarea"}function dq(t){return oq(t)?!1:sq(t)||aq(t)||t.hasAttribute("contenteditable")||NL(t)}function hq(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var $C=class{get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}constructor(e,i,n,r,s=!1,o){this._element=e,this._checker=i,this._ngZone=n,this._document=r,this._injector=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}destroy(){let e=this._startAnchor,i=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),i&&(i.removeEventListener("focus",this.endAnchorListener),i.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let i=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?i.length?i[0]:this._getFirstTabbableElement(this._element):i.length?i[i.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let i=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(i){if(!this._checker.isFocusable(i)){let n=this._getFirstTabbableElement(i);return n?.focus(e),!!n}return i.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let i=this._getRegionBoundary("start");return i&&i.focus(e),!!i}focusLastTabbableElement(e){let i=this._getRegionBoundary("end");return i&&i.focus(e),!!i}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let i=e.children;for(let n=0;n=0;n--){let r=i[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(i[n]):null;if(r)return r}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,i){e?i.setAttribute("tabindex","0"):i.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?this._injector?ti(e,{injector:this._injector}):e():this._ngZone.onStable.pipe(St(1)).subscribe(e)}},fq=(()=>{let e=class e{constructor(n,r,s){this._checker=n,this._ngZone=r,this._injector=Y(It),this._document=s}create(n,r=!1){return new $C(n,this._checker,this._ngZone,this._document,r,this._injector)}};e.\u0275fac=function(r){return new(r||e)(V(nq),V(be),V(Fe))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),FL=(()=>{let e=class e{get enabled(){return this.focusTrap?.enabled||!1}set enabled(n){this.focusTrap&&(this.focusTrap.enabled=n)}constructor(n,r,s){this._elementRef=n,this._focusTrapFactory=r,this._previouslyFocusedElement=null,Y(xt).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(n){let r=n.autoCapture;r&&!r.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=OC(),this.focusTrap?.focusInitialElementWhenReady()}};e.\u0275fac=function(r){return new(r||e)(F(xe),F(fq),F(Fe))},e.\u0275dir=Me({type:e,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",Ne],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",Ne]},exportAs:["cdkTrapFocus"],standalone:!0,features:[gt,Mt]});let t=e;return t})();function BC(t){return t.buttons===0||t.detail===0}function jC(t){let e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var mq=new Q("cdk-input-modality-detector-options"),pq={ignoreKeys:[18,17,224,91,16]},PL=650,cu=Ri({passive:!0,capture:!0}),gq=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(n,r,s,o){this._platform=n,this._mostRecentTarget=null,this._modality=new tn(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(l=>l===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Zi(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs{if(jC(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Zi(a)},this._options=Z(Z({},pq),o),this.modalityDetected=this._modality.pipe(ld(1)),this.modalityChanged=this.modalityDetected.pipe($r()),n.isBrowser&&r.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,cu),s.addEventListener("mousedown",this._onMousedown,cu),s.addEventListener("touchstart",this._onTouchstart,cu)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,cu),document.removeEventListener("mousedown",this._onMousedown,cu),document.removeEventListener("touchstart",this._onTouchstart,cu))}};e.\u0275fac=function(r){return new(r||e)(V(xt),V(be),V(Fe),V(mq,8))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),_q=new Q("liveAnnouncerElement",{providedIn:"root",factory:vq});function vq(){return null}var bq=new Q("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),yq=0,UL=(()=>{let e=class e{constructor(n,r,s,o){this._ngZone=r,this._defaultOptions=o,this._document=s,this._liveElement=n||this._createLiveElement()}announce(n,...r){let s=this._defaultOptions,o,a;return r.length===1&&typeof r[0]=="number"?a=r[0]:[o,a]=r,this.clear(),clearTimeout(this._previousTimeout),o||(o=s&&s.politeness?s.politeness:"polite"),a==null&&s&&(a=s.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(l=>this._currentResolve=l)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=n,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let n="cdk-live-announcer-element",r=this._document.getElementsByClassName(n),s=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let s=0;s{let e=class e{constructor(n,r,s,o,a){this._ngZone=n,this._platform=r,this._inputModalityDetector=s,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new ye,this._rootNodeFocusAndBlurListener=l=>{let c=Zi(l);for(let u=c;u;u=u.parentElement)l.type==="focus"?this._onFocus(l,u):this._onBlur(l,u)},this._document=o,this._detectionMode=a?.detectionMode||sg.IMMEDIATE}monitor(n,r=!1){let s=wr(n);if(!this._platform.isBrowser||s.nodeType!==1)return de();let o=wL(s)||this._getDocument(),a=this._elementInfo.get(s);if(a)return r&&(a.checkChildren=!0),a.subject;let l={checkChildren:r,subject:new ye,rootNode:o};return this._elementInfo.set(s,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(n){let r=wr(n),s=this._elementInfo.get(r);s&&(s.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(s))}focusVia(n,r,s){let o=wr(n),a=this._getDocument().activeElement;o===a?this._getClosestElementsInfo(o).forEach(([l,c])=>this._originChanged(l,r,c)):(this._setOrigin(r),typeof o.focus=="function"&&o.focus(s))}ngOnDestroy(){this._elementInfo.forEach((n,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:n&&this._isLastInteractionFromInputLabel(n)?"mouse":"program"}_shouldBeAttributedToTouch(n){return this._detectionMode===sg.EVENTUAL||!!n?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(n,r){n.classList.toggle("cdk-focused",!!r),n.classList.toggle("cdk-touch-focused",r==="touch"),n.classList.toggle("cdk-keyboard-focused",r==="keyboard"),n.classList.toggle("cdk-mouse-focused",r==="mouse"),n.classList.toggle("cdk-program-focused",r==="program")}_setOrigin(n,r=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=n,this._originFromTouchInteraction=n==="touch"&&r,this._detectionMode===sg.IMMEDIATE){clearTimeout(this._originTimeoutId);let s=this._originFromTouchInteraction?PL:1;this._originTimeoutId=setTimeout(()=>this._origin=null,s)}})}_onFocus(n,r){let s=this._elementInfo.get(r),o=Zi(n);!s||!s.checkChildren&&r!==o||this._originChanged(r,this._getFocusOrigin(o),s)}_onBlur(n,r){let s=this._elementInfo.get(r);!s||s.checkChildren&&n.relatedTarget instanceof Node&&r.contains(n.relatedTarget)||(this._setClasses(r),this._emitOrigin(s,null))}_emitOrigin(n,r){n.subject.observers.length&&this._ngZone.run(()=>n.subject.next(r))}_registerGlobalListeners(n){if(!this._platform.isBrowser)return;let r=n.rootNode,s=this._rootNodeFocusListenerCount.get(r)||0;s||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,rg),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,rg)}),this._rootNodeFocusListenerCount.set(r,s+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ft(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(n){let r=n.rootNode;if(this._rootNodeFocusListenerCount.has(r)){let s=this._rootNodeFocusListenerCount.get(r);s>1?this._rootNodeFocusListenerCount.set(r,s-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,rg),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,rg),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(n,r,s){this._setClasses(n,r),this._emitOrigin(s,r),this._lastFocusOrigin=r}_getClosestElementsInfo(n){let r=[];return this._elementInfo.forEach((s,o)=>{(o===n||s.checkChildren&&o.contains(n))&&r.push([o,s])}),r}_isLastInteractionFromInputLabel(n){let{_mostRecentTarget:r,mostRecentModality:s}=this._inputModalityDetector;if(s!=="mouse"||!r||r===n||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA"||n.disabled)return!1;let o=n.labels;if(o){for(let a=0;a{let e=class e{constructor(n,r){this._elementRef=n,this._focusMonitor=r,this._focusOrigin=null,this.cdkFocusChange=new se}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let n=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(n,n.nodeType===1&&n.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(r=>{this._focusOrigin=r,this.cdkFocusChange.emit(r)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(F(xe),F(qr))},e.\u0275dir=Me({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0});let t=e;return t})(),yl=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t}(yl||{}),ML="cdk-high-contrast-black-on-white",DL="cdk-high-contrast-white-on-black",FC="cdk-high-contrast-active",HC=(()=>{let e=class e{constructor(n,r){this._platform=n,this._document=r,this._breakpointSubscription=Y(EL).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return yl.NONE;let n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);let r=this._document.defaultView||window,s=r&&r.getComputedStyle?r.getComputedStyle(n):null,o=(s&&s.backgroundColor||"").replace(/ /g,"");switch(n.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return yl.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return yl.BLACK_ON_WHITE}return yl.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let n=this._document.body.classList;n.remove(FC,ML,DL),this._hasCheckedHighContrastMode=!0;let r=this.getHighContrastMode();r===yl.BLACK_ON_WHITE?n.add(FC,ML):r===yl.WHITE_ON_BLACK&&n.add(FC,DL)}}};e.\u0275fac=function(r){return new(r||e)(V(xt),V(Fe))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ug=(()=>{let e=class e{constructor(n){n._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(r){return new(r||e)(V(HC))},e.\u0275mod=ce({type:e}),e.\u0275inj=le({imports:[ng]});let t=e;return t})();var Cq=new Q("cdk-dir-doc",{providedIn:"root",factory:xq});function xq(){return Y(Fe)}var Eq=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Sq(t){let e=t?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?Eq.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var Ji=(()=>{let e=class e{constructor(n){if(this.value="ltr",this.change=new se,n){let r=n.body?n.body.dir:null,s=n.documentElement?n.documentElement.dir:null;this.value=Sq(r||s||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(r){return new(r||e)(V(Cq,8))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var ua=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({});let t=e;return t})();var Iq=["text"],Mq=[[["mat-icon"]],"*"],Dq=["mat-icon","*"];function kq(t,e){if(t&1&&ue(0,"mat-pseudo-checkbox",1),t&2){let i=te();K("disabled",i.disabled)("state",i.selected?"checked":"unchecked")}}function Tq(t,e){if(t&1&&ue(0,"mat-pseudo-checkbox",3),t&2){let i=te();K("disabled",i.disabled)}}function Aq(t,e){if(t&1&&(O(0,"span",4),B(1),N()),t&2){let i=te();$(),at("(",i.group.label,")")}}var Rq=["mat-internal-form-field",""],Lq=["*"];function Oq(){return!0}var Nq=new Q("mat-sanity-checks",{providedIn:"root",factory:Oq}),Pe=(()=>{let e=class e{constructor(n,r,s){this._sanityChecks=r,this._document=s,this._hasDoneGlobalChecks=!1,n._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(n){return dh()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[n]}};e.\u0275fac=function(r){return new(r||e)(V(HC),V(Nq,8),V(Fe))},e.\u0275mod=ce({type:e}),e.\u0275inj=le({imports:[ua,ua]});let t=e;return t})();var xl=class{constructor(e,i,n,r,s){this._defaultMatcher=e,this.ngControl=i,this._parentFormGroup=n,this._parentForm=r,this._stateChanges=s,this.errorState=!1}updateErrorState(){let e=this.errorState,i=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,s=n?.isErrorState(r,i)??!1;s!==e&&(this.errorState=s,this._stateChanges.next())}};var VL=new Q("MAT_DATE_LOCALE",{providedIn:"root",factory:Fq});function Fq(){return Y($c)}var Li=class{constructor(){this._localeChanges=new ye,this.localeChanges=this._localeChanges}getValidDateOrNull(e){return this.isDateInstance(e)&&this.isValid(e)?e:null}deserialize(e){return e==null||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()}setLocale(e){this.locale=e,this._localeChanges.next()}compareDate(e,i){return this.getYear(e)-this.getYear(i)||this.getMonth(e)-this.getMonth(i)||this.getDate(e)-this.getDate(i)}sameDate(e,i){if(e&&i){let n=this.isValid(e),r=this.isValid(i);return n&&r?!this.compareDate(e,i):n==r}return e==i}clampDate(e,i,n){return i&&this.compareDate(e,i)<0?i:n&&this.compareDate(e,n)>0?n:e}},fu=new Q("mat-date-formats"),Pq=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function zC(t,e){let i=Array(t);for(let n=0;n{let e=class e extends Li{constructor(n){super(),this.useUtcForDisplay=!1,this._matDateLocale=Y(VL,{optional:!0}),n!==void 0&&(this._matDateLocale=n),super.setLocale(this._matDateLocale)}getYear(n){return n.getFullYear()}getMonth(n){return n.getMonth()}getDate(n){return n.getDate()}getDayOfWeek(n){return n.getDay()}getMonthNames(n){let r=new Intl.DateTimeFormat(this.locale,{month:n,timeZone:"utc"});return zC(12,s=>this._format(r,new Date(2017,s,1)))}getDateNames(){let n=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return zC(31,r=>this._format(n,new Date(2017,0,r+1)))}getDayOfWeekNames(n){let r=new Intl.DateTimeFormat(this.locale,{weekday:n,timeZone:"utc"});return zC(7,s=>this._format(r,new Date(2017,0,s+1)))}getYearName(n){let r=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(r,n)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(n){return this.getDate(this._createDateWithOverflow(this.getYear(n),this.getMonth(n)+1,0))}clone(n){return new Date(n.getTime())}createDate(n,r,s){let o=this._createDateWithOverflow(n,r,s);return o.getMonth()!=r,o}today(){return new Date}parse(n,r){return typeof n=="number"?new Date(n):n?new Date(Date.parse(n)):null}format(n,r){if(!this.isValid(n))throw Error("NativeDateAdapter: Cannot format invalid date.");let s=new Intl.DateTimeFormat(this.locale,We(Z({},r),{timeZone:"utc"}));return this._format(s,n)}addCalendarYears(n,r){return this.addCalendarMonths(n,r*12)}addCalendarMonths(n,r){let s=this._createDateWithOverflow(this.getYear(n),this.getMonth(n)+r,this.getDate(n));return this.getMonth(s)!=((this.getMonth(n)+r)%12+12)%12&&(s=this._createDateWithOverflow(this.getYear(s),this.getMonth(s),0)),s}addCalendarDays(n,r){return this._createDateWithOverflow(this.getYear(n),this.getMonth(n),this.getDate(n)+r)}toIso8601(n){return[n.getUTCFullYear(),this._2digit(n.getUTCMonth()+1),this._2digit(n.getUTCDate())].join("-")}deserialize(n){if(typeof n=="string"){if(!n)return null;if(Pq.test(n)){let r=new Date(n);if(this.isValid(r))return r}}return super.deserialize(n)}isDateInstance(n){return n instanceof Date}isValid(n){return!isNaN(n.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(n,r,s){let o=new Date;return o.setFullYear(n,r,s),o.setHours(0,0,0,0),o}_2digit(n){return("00"+n).slice(-2)}_format(n,r){let s=new Date;return s.setUTCFullYear(r.getFullYear(),r.getMonth(),r.getDate()),s.setUTCHours(r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()),n.format(s)}};e.\u0275fac=function(r){return new(r||e)(V(VL,8))},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})(),$q={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};var ZC=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({providers:[Vq()]});let t=e;return t})();function Vq(t=$q){return[{provide:Li,useClass:Uq},{provide:fu,useValue:t}]}var gh=(()=>{let e=class e{isErrorState(n,r){return!!(n&&n.invalid&&(n.touched||r&&r.submitted))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var er=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(er||{}),GC=class{constructor(e,i,n,r=!1){this._renderer=e,this.element=i,this.config=n,this._animationForciblyDisabledThroughCss=r,this.state=er.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},BL=Ri({passive:!0,capture:!0}),YC=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let i=Zi(e);i&&this._events.get(e.type)?.forEach((n,r)=>{(r===i||r.contains(i))&&n.forEach(s=>s.handleEvent(e))})}}addHandler(e,i,n,r){let s=this._events.get(i);if(s){let o=s.get(n);o?o.add(r):s.set(n,new Set([r]))}else this._events.set(i,new Map([[n,new Set([r])]])),e.runOutsideAngular(()=>{document.addEventListener(i,this._delegateEventHandler,BL)})}removeHandler(e,i,n){let r=this._events.get(e);if(!r)return;let s=r.get(i);s&&(s.delete(n),s.size===0&&r.delete(i),r.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,BL)))}},jL={enterDuration:225,exitDuration:150},Bq=800,HL=Ri({passive:!0,capture:!0}),zL=["mousedown","touchstart"],WL=["mouseup","mouseleave","touchend","touchcancel"],ph=class ph{constructor(e,i,n,r){this._target=e,this._ngZone=i,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=wr(n))}fadeInRipple(e,i,n={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Z(Z({},jL),n.animation);n.centered&&(e=r.left+r.width/2,i=r.top+r.height/2);let o=n.radius||jq(e,i,r),a=e-r.left,l=i-r.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=`${a-o}px`,u.style.top=`${l-o}px`,u.style.height=`${o*2}px`,u.style.width=`${o*2}px`,n.color!=null&&(u.style.backgroundColor=n.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);let d=window.getComputedStyle(u),h=d.transitionProperty,f=d.transitionDuration,m=h==="none"||f==="0s"||f==="0s, 0s"||r.width===0&&r.height===0,p=new GC(this,u,n,m);u.style.transform="scale3d(1, 1, 1)",p.state=er.FADING_IN,n.persistent||(this._mostRecentTransientRipple=p);let g=null;return!m&&(c||s.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let w=()=>this._finishRippleTransition(p),C=()=>this._destroyRipple(p);u.addEventListener("transitionend",w),u.addEventListener("transitioncancel",C),g={onTransitionEnd:w,onTransitionCancel:C}}),this._activeRipples.set(p,g),(m||!c)&&this._finishRippleTransition(p),p}fadeOutRipple(e){if(e.state===er.FADING_OUT||e.state===er.HIDDEN)return;let i=e.element,n=Z(Z({},jL),e.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",e.state=er.FADING_OUT,(e._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let i=wr(e);!this._platform.isBrowser||!i||i===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=i,zL.forEach(n=>{ph._eventManager.addHandler(this._ngZone,n,i,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{WL.forEach(i=>{this._triggerElement.addEventListener(i,this,HL)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===er.FADING_IN?this._startFadeOutTransition(e):e.state===er.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let i=e===this._mostRecentTransientRipple,{persistent:n}=e.config;e.state=er.VISIBLE,!n&&(!i||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let i=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=er.HIDDEN,i!==null&&(e.element.removeEventListener("transitionend",i.onTransitionEnd),e.element.removeEventListener("transitioncancel",i.onTransitionCancel)),e.element.remove()}_onMousedown(e){let i=BC(e),n=this._lastTouchStartEvent&&Date.now(){let i=e.state===er.VISIBLE||e.config.terminateOnPointerUp&&e.state===er.FADING_IN;!e.config.persistent&&i&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(zL.forEach(i=>ph._eventManager.removeHandler(i,e,this)),this._pointerUpEventsRegistered&&(WL.forEach(i=>e.removeEventListener(i,this,HL)),this._pointerUpEventsRegistered=!1))}};ph._eventManager=new YC;var KC=ph;function jq(t,e,i){let n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),r=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+r*r)}var fg=new Q("mat-ripple-global-options"),tr=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(n){this._trigger=n,this._setupTriggerEventsIfEnabled()}constructor(n,r,s,o,a){this._elementRef=n,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new KC(this,r,n,s)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Z(Z(Z({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(n,r=0,s){return typeof n=="number"?this._rippleRenderer.fadeInRipple(n,r,Z(Z({},this.rippleConfig),s)):this._rippleRenderer.fadeInRipple(0,0,Z(Z({},this.rippleConfig),n))}};e.\u0275fac=function(r){return new(r||e)(F(xe),F(be),F(xt),F(fg,8),F(cn,8))},e.\u0275dir=Me({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(r,s){r&2&&Ae("mat-ripple-unbounded",s.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let t=e;return t})(),uo=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({imports:[Pe,Pe]});let t=e;return t})(),Hq=(()=>{let e=class e{constructor(n){this._animationMode=n,this.state="unchecked",this.disabled=!1,this.appearance="full"}};e.\u0275fac=function(r){return new(r||e)(F(cn,8))},e.\u0275cmp=Ee({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(r,s){r&2&&Ae("mat-pseudo-checkbox-indeterminate",s.state==="indeterminate")("mat-pseudo-checkbox-checked",s.state==="checked")("mat-pseudo-checkbox-disabled",s.disabled)("mat-pseudo-checkbox-minimal",s.appearance==="minimal")("mat-pseudo-checkbox-full",s.appearance==="full")("_mat-animation-noopable",s._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[Ge],decls:0,vars:0,template:function(r,s){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0});let t=e;return t})(),zq=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({imports:[Pe]});let t=e;return t})(),mg=new Q("MAT_OPTION_PARENT_COMPONENT");var pg=new Q("MatOptgroup");var Wq=0,hg=class{constructor(e,i=!1){this.source=e,this.isUserInput=i}},Gr=(()=>{let e=class e{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(n){this._disabled=n}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(n,r,s,o){this._element=n,this._changeDetectorRef=r,this._parent=s,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${Wq++}`,this.onSelectionChange=new se,this._stateChanges=new ye}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(n=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),n&&this._emitSelectionChangeEvent())}deselect(n=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),n&&this._emitSelectionChangeEvent())}focus(n,r){let s=this._getHostElement();typeof s.focus=="function"&&s.focus(r)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(n){(n.keyCode===13||n.keyCode===32)&&!Qi(n)&&(this._selectViaInteraction(),n.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let n=this.viewValue;n!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=n)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(n=!1){this.onSelectionChange.emit(new hg(this,n))}};e.\u0275fac=function(r){return new(r||e)(F(xe),F(Ye),F(mg,8),F(pg,8))},e.\u0275cmp=Ee({type:e,selectors:[["mat-option"]],viewQuery:function(r,s){if(r&1&&it(Iq,7),r&2){let o;Le(o=Oe())&&(s._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(r,s){r&1&&oe("click",function(){return s._selectViaInteraction()})("keydown",function(a){return s._handleKeydown(a)}),r&2&&(Wi("id",s.id),Re("aria-selected",s.selected)("aria-disabled",s.disabled.toString()),Ae("mdc-list-item--selected",s.selected)("mat-mdc-option-multiple",s.multiple)("mat-mdc-option-active",s.active)("mdc-list-item--disabled",s.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",Ne]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[gt,Ge],ngContentSelectors:Dq,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(r,s){r&1&&(bt(Mq),he(0,kq,1,2,"mat-pseudo-checkbox",1),ze(1),O(2,"span",2,0),ze(4,1),N(),he(5,Tq,1,1,"mat-pseudo-checkbox",3)(6,Aq,2,1,"span",4),ue(7,"div",5)),r&2&&(ut(s.multiple?0:-1),$(5),ut(!s.multiple&&s.selected&&!s.hideSingleSelectionIndicator?5:-1),$(),ut(s.group&&s.group._inert?6:-1),$(),K("matRippleTrigger",s._getHostElement())("matRippleDisabled",s.disabled||s.disableRipple))},dependencies:[Hq,tr],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight)}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color);outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let t=e;return t})();function QC(t,e,i){if(i.length){let n=e.toArray(),r=i.toArray(),s=0;for(let o=0;oi+n?Math.max(0,t-n+e):i}var mu=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({imports:[uo,Pe,zq]});let t=e;return t})(),qL={capture:!0},GL=["focus","mousedown","mouseenter","touchstart"],WC="mat-ripple-loader-uninitialized",qC="mat-ripple-loader-class-name",YL="mat-ripple-loader-centered",dg="mat-ripple-loader-disabled",KL=(()=>{let e=class e{constructor(){this._document=Y(Fe,{optional:!0}),this._animationMode=Y(cn,{optional:!0}),this._globalRippleOptions=Y(fg,{optional:!0}),this._platform=Y(xt),this._ngZone=Y(be),this._hosts=new Map,this._onInteraction=n=>{let r=Zi(n);if(r instanceof HTMLElement){let s=r.closest(`[${WC}="${this._globalRippleOptions?.namespace??""}"]`);s&&this._createRipple(s)}},this._ngZone.runOutsideAngular(()=>{for(let n of GL)this._document?.addEventListener(n,this._onInteraction,qL)})}ngOnDestroy(){let n=this._hosts.keys();for(let r of n)this.destroyRipple(r);for(let r of GL)this._document?.removeEventListener(r,this._onInteraction,qL)}configureRipple(n,r){n.setAttribute(WC,this._globalRippleOptions?.namespace??""),(r.className||!n.hasAttribute(qC))&&n.setAttribute(qC,r.className||""),r.centered&&n.setAttribute(YL,""),r.disabled&&n.setAttribute(dg,"")}getRipple(n){return this._hosts.get(n)||this._createRipple(n)}setDisabled(n,r){let s=this._hosts.get(n);if(s){s.disabled=r;return}r?n.setAttribute(dg,""):n.removeAttribute(dg)}_createRipple(n){if(!this._document)return;let r=this._hosts.get(n);if(r)return r;n.querySelector(".mat-ripple")?.remove();let s=this._document.createElement("span");s.classList.add("mat-ripple",n.getAttribute(qC)),n.append(s);let o=new tr(new xe(s),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return o._isInitialized=!0,o.trigger=n,o.centered=n.hasAttribute(YL),o.disabled=n.hasAttribute(dg),this.attachRipple(n,o),o}attachRipple(n,r){n.removeAttribute(WC),this._hosts.set(n,r)}destroyRipple(n){let r=this._hosts.get(n);r&&(r.ngOnDestroy(),this._hosts.delete(n))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),pu=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ee({type:e,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(r,s){r&2&&Ae("mdc-form-field--align-end",s.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[Ge],attrs:Rq,ngContentSelectors:Lq,decls:1,vars:0,template:function(r,s){r&1&&(bt(),ze(0))},styles:[".mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0});let t=e;return t})();var qq=["*"],gg;function Gq(){if(gg===void 0&&(gg=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(gg=t.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return gg}function vh(t){return Gq()?.createHTML(t)||t}function ZL(t){return Error(`Unable to find icon with the name "${t}"`)}function Yq(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function QL(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function XL(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var ho=class{constructor(e,i,n){this.url=e,this.svgText=i,this.options=n}},Kq=(()=>{let e=class e{constructor(n,r,s,o){this._httpClient=n,this._sanitizer=r,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=s}addSvgIcon(n,r,s){return this.addSvgIconInNamespace("",n,r,s)}addSvgIconLiteral(n,r,s){return this.addSvgIconLiteralInNamespace("",n,r,s)}addSvgIconInNamespace(n,r,s,o){return this._addSvgIconConfig(n,r,new ho(s,null,o))}addSvgIconResolver(n){return this._resolvers.push(n),this}addSvgIconLiteralInNamespace(n,r,s,o){let a=this._sanitizer.sanitize(Sn.HTML,s);if(!a)throw XL(s);let l=vh(a);return this._addSvgIconConfig(n,r,new ho("",l,o))}addSvgIconSet(n,r){return this.addSvgIconSetInNamespace("",n,r)}addSvgIconSetLiteral(n,r){return this.addSvgIconSetLiteralInNamespace("",n,r)}addSvgIconSetInNamespace(n,r,s){return this._addSvgIconSetConfig(n,new ho(r,null,s))}addSvgIconSetLiteralInNamespace(n,r,s){let o=this._sanitizer.sanitize(Sn.HTML,r);if(!o)throw XL(r);let a=vh(o);return this._addSvgIconSetConfig(n,new ho("",a,s))}registerFontClassAlias(n,r=n){return this._fontCssClassesByAlias.set(n,r),this}classNameForFontAlias(n){return this._fontCssClassesByAlias.get(n)||n}setDefaultFontSetClass(...n){return this._defaultFontSetClass=n,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(n){let r=this._sanitizer.sanitize(Sn.RESOURCE_URL,n);if(!r)throw QL(n);let s=this._cachedIconsByUrl.get(r);return s?de(_g(s)):this._loadSvgIconFromConfig(new ho(n,null)).pipe(mt(o=>this._cachedIconsByUrl.set(r,o)),ve(o=>_g(o)))}getNamedSvgIcon(n,r=""){let s=JL(r,n),o=this._svgIconConfigs.get(s);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(r,n),o)return this._svgIconConfigs.set(s,o),this._getSvgFromConfig(o);let a=this._iconSetConfigs.get(r);return a?this._getSvgFromIconSetConfigs(n,a):Tn(ZL(s))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(n){return n.svgText?de(_g(this._svgElementFromConfig(n))):this._loadSvgIconFromConfig(n).pipe(ve(r=>_g(r)))}_getSvgFromIconSetConfigs(n,r){let s=this._extractIconWithNameFromAnySet(n,r);if(s)return de(s);let o=r.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(wn(l=>{let u=`Loading icon set URL: ${this._sanitizer.sanitize(Sn.RESOURCE_URL,a.url)} failed: ${l.message}`;return this._errorHandler.handleError(new Error(u)),de(null)})));return Ha(o).pipe(ve(()=>{let a=this._extractIconWithNameFromAnySet(n,r);if(!a)throw ZL(n);return a}))}_extractIconWithNameFromAnySet(n,r){for(let s=r.length-1;s>=0;s--){let o=r[s];if(o.svgText&&o.svgText.toString().indexOf(n)>-1){let a=this._svgElementFromConfig(o),l=this._extractSvgIconFromSet(a,n,o.options);if(l)return l}}return null}_loadSvgIconFromConfig(n){return this._fetchIcon(n).pipe(mt(r=>n.svgText=r),ve(()=>this._svgElementFromConfig(n)))}_loadSvgIconSetFromConfig(n){return n.svgText?de(null):this._fetchIcon(n).pipe(mt(r=>n.svgText=r))}_extractSvgIconFromSet(n,r,s){let o=n.querySelector(`[id="${r}"]`);if(!o)return null;let a=o.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,s);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),s);let l=this._svgElementFromString(vh(""));return l.appendChild(a),this._setSvgAttributes(l,s)}_svgElementFromString(n){let r=this._document.createElement("DIV");r.innerHTML=n;let s=r.querySelector("svg");if(!s)throw Error(" tag not found");return s}_toSvgElement(n){let r=this._svgElementFromString(vh("")),s=n.attributes;for(let o=0;ovh(u)),as(()=>this._inProgressUrlFetches.delete(a)),ad());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(n,r,s){return this._svgIconConfigs.set(JL(n,r),s),this}_addSvgIconSetConfig(n,r){let s=this._iconSetConfigs.get(n);return s?s.push(r):this._iconSetConfigs.set(n,[r]),this}_svgElementFromConfig(n){if(!n.svgElement){let r=this._svgElementFromString(n.svgText);this._setSvgAttributes(r,n.options),n.svgElement=r}return n.svgElement}_getIconConfigFromResolvers(n,r){for(let s=0;se?e.pathname+e.search:""}}var eO=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],eG=eO.map(t=>`[${t}]`).join(", "),tG=/^url\(['"]?#(.*?)['"]?\)$/,ws=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(n){this._color=n}get svgIcon(){return this._svgIcon}set svgIcon(n){n!==this._svgIcon&&(n?this._updateSvgIcon(n):this._svgIcon&&this._clearSvgElement(),this._svgIcon=n)}get fontSet(){return this._fontSet}set fontSet(n){let r=this._cleanupFontValue(n);r!==this._fontSet&&(this._fontSet=r,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(n){let r=this._cleanupFontValue(n);r!==this._fontIcon&&(this._fontIcon=r,this._updateFontIconClasses())}constructor(n,r,s,o,a,l){this._elementRef=n,this._iconRegistry=r,this._location=o,this._errorHandler=a,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=tt.EMPTY,l&&(l.color&&(this.color=this._defaultColor=l.color),l.fontSet&&(this.fontSet=l.fontSet)),s||n.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(n){if(!n)return["",""];let r=n.split(":");switch(r.length){case 1:return["",r[0]];case 2:return r;default:throw Error(`Invalid icon name: "${n}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let n=this._elementsWithExternalReferences;if(n&&n.size){let r=this._location.getPathname();r!==this._previousPath&&(this._previousPath=r,this._prependPathToReferences(r))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(n){this._clearSvgElement();let r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(n),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(n)}_clearSvgElement(){let n=this._elementRef.nativeElement,r=n.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();r--;){let s=n.childNodes[r];(s.nodeType!==1||s.nodeName.toLowerCase()==="svg")&&s.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let n=this._elementRef.nativeElement,r=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(s=>s.length>0);this._previousFontSetClass.forEach(s=>n.classList.remove(s)),r.forEach(s=>n.classList.add(s)),this._previousFontSetClass=r,this.fontIcon!==this._previousFontIconClass&&!r.includes("mat-ligature-font")&&(this._previousFontIconClass&&n.classList.remove(this._previousFontIconClass),this.fontIcon&&n.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(n){return typeof n=="string"?n.trim().split(" ")[0]:n}_prependPathToReferences(n){let r=this._elementsWithExternalReferences;r&&r.forEach((s,o)=>{s.forEach(a=>{o.setAttribute(a.name,`url('${n}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(n){let r=n.querySelectorAll(eG),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{let l=r[o],c=l.getAttribute(a),u=c?c.match(tG):null;if(u){let d=s.get(l);d||(d=[],s.set(l,d)),d.push({name:a,value:u[1]})}})}_updateSvgIcon(n){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),n){let[r,s]=this._splitIconName(n);r&&(this._svgNamespace=r),s&&(this._svgName=s),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(s,r).pipe(St(1)).subscribe(o=>this._setSvgElement(o),o=>{let a=`Error retrieving icon ${r}:${s}! ${o.message}`;this._errorHandler.handleError(new Error(a))})}}};e.\u0275fac=function(r){return new(r||e)(F(xe),F(Kq),En("aria-hidden"),F(Xq),F(hi),F(Qq,8))},e.\u0275cmp=Ee({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(r,s){r&2&&(Re("data-mat-icon-type",s._usingFontIcon()?"font":"svg")("data-mat-icon-name",s._svgName||s.fontIcon)("data-mat-icon-namespace",s._svgNamespace||s.fontSet)("fontIcon",s._usingFontIcon()?s.fontIcon:null),In(s.color?"mat-"+s.color:""),Ae("mat-icon-inline",s.inline)("mat-icon-no-color",s.color!=="primary"&&s.color!=="accent"&&s.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",Ne],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[gt,Ge],ngContentSelectors:qq,decls:1,vars:0,template:function(r,s){r&1&&(bt(),ze(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0});let t=e;return t})(),bh=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({imports:[Pe,Pe]});let t=e;return t})();var tO=(()=>{let e=class e{constructor(n,r){this.version=su.version,n.setDefaultLang("de"),n.use(n.getBrowserLang());let s=location.origin;if(s==="http://localhost:4200")console.log("note: using local dev mag system for"+location.origin),r.changeFhirMicroService("http://localhost:8080/matchboxv3/fhir");else{let o=s+location.pathname+"fhir";r.changeFhirMicroService(o),console.log("fhir endpoint "+o)}}};e.\u0275fac=function(r){return new(r||e)(F(Y0),F(yr))},e.\u0275cmp=Ee({type:e,selectors:[["app-root"]],decls:43,vars:1,consts:[["routerLink","/",1,"logo-container"],["alt","Matchbox logo","height","40","src","assets/matchbox_logo_color.png","width","95"],[1,"version"],["routerLink","/"],["routerLink","/CapabilityStatement"],["routerLink","/igs"],["routerLink","/mappinglanguage"],["routerLink","/transform"],["routerLink","/validate"],["routerLink","/settings"],[1,"mat-typography"]],template:function(r,s){r&1&&(O(0,"header")(1,"div",0),ue(2,"img",1),O(3,"span",2),B(4),N()(),O(5,"nav")(6,"div",3)(7,"mat-icon"),B(8,"home"),N(),O(9,"span"),B(10,"Home"),N()(),O(11,"div",4)(12,"mat-icon"),B(13,"info"),N(),O(14,"span"),B(15,"CapabilityStatement"),N()(),O(16,"div",5)(17,"mat-icon"),B(18,"info"),N(),O(19,"span"),B(20,"IGs"),N()(),O(21,"div",6)(22,"mat-icon"),B(23,"search"),N(),O(24,"span"),B(25,"FHIR Mapping"),N()(),O(26,"div",7)(27,"mat-icon"),B(28,"transform"),N(),O(29,"span"),B(30,"Transform"),N()(),O(31,"div",8)(32,"mat-icon"),B(33,"rule"),N(),O(34,"span"),B(35,"Validate"),N()(),O(36,"div",9)(37,"mat-icon"),B(38,"settings"),N(),O(39,"span"),B(40,"Settings"),N()()()(),O(41,"main",10),ue(42,"router-outlet"),N()),r&2&&($(4),at("v",s.version,""))},dependencies:[ws,Xw,q0],styles:[".example-fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}mat-toolbar[_ngcontent-%COMP%]{padding-left:0}mat-toolbar[_ngcontent-%COMP%] .home-link[_ngcontent-%COMP%]{height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer}mat-toolbar[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%]{display:flex;height:100%;width:160px;justify-content:center;align-items:center}mat-toolbar[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:calc(100% - 1.2em)}header[_ngcontent-%COMP%]{background:#97d6ba;display:flex;flex-wrap:wrap;flex:0 1 auto;padding:10px 2em;justify-content:space-between}header[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%]{display:inline-block}header[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%] .version[_ngcontent-%COMP%]{color:#2e7d73;font-size:.9em;display:inline-block;margin:4px 0 0 10px;vertical-align:top}header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%]{display:flex;margin-top:10px}header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:inline-block;margin:0 1rem;cursor:pointer;color:#3d5c73}header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] div[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px;vertical-align:middle;color:#d2eade}main[_ngcontent-%COMP%]{width:100%;margin:0 auto}@media (max-width: 1140px){header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:0 7px}header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] div[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px;font-size:18px;width:18px;height:18px}}"]});let t=e;return t})();var cO=ss(JC()),u_e=ss(ex()),d_e=ss(sO());var an=class t{constructor(e,i){this.operationOutcome=i,this.issues=e??[]}static fromOperationOutcome(e){let i=e.issue?.map(n=>wg.fromOoIssue(n));return new t(i,e)}static fromMatchboxError(e){let i=new t;return i.issues.push(new wg("fatal","matchbox",e,void 0,void 0,void 0,void 0)),i}},wg=class t{constructor(e,i,n,r,s,o,a){this.sliceInfo=[],this.severity=e,this.code=i,this.text=n,this.expression=r,this.line=s,this.col=o,this.sliceInfo=a??[]}static fromOoIssue(e){let i;e.expression&&e.expression.length?i=e.expression[0]:e.location&&e.location.length&&(i=e.location[0]);let n=e.diagnostics?.indexOf("Slice info: 1.)"),r,s=null;return n>=0?(r=e.diagnostics.substring(0,n).trimEnd(),s=e.diagnostics.substring(n+15).trimStart().split(/\d+[.][)]/)):r=e.diagnostics,new t(e.severity,e.code,r,i,t.getLineNo(e),t.getColNo(e),s)}static getLineNo(e){let i=t.getExtensionIntValue(e,"http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-line");return i&&i>0?i:void 0}static getColNo(e){let i=t.getExtensionIntValue(e,"http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-col");return i&&i>0?i:void 0}static getExtensionIntValue(e,i){if(e.extension){for(let n of e.extension)if(n.url===i)return n.valueInteger}}};var nG=["determinateSpinner"];function iG(t,e){if(t&1&&(xn(),O(0,"svg",11),ue(1,"circle",12),N()),t&2){let i=te();Re("viewBox",i._viewBox()),$(),Vn("stroke-dasharray",i._strokeCircumference(),"px")("stroke-dashoffset",i._strokeCircumference()/2,"px")("stroke-width",i._circleStrokeWidth(),"%"),Re("r",i._circleRadius())}}var rG=new Q("mat-progress-spinner-default-options",{providedIn:"root",factory:sG});function sG(){return{diameter:oO}}var oO=100,oG=10,da=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(n){this._color=n}constructor(n,r,s){this._elementRef=n,this._defaultColor="primary",this._value=0,this._diameter=oO,this._noopAnimations=r==="NoopAnimations"&&!!s&&!s._forceAnimations,this.mode=n.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",s&&(s.color&&(this.color=this._defaultColor=s.color),s.diameter&&(this.diameter=s.diameter),s.strokeWidth&&(this.strokeWidth=s.strokeWidth))}get value(){return this.mode==="determinate"?this._value:0}set value(n){this._value=Math.max(0,Math.min(100,n||0))}get diameter(){return this._diameter}set diameter(n){this._diameter=n||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(n){this._strokeWidth=n||0}_circleRadius(){return(this.diameter-oG)/2}_viewBox(){let n=this._circleRadius()*2+this.strokeWidth;return`0 0 ${n} ${n}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}};e.\u0275fac=function(r){return new(r||e)(F(xe),F(cn,8),F(rG))},e.\u0275cmp=Ee({type:e,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(r,s){if(r&1&&it(nG,5),r&2){let o;Le(o=Oe())&&(s._determinateCircle=o.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(r,s){r&2&&(Re("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",s.mode==="determinate"?s.value:null)("mode",s.mode),In("mat-"+s.color),Vn("width",s.diameter,"px")("height",s.diameter,"px")("--mdc-circular-progress-size",s.diameter+"px")("--mdc-circular-progress-active-indicator-width",s.diameter+"px"),Ae("_mat-animation-noopable",s._noopAnimations)("mdc-circular-progress--indeterminate",s.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",hn],diameter:[2,"diameter","diameter",hn],strokeWidth:[2,"strokeWidth","strokeWidth",hn]},exportAs:["matProgressSpinner"],standalone:!0,features:[gt,Ge],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(r,s){if(r&1&&(he(0,iG,2,8,"ng-template",null,0,cl),O(2,"div",2,1),xn(),O(4,"svg",3),ue(5,"circle",4),N()(),Yo(),O(6,"div",5)(7,"div",6)(8,"div",7),al(9,8),N(),O(10,"div",9),al(11,8),N(),O(12,"div",10),al(13,8),N()()()),r&2){let o=Mn(1);$(4),Re("viewBox",s._viewBox()),$(),Vn("stroke-dasharray",s._strokeCircumference(),"px")("stroke-dashoffset",s._strokeDashOffset(),"px")("stroke-width",s._circleStrokeWidth(),"%"),Re("r",s._circleRadius()),$(4),K("ngTemplateOutlet",o),$(2),K("ngTemplateOutlet",o),$(2),K("ngTemplateOutlet",o)}},dependencies:[v0],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0});let t=e;return t})();var wh=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({imports:[Wt,Pe]});let t=e;return t})();var aG=t=>({clickable:t});function lG(t,e){if(t&1&&(O(0,"li",8),B(1),N()),t&2){let i=e.$implicit;$(),at(" ",i," ")}}function cG(t,e){if(t&1&&(O(0,"ol"),he(1,lG,2,1,"li",7),N()),t&2){let i=te().$implicit;$(),K("ngForOf",i.sliceInfo)}}function uG(t,e){if(t&1){let i=lt();O(0,"li",3),oe("click",function(){let r=we(i).$implicit,s=te(2);return Ce(s.select.emit(r))}),O(1,"span",4),B(2),N(),ue(3,"span",5)(4,"br"),O(5,"p"),B(6),N(),he(7,cG,2,1,"ol",6),N()}if(t&2){let i=e.$implicit,n=te(2);Zp("issue ",i.severity,""),$(2),rt(i.severity),$(),K("innerHtml",n.getTemplateHeaderLine(i),sT),$(3),rt(i.text),$(),K("ngIf",i.sliceInfo.length)}}function dG(t,e){if(t&1&&(O(0,"ul",1),he(1,uG,8,7,"li",2),N()),t&2){let i=te();K("ngClass",ll(2,aG,i.reactsToClick)),$(),K("ngForOf",i.result.issues)}}var aO=["fatal","error","warning","information"],gu=(()=>{let e=class e{set operationResult(n){this.result=n,this.result&&this.result.issues.length&&this.result.issues.sort(e.sortIssues)}constructor(n){this.sanitized=n,this.select=new se,this.reactsToClick=!1}ngOnInit(){this.reactsToClick=this.select.observed}static sortIssues(n,r){let s=aO.indexOf(n.severity)-aO.indexOf(r.severity);return s!==0?s:(n.line??0)-(r.line??0)}getTemplateHeaderLine(n){let r="";n.code&&(r+=` [${n.code}]`),r+=": ";let s=[];return n.line&&s.push(`line ${n.line}`),n.col&&s.push(`column ${n.col}`),n.expression&&s.push(`in ${n.expression}`),s.length&&(r+=s.join(", ")+":"),this.sanitized.bypassSecurityTrustHtml(r)}};e.\u0275fac=function(r){return new(r||e)(F(hl))},e.\u0275cmp=Ee({type:e,selectors:[["app-operation-result"]],inputs:{operationResult:"operationResult"},outputs:{select:"select"},decls:1,vars:1,consts:[[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"class","click",4,"ngFor","ngForOf"],[3,"click"],[1,"severity"],[3,"innerHtml"],[4,"ngIf"],["class","slice",4,"ngFor","ngForOf"],[1,"slice"]],template:function(r,s){r&1&&he(0,dG,2,4,"ul",0),r&2&&K("ngIf",s.result)},dependencies:[vr,gs,Di],styles:[".card-maps[_ngcontent-%COMP%]{margin-bottom:10px}.app-ace-editor[_ngcontent-%COMP%]{border:2px solid #f8f9fa;box-shadow:0 .5rem 1rem #00000026}ul[_ngcontent-%COMP%]{list-style:none;padding:0}.clickable[_ngcontent-%COMP%] .issue[_ngcontent-%COMP%]{cursor:pointer}.issue[_ngcontent-%COMP%]{border:1px solid #e1e1e1;background:#fbfbfb;border-radius:5px;padding:5px 8px;--color: #000;border-left:4px solid var(--color);margin-bottom:4px}.issue[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:2px 0 0}.issue[_ngcontent-%COMP%] .severity[_ngcontent-%COMP%]{color:var(--color);font-weight:600}.issue.fatal[_ngcontent-%COMP%], .issue.error[_ngcontent-%COMP%]{--color: #d9534f}.issue.warning[_ngcontent-%COMP%]{--color: #f0ad4e}.issue.information[_ngcontent-%COMP%]{--color: #4ca8de}[_nghost-%COMP%] .issue .code{font-size:.9em;color:#636363}[_nghost-%COMP%] .issue>span>code{background:#e1e1e1;border-radius:4px;padding:2px 4px;font-family:courier,monospace} .ace-highlight-fatal{position:absolute;background:#c30;opacity:.4} .ace-highlight-error{position:absolute;background:#f96;opacity:.4} .ace-highlight-warning{position:absolute;background:#fc0;opacity:.4} .ace-highlight-information{position:absolute;background:#9c3;opacity:.4}"]});let t=e;return t})();function hG(t,e){t&1&&ue(0,"mat-spinner")}function fG(t,e){if(t&1&&ue(0,"app-operation-result",4),t&2){let i=te();K("operationResult",i.operationResult)}}var lO=4,uO=(()=>{let e=class e{constructor(n){this.data=n,this.capabilityStatement=null,this.operationResult=null,this.loading=!0,this.client=n.getFhirClient()}ngAfterViewInit(){this.client.capabilityStatement().then(n=>{this.loading=!1,this.operationResult=null,this.editor=cO.default.edit("code"),this.editor.setReadOnly(!0),this.editor.setValue(JSON.stringify(n,null,lO),-1),this.editor.getSession().setMode("ace/mode/json"),this.editor.setTheme("ace/theme/textmate"),this.editor.commands.removeCommand("find"),this.editor.setOptions({maxLines:1e4,tabSize:lO,wrap:!0,useWorker:!1}),this.editor.resize(!0)}).catch(n=>{console.error(n),this.loading=!1,this.capabilityStatement=null,this.editor&&(this.editor.destroy(),this.editor.container.remove()),this.editor=null,n.response?.data?this.operationResult=an.fromOperationOutcome(n.response.data):this.operationResult=an.fromMatchboxError(n.message)})}};e.\u0275fac=function(r){return new(r||e)(F(yr))},e.\u0275cmp=Ee({type:e,selectors:[["app-capability-statement"]],decls:10,vars:3,consts:[["id","capability-statement",1,"white-block"],[4,"ngIf"],["id","code"],[3,"operationResult",4,"ngIf"],[3,"operationResult"]],template:function(r,s){r&1&&(O(0,"div",0)(1,"h2"),B(2,"CapabilityStatement"),N(),O(3,"p"),B(4," CapabilityStatement of the server: "),O(5,"code"),B(6),N()(),he(7,hG,1,0,"mat-spinner",1),ue(8,"div",2),he(9,fG,1,1,"app-operation-result",3),N()),r&2&&($(6),rt(s.client.baseUrl),$(),K("ngIf",s.loading),$(2),K("ngIf",s.operationResult))},dependencies:[Di,da,gu]});let t=e;return t})();var mG=["*"];var pG=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],gG=["[mat-card-avatar], [matCardAvatar]",`mat-card-title, mat-card-subtitle, +`).forEach(i=>{let n=i.indexOf(":");if(n>0){let r=i.slice(0,n),s=r.toLowerCase(),o=i.slice(n+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((i,n)=>{this.setHeaderEntries(n,i)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([i,n])=>{this.setHeaderEntries(i,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let i=this.headers.get(e.toLowerCase());return i&&i.length>0?i[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,i){return this.clone({name:e,value:i,op:"a"})}set(e,i){return this.clone({name:e,value:i,op:"s"})}delete(e,i){return this.clone({name:e,value:i,op:"d"})}maybeSetNormalizedName(e,i){this.normalizedNames.has(i)||this.normalizedNames.set(i,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(i=>{this.headers.set(i,e.headers.get(i)),this.normalizedNames.set(i,e.normalizedNames.get(i))})}clone(e){let i=new t;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}applyUpdate(e){let i=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,i);let r=(e.op==="a"?this.headers.get(i):void 0)||[];r.push(...n),this.headers.set(i,r);break;case"d":let s=e.value;if(!s)this.headers.delete(i),this.normalizedNames.delete(i);else{let o=this.headers.get(i);if(!o)return;o=o.filter(a=>s.indexOf(a)===-1),o.length===0?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,o)}break}}setHeaderEntries(e,i){let n=(Array.isArray(i)?i:[i]).map(s=>s.toString()),r=e.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(e,r)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(i=>e(this.normalizedNames.get(i),this.headers.get(i)))}};var ow=class{encodeKey(e){return qA(e)}encodeValue(e){return qA(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function nz(t,e){let i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let s=r.indexOf("="),[o,a]=s==-1?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,s)),e.decodeValue(r.slice(s+1))],l=i.get(o)||[];l.push(a),i.set(o,l)}),i}var iz=/%(\d[a-f0-9])/gi,rz={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function qA(t){return encodeURIComponent(t).replace(iz,(e,i)=>rz[i]??e)}function y0(t){return`${t}`}var ki=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new ow,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=nz(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(i=>{let n=e.fromObject[i],r=Array.isArray(n)?n.map(y0):[y0(n)];this.map.set(i,r)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let i=this.map.get(e);return i?i[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,i){return this.clone({param:e,value:i,op:"a"})}appendAll(e){let i=[];return Object.keys(e).forEach(n=>{let r=e[n];Array.isArray(r)?r.forEach(s=>{i.push({param:n,value:s,op:"a"})}):i.push({param:n,value:r,op:"a"})}),this.clone(i)}set(e,i){return this.clone({param:e,value:i,op:"s"})}delete(e,i){return this.clone({param:e,value:i,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let i=this.encoder.encodeKey(e);return this.map.get(e).map(n=>i+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let i=new t({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(e),i}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let i=(e.op==="a"?this.map.get(e.param):void 0)||[];i.push(y0(e.value)),this.map.set(e.param,i);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],r=n.indexOf(y0(e.value));r!==-1&&n.splice(r,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var aw=class{constructor(){this.map=new Map}set(e,i){return this.map.set(e,i),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function sz(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function GA(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function YA(t){return typeof Blob<"u"&&t instanceof Blob}function KA(t){return typeof FormData<"u"&&t instanceof FormData}function oz(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Rd=class t{constructor(e,i,n,r){this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let s;if(sz(this.method)||r?(this.body=n!==void 0?n:null,s=r):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),this.transferCache=s.transferCache),this.headers??=new Bn,this.context??=new aw,!this.params)this.params=new ki,this.urlWithParams=i;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=i;else{let a=i.indexOf("?"),l=a===-1?"?":ah.set(f,e.setHeaders[f]),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),u)),new t(i,n,o,{params:u,headers:c,context:d,reportProgress:l,responseType:r,withCredentials:a,transferCache:s})}},ra=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(ra||{}),Od=class{constructor(e,i=200,n="OK"){this.headers=e.headers||new Bn,this.status=e.status!==void 0?e.status:i,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},C0=class t extends Od{constructor(e={}){super(e),this.type=ra.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Nd=class t extends Od{constructor(e={}){super(e),this.type=ra.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},ia=class extends Od{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},e2=200,az=204;function sw(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var dl=(()=>{let e=class e{constructor(n){this.handler=n}request(n,r,s={}){let o;if(n instanceof Rd)o=n;else{let c;s.headers instanceof Bn?c=s.headers:c=new Bn(s.headers);let u;s.params&&(s.params instanceof ki?u=s.params:u=new ki({fromObject:s.params})),o=new Rd(n,r,s.body!==void 0?s.body:null,{headers:c,context:s.context,params:u,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials,transferCache:s.transferCache})}let a=de(o).pipe(Ur(c=>this.handler.handle(c)));if(n instanceof Rd||s.observe==="events")return a;let l=a.pipe(et(c=>c instanceof Nd));switch(s.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return l.pipe(ve(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return l.pipe(ve(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return l.pipe(ve(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return l.pipe(ve(c=>c.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new ki().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,s={}){return this.request("PATCH",n,sw(s,r))}post(n,r,s={}){return this.request("POST",n,sw(s,r))}put(n,r,s={}){return this.request("PUT",n,sw(s,r))}};e.\u0275fac=function(r){return new(r||e)(V(Ld))},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})(),lz=/^\)\]\}',?\n/,cz="X-Request-URL";function ZA(t){if(t.url)return t.url;let e=cz.toLocaleLowerCase();return t.headers.get(e)}var uz=(()=>{let e=class e{constructor(){this.fetchImpl=Y(lw,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=Y(be)}handle(n){return new Ke(r=>{let s=new AbortController;return this.doRequest(n,s.signal,r).then(cw,o=>r.error(new ia({error:o}))),()=>s.abort()})}doRequest(n,r,s){return Bt(this,null,function*(){let o=this.createRequestInit(n),a;try{let m=this.fetchImpl(n.urlWithParams,Z({signal:r},o));dz(m),s.next({type:ra.Sent}),a=yield m}catch(m){s.error(new ia({error:m,status:m.status??0,statusText:m.statusText,url:n.urlWithParams,headers:m.headers}));return}let l=new Bn(a.headers),c=a.statusText,u=ZA(a)??n.urlWithParams,d=a.status,h=null;if(n.reportProgress&&s.next(new C0({headers:l,status:d,statusText:c,url:u})),a.body){let m=a.headers.get("content-length"),p=[],g=a.body.getReader(),w=0,C,E,x=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Bt(this,null,function*(){for(;;){let{done:I,value:M}=yield g.read();if(I)break;if(p.push(M),w+=M.length,n.reportProgress){E=n.responseType==="text"?(E??"")+(C??=new TextDecoder).decode(M,{stream:!0}):void 0;let T=()=>s.next({type:ra.DownloadProgress,total:m?+m:void 0,loaded:w,partialText:E});x?x.run(T):T()}}}));let y=this.concatChunks(p,w);try{let I=a.headers.get("Content-Type")??"";h=this.parseBody(n,y,I)}catch(I){s.error(new ia({error:I,headers:new Bn(a.headers),status:a.status,statusText:a.statusText,url:ZA(a)??n.urlWithParams}));return}}d===0&&(d=h?e2:0),d>=200&&d<300?(s.next(new Nd({body:h,headers:l,status:d,statusText:c,url:u})),s.complete()):s.error(new ia({error:h,headers:l,status:d,statusText:c,url:u}))})}parseBody(n,r,s){switch(n.responseType){case"json":let o=new TextDecoder().decode(r).replace(lz,"");return o===""?null:JSON.parse(o);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:s});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},s=n.withCredentials?"include":void 0;if(n.headers.forEach((o,a)=>r[o]=a.join(",")),r.Accept??="application/json, text/plain, */*",!r["Content-Type"]){let o=n.detectContentTypeHeader();o!==null&&(r["Content-Type"]=o)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:s}}concatChunks(n,r){let s=new Uint8Array(r),o=0;for(let a of n)s.set(a,o),o+=a.length;return s}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})(),lw=class{};function cw(){}function dz(t){t.then(cw,cw)}function t2(t,e){return e(t)}function hz(t,e){return(i,n)=>e.intercept(i,{handle:r=>t(r,n)})}function fz(t,e,i){return(n,r)=>Ii(i,()=>e(n,s=>t(s,r)))}var uw=new Q(""),dw=new Q(""),mz=new Q(""),n2=new Q("",{providedIn:"root",factory:()=>!0});function pz(){let t=null;return(e,i)=>{t===null&&(t=(Y(uw,{optional:!0})??[]).reduceRight(hz,t2));let n=Y(ms);if(Y(n2)){let s=n.add();return t(e,i).pipe(as(()=>n.remove(s)))}else return t(e,i)}}var QA=(()=>{let e=class e extends Ld{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=Y(ms),this.contributeToStability=Y(n2)}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(dw),...this.injector.get(mz,[])]));this.chain=r.reduceRight((s,o)=>fz(s,o,this.injector),t2)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,s=>this.backend.handle(s)).pipe(as(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}};e.\u0275fac=function(r){return new(r||e)(V(w0),V(An))},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})();var gz=/^\)\]\}',?\n/;function _z(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var XA=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new Te(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?Tt(r.\u0275loadImpl()):de(null)).pipe(Nt(()=>new Ke(o=>{let a=r.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((g,w)=>a.setRequestHeader(g,w.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let g=n.detectContentTypeHeader();g!==null&&a.setRequestHeader("Content-Type",g)}if(n.responseType){let g=n.responseType.toLowerCase();a.responseType=g!=="json"?g:"text"}let l=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let g=a.statusText||"OK",w=new Bn(a.getAllResponseHeaders()),C=_z(a)||n.url;return c=new C0({headers:w,status:a.status,statusText:g,url:C}),c},d=()=>{let{headers:g,status:w,statusText:C,url:E}=u(),x=null;w!==az&&(x=typeof a.response>"u"?a.responseText:a.response),w===0&&(w=x?e2:0);let y=w>=200&&w<300;if(n.responseType==="json"&&typeof x=="string"){let I=x;x=x.replace(gz,"");try{x=x!==""?JSON.parse(x):null}catch(M){x=I,y&&(y=!1,x={error:M,text:x})}}y?(o.next(new Nd({body:x,headers:g,status:w,statusText:C,url:E||void 0})),o.complete()):o.error(new ia({error:x,headers:g,status:w,statusText:C,url:E||void 0}))},h=g=>{let{url:w}=u(),C=new ia({error:g,status:a.status||0,statusText:a.statusText||"Unknown Error",url:w||void 0});o.error(C)},f=!1,m=g=>{f||(o.next(u()),f=!0);let w={type:ra.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(w.total=g.total),n.responseType==="text"&&a.responseText&&(w.partialText=a.responseText),o.next(w)},p=g=>{let w={type:ra.UploadProgress,loaded:g.loaded};g.lengthComputable&&(w.total=g.total),o.next(w)};return a.addEventListener("load",d),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),n.reportProgress&&(a.addEventListener("progress",m),l!==null&&a.upload&&a.upload.addEventListener("progress",p)),a.send(l),o.next({type:ra.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",d),a.removeEventListener("timeout",h),n.reportProgress&&(a.removeEventListener("progress",m),l!==null&&a.upload&&a.upload.removeEventListener("progress",p)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(r){return new(r||e)(V(Vc))},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})(),i2=new Q(""),vz="XSRF-TOKEN",bz=new Q("",{providedIn:"root",factory:()=>vz}),yz="X-XSRF-TOKEN",wz=new Q("",{providedIn:"root",factory:()=>yz}),x0=class{},Cz=(()=>{let e=class e{constructor(n,r,s){this.doc=n,this.platform=r,this.cookieName=s,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=_0(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(r){return new(r||e)(V(Fe),V(fi),V(bz))},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})();function xz(t,e){let i=t.url.toLowerCase();if(!Y(i2)||t.method==="GET"||t.method==="HEAD"||i.startsWith("http://")||i.startsWith("https://"))return e(t);let n=Y(x0).getToken(),r=Y(wz);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),e(t)}var r2=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(r2||{});function Ez(t,e){return{\u0275kind:t,\u0275providers:e}}function s2(...t){let e=[dl,XA,QA,{provide:Ld,useExisting:QA},{provide:w0,useFactory:()=>Y(uz,{optional:!0})??Y(XA)},{provide:dw,useValue:xz,multi:!0},{provide:i2,useValue:!0},{provide:x0,useClass:Cz}];for(let i of t)e.push(...i.\u0275providers);return Ac(e)}var JA=new Q("");function o2(){return Ez(r2.LegacyInterceptors,[{provide:JA,useFactory:pz},{provide:dw,useExisting:JA,multi:!0}])}var mw=class extends f0{constructor(){super(...arguments),this.supportsDOMEvents=!0}},pw=class t extends mw{static makeCurrent(){OA(new t)}onAndCancel(e,i,n){return e.addEventListener(i,n),()=>{e.removeEventListener(i,n)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=Sz();return i==null?null:Iz(i)}resetBaseElement(){Fd=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return _0(document.cookie,e)}},Fd=null;function Sz(){return Fd=Fd||document.querySelector("base"),Fd?Fd.getAttribute("href"):null}function Iz(t){return new URL(t,document.baseURI).pathname}var gw=class{addToWindow(e){Cn.getAngularTestability=(n,r=!0)=>{let s=e.findTestabilityInTree(n,r);if(s==null)throw new Te(5103,!1);return s},Cn.getAllAngularTestabilities=()=>e.getAllTestabilities(),Cn.getAllAngularRootElements=()=>e.getAllRootElements();let i=n=>{let r=Cn.getAllAngularTestabilities(),s=r.length,o=function(){s--,s==0&&n()};r.forEach(a=>{a.whenStable(o)})};Cn.frameworkStabilizers||(Cn.frameworkStabilizers=[]),Cn.frameworkStabilizers.push(i)}findTestabilityInTree(e,i,n){if(i==null)return null;let r=e.getTestability(i);return r??(n?ps().isShadowRoot(i)?this.findTestabilityInTree(e,i.host,!0):this.findTestabilityInTree(e,i.parentElement,!0):null)}},Mz=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})(),_w=new Q(""),d2=(()=>{let e=class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(s=>{s.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,s){return this._findPluginFor(r).addEventListener(n,r,s)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new Te(5101,!1);return this._eventNameToPlugin.set(n,r),r}};e.\u0275fac=function(r){return new(r||e)(V(_w),V(be))},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})(),E0=class{constructor(e){this._doc=e}},hw="ng-app-id",h2=(()=>{let e=class e{constructor(n,r,s,o={}){this.doc=n,this.appId=r,this.nonce=s,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=b0(o),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(s=>s.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${hw}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(s=>{s.textContent!=null&&r.set(s.textContent,s)}),r}return null}changeUsageCount(n,r){let s=this.styleRef;if(s.has(n)){let o=s.get(n);return o.usage+=r,o.usage}return s.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let s=this.styleNodesInDOM,o=s?.get(r);if(o?.parentNode===n)return s.delete(r),o.removeAttribute(hw),o;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(hw,this.appId),n.appendChild(a),a}}addStyleToHost(n,r){let s=this.getStyleElement(n,r),o=this.styleRef,a=o.get(r)?.elements;a?a.push(s):o.set(r,{elements:[s],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(V(Fe),V(Nc),V(xd,8),V(fi))},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})(),fw={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/Math/MathML"},bw=/%COMP%/g,f2="%COMP%",Dz=`_nghost-${f2}`,kz=`_ngcontent-${f2}`,Tz=!0,Az=new Q("",{providedIn:"root",factory:()=>Tz});function Rz(t){return kz.replace(bw,t)}function Lz(t){return Dz.replace(bw,t)}function m2(t,e){return e.map(i=>i.replace(bw,t))}var l2=(()=>{let e=class e{constructor(n,r,s,o,a,l,c,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=l,this.ngZone=c,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=b0(l),this.defaultRenderer=new Pd(n,a,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===us.ShadowDom&&(r=We(Z({},r),{encapsulation:us.Emulated}));let s=this.getOrCreateRenderer(n,r);return s instanceof S0?s.applyToHost(n):s instanceof Ud&&s.applyStyles(),s}getOrCreateRenderer(n,r){let s=this.rendererByCompId,o=s.get(r.id);if(!o){let a=this.doc,l=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(r.encapsulation){case us.Emulated:o=new S0(c,u,r,this.appId,d,a,l,h);break;case us.ShadowDom:return new vw(c,u,n,r,a,l,this.nonce,h);default:o=new Ud(c,u,r,d,a,l,h);break}s.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(V(d2),V(h2),V(Nc),V(Az),V(Fe),V(fi),V(be),V(xd))},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})(),Pd=class{constructor(e,i,n,r){this.eventManager=e,this.doc=i,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS(fw[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(c2(e)?e.content:e).appendChild(i)}insertBefore(e,i,n){e&&(c2(e)?e.content:e).insertBefore(i,n)}removeChild(e,i){e&&e.removeChild(i)}selectRootElement(e,i){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new Te(-5104,!1);return i||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,n,r){if(r){i=r+":"+i;let s=fw[r];s?e.setAttributeNS(s,i,n):e.setAttribute(i,n)}else e.setAttribute(i,n)}removeAttribute(e,i,n){if(n){let r=fw[n];r?e.removeAttributeNS(r,i):e.removeAttribute(`${n}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,n,r){r&(Gs.DashCase|Gs.Important)?e.style.setProperty(i,n,r&Gs.Important?"important":""):e.style[i]=n}removeStyle(e,i,n){n&Gs.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,n){e!=null&&(e[i]=n)}setValue(e,i){e.nodeValue=i}listen(e,i,n){if(typeof e=="string"&&(e=ps().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(n))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function c2(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var vw=class extends Pd{constructor(e,i,n,r,s,o,a,l){super(e,s,o,l),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=m2(r.id,r.styles);for(let u of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,n){return super.insertBefore(this.nodeOrShadowRoot(e),i,n)}removeChild(e,i){return super.removeChild(this.nodeOrShadowRoot(e),i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ud=class extends Pd{constructor(e,i,n,r,s,o,a,l){super(e,s,o,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=l?m2(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},S0=class extends Ud{constructor(e,i,n,r,s,o,a,l){let c=r+"-"+n.id;super(e,i,n,s,o,a,l,c),this.contentAttr=Rz(c),this.hostAttr=Lz(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let n=super.createElement(e,i);return super.setAttribute(n,this.contentAttr,""),n}},Oz=(()=>{let e=class e extends E0{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,s){return n.addEventListener(r,s,!1),()=>this.removeEventListener(n,r,s)}removeEventListener(n,r,s){return n.removeEventListener(r,s)}};e.\u0275fac=function(r){return new(r||e)(V(Fe))},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})(),u2=["alt","control","meta","shift"],Nz={"\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"},Fz={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Pz=(()=>{let e=class e extends E0{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,s){let o=e.parseEventName(r),a=e.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ps().onAndCancel(n,o.domEventName,a))}static parseEventName(n){let r=n.toLowerCase().split("."),s=r.shift();if(r.length===0||!(s==="keydown"||s==="keyup"))return null;let o=e._normalizeKey(r.pop()),a="",l=r.indexOf("code");if(l>-1&&(r.splice(l,1),a="code."),u2.forEach(u=>{let d=r.indexOf(u);d>-1&&(r.splice(d,1),a+=u+".")}),a+=o,r.length!=0||o.length===0)return null;let c={};return c.domEventName=s,c.fullKey=a,c}static matchEventFullKeyCode(n,r){let s=Nz[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(s=n.code,o="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),u2.forEach(a=>{if(a!==s){let l=Fz[a];l(n)&&(o+=a+".")}}),o+=s,o===r)}static eventCallback(n,r,s){return o=>{e.matchEventFullKeyCode(o,n)&&s.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(r){return new(r||e)(V(Fe))},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})();function Uz(){pw.makeCurrent()}function $z(){return new hi}function Vz(){return Wk(document),document}var Bz=[{provide:fi,useValue:rw},{provide:m1,useValue:Uz,multi:!0},{provide:Fe,useFactory:Vz,deps:[]}],p2=j1(EA,"browser",Bz),jz=new Q(""),Hz=[{provide:kd,useClass:gw,deps:[]},{provide:$1,useClass:e0,deps:[be,t0,kd]},{provide:e0,useClass:e0,deps:[be,t0,kd]}],zz=[{provide:Tp,useValue:"root"},{provide:hi,useFactory:$z,deps:[]},{provide:_w,useClass:Oz,multi:!0,deps:[Fe,be,fi]},{provide:_w,useClass:Pz,multi:!0,deps:[Fe]},l2,h2,d2,{provide:Dc,useExisting:l2},{provide:Vc,useClass:Mz,deps:[]},[]],yw=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Nc,useValue:n.appId}]}}};e.\u0275fac=function(r){return new(r||e)(V(jz,12))},e.\u0275mod=ce({type:e}),e.\u0275inj=le({providers:[...zz,...Hz],imports:[Wt,SA]});let t=e;return t})();var g2=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(r){return new(r||e)(V(Fe))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var hl=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:function(r){let s=null;return r?s=new(r||e):s=V(Wz),s},providedIn:"root"});let t=e;return t})(),Wz=(()=>{let e=class e extends hl{constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case Sn.NONE:return r;case Sn.HTML:return Qs(r,"HTML")?pr(r):g1(this._doc,String(r)).toString();case Sn.STYLE:return Qs(r,"Style")?pr(r):r;case Sn.SCRIPT:if(Qs(r,"Script"))return pr(r);throw new Te(5200,!1);case Sn.URL:return Qs(r,"URL")?pr(r):Vp(String(r));case Sn.RESOURCE_URL:if(Qs(r,"ResourceURL"))return pr(r);throw new Te(5201,!1);default:throw new Te(5202,!1)}}bypassSecurityTrustHtml(n){return Kk(n)}bypassSecurityTrustStyle(n){return Zk(n)}bypassSecurityTrustScript(n){return Qk(n)}bypassSecurityTrustUrl(n){return Xk(n)}bypassSecurityTrustResourceUrl(n){return Jk(n)}};e.\u0275fac=function(r){return new(r||e)(V(Fe))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var ct="primary",eh=Symbol("RouteTitle"),Sw=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i[0]:i}return null}getAll(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function qc(t){return new Sw(t)}function qz(t,e,i){let n=i.path.split("/");if(n.length>t.length||i.pathMatch==="full"&&(e.hasChildren()||n.lengthn[s]===r)}else return t===e}function D2(t){return t.length>0?t[t.length-1]:null}function la(t){return ur(t)?t:ea(t)?Tt(Promise.resolve(t)):de(t)}var Yz={exact:T2,subset:A2},k2={exact:Kz,subset:Zz,ignored:()=>!0};function _2(t,e,i){return Yz[i.paths](t.root,e.root,i.matrixParams)&&k2[i.queryParams](t.queryParams,e.queryParams)&&!(i.fragment==="exact"&&t.fragment!==e.fragment)}function Kz(t,e){return vs(t,e)}function T2(t,e,i){if(!ml(t.segments,e.segments)||!D0(t.segments,e.segments,i)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!T2(t.children[n],e.children[n],i))return!1;return!0}function Zz(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>M2(t[i],e[i]))}function A2(t,e,i){return R2(t,e,e.segments,i)}function R2(t,e,i,n){if(t.segments.length>i.length){let r=t.segments.slice(0,i.length);return!(!ml(r,i)||e.hasChildren()||!D0(r,i,n))}else if(t.segments.length===i.length){if(!ml(t.segments,i)||!D0(t.segments,i,n))return!1;for(let r in e.children)if(!t.children[r]||!A2(t.children[r],e.children[r],n))return!1;return!0}else{let r=i.slice(0,t.segments.length),s=i.slice(t.segments.length);return!ml(t.segments,r)||!D0(t.segments,r,n)||!t.children[ct]?!1:R2(t.children[ct],e,s,n)}}function D0(t,e,i){return e.every((n,r)=>k2[i](t[r].parameters,n.parameters))}var sa=class{constructor(e=new Ft([],{}),i={},n=null){this.root=e,this.queryParams=i,this.fragment=n}get queryParamMap(){return this._queryParamMap??=qc(this.queryParams),this._queryParamMap}toString(){return Jz.serialize(this)}},Ft=class{constructor(e,i){this.segments=e,this.children=i,this.parent=null,Object.values(i).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return k0(this)}},fl=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap??=qc(this.parameters),this._parameterMap}toString(){return O2(this)}};function Qz(t,e){return ml(t,e)&&t.every((i,n)=>vs(i.parameters,e[n].parameters))}function ml(t,e){return t.length!==e.length?!1:t.every((i,n)=>i.path===e[n].path)}function Xz(t,e){let i=[];return Object.entries(t.children).forEach(([n,r])=>{n===ct&&(i=i.concat(e(r,n)))}),Object.entries(t.children).forEach(([n,r])=>{n!==ct&&(i=i.concat(e(r,n)))}),i}var th=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:()=>new Gc,providedIn:"root"});let t=e;return t})(),Gc=class{parse(e){let i=new Dw(e);return new sa(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${Vd(e.root,!0)}`,n=n7(e.queryParams),r=typeof e.fragment=="string"?`#${e7(e.fragment)}`:"";return`${i}${n}${r}`}},Jz=new Gc;function k0(t){return t.segments.map(e=>O2(e)).join("/")}function Vd(t,e){if(!t.hasChildren())return k0(t);if(e){let i=t.children[ct]?Vd(t.children[ct],!1):"",n=[];return Object.entries(t.children).forEach(([r,s])=>{r!==ct&&n.push(`${r}:${Vd(s,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}else{let i=Xz(t,(n,r)=>r===ct?[Vd(t.children[ct],!1)]:[`${r}:${Vd(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[ct]!=null?`${k0(t)}/${i[0]}`:`${k0(t)}/(${i.join("//")})`}}function L2(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function I0(t){return L2(t).replace(/%3B/gi,";")}function e7(t){return encodeURI(t)}function Mw(t){return L2(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function T0(t){return decodeURIComponent(t)}function v2(t){return T0(t.replace(/\+/g,"%20"))}function O2(t){return`${Mw(t.path)}${t7(t.parameters)}`}function t7(t){return Object.entries(t).map(([e,i])=>`;${Mw(e)}=${Mw(i)}`).join("")}function n7(t){let e=Object.entries(t).map(([i,n])=>Array.isArray(n)?n.map(r=>`${I0(i)}=${I0(r)}`).join("&"):`${I0(i)}=${I0(n)}`).filter(i=>i);return e.length?`?${e.join("&")}`:""}var i7=/^[^\/()?;#]+/;function ww(t){let e=t.match(i7);return e?e[0]:""}var r7=/^[^\/()?;=#]+/;function s7(t){let e=t.match(r7);return e?e[0]:""}var o7=/^[^=?&#]+/;function a7(t){let e=t.match(o7);return e?e[0]:""}var l7=/^[^&#]+/;function c7(t){let e=t.match(l7);return e?e[0]:""}var Dw=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ft([],{}):new Ft([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(n[ct]=new Ft(e,i)),n}parseSegment(){let e=ww(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new Te(4009,!1);return this.capture(e),new fl(T0(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=s7(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let r=ww(this.remaining);r&&(n=r,this.capture(n))}e[T0(i)]=T0(n)}parseQueryParam(e){let i=a7(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let o=c7(this.remaining);o&&(n=o,this.capture(n))}let r=v2(i),s=v2(n);if(e.hasOwnProperty(r)){let o=e[r];Array.isArray(o)||(o=[o],e[r]=o),o.push(s)}else e[r]=s}parseParens(e){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=ww(this.remaining),r=this.remaining[n.length];if(r!=="/"&&r!==")"&&r!==";")throw new Te(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=ct);let o=this.parseChildren();i[s]=Object.keys(o).length===1?o[ct]:new Ft([],o),this.consumeOptional("//")}return i}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new Te(4011,!1)}};function N2(t){return t.segments.length>0?new Ft([],{[ct]:t}):t}function F2(t){let e={};for(let[n,r]of Object.entries(t.children)){let s=F2(r);if(n===ct&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))e[o]=a;else(s.segments.length>0||s.hasChildren())&&(e[n]=s)}let i=new Ft(t.segments,e);return u7(i)}function u7(t){if(t.numberOfChildren===1&&t.children[ct]){let e=t.children[ct];return new Ft(t.segments.concat(e.segments),e.children)}return t}function qd(t){return t instanceof sa}function d7(t,e,i=null,n=null){let r=P2(t);return U2(r,e,i,n)}function P2(t){let e;function i(s){let o={};for(let l of s.children){let c=i(l);o[l.outlet]=c}let a=new Ft(s.url,o);return s===t&&(e=a),a}let n=i(t.root),r=N2(n);return e??r}function U2(t,e,i,n){let r=t;for(;r.parent;)r=r.parent;if(e.length===0)return Cw(r,r,r,i,n);let s=h7(e);if(s.toRoot())return Cw(r,r,new Ft([],{}),i,n);let o=f7(s,r,t),a=o.processChildren?Hd(o.segmentGroup,o.index,s.commands):V2(o.segmentGroup,o.index,s.commands);return Cw(r,o.segmentGroup,a,i,n)}function A0(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Gd(t){return typeof t=="object"&&t!=null&&t.outlets}function Cw(t,e,i,n,r){let s={};n&&Object.entries(n).forEach(([l,c])=>{s[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`});let o;t===e?o=i:o=$2(t,e,i);let a=N2(F2(o));return new sa(a,s,r)}function $2(t,e,i){let n={};return Object.entries(t.children).forEach(([r,s])=>{s===e?n[r]=i:n[r]=$2(s,e,i)}),new Ft(t.segments,n)}var R0=class{constructor(e,i,n){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=n,e&&n.length>0&&A0(n[0]))throw new Te(4003,!1);let r=n.find(Gd);if(r&&r!==D2(n))throw new Te(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function h7(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new R0(!0,0,t);let e=0,i=!1,n=t.reduce((r,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return typeof s!="string"?[...r,s]:o===0?(s.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?i=!0:a===".."?e++:a!=""&&r.push(a))}),r):[...r,s]},[]);return new R0(i,e,n)}var Hc=class{constructor(e,i,n){this.segmentGroup=e,this.processChildren=i,this.index=n}};function f7(t,e,i){if(t.isAbsolute)return new Hc(e,!0,0);if(!i)return new Hc(e,!1,NaN);if(i.parent===null)return new Hc(i,!0,0);let n=A0(t.commands[0])?0:1,r=i.segments.length-1+n;return m7(i,r,t.numberOfDoubleDots)}function m7(t,e,i){let n=t,r=e,s=i;for(;s>r;){if(s-=r,n=n.parent,!n)throw new Te(4005,!1);r=n.segments.length}return new Hc(n,!1,r-s)}function p7(t){return Gd(t[0])?t[0].outlets:{[ct]:t}}function V2(t,e,i){if(t??=new Ft([],{}),t.segments.length===0&&t.hasChildren())return Hd(t,e,i);let n=g7(t,e,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndexs!==ct)&&t.children[ct]&&t.numberOfChildren===1&&t.children[ct].segments.length===0){let s=Hd(t.children[ct],e,i);return new Ft(t.segments,s.children)}return Object.entries(n).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(r[s]=V2(t.children[s],e,o))}),Object.entries(t.children).forEach(([s,o])=>{n[s]===void 0&&(r[s]=o)}),new Ft(t.segments,r)}}function g7(t,e,i){let n=0,r=e,s={match:!1,pathIndex:0,commandIndex:0};for(;r=i.length)return s;let o=t.segments[r],a=i[n];if(Gd(a))break;let l=`${a}`,c=n0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!y2(l,c,o))return s;n+=2}else{if(!y2(l,{},o))return s;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}function kw(t,e,i){let n=t.segments.slice(0,e),r=0;for(;r{typeof n=="string"&&(n=[n]),n!==null&&(e[i]=kw(new Ft([],{}),0,n))}),e}function b2(t){let e={};return Object.entries(t).forEach(([i,n])=>e[i]=`${n}`),e}function y2(t,e,i){return t==i.path&&vs(e,i.parameters)}var zd="imperative",Nn=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Nn||{}),br=class{constructor(e,i){this.id=e,this.url=i}},Yc=class extends br{constructor(e,i,n="imperative",r=null){super(e,i),this.type=Nn.NavigationStart,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},bs=class extends br{constructor(e,i,n){super(e,i),this.urlAfterRedirects=n,this.type=Nn.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Yi=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Yi||{}),L0=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(L0||{}),so=class extends br{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=Nn.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},oa=class extends br{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=Nn.NavigationSkipped}},Yd=class extends br{constructor(e,i,n,r){super(e,i),this.error=n,this.target=r,this.type=Nn.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},O0=class extends br{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=Nn.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Tw=class extends br{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=Nn.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Aw=class extends br{constructor(e,i,n,r,s){super(e,i),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s,this.type=Nn.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Rw=class extends br{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=Nn.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Lw=class extends br{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=Nn.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ow=class{constructor(e){this.route=e,this.type=Nn.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Nw=class{constructor(e){this.route=e,this.type=Nn.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Fw=class{constructor(e){this.snapshot=e,this.type=Nn.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Pw=class{constructor(e){this.snapshot=e,this.type=Nn.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Uw=class{constructor(e){this.snapshot=e,this.type=Nn.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},$w=class{constructor(e){this.snapshot=e,this.type=Nn.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},N0=class{constructor(e,i,n){this.routerEvent=e,this.position=i,this.anchor=n,this.type=Nn.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},Kd=class{},Kc=class{constructor(e,i){this.url=e,this.navigationBehaviorOptions=i}};var Vw=class{constructor(e){this.injector=e,this.outlet=null,this.route=null,this.children=new nh(this.injector),this.attachRef=null}},nh=(()=>{let e=class e{constructor(n){this.parentInjector=n,this.contexts=new Map}onChildOutletCreated(n,r){let s=this.getOrCreateContext(n);s.outlet=r,this.contexts.set(n,s)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Vw(this.parentInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(r){return new(r||e)(V(An))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),F0=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let i=this.pathFromRoot(e);return i.length>1?i[i.length-2]:null}children(e){let i=Bw(e,this._root);return i?i.children.map(n=>n.value):[]}firstChild(e){let i=Bw(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=jw(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return jw(e,this._root).map(i=>i.value)}};function Bw(t,e){if(t===e.value)return e;for(let i of e.children){let n=Bw(t,i);if(n)return n}return null}function jw(t,e){if(t===e.value)return[e];for(let i of e.children){let n=jw(t,i);if(n.length)return n.unshift(e),n}return[]}var Gi=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};function jc(t){let e={};return t&&t.children.forEach(i=>e[i.value.outlet]=i),e}var P0=class extends F0{constructor(e,i){super(e),this.snapshot=i,Qw(this,e)}toString(){return this.snapshot.toString()}};function B2(t){let e=v7(t),i=new tn([new fl("",{})]),n=new tn({}),r=new tn({}),s=new tn({}),o=new tn(""),a=new pl(i,n,s,o,r,ct,t,e.root);return a.snapshot=e.root,new P0(new Gi(a,[]),e)}function v7(t){let e={},i={},n={},r="",s=new zc([],e,n,r,i,ct,t,null,{});return new $0("",new Gi(s,[]))}var pl=class{constructor(e,i,n,r,s,o,a,l){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(ve(c=>c[eh]))??de(void 0),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=s}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(ve(e=>qc(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ve(e=>qc(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function U0(t,e,i="emptyOnly"){let n,{routeConfig:r}=t;return e!==null&&(i==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:Z(Z({},e.params),t.params),data:Z(Z({},e.data),t.data),resolve:Z(Z(Z(Z({},t.data),e.data),r?.data),t._resolvedData)}:n={params:Z({},t.params),data:Z({},t.data),resolve:Z(Z({},t.data),t._resolvedData??{})},r&&H2(r)&&(n.resolve[eh]=r.title),n}var zc=class{get title(){return this.data?.[eh]}constructor(e,i,n,r,s,o,a,l,c){this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=o,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??=qc(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=qc(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${i}')`}},$0=class extends F0{constructor(e,i){super(i),this.url=e,Qw(this,i)}toString(){return j2(this._root)}};function Qw(t,e){e.value._routerState=t,e.children.forEach(i=>Qw(t,i))}function j2(t){let e=t.children.length>0?` { ${t.children.map(j2).join(", ")} } `:"";return`${t.value}${e}`}function xw(t){if(t.snapshot){let e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,vs(e.queryParams,i.queryParams)||t.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&t.fragmentSubject.next(i.fragment),vs(e.params,i.params)||t.paramsSubject.next(i.params),Gz(e.url,i.url)||t.urlSubject.next(i.url),vs(e.data,i.data)||t.dataSubject.next(i.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Hw(t,e){let i=vs(t.params,e.params)&&Qz(t.url,e.url),n=!t.parent!=!e.parent;return i&&!n&&(!t.parent||Hw(t.parent,e.parent))}function H2(t){return typeof t.title=="string"||t.title===null}var Xw=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=ct,this.activateEvents=new se,this.deactivateEvents=new se,this.attachEvents=new se,this.detachEvents=new se,this.parentContexts=Y(nh),this.location=Y(un),this.changeDetector=Y(Ye),this.inputBinder=Y(z0,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:s}=n.name;if(r)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),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 Te(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Te(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Te(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,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,r){if(this.isActivated)throw new Te(4013,!1);this._activatedRoute=n;let s=this.location,a=n.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,c=new zw(n,l,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Me({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Mt]});let t=e;return t})(),zw=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,i,n){this.route=e,this.childContexts=i,this.parent=n}get(e,i){return e===pl?this.route:e===nh?this.childContexts:this.parent.get(e,i)}},z0=new Q(""),w2=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:r}=n,s=Pr([r.queryParams,r.params,r.data]).pipe(Nt(([o,a,l],c)=>(l=Z(Z(Z({},o),a),l),c===0?de(l):Promise.resolve(l)))).subscribe(o=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(n);return}let a=IA(r.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:l}of a.inputs)n.activatedComponentRef.setInput(l,o[l])});this.outletDataSubscriptions.set(n,s)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})();function b7(t,e,i){let n=Zd(t,e._root,i?i._root:void 0);return new P0(n,e)}function Zd(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){let n=i.value;n._futureSnapshot=e.value;let r=y7(t,e,i);return new Gi(n,r)}else{if(t.shouldAttach(e.value)){let s=t.retrieve(e.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=e.value,o.children=e.children.map(a=>Zd(t,a)),o}}let n=w7(e.value),r=e.children.map(s=>Zd(t,s));return new Gi(n,r)}}function y7(t,e,i){return e.children.map(n=>{for(let r of i.children)if(t.shouldReuseRoute(n.value,r.value.snapshot))return Zd(t,n,r);return Zd(t,n)})}function w7(t){return new pl(new tn(t.url),new tn(t.params),new tn(t.queryParams),new tn(t.fragment),new tn(t.data),t.outlet,t.component,t)}var Qd=class{constructor(e,i){this.redirectTo=e,this.navigationBehaviorOptions=i}},z2="ngNavigationCancelingError";function V0(t,e){let{redirectTo:i,navigationBehaviorOptions:n}=qd(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=W2(!1,Yi.Redirect);return r.url=i,r.navigationBehaviorOptions=n,r}function W2(t,e){let i=new Error(`NavigationCancelingError: ${t||""}`);return i[z2]=!0,i.cancellationCode=e,i}function C7(t){return q2(t)&&qd(t.url)}function q2(t){return!!t&&t[z2]}var x7=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ee({type:e,selectors:[["ng-component"]],standalone:!0,features:[Ge],decls:1,vars:0,template:function(r,s){r&1&&ue(0,"router-outlet")},dependencies:[Xw],encapsulation:2});let t=e;return t})();function E7(t,e){return t.providers&&!t._injector&&(t._injector=Kp(t.providers,e,`Route: ${t.path}`)),t._injector??e}function Jw(t){let e=t.children&&t.children.map(Jw),i=e?We(Z({},t),{children:e}):Z({},t);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==ct&&(i.component=x7),i}function Wr(t){return t.outlet||ct}function S7(t,e){let i=t.filter(n=>Wr(n)===e);return i.push(...t.filter(n=>Wr(n)!==e)),i}function ih(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let i=e.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}var I7=(t,e,i,n)=>ve(r=>(new Ww(e,r.targetRouterState,r.currentRouterState,i,n).activate(t),r)),Ww=class{constructor(e,i,n,r,s){this.routeReuseStrategy=e,this.futureState=i,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=s}activate(e){let i=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,n,e),xw(this.futureState.root),this.activateChildRoutes(i,n,e)}deactivateChildRoutes(e,i,n){let r=jc(i);e.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,r[o],n),delete r[o]}),Object.values(r).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(e,i,n){let r=e.value,s=i?i.value:null;if(r===s)if(r.component){let o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(e,i,o.children)}else this.deactivateChildRoutes(e,i,n);else s&&this.deactivateRouteAndItsChildren(i,n)}deactivateRouteAndItsChildren(e,i){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,i):this.deactivateRouteAndOutlet(e,i)}detachAndStoreRouteSubtree(e,i){let n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,s=jc(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,r);if(n&&n.outlet){let o=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:a})}}deactivateRouteAndOutlet(e,i){let n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,s=jc(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,i,n){let r=jc(i);e.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],n),this.forwardEvent(new $w(s.value.snapshot))}),e.children.length&&this.forwardEvent(new Pw(e.value.snapshot))}activateRoutes(e,i,n){let r=e.value,s=i?i.value:null;if(xw(r),r===s)if(r.component){let o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,o.children)}else this.activateChildRoutes(e,i,n);else if(r.component){let o=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),xw(a.route.value),this.activateChildRoutes(e,null,o.children)}else{let a=ih(r.snapshot);o.attachRef=null,o.route=r,o.injector=a??o.injector,o.outlet&&o.outlet.activateWith(r,o.injector),this.activateChildRoutes(e,null,o.children)}}else this.activateChildRoutes(e,null,n)}},B0=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Wc=class{constructor(e,i){this.component=e,this.route=i}};function M7(t,e,i){let n=t._root,r=e?e._root:null;return Bd(n,r,i,[n.value])}function D7(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Qc(t,e){let i=Symbol(),n=e.get(t,i);return n===i?typeof t=="function"&&!ND(t)?t:e.get(t):n}function Bd(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=jc(e);return t.children.forEach(o=>{k7(o,s[o.value.outlet],i,n.concat([o.value]),r),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>Wd(a,i.getContext(o),r)),r}function k7(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=t.value,o=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let l=T7(o,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new B0(n)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?Bd(t,e,a?a.children:null,n,r):Bd(t,e,i,n,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Wc(a.outlet.component,o))}else o&&Wd(e,a,r),r.canActivateChecks.push(new B0(n)),s.component?Bd(t,null,a?a.children:null,n,r):Bd(t,null,i,n,r);return r}function T7(t,e,i){if(typeof i=="function")return i(t,e);switch(i){case"pathParamsChange":return!ml(t.url,e.url);case"pathParamsOrQueryParamsChange":return!ml(t.url,e.url)||!vs(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Hw(t,e)||!vs(t.queryParams,e.queryParams);case"paramsChange":default:return!Hw(t,e)}}function Wd(t,e,i){let n=jc(t),r=t.value;Object.entries(n).forEach(([s,o])=>{r.component?e?Wd(o,e.children.getContext(s),i):Wd(o,null,i):Wd(o,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new Wc(e.outlet.component,r)):i.canDeactivateChecks.push(new Wc(null,r)):i.canDeactivateChecks.push(new Wc(null,r))}function rh(t){return typeof t=="function"}function A7(t){return typeof t=="boolean"}function R7(t){return t&&rh(t.canLoad)}function L7(t){return t&&rh(t.canActivate)}function O7(t){return t&&rh(t.canActivateChild)}function N7(t){return t&&rh(t.canDeactivate)}function F7(t){return t&&rh(t.canMatch)}function G2(t){return t instanceof Bs||t?.name==="EmptyError"}var M0=Symbol("INITIAL_VALUE");function Zc(){return Nt(t=>Pr(t.map(e=>e.pipe(St(1),ci(M0)))).pipe(ve(e=>{for(let i of e)if(i!==!0){if(i===M0)return M0;if(i===!1||P7(i))return i}return!0}),et(e=>e!==M0),St(1)))}function P7(t){return qd(t)||t instanceof Qd}function U7(t,e){return Gt(i=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=i;return o.length===0&&s.length===0?de(We(Z({},i),{guardsResult:!0})):$7(o,n,r,t).pipe(Gt(a=>a&&A7(a)?V7(n,s,t,e):de(a)),ve(a=>We(Z({},i),{guardsResult:a})))})}function $7(t,e,i,n){return Tt(t).pipe(Gt(r=>W7(r.component,r.route,i,e,n)),xi(r=>r!==!0,!0))}function V7(t,e,i,n){return Tt(e).pipe(Ur(r=>$i(j7(r.route.parent,n),B7(r.route,n),z7(t,r.path,i),H7(t,r.route,i))),xi(r=>r!==!0,!0))}function B7(t,e){return t!==null&&e&&e(new Uw(t)),de(!0)}function j7(t,e){return t!==null&&e&&e(new Fw(t)),de(!0)}function H7(t,e,i){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return de(!0);let r=n.map(s=>js(()=>{let o=ih(e)??i,a=Qc(s,o),l=L7(a)?a.canActivate(e,t):Ii(o,()=>a(e,t));return la(l).pipe(xi())}));return de(r).pipe(Zc())}function z7(t,e,i){let n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(o=>D7(o)).filter(o=>o!==null).map(o=>js(()=>{let a=o.guards.map(l=>{let c=ih(o.node)??i,u=Qc(l,c),d=O7(u)?u.canActivateChild(n,t):Ii(c,()=>u(n,t));return la(d).pipe(xi())});return de(a).pipe(Zc())}));return de(s).pipe(Zc())}function W7(t,e,i,n,r){let s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||s.length===0)return de(!0);let o=s.map(a=>{let l=ih(e)??r,c=Qc(a,l),u=N7(c)?c.canDeactivate(t,e,i,n):Ii(l,()=>c(t,e,i,n));return la(u).pipe(xi())});return de(o).pipe(Zc())}function q7(t,e,i,n){let r=e.canLoad;if(r===void 0||r.length===0)return de(!0);let s=r.map(o=>{let a=Qc(o,t),l=R7(a)?a.canLoad(e,i):Ii(t,()=>a(e,i));return la(l)});return de(s).pipe(Zc(),Y2(n))}function Y2(t){return _b(mt(e=>{if(typeof e!="boolean")throw V0(t,e)}),ve(e=>e===!0))}function G7(t,e,i,n){let r=e.canMatch;if(!r||r.length===0)return de(!0);let s=r.map(o=>{let a=Qc(o,t),l=F7(a)?a.canMatch(e,i):Ii(t,()=>a(e,i));return la(l)});return de(s).pipe(Zc(),Y2(n))}var Xd=class{constructor(e){this.segmentGroup=e||null}},Jd=class extends Error{constructor(e){super(),this.urlTree=e}};function Bc(t){return Tn(new Xd(t))}function Y7(t){return Tn(new Te(4e3,!1))}function K7(t){return Tn(W2(!1,Yi.GuardRejected))}var qw=class{constructor(e,i){this.urlSerializer=e,this.urlTree=i}lineralizeSegments(e,i){let n=[],r=i.root;for(;;){if(n=n.concat(r.segments),r.numberOfChildren===0)return de(n);if(r.numberOfChildren>1||!r.children[ct])return Y7(`${e.redirectTo}`);r=r.children[ct]}}applyRedirectCommands(e,i,n,r,s){if(typeof i!="string"){let a=i,{queryParams:l,fragment:c,routeConfig:u,url:d,outlet:h,params:f,data:m,title:p}=r,g=Ii(s,()=>a({params:f,data:m,queryParams:l,fragment:c,routeConfig:u,url:d,outlet:h,title:p}));if(g instanceof sa)throw new Jd(g);i=g}let o=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,n);if(i[0]==="/")throw new Jd(o);return o}applyRedirectCreateUrlTree(e,i,n,r){let s=this.createSegmentGroup(e,i.root,n,r);return new sa(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(e,i){let n={};return Object.entries(e).forEach(([r,s])=>{if(typeof s=="string"&&s[0]===":"){let a=s.substring(1);n[r]=i[a]}else n[r]=s}),n}createSegmentGroup(e,i,n,r){let s=this.createSegments(e,i.segments,n,r),o={};return Object.entries(i.children).forEach(([a,l])=>{o[a]=this.createSegmentGroup(e,l,n,r)}),new Ft(s,o)}createSegments(e,i,n,r){return i.map(s=>s.path[0]===":"?this.findPosParam(e,s,r):this.findOrReturn(s,n))}findPosParam(e,i,n){let r=n[i.path.substring(1)];if(!r)throw new Te(4001,!1);return r}findOrReturn(e,i){let n=0;for(let r of i){if(r.path===e.path)return i.splice(n),r;n++}return e}},Gw={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Z7(t,e,i,n,r){let s=eC(t,e,i);return s.matched?(n=E7(e,n),G7(n,e,i,r).pipe(ve(o=>o===!0?s:Z({},Gw)))):de(s)}function eC(t,e,i){if(e.path==="**")return Q7(i);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||i.length>0)?Z({},Gw):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||qz)(i,t,e);if(!r)return Z({},Gw);let s={};Object.entries(r.posParams??{}).forEach(([a,l])=>{s[a]=l.path});let o=r.consumed.length>0?Z(Z({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:o,positionalParamSegments:r.posParams??{}}}function Q7(t){return{matched:!0,parameters:t.length>0?D2(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function C2(t,e,i,n){return i.length>0&&e9(t,i,n)?{segmentGroup:new Ft(e,J7(n,new Ft(i,t.children))),slicedSegments:[]}:i.length===0&&t9(t,i,n)?{segmentGroup:new Ft(t.segments,X7(t,i,n,t.children)),slicedSegments:i}:{segmentGroup:new Ft(t.segments,t.children),slicedSegments:i}}function X7(t,e,i,n){let r={};for(let s of i)if(W0(t,e,s)&&!n[Wr(s)]){let o=new Ft([],{});r[Wr(s)]=o}return Z(Z({},n),r)}function J7(t,e){let i={};i[ct]=e;for(let n of t)if(n.path===""&&Wr(n)!==ct){let r=new Ft([],{});i[Wr(n)]=r}return i}function e9(t,e,i){return i.some(n=>W0(t,e,n)&&Wr(n)!==ct)}function t9(t,e,i){return i.some(n=>W0(t,e,n))}function W0(t,e,i){return(t.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function n9(t,e,i,n){return Wr(t)!==n&&(n===ct||!W0(e,i,t))?!1:eC(e,t,i).matched}function i9(t,e,i){return e.length===0&&!t.children[i]}var Yw=class{};function r9(t,e,i,n,r,s,o="emptyOnly"){return new Kw(t,e,i,n,r,o,s).recognize()}var s9=31,Kw=class{constructor(e,i,n,r,s,o,a){this.injector=e,this.configLoader=i,this.rootComponentType=n,this.config=r,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new qw(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new Te(4002,`'${e.segmentGroup}'`)}recognize(){let e=C2(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(ve(({children:i,rootSnapshot:n})=>{let r=new Gi(n,i),s=new $0("",r),o=d7(n,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(e){let i=new zc([],Object.freeze({}),Object.freeze(Z({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),ct,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,ct,i).pipe(ve(n=>({children:n,rootSnapshot:i})),wn(n=>{if(n instanceof Jd)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Xd?this.noMatchError(n):n}))}processSegmentGroup(e,i,n,r,s){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,i,n,s):this.processSegment(e,i,n,n.segments,r,!0,s).pipe(ve(o=>o instanceof Gi?[o]:[]))}processChildren(e,i,n,r){let s=[];for(let o of Object.keys(n.children))o==="primary"?s.unshift(o):s.push(o);return Tt(s).pipe(Ur(o=>{let a=n.children[o],l=S7(i,o);return this.processSegmentGroup(e,l,a,o,r)}),Mb((o,a)=>(o.push(...a),o)),Po(null),Ib(),Gt(o=>{if(o===null)return Bc(n);let a=K2(o);return o9(a),de(a)}))}processSegment(e,i,n,r,s,o,a){return Tt(i).pipe(Ur(l=>this.processSegmentAgainstRoute(l._injector??e,i,l,n,r,s,o,a).pipe(wn(c=>{if(c instanceof Xd)return de(null);throw c}))),xi(l=>!!l),wn(l=>{if(G2(l))return i9(n,r,s)?de(new Yw):Bc(n);throw l}))}processSegmentAgainstRoute(e,i,n,r,s,o,a,l){return n9(n,r,s,o)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,n,s,o,l):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,n,s,o,l):Bc(r):Bc(r)}expandSegmentAgainstRouteUsingRedirect(e,i,n,r,s,o,a){let{matched:l,parameters:c,consumedSegments:u,positionalParamSegments:d,remainingSegments:h}=eC(i,r,s);if(!l)return Bc(i);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>s9&&(this.allowRedirects=!1));let f=new zc(s,c,Object.freeze(Z({},this.urlTree.queryParams)),this.urlTree.fragment,x2(r),Wr(r),r.component??r._loadedComponent??null,r,E2(r)),m=U0(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(m.params),f.data=Object.freeze(m.data);let p=this.applyRedirects.applyRedirectCommands(u,r.redirectTo,d,f,e);return this.applyRedirects.lineralizeSegments(r,p).pipe(Gt(g=>this.processSegment(e,n,i,g.concat(h),o,!1,a)))}matchSegmentAgainstRoute(e,i,n,r,s,o){let a=Z7(i,n,r,e,this.urlSerializer);return n.path==="**"&&(i.children={}),a.pipe(Nt(l=>l.matched?(e=n._injector??e,this.getChildConfig(e,n,r).pipe(Nt(({routes:c})=>{let u=n._loadedInjector??e,{parameters:d,consumedSegments:h,remainingSegments:f}=l,m=new zc(h,d,Object.freeze(Z({},this.urlTree.queryParams)),this.urlTree.fragment,x2(n),Wr(n),n.component??n._loadedComponent??null,n,E2(n)),p=U0(m,o,this.paramsInheritanceStrategy);m.params=Object.freeze(p.params),m.data=Object.freeze(p.data);let{segmentGroup:g,slicedSegments:w}=C2(i,h,f,c);if(w.length===0&&g.hasChildren())return this.processChildren(u,c,g,m).pipe(ve(E=>new Gi(m,E)));if(c.length===0&&w.length===0)return de(new Gi(m,[]));let C=Wr(n)===s;return this.processSegment(u,c,g,w,C?ct:s,!0,m).pipe(ve(E=>new Gi(m,E instanceof Gi?[E]:[])))}))):Bc(i)))}getChildConfig(e,i,n){return i.children?de({routes:i.children,injector:e}):i.loadChildren?i._loadedRoutes!==void 0?de({routes:i._loadedRoutes,injector:i._loadedInjector}):q7(e,i,n,this.urlSerializer).pipe(Gt(r=>r?this.configLoader.loadChildren(e,i).pipe(mt(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):K7(i))):de({routes:[],injector:e})}};function o9(t){t.sort((e,i)=>e.value.outlet===ct?-1:i.value.outlet===ct?1:e.value.outlet.localeCompare(i.value.outlet))}function a9(t){let e=t.value.routeConfig;return e&&e.path===""}function K2(t){let e=[],i=new Set;for(let n of t){if(!a9(n)){e.push(n);continue}let r=e.find(s=>n.value.routeConfig===s.value.routeConfig);r!==void 0?(r.children.push(...n.children),i.add(r)):e.push(n)}for(let n of i){let r=K2(n.children);e.push(new Gi(n.value,r))}return e.filter(n=>!i.has(n))}function x2(t){return t.data||{}}function E2(t){return t.resolve||{}}function l9(t,e,i,n,r,s){return Gt(o=>r9(t,e,i,n,o.extractedUrl,r,s).pipe(ve(({state:a,tree:l})=>We(Z({},o),{targetSnapshot:a,urlAfterRedirects:l}))))}function c9(t,e){return Gt(i=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=i;if(!r.length)return de(i);let s=new Set(r.map(l=>l.route)),o=new Set;for(let l of s)if(!o.has(l))for(let c of Z2(l))o.add(c);let a=0;return Tt(o).pipe(Ur(l=>s.has(l)?u9(l,n,t,e):(l.data=U0(l,l.parent,t).resolve,de(void 0))),mt(()=>a++),hc(1),Gt(l=>a===o.size?de(i):rn))})}function Z2(t){let e=t.children.map(i=>Z2(i)).flat();return[t,...e]}function u9(t,e,i,n){let r=t.routeConfig,s=t._resolve;return r?.title!==void 0&&!H2(r)&&(s[eh]=r.title),d9(s,t,e,n).pipe(ve(o=>(t._resolvedData=o,t.data=U0(t,t.parent,i).resolve,null)))}function d9(t,e,i,n){let r=Iw(t);if(r.length===0)return de({});let s={};return Tt(r).pipe(Gt(o=>h9(t[o],e,i,n).pipe(xi(),mt(a=>{if(a instanceof Qd)throw V0(new Gc,a);s[o]=a}))),hc(1),od(s),wn(o=>G2(o)?rn:Tn(o)))}function h9(t,e,i,n){let r=ih(e)??n,s=Qc(t,r),o=s.resolve?s.resolve(e,i):Ii(r,()=>s(e,i));return la(o)}function Ew(t){return Nt(e=>{let i=t(e);return i?Tt(i).pipe(ve(()=>e)):de(e)})}var Q2=(()=>{let e=class e{buildTitle(n){let r,s=n.root;for(;s!==void 0;)r=this.getResolvedTitleForRoute(s)??r,s=s.children.find(o=>o.outlet===ct);return r}getResolvedTitleForRoute(n){return n.data[eh]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:()=>Y(f9),providedIn:"root"});let t=e;return t})(),f9=(()=>{let e=class e extends Q2{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}};e.\u0275fac=function(r){return new(r||e)(V(g2))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),sh=new Q("",{providedIn:"root",factory:()=>({})}),j0=new Q(""),tC=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Y(r0)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return de(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=la(n.loadComponent()).pipe(ve(X2),mt(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),as(()=>{this.componentLoaders.delete(n)})),s=new Va(r,()=>new ye).pipe(nc());return this.componentLoaders.set(n,s),s}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return de({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=m9(r,this.compiler,n,this.onLoadEndListener).pipe(as(()=>{this.childrenLoaders.delete(r)})),a=new Va(o,()=>new ye).pipe(nc());return this.childrenLoaders.set(r,a),a}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function m9(t,e,i,n){return la(t.loadChildren()).pipe(ve(X2),Gt(r=>r instanceof _d||Array.isArray(r)?de(r):Tt(e.compileModuleAsync(r))),ve(r=>{n&&n(t);let s,o,a=!1;return Array.isArray(r)?(o=r,a=!0):(s=r.create(i).injector,o=s.get(j0,[],{optional:!0,self:!0}).flat()),{routes:o.map(Jw),injector:s}}))}function p9(t){return t&&typeof t=="object"&&"default"in t}function X2(t){return p9(t)?t.default:t}var nC=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:()=>Y(g9),providedIn:"root"});let t=e;return t})(),g9=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),J2=new Q(""),eR=new Q("");function _9(t,e,i){let n=t.get(eR),r=t.get(Fe);return t.get(be).runOutsideAngular(()=>{if(!r.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(c=>setTimeout(c));let s,o=new Promise(c=>{s=c}),a=r.startViewTransition(()=>(s(),v9(t))),{onViewTransitionCreated:l}=n;return l&&Ii(t,()=>l({transition:a,from:e,to:i})),o})}function v9(t){return new Promise(e=>{ti(()=>setTimeout(e),{injector:t,phase:Hs.Read})})}var b9=new Q(""),iC=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ye,this.transitionAbortSubject=new ye,this.configLoader=Y(tC),this.environmentInjector=Y(An),this.urlSerializer=Y(th),this.rootContexts=Y(nh),this.location=Y(na),this.inputBindingEnabled=Y(z0,{optional:!0})!==null,this.titleStrategy=Y(Q2),this.options=Y(sh,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=Y(nC),this.createViewTransition=Y(J2,{optional:!0}),this.navigationErrorHandler=Y(b9,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>de(void 0),this.rootComponentType=null;let n=s=>this.events.next(new Ow(s)),r=s=>this.events.next(new Nw(s));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(We(Z(Z({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,s){return this.transitions=new tn({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:zd,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(et(o=>o.id!==0),ve(o=>We(Z({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),Nt(o=>{let a=!1,l=!1;return de(o).pipe(Nt(c=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",Yi.SupersededByNewNavigation),rn;this.currentTransition=o,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?We(Z({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&d!=="reload"){let h="";return this.events.next(new oa(c.id,this.urlSerializer.serialize(c.rawUrl),h,L0.IgnoredSameUrlNavigation)),c.resolve(!1),rn}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return de(c).pipe(Nt(h=>{let f=this.transitions?.getValue();return this.events.next(new Yc(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions?.getValue()?rn:Promise.resolve(h)}),l9(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),mt(h=>{o.targetSnapshot=h.targetSnapshot,o.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=We(Z({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let f=new O0(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(f)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:h,extractedUrl:f,source:m,restoredState:p,extras:g}=c,w=new Yc(h,this.urlSerializer.serialize(f),m,p);this.events.next(w);let C=B2(this.rootComponentType).snapshot;return this.currentTransition=o=We(Z({},c),{targetSnapshot:C,urlAfterRedirects:f,extras:We(Z({},g),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,de(o)}else{let h="";return this.events.next(new oa(c.id,this.urlSerializer.serialize(c.extractedUrl),h,L0.IgnoredByUrlHandlingStrategy)),c.resolve(!1),rn}}),mt(c=>{let u=new Tw(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),ve(c=>(this.currentTransition=o=We(Z({},c),{guards:M7(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),o)),U7(this.environmentInjector,c=>this.events.next(c)),mt(c=>{if(o.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw V0(this.urlSerializer,c.guardsResult);let u=new Aw(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(u)}),et(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",Yi.GuardRejected),!1)),Ew(c=>{if(c.guards.canActivateChecks.length)return de(c).pipe(mt(u=>{let d=new Rw(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}),Nt(u=>{let d=!1;return de(u).pipe(c9(this.paramsInheritanceStrategy,this.environmentInjector),mt({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(u,"",Yi.NoDataFromResolver)}}))}),mt(u=>{let d=new Lw(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}))}),Ew(c=>{let u=d=>{let h=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe(mt(f=>{d.component=f}),ve(()=>{})));for(let f of d.children)h.push(...u(f));return h};return Pr(u(c.targetSnapshot.root)).pipe(Po(null),St(1))}),Ew(()=>this.afterPreactivation()),Nt(()=>{let{currentSnapshot:c,targetSnapshot:u}=o,d=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return d?Tt(d).pipe(ve(()=>o)):de(o)}),ve(c=>{let u=b7(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=o=We(Z({},c),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,o}),mt(()=>{this.events.next(new Kd)}),I7(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),St(1),mt({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new bs(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),ft(this.transitionAbortSubject.pipe(mt(c=>{throw c}))),as(()=>{!a&&!l&&this.cancelNavigationTransition(o,"",Yi.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),wn(c=>{if(l=!0,q2(c))this.events.next(new so(o.id,this.urlSerializer.serialize(o.extractedUrl),c.message,c.cancellationCode)),C7(c)?this.events.next(new Kc(c.url,c.navigationBehaviorOptions)):o.resolve(!1);else{let u=new Yd(o.id,this.urlSerializer.serialize(o.extractedUrl),c,o.targetSnapshot??void 0);try{let d=Ii(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(d instanceof Qd){let{message:h,cancellationCode:f}=V0(this.urlSerializer,d);this.events.next(new so(o.id,this.urlSerializer.serialize(o.extractedUrl),h,f)),this.events.next(new Kc(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(u);let h=n.errorHandler(c);o.resolve(!!h)}}catch(d){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(d)}}return rn}))}))}cancelNavigationTransition(n,r,s){let o=new so(n.id,this.urlSerializer.serialize(n.extractedUrl),r,s);this.events.next(o),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}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function y9(t){return t!==zd}var w9=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:()=>Y(C9),providedIn:"root"});let t=e;return t})(),Zw=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},C9=(()=>{let e=class e extends Zw{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=ei(e)))(s||e)}})(),e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),tR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:()=>Y(x9),providedIn:"root"});let t=e;return t})(),x9=(()=>{let e=class e extends tR{constructor(){super(...arguments),this.location=Y(na),this.urlSerializer=Y(th),this.options=Y(sh,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=Y(nC),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new sa,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=B2(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(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof Yc)this.stateMemento=this.createStateMemento();else if(n instanceof oa)this.rawUrlTree=r.initialUrl;else if(n instanceof O0){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(s,r)}}else n instanceof Kd?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):n instanceof so&&(n.code===Yi.GuardRejected||n.code===Yi.NoDataFromResolver)?this.restoreHistory(r):n instanceof Yd?this.restoreHistory(r,!0):n instanceof bs&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let s=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(s)||r.extras.replaceUrl){let o=this.browserPageId,a=Z(Z({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(s,"",a)}else{let o=Z(Z({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(s,"",o)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,o=this.currentPageId-s;o!==0?this.location.historyGo(o):this.currentUrlTree===n.finalUrl&&o===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&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,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=ei(e)))(s||e)}})(),e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),jd=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(jd||{});function nR(t,e){t.events.pipe(et(i=>i instanceof bs||i instanceof so||i instanceof Yd||i instanceof oa),ve(i=>i instanceof bs||i instanceof oa?jd.COMPLETE:(i instanceof so?i.code===Yi.Redirect||i.code===Yi.SupersededByNewNavigation:!1)?jd.REDIRECTING:jd.FAILED),et(i=>i!==jd.REDIRECTING),St(1)).subscribe(()=>{e()})}function E9(t){throw t}var S9={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},I9={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},aa=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=Y(Jp),this.stateManager=Y(tR),this.options=Y(sh,{optional:!0})||{},this.pendingTasks=Y(ms),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=Y(iC),this.urlSerializer=Y(th),this.location=Y(na),this.urlHandlingStrategy=Y(nC),this._events=new ye,this.errorHandler=this.options.errorHandler||E9,this.navigated=!1,this.routeReuseStrategy=Y(w9),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=Y(j0,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!Y(z0,{optional:!0}),this.eventsSubscription=new tt,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(r=>{try{let s=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(s!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof so&&r.code!==Yi.Redirect&&r.code!==Yi.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof bs)this.navigated=!0;else if(r instanceof Kc){let a=r.navigationBehaviorOptions,l=this.urlHandlingStrategy.merge(r.url,s.currentRawUrl),c=Z({info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:s.extras.replaceUrl||this.urlUpdateStrategy==="eager"||y9(s.source)},a);this.scheduleNavigation(l,zd,null,c,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}D9(r)&&this._events.next(r)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});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),zd,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,s){let o={replaceUrl:!0},a=s?.navigationId?s:null;if(s){let c=Z({},s);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let l=this.parseUrl(n);this.scheduleNavigation(l,r,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Jw),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,r={}){let{relativeTo:s,queryParams:o,fragment:a,queryParamsHandling:l,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:a,d=null;switch(l){case"merge":d=Z(Z({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let h;try{let f=s?s.snapshot:this.routerState.snapshot.root;h=P2(f)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),h=this.currentUrlTree.root}return U2(h,n,d,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let s=qd(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,zd,null,r)}navigate(n,r={skipLocationChange:!1}){return M9(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let s;if(r===!0?s=Z({},S9):r===!1?s=Z({},I9):s=r,qd(n))return _2(this.currentUrlTree,n,s);let o=this.parseUrl(n);return _2(this.currentUrlTree,o,s)}removeEmptyProps(n){return Object.entries(n).reduce((r,[s,o])=>(o!=null&&(r[s]=o),r),{})}scheduleNavigation(n,r,s,o,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((h,f)=>{l=h,c=f});let d=this.pendingTasks.add();return nR(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(h=>Promise.reject(h))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function M9(t){for(let e=0;e{let e=class e{constructor(n,r,s,o,a,l){this.router=n,this.route=r,this.tabIndexAttribute=s,this.renderer=o,this.el=a,this.locationStrategy=l,this.href=null,this.commands=null,this.onChanges=new ye,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof bs&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n!=null?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,s,o,a){let l=this.urlTree;if(l===null||this.isAnchorElement&&(n!==0||r||s||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(l,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let r=this.href===null?null:oT(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){let s=this.renderer,o=this.el.nativeElement;r!==null?s.setAttribute(o,n,r):s.removeAttribute(o,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(r){return new(r||e)(F(aa),F(pl),En("tabindex"),F(Ko),F(xe),F(ro))},e.\u0275dir=Me({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,s){r&1&&oe("click",function(a){return s.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&Re("target",s.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ne],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ne],replaceUrl:[2,"replaceUrl","replaceUrl",Ne],routerLink:"routerLink"},standalone:!0,features:[gt,Mt]});let t=e;return t})();var H0=class{};var k9=(()=>{let e=class e{constructor(n,r,s,o,a){this.router=n,this.injector=s,this.preloadingStrategy=o,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(et(n=>n instanceof bs),Ur(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){let s=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Kp(o.providers,n,`Route: ${o.path}`));let a=o._injector??n,l=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&s.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&s.push(this.processRoutes(l,o.children??o._loadedRoutes))}return Tt(s).pipe(Fo())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let s;r.loadChildren&&r.canLoad===void 0?s=this.loader.loadChildren(n,r):s=de(null);let o=s.pipe(Gt(a=>a===null?de(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(r);return Tt([o,a]).pipe(Fo())}else return o})}};e.\u0275fac=function(r){return new(r||e)(V(aa),V(r0),V(An),V(H0),V(tC))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),iR=new Q(""),T9=(()=>{let e=class e{constructor(n,r,s,o,a={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=s,this.zone=o,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=Y(An),a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Yc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof bs?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof oa&&n.code===L0.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof N0&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>Bt(this,null,function*(){yield new Promise(s=>{setTimeout(()=>{s()}),ti(()=>{s()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new N0(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(r){Fc()},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})();function A9(t){return t.routerState.root}function oh(t,e){return{\u0275kind:t,\u0275providers:e}}function R9(){let t=Y(It);return e=>{let i=t.get(Hr);if(e!==i.components[0])return;let n=t.get(aa),r=t.get(rR);t.get(rC)===1&&n.initialNavigation(),t.get(sR,null,dt.Optional)?.setUpPreloading(),t.get(iR,null,dt.Optional)?.init(),n.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var rR=new Q("",{factory:()=>new ye}),rC=new Q("",{providedIn:"root",factory:()=>1});function L9(){return oh(2,[{provide:rC,useValue:0},{provide:n0,multi:!0,deps:[It],useFactory:e=>{let i=e.get(NA,Promise.resolve());return()=>i.then(()=>new Promise(n=>{let r=e.get(aa),s=e.get(rR);nR(r,()=>{n(!0)}),e.get(iC).afterPreactivation=()=>(n(!0),s.closed?de(void 0):s),r.initialNavigation()}))}}])}function O9(){return oh(3,[{provide:n0,multi:!0,useFactory:()=>{let e=Y(aa);return()=>{e.setUpLocationChangeListener()}}},{provide:rC,useValue:2}])}var sR=new Q("");function N9(t){return oh(0,[{provide:sR,useExisting:k9},{provide:H0,useExisting:t}])}function F9(){return oh(8,[w2,{provide:z0,useExisting:w2}])}function P9(t){let e=[{provide:J2,useValue:_9},{provide:eR,useValue:Z({skipNextTransition:!!t?.skipInitialTransition},t)}];return oh(9,e)}var S2=new Q("ROUTER_FORROOT_GUARD"),U9=[na,{provide:th,useClass:Gc},aa,nh,{provide:pl,useFactory:A9,deps:[aa]},tC,[]],oR=(()=>{let e=class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[U9,[],{provide:j0,multi:!0,useValue:n},{provide:S2,useFactory:j9,deps:[[aa,new Ys,new Wo]]},{provide:sh,useValue:r||{}},r?.useHash?V9():B9(),$9(),r?.preloadingStrategy?N9(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?H9(r):[],r?.bindToComponentInputs?F9().\u0275providers:[],r?.enableViewTransitions?P9().\u0275providers:[],z9()]}}static forChild(n){return{ngModule:e,providers:[{provide:j0,multi:!0,useValue:n}]}}};e.\u0275fac=function(r){return new(r||e)(V(S2,8))},e.\u0275mod=ce({type:e}),e.\u0275inj=le({});let t=e;return t})();function $9(){return{provide:iR,useFactory:()=>{let t=Y(WA),e=Y(be),i=Y(sh),n=Y(iC),r=Y(th);return i.scrollOffset&&t.setOffset(i.scrollOffset),new T9(r,n,t,e,i)}}}function V9(){return{provide:ro,useClass:PA}}function B9(){return{provide:ro,useClass:iw}}function j9(t){return"guarded"}function H9(t){return[t.initialNavigation==="disabled"?O9().\u0275providers:[],t.initialNavigation==="enabledBlocking"?L9().\u0275providers:[]]}var I2=new Q("");function z9(){return[{provide:I2,useFactory:R9},{provide:i0,multi:!0,useExisting:I2}]}var ca=class{},lR=(()=>{class t extends ca{getTranslation(i){return de({})}static \u0275fac=(()=>{let i;return function(r){return(i||(i=ei(t)))(r||t)}})();static \u0275prov=J({token:t,factory:t.\u0275fac})}return t})(),ah=class{},cR=(()=>{class t{handle(i){return i.key}static \u0275fac=function(n){return new(n||t)};static \u0275prov=J({token:t,factory:t.\u0275fac})}return t})();function gl(t){return typeof t<"u"&&t!==null}function sC(t){return t&&typeof t=="object"&&!Array.isArray(t)}function hR(t,e){let i=Object.assign({},t);return sC(t)&&sC(e)&&Object.keys(e).forEach(n=>{sC(e[n])?n in t?i[n]=hR(t[n],e[n]):Object.assign(i,{[n]:e[n]}):Object.assign(i,{[n]:e[n]})}),i}var Xc=class{},uR=(()=>{class t extends Xc{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(i,n){let r;return typeof i=="string"?r=this.interpolateString(i,n):typeof i=="function"?r=this.interpolateFunction(i,n):r=i,r}getValue(i,n){let r=typeof n=="string"?n.split("."):[n];n="";do n+=r.shift(),gl(i)&&gl(i[n])&&(typeof i[n]=="object"||!r.length)?(i=i[n],n=""):r.length?n+=".":i=void 0;while(r.length);return i}interpolateFunction(i,n){return i(n)}interpolateString(i,n){return n?i.replace(this.templateMatcher,(r,s)=>{let o=this.getValue(n,s);return gl(o)?o:r}):i}static \u0275fac=(()=>{let i;return function(r){return(i||(i=ei(t)))(r||t)}})();static \u0275prov=J({token:t,factory:t.\u0275fac})}return t})(),Jc=class{},dR=(()=>{class t extends Jc{compile(i,n){return i}compileTranslations(i,n){return i}static \u0275fac=(()=>{let i;return function(r){return(i||(i=ei(t)))(r||t)}})();static \u0275prov=J({token:t,factory:t.\u0275fac})}return t})(),G0=class{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new se;onLangChange=new se;onDefaultLangChange=new se},oC=new Q("USE_STORE"),aC=new Q("USE_DEFAULT_LANG"),lC=new Q("DEFAULT_LANGUAGE"),cC=new Q("USE_EXTEND"),Y0=(()=>{class t{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new se;_onLangChange=new se;_onDefaultLangChange=new se;_defaultLang;_currentLang;_langs=[];_translations={};_translationRequests={};get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(i){this.isolate?this._defaultLang=i:this.store.defaultLang=i}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(i){this.isolate?this._currentLang=i:this.store.currentLang=i}get langs(){return this.isolate?this._langs:this.store.langs}set langs(i){this.isolate?this._langs=i:this.store.langs=i}get translations(){return this.isolate?this._translations:this.store.translations}set translations(i){this.isolate?this._translations=i:this.store.translations=i}constructor(i,n,r,s,o,a=!0,l=!1,c=!1,u){this.store=i,this.currentLoader=n,this.compiler=r,this.parser=s,this.missingTranslationHandler=o,this.useDefaultLang=a,this.isolate=l,this.extend=c,u&&this.setDefaultLang(u)}setDefaultLang(i){if(i===this.defaultLang)return;let n=this.retrieveTranslations(i);typeof n<"u"?(this.defaultLang==null&&(this.defaultLang=i),n.pipe(St(1)).subscribe(r=>{this.changeDefaultLang(i)})):this.changeDefaultLang(i)}getDefaultLang(){return this.defaultLang}use(i){if(i===this.currentLang)return de(this.translations[i]);let n=this.retrieveTranslations(i);return typeof n<"u"?(this.currentLang||(this.currentLang=i),n.pipe(St(1)).subscribe(r=>{this.changeLang(i)}),n):(this.changeLang(i),de(this.translations[i]))}retrieveTranslations(i){let n;return(typeof this.translations[i]>"u"||this.extend)&&(this._translationRequests[i]=this._translationRequests[i]||this.getTranslation(i),n=this._translationRequests[i]),n}getTranslation(i){this.pending=!0;let n=this.currentLoader.getTranslation(i).pipe(Wa(1),St(1));return this.loadingTranslations=n.pipe(ve(r=>this.compiler.compileTranslations(r,i)),Wa(1),St(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[i]=this.extend&&this.translations[i]?Z(Z({},r),this.translations[i]):r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),n}setTranslation(i,n,r=!1){n=this.compiler.compileTranslations(n,i),(r||this.extend)&&this.translations[i]?this.translations[i]=hR(this.translations[i],n):this.translations[i]=n,this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}getLangs(){return this.langs}addLangs(i){i.forEach(n=>{this.langs.indexOf(n)===-1&&this.langs.push(n)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(i,n,r){let s;if(n instanceof Array){let o={},a=!1;for(let l of n)o[l]=this.getParsedResult(i,l,r),ur(o[l])&&(a=!0);if(a){let l=n.map(c=>ur(o[c])?o[c]:de(o[c]));return Ha(l).pipe(ve(c=>{let u={};return c.forEach((d,h)=>{u[n[h]]=d}),u}))}return o}if(i&&(s=this.parser.interpolate(this.parser.getValue(i,n),r)),typeof s>"u"&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(s=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],n),r)),typeof s>"u"){let o={key:n,translateService:this};typeof r<"u"&&(o.interpolateParams=r),s=this.missingTranslationHandler.handle(o)}return typeof s<"u"?s:n}get(i,n){if(!gl(i)||!i.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Ur(r=>(r=this.getParsedResult(r,i,n),ur(r)?r:de(r))));{let r=this.getParsedResult(this.translations[this.currentLang],i,n);return ur(r)?r:de(r)}}getStreamOnTranslationChange(i,n){if(!gl(i)||!i.length)throw new Error('Parameter "key" required');return $i(js(()=>this.get(i,n)),this.onTranslationChange.pipe(Nt(r=>{let s=this.getParsedResult(r.translations,i,n);return typeof s.subscribe=="function"?s:de(s)})))}stream(i,n){if(!gl(i)||!i.length)throw new Error('Parameter "key" required');return $i(js(()=>this.get(i,n)),this.onLangChange.pipe(Nt(r=>{let s=this.getParsedResult(r.translations,i,n);return ur(s)?s:de(s)})))}instant(i,n){if(!gl(i)||!i.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],i,n);if(ur(r)){if(i instanceof Array){let s={};return i.forEach((o,a)=>{s[i[a]]=i[a]}),s}return i}else return r}set(i,n,r=this.currentLang){this.translations[r][i]=this.compiler.compile(n,r),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeLang(i){this.currentLang=i,this.onLangChange.emit({lang:i,translations:this.translations[i]}),this.defaultLang==null&&this.changeDefaultLang(i)}changeDefaultLang(i){this.defaultLang=i,this.onDefaultLangChange.emit({lang:i,translations:this.translations[i]})}reloadLang(i){return this.resetLang(i),this.getTranslation(i)}resetLang(i){this._translationRequests[i]=void 0,this.translations[i]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let i=window.navigator.languages?window.navigator.languages[0]:null;if(i=i||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,!(typeof i>"u"))return i.indexOf("-")!==-1&&(i=i.split("-")[0]),i.indexOf("_")!==-1&&(i=i.split("_")[0]),i}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let i=window.navigator.languages?window.navigator.languages[0]:null;return i=i||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,i}static \u0275fac=function(n){return new(n||t)(V(G0),V(ca),V(Jc),V(Xc),V(ah),V(aC),V(oC),V(cC),V(lC))};static \u0275prov=J({token:t,factory:t.\u0275fac})}return t})();var lh=(()=>{class t{static forRoot(i={}){return{ngModule:t,providers:[i.loader||{provide:ca,useClass:lR},i.compiler||{provide:Jc,useClass:dR},i.parser||{provide:Xc,useClass:uR},i.missingTranslationHandler||{provide:ah,useClass:cR},G0,{provide:oC,useValue:i.isolate},{provide:aC,useValue:i.useDefaultLang},{provide:cC,useValue:i.extend},{provide:lC,useValue:i.defaultLanguage},Y0]}}static forChild(i={}){return{ngModule:t,providers:[i.loader||{provide:ca,useClass:lR},i.compiler||{provide:Jc,useClass:dR},i.parser||{provide:Xc,useClass:uR},i.missingTranslationHandler||{provide:ah,useClass:cR},{provide:oC,useValue:i.isolate},{provide:aC,useValue:i.useDefaultLang},{provide:cC,useValue:i.extend},{provide:lC,useValue:i.defaultLanguage},Y0]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ce({type:t});static \u0275inj=le({})}return t})();var K0=class{http;prefix;suffix;constructor(e,i="/assets/i18n/",n=".json"){this.http=e,this.prefix=i,this.suffix=n}getTranslation(e){return this.http.get(`${this.prefix}${e}${this.suffix}`)}};var vL=ss(xC());var yr=(()=>{let e=class e{constructor(){}changeFhirMicroService(n){localStorage.setItem("fhirMicroServer",n)}getFhirMicroService(){return localStorage.getItem("fhirMicroServer")}getFhirClient(){return new vL.default({baseUrl:this.getFhirMicroService()})}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var su={name:"matchbox",version:"3.8.9",license:"MIT",scripts:{ng:"ng",start:"ng serve",build:"ng build --configuration production","build-matchbox":"ng build --configuration production --output-path ../matchbox-server/src/main/resources/static",test:"ng test","test-ci":"ng test --no-watch --no-progress --browsers=ChromeHeadlessNoSandbox --code-coverage",lint:"ng lint",e2e:"ng e2e"},private:!0,dependencies:{"@angular-devkit/build-angular":"^18.0.5","@angular/animations":"^18.0.4","@angular/cdk":"^18.0.4","@angular/common":"^18.0.4","@angular/core":"^18.0.4","@angular/forms":"^18.0.4","@angular/material":"^18.0.4","@angular/platform-browser":"^18.0.4","@angular/platform-browser-dynamic":"^18.0.4","@angular/router":"^18.0.4","@ngx-translate/core":"^15.0.0","@ngx-translate/http-loader":"^8.0.0","ace-builds":"^1.35.0","angular-oauth2-oidc":"^17.0.1","browserify-zlib":"^0.2.0",debug:"^4.3.5","fhir-kit-client":"1.9.2",fhirpath:"^3.13.3","highlightjs-line-numbers.js":"^2.8.0","js-untar":"^2.0.0","ngx-highlightjs":"^10.0.0","ngx-mat-select-search":"^7.0.5",pako:"^2.1.0",rxjs:"^7.8.1",tslib:"^2.6.1","zone.js":"^0.14.7"},devDependencies:{"@angular-eslint/builder":"^18.0.1","@angular-eslint/eslint-plugin":"^18.0.1","@angular-eslint/eslint-plugin-template":"^18.0.1","@angular-eslint/schematics":"^18.0.1","@angular-eslint/template-parser":"^18.0.1","@angular/cli":"^18.0.5","@angular/compiler":"^18.0.4","@angular/compiler-cli":"^18.0.4","@angular/language-service":"^18.0.4","@types/debug":"^4.1.12","@types/jasmine":"^5.1.4","@types/node":"^20.14.7","@types/pako":"^2.0.3","@typescript-eslint/eslint-plugin":"^7.13.1","@typescript-eslint/parser":"^7.13.1",eslint:"^8.57.0",husky:"^9.0.11",jasmine:"^5.1.0","jasmine-core":"^5.1.2","jasmine-spec-reporter":"^7.0.0","json-patch":"^0.7.0",karma:"^6.4.3","karma-chrome-launcher":"^3.2.0","karma-cli":"~2.0.0","karma-coverage-istanbul-reporter":"~3.0.2","karma-jasmine":"^5.1.0","karma-jasmine-html-reporter":"^2.1.0",prettier:"^3.3.2","pretty-quick":"^4.0.0","ts-node":"^10.9.2",tslint:"^6.1.3",typescript:"5.4.5"},browser:{fs:!1,os:!1,path:!1,zlib:!1},husky:{hooks:{"pre-commit":"pretty-quick --staged"}}};var RC;try{RC=typeof Intl<"u"&&Intl.v8BreakIterator}catch{RC=!1}var xt=(()=>{let e=class e{constructor(n){this._platformId=n,this.isBrowser=this._platformId?ul(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||RC)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(r){return new(r||e)(V(fi))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var ou,bL=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function LC(){if(ou)return ou;if(typeof document!="object"||!document)return ou=new Set(bL),ou;let t=document.createElement("input");return ou=new Set(bL.filter(e=>(t.setAttribute("type",e),t.type===e))),ou}var uh;function HW(){if(uh==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>uh=!0}))}finally{uh=uh||!1}return uh}function Ri(t){return HW()?t:!!t.capture}var vl;function yL(){if(vl==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return vl=!1,vl;if("scrollBehavior"in document.documentElement.style)vl=!0;else{let t=Element.prototype.scrollTo;t?vl=!/\{\s*\[native code\]\s*\}/.test(t.toString()):vl=!1}}return vl}var AC;function zW(){if(AC==null){let t=typeof document<"u"?document.head:null;AC=!!(t&&(t.createShadowRoot||t.attachShadow))}return AC}function wL(t){if(zW()){let e=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function OC(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}function Zi(t){return t.composedPath?t.composedPath()[0]:t.target}function dh(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Qi(t,...e){return e.length?e.some(i=>t[i]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Xi(t){return t!=null&&`${t}`!="false"}function au(t,e=0){return WW(t)?Number(t):e}function WW(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function lu(t){return Array.isArray(t)?t:[t]}function mn(t){return t==null?"":typeof t=="string"?t:`${t}px`}function wr(t){return t instanceof xe?t.nativeElement:t}var qW=(()=>{let e=class e{create(n){return typeof MutationObserver>"u"?null:new MutationObserver(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var ng=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({providers:[qW]});let t=e;return t})();var CL=new Set,bl,GW=(()=>{let e=class e{constructor(n,r){this._platform=n,this._nonce=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):KW}matchMedia(n){return(this._platform.WEBKIT||this._platform.BLINK)&&YW(n,this._nonce),this._matchMedia(n)}};e.\u0275fac=function(r){return new(r||e)(V(xt),V(xd,8))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function YW(t,e){if(!CL.has(t))try{bl||(bl=document.createElement("style"),e&&bl.setAttribute("nonce",e),bl.setAttribute("type","text/css"),document.head.appendChild(bl)),bl.sheet&&(bl.sheet.insertRule(`@media ${t} {body{ }}`,0),CL.add(t))}catch(i){console.error(i)}}function KW(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var EL=(()=>{let e=class e{constructor(n,r){this._mediaMatcher=n,this._zone=r,this._queries=new Map,this._destroySubject=new ye}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(n){return xL(lu(n)).some(s=>this._registerQuery(s).mql.matches)}observe(n){let s=xL(lu(n)).map(a=>this._registerQuery(a).observable),o=Pr(s);return o=$i(o.pipe(St(1)),o.pipe(ld(1),dr(0))),o.pipe(ve(a=>{let l={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:u})=>{l.matches=l.matches||c,l.breakpoints[u]=c}),l}))}_registerQuery(n){if(this._queries.has(n))return this._queries.get(n);let r=this._mediaMatcher.matchMedia(n),o={observable:new Ke(a=>{let l=c=>this._zone.run(()=>a.next(c));return r.addListener(l),()=>{r.removeListener(l)}}).pipe(ci(r),ve(({matches:a})=>({query:n,matches:a})),ft(this._destroySubject)),mql:r};return this._queries.set(n,o),o}};e.\u0275fac=function(r){return new(r||e)(V(GW),V(be))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function xL(t){return t.map(e=>e.split(",")).reduce((e,i)=>e.concat(i)).map(e=>e.trim())}var RL=" ";function VC(t,e,i){let n=og(t,e);i=i.trim(),!n.some(r=>r.trim()===i)&&(n.push(i),t.setAttribute(e,n.join(RL)))}function cg(t,e,i){let n=og(t,e);i=i.trim();let r=n.filter(s=>s!==i);r.length?t.setAttribute(e,r.join(RL)):t.removeAttribute(e)}function og(t,e){return t.getAttribute(e)?.match(/\S+/g)??[]}var LL="cdk-describedby-message",ig="cdk-describedby-host",PC=0,OL=(()=>{let e=class e{constructor(n,r){this._platform=r,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${PC++}`,this._document=n,this._id=Y(Nc)+"-"+PC++}describe(n,r,s){if(!this._canBeDescribed(n,r))return;let o=NC(r,s);typeof r!="string"?(SL(r,this._id),this._messageRegistry.set(o,{messageElement:r,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(r,s),this._isElementDescribedByMessage(n,o)||this._addMessageReference(n,o)}removeDescription(n,r,s){if(!r||!this._isElementNode(n))return;let o=NC(r,s);if(this._isElementDescribedByMessage(n,o)&&this._removeMessageReference(n,o),typeof r=="string"){let a=this._messageRegistry.get(o);a&&a.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let n=this._document.querySelectorAll(`[${ig}="${this._id}"]`);for(let r=0;rs.indexOf(LL)!=0);n.setAttribute("aria-describedby",r.join(" "))}_addMessageReference(n,r){let s=this._messageRegistry.get(r);VC(n,"aria-describedby",s.messageElement.id),n.setAttribute(ig,this._id),s.referenceCount++}_removeMessageReference(n,r){let s=this._messageRegistry.get(r);s.referenceCount--,cg(n,"aria-describedby",s.messageElement.id),n.removeAttribute(ig)}_isElementDescribedByMessage(n,r){let s=og(n,"aria-describedby"),o=this._messageRegistry.get(r),a=o&&o.messageElement.id;return!!a&&s.indexOf(a)!=-1}_canBeDescribed(n,r){if(!this._isElementNode(n))return!1;if(r&&typeof r=="object")return!0;let s=r==null?"":`${r}`.trim(),o=n.getAttribute("aria-label");return s?!o||o.trim()!==s:!1}_isElementNode(n){return n.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(r){return new(r||e)(V(Fe),V(xt))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function NC(t,e){return typeof t=="string"?`${e||""}/${t}`:t}function SL(t,e){t.id||(t.id=`${LL}-${e}-${PC++}`)}var UC=class{constructor(e,i){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new ye,this._typeaheadSubscription=tt.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=n=>n.disabled,this._pressedLetters=[],this.tabOut=new ye,this.change=new ye,e instanceof il?this._itemChangesSubscription=e.changes.subscribe(n=>this._itemsChanged(n.toArray())):Yp(e)&&(this._effectRef=H1(()=>this._itemsChanged(e()),{injector:i}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(mt(i=>this._pressedLetters.push(i)),dr(e),et(()=>this._pressedLetters.length>0),ve(()=>this._pressedLetters.join(""))).subscribe(i=>{let n=this._getItemsArray();for(let r=1;r!e[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(i){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let s=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(s>0?s:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let s=this._activeItemIndex+this._pageUpAndDown.delta,o=this._getItemsArray().length;this._setActiveItemByIndex(s=65&&i<=90||i>=48&&i<=57)&&this._letterKeyStream.next(String.fromCharCode(i)));return}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){let i=this._getItemsArray(),n=typeof e=="number"?e:i.indexOf(e),r=i[n];this._activeItem=r??null,this._activeItemIndex=n}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){let i=this._getItemsArray();for(let n=1;n<=i.length;n++){let r=(this._activeItemIndex+e*n+i.length)%i.length,s=i[r];if(!this._skipPredicateFn(s)){this.setActiveItem(r);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,i){let n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(e+=i,!n[e])return;this.setActiveItem(e)}}_getItemsArray(){return Yp(this._items)?this._items():this._items instanceof il?this._items.toArray():this._items}_itemsChanged(e){if(this._activeItem){let i=e.indexOf(this._activeItem);i>-1&&i!==this._activeItemIndex&&(this._activeItemIndex=i)}}},ag=class extends UC{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}};var nq=(()=>{let e=class e{constructor(n){this._platform=n}isDisabled(n){return n.hasAttribute("disabled")}isVisible(n){return rq(n)&&getComputedStyle(n).visibility==="visible"}isTabbable(n){if(!this._platform.isBrowser)return!1;let r=iq(hq(n));if(r&&(IL(r)===-1||!this.isVisible(r)))return!1;let s=n.nodeName.toLowerCase(),o=IL(n);return n.hasAttribute("contenteditable")?o!==-1:s==="iframe"||s==="object"||this._platform.WEBKIT&&this._platform.IOS&&!uq(n)?!1:s==="audio"?n.hasAttribute("controls")?o!==-1:!1:s==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||n.hasAttribute("controls"):n.tabIndex>=0}isFocusable(n,r){return dq(n)&&!this.isDisabled(n)&&(r?.ignoreVisibility||this.isVisible(n))}};e.\u0275fac=function(r){return new(r||e)(V(xt))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function iq(t){try{return t.frameElement}catch{return null}}function rq(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function sq(t){let e=t.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function oq(t){return lq(t)&&t.type=="hidden"}function aq(t){return cq(t)&&t.hasAttribute("href")}function lq(t){return t.nodeName.toLowerCase()=="input"}function cq(t){return t.nodeName.toLowerCase()=="a"}function NL(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let e=t.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function IL(t){if(!NL(t))return null;let e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function uq(t){let e=t.nodeName.toLowerCase(),i=e==="input"&&t.type;return i==="text"||i==="password"||e==="select"||e==="textarea"}function dq(t){return oq(t)?!1:sq(t)||aq(t)||t.hasAttribute("contenteditable")||NL(t)}function hq(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var $C=class{get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}constructor(e,i,n,r,s=!1,o){this._element=e,this._checker=i,this._ngZone=n,this._document=r,this._injector=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}destroy(){let e=this._startAnchor,i=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),i&&(i.removeEventListener("focus",this.endAnchorListener),i.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let i=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?i.length?i[0]:this._getFirstTabbableElement(this._element):i.length?i[i.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let i=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(i){if(!this._checker.isFocusable(i)){let n=this._getFirstTabbableElement(i);return n?.focus(e),!!n}return i.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let i=this._getRegionBoundary("start");return i&&i.focus(e),!!i}focusLastTabbableElement(e){let i=this._getRegionBoundary("end");return i&&i.focus(e),!!i}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let i=e.children;for(let n=0;n=0;n--){let r=i[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(i[n]):null;if(r)return r}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,i){e?i.setAttribute("tabindex","0"):i.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?this._injector?ti(e,{injector:this._injector}):e():this._ngZone.onStable.pipe(St(1)).subscribe(e)}},fq=(()=>{let e=class e{constructor(n,r,s){this._checker=n,this._ngZone=r,this._injector=Y(It),this._document=s}create(n,r=!1){return new $C(n,this._checker,this._ngZone,this._document,r,this._injector)}};e.\u0275fac=function(r){return new(r||e)(V(nq),V(be),V(Fe))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),FL=(()=>{let e=class e{get enabled(){return this.focusTrap?.enabled||!1}set enabled(n){this.focusTrap&&(this.focusTrap.enabled=n)}constructor(n,r,s){this._elementRef=n,this._focusTrapFactory=r,this._previouslyFocusedElement=null,Y(xt).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(n){let r=n.autoCapture;r&&!r.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=OC(),this.focusTrap?.focusInitialElementWhenReady()}};e.\u0275fac=function(r){return new(r||e)(F(xe),F(fq),F(Fe))},e.\u0275dir=Me({type:e,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",Ne],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",Ne]},exportAs:["cdkTrapFocus"],standalone:!0,features:[gt,Mt]});let t=e;return t})();function BC(t){return t.buttons===0||t.detail===0}function jC(t){let e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var mq=new Q("cdk-input-modality-detector-options"),pq={ignoreKeys:[18,17,224,91,16]},PL=650,cu=Ri({passive:!0,capture:!0}),gq=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(n,r,s,o){this._platform=n,this._mostRecentTarget=null,this._modality=new tn(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(l=>l===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Zi(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs{if(jC(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Zi(a)},this._options=Z(Z({},pq),o),this.modalityDetected=this._modality.pipe(ld(1)),this.modalityChanged=this.modalityDetected.pipe($r()),n.isBrowser&&r.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,cu),s.addEventListener("mousedown",this._onMousedown,cu),s.addEventListener("touchstart",this._onTouchstart,cu)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,cu),document.removeEventListener("mousedown",this._onMousedown,cu),document.removeEventListener("touchstart",this._onTouchstart,cu))}};e.\u0275fac=function(r){return new(r||e)(V(xt),V(be),V(Fe),V(mq,8))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),_q=new Q("liveAnnouncerElement",{providedIn:"root",factory:vq});function vq(){return null}var bq=new Q("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),yq=0,UL=(()=>{let e=class e{constructor(n,r,s,o){this._ngZone=r,this._defaultOptions=o,this._document=s,this._liveElement=n||this._createLiveElement()}announce(n,...r){let s=this._defaultOptions,o,a;return r.length===1&&typeof r[0]=="number"?a=r[0]:[o,a]=r,this.clear(),clearTimeout(this._previousTimeout),o||(o=s&&s.politeness?s.politeness:"polite"),a==null&&s&&(a=s.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(l=>this._currentResolve=l)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=n,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let n="cdk-live-announcer-element",r=this._document.getElementsByClassName(n),s=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let s=0;s{let e=class e{constructor(n,r,s,o,a){this._ngZone=n,this._platform=r,this._inputModalityDetector=s,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new ye,this._rootNodeFocusAndBlurListener=l=>{let c=Zi(l);for(let u=c;u;u=u.parentElement)l.type==="focus"?this._onFocus(l,u):this._onBlur(l,u)},this._document=o,this._detectionMode=a?.detectionMode||sg.IMMEDIATE}monitor(n,r=!1){let s=wr(n);if(!this._platform.isBrowser||s.nodeType!==1)return de();let o=wL(s)||this._getDocument(),a=this._elementInfo.get(s);if(a)return r&&(a.checkChildren=!0),a.subject;let l={checkChildren:r,subject:new ye,rootNode:o};return this._elementInfo.set(s,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(n){let r=wr(n),s=this._elementInfo.get(r);s&&(s.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(s))}focusVia(n,r,s){let o=wr(n),a=this._getDocument().activeElement;o===a?this._getClosestElementsInfo(o).forEach(([l,c])=>this._originChanged(l,r,c)):(this._setOrigin(r),typeof o.focus=="function"&&o.focus(s))}ngOnDestroy(){this._elementInfo.forEach((n,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:n&&this._isLastInteractionFromInputLabel(n)?"mouse":"program"}_shouldBeAttributedToTouch(n){return this._detectionMode===sg.EVENTUAL||!!n?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(n,r){n.classList.toggle("cdk-focused",!!r),n.classList.toggle("cdk-touch-focused",r==="touch"),n.classList.toggle("cdk-keyboard-focused",r==="keyboard"),n.classList.toggle("cdk-mouse-focused",r==="mouse"),n.classList.toggle("cdk-program-focused",r==="program")}_setOrigin(n,r=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=n,this._originFromTouchInteraction=n==="touch"&&r,this._detectionMode===sg.IMMEDIATE){clearTimeout(this._originTimeoutId);let s=this._originFromTouchInteraction?PL:1;this._originTimeoutId=setTimeout(()=>this._origin=null,s)}})}_onFocus(n,r){let s=this._elementInfo.get(r),o=Zi(n);!s||!s.checkChildren&&r!==o||this._originChanged(r,this._getFocusOrigin(o),s)}_onBlur(n,r){let s=this._elementInfo.get(r);!s||s.checkChildren&&n.relatedTarget instanceof Node&&r.contains(n.relatedTarget)||(this._setClasses(r),this._emitOrigin(s,null))}_emitOrigin(n,r){n.subject.observers.length&&this._ngZone.run(()=>n.subject.next(r))}_registerGlobalListeners(n){if(!this._platform.isBrowser)return;let r=n.rootNode,s=this._rootNodeFocusListenerCount.get(r)||0;s||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,rg),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,rg)}),this._rootNodeFocusListenerCount.set(r,s+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ft(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(n){let r=n.rootNode;if(this._rootNodeFocusListenerCount.has(r)){let s=this._rootNodeFocusListenerCount.get(r);s>1?this._rootNodeFocusListenerCount.set(r,s-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,rg),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,rg),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(n,r,s){this._setClasses(n,r),this._emitOrigin(s,r),this._lastFocusOrigin=r}_getClosestElementsInfo(n){let r=[];return this._elementInfo.forEach((s,o)=>{(o===n||s.checkChildren&&o.contains(n))&&r.push([o,s])}),r}_isLastInteractionFromInputLabel(n){let{_mostRecentTarget:r,mostRecentModality:s}=this._inputModalityDetector;if(s!=="mouse"||!r||r===n||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA"||n.disabled)return!1;let o=n.labels;if(o){for(let a=0;a{let e=class e{constructor(n,r){this._elementRef=n,this._focusMonitor=r,this._focusOrigin=null,this.cdkFocusChange=new se}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let n=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(n,n.nodeType===1&&n.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(r=>{this._focusOrigin=r,this.cdkFocusChange.emit(r)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(F(xe),F(qr))},e.\u0275dir=Me({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0});let t=e;return t})(),yl=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t}(yl||{}),ML="cdk-high-contrast-black-on-white",DL="cdk-high-contrast-white-on-black",FC="cdk-high-contrast-active",HC=(()=>{let e=class e{constructor(n,r){this._platform=n,this._document=r,this._breakpointSubscription=Y(EL).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return yl.NONE;let n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);let r=this._document.defaultView||window,s=r&&r.getComputedStyle?r.getComputedStyle(n):null,o=(s&&s.backgroundColor||"").replace(/ /g,"");switch(n.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return yl.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return yl.BLACK_ON_WHITE}return yl.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let n=this._document.body.classList;n.remove(FC,ML,DL),this._hasCheckedHighContrastMode=!0;let r=this.getHighContrastMode();r===yl.BLACK_ON_WHITE?n.add(FC,ML):r===yl.WHITE_ON_BLACK&&n.add(FC,DL)}}};e.\u0275fac=function(r){return new(r||e)(V(xt),V(Fe))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ug=(()=>{let e=class e{constructor(n){n._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(r){return new(r||e)(V(HC))},e.\u0275mod=ce({type:e}),e.\u0275inj=le({imports:[ng]});let t=e;return t})();var Cq=new Q("cdk-dir-doc",{providedIn:"root",factory:xq});function xq(){return Y(Fe)}var Eq=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Sq(t){let e=t?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?Eq.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var Ji=(()=>{let e=class e{constructor(n){if(this.value="ltr",this.change=new se,n){let r=n.body?n.body.dir:null,s=n.documentElement?n.documentElement.dir:null;this.value=Sq(r||s||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(r){return new(r||e)(V(Cq,8))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var ua=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({});let t=e;return t})();var Iq=["text"],Mq=[[["mat-icon"]],"*"],Dq=["mat-icon","*"];function kq(t,e){if(t&1&&ue(0,"mat-pseudo-checkbox",1),t&2){let i=te();K("disabled",i.disabled)("state",i.selected?"checked":"unchecked")}}function Tq(t,e){if(t&1&&ue(0,"mat-pseudo-checkbox",3),t&2){let i=te();K("disabled",i.disabled)}}function Aq(t,e){if(t&1&&(O(0,"span",4),B(1),N()),t&2){let i=te();$(),at("(",i.group.label,")")}}var Rq=["mat-internal-form-field",""],Lq=["*"];function Oq(){return!0}var Nq=new Q("mat-sanity-checks",{providedIn:"root",factory:Oq}),Pe=(()=>{let e=class e{constructor(n,r,s){this._sanityChecks=r,this._document=s,this._hasDoneGlobalChecks=!1,n._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(n){return dh()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[n]}};e.\u0275fac=function(r){return new(r||e)(V(HC),V(Nq,8),V(Fe))},e.\u0275mod=ce({type:e}),e.\u0275inj=le({imports:[ua,ua]});let t=e;return t})();var xl=class{constructor(e,i,n,r,s){this._defaultMatcher=e,this.ngControl=i,this._parentFormGroup=n,this._parentForm=r,this._stateChanges=s,this.errorState=!1}updateErrorState(){let e=this.errorState,i=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,s=n?.isErrorState(r,i)??!1;s!==e&&(this.errorState=s,this._stateChanges.next())}};var VL=new Q("MAT_DATE_LOCALE",{providedIn:"root",factory:Fq});function Fq(){return Y($c)}var Li=class{constructor(){this._localeChanges=new ye,this.localeChanges=this._localeChanges}getValidDateOrNull(e){return this.isDateInstance(e)&&this.isValid(e)?e:null}deserialize(e){return e==null||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()}setLocale(e){this.locale=e,this._localeChanges.next()}compareDate(e,i){return this.getYear(e)-this.getYear(i)||this.getMonth(e)-this.getMonth(i)||this.getDate(e)-this.getDate(i)}sameDate(e,i){if(e&&i){let n=this.isValid(e),r=this.isValid(i);return n&&r?!this.compareDate(e,i):n==r}return e==i}clampDate(e,i,n){return i&&this.compareDate(e,i)<0?i:n&&this.compareDate(e,n)>0?n:e}},fu=new Q("mat-date-formats"),Pq=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function zC(t,e){let i=Array(t);for(let n=0;n{let e=class e extends Li{constructor(n){super(),this.useUtcForDisplay=!1,this._matDateLocale=Y(VL,{optional:!0}),n!==void 0&&(this._matDateLocale=n),super.setLocale(this._matDateLocale)}getYear(n){return n.getFullYear()}getMonth(n){return n.getMonth()}getDate(n){return n.getDate()}getDayOfWeek(n){return n.getDay()}getMonthNames(n){let r=new Intl.DateTimeFormat(this.locale,{month:n,timeZone:"utc"});return zC(12,s=>this._format(r,new Date(2017,s,1)))}getDateNames(){let n=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return zC(31,r=>this._format(n,new Date(2017,0,r+1)))}getDayOfWeekNames(n){let r=new Intl.DateTimeFormat(this.locale,{weekday:n,timeZone:"utc"});return zC(7,s=>this._format(r,new Date(2017,0,s+1)))}getYearName(n){let r=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(r,n)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(n){return this.getDate(this._createDateWithOverflow(this.getYear(n),this.getMonth(n)+1,0))}clone(n){return new Date(n.getTime())}createDate(n,r,s){let o=this._createDateWithOverflow(n,r,s);return o.getMonth()!=r,o}today(){return new Date}parse(n,r){return typeof n=="number"?new Date(n):n?new Date(Date.parse(n)):null}format(n,r){if(!this.isValid(n))throw Error("NativeDateAdapter: Cannot format invalid date.");let s=new Intl.DateTimeFormat(this.locale,We(Z({},r),{timeZone:"utc"}));return this._format(s,n)}addCalendarYears(n,r){return this.addCalendarMonths(n,r*12)}addCalendarMonths(n,r){let s=this._createDateWithOverflow(this.getYear(n),this.getMonth(n)+r,this.getDate(n));return this.getMonth(s)!=((this.getMonth(n)+r)%12+12)%12&&(s=this._createDateWithOverflow(this.getYear(s),this.getMonth(s),0)),s}addCalendarDays(n,r){return this._createDateWithOverflow(this.getYear(n),this.getMonth(n),this.getDate(n)+r)}toIso8601(n){return[n.getUTCFullYear(),this._2digit(n.getUTCMonth()+1),this._2digit(n.getUTCDate())].join("-")}deserialize(n){if(typeof n=="string"){if(!n)return null;if(Pq.test(n)){let r=new Date(n);if(this.isValid(r))return r}}return super.deserialize(n)}isDateInstance(n){return n instanceof Date}isValid(n){return!isNaN(n.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(n,r,s){let o=new Date;return o.setFullYear(n,r,s),o.setHours(0,0,0,0),o}_2digit(n){return("00"+n).slice(-2)}_format(n,r){let s=new Date;return s.setUTCFullYear(r.getFullYear(),r.getMonth(),r.getDate()),s.setUTCHours(r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()),n.format(s)}};e.\u0275fac=function(r){return new(r||e)(V(VL,8))},e.\u0275prov=J({token:e,factory:e.\u0275fac});let t=e;return t})(),$q={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};var ZC=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({providers:[Vq()]});let t=e;return t})();function Vq(t=$q){return[{provide:Li,useClass:Uq},{provide:fu,useValue:t}]}var gh=(()=>{let e=class e{isErrorState(n,r){return!!(n&&n.invalid&&(n.touched||r&&r.submitted))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var er=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(er||{}),GC=class{constructor(e,i,n,r=!1){this._renderer=e,this.element=i,this.config=n,this._animationForciblyDisabledThroughCss=r,this.state=er.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},BL=Ri({passive:!0,capture:!0}),YC=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let i=Zi(e);i&&this._events.get(e.type)?.forEach((n,r)=>{(r===i||r.contains(i))&&n.forEach(s=>s.handleEvent(e))})}}addHandler(e,i,n,r){let s=this._events.get(i);if(s){let o=s.get(n);o?o.add(r):s.set(n,new Set([r]))}else this._events.set(i,new Map([[n,new Set([r])]])),e.runOutsideAngular(()=>{document.addEventListener(i,this._delegateEventHandler,BL)})}removeHandler(e,i,n){let r=this._events.get(e);if(!r)return;let s=r.get(i);s&&(s.delete(n),s.size===0&&r.delete(i),r.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,BL)))}},jL={enterDuration:225,exitDuration:150},Bq=800,HL=Ri({passive:!0,capture:!0}),zL=["mousedown","touchstart"],WL=["mouseup","mouseleave","touchend","touchcancel"],ph=class ph{constructor(e,i,n,r){this._target=e,this._ngZone=i,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=wr(n))}fadeInRipple(e,i,n={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Z(Z({},jL),n.animation);n.centered&&(e=r.left+r.width/2,i=r.top+r.height/2);let o=n.radius||jq(e,i,r),a=e-r.left,l=i-r.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=`${a-o}px`,u.style.top=`${l-o}px`,u.style.height=`${o*2}px`,u.style.width=`${o*2}px`,n.color!=null&&(u.style.backgroundColor=n.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);let d=window.getComputedStyle(u),h=d.transitionProperty,f=d.transitionDuration,m=h==="none"||f==="0s"||f==="0s, 0s"||r.width===0&&r.height===0,p=new GC(this,u,n,m);u.style.transform="scale3d(1, 1, 1)",p.state=er.FADING_IN,n.persistent||(this._mostRecentTransientRipple=p);let g=null;return!m&&(c||s.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let w=()=>this._finishRippleTransition(p),C=()=>this._destroyRipple(p);u.addEventListener("transitionend",w),u.addEventListener("transitioncancel",C),g={onTransitionEnd:w,onTransitionCancel:C}}),this._activeRipples.set(p,g),(m||!c)&&this._finishRippleTransition(p),p}fadeOutRipple(e){if(e.state===er.FADING_OUT||e.state===er.HIDDEN)return;let i=e.element,n=Z(Z({},jL),e.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",e.state=er.FADING_OUT,(e._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let i=wr(e);!this._platform.isBrowser||!i||i===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=i,zL.forEach(n=>{ph._eventManager.addHandler(this._ngZone,n,i,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{WL.forEach(i=>{this._triggerElement.addEventListener(i,this,HL)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===er.FADING_IN?this._startFadeOutTransition(e):e.state===er.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let i=e===this._mostRecentTransientRipple,{persistent:n}=e.config;e.state=er.VISIBLE,!n&&(!i||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let i=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=er.HIDDEN,i!==null&&(e.element.removeEventListener("transitionend",i.onTransitionEnd),e.element.removeEventListener("transitioncancel",i.onTransitionCancel)),e.element.remove()}_onMousedown(e){let i=BC(e),n=this._lastTouchStartEvent&&Date.now(){let i=e.state===er.VISIBLE||e.config.terminateOnPointerUp&&e.state===er.FADING_IN;!e.config.persistent&&i&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(zL.forEach(i=>ph._eventManager.removeHandler(i,e,this)),this._pointerUpEventsRegistered&&(WL.forEach(i=>e.removeEventListener(i,this,HL)),this._pointerUpEventsRegistered=!1))}};ph._eventManager=new YC;var KC=ph;function jq(t,e,i){let n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),r=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+r*r)}var fg=new Q("mat-ripple-global-options"),tr=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(n){this._trigger=n,this._setupTriggerEventsIfEnabled()}constructor(n,r,s,o,a){this._elementRef=n,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new KC(this,r,n,s)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Z(Z(Z({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(n,r=0,s){return typeof n=="number"?this._rippleRenderer.fadeInRipple(n,r,Z(Z({},this.rippleConfig),s)):this._rippleRenderer.fadeInRipple(0,0,Z(Z({},this.rippleConfig),n))}};e.\u0275fac=function(r){return new(r||e)(F(xe),F(be),F(xt),F(fg,8),F(cn,8))},e.\u0275dir=Me({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(r,s){r&2&&Ae("mat-ripple-unbounded",s.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let t=e;return t})(),uo=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({imports:[Pe,Pe]});let t=e;return t})(),Hq=(()=>{let e=class e{constructor(n){this._animationMode=n,this.state="unchecked",this.disabled=!1,this.appearance="full"}};e.\u0275fac=function(r){return new(r||e)(F(cn,8))},e.\u0275cmp=Ee({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(r,s){r&2&&Ae("mat-pseudo-checkbox-indeterminate",s.state==="indeterminate")("mat-pseudo-checkbox-checked",s.state==="checked")("mat-pseudo-checkbox-disabled",s.disabled)("mat-pseudo-checkbox-minimal",s.appearance==="minimal")("mat-pseudo-checkbox-full",s.appearance==="full")("_mat-animation-noopable",s._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[Ge],decls:0,vars:0,template:function(r,s){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0});let t=e;return t})(),zq=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({imports:[Pe]});let t=e;return t})(),mg=new Q("MAT_OPTION_PARENT_COMPONENT");var pg=new Q("MatOptgroup");var Wq=0,hg=class{constructor(e,i=!1){this.source=e,this.isUserInput=i}},Gr=(()=>{let e=class e{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(n){this._disabled=n}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(n,r,s,o){this._element=n,this._changeDetectorRef=r,this._parent=s,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${Wq++}`,this.onSelectionChange=new se,this._stateChanges=new ye}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(n=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),n&&this._emitSelectionChangeEvent())}deselect(n=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),n&&this._emitSelectionChangeEvent())}focus(n,r){let s=this._getHostElement();typeof s.focus=="function"&&s.focus(r)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(n){(n.keyCode===13||n.keyCode===32)&&!Qi(n)&&(this._selectViaInteraction(),n.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let n=this.viewValue;n!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=n)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(n=!1){this.onSelectionChange.emit(new hg(this,n))}};e.\u0275fac=function(r){return new(r||e)(F(xe),F(Ye),F(mg,8),F(pg,8))},e.\u0275cmp=Ee({type:e,selectors:[["mat-option"]],viewQuery:function(r,s){if(r&1&&it(Iq,7),r&2){let o;Le(o=Oe())&&(s._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(r,s){r&1&&oe("click",function(){return s._selectViaInteraction()})("keydown",function(a){return s._handleKeydown(a)}),r&2&&(Wi("id",s.id),Re("aria-selected",s.selected)("aria-disabled",s.disabled.toString()),Ae("mdc-list-item--selected",s.selected)("mat-mdc-option-multiple",s.multiple)("mat-mdc-option-active",s.active)("mdc-list-item--disabled",s.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",Ne]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[gt,Ge],ngContentSelectors:Dq,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(r,s){r&1&&(bt(Mq),he(0,kq,1,2,"mat-pseudo-checkbox",1),ze(1),O(2,"span",2,0),ze(4,1),N(),he(5,Tq,1,1,"mat-pseudo-checkbox",3)(6,Aq,2,1,"span",4),ue(7,"div",5)),r&2&&(ut(s.multiple?0:-1),$(5),ut(!s.multiple&&s.selected&&!s.hideSingleSelectionIndicator?5:-1),$(),ut(s.group&&s.group._inert?6:-1),$(),K("matRippleTrigger",s._getHostElement())("matRippleDisabled",s.disabled||s.disableRipple))},dependencies:[Hq,tr],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight)}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color);outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let t=e;return t})();function QC(t,e,i){if(i.length){let n=e.toArray(),r=i.toArray(),s=0;for(let o=0;oi+n?Math.max(0,t-n+e):i}var mu=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({imports:[uo,Pe,zq]});let t=e;return t})(),qL={capture:!0},GL=["focus","mousedown","mouseenter","touchstart"],WC="mat-ripple-loader-uninitialized",qC="mat-ripple-loader-class-name",YL="mat-ripple-loader-centered",dg="mat-ripple-loader-disabled",KL=(()=>{let e=class e{constructor(){this._document=Y(Fe,{optional:!0}),this._animationMode=Y(cn,{optional:!0}),this._globalRippleOptions=Y(fg,{optional:!0}),this._platform=Y(xt),this._ngZone=Y(be),this._hosts=new Map,this._onInteraction=n=>{let r=Zi(n);if(r instanceof HTMLElement){let s=r.closest(`[${WC}="${this._globalRippleOptions?.namespace??""}"]`);s&&this._createRipple(s)}},this._ngZone.runOutsideAngular(()=>{for(let n of GL)this._document?.addEventListener(n,this._onInteraction,qL)})}ngOnDestroy(){let n=this._hosts.keys();for(let r of n)this.destroyRipple(r);for(let r of GL)this._document?.removeEventListener(r,this._onInteraction,qL)}configureRipple(n,r){n.setAttribute(WC,this._globalRippleOptions?.namespace??""),(r.className||!n.hasAttribute(qC))&&n.setAttribute(qC,r.className||""),r.centered&&n.setAttribute(YL,""),r.disabled&&n.setAttribute(dg,"")}getRipple(n){return this._hosts.get(n)||this._createRipple(n)}setDisabled(n,r){let s=this._hosts.get(n);if(s){s.disabled=r;return}r?n.setAttribute(dg,""):n.removeAttribute(dg)}_createRipple(n){if(!this._document)return;let r=this._hosts.get(n);if(r)return r;n.querySelector(".mat-ripple")?.remove();let s=this._document.createElement("span");s.classList.add("mat-ripple",n.getAttribute(qC)),n.append(s);let o=new tr(new xe(s),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return o._isInitialized=!0,o.trigger=n,o.centered=n.hasAttribute(YL),o.disabled=n.hasAttribute(dg),this.attachRipple(n,o),o}attachRipple(n,r){n.removeAttribute(WC),this._hosts.set(n,r)}destroyRipple(n){let r=this._hosts.get(n);r&&(r.ngOnDestroy(),this._hosts.delete(n))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),pu=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ee({type:e,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(r,s){r&2&&Ae("mdc-form-field--align-end",s.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[Ge],attrs:Rq,ngContentSelectors:Lq,decls:1,vars:0,template:function(r,s){r&1&&(bt(),ze(0))},styles:[".mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0});let t=e;return t})();var qq=["*"],gg;function Gq(){if(gg===void 0&&(gg=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(gg=t.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return gg}function vh(t){return Gq()?.createHTML(t)||t}function ZL(t){return Error(`Unable to find icon with the name "${t}"`)}function Yq(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function QL(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function XL(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var ho=class{constructor(e,i,n){this.url=e,this.svgText=i,this.options=n}},Kq=(()=>{let e=class e{constructor(n,r,s,o){this._httpClient=n,this._sanitizer=r,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=s}addSvgIcon(n,r,s){return this.addSvgIconInNamespace("",n,r,s)}addSvgIconLiteral(n,r,s){return this.addSvgIconLiteralInNamespace("",n,r,s)}addSvgIconInNamespace(n,r,s,o){return this._addSvgIconConfig(n,r,new ho(s,null,o))}addSvgIconResolver(n){return this._resolvers.push(n),this}addSvgIconLiteralInNamespace(n,r,s,o){let a=this._sanitizer.sanitize(Sn.HTML,s);if(!a)throw XL(s);let l=vh(a);return this._addSvgIconConfig(n,r,new ho("",l,o))}addSvgIconSet(n,r){return this.addSvgIconSetInNamespace("",n,r)}addSvgIconSetLiteral(n,r){return this.addSvgIconSetLiteralInNamespace("",n,r)}addSvgIconSetInNamespace(n,r,s){return this._addSvgIconSetConfig(n,new ho(r,null,s))}addSvgIconSetLiteralInNamespace(n,r,s){let o=this._sanitizer.sanitize(Sn.HTML,r);if(!o)throw XL(r);let a=vh(o);return this._addSvgIconSetConfig(n,new ho("",a,s))}registerFontClassAlias(n,r=n){return this._fontCssClassesByAlias.set(n,r),this}classNameForFontAlias(n){return this._fontCssClassesByAlias.get(n)||n}setDefaultFontSetClass(...n){return this._defaultFontSetClass=n,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(n){let r=this._sanitizer.sanitize(Sn.RESOURCE_URL,n);if(!r)throw QL(n);let s=this._cachedIconsByUrl.get(r);return s?de(_g(s)):this._loadSvgIconFromConfig(new ho(n,null)).pipe(mt(o=>this._cachedIconsByUrl.set(r,o)),ve(o=>_g(o)))}getNamedSvgIcon(n,r=""){let s=JL(r,n),o=this._svgIconConfigs.get(s);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(r,n),o)return this._svgIconConfigs.set(s,o),this._getSvgFromConfig(o);let a=this._iconSetConfigs.get(r);return a?this._getSvgFromIconSetConfigs(n,a):Tn(ZL(s))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(n){return n.svgText?de(_g(this._svgElementFromConfig(n))):this._loadSvgIconFromConfig(n).pipe(ve(r=>_g(r)))}_getSvgFromIconSetConfigs(n,r){let s=this._extractIconWithNameFromAnySet(n,r);if(s)return de(s);let o=r.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(wn(l=>{let u=`Loading icon set URL: ${this._sanitizer.sanitize(Sn.RESOURCE_URL,a.url)} failed: ${l.message}`;return this._errorHandler.handleError(new Error(u)),de(null)})));return Ha(o).pipe(ve(()=>{let a=this._extractIconWithNameFromAnySet(n,r);if(!a)throw ZL(n);return a}))}_extractIconWithNameFromAnySet(n,r){for(let s=r.length-1;s>=0;s--){let o=r[s];if(o.svgText&&o.svgText.toString().indexOf(n)>-1){let a=this._svgElementFromConfig(o),l=this._extractSvgIconFromSet(a,n,o.options);if(l)return l}}return null}_loadSvgIconFromConfig(n){return this._fetchIcon(n).pipe(mt(r=>n.svgText=r),ve(()=>this._svgElementFromConfig(n)))}_loadSvgIconSetFromConfig(n){return n.svgText?de(null):this._fetchIcon(n).pipe(mt(r=>n.svgText=r))}_extractSvgIconFromSet(n,r,s){let o=n.querySelector(`[id="${r}"]`);if(!o)return null;let a=o.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,s);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),s);let l=this._svgElementFromString(vh(""));return l.appendChild(a),this._setSvgAttributes(l,s)}_svgElementFromString(n){let r=this._document.createElement("DIV");r.innerHTML=n;let s=r.querySelector("svg");if(!s)throw Error(" tag not found");return s}_toSvgElement(n){let r=this._svgElementFromString(vh("")),s=n.attributes;for(let o=0;ovh(u)),as(()=>this._inProgressUrlFetches.delete(a)),ad());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(n,r,s){return this._svgIconConfigs.set(JL(n,r),s),this}_addSvgIconSetConfig(n,r){let s=this._iconSetConfigs.get(n);return s?s.push(r):this._iconSetConfigs.set(n,[r]),this}_svgElementFromConfig(n){if(!n.svgElement){let r=this._svgElementFromString(n.svgText);this._setSvgAttributes(r,n.options),n.svgElement=r}return n.svgElement}_getIconConfigFromResolvers(n,r){for(let s=0;se?e.pathname+e.search:""}}var eO=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],eG=eO.map(t=>`[${t}]`).join(", "),tG=/^url\(['"]?#(.*?)['"]?\)$/,ws=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(n){this._color=n}get svgIcon(){return this._svgIcon}set svgIcon(n){n!==this._svgIcon&&(n?this._updateSvgIcon(n):this._svgIcon&&this._clearSvgElement(),this._svgIcon=n)}get fontSet(){return this._fontSet}set fontSet(n){let r=this._cleanupFontValue(n);r!==this._fontSet&&(this._fontSet=r,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(n){let r=this._cleanupFontValue(n);r!==this._fontIcon&&(this._fontIcon=r,this._updateFontIconClasses())}constructor(n,r,s,o,a,l){this._elementRef=n,this._iconRegistry=r,this._location=o,this._errorHandler=a,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=tt.EMPTY,l&&(l.color&&(this.color=this._defaultColor=l.color),l.fontSet&&(this.fontSet=l.fontSet)),s||n.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(n){if(!n)return["",""];let r=n.split(":");switch(r.length){case 1:return["",r[0]];case 2:return r;default:throw Error(`Invalid icon name: "${n}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let n=this._elementsWithExternalReferences;if(n&&n.size){let r=this._location.getPathname();r!==this._previousPath&&(this._previousPath=r,this._prependPathToReferences(r))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(n){this._clearSvgElement();let r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(n),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(n)}_clearSvgElement(){let n=this._elementRef.nativeElement,r=n.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();r--;){let s=n.childNodes[r];(s.nodeType!==1||s.nodeName.toLowerCase()==="svg")&&s.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let n=this._elementRef.nativeElement,r=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(s=>s.length>0);this._previousFontSetClass.forEach(s=>n.classList.remove(s)),r.forEach(s=>n.classList.add(s)),this._previousFontSetClass=r,this.fontIcon!==this._previousFontIconClass&&!r.includes("mat-ligature-font")&&(this._previousFontIconClass&&n.classList.remove(this._previousFontIconClass),this.fontIcon&&n.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(n){return typeof n=="string"?n.trim().split(" ")[0]:n}_prependPathToReferences(n){let r=this._elementsWithExternalReferences;r&&r.forEach((s,o)=>{s.forEach(a=>{o.setAttribute(a.name,`url('${n}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(n){let r=n.querySelectorAll(eG),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{let l=r[o],c=l.getAttribute(a),u=c?c.match(tG):null;if(u){let d=s.get(l);d||(d=[],s.set(l,d)),d.push({name:a,value:u[1]})}})}_updateSvgIcon(n){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),n){let[r,s]=this._splitIconName(n);r&&(this._svgNamespace=r),s&&(this._svgName=s),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(s,r).pipe(St(1)).subscribe(o=>this._setSvgElement(o),o=>{let a=`Error retrieving icon ${r}:${s}! ${o.message}`;this._errorHandler.handleError(new Error(a))})}}};e.\u0275fac=function(r){return new(r||e)(F(xe),F(Kq),En("aria-hidden"),F(Xq),F(hi),F(Qq,8))},e.\u0275cmp=Ee({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(r,s){r&2&&(Re("data-mat-icon-type",s._usingFontIcon()?"font":"svg")("data-mat-icon-name",s._svgName||s.fontIcon)("data-mat-icon-namespace",s._svgNamespace||s.fontSet)("fontIcon",s._usingFontIcon()?s.fontIcon:null),In(s.color?"mat-"+s.color:""),Ae("mat-icon-inline",s.inline)("mat-icon-no-color",s.color!=="primary"&&s.color!=="accent"&&s.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",Ne],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[gt,Ge],ngContentSelectors:qq,decls:1,vars:0,template:function(r,s){r&1&&(bt(),ze(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0});let t=e;return t})(),bh=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({imports:[Pe,Pe]});let t=e;return t})();var tO=(()=>{let e=class e{constructor(n,r){this.version=su.version,n.setDefaultLang("de"),n.use(n.getBrowserLang());let s=location.origin;if(s==="http://localhost:4200")console.log("note: using local dev mag system for"+location.origin),r.changeFhirMicroService("http://localhost:8080/matchboxv3/fhir");else{let o=s+location.pathname+"fhir";r.changeFhirMicroService(o),console.log("fhir endpoint "+o)}}};e.\u0275fac=function(r){return new(r||e)(F(Y0),F(yr))},e.\u0275cmp=Ee({type:e,selectors:[["app-root"]],decls:43,vars:1,consts:[["routerLink","/",1,"logo-container"],["alt","Matchbox logo","height","40","src","assets/matchbox_logo_color.png","width","95"],[1,"version"],["routerLink","/"],["routerLink","/CapabilityStatement"],["routerLink","/igs"],["routerLink","/mappinglanguage"],["routerLink","/transform"],["routerLink","/validate"],["routerLink","/settings"],[1,"mat-typography"]],template:function(r,s){r&1&&(O(0,"header")(1,"div",0),ue(2,"img",1),O(3,"span",2),B(4),N()(),O(5,"nav")(6,"div",3)(7,"mat-icon"),B(8,"home"),N(),O(9,"span"),B(10,"Home"),N()(),O(11,"div",4)(12,"mat-icon"),B(13,"info"),N(),O(14,"span"),B(15,"CapabilityStatement"),N()(),O(16,"div",5)(17,"mat-icon"),B(18,"info"),N(),O(19,"span"),B(20,"IGs"),N()(),O(21,"div",6)(22,"mat-icon"),B(23,"search"),N(),O(24,"span"),B(25,"FHIR Mapping"),N()(),O(26,"div",7)(27,"mat-icon"),B(28,"transform"),N(),O(29,"span"),B(30,"Transform"),N()(),O(31,"div",8)(32,"mat-icon"),B(33,"rule"),N(),O(34,"span"),B(35,"Validate"),N()(),O(36,"div",9)(37,"mat-icon"),B(38,"settings"),N(),O(39,"span"),B(40,"Settings"),N()()()(),O(41,"main",10),ue(42,"router-outlet"),N()),r&2&&($(4),at("v",s.version,""))},dependencies:[ws,Xw,q0],styles:[".example-fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}mat-toolbar[_ngcontent-%COMP%]{padding-left:0}mat-toolbar[_ngcontent-%COMP%] .home-link[_ngcontent-%COMP%]{height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer}mat-toolbar[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%]{display:flex;height:100%;width:160px;justify-content:center;align-items:center}mat-toolbar[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:calc(100% - 1.2em)}header[_ngcontent-%COMP%]{background:#97d6ba;display:flex;flex-wrap:wrap;flex:0 1 auto;padding:10px 2em;justify-content:space-between}header[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%]{display:inline-block}header[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%] .version[_ngcontent-%COMP%]{color:#2e7d73;font-size:.9em;display:inline-block;margin:4px 0 0 10px;vertical-align:top}header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%]{display:flex;margin-top:10px}header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:inline-block;margin:0 1rem;cursor:pointer;color:#3d5c73}header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] div[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px;vertical-align:middle;color:#d2eade}main[_ngcontent-%COMP%]{width:100%;margin:0 auto}@media (max-width: 1140px){header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:0 7px}header[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] div[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px;font-size:18px;width:18px;height:18px}}"]});let t=e;return t})();var cO=ss(JC()),u_e=ss(ex()),d_e=ss(sO());var an=class t{constructor(e,i){this.operationOutcome=i,this.issues=e??[]}static fromOperationOutcome(e){let i=e.issue?.map(n=>wg.fromOoIssue(n));return new t(i,e)}static fromMatchboxError(e){let i=new t;return i.issues.push(new wg("fatal","matchbox",e,void 0,void 0,void 0,void 0)),i}},wg=class t{constructor(e,i,n,r,s,o,a){this.sliceInfo=[],this.severity=e,this.code=i,this.text=n,this.expression=r,this.line=s,this.col=o,this.sliceInfo=a??[]}static fromOoIssue(e){let i;e.expression&&e.expression.length?i=e.expression[0]:e.location&&e.location.length&&(i=e.location[0]);let n=e.diagnostics?.indexOf("Slice info: 1.)"),r,s=null;return n>=0?(r=e.diagnostics.substring(0,n).trimEnd(),s=e.diagnostics.substring(n+15).trimStart().split(/\d+[.][)]/)):r=e.diagnostics,new t(e.severity,e.code,r,i,t.getLineNo(e),t.getColNo(e),s)}static getLineNo(e){let i=t.getExtensionIntValue(e,"http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-line");return i&&i>0?i:void 0}static getColNo(e){let i=t.getExtensionIntValue(e,"http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-col");return i&&i>0?i:void 0}static getExtensionIntValue(e,i){if(e.extension){for(let n of e.extension)if(n.url===i)return n.valueInteger}}};var nG=["determinateSpinner"];function iG(t,e){if(t&1&&(xn(),O(0,"svg",11),ue(1,"circle",12),N()),t&2){let i=te();Re("viewBox",i._viewBox()),$(),Vn("stroke-dasharray",i._strokeCircumference(),"px")("stroke-dashoffset",i._strokeCircumference()/2,"px")("stroke-width",i._circleStrokeWidth(),"%"),Re("r",i._circleRadius())}}var rG=new Q("mat-progress-spinner-default-options",{providedIn:"root",factory:sG});function sG(){return{diameter:oO}}var oO=100,oG=10,da=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(n){this._color=n}constructor(n,r,s){this._elementRef=n,this._defaultColor="primary",this._value=0,this._diameter=oO,this._noopAnimations=r==="NoopAnimations"&&!!s&&!s._forceAnimations,this.mode=n.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",s&&(s.color&&(this.color=this._defaultColor=s.color),s.diameter&&(this.diameter=s.diameter),s.strokeWidth&&(this.strokeWidth=s.strokeWidth))}get value(){return this.mode==="determinate"?this._value:0}set value(n){this._value=Math.max(0,Math.min(100,n||0))}get diameter(){return this._diameter}set diameter(n){this._diameter=n||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(n){this._strokeWidth=n||0}_circleRadius(){return(this.diameter-oG)/2}_viewBox(){let n=this._circleRadius()*2+this.strokeWidth;return`0 0 ${n} ${n}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}};e.\u0275fac=function(r){return new(r||e)(F(xe),F(cn,8),F(rG))},e.\u0275cmp=Ee({type:e,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(r,s){if(r&1&&it(nG,5),r&2){let o;Le(o=Oe())&&(s._determinateCircle=o.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(r,s){r&2&&(Re("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",s.mode==="determinate"?s.value:null)("mode",s.mode),In("mat-"+s.color),Vn("width",s.diameter,"px")("height",s.diameter,"px")("--mdc-circular-progress-size",s.diameter+"px")("--mdc-circular-progress-active-indicator-width",s.diameter+"px"),Ae("_mat-animation-noopable",s._noopAnimations)("mdc-circular-progress--indeterminate",s.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",hn],diameter:[2,"diameter","diameter",hn],strokeWidth:[2,"strokeWidth","strokeWidth",hn]},exportAs:["matProgressSpinner"],standalone:!0,features:[gt,Ge],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(r,s){if(r&1&&(he(0,iG,2,8,"ng-template",null,0,cl),O(2,"div",2,1),xn(),O(4,"svg",3),ue(5,"circle",4),N()(),Yo(),O(6,"div",5)(7,"div",6)(8,"div",7),al(9,8),N(),O(10,"div",9),al(11,8),N(),O(12,"div",10),al(13,8),N()()()),r&2){let o=Mn(1);$(4),Re("viewBox",s._viewBox()),$(),Vn("stroke-dasharray",s._strokeCircumference(),"px")("stroke-dashoffset",s._strokeDashOffset(),"px")("stroke-width",s._circleStrokeWidth(),"%"),Re("r",s._circleRadius()),$(4),K("ngTemplateOutlet",o),$(2),K("ngTemplateOutlet",o),$(2),K("ngTemplateOutlet",o)}},dependencies:[v0],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0});let t=e;return t})();var wh=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({imports:[Wt,Pe]});let t=e;return t})();var aG=t=>({clickable:t});function lG(t,e){if(t&1&&(O(0,"li",8),B(1),N()),t&2){let i=e.$implicit;$(),at(" ",i," ")}}function cG(t,e){if(t&1&&(O(0,"ol"),he(1,lG,2,1,"li",7),N()),t&2){let i=te().$implicit;$(),K("ngForOf",i.sliceInfo)}}function uG(t,e){if(t&1){let i=lt();O(0,"li",3),oe("click",function(){let r=we(i).$implicit,s=te(2);return Ce(s.select.emit(r))}),O(1,"span",4),B(2),N(),ue(3,"span",5)(4,"br"),O(5,"p"),B(6),N(),he(7,cG,2,1,"ol",6),N()}if(t&2){let i=e.$implicit,n=te(2);Zp("issue ",i.severity,""),$(2),rt(i.severity),$(),K("innerHtml",n.getTemplateHeaderLine(i),sT),$(3),rt(i.text),$(),K("ngIf",i.sliceInfo.length)}}function dG(t,e){if(t&1&&(O(0,"ul",1),he(1,uG,8,7,"li",2),N()),t&2){let i=te();K("ngClass",ll(2,aG,i.reactsToClick)),$(),K("ngForOf",i.result.issues)}}var aO=["fatal","error","warning","information"],gu=(()=>{let e=class e{set operationResult(n){this.result=n,this.result&&this.result.issues.length&&this.result.issues.sort(e.sortIssues)}constructor(n){this.sanitized=n,this.select=new se,this.reactsToClick=!1}ngOnInit(){this.reactsToClick=this.select.observed}static sortIssues(n,r){let s=aO.indexOf(n.severity)-aO.indexOf(r.severity);return s!==0?s:(n.line??0)-(r.line??0)}getTemplateHeaderLine(n){let r="";n.code&&(r+=` [${n.code}]`),r+=": ";let s=[];return n.line&&s.push(`line ${n.line}`),n.col&&s.push(`column ${n.col}`),n.expression&&s.push(`in ${n.expression}`),s.length&&(r+=s.join(", ")+":"),this.sanitized.bypassSecurityTrustHtml(r)}};e.\u0275fac=function(r){return new(r||e)(F(hl))},e.\u0275cmp=Ee({type:e,selectors:[["app-operation-result"]],inputs:{operationResult:"operationResult"},outputs:{select:"select"},decls:1,vars:1,consts:[[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"class","click",4,"ngFor","ngForOf"],[3,"click"],[1,"severity"],[3,"innerHtml"],[4,"ngIf"],["class","slice",4,"ngFor","ngForOf"],[1,"slice"]],template:function(r,s){r&1&&he(0,dG,2,4,"ul",0),r&2&&K("ngIf",s.result)},dependencies:[vr,gs,Di],styles:[".card-maps[_ngcontent-%COMP%]{margin-bottom:10px}.app-ace-editor[_ngcontent-%COMP%]{border:2px solid #f8f9fa;box-shadow:0 .5rem 1rem #00000026}ul[_ngcontent-%COMP%]{list-style:none;padding:0}.clickable[_ngcontent-%COMP%] .issue[_ngcontent-%COMP%]{cursor:pointer}.issue[_ngcontent-%COMP%]{border:1px solid #e1e1e1;background:#fbfbfb;border-radius:5px;padding:5px 8px;--color: #000;border-left:4px solid var(--color);margin-bottom:4px}.issue[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:2px 0 0}.issue[_ngcontent-%COMP%] .severity[_ngcontent-%COMP%]{color:var(--color);font-weight:600}.issue.fatal[_ngcontent-%COMP%], .issue.error[_ngcontent-%COMP%]{--color: #d9534f}.issue.warning[_ngcontent-%COMP%]{--color: #f0ad4e}.issue.information[_ngcontent-%COMP%]{--color: #4ca8de}[_nghost-%COMP%] .issue .code{font-size:.9em;color:#636363}[_nghost-%COMP%] .issue>span>code{background:#e1e1e1;border-radius:4px;padding:2px 4px;font-family:courier,monospace} .ace-highlight-fatal{position:absolute;background:#c30;opacity:.4} .ace-highlight-error{position:absolute;background:#f96;opacity:.4} .ace-highlight-warning{position:absolute;background:#fc0;opacity:.4} .ace-highlight-information{position:absolute;background:#9c3;opacity:.4}"]});let t=e;return t})();function hG(t,e){t&1&&ue(0,"mat-spinner")}function fG(t,e){if(t&1&&ue(0,"app-operation-result",4),t&2){let i=te();K("operationResult",i.operationResult)}}var lO=4,uO=(()=>{let e=class e{constructor(n){this.data=n,this.capabilityStatement=null,this.operationResult=null,this.loading=!0,this.client=n.getFhirClient()}ngAfterViewInit(){this.client.capabilityStatement().then(n=>{this.loading=!1,this.operationResult=null,this.editor=cO.default.edit("code"),this.editor.setReadOnly(!0),this.editor.setValue(JSON.stringify(n,null,lO),-1),this.editor.getSession().setMode("ace/mode/json"),this.editor.setTheme("ace/theme/textmate"),this.editor.commands.removeCommand("find"),this.editor.setOptions({maxLines:1e4,tabSize:lO,wrap:!0,useWorker:!1}),this.editor.resize(!0)}).catch(n=>{console.error(n),this.loading=!1,this.capabilityStatement=null,this.editor&&(this.editor.destroy(),this.editor.container.remove()),this.editor=null,n.response?.data?this.operationResult=an.fromOperationOutcome(n.response.data):this.operationResult=an.fromMatchboxError(n.message)})}};e.\u0275fac=function(r){return new(r||e)(F(yr))},e.\u0275cmp=Ee({type:e,selectors:[["app-capability-statement"]],decls:10,vars:3,consts:[["id","capability-statement",1,"white-block"],[4,"ngIf"],["id","code"],[3,"operationResult",4,"ngIf"],[3,"operationResult"]],template:function(r,s){r&1&&(O(0,"div",0)(1,"h2"),B(2,"CapabilityStatement"),N(),O(3,"p"),B(4," CapabilityStatement of the server: "),O(5,"code"),B(6),N()(),he(7,hG,1,0,"mat-spinner",1),ue(8,"div",2),he(9,fG,1,1,"app-operation-result",3),N()),r&2&&($(6),rt(s.client.baseUrl),$(),K("ngIf",s.loading),$(2),K("ngIf",s.operationResult))},dependencies:[Di,da,gu]});let t=e;return t})();var mG=["*"];var pG=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],gG=["[mat-card-avatar], [matCardAvatar]",`mat-card-title, mat-card-subtitle, [mat-card-title], [mat-card-subtitle], [matCardTitle], [matCardSubtitle]`,"*"],_G=new Q("MAT_CARD_CONFIG"),_u=(()=>{let e=class e{constructor(n){this.appearance=n?.appearance||"raised"}};e.\u0275fac=function(r){return new(r||e)(F(_G,8))},e.\u0275cmp=Ee({type:e,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(r,s){r&2&&Ae("mat-mdc-card-outlined",s.appearance==="outlined")("mdc-card--outlined",s.appearance==="outlined")},inputs:{appearance:"appearance"},exportAs:["matCard"],standalone:!0,features:[Ge],ngContentSelectors:mG,decls:1,vars:0,template:function(r,s){r&1&&(bt(),ze(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{color:rgba(0, 0, 0, 0.6);flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mdc-card__action--icon:not(:disabled){color:rgba(0, 0, 0, 0.6)}.mat-mdc-card{border-radius:var(--mdc-elevated-card-container-shape);background-color:var(--mdc-elevated-card-container-color);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color);box-shadow:var(--mdc-elevated-card-container-elevation)}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape)}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width);border-style:solid;border-color:var(--mdc-outlined-card-outline-color);border-radius:var(--mdc-outlined-card-container-shape);background-color:var(--mdc-outlined-card-container-color);box-shadow:var(--mdc-outlined-card-container-elevation)}.mat-mdc-card-outlined .mdc-card::after{border-radius:var(--mdc-outlined-card-container-shape)}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font);line-height:var(--mat-card-title-text-line-height);font-size:var(--mat-card-title-text-size);letter-spacing:var(--mat-card-title-text-tracking);font-weight:var(--mat-card-title-text-weight)}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color);font-family:var(--mat-card-subtitle-text-font);line-height:var(--mat-card-subtitle-text-line-height);font-size:var(--mat-card-subtitle-text-size);letter-spacing:var(--mat-card-subtitle-text-tracking);font-weight:var(--mat-card-subtitle-text-weight)}.mat-mdc-card{position:relative}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0});let t=e;return t})(),xg=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Me({type:e,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"],standalone:!0});let t=e;return t})();var vu=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Me({type:e,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"],standalone:!0});let t=e;return t})();var Eg=(()=>{let e=class e{constructor(){this.align="start"}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Me({type:e,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(r,s){r&2&&Ae("mat-mdc-card-actions-align-end",s.align==="end")},inputs:{align:"align"},exportAs:["matCardActions"],standalone:!0});let t=e;return t})(),Sg=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ee({type:e,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],standalone:!0,features:[Ge],ngContentSelectors:gG,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(r,s){r&1&&(bt(pG),ze(0),O(1,"div",0),ze(2,1),N(),ze(3,2))},encapsulation:2,changeDetection:0});let t=e;return t})(),dO=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Me({type:e,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-mdc-card-footer"],standalone:!0});let t=e;return t})();var nx=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({imports:[Pe,Wt,Pe]});let t=e;return t})();var Ch=class{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},El=class extends Ch{constructor(e,i,n,r,s){super(),this.component=e,this.viewContainerRef=i,this.injector=n,this.componentFactoryResolver=r,this.projectableNodes=s}},bu=class extends Ch{constructor(e,i,n,r){super(),this.templateRef=e,this.viewContainerRef=i,this.context=n,this.injector=r}get origin(){return this.templateRef.elementRef}attach(e,i=this.context){return this.context=i,super.attach(e)}detach(){return this.context=void 0,super.detach()}},ix=class extends Ch{constructor(e){super(),this.element=e instanceof xe?e.nativeElement:e}},Mg=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof El)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof bu)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof ix)return this._attachedPortal=e,this.attachDomPortal(e)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var Dg=class extends Mg{constructor(e,i,n,r,s){super(),this.outletElement=e,this._componentFactoryResolver=i,this._appRef=n,this._defaultInjector=r,this.attachDomPortal=o=>{this._document;let a=o.element;a.parentNode;let l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(e){let n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(n,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,e.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=n.create(e.injector||this._defaultInjector||It.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let i=e.viewContainerRef,n=i.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=i.indexOf(n);r!==-1&&i.remove(r)}),this._attachedPortal=e,n}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var rx=(()=>{let e=class e extends Mg{constructor(n,r,s){super(),this._componentFactoryResolver=n,this._viewContainerRef=r,this._isInitialized=!1,this.attached=new se,this.attachDomPortal=o=>{this._document;let a=o.element;a.parentNode;let l=this._document.createComment("dom-portal");o.setAttachedHost(this),a.parentNode.insertBefore(l,a),this._getRootNode().appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}get portal(){return this._attachedPortal}set portal(n){this.hasAttached()&&!n&&!this._isInitialized||(this.hasAttached()&&super.detach(),n&&super.attach(n),this._attachedPortal=n||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(n){n.setAttachedHost(this);let r=n.viewContainerRef!=null?n.viewContainerRef:this._viewContainerRef,o=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component),a=r.createComponent(o,r.length,n.injector||r.injector,n.projectableNodes||void 0);return r!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=n,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(n){n.setAttachedHost(this);let r=this._viewContainerRef.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=n,this._attachedRef=r,this.attached.emit(r),r}_getRootNode(){let n=this._viewContainerRef.element.nativeElement;return n.nodeType===n.ELEMENT_NODE?n:n.parentNode}};e.\u0275fac=function(r){return new(r||e)(F(fr),F(un),F(Fe))},e.\u0275dir=Me({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[sn]});let t=e;return t})();var kg=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({});let t=e;return t})();var fo=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(fo||{});function Yr(t,e){return{type:fo.Trigger,name:t,definitions:e,options:{}}}function Oi(t,e=null){return{type:fo.Animate,styles:e,timings:t}}function pn(t){return{type:fo.Style,styles:t,offset:null}}function Cs(t,e,i){return{type:fo.State,name:t,styles:e,options:i}}function sx(t){return{type:fo.Keyframes,steps:t}}function pi(t,e,i=null){return{type:fo.Transition,expr:t,animation:e,options:i}}function hO(t=null){return{type:fo.AnimateChild,options:t}}function fO(t,e,i=null){return{type:fo.Query,selector:t,animation:e,options:i}}var Tg=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(e=!1,i,n=!0,r){this._multiple=e,this._emitChanges=n,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new ye,i&&i.length&&(e?i.forEach(s=>this._markSelected(s)):this._markSelected(i[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(n=>this._markSelected(n));let i=this._hasQueuedChanges();return this._emitChangeEvent(),i}deselect(...e){this._verifyValueAssignment(e),e.forEach(n=>this._unmarkSelected(n));let i=this._hasQueuedChanges();return this._emitChangeEvent(),i}setSelection(...e){this._verifyValueAssignment(e);let i=this.selected,n=new Set(e);e.forEach(s=>this._markSelected(s)),i.filter(s=>!n.has(this._getConcreteValue(s,n))).forEach(s=>this._unmarkSelected(s));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let i=this._hasQueuedChanges();return e&&this._emitChangeEvent(),i}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,i){if(this.compareWith){i=i??this._selection;for(let n of i)if(this.compareWith(e,n))return n;return e}else return e}};var mO=(()=>{let e=class e{constructor(){this._listeners=[]}notify(n,r){for(let s of this._listeners)s(n,r)}listen(n){return this._listeners.push(n),()=>{this._listeners=this._listeners.filter(r=>n!==r)}}ngOnDestroy(){this._listeners=[]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var yG=20,xh=(()=>{let e=class e{constructor(n,r,s){this._ngZone=n,this._platform=r,this._scrolled=new ye,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(n){this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(()=>this._scrolled.next(n)))}deregister(n){let r=this.scrollContainers.get(n);r&&(r.unsubscribe(),this.scrollContainers.delete(n))}scrolled(n=yG){return this._platform.isBrowser?new Ke(r=>{this._globalSubscription||this._addGlobalListener();let s=n>0?this._scrolled.pipe(Nm(n)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):de()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((n,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(n,r){let s=this.getAncestorScrollContainers(n);return this.scrolled(r).pipe(et(o=>!o||s.indexOf(o)>-1))}getAncestorScrollContainers(n){let r=[];return this.scrollContainers.forEach((s,o)=>{this._scrollableContainsElement(o,n)&&r.push(o)}),r}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(n,r){let s=wr(r),o=n.getElementRef().nativeElement;do if(s==o)return!0;while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let n=this._getWindow();return dc(n.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};e.\u0275fac=function(r){return new(r||e)(V(be),V(xt),V(Fe,8))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var wG=20,ha=(()=>{let e=class e{constructor(n,r,s){this._platform=n,this._change=new ye,this._changeListener=o=>{this._change.next(o)},this._document=s,r.runOutsideAngular(()=>{if(n.isBrowser){let o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let n=this._getWindow();n.removeEventListener("resize",this._changeListener),n.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}getViewportRect(){let n=this.getViewportScrollPosition(),{width:r,height:s}=this.getViewportSize();return{top:n.top,left:n.left,bottom:n.top+s,right:n.left+r,height:s,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let n=this._document,r=this._getWindow(),s=n.documentElement,o=s.getBoundingClientRect(),a=-o.top||n.body.scrollTop||r.scrollY||s.scrollTop||0,l=-o.left||n.body.scrollLeft||r.scrollX||s.scrollLeft||0;return{top:a,left:l}}change(n=wG){return n>0?this._change.pipe(Nm(n)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}};e.\u0275fac=function(r){return new(r||e)(V(xt),V(be),V(Fe,8))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Er=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({});let t=e;return t})(),Eh=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({imports:[ua,Er,ua,Er]});let t=e;return t})();var pO=yL(),ax=class{constructor(e,i){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=i}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=mn(-this._previousScrollPosition.left),e.style.top=mn(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,i=this._document.body,n=e.style,r=i.style,s=n.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),pO&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),pO&&(n.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let i=this._document.body,n=this._viewportRuler.getViewportSize();return i.scrollHeight>n.height||i.scrollWidth>n.width}};var lx=class{constructor(e,i,n,r){this._scrollDispatcher=e,this._ngZone=i,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(et(i=>!i||!this._overlayRef.overlayElement.contains(i.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let i=this._viewportRuler.getViewportScrollPosition().top;Math.abs(i-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Ag=class{enable(){}disable(){}attach(){}};function cx(t,e){return e.some(i=>{let n=t.bottomi.bottom,s=t.righti.right;return n||r||s||o})}function gO(t,e){return e.some(i=>{let n=t.topi.bottom,s=t.lefti.right;return n||r||s||o})}var ux=class{constructor(e,i,n,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=n,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let i=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:r}=this._viewportRuler.getViewportSize();cx(i,[{width:n,height:r,bottom:r,right:n,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},CG=(()=>{let e=class e{constructor(n,r,s,o){this._scrollDispatcher=n,this._viewportRuler=r,this._ngZone=s,this.noop=()=>new Ag,this.close=a=>new lx(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new ax(this._viewportRuler,this._document),this.reposition=a=>new ux(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=o}};e.\u0275fac=function(r){return new(r||e)(V(xh),V(ha),V(be),V(Fe))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Il=class{constructor(e){if(this.scrollStrategy=new Ag,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){let i=Object.keys(e);for(let n of i)e[n]!==void 0&&(this[n]=e[n])}}};var dx=class{constructor(e,i){this.connectionPair=e,this.scrollableViewProperties=i}};var CO=(()=>{let e=class e{constructor(n){this._attachedOverlays=[],this._document=n}ngOnDestroy(){this.detach()}add(n){this.remove(n),this._attachedOverlays.push(n)}remove(n){let r=this._attachedOverlays.indexOf(n);r>-1&&this._attachedOverlays.splice(r,1),this._attachedOverlays.length===0&&this.detach()}};e.\u0275fac=function(r){return new(r||e)(V(Fe))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),xG=(()=>{let e=class e extends CO{constructor(n,r){super(n),this._ngZone=r,this._keydownListener=s=>{let o=this._attachedOverlays;for(let a=o.length-1;a>-1;a--)if(o[a]._keydownEvents.observers.length>0){let l=o[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(s)):l.next(s);break}}}add(n){super.add(n),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}};e.\u0275fac=function(r){return new(r||e)(V(Fe),V(be,8))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),EG=(()=>{let e=class e extends CO{constructor(n,r,s){super(n),this._platform=r,this._ngZone=s,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Zi(o)},this._clickListener=o=>{let a=Zi(o),l=o.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;let c=this._attachedOverlays.slice();for(let u=c.length-1;u>-1;u--){let d=c[u];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(_O(d.overlayElement,a)||_O(d.overlayElement,l))break;let h=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(o)):h.next(o)}}}add(n){if(super.add(n),!this._isAttached){let r=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(r)):this._addEventListeners(r),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=r.style.cursor,r.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let n=this._document.body;n.removeEventListener("pointerdown",this._pointerDownListener,!0),n.removeEventListener("click",this._clickListener,!0),n.removeEventListener("auxclick",this._clickListener,!0),n.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(n.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(n){n.addEventListener("pointerdown",this._pointerDownListener,!0),n.addEventListener("click",this._clickListener,!0),n.addEventListener("auxclick",this._clickListener,!0),n.addEventListener("contextmenu",this._clickListener,!0)}};e.\u0275fac=function(r){return new(r||e)(V(Fe),V(xt),V(be,8))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function _O(t,e){let i=typeof ShadowRoot<"u"&&ShadowRoot,n=e;for(;n;){if(n===t)return!0;n=i&&n instanceof ShadowRoot?n.host:n.parentNode}return!1}var xO=(()=>{let e=class e{constructor(n,r){this._platform=r,this._document=n}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let n="cdk-overlay-container";if(this._platform.isBrowser||dh()){let s=this._document.querySelectorAll(`.${n}[platform="server"], .${n}[platform="test"]`);for(let o=0;othis._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new ye,this._outsidePointerEvents=new ye,this._renders=new ye,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=Ad(()=>Dd(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let i=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),ti(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof i?.onDestroy=="function"&&i.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),i}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Z(Z({},this._config),e),this._updateElementSize()}setDirection(e){this._config=We(Z({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=mn(this._config.width),e.height=mn(this._config.height),e.minWidth=mn(this._config.minWidth),e.minHeight=mn(this._config.minHeight),e.maxWidth=mn(this._config.maxWidth),e.maxHeight=mn(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e=this._backdropElement;if(e){if(this._animationsDisabled){this._disposeBackdrop(e);return}e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,i,n){let r=lu(i||[]).filter(s=>!!s);r.length&&(n?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(ft(li(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){let e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},vO="cdk-overlay-connected-position-bounding-box",SG=/([A-Za-z%]+)$/,Rg=class{get positions(){return this._preferredPositions}constructor(e,i,n,r,s){this._viewportRuler=i,this._document=n,this._platform=r,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new ye,this._resizeSubscription=tt.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(vO),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._originRect,i=this._overlayRect,n=this._viewportRect,r=this._containerRect,s=[],o;for(let a of this._preferredPositions){let l=this._getOriginPoint(e,r,a),c=this._getOverlayPoint(l,i,a),u=this._getOverlayFit(c,i,n,a);if(u.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,l);return}if(this._canFitWithFlexibleDimensions(u,c,n)){s.push({position:a,origin:l,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(l,a)});continue}(!o||o.overlayFit.visibleAreal&&(l=u,a=c)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(o.position,o.originPoint);return}this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Sl(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(vO),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let i=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,i)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,i,n){let r;if(n.originX=="center")r=e.left+e.width/2;else{let o=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;r=n.originX=="start"?o:a}i.left<0&&(r-=i.left);let s;return n.originY=="center"?s=e.top+e.height/2:s=n.originY=="top"?e.top:e.bottom,i.top<0&&(s-=i.top),{x:r,y:s}}_getOverlayPoint(e,i,n){let r;n.overlayX=="center"?r=-i.width/2:n.overlayX==="start"?r=this._isRtl()?-i.width:0:r=this._isRtl()?0:-i.width;let s;return n.overlayY=="center"?s=-i.height/2:s=n.overlayY=="top"?0:-i.height,{x:e.x+r,y:e.y+s}}_getOverlayFit(e,i,n,r){let s=yO(i),{x:o,y:a}=e,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(o+=l),c&&(a+=c);let u=0-o,d=o+s.width-n.width,h=0-a,f=a+s.height-n.height,m=this._subtractOverflows(s.width,u,d),p=this._subtractOverflows(s.height,h,f),g=m*p;return{visibleArea:g,isCompletelyWithinViewport:s.width*s.height===g,fitsInViewportVertically:p===s.height,fitsInViewportHorizontally:m==s.width}}_canFitWithFlexibleDimensions(e,i,n){if(this._hasFlexibleDimensions){let r=n.bottom-i.y,s=n.right-i.x,o=bO(this._overlayRef.getConfig().minHeight),a=bO(this._overlayRef.getConfig().minWidth),l=e.fitsInViewportVertically||o!=null&&o<=r,c=e.fitsInViewportHorizontally||a!=null&&a<=s;return l&&c}return!1}_pushOverlayOnScreen(e,i,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let r=yO(i),s=this._viewportRect,o=Math.max(e.x+r.width-s.width,0),a=Math.max(e.y+r.height-s.height,0),l=Math.max(s.top-n.top-e.y,0),c=Math.max(s.left-n.left-e.x,0),u=0,d=0;return r.width<=s.width?u=c||-o:u=e.xm&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.y-m/2)}let l=i.overlayX==="start"&&!r||i.overlayX==="end"&&r,c=i.overlayX==="end"&&!r||i.overlayX==="start"&&r,u,d,h;if(c)h=n.width-e.x+this._viewportMargin*2,u=e.x-this._viewportMargin;else if(l)d=e.x,u=n.right-e.x;else{let f=Math.min(n.right-e.x+n.left,e.x),m=this._lastBoundingBoxSize.width;u=f*2,d=e.x-f,u>m&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-m/2)}return{top:o,left:d,bottom:a,right:h,width:u,height:s}}_setBoundingBoxStyles(e,i){let n=this._calculateBoundingBoxRect(e,i);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=mn(n.height),r.top=mn(n.top),r.bottom=mn(n.bottom),r.width=mn(n.width),r.left=mn(n.left),r.right=mn(n.right),i.overlayX==="center"?r.alignItems="center":r.alignItems=i.overlayX==="end"?"flex-end":"flex-start",i.overlayY==="center"?r.justifyContent="center":r.justifyContent=i.overlayY==="bottom"?"flex-end":"flex-start",s&&(r.maxHeight=mn(s)),o&&(r.maxWidth=mn(o))}this._lastBoundingBoxSize=n,Sl(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Sl(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Sl(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,i){let n={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){let u=this._viewportRuler.getViewportScrollPosition();Sl(n,this._getExactOverlayY(i,e,u)),Sl(n,this._getExactOverlayX(i,e,u))}else n.position="static";let a="",l=this._getOffset(i,"x"),c=this._getOffset(i,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),n.transform=a.trim(),o.maxHeight&&(r?n.maxHeight=mn(o.maxHeight):s&&(n.maxHeight="")),o.maxWidth&&(r?n.maxWidth=mn(o.maxWidth):s&&(n.maxWidth="")),Sl(this._pane.style,n)}_getExactOverlayY(e,i,n){let r={top:"",bottom:""},s=this._getOverlayPoint(i,this._overlayRect,e);if(this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n)),e.overlayY==="bottom"){let o=this._document.documentElement.clientHeight;r.bottom=`${o-(s.y+this._overlayRect.height)}px`}else r.top=mn(s.y);return r}_getExactOverlayX(e,i,n){let r={left:"",right:""},s=this._getOverlayPoint(i,this._overlayRect,e);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let o;if(this._isRtl()?o=e.overlayX==="end"?"left":"right":o=e.overlayX==="end"?"right":"left",o==="right"){let a=this._document.documentElement.clientWidth;r.right=`${a-(s.x+this._overlayRect.width)}px`}else r.left=mn(s.x);return r}_getScrollVisibility(){let e=this._getOriginRect(),i=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:gO(e,n),isOriginOutsideView:cx(e,n),isOverlayClipped:gO(i,n),isOverlayOutsideView:cx(i,n)}}_subtractOverflows(e,...i){return i.reduce((n,r)=>n-Math.max(r,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,i=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+i-this._viewportMargin,width:e-2*this._viewportMargin,height:i-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,i){return i==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&lu(e).forEach(i=>{i!==""&&this._appliedPanelClasses.indexOf(i)===-1&&(this._appliedPanelClasses.push(i),this._pane.classList.add(i))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof xe)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let i=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+i,height:n,width:i}}};function Sl(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function bO(t){if(typeof t!="number"&&t!=null){let[e,i]=t.split(SG);return!i||i==="px"?parseFloat(e):null}return t||null}function yO(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function IG(t,e){return t===e?!0:t.isOriginClipped===e.isOriginClipped&&t.isOriginOutsideView===e.isOriginOutsideView&&t.isOverlayClipped===e.isOverlayClipped&&t.isOverlayOutsideView===e.isOverlayOutsideView}var wO="cdk-global-overlay-wrapper",fx=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){let i=e.getConfig();this._overlayRef=e,this._width&&!i.width&&e.updateSize({width:this._width}),this._height&&!i.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(wO),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,i=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=n,l=(r==="100%"||r==="100vw")&&(!o||o==="100%"||o==="100vw"),c=(s==="100%"||s==="100vh")&&(!a||a==="100%"||a==="100vh"),u=this._xPosition,d=this._xOffset,h=this._overlayRef.getConfig().direction==="rtl",f="",m="",p="";l?p="flex-start":u==="center"?(p="center",h?m=d:f=d):h?u==="left"||u==="end"?(p="flex-end",f=d):(u==="right"||u==="start")&&(p="flex-start",m=d):u==="left"||u==="start"?(p="flex-start",f=d):(u==="right"||u==="end")&&(p="flex-end",m=d),e.position=this._cssPosition,e.marginLeft=l?"0":f,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=l?"0":m,i.justifyContent=p,i.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,i=this._overlayRef.hostElement,n=i.style;i.classList.remove(wO),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},MG=(()=>{let e=class e{constructor(n,r,s,o){this._viewportRuler=n,this._document=r,this._platform=s,this._overlayContainer=o}global(){return new fx}flexibleConnectedTo(n){return new Rg(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};e.\u0275fac=function(r){return new(r||e)(V(ha),V(Fe),V(xt),V(xO))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),DG=0,gn=(()=>{let e=class e{constructor(n,r,s,o,a,l,c,u,d,h,f,m){this.scrollStrategies=n,this._overlayContainer=r,this._componentFactoryResolver=s,this._positionBuilder=o,this._keyboardDispatcher=a,this._injector=l,this._ngZone=c,this._document=u,this._directionality=d,this._location=h,this._outsideClickDispatcher=f,this._animationsModuleType=m}create(n){let r=this._createHostElement(),s=this._createPaneElement(r),o=this._createPortalOutlet(s),a=new Il(n);return a.direction=a.direction||this._directionality.value,new hx(o,r,s,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(An))}position(){return this._positionBuilder}_createPaneElement(n){let r=this._document.createElement("div");return r.id=`cdk-overlay-${DG++}`,r.classList.add("cdk-overlay-pane"),n.appendChild(r),r}_createHostElement(){let n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalOutlet(n){return this._appRef||(this._appRef=this._injector.get(Hr)),new Dg(n,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};e.\u0275fac=function(r){return new(r||e)(V(CG),V(xO),V(fr),V(MG),V(xG),V(It),V(be),V(Fe),V(Ji),V(na),V(EG),V(cn,8))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),kG=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],EO=new Q("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=Y(gn);return()=>t.scrollStrategies.reposition()}}),Sh=(()=>{let e=class e{constructor(n){this.elementRef=n}};e.\u0275fac=function(r){return new(r||e)(F(xe))},e.\u0275dir=Me({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0});let t=e;return t})(),mx=(()=>{let e=class e{get offsetX(){return this._offsetX}set offsetX(n){this._offsetX=n,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(n){this._offsetY=n,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(n){this._disposeOnNavigation=n}constructor(n,r,s,o,a){this._overlay=n,this._dir=a,this._backdropSubscription=tt.EMPTY,this._attachSubscription=tt.EMPTY,this._detachSubscription=tt.EMPTY,this._positionSubscription=tt.EMPTY,this._disposeOnNavigation=!1,this._ngZone=Y(be),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new se,this.positionChange=new se,this.attach=new se,this.detach=new se,this.overlayKeydown=new se,this.overlayOutsideClick=new se,this._templatePortal=new bu(r,s),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(n){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),n.origin&&this.open&&this._position.apply()),n.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=kG);let n=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=n.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=n.detachments().subscribe(()=>this.detach.emit()),n.keydownEvents().subscribe(r=>{this.overlayKeydown.next(r),r.keyCode===27&&!this.disableClose&&!Qi(r)&&(r.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(r=>{let s=this._getOriginElement(),o=Zi(r);(!s||s!==o&&!s.contains(o))&&this.overlayOutsideClick.next(r)})}_buildConfig(){let n=this._position=this.positionStrategy||this._createPositionStrategy(),r=new Il({direction:this._dir,positionStrategy:n,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(r.width=this.width),(this.height||this.height===0)&&(r.height=this.height),(this.minWidth||this.minWidth===0)&&(r.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(r.minHeight=this.minHeight),this.backdropClass&&(r.backdropClass=this.backdropClass),this.panelClass&&(r.panelClass=this.panelClass),r}_updatePositionStrategy(n){let r=this.positions.map(s=>({originX:s.originX,originY:s.originY,overlayX:s.overlayX,overlayY:s.overlayY,offsetX:s.offsetX||this.offsetX,offsetY:s.offsetY||this.offsetY,panelClass:s.panelClass||void 0}));return n.setOrigin(this._getOrigin()).withPositions(r).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let n=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(n),n}_getOrigin(){return this.origin instanceof Sh?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Sh?this.origin.elementRef.nativeElement:this.origin instanceof xe?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(n=>{this.backdropClick.emit(n)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(kb(()=>this.positionChange.observers.length>0)).subscribe(n=>{this._ngZone.run(()=>this.positionChange.emit(n)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(F(gn),F($n),F(un),F(EO),F(Ji,8))},e.\u0275dir=Me({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",Ne],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",Ne],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",Ne],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",Ne],push:[2,"cdkConnectedOverlayPush","push",Ne],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",Ne]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[gt,Mt]});let t=e;return t})();function TG(t){return()=>t.scrollStrategies.reposition()}var AG={provide:EO,deps:[gn],useFactory:TG},xs=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({providers:[gn,AG],imports:[ua,kg,Eh,Eh]});let t=e;return t})();var LG=["mat-menu-item",""],OG=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],NG=["mat-icon, [matMenuItemIcon]","*"];function FG(t,e){t&1&&(xn(),O(0,"svg",2),ue(1,"polygon",3),N())}var PG=new Q("MAT_MENU_PANEL"),Lg=(()=>{let e=class e{constructor(n,r,s,o,a){this._elementRef=n,this._document=r,this._focusMonitor=s,this._parentMenu=o,this._changeDetectorRef=a,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new ye,this._focused=new ye,this._highlighted=!1,this._triggersSubmenu=!1,o?.addItem?.(this)}focus(n,r){this._focusMonitor&&n?this._focusMonitor.focusVia(this._getHostElement(),n,r):this._getHostElement().focus(r),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(n){this.disabled&&(n.preventDefault(),n.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let n=this._elementRef.nativeElement.cloneNode(!0),r=n.querySelectorAll("mat-icon, .material-icons");for(let s=0;s enter",Oi("120ms cubic-bezier(0, 0, 0.2, 1)",pn({opacity:1,transform:"scale(1)"}))),pi("* => void",Oi("100ms 25ms linear",pn({opacity:0})))]),fadeInItems:Yr("fadeInItems",[Cs("showing",pn({opacity:1})),pi("void => *",[pn({opacity:0}),Oi("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Mve=SO.fadeInItems,Dve=SO.transformMenu;var UG=new Q("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=Y(gn);return()=>t.scrollStrategies.reposition()}});function $G(t){return()=>t.scrollStrategies.reposition()}var VG={provide:UG,deps:[gn],useFactory:$G};var px=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({providers:[VG],imports:[Wt,uo,Pe,xs,Er,Pe]});let t=e;return t})();var MO=(()=>{let e=class e{constructor(){this.version=su.version}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ee({type:e,selectors:[["app-home"]],decls:31,vars:1,consts:[[1,"primary"],["mat-menu-item","","routerLink","/validate"],["mat-menu-item","","routerLink","/igs"],["mat-menu-item","","routerLink","/settings"],["href","https://fhirpath-lab.com/FhirPath","target","_blank"],["href","https://fhirpath-lab.com/FhirMapper2","target","_blank"],["href","https://www.ahdis.ch","rel","external nofollow noopener","target","_blank"]],template:function(r,s){r&1&&(O(0,"mat-card",0)(1,"mat-card-content")(2,"button",1)(3,"mat-icon"),B(4,"rule"),N(),O(5,"span"),B(6,"Validate resource"),N()(),O(7,"button",2)(8,"mat-icon"),B(9,"info"),N(),O(10,"span"),B(11,"Installed IGs"),N()(),O(12,"button",3)(13,"mat-icon"),B(14,"settings"),N(),O(15,"span"),B(16,"Settings"),N()(),O(17,"p"),B(18,"Other tools:"),N(),O(19,"ul")(20,"li")(21,"a",4),B(22,"FHIRPath tester"),N()(),O(23,"li")(24,"a",5),B(25,"FHIR Mapper"),N()()()(),O(26,"mat-card-footer")(27,"p"),B(28),O(29,"a",6),B(30," contact"),N()()()()),r&2&&($(28),at(" matchbox version: ",s.version," | "))},dependencies:[_u,vu,dO,ws,Lg,q0],styles:["mat-card.primary[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:20px}mat-card.primary[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px;vertical-align:middle;color:#68c39a}mat-card.primary[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:30px 0 15px}mat-card.primary[_ngcontent-%COMP%] mat-card-footer[_ngcontent-%COMP%]{padding:0 1.5rem 1.5rem}"]});let t=e;return t})();var OO=(()=>{let e=class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(r){return new(r||e)(F(Ko),F(xe))},e.\u0275dir=Me({type:e});let t=e;return t})(),BG=(()=>{let e=class e extends OO{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=ei(e)))(s||e)}})(),e.\u0275dir=Me({type:e,features:[sn]});let t=e;return t})(),mo=new Q("");var jG={provide:mo,useExisting:Ln(()=>Es),multi:!0};function HG(){let t=ps()?ps().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var zG=new Q(""),Es=(()=>{let e=class e extends OO{constructor(n,r,s){super(n,r),this._compositionMode=s,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!HG())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(r){return new(r||e)(F(Ko),F(xe),F(zG,8))},e.\u0275dir=Me({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,s){r&1&&oe("input",function(a){return s._handleInput(a.target.value)})("blur",function(){return s.onTouched()})("compositionstart",function(){return s._compositionStart()})("compositionend",function(a){return s._compositionEnd(a.target.value)})},features:[Dt([jG]),sn]});let t=e;return t})();function fa(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function NO(t){return t!=null&&typeof t.length=="number"}var pa=new Q(""),Hg=new Q(""),WG=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,nr=class{static min(e){return qG(e)}static max(e){return GG(e)}static required(e){return YG(e)}static requiredTrue(e){return KG(e)}static email(e){return ZG(e)}static minLength(e){return QG(e)}static maxLength(e){return XG(e)}static pattern(e){return JG(e)}static nullValidator(e){return FO(e)}static compose(e){return jO(e)}static composeAsync(e){return HO(e)}};function qG(t){return e=>{if(fa(e.value)||fa(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i{if(fa(e.value)||fa(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}function YG(t){return fa(t.value)?{required:!0}:null}function KG(t){return t.value===!0?null:{required:!0}}function ZG(t){return fa(t.value)||WG.test(t.value)?null:{email:!0}}function QG(t){return e=>fa(e.value)||!NO(e.value)?null:e.value.lengthNO(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function JG(t){if(!t)return FO;let e,i;return typeof t=="string"?(i="",t.charAt(0)!=="^"&&(i+="^"),i+=t,t.charAt(t.length-1)!=="$"&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),n=>{if(fa(n.value))return null;let r=n.value;return e.test(r)?null:{pattern:{requiredPattern:i,actualValue:r}}}}function FO(t){return null}function PO(t){return t!=null}function UO(t){return ea(t)?Tt(t):t}function $O(t){let e={};return t.forEach(i=>{e=i!=null?Z(Z({},e),i):e}),Object.keys(e).length===0?null:e}function VO(t,e){return e.map(i=>i(t))}function eY(t){return!t.validate}function BO(t){return t.map(e=>eY(e)?e:i=>e.validate(i))}function jO(t){if(!t)return null;let e=t.filter(PO);return e.length==0?null:function(i){return $O(VO(i,e))}}function yx(t){return t!=null?jO(BO(t)):null}function HO(t){if(!t)return null;let e=t.filter(PO);return e.length==0?null:function(i){let n=VO(i,e).map(UO);return Ha(n).pipe(ve($O))}}function wx(t){return t!=null?HO(BO(t)):null}function DO(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function zO(t){return t._rawValidators}function WO(t){return t._rawAsyncValidators}function gx(t){return t?Array.isArray(t)?t:[t]:[]}function Ng(t,e){return Array.isArray(t)?t.includes(e):t===e}function kO(t,e){let i=gx(e);return gx(t).forEach(r=>{Ng(i,r)||i.push(r)}),i}function TO(t,e){return gx(e).filter(i=>!Ng(t,i))}var Fg=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(e){this._rawValidators=e||[],this._composedValidatorFn=yx(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=wx(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,i){return this.control?this.control.hasError(e,i):!1}getError(e,i){return this.control?this.control.getError(e,i):null}},Ml=class extends Fg{get formDirective(){return null}get path(){return null}},Kr=class extends Fg{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},_x=class{constructor(e){this._cd=e}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}},tY={"[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"},Gve=We(Z({},tY),{"[class.ng-submitted]":"isSubmitted"}),Ss=(()=>{let e=class e extends _x{constructor(n){super(n)}};e.\u0275fac=function(r){return new(r||e)(F(Kr,2))},e.\u0275dir=Me({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,s){r&2&&Ae("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)},features:[sn]});let t=e;return t})();var Ih="VALID",Og="INVALID",wu="PENDING",Mh="DISABLED",ma=class{},Pg=class extends ma{constructor(e,i){super(),this.value=e,this.source=i}},kh=class extends ma{constructor(e,i){super(),this.pristine=e,this.source=i}},Th=class extends ma{constructor(e,i){super(),this.touched=e,this.source=i}},Cu=class extends ma{constructor(e,i){super(),this.status=e,this.source=i}},vx=class extends ma{constructor(e){super(),this.source=e}},bx=class extends ma{constructor(e){super(),this.source=e}};function qO(t){return(zg(t)?t.validators:t)||null}function nY(t){return Array.isArray(t)?yx(t):t||null}function GO(t,e){return(zg(e)?e.asyncValidators:t)||null}function iY(t){return Array.isArray(t)?wx(t):t||null}function zg(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function rY(t,e,i){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new Te(1e3,"");if(!n[i])throw new Te(1001,"")}function sY(t,e,i){t._forEachChild((n,r)=>{if(i[r]===void 0)throw new Te(1002,"")})}var Ug=class{constructor(e,i){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._events=new ye,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(i)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===Ih}get invalid(){return this.status===Og}get pending(){return this.status==wu}get disabled(){return this.status===Mh}get enabled(){return this.status!==Mh}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(kO(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(kO(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(TO(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(TO(e,this._rawAsyncValidators))}hasValidator(e){return Ng(this._rawValidators,e)}hasAsyncValidator(e){return Ng(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let i=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(We(Z({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new Th(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(i=>i.markAllAsTouched(e))}markAsUntouched(e={}){let i=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),i&&e.emitEvent!==!1&&this._events.next(new Th(!1,n))}markAsDirty(e={}){let i=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(We(Z({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new kh(!1,n))}markAsPristine(e={}){let i=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),i&&e.emitEvent!==!1&&this._events.next(new kh(!0,n))}markAsPending(e={}){this.status=wu;let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Cu(this.status,i)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(We(Z({},e),{sourceControl:i}))}disable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=Mh,this.errors=null,this._forEachChild(r=>{r.disable(We(Z({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Pg(this.value,n)),this._events.next(new Cu(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(We(Z({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=Ih,this._forEachChild(n=>{n.enable(We(Z({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(We(Z({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,i){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},i),this._parent._updateTouched({},i))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ih||this.status===wu)&&this._runAsyncValidator(n,e.emitEvent)}let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Pg(this.value,i)),this._events.next(new Cu(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(We(Z({},e),{sourceControl:i}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(i=>i._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Mh:Ih}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,i){if(this.asyncValidator){this.status=wu,this._hasOwnPendingAsyncValidator={emitEvent:i!==!1};let n=UO(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:i,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,i={}){this.errors=e,this._updateControlsErrors(i.emitEvent!==!1,this,i.shouldHaveEmitted)}get(e){let i=e;return i==null||(Array.isArray(i)||(i=i.split(".")),i.length===0)?null:i.reduce((n,r)=>n&&n._find(r),this)}getError(e,i){let n=i?this.get(i):this;return n&&n.errors?n.errors[e]:null}hasError(e,i){return!!this.getError(e,i)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,i,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new Cu(this.status,i)),this._parent&&this._parent._updateControlsErrors(e,i,n)}_initObservables(){this.valueChanges=new se,this.statusChanges=new se}_calculateStatus(){return this._allControlsDisabled()?Mh:this.errors?Og:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(wu)?wu:this._anyControlsHaveStatus(Og)?Og:Ih}_anyControlsHaveStatus(e){return this._anyControls(i=>i.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,i){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),r&&this._events.next(new kh(this.pristine,i))}_updateTouched(e={},i){this.touched=this._anyControlsTouched(),this._events.next(new Th(this.touched,i)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){zg(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let i=this._parent&&this._parent.dirty;return!e&&!!i&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=nY(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=iY(this._rawAsyncValidators)}},$g=class extends Ug{constructor(e,i,n){super(qO(i),GO(n,i)),this.controls=e,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,i){return this.controls[e]?this.controls[e]:(this.controls[e]=i,i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange),i)}addControl(e,i,n={}){this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}setControl(e,i,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],i&&this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,i={}){sY(this,!0,e),Object.keys(e).forEach(n=>{rY(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(e,i={}){e!=null&&(Object.keys(e).forEach(n=>{let r=this.controls[n];r&&r.patchValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(e={},i={}){this._forEachChild((n,r)=>{n.reset(e?e[r]:null,{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i,this),this._updateTouched(i,this),this.updateValueAndValidity(i)}getRawValue(){return this._reduceChildren({},(e,i,n)=>(e[n]=i.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(i,n)=>n._syncPendingControls()?!0:i);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(i=>{let n=this.controls[i];n&&e(n,i)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[i,n]of Object.entries(this.controls))if(this.contains(i)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(i,n,r)=>((n.enabled||this.disabled)&&(i[r]=n.value),i))}_reduceChildren(e,i){let n=e;return this._forEachChild((r,s)=>{n=i(n,r,s)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var xu=new Q("CallSetDisabledState",{providedIn:"root",factory:()=>Wg}),Wg="always";function oY(t,e){return[...e.path,t]}function Ah(t,e,i=Wg){Cx(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||i==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),lY(t,e),uY(t,e),cY(t,e),aY(t,e)}function Vg(t,e,i=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),jg(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Bg(t,e){t.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(e)})}function aY(t,e){if(e.valueAccessor.setDisabledState){let i=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}function Cx(t,e){let i=zO(t);e.validator!==null?t.setValidators(DO(i,e.validator)):typeof i=="function"&&t.setValidators([i]);let n=WO(t);e.asyncValidator!==null?t.setAsyncValidators(DO(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();Bg(e._rawValidators,r),Bg(e._rawAsyncValidators,r)}function jg(t,e){let i=!1;if(t!==null){if(e.validator!==null){let r=zO(t);if(Array.isArray(r)&&r.length>0){let s=r.filter(o=>o!==e.validator);s.length!==r.length&&(i=!0,t.setValidators(s))}}if(e.asyncValidator!==null){let r=WO(t);if(Array.isArray(r)&&r.length>0){let s=r.filter(o=>o!==e.asyncValidator);s.length!==r.length&&(i=!0,t.setAsyncValidators(s))}}}let n=()=>{};return Bg(e._rawValidators,n),Bg(e._rawAsyncValidators,n),i}function lY(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&YO(t,e)})}function cY(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&YO(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function YO(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function uY(t,e){let i=(n,r)=>{e.valueAccessor.writeValue(n),r&&e.viewToModelUpdate(n)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}function KO(t,e){t==null,Cx(t,e)}function dY(t,e){return jg(t,e)}function ZO(t,e){if(!t.hasOwnProperty("model"))return!1;let i=t.model;return i.isFirstChange()?!0:!Object.is(e,i.currentValue)}function hY(t){return Object.getPrototypeOf(t.constructor)===BG}function QO(t,e){t._syncPendingControls(),e.forEach(i=>{let n=i.control;n.updateOn==="submit"&&n._pendingChange&&(i.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function XO(t,e){if(!e)return null;Array.isArray(e);let i,n,r;return e.forEach(s=>{s.constructor===Es?i=s:hY(s)?n=s:r=s}),r||n||i||null}function fY(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}var mY={provide:Ml,useExisting:Ln(()=>Rh)},Dh=Promise.resolve(),Rh=(()=>{let e=class e extends Ml{constructor(n,r,s){super(),this.callSetDisabledState=s,this.submitted=!1,this._directives=new Set,this.ngSubmit=new se,this.form=new $g({},yx(n),wx(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){Dh.then(()=>{let r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),Ah(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){Dh.then(()=>{let r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){Dh.then(()=>{let r=this._findContainer(n.path),s=new $g({});KO(s,n),r.registerControl(n.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){Dh.then(()=>{let r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){Dh.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,QO(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}};e.\u0275fac=function(r){return new(r||e)(F(pa,10),F(Hg,10),F(xu,8))},e.\u0275dir=Me({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,s){r&1&&oe("submit",function(a){return s.onSubmit(a)})("reset",function(){return s.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Dt([mY]),sn]});let t=e;return t})();function AO(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function RO(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Dl=class extends Ug{constructor(e=null,i,n){super(qO(i),GO(n,i)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(i),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),zg(i)&&(i.nonNullable||i.initialValueIsDefault)&&(RO(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,i={}){this.value=this._pendingValue=e,this._onChange.length&&i.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,i.emitViewToModelChange!==!1)),this.updateValueAndValidity(i)}patchValue(e,i={}){this.setValue(e,i)}reset(e=this.defaultValue,i={}){this._applyFormState(e),this.markAsPristine(i),this.markAsUntouched(i),this.setValue(this.value,i),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){AO(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){AO(this._onDisabledChange,e)}_forEachChild(e){}_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(e){RO(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}},Zr=Dl,pY=t=>t instanceof Dl;var gY={provide:Kr,useExisting:Ln(()=>xx)},LO=Promise.resolve(),xx=(()=>{let e=class e extends Kr{constructor(n,r,s,o,a,l){super(),this._changeDetectorRef=a,this.callSetDisabledState=l,this.control=new Dl,this._registered=!1,this.name="",this.update=new se,this._parent=n,this._setValidators(r),this._setAsyncValidators(s),this.valueAccessor=XO(this,o)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),ZO(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(){Ah(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){LO.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,s=r!==0&&Ne(r);LO.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?oY(n,this._parent):[n]}};e.\u0275fac=function(r){return new(r||e)(F(Ml,9),F(pa,10),F(Hg,10),F(mo,10),F(Ye,8),F(xu,8))},e.\u0275dir=Me({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Dt([gY]),sn,Mt]});let t=e;return t})();var JO=new Q(""),_Y={provide:Kr,useExisting:Ln(()=>Qr)},Qr=(()=>{let e=class e extends Kr{set isDisabled(n){}constructor(n,r,s,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this.update=new se,this._ngModelWarningSent=!1,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=XO(this,s)}ngOnChanges(n){if(this._isControlChanged(n)){let r=n.form.previousValue;r&&Vg(r,this,!1),Ah(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ZO(n,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Vg(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")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(r){return new(r||e)(F(pa,10),F(Hg,10),F(mo,10),F(JO,8),F(xu,8))},e.\u0275dir=Me({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Dt([_Y]),sn,Mt]});let t=e;return t})(),vY={provide:Ml,useExisting:Ln(()=>Lh)},Lh=(()=>{let e=class e extends Ml{constructor(n,r,s){super(),this.callSetDisabledState=s,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new se,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(jg(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let r=this.form.get(n.path);return Ah(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){Vg(n.control||null,n,!1),fY(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this.submitted=!0,QO(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new vx(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1,this.form._events.next(new bx(this.form))}_updateDomValue(){this.directives.forEach(n=>{let r=n.control,s=this.form.get(n.path);r!==s&&(Vg(r||null,n),pY(s)&&(Ah(s,n,this.callSetDisabledState),n.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let r=this.form.get(n.path);KO(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let r=this.form.get(n.path);r&&dY(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Cx(this.form,this),this._oldForm&&jg(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(r){return new(r||e)(F(pa,10),F(Hg,10),F(xu,8))},e.\u0275dir=Me({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,s){r&1&&oe("submit",function(a){return s.onSubmit(a)})("reset",function(){return s.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Dt([vY]),sn,Mt]});let t=e;return t})();var eN=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({});let t=e;return t})();var Ex=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:xu,useValue:n.callSetDisabledState??Wg}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({imports:[eN]});let t=e;return t})(),Oh=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:JO,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:xu,useValue:n.callSetDisabledState??Wg}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({imports:[eN]});let t=e;return t})();var mN=ss(X0());var Sx=class{constructor(e){this._box=e,this._destroyed=new ye,this._resizeSubject=new ye,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(i=>this._resizeSubject.next(i)))}observe(e){return this._elementObservables.has(e)||this._elementObservables.set(e,new Ke(i=>{let n=this._resizeSubject.subscribe(i);return this._resizeObserver?.observe(e,{box:this._box}),()=>{this._resizeObserver?.unobserve(e),n.unsubscribe(),this._elementObservables.delete(e)}}).pipe(et(i=>i.some(n=>n.target===e)),Wa({bufferSize:1,refCount:!0}),ft(this._destroyed))),this._elementObservables.get(e)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},tN=(()=>{let e=class e{constructor(){this._observers=new Map,this._ngZone=Y(be),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,n]of this._observers)n.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(n,r){let s=r?.box||"content-box";return this._observers.has(s)||this._observers.set(s,new Sx(s)),this._observers.get(s).observe(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var bY=["notch"],yY=["matFormFieldNotchedOutline",""],wY=["*"],CY=["textField"],xY=["iconPrefixContainer"],EY=["textPrefixContainer"],SY=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],IY=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function MY(t,e){t&1&&ue(0,"span",19)}function DY(t,e){if(t&1&&(O(0,"label",18),ze(1,1),he(2,MY,1,0,"span",19),N()),t&2){let i=te(2);K("floating",i._shouldLabelFloat())("monitorResize",i._hasOutline())("id",i._labelId),Re("for",i._control.disableAutomaticLabeling?null:i._control.id),$(2),ut(!i.hideRequiredMarker&&i._control.required?2:-1)}}function kY(t,e){if(t&1&&he(0,DY,3,5,"label",18),t&2){let i=te();ut(i._hasFloatingLabel()?0:-1)}}function TY(t,e){t&1&&ue(0,"div",5)}function AY(t,e){}function RY(t,e){if(t&1&&he(0,AY,0,0,"ng-template",11),t&2){te(2);let i=Mn(1);K("ngTemplateOutlet",i)}}function LY(t,e){if(t&1&&(O(0,"div",7),he(1,RY,1,1,null,11),N()),t&2){let i=te();K("matFormFieldNotchedOutlineOpen",i._shouldLabelFloat()),$(),ut(i._forceDisplayInfixLabel()?-1:1)}}function OY(t,e){t&1&&(O(0,"div",8,2),ze(2,2),N())}function NY(t,e){t&1&&(O(0,"div",9,3),ze(2,3),N())}function FY(t,e){}function PY(t,e){if(t&1&&he(0,FY,0,0,"ng-template",11),t&2){te();let i=Mn(1);K("ngTemplateOutlet",i)}}function UY(t,e){t&1&&(O(0,"div",12),ze(1,4),N())}function $Y(t,e){t&1&&(O(0,"div",13),ze(1,5),N())}function VY(t,e){t&1&&ue(0,"div",14)}function BY(t,e){if(t&1&&(O(0,"div",16),ze(1,6),N()),t&2){let i=te();K("@transitionMessages",i._subscriptAnimationState)}}function jY(t,e){if(t&1&&(O(0,"mat-hint",20),B(1),N()),t&2){let i=te(2);K("id",i._hintLabelId),$(),rt(i.hintLabel)}}function HY(t,e){if(t&1&&(O(0,"div",17),he(1,jY,2,2,"mat-hint",20),ze(2,7),ue(3,"div",21),ze(4,8),N()),t&2){let i=te();K("@transitionMessages",i._subscriptAnimationState),$(),ut(i.hintLabel?1:-1)}}var ga=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Me({type:e,selectors:[["mat-label"]],standalone:!0});let t=e;return t})(),zY=0,cN=new Q("MatError"),Su=(()=>{let e=class e{constructor(n,r){this.id=`mat-mdc-error-${zY++}`,n||r.nativeElement.setAttribute("aria-live","polite")}};e.\u0275fac=function(r){return new(r||e)(En("aria-live"),F(xe))},e.\u0275dir=Me({type:e,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(r,s){r&2&&Wi("id",s.id)},inputs:{id:"id"},standalone:!0,features:[Dt([{provide:cN,useExisting:e}])]});let t=e;return t})(),WY=0,Eu=(()=>{let e=class e{constructor(){this.align="start",this.id=`mat-mdc-hint-${WY++}`}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Me({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(r,s){r&2&&(Wi("id",s.id),Re("align",null),Ae("mat-mdc-form-field-hint-end",s.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0});let t=e;return t})(),qY=new Q("MatPrefix");var GY=new Q("MatSuffix");var uN=new Q("FloatingLabelParent"),nN=(()=>{let e=class e{get floating(){return this._floating}set floating(n){this._floating=n,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(n){this._monitorResize=n,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(n){this._elementRef=n,this._floating=!1,this._monitorResize=!1,this._resizeObserver=Y(tN),this._ngZone=Y(be),this._parent=Y(uN),this._resizeSubscription=new tt}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return YY(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}};e.\u0275fac=function(r){return new(r||e)(F(xe))},e.\u0275dir=Me({type:e,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(r,s){r&2&&Ae("mdc-floating-label--float-above",s.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0});let t=e;return t})();function YY(t){let e=t;if(e.offsetParent!==null)return e.scrollWidth;let i=e.cloneNode(!0);i.style.setProperty("position","absolute"),i.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(i);let n=i.scrollWidth;return i.remove(),n}var iN="mdc-line-ripple--active",qg="mdc-line-ripple--deactivating",rN=(()=>{let e=class e{constructor(n,r){this._elementRef=n,this._handleTransitionEnd=s=>{let o=this._elementRef.nativeElement.classList,a=o.contains(qg);s.propertyName==="opacity"&&a&&o.remove(iN,qg)},r.runOutsideAngular(()=>{n.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let n=this._elementRef.nativeElement.classList;n.remove(qg),n.add(iN)}deactivate(){this._elementRef.nativeElement.classList.add(qg)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}};e.\u0275fac=function(r){return new(r||e)(F(xe),F(be))},e.\u0275dir=Me({type:e,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0});let t=e;return t})(),sN=(()=>{let e=class e{constructor(n,r){this._elementRef=n,this._ngZone=r,this.open=!1}ngAfterViewInit(){let n=this._elementRef.nativeElement.querySelector(".mdc-floating-label");n?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(n.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>n.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(n){!this.open||!n?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${n}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}};e.\u0275fac=function(r){return new(r||e)(F(xe),F(be))},e.\u0275cmp=Ee({type:e,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(r,s){if(r&1&&it(bY,5),r&2){let o;Le(o=Oe())&&(s._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(r,s){r&2&&Ae("mdc-notched-outline--notched",s.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[Ge],attrs:yY,ngContentSelectors:wY,decls:5,vars:0,consts:[["notch",""],[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(r,s){r&1&&(bt(),ue(0,"div",1),O(1,"div",2,0),ze(3),N(),ue(4,"div",3))},encapsulation:2,changeDetection:0});let t=e;return t})(),KY={transitionMessages:Yr("transitionMessages",[Cs("enter",pn({opacity:1,transform:"translateY(0%)"})),pi("void => enter",[pn({opacity:0,transform:"translateY(-5px)"}),Oi("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Nh=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Me({type:e});let t=e;return t})();var Fh=new Q("MatFormField"),ZY=new Q("MAT_FORM_FIELD_DEFAULT_OPTIONS"),oN=0,aN="fill",QY="auto",lN="fixed",XY="translateY(-50%)",Sr=(()=>{let e=class e{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(n){this._hideRequiredMarker=Xi(n)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||QY}set floatLabel(n){n!==this._floatLabel&&(this._floatLabel=n,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(n){let r=this._appearance,s=n||this._defaults?.appearance||aN;this._appearance=s,this._appearance==="outline"&&this._appearance!==r&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||lN}set subscriptSizing(n){this._subscriptSizing=n||this._defaults?.subscriptSizing||lN}get hintLabel(){return this._hintLabel}set hintLabel(n){this._hintLabel=n,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(n){this._explicitFormFieldControl=n}constructor(n,r,s,o,a,l,c,u){this._elementRef=n,this._changeDetectorRef=r,this._dir=o,this._platform=a,this._defaults=l,this._animationMode=c,this._hideRequiredMarker=!1,this.color="primary",this._appearance=aN,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${oN++}`,this._hintLabelId=`mat-mdc-hint-${oN++}`,this._subscriptAnimationState="",this._destroyed=new ye,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._injector=Y(It),l&&(l.appearance&&(this.appearance=l.appearance),this._hideRequiredMarker=!!l?.hideRequiredMarker,l.color&&(this.color=l.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){let n=this._control;n.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${n.controlType}`),n.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),n.ngControl&&n.ngControl.valueChanges&&n.ngControl.valueChanges.pipe(ft(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(n=>!n._isText),this._hasTextPrefix=!!this._prefixChildren.find(n=>n._isText),this._hasIconSuffix=!!this._suffixChildren.find(n=>!n._isText),this._hasTextSuffix=!!this._suffixChildren.find(n=>n._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),li(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),Dd(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(ft(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(n){let r=this._control?this._control.ngControl:null;return r&&r[n]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let n=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&n.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let r=this._hintChildren?this._hintChildren.find(o=>o.align==="start"):null,s=this._hintChildren?this._hintChildren.find(o=>o.align==="end"):null;r?n.push(r.id):this._hintLabel&&n.push(this._hintLabelId),s&&n.push(s.id)}else this._errorChildren&&n.push(...this._errorChildren.map(r=>r.id));this._control.setDescribedByIds(n)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let n=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){n.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let r=this._iconPrefixContainer?.nativeElement,s=this._textPrefixContainer?.nativeElement,o=r?.getBoundingClientRect().width??0,a=s?.getBoundingClientRect().width??0,l=this._dir.value==="rtl"?"-1":"1",c=`${o+a}px`,d=`calc(${l} * (${c} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;n.style.transform=`var( --mat-mdc-form-field-label-transform,