diff --git a/404.html b/404.html index d7e8cb9..2e55bef 100644 --- a/404.html +++ b/404.html @@ -10,5 +10,5 @@ - + diff --git a/index.html b/index.html index d7e8cb9..2e55bef 100644 --- a/index.html +++ b/index.html @@ -10,5 +10,5 @@ - + diff --git a/main-WOQ7TN2P.js b/main-O5C73GMG.js similarity index 99% rename from main-WOQ7TN2P.js rename to main-O5C73GMG.js index 8493ba0..dfa2288 100644 --- a/main-WOQ7TN2P.js +++ b/main-O5C73GMG.js @@ -160,7 +160,7 @@ ${r.map((n,o)=>`${o+1}) ${n.toString()}`).join(` `);return r===-1?e:e.substring(0,r)}function uZ(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var Zat=ts({__forward_ref__:ts});function jE(t){return t.__forward_ref__=jE,t.toString=function(){return M2(this())},t}function Nc(t){return C6e(t)?t():t}function C6e(t){return typeof t=="function"&&t.hasOwnProperty(Zat)&&t.__forward_ref__===jE}function oi(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function vA(t){return{providers:t.providers||[],imports:t.imports||[]}}function KO(t){return Rfe(t,S6e)||Rfe(t,D6e)}function E6e(t){return KO(t)!==null}function Rfe(t,e){return t.hasOwnProperty(e)?t[e]:null}function Kat(t){let e=t&&(t[S6e]||t[D6e]);return e||null}function Pfe(t){return t&&(t.hasOwnProperty(zfe)||t.hasOwnProperty(Yat))?t[zfe]:null}var S6e=ts({\u0275prov:ts}),zfe=ts({\u0275inj:ts}),D6e=ts({ngInjectableDef:ts}),Yat=ts({ngInjectorDef:ts}),di=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=oi({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function I6e(t){return t&&!!t.\u0275providers}var qat=ts({\u0275cmp:ts}),Xat=ts({\u0275dir:ts}),Jat=ts({\u0275pipe:ts}),est=ts({\u0275mod:ts}),_O=ts({\u0275fac:ts}),IE=ts({__NG_ELEMENT_ID__:ts}),Lfe=ts({__NG_ENV_ID__:ts});function YO(t){return typeof t=="string"?t:t==null?"":String(t)}function tst(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():YO(t)}function rst(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new Mo(-200,t)}function lK(t,e){throw new Mo(-201,!1)}var Ii=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(Ii||{}),dZ;function _6e(){return dZ}function _2(t){let e=dZ;return dZ=t,e}function M6e(t,e,r){let n=KO(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&Ii.Optional)return null;if(e!==void 0)return e;lK(t,"Injector")}var nst={},_E=nst,ost="__NG_DI_FLAG__",MO="ngTempTokenPath",ist="ngTokenPath",ast=/\n/gm,sst="\u0275",Hfe="__source",sA;function lst(){return sA}function yp(t){let e=sA;return sA=t,e}function cst(t,e=Ii.Default){if(sA===void 0)throw new Mo(-203,!1);return sA===null?M6e(t,void 0,e):sA.get(t,e&Ii.Optional?null:void 0,e)}function ra(t,e=Ii.Default){return(_6e()||cst)(Nc(t),e)}function dn(t,e=Ii.Default){return ra(t,qO(e))}function qO(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function fZ(t){let e=[];for(let r=0;r ");else if(typeof e=="object"){let i=[];for(let a in e)if(e.hasOwnProperty(a)){let s=e[a];i.push(a+":"+(typeof s=="string"?JSON.stringify(s):M2(s)))}o=`{${i.join(", ")}}`}return`${r}${n?"("+n+")":""}[${o}]: ${t.replace(ast,` - `)}`}function Gg(t,e){let r=t.hasOwnProperty(_O);return r?t[_O]:null}function hst(t,e,r){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(r)?cK(r,e):e(r))}function k6e(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function kO(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function gst(t,e,r,n){let o=t.length;if(o==e)t.push(r,n);else if(o===1)t.push(n,t[0]),t[0]=r;else{for(o--,t.push(t[o-1],t[o]);o>e;){let i=o-2;t[o]=t[i],o--}t[e]=r,t[e+1]=n}}function XO(t,e,r){let n=QE(t,e);return n>=0?t[n|1]=r:(n=~n,gst(t,n,e,r)),n}function K$(t,e){let r=QE(t,e);if(r>=0)return t[r|1]}function QE(t,e){return mst(t,e,1)}function mst(t,e,r){let n=0,o=t.length>>r;for(;o!==n;){let i=n+(o-n>>1),a=t[i<e?o=i:n=i+1}return~(o<e){a=i-1;break}}}for(;i-1){let i;for(;++oi?f="":f=o[d+1].toLowerCase(),n&2&&u!==f){if(H4(n))return!1;a=!0}}}}return H4(n)||a}function H4(t){return(t&1)===0}function wst(t,e,r,n){if(e===null)return-1;let o=0;if(n||!r){let i=!1;for(;o-1)for(r++;r0?'="'+s+'"':"")+"]"}else n&8?o+="."+a:n&4&&(o+=" "+a);else o!==""&&!H4(a)&&(e+=jfe(i,o),o=""),n=a,i=i||!H4(n);r++}return o!==""&&(e+=jfe(i,o)),e}function Ist(t){return t.map(Dst).join(",")}function _st(t){let e=[],r=[],n=1,o=2;for(;n{let e=H6e(t),r=lr(Je({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===B6e.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||af.Emulated,styles:t.styles||Rc,_:null,schemas:t.schemas||null,tView:null,id:""});V6e(r);let n=t.dependencies;return r.directiveDefs=Ufe(n,!1),r.pipeDefs=Ufe(n,!0),r.id=Tst(r),r})}function Mst(t){return d5(t)||R6e(t)}function kst(t){return t!==null}function yA(t){return ZO(()=>({type:t.type,bootstrap:t.bootstrap||Rc,declarations:t.declarations||Rc,imports:t.imports||Rc,exports:t.exports||Rc,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Qfe(t,e){if(t==null)return cA;let r={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],i,a,s=Yn.None;Array.isArray(o)?(s=o[0],i=o[1],a=o[2]??i):(i=o,a=o),e?(r[i]=s!==Yn.None?[n,s]:n,e[i]=a):r[i]=n}return r}function Xl(t){return ZO(()=>{let e=H6e(t);return V6e(e),e})}function UE(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 d5(t){return t[qat]||null}function R6e(t){return t[Xat]||null}function P6e(t){return t[Jat]||null}function z6e(t){let e=d5(t)||R6e(t)||P6e(t);return e!==null?e.standalone:!1}function L6e(t,e){let r=t[est]||null;if(!r&&e===!0)throw new Error(`Type ${M2(t)} does not have '\u0275mod' property.`);return r}function H6e(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||cA,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Rc,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Qfe(t.inputs,e),outputs:Qfe(t.outputs),debugInfo:null}}function V6e(t){t.features?.forEach(e=>e(t))}function Ufe(t,e){if(!t)return null;let r=e?P6e:Mst;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(kst)}function Tst(t){let e=0,r=[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 o of r)e=Math.imul(31,e)+o.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function JO(t){return{\u0275providers:t}}function Ost(...t){return{\u0275providers:j6e(!0,t),\u0275fromNgModule:!0}}function j6e(t,...e){let r=[],n=new Set,o,i=a=>{r.push(a)};return cK(e,a=>{let s=a;pZ(s,i,[],n)&&(o||=[],o.push(s))}),o!==void 0&&Q6e(o,i),r}function Q6e(t,e){for(let r=0;r{e(i,n)})}}function pZ(t,e,r,n){if(t=Nc(t),!t)return!1;let o=null,i=Pfe(t),a=!i&&d5(t);if(!i&&!a){let l=t.ngModule;if(i=Pfe(l),i)o=l;else return!1}else{if(a&&!a.standalone)return!1;o=t}let s=n.has(o);if(a){if(s)return!1;if(n.add(o),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let u of l)pZ(u,e,r,n)}}else if(i){if(i.imports!=null&&!s){n.add(o);let u;try{cK(i.imports,d=>{pZ(d,e,r,n)&&(u||=[],u.push(d))})}finally{}u!==void 0&&Q6e(u,e)}if(!s){let u=Gg(o)||(()=>new o);e({provide:o,useFactory:u,deps:Rc},o),e({provide:O6e,useValue:o,multi:!0},o),e({provide:uA,useValue:()=>ra(o),multi:!0},o)}let l=i.providers;if(l!=null&&!s){let u=t;dK(l,d=>{e(d,u)})}}else return!1;return o!==t&&t.providers!==void 0}function dK(t,e){for(let r of t)I6e(r)&&(r=r.\u0275providers),Array.isArray(r)?dK(r,e):e(r)}var Bst=ts({provide:String,useValue:ts});function U6e(t){return t!==null&&typeof t=="object"&&Bst in t}function Fst(t){return!!(t&&t.useExisting)}function Nst(t){return!!(t&&t.useFactory)}function dA(t){return typeof t=="function"}function Rst(t){return!!t.useClass}var eB=new di(""),xO={},Pst={},Y$;function tB(){return Y$===void 0&&(Y$=new TO),Y$}var ua=class{},kE=class extends ua{get destroyed(){return this._destroyed}constructor(e,r,n,o){super(),this.parent=r,this.source=n,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,mZ(e,a=>this.processProvider(a)),this.records.set(T6e,oA(void 0,this)),o.has("environment")&&this.records.set(ua,oA(void 0,this));let i=this.records.get(eB);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(O6e,Rc,Ii.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=Ei(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of r)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Ei(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=yp(this),n=_2(void 0),o;try{return e()}finally{yp(r),_2(n)}}get(e,r=_E,n=Ii.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Lfe))return e[Lfe](this);n=qO(n);let o,i=yp(this),a=_2(void 0);try{if(!(n&Ii.SkipSelf)){let l=this.records.get(e);if(l===void 0){let u=jst(e)&&KO(e);u&&this.injectableDefInScope(u)?l=oA(gZ(e),xO):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l)}let s=n&Ii.Self?tB():this.parent;return r=n&Ii.Optional&&r===_E?null:r,s.get(e,r)}catch(s){if(s.name==="NullInjectorError"){if((s[MO]=s[MO]||[]).unshift(M2(e)),i)throw s;return dst(s,e,"R3InjectorError",this.source)}else throw s}finally{_2(a),yp(i)}}resolveInjectorInitializers(){let e=Ei(null),r=yp(this),n=_2(void 0),o;try{let i=this.get(uA,Rc,Ii.Self);for(let a of i)a()}finally{yp(r),_2(n),Ei(e)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push(M2(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Mo(205,!1)}processProvider(e){e=Nc(e);let r=dA(e)?e:Nc(e&&e.provide),n=Lst(e);if(!dA(e)&&e.multi===!0){let o=this.records.get(r);o||(o=oA(void 0,xO,!0),o.factory=()=>fZ(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,n)}hydrate(e,r){let n=Ei(null);try{return r.value===xO&&(r.value=Pst,r.value=r.factory()),typeof r.value=="object"&&r.value&&Vst(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{Ei(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=Nc(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function gZ(t){let e=KO(t),r=e!==null?e.factory:Gg(t);if(r!==null)return r;if(t instanceof di)throw new Mo(204,!1);if(t instanceof Function)return zst(t);throw new Mo(204,!1)}function zst(t){if(t.length>0)throw new Mo(204,!1);let r=Kat(t);return r!==null?()=>r.factory(t):()=>new t}function Lst(t){if(U6e(t))return oA(void 0,t.useValue);{let e=W6e(t);return oA(e,xO)}}function W6e(t,e,r){let n;if(dA(t)){let o=Nc(t);return Gg(o)||gZ(o)}else if(U6e(t))n=()=>Nc(t.useValue);else if(Nst(t))n=()=>t.useFactory(...fZ(t.deps||[]));else if(Fst(t))n=()=>ra(Nc(t.useExisting));else{let o=Nc(t&&(t.useClass||t.provide));if(Hst(t))n=()=>new o(...fZ(t.deps));else return Gg(o)||gZ(o)}return n}function oA(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function Hst(t){return!!t.deps}function Vst(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function jst(t){return typeof t=="function"||typeof t=="object"&&t instanceof di}function mZ(t,e){for(let r of t)Array.isArray(r)?mZ(r,e):r&&I6e(r)?mZ(r.\u0275providers,e):e(r)}function tm(t,e){t instanceof kE&&t.assertNotDestroyed();let r,n=yp(t),o=_2(void 0);try{return e()}finally{yp(n),_2(o)}}function G6e(){return _6e()!==void 0||lst()!=null}function Qst(t){if(!G6e())throw new Mo(-203,!1)}function Ust(t){return typeof t=="function"}var p5=0,ei=1,Ho=2,ul=3,V4=4,W4=5,TE=6,OE=7,Kl=8,fA=9,j4=10,_1=11,BE=12,Wfe=13,AA=14,Q4=15,WE=16,iA=17,f5=18,rB=19,$6e=20,Ap=21,wO=22,$g=23,ql=25,Z6e=1;var Zg=7,OO=8,hA=9,Yl=10,fK=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(fK||{});function Ug(t){return Array.isArray(t)&&typeof t[Z6e]=="object"}function g5(t){return Array.isArray(t)&&t[Z6e]===!0}function hK(t){return(t.flags&4)!==0}function nB(t){return t.componentOffset>-1}function oB(t){return(t.flags&1)===1}function bp(t){return!!t.template}function Wst(t){return(t[Ho]&512)!==0}var vZ=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function K6e(t,e,r,n){e!==null?e.applyValueToInputSignal(e,n):t[r]=n}function Sd(){return Y6e}function Y6e(t){return t.type.prototype.ngOnChanges&&(t.setInput=$st),Gst}Sd.ngInherit=!0;function Gst(){let t=X6e(this),e=t?.current;if(e){let r=t.previous;if(r===cA)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function $st(t,e,r,n,o){let i=this.declaredInputs[n],a=X6e(t)||Zst(t,{previous:cA,current:null}),s=a.current||(a.current={}),l=a.previous,u=l[i];s[i]=new vZ(u&&u.currentValue,r,l===cA),K6e(t,e,o,r)}var q6e="__ngSimpleChanges__";function X6e(t){return t[q6e]||null}function Zst(t,e){return t[q6e]=e}var Gfe=null;var nf=function(t,e,r){Gfe?.(t,e,r)},Kst="svg",Yst="math",qst=!1;function Xst(){return qst}function sf(t){for(;Array.isArray(t);)t=t[p5];return t}function J6e(t,e){return sf(e[t])}function Dd(t,e){return sf(e[t.index])}function pK(t,e){return t.data[e]}function gK(t,e){return t[e]}function Cp(t,e){let r=e[t];return Ug(r)?r:r[p5]}function mK(t){return(t[Ho]&128)===128}function Jst(t){return g5(t[ul])}function pA(t,e){return e==null?null:t[e]}function e5e(t){t[iA]=0}function e1t(t){t[Ho]&1024||(t[Ho]|=1024,mK(t)&&FE(t))}function t1t(t,e){for(;t>0;)e=e[AA],t--;return e}function vK(t){return!!(t[Ho]&9216||t[$g]?.dirty)}function yZ(t){t[j4].changeDetectionScheduler?.notify(1),vK(t)?FE(t):t[Ho]&64&&(Xst()?(t[Ho]|=1024,FE(t)):t[j4].changeDetectionScheduler?.notify())}function FE(t){t[j4].changeDetectionScheduler?.notify();let e=NE(t);for(;e!==null&&!(e[Ho]&8192||(e[Ho]|=8192,!mK(e)));)e=NE(e)}function t5e(t,e){if((t[Ho]&256)===256)throw new Mo(911,!1);t[Ap]===null&&(t[Ap]=[]),t[Ap].push(e)}function r1t(t,e){if(t[Ap]===null)return;let r=t[Ap].indexOf(e);r!==-1&&t[Ap].splice(r,1)}function NE(t){let e=t[ul];return g5(e)?e[ul]:e}var Si={lFrame:l5e(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function n1t(){return Si.lFrame.elementDepthCount}function o1t(){Si.lFrame.elementDepthCount++}function i1t(){Si.lFrame.elementDepthCount--}function r5e(){return Si.bindingsEnabled}function a1t(){return Si.skipHydrationRootTNode!==null}function s1t(t){return Si.skipHydrationRootTNode===t}function l1t(){Si.skipHydrationRootTNode=null}function vi(){return Si.lFrame.lView}function u0(){return Si.lFrame.tView}function qo(t){return Si.lFrame.contextLView=t,t[Kl]}function Xo(t){return Si.lFrame.contextLView=null,t}function Jl(){let t=n5e();for(;t!==null&&t.type===64;)t=t.parent;return t}function n5e(){return Si.lFrame.currentTNode}function c1t(){let t=Si.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function rm(t,e){let r=Si.lFrame;r.currentTNode=t,r.isParent=e}function yK(){return Si.lFrame.isParent}function o5e(){Si.lFrame.isParent=!1}function u1t(){return Si.lFrame.contextLView}function bA(){let t=Si.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function d1t(t){return Si.lFrame.bindingIndex=t}function xA(){return Si.lFrame.bindingIndex++}function i5e(t){let e=Si.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function f1t(){return Si.lFrame.inI18n}function h1t(t,e){let r=Si.lFrame;r.bindingIndex=r.bindingRootIndex=t,AZ(e)}function p1t(){return Si.lFrame.currentDirectiveIndex}function AZ(t){Si.lFrame.currentDirectiveIndex=t}function g1t(t){let e=Si.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function m1t(){return Si.lFrame.currentQueryIndex}function AK(t){Si.lFrame.currentQueryIndex=t}function v1t(t){let e=t[ei];return e.type===2?e.declTNode:e.type===1?t[W4]:null}function a5e(t,e,r){if(r&Ii.SkipSelf){let o=e,i=t;for(;o=o.parent,o===null&&!(r&Ii.Host);)if(o=v1t(i),o===null||(i=i[AA],o.type&10))break;if(o===null)return!1;e=o,t=i}let n=Si.lFrame=s5e();return n.currentTNode=e,n.lView=t,!0}function bK(t){let e=s5e(),r=t[ei];Si.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function s5e(){let t=Si.lFrame,e=t===null?null:t.child;return e===null?l5e(t):e}function l5e(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 c5e(){let t=Si.lFrame;return Si.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var u5e=c5e;function xK(){let t=c5e();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 y1t(t){return(Si.lFrame.contextLView=t1t(t,Si.lFrame.contextLView))[Kl]}function Ep(){return Si.lFrame.selectedIndex}function Kg(t){Si.lFrame.selectedIndex=t}function wK(){let t=Si.lFrame;return pK(t.tView,t.selectedIndex)}function A1t(){return Si.lFrame.currentNamespace}var d5e=!0;function iB(){return d5e}function aB(t){d5e=t}function b1t(t,e,r){let{ngOnChanges:n,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(n){let a=Y6e(e);(r.preOrderHooks??=[]).push(t,a),(r.preOrderCheckHooks??=[]).push(t,a)}o&&(r.preOrderHooks??=[]).push(0-t,o),i&&((r.preOrderHooks??=[]).push(t,i),(r.preOrderCheckHooks??=[]).push(t,i))}function sB(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r=n)break}else e[l]<0&&(t[iA]+=65536),(s>14>16&&(t[Ho]&3)===e&&(t[Ho]+=16384,$fe(s,i)):$fe(s,i)}var lA=-1,Yg=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function w1t(t){return t instanceof Yg}function C1t(t){return(t.flags&8)!==0}function E1t(t){return(t.flags&16)!==0}function h5e(t){return t!==lA}function BO(t){return t&32767}function S1t(t){return t>>16}function FO(t,e){let r=S1t(t),n=e;for(;r>0;)n=n[AA],r--;return n}var bZ=!0;function NO(t){let e=bZ;return bZ=t,e}var D1t=256,p5e=D1t-1,g5e=5,I1t=0,of={};function _1t(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(IE)&&(n=r[IE]),n==null&&(n=r[IE]=I1t++);let o=n&p5e,i=1<>g5e)]|=i}function RO(t,e){let r=m5e(t,e);if(r!==-1)return r;let n=e[ei];n.firstCreatePass&&(t.injectorIndex=e.length,X$(n.data,t),X$(e,null),X$(n.blueprint,null));let o=CK(t,e),i=t.injectorIndex;if(h5e(o)){let a=BO(o),s=FO(o,e),l=s[ei].data;for(let u=0;u<8;u++)e[i+u]=s[a+u]|l[a+u]}return e[i+8]=o,i}function X$(t,e){t.push(0,0,0,0,0,0,0,0,e)}function m5e(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function CK(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,o=e;for(;o!==null;){if(n=x5e(o),n===null)return lA;if(r++,o=o[AA],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return lA}function xZ(t,e,r){_1t(t,e,r)}function M1t(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let n=r.length,o=0;for(;o>20,f=n?s:s+d,c=o?s+d:u;for(let h=f;h=l&&g.type===r)return h}if(o){let h=a[l];if(h&&bp(h)&&h.type===r)return l}return null}function qg(t,e,r,n){let o=t[r],i=e.data;if(w1t(o)){let a=o;a.resolving&&rst(tst(i[r]));let s=NO(a.canSeeViewProviders);a.resolving=!0;let l,u=a.injectImpl?_2(a.injectImpl):null,d=a5e(t,n,Ii.Default);try{o=t[r]=a.factory(void 0,i,t,n),e.firstCreatePass&&r>=n.directiveStart&&b1t(r,i[r],e)}finally{u!==null&&_2(u),NO(s),a.resolving=!1,u5e()}}return o}function T1t(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(IE)?t[IE]:void 0;return typeof e=="number"?e>=0?e&p5e:O1t:e}function Zfe(t,e,r){let n=1<>g5e)]&n)}function Kfe(t,e){return!(t&Ii.Self)&&!(t&Ii.Host&&e)}var Wg=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return A5e(this._tNode,this._lView,e,qO(n),r)}};function O1t(){return new Wg(Jl(),vi())}function GE(t){return ZO(()=>{let e=t.prototype.constructor,r=e[_O]||wZ(e),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let i=o[_O]||wZ(o);if(i&&i!==r)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function wZ(t){return C6e(t)?()=>{let e=wZ(Nc(t));return e&&e()}:Gg(t)}function B1t(t,e,r,n,o){let i=t,a=e;for(;i!==null&&a!==null&&a[Ho]&2048&&!(a[Ho]&512);){let s=b5e(i,a,r,n|Ii.Self,of);if(s!==of)return s;let l=i.parent;if(!l){let u=a[$6e];if(u){let d=u.get(r,of,n);if(d!==of)return d}l=x5e(a),a=a[AA]}i=l}return o}function x5e(t){let e=t[ei],r=e.type;return r===2?e.declTNode:r===1?t[W4]:null}function EK(t){return M1t(Jl(),t)}function Yfe(t,e=null,r=null,n){let o=w5e(t,e,r,n);return o.resolveInjectorInitializers(),o}function w5e(t,e=null,r=null,n,o=new Set){let i=[r||Rc,Ost(t)];return n=n||(typeof t=="object"?void 0:M2(t)),new kE(i,e||tB(),n||null,o)}var dl=(()=>{let e=class e{static create(n,o){if(Array.isArray(n))return Yfe({name:""},o,n,"");{let i=n.name??"";return Yfe({name:i},n.parent,n.providers,i)}}};e.THROW_IF_NOT_FOUND=_E,e.NULL=new TO,e.\u0275prov=oi({token:e,providedIn:"any",factory:()=>ra(T6e)}),e.__NG_ELEMENT_ID__=-1;let t=e;return t})();var F1t="ngOriginalError";function J$(t){return t[F1t]}var U4=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&J$(e);for(;r&&J$(r);)r=J$(r);return r||null}},C5e=new di("",{providedIn:"root",factory:()=>dn(U4).handleError.bind(void 0)}),lB=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=N1t,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),CZ=class extends lB{constructor(e){super(),this._lView=e}onDestroy(e){return t5e(this._lView,e),()=>r1t(this._lView,e)}};function N1t(){return new CZ(vi())}var EZ=class{constructor(){this.destroyed=!1,this.listeners=null,this.errorHandler=dn(U4,{optional:!0}),this.destroyRef=dn(lB),this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(e){if(this.destroyed)throw new Mo(953,!1);return(this.listeners??=[]).push(e),{unsubscribe:()=>{let r=this.listeners?.indexOf(e);r!==void 0&&r!==-1&&this.listeners?.splice(r,1)}}}emit(e){if(this.destroyed)throw new Mo(953,!1);if(this.listeners===null)return;let r=Ei(null);try{for(let n of this.listeners)try{n(e)}catch(o){this.errorHandler?.handleError(o)}}finally{Ei(r)}}};function wA(t){return new EZ}function qfe(t,e){return w6e(t,e)}function R1t(t){return w6e(x6e,t)}var So=(qfe.required=R1t,qfe);function P1t(){return CA(Jl(),vi())}function CA(t,e){return new Q1(Dd(t,e))}var Q1=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=P1t;let t=e;return t})();function z1t(t){return t instanceof Q1?t.nativeElement:t}var SZ=class extends $l{constructor(e=!1){super(),this.destroyRef=void 0,this.__isAsync=e,G6e()&&(this.destroyRef=dn(lB,{optional:!0})??void 0)}emit(e){let r=Ei(null);try{super.next(e)}finally{Ei(r)}}subscribe(e,r,n){let o=e,i=r||(()=>null),a=n;if(e&&typeof e=="object"){let l=e;o=l.next?.bind(l),i=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(i=eZ(i),o&&(o=eZ(o)),a&&(a=eZ(a)));let s=super.subscribe({next:o,error:i,complete:a});return e instanceof s0&&e.add(s),s}};function eZ(t){return e=>{setTimeout(t,void 0,e)}}var Zl=SZ;function L1t(){return this._results[Symbol.iterator]()}var DZ=class t{get changes(){return this._changes??=new Zl}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 r=t.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=L1t)}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,r){return this._results.reduce(e,r)}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,r){this.dirty=!1;let n=pst(e);(this._changesDetected=!hst(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function E5e(t){return(t.flags&128)===128}var S5e=new Map,H1t=0;function V1t(){return H1t++}function j1t(t){S5e.set(t[rB],t)}function Q1t(t){S5e.delete(t[rB])}var Xfe="__ngContext__";function xp(t,e){Ug(e)?(t[Xfe]=e[rB],j1t(e)):t[Xfe]=e}function D5e(t){return _5e(t[BE])}function I5e(t){return _5e(t[V4])}function _5e(t){for(;t!==null&&!g5(t);)t=t[V4];return t}var IZ;function M5e(t){IZ=t}function U1t(){if(IZ!==void 0)return IZ;if(typeof document<"u")return document;throw new Mo(210,!1)}var SK=new di("",{providedIn:"root",factory:()=>W1t}),W1t="ng",DK=new di(""),EA=new di("",{providedIn:"platform",factory:()=>"unknown"});var IK=new di("",{providedIn:"root",factory:()=>U1t().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var G1t="h",$1t="b";var Z1t=()=>null;function _K(t,e,r=!1){return Z1t(t,e,r)}var k5e=!1,K1t=new di("",{providedIn:"root",factory:()=>k5e});var yO;function Y1t(){if(yO===void 0&&(yO=null,Qg.trustedTypes))try{yO=Qg.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return yO}function Jfe(t){return Y1t()?.createScriptURL(t)||t}var PO=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${b6e})`}};function nm(t){return t instanceof PO?t.changingThisBreaksApplicationSecurity:t}function MK(t,e){let r=q1t(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${b6e})`)}return r===e}function q1t(t){return t instanceof PO&&t.getTypeName()||null}var X1t=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function T5e(t){return t=String(t),t.match(X1t)?t:"unsafe:"+t}var cB=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}(cB||{});function om(t){let e=B5e();return e?e.sanitize(cB.URL,t)||"":MK(t,"URL")?nm(t):T5e(YO(t))}function J1t(t){let e=B5e();if(e)return Jfe(e.sanitize(cB.RESOURCE_URL,t)||"");if(MK(t,"ResourceURL"))return Jfe(nm(t));throw new Mo(904,!1)}function e0t(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?J1t:om}function O5e(t,e,r){return e0t(e,r)(t)}function B5e(){let t=vi();return t&&t[j4].sanitizer}var t0t=/^>|^->||--!>|)/g,n0t="\u200B$1\u200B";function o0t(t){return t.replace(t0t,e=>e.replace(r0t,n0t))}function F5e(t){return t instanceof Function?t():t}var h5=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(h5||{}),i0t;function kK(t,e){return i0t(t,e)}function aA(t,e,r,n,o){if(n!=null){let i,a=!1;g5(n)?i=n:Ug(n)&&(a=!0,n=n[p5]);let s=sf(n);t===0&&r!==null?o==null?z5e(e,r,s):zO(e,r,s,o||null,!0):t===1&&r!==null?zO(e,r,s,o||null,!0):t===2?C0t(e,s,a):t===3&&e.destroyNode(s),i!=null&&S0t(e,t,i,r,o)}}function a0t(t,e){return t.createText(e)}function s0t(t,e,r){t.setValue(e,r)}function l0t(t,e){return t.createComment(o0t(e))}function N5e(t,e,r){return t.createElement(e,r)}function c0t(t,e){R5e(t,e),e[p5]=null,e[W4]=null}function u0t(t,e,r,n,o,i){n[p5]=o,n[W4]=e,fB(t,n,r,1,o,i)}function R5e(t,e){e[j4].changeDetectionScheduler?.notify(1),fB(t,e,e[_1],2,null,null)}function d0t(t){let e=t[BE];if(!e)return tZ(t[ei],t);for(;e;){let r=null;if(Ug(e))r=e[BE];else{let n=e[Yl];n&&(r=n)}if(!r){for(;e&&!e[V4]&&e!==t;)Ug(e)&&tZ(e[ei],e),e=e[ul];e===null&&(e=t),Ug(e)&&tZ(e[ei],e),r=e&&e[V4]}e=r}}function f0t(t,e,r,n){let o=Yl+n,i=r.length;n>0&&(r[o-1][V4]=e),n0&&(t[r-1][V4]=n[V4]);let i=kO(t,Yl+e);c0t(n[ei],n);let a=i[f5];a!==null&&a.detachView(i[ei]),n[ul]=null,n[V4]=null,n[Ho]&=-129}return n}function uB(t,e){if(!(e[Ho]&256)){let r=e[_1];r.destroyNode&&fB(t,e,r,3,null,null),d0t(e)}}function tZ(t,e){if(e[Ho]&256)return;let r=Ei(null);try{e[Ho]&=-129,e[Ho]|=256,e[$g]&&M$(e[$g]),g0t(t,e),p0t(t,e),e[ei].type===1&&e[_1].destroy();let n=e[WE];if(n!==null&&g5(e[ul])){n!==e[ul]&&P5e(n,e);let o=e[f5];o!==null&&o.detachView(t)}Q1t(e)}finally{Ei(r)}}function p0t(t,e){let r=t.cleanup,n=e[OE];if(r!==null)for(let i=0;i=0?n[a]():n[-a].unsubscribe(),i+=2}else{let a=n[r[i+1]];r[i].call(a)}n!==null&&(e[OE]=null);let o=e[Ap];if(o!==null){e[Ap]=null;for(let i=0;i-1){let{encapsulation:i}=t.data[n.directiveStart+o];if(i===af.None||i===af.Emulated)return null}return Dd(n,r)}}function zO(t,e,r,n,o){t.insertBefore(e,r,n,o)}function z5e(t,e,r){t.appendChild(e,r)}function e6e(t,e,r,n,o){n!==null?zO(t,e,r,n,o):z5e(t,e,r)}function y0t(t,e,r,n){t.removeChild(e,r,n)}function TK(t,e){return t.parentNode(e)}function A0t(t,e){return t.nextSibling(e)}function b0t(t,e,r){return w0t(t,e,r)}function x0t(t,e,r){return t.type&40?Dd(t,r):null}var w0t=x0t,t6e;function dB(t,e,r,n){let o=m0t(t,n,e),i=e[_1],a=n.parent||e[W4],s=b0t(a,n,e);if(o!=null)if(Array.isArray(r))for(let l=0;lql&&j5e(t,e,ql,!1),nf(a?2:0,o),r(n,o)}finally{Kg(i),nf(a?3:1,o)}}function BK(t,e,r){if(hK(e)){let n=Ei(null);try{let o=e.directiveStart,i=e.directiveEnd;for(let a=o;anull;function F0t(t,e,r,n){let o=X5e(e);o.push(r),t.firstCreatePass&&J5e(t).push(n,o.length-1)}function N0t(t,e,r,n,o,i){let a=e?e.injectorIndex:-1,s=0;return a1t()&&(s|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function r6e(t,e,r,n,o){for(let i in e){if(!e.hasOwnProperty(i))continue;let a=e[i];if(a===void 0)continue;n??={};let s,l=Yn.None;Array.isArray(a)?(s=a[0],l=a[1]):s=a;let u=i;if(o!==null){if(!o.hasOwnProperty(i))continue;u=o[i]}t===0?n6e(n,r,u,s,l):n6e(n,r,u,s)}return n}function n6e(t,e,r,n,o){let i;t.hasOwnProperty(r)?(i=t[r]).push(e,n):i=t[r]=[e,n],o!==void 0&&i.push(o)}function R0t(t,e,r){let n=e.directiveStart,o=e.directiveEnd,i=t.data,a=e.attrs,s=[],l=null,u=null;for(let d=n;d0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function V0t(t,e,r,n){let o=r.directiveStart,i=r.directiveEnd;nB(r)&&Z0t(e,r,t.data[o+r.componentOffset]),t.firstCreatePass||RO(r,e),xp(n,e);let a=r.initialInputs;for(let s=o;s{FE(t.lView)},consumerOnSignalRead(){this.lView[$g]=this}}),ohe=100;function ihe(t,e=!0,r=0){let n=t[j4],o=n.rendererFactory,i=!1;i||o.begin?.();try{llt(t,r)}catch(a){throw e&&ehe(t,a),a}finally{i||(o.end?.(),n.inlineEffectRunner?.flush())}}function llt(t,e){TZ(t,e);let r=0;for(;vK(t);){if(r===ohe)throw new Mo(103,!1);r++,TZ(t,1)}}function clt(t,e,r,n){let o=e[Ho];if((o&256)===256)return;let i=!1;!i&&e[j4].inlineEffectRunner?.flush(),bK(e);let a=null,s=null;!i&&ult(t)&&(s=olt(e),a=QT(s));try{e5e(e),d1t(t.bindingStartIndex),r!==null&&W5e(t,e,r,2,n);let l=(o&3)===3;if(!i)if(l){let f=t.preOrderCheckHooks;f!==null&&CO(e,f,null)}else{let f=t.preOrderHooks;f!==null&&EO(e,f,0,null),q$(e,0)}if(dlt(e),ahe(e,0),t.contentQueries!==null&&q5e(t,e),!i)if(l){let f=t.contentCheckHooks;f!==null&&CO(e,f)}else{let f=t.contentHooks;f!==null&&EO(e,f,1),q$(e,1)}_0t(t,e);let u=t.components;u!==null&&lhe(e,u,0);let d=t.viewQuery;if(d!==null&&kZ(2,d,n),!i)if(l){let f=t.viewCheckHooks;f!==null&&CO(e,f)}else{let f=t.viewHooks;f!==null&&EO(e,f,2),q$(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[wO]){for(let f of e[wO])f();e[wO]=null}i||(e[Ho]&=-73)}catch(l){throw FE(e),l}finally{s!==null&&(UT(s,a),alt(s)),xK()}}function ult(t){return t.type!==2}function ahe(t,e){for(let r=D5e(t);r!==null;r=I5e(r))for(let n=Yl;n-1&&(RE(e,n),kO(r,n))}this._attachedToViewContainer=!1}uB(this._lView[ei],this._lView)}onDestroy(e){t5e(this._lView,e)}markForCheck(){HK(this._cdRefInjectingView||this._lView)}detach(){this._lView[Ho]&=-129}reattach(){yZ(this._lView),this._lView[Ho]|=128}detectChanges(){this._lView[Ho]|=1024,ihe(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Mo(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,R5e(this._lView[ei],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Mo(902,!1);this._appRef=e,yZ(this._lView)}},Cd=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=glt;let t=e;return t})(),hlt=Cd,plt=class extends hlt{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let o=gB(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:n});return new Xg(o)}};function glt(){return vB(Jl(),vi())}function vB(t,e){return t.type&4?new plt(e,t,CA(t,e)):null}var Hyr=new RegExp(`^(\\d+)*(${$1t}|${G1t})*(.*)`);var mlt=()=>null;function zE(t,e){return mlt(t,e)}var OZ=class{},BZ=class{},HO=class{};function vlt(t){let e=Error(`No component factory found for ${M2(t)}.`);return e[ylt]=t,e}var ylt="ngComponent";var FZ=class{resolveComponentFactory(e){throw vlt(e)}},yB=(()=>{let e=class e{};e.NULL=new FZ;let t=e;return t})(),LE=class{},im=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>Alt();let t=e;return t})();function Alt(){let t=vi(),e=Jl(),r=Cp(e.index,t);return(Ug(r)?r:t)[_1]}var blt=(()=>{let e=class e{};e.\u0275prov=oi({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),rZ={};var o6e=new Set;function am(t){o6e.has(t)||(o6e.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function i6e(...t){}function xlt(){let t=typeof Qg.requestAnimationFrame=="function",e=Qg[t?"requestAnimationFrame":"setTimeout"],r=Qg[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&e&&r){let n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);let o=r[Zone.__symbol__("OriginalDelegate")];o&&(r=o)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:r}}var _a=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Zl(!1),this.onMicrotaskEmpty=new Zl(!1),this.onStable=new Zl(!1),this.onError=new Zl(!1),typeof Zone>"u")throw new Mo(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!n&&r,o.shouldCoalesceRunChangeDetection=n,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=xlt().nativeRequestAnimationFrame,Elt(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new Mo(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new Mo(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,o){let i=this._inner,a=i.scheduleEventTask("NgZoneEvent: "+o,e,wlt,i6e,i6e);try{return i.runTask(a,r,n)}finally{i.cancelTask(a)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},wlt={};function VK(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 Clt(t){t.isCheckStableRunning||t.lastRequestAnimationFrameId!==-1||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Qg,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,NZ(t),t.isCheckStableRunning=!0,VK(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),NZ(t))}function Elt(t){let e=()=>{Clt(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,o,i,a,s)=>{if(Slt(s))return r.invokeTask(o,i,a,s);try{return a6e(t),r.invokeTask(o,i,a,s)}finally{(t.shouldCoalesceEventChangeDetection&&i.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),s6e(t)}},onInvoke:(r,n,o,i,a,s,l)=>{try{return a6e(t),r.invoke(o,i,a,s,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),s6e(t)}},onHasTask:(r,n,o,i)=>{r.hasTask(o,i),n===o&&(i.change=="microTask"?(t._hasPendingMicrotasks=i.microTask,NZ(t),VK(t)):i.change=="macroTask"&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(r,n,o,i)=>(r.handleError(o,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}function NZ(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.lastRequestAnimationFrameId!==-1?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function a6e(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function s6e(t){t._nesting--,VK(t)}function Slt(t){return!Array.isArray(t)||t.length!==1?!1:t[0].data?.__ignore_ng_zone__===!0}var che=(()=>{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 o of n)o()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=oi({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function VO(t,e,r){let n=r?t.styles:null,o=r?t.classes:null,i=0;if(e!==null)for(let a=0;a0&&H5e(t,r,i.join(" "))}}function Olt(t,e,r){let n=t.projection=[];for(let o=0;o{let e=class e{};e.__NG_ELEMENT_ID__=Flt;let t=e;return t})();function Flt(){let t=Jl();return dhe(t,vi())}var Nlt=sm,uhe=class extends Nlt{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return CA(this._hostTNode,this._hostLView)}get injector(){return new Wg(this._hostTNode,this._hostLView)}get parentInjector(){let e=CK(this._hostTNode,this._hostLView);if(h5e(e)){let r=FO(e,this._hostLView),n=BO(e),o=r[ei].data[n+8];return new Wg(o,r)}else return new Wg(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=c6e(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-Yl}createEmbeddedView(e,r,n){let o,i;typeof n=="number"?o=n:n!=null&&(o=n.index,i=n.injector);let a=zE(this._lContainer,e.ssrId),s=e.createEmbeddedViewImpl(r||{},i,a);return this.insertImpl(s,o,PE(this._hostTNode,a)),s}createComponent(e,r,n,o,i){let a=e&&!Ust(e),s;if(a)s=r;else{let g=r||{};s=g.index,n=g.injector,o=g.projectableNodes,i=g.environmentInjector||g.ngModuleRef}let l=a?e:new Jg(d5(e)),u=n||this.parentInjector;if(!i&&l.ngModule==null){let p=(a?u:this.parentInjector).get(ua,null);p&&(i=p)}let d=d5(l.componentType??{}),f=zE(this._lContainer,d?.id??null),c=f?.firstChild??null,h=l.create(u,o,c,i);return this.insertImpl(h.hostView,s,PE(this._hostTNode,f)),h}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let o=e._lView;if(Jst(o)){let s=this.indexOf(e);if(s!==-1)this.detach(s);else{let l=o[ul],u=new uhe(l,l[W4],l[ul]);u.detach(u.indexOf(e))}}let i=this._adjustIndex(r),a=this._lContainer;return mB(a,o,i,n),e.attachToViewContainerRef(),k6e(nZ(a),i,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=c6e(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=RE(this._lContainer,r);n&&(kO(nZ(this._lContainer),r),uB(n[ei],n))}detach(e){let r=this._adjustIndex(e,-1),n=RE(this._lContainer,r);return n&&kO(nZ(this._lContainer),r)!=null?new Xg(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function c6e(t){return t[OO]}function nZ(t){return t[OO]||(t[OO]=[])}function dhe(t,e){let r,n=e[t.index];return g5(n)?r=n:(r=Y5e(n,e,null,t),e[t.index]=r,pB(e,r)),Plt(r,e,t,n),new uhe(r,t,e)}function Rlt(t,e){let r=t[_1],n=r.createComment(""),o=Dd(e,t),i=TK(r,o);return zO(r,i,n,A0t(r,o),!1),n}var Plt=Hlt,zlt=()=>!1;function Llt(t,e,r){return zlt(t,e,r)}function Hlt(t,e,r,n){if(t[Zg])return;let o;r.type&8?o=sf(n):o=Rlt(e,r),t[Zg]=o}var zZ=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},LZ=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let n=e.contentQueries!==null?e.contentQueries[0]:r.length,o=[];for(let i=0;i0)n.push(a[s/2]);else{let u=i[s+1],d=e[-l];for(let f=Yl;fe.trim())}function ghe(t,e,r){t.queries===null&&(t.queries=new HZ),t.queries.track(new VZ(e,r))}function Zlt(t,e){let r=t.contentQueries||(t.contentQueries=[]),n=r.length?r[r.length-1]:-1;e!==n&&r.push(t.queries.length-1,e)}function mhe(t,e){return t.queries.getByIndex(e)}function Klt(t,e){let r=t[ei],n=mhe(r,e);return n.crossesNgTemplate?jZ(r,t,e,[]):fhe(r,t,n,e)}function Ylt(t){return typeof t=="function"&&t[wu]!==void 0}function No(t,e){am("NgSignals");let r=cfe(t),n=r[wu];return e?.equal&&(n.equal=e.equal),r.set=o=>$T(n,o),r.update=o=>ufe(n,o),r.asReadonly=qlt.bind(r),r}function qlt(){let t=this[wu];if(t.readonlyFn===void 0){let e=()=>this();e[wu]=t,t.readonlyFn=e}return t.readonlyFn}function vhe(t){return Ylt(t)&&typeof t.set=="function"}function jK(t,e){let r,n=k$(()=>{r._dirtyCounter();let o=Xlt(r,t);if(e&&o===void 0)throw new Mo(-951,!1);return o});return r=n[wu],r._dirtyCounter=No(0),r._flatValue=void 0,n}function yhe(){return jK(!0,!1)}function Ahe(){return jK(!0,!0)}function bhe(){return jK(!1,!1)}function xhe(t,e){let r=t[wu];r._lView=vi(),r._queryIndex=e,r._queryList=hhe(r._lView,e),r._queryList.onDirty(()=>r._dirtyCounter.update(n=>n+1))}function Xlt(t,e){let r=t._lView,n=t._queryIndex;if(r===void 0||n===void 0||r[Ho]&4)return e?void 0:Rc;let o=hhe(r,n),i=Klt(r,n);return o.reset(i,z1t),e?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}function u6e(t,e){return yhe()}function Jlt(t,e){return Ahe()}var Id=(u6e.required=Jlt,u6e);function AB(t,e){return bhe()}function d6e(t,e){return yhe()}function ect(t,e){return Ahe()}var whe=(d6e.required=ect,d6e);function G4(t,e){return bhe()}function tct(t){return Object.getPrototypeOf(t.prototype).constructor}function cf(t){let e=tct(t.type),r=!0,n=[t];for(;e;){let o;if(bp(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Mo(903,!1);o=e.\u0275dir}if(o){if(r){n.push(o);let a=t;a.inputs=AO(t.inputs),a.inputTransforms=AO(t.inputTransforms),a.declaredInputs=AO(t.declaredInputs),a.outputs=AO(t.outputs);let s=o.hostBindings;s&&act(t,s);let l=o.viewQuery,u=o.contentQueries;if(l&&oct(t,l),u&&ict(t,u),rct(t,o),$at(t.outputs,o.outputs),bp(o)&&o.data.animation){let d=t.data;d.animation=(d.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let a=0;a=0;n--){let o=t[n];o.hostVars=e+=o.hostVars,o.hostAttrs=ME(o.hostAttrs,r=ME(r,o.hostAttrs))}}function AO(t){return t===cA?{}:t===Rc?[]:t}function oct(t,e){let r=t.viewQuery;r?t.viewQuery=(n,o)=>{e(n,o),r(n,o)}:t.viewQuery=e}function ict(t,e){let r=t.contentQueries;r?t.contentQueries=(n,o,i)=>{e(n,o,i),r(n,o,i)}:t.contentQueries=e}function act(t,e){let r=t.hostBindings;r?t.hostBindings=(n,o)=>{e(n,o),r(n,o)}:t.hostBindings=e}function QK(t){let e=t.inputConfig,r={};for(let n in e)if(e.hasOwnProperty(n)){let o=e[n];Array.isArray(o)&&o[3]&&(r[n]=o[3])}t.inputTransforms=r}var wp=class{},HE=class{};var QZ=class extends wp{constructor(e,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new jO(this);let o=L6e(e);this._bootstrapComponents=F5e(o.bootstrap),this._r3Injector=w5e(e,r,[{provide:wp,useValue:this},{provide:yB,useValue:this.componentFactoryResolver},...n],M2(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(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},UZ=class extends HE{constructor(e){super(),this.moduleType=e}create(e){return new QZ(this.moduleType,e,[])}};var UO=class extends wp{constructor(e){super(),this.componentFactoryResolver=new jO(this),this.instance=null;let r=new kE([...e.providers,{provide:wp,useValue:this},{provide:yB,useValue:this.componentFactoryResolver}],e.parent||tB(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function UK(t,e,r=null){return new UO({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}var ZE=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ll(!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.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function bB(t,e,r){return t[e]=r}function sct(t,e){return t[e]}function Ed(t,e,r){let n=t[e];return Object.is(n,r)?!1:(t[e]=r,!0)}function Che(t,e,r,n){let o=Ed(t,e,r);return Ed(t,e+1,n)||o}function lct(t,e,r,n,o){let i=Che(t,e,r,n);return Ed(t,e+2,o)||i}function cct(t){return(t.flags&32)===32}function uct(t,e,r,n,o,i,a,s,l){let u=e.consts,d=$E(e,t,4,a||null,pA(u,s));PK(e,r,d,pA(u,l)),sB(e,d);let f=d.tView=RK(2,d,n,o,i,e.directiveRegistry,e.pipeRegistry,null,e.schemas,u,null);return e.queries!==null&&(e.queries.template(e,d),f.queries=e.queries.embeddedTView(d)),d}function na(t,e,r,n,o,i,a,s){let l=vi(),u=u0(),d=t+ql,f=u.firstCreatePass?uct(d,u,l,e,r,n,o,i,a):u.data[d];rm(f,!1);let c=dct(u,l,f,t);iB()&&dB(u,l,c,f),xp(c,l);let h=Y5e(c,l,c,f);return l[d]=h,pB(l,h),Llt(h,f,l),oB(f)&&FK(u,l,f),a!=null&&NK(l,f,s),na}var dct=fct;function fct(t,e,r,n){return aB(!0),e[_1].createComment("")}function xB(t,e,r,n){let o=vi(),i=xA();if(Ed(o,i,e)){let a=u0(),s=wK();K0t(s,o,t,e,r,n)}return xB}function hct(t,e,r,n){return Ed(t,xA(),r)?e+YO(r)+n:lf}function bO(t,e){return t<<17|e<<2}function em(t){return t>>17&32767}function pct(t){return(t&2)==2}function gct(t,e){return t&131071|e<<17}function WZ(t){return t|2}function gA(t){return(t&131068)>>2}function oZ(t,e){return t&-131069|e<<2}function mct(t){return(t&1)===1}function GZ(t){return t|1}function vct(t,e,r,n,o,i){let a=i?e.classBindings:e.styleBindings,s=em(a),l=gA(a);t[n]=r;let u=!1,d;if(Array.isArray(r)){let f=r;d=f[1],(d===null||QE(f,d)>0)&&(u=!0)}else d=r;if(o)if(l!==0){let c=em(t[s+1]);t[n+1]=bO(c,s),c!==0&&(t[c+1]=oZ(t[c+1],n)),t[s+1]=gct(t[s+1],n)}else t[n+1]=bO(s,0),s!==0&&(t[s+1]=oZ(t[s+1],n)),s=n;else t[n+1]=bO(l,0),s===0?s=n:t[l+1]=oZ(t[l+1],n),l=n;u&&(t[n+1]=WZ(t[n+1])),f6e(t,d,n,!0),f6e(t,d,n,!1),yct(e,d,t,n,i),a=bO(s,l),i?e.classBindings=a:e.styleBindings=a}function yct(t,e,r,n,o){let i=o?t.residualClasses:t.residualStyles;i!=null&&typeof e=="string"&&QE(i,e)>=0&&(r[n+1]=GZ(r[n+1]))}function f6e(t,e,r,n){let o=t[r+1],i=e===null,a=n?em(o):gA(o),s=!1;for(;a!==0&&(s===!1||i);){let l=t[a],u=t[a+1];Act(l,e)&&(s=!0,t[a+1]=n?GZ(u):WZ(u)),a=n?em(u):gA(u)}s&&(t[r+1]=n?WZ(o):GZ(o))}function Act(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?QE(t,e)>=0:!1}var c0={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ehe(t){return t.substring(c0.key,c0.keyEnd)}function bct(t){return t.substring(c0.value,c0.valueEnd)}function xct(t){return Ihe(t),She(t,mA(t,0,c0.textEnd))}function She(t,e){let r=c0.textEnd;return r===e?-1:(e=c0.keyEnd=Cct(t,c0.key=e,r),mA(t,e,r))}function wct(t){return Ihe(t),Dhe(t,mA(t,0,c0.textEnd))}function Dhe(t,e){let r=c0.textEnd,n=c0.key=mA(t,e,r);return r===n?-1:(n=c0.keyEnd=Ect(t,n,r),n=h6e(t,n,r,58),n=c0.value=mA(t,n,r),n=c0.valueEnd=Sct(t,n,r),h6e(t,n,r,59))}function Ihe(t){c0.key=0,c0.keyEnd=0,c0.value=0,c0.valueEnd=0,c0.textEnd=t.length}function mA(t,e,r){for(;e32;)e++;return e}function Ect(t,e,r){let n;for(;e=65&&(n&-33)<=90||n>=48&&n<=57);)e++;return e}function h6e(t,e,r,n){return e=mA(t,e,r),e32&&(s=a),i=o,o=n,n=l&-33}return s}function p6e(t,e,r,n){let o=-1,i=r;for(;i=0;r=Dhe(e,r))The(t,Ehe(e),bct(e))}function fl(t){_he(Fct,Ict,t,!0)}function Ict(t,e){for(let r=xct(e);r>=0;r=She(e,r))XO(t,Ehe(e),!0)}function _ct(t,e,r,n){let o=vi(),i=u0(),a=i5e(2);if(i.firstUpdatePass&&khe(i,t,a,n),e!==lf&&Ed(o,a,e)){let s=i.data[Ep()];Ohe(i,s,o,o[_1],t,o[a+1]=Rct(e,r),n,a)}}function _he(t,e,r,n){let o=u0(),i=i5e(2);o.firstUpdatePass&&khe(o,null,i,n);let a=vi();if(r!==lf&&Ed(a,i,r)){let s=o.data[Ep()];if(Bhe(s,n)&&!Mhe(o,i)){let l=n?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(r=uZ(l,r||"")),$Z(o,s,a,r,n)}else Nct(o,s,a,a[_1],a[i+1],a[i+1]=Bct(t,e,r),n,i)}}function Mhe(t,e){return e>=t.expandoStartIndex}function khe(t,e,r,n){let o=t.data;if(o[r+1]===null){let i=o[Ep()],a=Mhe(t,r);Bhe(i,n)&&e===null&&!a&&(e=!1),e=Mct(o,i,e,n),vct(o,i,e,r,a,n)}}function Mct(t,e,r,n){let o=g1t(t),i=n?e.residualClasses:e.residualStyles;if(o===null)(n?e.classBindings:e.styleBindings)===0&&(r=iZ(null,t,e,r,n),r=VE(r,e.attrs,n),i=null);else{let a=e.directiveStylingLast;if(a===-1||t[a]!==o)if(r=iZ(o,t,e,r,n),i===null){let l=kct(t,e,n);l!==void 0&&Array.isArray(l)&&(l=iZ(null,t,e,l[1],n),l=VE(l,e.attrs,n),Tct(t,e,n,l))}else i=Oct(t,e,n)}return i!==void 0&&(n?e.residualClasses=i:e.residualStyles=i),r}function kct(t,e,r){let n=r?e.classBindings:e.styleBindings;if(gA(n)!==0)return t[em(n)]}function Tct(t,e,r,n){let o=r?e.classBindings:e.styleBindings;t[em(o)]=n}function Oct(t,e,r){let n,o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i0;){let l=t[o],u=Array.isArray(l),d=u?l[1]:l,f=d===null,c=r[o+1];c===lf&&(c=f?Rc:void 0);let h=f?K$(c,n):d===n?c:void 0;if(u&&!WO(h)&&(h=K$(l,n)),WO(h)&&(s=h,a))return s;let g=t[o+1];o=a?em(g):gA(g)}if(e!==null){let l=i?e.residualClasses:e.residualStyles;l!=null&&(s=K$(l,n))}return s}function WO(t){return t!==void 0}function Rct(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=M2(nm(t)))),t}function Bhe(t,e){return(t.flags&(e?8:16))!==0}var ZZ=class{destroy(e){}updateValue(e,r){}swap(e,r){let n=Math.min(e,r),o=Math.max(e,r),i=this.detach(o);if(o-n>1){let a=this.detach(n);this.attach(n,i),this.attach(o,a)}else this.attach(n,i)}move(e,r){this.attach(r,this.detach(e))}};function aZ(t,e,r,n,o){return t===r&&Object.is(e,n)?1:Object.is(o(t,e),o(r,n))?-1:0}function Pct(t,e,r){let n,o,i=0,a=t.length-1;if(Array.isArray(e)){let s=e.length-1;for(;i<=a&&i<=s;){let l=t.at(i),u=e[i],d=aZ(i,l,i,u,r);if(d!==0){d<0&&t.updateValue(i,u),i++;continue}let f=t.at(a),c=e[s],h=aZ(a,f,s,c,r);if(h!==0){h<0&&t.updateValue(a,c),a--,s--;continue}let g=r(i,l),p=r(a,f),m=r(i,u);if(Object.is(m,p)){let v=r(s,c);Object.is(v,g)?(t.swap(i,a),t.updateValue(a,c),s--,a--):t.move(a,i),t.updateValue(i,u),i++;continue}if(n??=new GO,o??=v6e(t,i,a,r),KZ(t,n,i,m))t.updateValue(i,u),i++,a++;else if(o.has(m))n.set(g,t.detach(i)),a--;else{let v=t.create(i,e[i]);t.attach(i,v),i++,a++}}for(;i<=s;)m6e(t,n,r,i,e[i]),i++}else if(e!=null){let s=e[Symbol.iterator](),l=s.next();for(;!l.done&&i<=a;){let u=t.at(i),d=l.value,f=aZ(i,u,i,d,r);if(f!==0)f<0&&t.updateValue(i,d),i++,l=s.next();else{n??=new GO,o??=v6e(t,i,a,r);let c=r(i,d);if(KZ(t,n,i,c))t.updateValue(i,d),i++,a++,l=s.next();else if(!o.has(c))t.attach(i,t.create(i,d)),i++,a++,l=s.next();else{let h=r(i,u);n.set(h,t.detach(i)),a--}}}for(;!l.done;)m6e(t,n,r,t.length,l.value),l=s.next()}for(;i<=a;)t.destroy(t.detach(a--));n?.forEach(s=>{t.destroy(s)})}function KZ(t,e,r,n){return e!==void 0&&e.has(n)?(t.attach(r,e.get(n)),e.delete(n),!0):!1}function m6e(t,e,r,n,o){if(KZ(t,e,n,r(n,o)))t.updateValue(n,o);else{let i=t.create(n,o);t.attach(n,i)}}function v6e(t,e,r,n){let o=new Set;for(let i=e;i<=r;i++)o.add(n(i,t.at(i)));return o}var GO=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 r=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(r)?(this.kvMap.set(e,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,r){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(n);)n=o.get(n);o.set(n,r)}else this.kvMap.set(e,r)}forEach(e){for(let[r,n]of this.kvMap)if(e(n,r),this._vMap!==void 0){let o=this._vMap;for(;o.has(n);)n=o.get(n),e(n,r)}}};function P0(t,e,r){am("NgControlFlow");let n=vi(),o=xA(),i=JZ(n,ql+t),a=0;if(Ed(n,o,e)){let s=Ei(null);try{if(rhe(i,a),e!==-1){let l=eK(n[ei],ql+e),u=zE(i,l.tView.ssrId),d=gB(n,l,r,{dehydratedView:u});mB(i,d,a,PE(l,u))}}finally{Ei(s)}}else{let s=the(i,a);s!==void 0&&(s[Kl]=r)}}var YZ=class{constructor(e,r,n){this.lContainer=e,this.$implicit=r,this.$index=n}get $count(){return this.lContainer.length-Yl}};function Fhe(t){return t}var qZ=class{constructor(e,r,n){this.hasEmptyBlock=e,this.trackByFn=r,this.liveCollection=n}};function Nhe(t,e,r,n,o,i,a,s,l,u,d,f,c){am("NgControlFlow");let h=l!==void 0,g=vi(),p=s?a.bind(g[Q4][Kl]):a,m=new qZ(h,p);g[ql+t]=m,na(t+1,e,r,n,o,i),h&&na(t+2,l,u,d,f,c)}var XZ=class extends ZZ{constructor(e,r,n){super(),this.lContainer=e,this.hostLView=r,this.templateTNode=n,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Yl}at(e){return this.getLView(e)[Kl].$implicit}attach(e,r){let n=r[TE];this.needsIndexUpdate||=e!==this.length,mB(this.lContainer,r,e,PE(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,zct(this.lContainer,e)}create(e,r){let n=zE(this.lContainer,this.templateTNode.tView.ssrId);return gB(this.hostLView,this.templateTNode,new YZ(this.lContainer,r,e),{dehydratedView:n})}destroy(e){uB(e[ei],e)}updateValue(e,r){this.getLView(e)[Kl].$implicit=r}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(aB(!0),N5e(n,o,A1t()));function jct(t,e,r,n,o){let i=e.consts,a=pA(i,n),s=$E(e,t,8,"ng-container",a);a!==null&&VO(s,a,!0);let l=pA(i,o);return PK(e,r,s,l),e.queries!==null&&e.queries.elementStart(e,s),s}function Phe(t,e,r){let n=vi(),o=u0(),i=t+ql,a=o.firstCreatePass?jct(i,o,n,e,r):o.data[i];rm(a,!0);let s=Qct(o,n,a,t);return n[i]=s,iB()&&dB(o,n,s,a),xp(s,n),oB(a)&&(FK(o,n,a),BK(o,a,n)),r!=null&&NK(n,a),Phe}function zhe(){let t=Jl(),e=u0();return yK()?o5e():(t=t.parent,rm(t,!1)),e.firstCreatePass&&(sB(e,t),hK(t)&&e.queries.elementEnd(t)),zhe}function Sp(t,e,r){return Phe(t,e,r),zhe(),Sp}var Qct=(t,e,r,n)=>(aB(!0),l0t(e[_1],""));function U1(){return vi()}var $O="en-US";var Uct=$O;function Wct(t){typeof t=="string"&&(Uct=t.toLowerCase().replace(/_/g,"-"))}function ko(t,e,r,n){let o=vi(),i=u0(),a=Jl();return Lhe(i,o,o[_1],a,t,e,n),ko}function Gct(t,e,r,n){let o=t.cleanup;if(o!=null)for(let i=0;il?s[l]:null}typeof a=="string"&&(i+=2)}return null}function Lhe(t,e,r,n,o,i,a){let s=oB(n),u=t.firstCreatePass&&J5e(t),d=e[Kl],f=X5e(e),c=!0;if(n.type&3||a){let p=Dd(n,e),m=a?a(p):p,v=f.length,b=a?y=>a(sf(y[n.index])):n.index,A=null;if(!a&&s&&(A=Gct(t,e,o,n.index)),A!==null){let y=A.__ngLastListenerFn__||A;y.__ngNextListenerFn__=i,A.__ngLastListenerFn__=i,c=!1}else{i=A6e(n,e,d,i,!1);let y=r.listen(m,o,i);f.push(i,y),u&&u.push(o,b,v,v+1)}}else i=A6e(n,e,d,i,!1);let h=n.outputs,g;if(c&&h!==null&&(g=h[o])){let p=g.length;if(p)for(let m=0;m-1?Cp(t.index,e):e;HK(s);let l=y6e(e,r,n,a),u=i.__ngNextListenerFn__;for(;u;)l=y6e(e,r,u,a)&&l,u=u.__ngNextListenerFn__;return o&&l===!1&&a.preventDefault(),l}}function lm(t=1){return y1t(t)}function Su(t,e,r,n,o){xhe(e,Glt(t,r,n,o))}function ec(t,e,r,n){xhe(t,Wlt(e,r,n))}function rs(t=1){AK(m1t()+t)}function $ct(t,e,r,n){r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=n}function tc(t){let e=u1t();return gK(e,ql+t)}function ln(t,e=""){let r=vi(),n=u0(),o=t+ql,i=n.firstCreatePass?$E(n,o,1,e,null):n.data[o],a=Zct(n,r,i,e,t);r[o]=a,iB()&&dB(n,r,a,i),rm(i,!1)}var Zct=(t,e,r,n,o)=>(aB(!0),a0t(e[_1],n));function KE(t){return T2("",t,""),KE}function T2(t,e,r){let n=vi(),o=hct(n,t,e,r);return o!==lf&&J0t(n,Ep(),o),T2}function GK(t,e,r){vhe(e)&&(e=e());let n=vi(),o=xA();if(Ed(n,o,e)){let i=u0(),a=wK();$5e(i,a,n,t,e,n[_1],r,!1)}return GK}function Hhe(t,e){let r=vhe(t);return r&&t.set(e),r}function $K(t,e){let r=vi(),n=u0(),o=Jl();return Lhe(n,r,r[_1],o,t,e),$K}function Kct(t,e,r){let n=u0();if(n.firstCreatePass){let o=bp(t);tK(r,n.data,n.blueprint,o,!0),tK(e,n.data,n.blueprint,o,!1)}}function tK(t,e,r,n,o){if(t=Nc(t),Array.isArray(t))for(let i=0;i>20;if(dA(t)||!t.multi){let h=new Yg(u,o,vs),g=lZ(l,e,o?d:d+c,f);g===-1?(xZ(RO(s,a),i,l),sZ(i,t,e.length),e.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),r.push(h),a.push(h)):(r[g]=h,a[g]=h)}else{let h=lZ(l,e,d+c,f),g=lZ(l,e,d,d+c),p=h>=0&&r[h],m=g>=0&&r[g];if(o&&!m||!o&&!p){xZ(RO(s,a),i,l);let v=Xct(o?qct:Yct,r.length,o,n,u);!o&&m&&(r[g].providerFactory=v),sZ(i,t,e.length,0),e.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),r.push(v),a.push(v)}else{let v=Vhe(r[o?g:h],u,!o&&n);sZ(i,t,h>-1?h:g,v)}!o&&n&&m&&r[g].componentProviders++}}}function sZ(t,e,r,n){let o=dA(e),i=Rst(e);if(o||i){let l=(i?Nc(e.useClass):e).prototype.ngOnDestroy;if(l){let u=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){let d=u.indexOf(r);d===-1?u.push(r,[n,l]):u[d+1].push(n,l)}else u.push(r,l)}}}function Vhe(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function lZ(t,e,r,n){for(let o=r;o{r.providersResolver=(n,o)=>Kct(n,o?o(t):t,e)}}var Jct=(()=>{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 o=j6e(!1,n.type),i=o.length>0?UK([o],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=oi({token:e,providedIn:"environment",factory:()=>new e(ra(ua))});let t=e;return t})();function Wn(t){am("NgStandalone"),t.getStandaloneInjector=e=>e.get(Jct).getOrCreateStandaloneInjector(t)}function Rn(t,e,r){let n=bA()+t,o=vi();return o[n]===lf?bB(o,n,r?e.call(r):e()):sct(o,n)}function M1(t,e,r,n){return e2t(vi(),bA(),t,e,r,n)}function cm(t,e,r,n,o){return Qhe(vi(),bA(),t,e,r,n,o)}function jhe(t,e,r,n,o,i){return Uhe(vi(),bA(),t,e,r,n,o,i)}function ZK(t,e){let r=t[e];return r===lf?void 0:r}function e2t(t,e,r,n,o,i){let a=e+r;return Ed(t,a,o)?bB(t,a+1,i?n.call(i,o):n(o)):ZK(t,a+1)}function Qhe(t,e,r,n,o,i,a){let s=e+r;return Che(t,s,o,i)?bB(t,s+2,a?n.call(a,o,i):n(o,i)):ZK(t,s+2)}function Uhe(t,e,r,n,o,i,a,s){let l=e+r;return lct(t,l,o,i,a)?bB(t,l+3,s?n.call(s,o,i,a):n(o,i,a)):ZK(t,l+3)}function qE(t,e){let r=u0(),n,o=t+ql;r.firstCreatePass?(n=t2t(e,r.pipeRegistry),r.data[o]=n,n.onDestroy&&(r.destroyHooks??=[]).push(o,n.onDestroy)):n=r.data[o];let i=n.factory||(n.factory=Gg(n.type,!0)),a,s=_2(vs);try{let l=NO(!1),u=i();return NO(l),$ct(r,vi(),o,u),u}finally{_2(s)}}function t2t(t,e){if(e)for(let r=e.length-1;r>=0;r--){let n=e[r];if(t===n.name)return n}}function wB(t,e,r,n){let o=t+ql,i=vi(),a=gK(i,o);return Ghe(i,o)?Qhe(i,bA(),e,a.transform,r,n,a):a.transform(r,n)}function Whe(t,e,r,n,o){let i=t+ql,a=vi(),s=gK(a,i);return Ghe(a,i)?Uhe(a,bA(),e,s.transform,r,n,o,s):s.transform(r,n,o)}function Ghe(t,e){return t[ei].data[e].pure}function uf(t,e){return vB(t,e)}var CB=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var $he=new di("");function um(t){return!!t&&typeof t.then=="function"}function Zhe(t){return!!t&&typeof t.subscribe=="function"}var Khe=new di(""),Yhe=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,o)=>{this.resolve=n,this.reject=o}),this.appInits=dn(Khe,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let a=i();if(um(a))n.push(a);else if(Zhe(a)){let s=new Promise((l,u)=>{a.subscribe({complete:l,error:u})});n.push(s)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{o()}).catch(i=>{this.reject(i)}),n.length===0&&o(),this.initialized=!0}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),KK=new di("");function r2t(){lfe(()=>{throw new Mo(600,!1)})}function n2t(t){return t.isBoundToModule}function o2t(t,e,r){try{let n=r();return um(n)?n.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}var _d=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=dn(C5e),this.afterRenderEffectManager=dn(che),this.externalTestViews=new Set,this.beforeRender=new $l,this.afterTick=new $l,this.componentTypes=[],this.components=[],this.isStable=dn(ZE).hasPendingTasks.pipe(Hi(n=>!n)),this._injector=dn(ua)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,o){let i=n instanceof HO;if(!this._injector.get(Yhe).done){let h=!i&&z6e(n),g=!1;throw new Mo(405,g)}let s;i?s=n:s=this._injector.get(yB).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let l=n2t(s)?void 0:this._injector.get(wp),u=o||s.selector,d=s.create(dl.NULL,[],u,l),f=d.location.nativeElement,c=d.injector.get($he,null);return c?.registerApplication(f),d.onDestroy(()=>{this.detachView(d.hostView),cZ(this.components,d),c?.unregisterApplication(f)}),this._loadComponent(d),d}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new Mo(101,!1);let o=Ei(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(i){this.internalErrorHandler(i)}finally{this.afterTick.next(),this._runningTick=!1,Ei(o)}}detectChangesInAttachedViews(n){let o=0,i=this.afterRenderEffectManager;for(;;){if(o===ohe)throw new Mo(103,!1);if(n){let a=o===0;this.beforeRender.next(a);for(let{_lView:s,notifyErrorHandler:l}of this._views)i2t(s,a,l)}if(o++,i.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:a})=>nK(a))&&(i.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:a})=>nK(a))))break}}attachView(n){let o=n;this._views.push(o),o.attachToAppRef(this)}detachView(n){let o=n;cZ(this._views,o),o.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let o=this._injector.get(KK,[]);[...this._bootstrapListeners,...o].forEach(i=>i(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),()=>cZ(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new Mo(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function cZ(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function i2t(t,e,r){!e&&!nK(t)||a2t(t,r,e)}function nK(t){return vK(t)}function a2t(t,e,r){let n;r?(n=0,t[Ho]|=1024):t[Ho]&64?n=0:n=1,ihe(t,e,n)}var oK=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},YK=(()=>{let e=class e{compileModuleSync(n){return new UZ(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let o=this.compileModuleSync(n),i=L6e(n),a=F5e(i.declarations).reduce((s,l)=>{let u=d5(l);return u&&s.push(new Jg(u)),s},[]);return new oK(o,a)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var s2t=(()=>{let e=class e{constructor(){this.zone=dn(_a),this.applicationRef=dn(_d)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function l2t(t){return[{provide:_a,useFactory:t},{provide:uA,multi:!0,useFactory:()=>{let e=dn(s2t,{optional:!0});return()=>e.initialize()}},{provide:uA,multi:!0,useFactory:()=>{let e=dn(f2t);return()=>{e.initialize()}}},{provide:C5e,useFactory:c2t}]}function c2t(){let t=dn(_a),e=dn(U4);return r=>t.runOutsideAngular(()=>e.handleError(r))}function u2t(t){let e=l2t(()=>new _a(d2t(t)));return JO([[],e])}function d2t(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var f2t=(()=>{let e=class e{constructor(){this.subscription=new s0,this.initialized=!1,this.zone=dn(_a),this.pendingTasks=dn(ZE)}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(()=>{_a.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{_a.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function h2t(){return typeof $localize<"u"&&$localize.locale||$O}var qK=new di("",{providedIn:"root",factory:()=>dn(qK,Ii.Optional|Ii.SkipSelf)||h2t()});var qhe=new di("");var IO=null;function p2t(t=[],e){return dl.create({name:e,providers:[{provide:eB,useValue:"platform"},{provide:qhe,useValue:new Set([()=>IO=null])},...t]})}function g2t(t=[]){if(IO)return IO;let e=p2t(t);return IO=e,r2t(),m2t(e),e}function m2t(t){t.get(DK,null)?.forEach(r=>r())}var Dp=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=v2t;let t=e;return t})();function v2t(t){return y2t(Jl(),vi(),(t&16)===16)}function y2t(t,e,r){if(nB(t)&&!r){let n=Cp(t.index,e);return new Xg(n,n)}else if(t.type&47){let n=e[Q4];return new Xg(n,e)}return null}function Xhe(t){try{let{rootComponent:e,appProviders:r,platformProviders:n}=t,o=g2t(n),i=[u2t(),...r||[]],s=new UO({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,l=s.get(_a);return l.run(()=>{s.resolveInjectorInitializers();let u=s.get(U4,null),d;l.runOutsideAngular(()=>{d=l.onError.subscribe({next:h=>{u.handleError(h)}})});let f=()=>s.destroy(),c=o.get(qhe);return c.add(f),s.onDestroy(()=>{d.unsubscribe(),c.delete(f)}),o2t(u,l,()=>{let h=s.get(Yhe);return h.runInitializers(),h.donePromise.then(()=>{let g=s.get(qK,$O);Wct(g||$O);let p=s.get(_d);return e!==void 0&&p.bootstrap(e),p})})})}catch(e){return Promise.reject(e)}}function dm(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function O2(t,e){am("NgSignals");let r=k$(t);return e?.equal&&(r[wu].equal=e.equal),r}function m5(t){let e=Ei(null);try{return t()}finally{Ei(e)}}var A2t=new di("",{providedIn:"root",factory:()=>dn(b2t)}),b2t=(()=>{let e=class e{};e.\u0275prov=oi({token:e,providedIn:"root",factory:()=>new iK});let t=e;return t})(),iK=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=dn(ZE),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),this.taskId===null){let r=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(r),this.taskId=null})}}enqueue(e){let r=e.creationZone;this.queues.has(r)||this.queues.set(r,new Set);let n=this.queues.get(r);n.has(e)||(this.queuedEffectCount++,n.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,r]of this.queues)e===null?this.flushQueue(r):e.run(()=>this.flushQueue(r))}flushQueue(e){for(let r of e)e.delete(r),this.queuedEffectCount--,r.run()}},aK=class{constructor(e,r,n,o,i,a){this.scheduler=e,this.effectFn=r,this.creationZone=n,this.injector=i,this.watcher=dfe(s=>this.runEffect(s),()=>this.schedule(),a),this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(r){this.injector.get(U4,null,{optional:!0})?.handleError(r)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function Wi(t,e){am("NgSignals"),!e?.injector&&Qst(Wi);let r=e?.injector??dn(dl),n=e?.manualCleanup!==!0?r.get(lB):null,o=new aK(r.get(A2t),t,typeof Zone>"u"?null:Zone.current,n,r,e?.allowSignalWrites??!1),i=r.get(Dp,null,{optional:!0});return!i||!(i._lView[Ho]&8)?o.watcher.notify():(i._lView[wO]??=[]).push(o.watcher.notify),o}function fm(t,e){let r=d5(t),n=e.elementInjector||tB();return new Jg(r).create(n,e.projectableNodes,e.hostElement,e.environmentInjector)}function Ip(t){let e=d5(t);if(!e)return null;let r=new Jg(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var tpe=null;function v5(){return tpe}function rpe(t){tpe??=t}var EB=class{};var Md=new di(""),npe=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:()=>dn(x2t),providedIn:"platform"});let t=e;return t})();var x2t=(()=>{let e=class e extends npe{constructor(){super(),this._doc=dn(Md),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return v5().getBaseHref(this._doc)}onPopState(n){let o=v5().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",n,!1),()=>o.removeEventListener("popstate",n)}onHashChange(n){let o=v5().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",n,!1),()=>o.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,o,i){this._history.pushState(n,o,i)}replaceState(n,o,i){this._history.replaceState(n,o,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function ope(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function Jhe(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function hm(t){return t&&t[0]!=="?"?"?"+t:t}var SA=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:()=>dn(ipe),providedIn:"root"});let t=e;return t})(),w2t=new di(""),ipe=(()=>{let e=class e extends SA{constructor(n,o){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??dn(Md).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 ope(this._baseHref,n)}path(n=!1){let o=this._platformLocation.pathname+hm(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${o}${i}`:o}pushState(n,o,i,a){let s=this.prepareExternalUrl(i+hm(a));this._platformLocation.pushState(n,o,s)}replaceState(n,o,i,a){let s=this.prepareExternalUrl(i+hm(a));this._platformLocation.replaceState(n,o,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(o){return new(o||e)(ra(npe),ra(w2t,8))},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var XE=(()=>{let e=class e{constructor(n){this._subject=new Zl,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let o=this._locationStrategy.getBaseHref();this._basePath=S2t(Jhe(epe(o))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,o=""){return this.path()==this.normalize(n+hm(o))}normalize(n){return e.stripTrailingSlash(E2t(this._basePath,epe(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,o="",i=null){this._locationStrategy.pushState(i,"",n,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+hm(o)),i)}replaceState(n,o="",i=null){this._locationStrategy.replaceState(i,"",n,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+hm(o)),i)}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(o=>{this._notifyUrlChangeListeners(o.url,o.state)}),()=>{let o=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",o){this._urlChangeListeners.forEach(i=>i(n,o))}subscribe(n,o,i){return this._subject.subscribe({next:n,error:o,complete:i})}};e.normalizeQueryParams=hm,e.joinWithSlash=ope,e.stripTrailingSlash=Jhe,e.\u0275fac=function(o){return new(o||e)(ra(SA))},e.\u0275prov=oi({token:e,factory:()=>C2t(),providedIn:"root"});let t=e;return t})();function C2t(){return new XE(ra(SA))}function E2t(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function epe(t){return t.replace(/\/index.html$/,"")}function S2t(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}function ape(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[o,i]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(o.trim()===e)return decodeURIComponent(i)}return null}var pm=(()=>{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 o=this._viewContainerRef;if(this._viewRef&&o.remove(o.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=o.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,o,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,o,i):!1,get:(n,o,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,o,i)}})}};e.\u0275fac=function(o){return new(o||e)(vs(sm))},e.\u0275dir=Xl({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Sd]});let t=e;return t})();var spe="browser",D2t="server";function JK(t){return t===D2t}var SB=class{};var rY=class extends EB{constructor(){super(...arguments),this.supportsDOMEvents=!0}},nY=class t extends rY{static makeCurrent(){rpe(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.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,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=M2t();return r==null?null:k2t(r)}resetBaseElement(){JE=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return ape(document.cookie,e)}},JE=null;function M2t(){return JE=JE||document.querySelector("base"),JE?JE.getAttribute("href"):null}function k2t(t){return new URL(t,document.baseURI).pathname}var T2t=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:e.\u0275fac});let t=e;return t})(),oY=new di(""),dpe=(()=>{let e=class e{constructor(n,o){this._zone=o,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,o,i){return this._findPluginFor(o).addEventListener(n,o,i)}getZone(){return this._zone}_findPluginFor(n){let o=this._eventNameToPlugin.get(n);if(o)return o;if(o=this._plugins.find(a=>a.supports(n)),!o)throw new Mo(5101,!1);return this._eventNameToPlugin.set(n,o),o}};e.\u0275fac=function(o){return new(o||e)(ra(oY),ra(_a))},e.\u0275prov=oi({token:e,factory:e.\u0275fac});let t=e;return t})(),DB=class{constructor(e){this._doc=e}},eY="ng-app-id",fpe=(()=>{let e=class e{constructor(n,o,i,a={}){this.doc=n,this.appId=o,this.nonce=i,this.platformId=a,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=JK(a),this.resetHostNodes()}addStyles(n){for(let o of n)this.changeUsageCount(o,1)===1&&this.onStyleAdded(o)}removeStyles(n){for(let o of n)this.changeUsageCount(o,-1)<=0&&this.onStyleRemoved(o)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(o=>o.remove()),n.clear());for(let o of this.getAllStyles())this.onStyleRemoved(o);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let o of this.getAllStyles())this.addStyleToHost(n,o)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let o of this.hostNodes)this.addStyleToHost(o,n)}onStyleRemoved(n){let o=this.styleRef;o.get(n)?.elements?.forEach(i=>i.remove()),o.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${eY}="${this.appId}"]`);if(n?.length){let o=new Map;return n.forEach(i=>{i.textContent!=null&&o.set(i.textContent,i)}),o}return null}changeUsageCount(n,o){let i=this.styleRef;if(i.has(n)){let a=i.get(n);return a.usage+=o,a.usage}return i.set(n,{usage:o,elements:[]}),o}getStyleElement(n,o){let i=this.styleNodesInDOM,a=i?.get(o);if(a?.parentNode===n)return i.delete(o),a.removeAttribute(eY),a;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=o,this.platformIsServer&&s.setAttribute(eY,this.appId),n.appendChild(s),s}}addStyleToHost(n,o){let i=this.getStyleElement(n,o),a=this.styleRef,s=a.get(o)?.elements;s?s.push(i):a.set(o,{elements:[i],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(o){return new(o||e)(ra(Md),ra(SK),ra(IK,8),ra(EA))},e.\u0275prov=oi({token:e,factory:e.\u0275fac});let t=e;return t})(),tY={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},aY=/%COMP%/g,hpe="%COMP%",O2t=`_nghost-${hpe}`,B2t=`_ngcontent-${hpe}`,F2t=!0,N2t=new di("",{providedIn:"root",factory:()=>F2t});function R2t(t){return B2t.replace(aY,t)}function P2t(t){return O2t.replace(aY,t)}function ppe(t,e){return e.map(r=>r.replace(aY,t))}var lpe=(()=>{let e=class e{constructor(n,o,i,a,s,l,u,d=null){this.eventManager=n,this.sharedStylesHost=o,this.appId=i,this.removeStylesOnCompDestroy=a,this.doc=s,this.platformId=l,this.ngZone=u,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=JK(l),this.defaultRenderer=new eS(n,s,u,this.platformIsServer)}createRenderer(n,o){if(!n||!o)return this.defaultRenderer;this.platformIsServer&&o.encapsulation===af.ShadowDom&&(o=lr(Je({},o),{encapsulation:af.Emulated}));let i=this.getOrCreateRenderer(n,o);return i instanceof IB?i.applyToHost(n):i instanceof tS&&i.applyStyles(),i}getOrCreateRenderer(n,o){let i=this.rendererByCompId,a=i.get(o.id);if(!a){let s=this.doc,l=this.ngZone,u=this.eventManager,d=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,c=this.platformIsServer;switch(o.encapsulation){case af.Emulated:a=new IB(u,d,o,this.appId,f,s,l,c);break;case af.ShadowDom:return new iY(u,d,n,o,s,l,this.nonce,c);default:a=new tS(u,d,o,f,s,l,c);break}i.set(o.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(o){return new(o||e)(ra(dpe),ra(fpe),ra(SK),ra(N2t),ra(Md),ra(EA),ra(_a),ra(IK))},e.\u0275prov=oi({token:e,factory:e.\u0275fac});let t=e;return t})(),eS=class{constructor(e,r,n,o){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(tY[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(cpe(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(cpe(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new Mo(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,o){if(o){r=o+":"+r;let i=tY[o];i?e.setAttributeNS(i,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let o=tY[n];o?e.removeAttributeNS(o,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,o){o&(h5.DashCase|h5.Important)?e.style.setProperty(r,n,o&h5.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&h5.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=v5().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function cpe(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var iY=class extends eS{constructor(e,r,n,o,i,a,s,l){super(e,i,a,l),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=ppe(o.id,o.styles);for(let d of u){let f=document.createElement("style");s&&f.setAttribute("nonce",s),f.textContent=d,this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},tS=class extends eS{constructor(e,r,n,o,i,a,s,l){super(e,i,a,s),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=o,this.styles=l?ppe(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},IB=class extends tS{constructor(e,r,n,o,i,a,s,l){let u=o+"-"+n.id;super(e,r,n,i,a,s,l,u),this.contentAttr=R2t(u),this.hostAttr=P2t(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},z2t=(()=>{let e=class e extends DB{constructor(n){super(n)}supports(n){return!0}addEventListener(n,o,i){return n.addEventListener(o,i,!1),()=>this.removeEventListener(n,o,i)}removeEventListener(n,o,i){return n.removeEventListener(o,i)}};e.\u0275fac=function(o){return new(o||e)(ra(Md))},e.\u0275prov=oi({token:e,factory:e.\u0275fac});let t=e;return t})(),upe=["alt","control","meta","shift"],L2t={"\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"},H2t={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},V2t=(()=>{let e=class e extends DB{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,o,i){let a=e.parseEventName(o),s=e.eventCallback(a.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>v5().onAndCancel(n,a.domEventName,s))}static parseEventName(n){let o=n.toLowerCase().split("."),i=o.shift();if(o.length===0||!(i==="keydown"||i==="keyup"))return null;let a=e._normalizeKey(o.pop()),s="",l=o.indexOf("code");if(l>-1&&(o.splice(l,1),s="code."),upe.forEach(d=>{let f=o.indexOf(d);f>-1&&(o.splice(f,1),s+=d+".")}),s+=a,o.length!=0||a.length===0)return null;let u={};return u.domEventName=i,u.fullKey=s,u}static matchEventFullKeyCode(n,o){let i=L2t[n.key]||n.key,a="";return o.indexOf("code.")>-1&&(i=n.code,a="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),upe.forEach(s=>{if(s!==i){let l=H2t[s];l(n)&&(a+=s+".")}}),a+=i,a===o)}static eventCallback(n,o,i){return a=>{e.matchEventFullKeyCode(a,n)&&i.runGuarded(()=>o(a))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(o){return new(o||e)(ra(Md))},e.\u0275prov=oi({token:e,factory:e.\u0275fac});let t=e;return t})();function gpe(t,e){return Xhe(Je({rootComponent:t},j2t(e)))}function j2t(t){return{appProviders:[...$2t,...t?.providers??[]],platformProviders:G2t}}function Q2t(){nY.makeCurrent()}function U2t(){return new U4}function W2t(){return M5e(document),document}var G2t=[{provide:EA,useValue:spe},{provide:DK,useValue:Q2t,multi:!0},{provide:Md,useFactory:W2t,deps:[]}];var $2t=[{provide:eB,useValue:"root"},{provide:U4,useFactory:U2t,deps:[]},{provide:oY,useClass:z2t,multi:!0,deps:[Md,_a,EA]},{provide:oY,useClass:V2t,multi:!0,deps:[Md]},lpe,fpe,dpe,{provide:LE,useExisting:lpe},{provide:SB,useClass:T2t,deps:[]},[]];var mpe=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(o){return new(o||e)(ra(Md))},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var fi="primary",mS=Symbol("RouteTitle"),dY=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function kA(t){return new dY(t)}function K2t(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[i]===o)}else return t===e}function Cpe(t){return t.length>0?t[t.length-1]:null}function Tp(t){return V$(t)?t:um(t)?I1(Promise.resolve(t)):ui(t)}var q2t={exact:Spe,subset:Dpe},Epe={exact:X2t,subset:J2t,ignored:()=>!0};function vpe(t,e,r){return q2t[r.paths](t.root,e.root,r.matrixParams)&&Epe[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function X2t(t,e){return df(t,e)}function Spe(t,e,r){if(!mm(t.segments,e.segments)||!kB(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!Spe(t.children[n],e.children[n],r))return!1;return!0}function J2t(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>wpe(t[r],e[r]))}function Dpe(t,e,r){return Ipe(t,e,e.segments,r)}function Ipe(t,e,r,n){if(t.segments.length>r.length){let o=t.segments.slice(0,r.length);return!(!mm(o,r)||e.hasChildren()||!kB(o,r,n))}else if(t.segments.length===r.length){if(!mm(t.segments,r)||!kB(t.segments,r,n))return!1;for(let o in e.children)if(!t.children[o]||!Dpe(t.children[o],e.children[o],n))return!1;return!0}else{let o=r.slice(0,t.segments.length),i=r.slice(t.segments.length);return!mm(t.segments,o)||!kB(t.segments,o,n)||!t.children[fi]?!1:Ipe(t.children[fi],e,i,n)}}function kB(t,e,r){return e.every((n,o)=>Epe[r](t[o].parameters,n.parameters))}var _p=class{constructor(e=new Ba([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=kA(this.queryParams),this._queryParamMap}toString(){return rut.serialize(this)}},Ba=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return TB(this)}},gm=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=kA(this.parameters),this._parameterMap}toString(){return Mpe(this)}};function eut(t,e){return mm(t,e)&&t.every((r,n)=>df(r.parameters,e[n].parameters))}function mm(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function tut(t,e){let r=[];return Object.entries(t.children).forEach(([n,o])=>{n===fi&&(r=r.concat(e(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==fi&&(r=r.concat(e(o,n)))}),r}var zY=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:()=>new BB,providedIn:"root"});let t=e;return t})(),BB=class{parse(e){let r=new pY(e);return new _p(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${rS(e.root,!0)}`,n=iut(e.queryParams),o=typeof e.fragment=="string"?`#${nut(e.fragment)}`:"";return`${r}${n}${o}`}},rut=new BB;function TB(t){return t.segments.map(e=>Mpe(e)).join("/")}function rS(t,e){if(!t.hasChildren())return TB(t);if(e){let r=t.children[fi]?rS(t.children[fi],!1):"",n=[];return Object.entries(t.children).forEach(([o,i])=>{o!==fi&&n.push(`${o}:${rS(i,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=tut(t,(n,o)=>o===fi?[rS(t.children[fi],!1)]:[`${o}:${rS(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[fi]!=null?`${TB(t)}/${r[0]}`:`${TB(t)}/(${r.join("//")})`}}function _pe(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function _B(t){return _pe(t).replace(/%3B/gi,";")}function nut(t){return encodeURI(t)}function hY(t){return _pe(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function OB(t){return decodeURIComponent(t)}function ype(t){return OB(t.replace(/\+/g,"%20"))}function Mpe(t){return`${hY(t.path)}${out(t.parameters)}`}function out(t){return Object.entries(t).map(([e,r])=>`;${hY(e)}=${hY(r)}`).join("")}function iut(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(o=>`${_B(r)}=${_B(o)}`).join("&"):`${_B(r)}=${_B(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var aut=/^[^\/()?;#]+/;function sY(t){let e=t.match(aut);return e?e[0]:""}var sut=/^[^\/()?;=#]+/;function lut(t){let e=t.match(sut);return e?e[0]:""}var cut=/^[^=?&#]+/;function uut(t){let e=t.match(cut);return e?e[0]:""}var dut=/^[^&#]+/;function fut(t){let e=t.match(dut);return e?e[0]:""}var pY=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ba([],{}):new Ba([],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 r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[fi]=new Ba(e,r)),n}parseSegment(){let e=sY(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new Mo(4009,!1);return this.capture(e),new gm(OB(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=lut(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let o=sY(this.remaining);o&&(n=o,this.capture(n))}e[OB(r)]=OB(n)}parseQueryParam(e){let r=uut(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let a=fut(this.remaining);a&&(n=a,this.capture(n))}let o=ype(r),i=ype(n);if(e.hasOwnProperty(o)){let a=e[o];Array.isArray(a)||(a=[a],e[o]=a),a.push(i)}else e[o]=i}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=sY(this.remaining),o=this.remaining[n.length];if(o!=="/"&&o!==")"&&o!==";")throw new Mo(4010,!1);let i;n.indexOf(":")>-1?(i=n.slice(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=fi);let a=this.parseChildren();r[i]=Object.keys(a).length===1?a[fi]:new Ba([],a),this.consumeOptional("//")}return r}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 Mo(4011,!1)}};function kpe(t){return t.segments.length>0?new Ba([],{[fi]:t}):t}function Tpe(t){let e={};for(let[n,o]of Object.entries(t.children)){let i=Tpe(o);if(n===fi&&i.segments.length===0&&i.hasChildren())for(let[a,s]of Object.entries(i.children))e[a]=s;else(i.segments.length>0||i.hasChildren())&&(e[n]=i)}let r=new Ba(t.segments,e);return hut(r)}function hut(t){if(t.numberOfChildren===1&&t.children[fi]){let e=t.children[fi];return new Ba(t.segments.concat(e.segments),e.children)}return t}function TA(t){return t instanceof _p}function put(t,e,r=null,n=null){let o=Ope(t);return Bpe(o,e,r,n)}function Ope(t){let e;function r(i){let a={};for(let l of i.children){let u=r(l);a[l.outlet]=u}let s=new Ba(i.url,a);return i===t&&(e=s),s}let n=r(t.root),o=kpe(n);return e??o}function Bpe(t,e,r,n){let o=t;for(;o.parent;)o=o.parent;if(e.length===0)return lY(o,o,o,r,n);let i=gut(e);if(i.toRoot())return lY(o,o,new Ba([],{}),r,n);let a=mut(i,o,t),s=a.processChildren?iS(a.segmentGroup,a.index,i.commands):Npe(a.segmentGroup,a.index,i.commands);return lY(o,a.segmentGroup,s,r,n)}function FB(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function lS(t){return typeof t=="object"&&t!=null&&t.outlets}function lY(t,e,r,n,o){let i={};n&&Object.entries(n).forEach(([l,u])=>{i[l]=Array.isArray(u)?u.map(d=>`${d}`):`${u}`});let a;t===e?a=r:a=Fpe(t,e,r);let s=kpe(Tpe(a));return new _p(s,i,o)}function Fpe(t,e,r){let n={};return Object.entries(t.children).forEach(([o,i])=>{i===e?n[o]=r:n[o]=Fpe(i,e,r)}),new Ba(t.segments,n)}var NB=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&FB(n[0]))throw new Mo(4003,!1);let o=n.find(lS);if(o&&o!==Cpe(n))throw new Mo(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function gut(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new NB(!0,0,t);let e=0,r=!1,n=t.reduce((o,i,a)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let s={};return Object.entries(i.outlets).forEach(([l,u])=>{s[l]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:s}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:a===0?(i.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?r=!0:s===".."?e++:s!=""&&o.push(s))}),o):[...o,i]},[]);return new NB(r,e,n)}var _A=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function mut(t,e,r){if(t.isAbsolute)return new _A(e,!0,0);if(!r)return new _A(e,!1,NaN);if(r.parent===null)return new _A(r,!0,0);let n=FB(t.commands[0])?0:1,o=r.segments.length-1+n;return vut(r,o,t.numberOfDoubleDots)}function vut(t,e,r){let n=t,o=e,i=r;for(;i>o;){if(i-=o,n=n.parent,!n)throw new Mo(4005,!1);o=n.segments.length}return new _A(n,!1,o-i)}function yut(t){return lS(t[0])?t[0].outlets:{[fi]:t}}function Npe(t,e,r){if(t??=new Ba([],{}),t.segments.length===0&&t.hasChildren())return iS(t,e,r);let n=Aut(t,e,r),o=r.slice(n.commandIndex);if(n.match&&n.pathIndexi!==fi)&&t.children[fi]&&t.numberOfChildren===1&&t.children[fi].segments.length===0){let i=iS(t.children[fi],e,r);return new Ba(t.segments,i.children)}return Object.entries(n).forEach(([i,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(o[i]=Npe(t.children[i],e,a))}),Object.entries(t.children).forEach(([i,a])=>{n[i]===void 0&&(o[i]=a)}),new Ba(t.segments,o)}}function Aut(t,e,r){let n=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};for(;o=r.length)return i;let a=t.segments[o],s=r[n];if(lS(s))break;let l=`${s}`,u=n0&&l===void 0)break;if(l&&u&&typeof u=="object"&&u.outlets===void 0){if(!bpe(l,u,a))return i;n+=2}else{if(!bpe(l,{},a))return i;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function gY(t,e,r){let n=t.segments.slice(0,e),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=gY(new Ba([],{}),0,n))}),e}function Ape(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function bpe(t,e,r){return t==r.path&&df(e,r.parameters)}var aS="imperative",hl=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}(hl||{}),kd=class{constructor(e,r){this.id=e,this.url=r}},cS=class extends kd{constructor(e,r,n="imperative",o=null){super(e,r),this.type=hl.NavigationStart,this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Mp=class extends kd{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=hl.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Iu=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Iu||{}),mY=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(mY||{}),kp=class extends kd{constructor(e,r,n,o){super(e,r),this.reason=n,this.code=o,this.type=hl.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},vm=class extends kd{constructor(e,r,n,o){super(e,r),this.reason=n,this.code=o,this.type=hl.NavigationSkipped}},uS=class extends kd{constructor(e,r,n,o){super(e,r),this.error=n,this.target=o,this.type=hl.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},RB=class extends kd{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=hl.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},vY=class extends kd{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=hl.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yY=class extends kd{constructor(e,r,n,o,i){super(e,r),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=i,this.type=hl.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},AY=class extends kd{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=hl.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},bY=class extends kd{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=hl.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},xY=class{constructor(e){this.route=e,this.type=hl.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},wY=class{constructor(e){this.route=e,this.type=hl.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},CY=class{constructor(e){this.snapshot=e,this.type=hl.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},EY=class{constructor(e){this.snapshot=e,this.type=hl.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},SY=class{constructor(e){this.snapshot=e,this.type=hl.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},DY=class{constructor(e){this.snapshot=e,this.type=hl.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var dS=class{},fS=class{constructor(e){this.url=e}};var IY=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new jB,this.attachRef=null}},jB=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,o){let i=this.getOrCreateContext(n);i.outlet=o,this.contexts.set(n,i)}onChildOutletDestroyed(n){let o=this.getContext(n);o&&(o.outlet=null,o.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let o=this.getContext(n);return o||(o=new IY,this.contexts.set(n,o)),o}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),PB=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=_Y(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=_Y(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=MY(e,this._root);return r.length<2?[]:r[r.length-2].children.map(o=>o.value).filter(o=>o!==e)}pathFromRoot(e){return MY(e,this._root).map(r=>r.value)}};function _Y(t,e){if(t===e.value)return e;for(let r of e.children){let n=_Y(t,r);if(n)return n}return null}function MY(t,e){if(t===e.value)return[e];for(let r of e.children){let n=MY(t,r);if(n.length)return n.unshift(e),n}return[]}var Du=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function IA(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var zB=class extends PB{constructor(e,r){super(e),this.snapshot=r,HY(this,e)}toString(){return this.snapshot.toString()}};function Rpe(t){let e=xut(t),r=new ll([new gm("",{})]),n=new ll({}),o=new ll({}),i=new ll({}),a=new ll(""),s=new ym(r,n,i,a,o,fi,t,e.root);return s.snapshot=e.root,new zB(new Du(s,[]),e)}function xut(t){let e={},r={},n={},o="",i=new hS([],e,n,o,r,fi,t,null,{});return new LB("",new Du(i,[]))}var ym=class{constructor(e,r,n,o,i,a,s,l){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=i,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(Hi(u=>u[mS]))??ui(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(Hi(e=>kA(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Hi(e=>kA(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function LY(t,e,r="emptyOnly"){let n,{routeConfig:o}=t;return e!==null&&(r==="always"||o?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:Je(Je({},e.params),t.params),data:Je(Je({},e.data),t.data),resolve:Je(Je(Je(Je({},t.data),e.data),o?.data),t._resolvedData)}:n={params:Je({},t.params),data:Je({},t.data),resolve:Je(Je({},t.data),t._resolvedData??{})},o&&zpe(o)&&(n.resolve[mS]=o.title),n}var hS=class{get title(){return this.data?.[mS]}constructor(e,r,n,o,i,a,s,l,u){this.url=e,this.params=r,this.queryParams=n,this.fragment=o,this.data=i,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=kA(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=kA(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},LB=class extends PB{constructor(e,r){super(r),this.url=e,HY(this,r)}toString(){return Ppe(this._root)}};function HY(t,e){e.value._routerState=t,e.children.forEach(r=>HY(t,r))}function Ppe(t){let e=t.children.length>0?` { ${t.children.map(Ppe).join(", ")} } `:"";return`${t.value}${e}`}function cY(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,df(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),df(e.params,r.params)||t.paramsSubject.next(r.params),Y2t(e.url,r.url)||t.urlSubject.next(r.url),df(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function kY(t,e){let r=df(t.params,e.params)&&eut(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||kY(t.parent,e.parent))}function zpe(t){return typeof t.title=="string"||t.title===null}var VY=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=fi,this.activateEvents=new Zl,this.deactivateEvents=new Zl,this.attachEvents=new Zl,this.detachEvents=new Zl,this.parentContexts=dn(jB),this.location=dn(sm),this.changeDetector=dn(Dp),this.environmentInjector=dn(ua),this.inputBinder=dn(jY,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:o,previousValue:i}=n.name;if(o)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),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 Mo(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Mo(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Mo(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,o){this.activated=n,this._activatedRoute=o,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,o){if(this.isActivated)throw new Mo(4013,!1);this._activatedRoute=n;let i=this.location,s=n.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,u=new TY(n,l,i.injector);this.activated=i.createComponent(s,{index:i.length,injector:u,environmentInjector:o??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=Xl({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Sd]});let t=e;return t})(),TY=class{constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n,this.__ngOutletInjector=!0}get(e,r){return e===ym?this.route:e===jB?this.childContexts:this.parent.get(e,r)}},jY=new di("");function wut(t,e,r){let n=pS(t,e._root,r?r._root:void 0);return new zB(n,e)}function pS(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let o=Cut(t,e,r);return new Du(n,o)}else{if(t.shouldAttach(e.value)){let i=t.retrieve(e.value);if(i!==null){let a=i.route;return a.value._futureSnapshot=e.value,a.children=e.children.map(s=>pS(t,s)),a}}let n=Eut(e.value),o=e.children.map(i=>pS(t,i));return new Du(n,o)}}function Cut(t,e,r){return e.children.map(n=>{for(let o of r.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return pS(t,n,o);return pS(t,n)})}function Eut(t){return new ym(new ll(t.url),new ll(t.params),new ll(t.queryParams),new ll(t.fragment),new ll(t.data),t.outlet,t.component,t)}var Lpe="ngNavigationCancelingError";function Hpe(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=TA(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,o=Vpe(!1,Iu.Redirect);return o.url=r,o.navigationBehaviorOptions=n,o}function Vpe(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[Lpe]=!0,r.cancellationCode=e,r}function Sut(t){return jpe(t)&&TA(t.url)}function jpe(t){return!!t&&t[Lpe]}var Dut=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=Ln({type:e,selectors:[["ng-component"]],standalone:!0,features:[Wn],decls:1,vars:0,template:function(o,i){o&1&&Do(0,"router-outlet")},dependencies:[VY],encapsulation:2});let t=e;return t})();function Iut(t,e){return t.providers&&!t._injector&&(t._injector=UK(t.providers,e,`Route: ${t.path}`)),t._injector??e}function QY(t){let e=t.children&&t.children.map(QY),r=e?lr(Je({},t),{children:e}):Je({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==fi&&(r.component=Dut),r}function ff(t){return t.outlet||fi}function _ut(t,e){let r=t.filter(n=>ff(n)===e);return r.push(...t.filter(n=>ff(n)!==e)),r}function vS(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var Mut=(t,e,r,n)=>Hi(o=>(new OY(e,o.targetRouterState,o.currentRouterState,r,n).activate(t),o)),OY=class{constructor(e,r,n,o,i){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=i}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),cY(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let o=IA(r);e.children.forEach(i=>{let a=i.value.outlet;this.deactivateRoutes(i,o[a],n),delete o[a]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,n)})}deactivateRoutes(e,r,n){let o=e.value,i=r?r.value:null;if(o===i)if(o.component){let a=n.getContext(o.outlet);a&&this.deactivateChildRoutes(e,r,a.children)}else this.deactivateChildRoutes(e,r,n);else i&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),o=n&&e.value.component?n.children:r,i=IA(e);for(let a of Object.values(i))this.deactivateRouteAndItsChildren(a,o);if(n&&n.outlet){let a=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:a,route:e,contexts:s})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),o=n&&e.value.component?n.children:r,i=IA(e);for(let a of Object.values(i))this.deactivateRouteAndItsChildren(a,o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let o=IA(r);e.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],n),this.forwardEvent(new DY(i.value.snapshot))}),e.children.length&&this.forwardEvent(new EY(e.value.snapshot))}activateRoutes(e,r,n){let o=e.value,i=r?r.value:null;if(cY(o),o===i)if(o.component){let a=n.getOrCreateContext(o.outlet);this.activateChildRoutes(e,r,a.children)}else this.activateChildRoutes(e,r,n);else if(o.component){let a=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),cY(s.route.value),this.activateChildRoutes(e,null,a.children)}else{let s=vS(o.snapshot);a.attachRef=null,a.route=o,a.injector=s,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(e,null,a.children)}}else this.activateChildRoutes(e,null,n)}},HB=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},MA=class{constructor(e,r){this.component=e,this.route=r}};function kut(t,e,r){let n=t._root,o=e?e._root:null;return nS(n,o,r,[n.value])}function Tut(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function BA(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!E6e(t)?t:e.get(t):n}function nS(t,e,r,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=IA(e);return t.children.forEach(a=>{Out(a,i[a.value.outlet],r,n.concat([a.value]),o),delete i[a.value.outlet]}),Object.entries(i).forEach(([a,s])=>sS(s,r.getContext(a),o)),o}function Out(t,e,r,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=t.value,a=e?e.value:null,s=r?r.getContext(t.value.outlet):null;if(a&&i.routeConfig===a.routeConfig){let l=But(a,i,i.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new HB(n)):(i.data=a.data,i._resolvedData=a._resolvedData),i.component?nS(t,e,s?s.children:null,n,o):nS(t,e,r,n,o),l&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new MA(s.outlet.component,a))}else a&&sS(e,s,o),o.canActivateChecks.push(new HB(n)),i.component?nS(t,null,s?s.children:null,n,o):nS(t,null,r,n,o);return o}function But(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!mm(t.url,e.url);case"pathParamsOrQueryParamsChange":return!mm(t.url,e.url)||!df(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!kY(t,e)||!df(t.queryParams,e.queryParams);case"paramsChange":default:return!kY(t,e)}}function sS(t,e,r){let n=IA(t),o=t.value;Object.entries(n).forEach(([i,a])=>{o.component?e?sS(a,e.children.getContext(i),r):sS(a,null,r):sS(a,e,r)}),o.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new MA(e.outlet.component,o)):r.canDeactivateChecks.push(new MA(null,o)):r.canDeactivateChecks.push(new MA(null,o))}function yS(t){return typeof t=="function"}function Fut(t){return typeof t=="boolean"}function Nut(t){return t&&yS(t.canLoad)}function Rut(t){return t&&yS(t.canActivate)}function Put(t){return t&&yS(t.canActivateChild)}function zut(t){return t&&yS(t.canDeactivate)}function Lut(t){return t&&yS(t.canMatch)}function Qpe(t){return t instanceof c5||t?.name==="EmptyError"}var MB=Symbol("INITIAL_VALUE");function OA(){return L4(t=>gO(t.map(e=>e.pipe(u5(1),$$(MB)))).pipe(Hi(e=>{for(let r of e)if(r!==!0){if(r===MB)return MB;if(r===!1||r instanceof _p)return r}return!0}),z4(e=>e!==MB),u5(1)))}function Hut(t,e){return l0(r=>{let{targetSnapshot:n,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:a}}=r;return a.length===0&&i.length===0?ui(lr(Je({},r),{guardsResult:!0})):Vut(a,n,o,t).pipe(l0(s=>s&&Fut(s)?jut(n,i,t,e):ui(s)),Hi(s=>lr(Je({},r),{guardsResult:s})))})}function Vut(t,e,r,n){return I1(t).pipe(l0(o=>$ut(o.component,o.route,r,e,n)),rf(o=>o!==!0,!0))}function jut(t,e,r,n){return I1(e).pipe(rA(o=>tA(Uut(o.route.parent,n),Qut(o.route,n),Gut(t,o.path,r),Wut(t,o.route,r))),rf(o=>o!==!0,!0))}function Qut(t,e){return t!==null&&e&&e(new SY(t)),ui(!0)}function Uut(t,e){return t!==null&&e&&e(new CY(t)),ui(!0)}function Wut(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return ui(!0);let o=n.map(i=>mO(()=>{let a=vS(e)??r,s=BA(i,a),l=Rut(s)?s.canActivate(e,t):tm(a,()=>s(e,t));return Tp(l).pipe(rf())}));return ui(o).pipe(OA())}function Gut(t,e,r){let n=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(a=>Tut(a)).filter(a=>a!==null).map(a=>mO(()=>{let s=a.guards.map(l=>{let u=vS(a.node)??r,d=BA(l,u),f=Put(d)?d.canActivateChild(n,t):tm(u,()=>d(n,t));return Tp(f).pipe(rf())});return ui(s).pipe(OA())}));return ui(i).pipe(OA())}function $ut(t,e,r,n,o){let i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!i||i.length===0)return ui(!0);let a=i.map(s=>{let l=vS(e)??o,u=BA(s,l),d=zut(u)?u.canDeactivate(t,e,r,n):tm(l,()=>u(t,e,r,n));return Tp(d).pipe(rf())});return ui(a).pipe(OA())}function Zut(t,e,r,n){let o=e.canLoad;if(o===void 0||o.length===0)return ui(!0);let i=o.map(a=>{let s=BA(a,t),l=Nut(s)?s.canLoad(e,r):tm(t,()=>s(e,r));return Tp(l)});return ui(i).pipe(OA(),Upe(n))}function Upe(t){return P$(cl(e=>{if(TA(e))throw Hpe(t,e)}),Hi(e=>e===!0))}function Kut(t,e,r,n){let o=e.canMatch;if(!o||o.length===0)return ui(!0);let i=o.map(a=>{let s=BA(a,t),l=Lut(s)?s.canMatch(e,r):tm(t,()=>s(e,r));return Tp(l)});return ui(i).pipe(OA(),Upe(n))}var gS=class{constructor(e){this.segmentGroup=e||null}},VB=class extends Error{constructor(e){super(),this.urlTree=e}};function DA(t){return eA(new gS(t))}function Yut(t){return eA(new Mo(4e3,!1))}function qut(t){return eA(Vpe(!1,Iu.GuardRejected))}var BY=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],o=r.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return ui(n);if(o.numberOfChildren>1||!o.children[fi])return Yut(e.redirectTo);o=o.children[fi]}}applyRedirectCommands(e,r,n){let o=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r.startsWith("/"))throw new VB(o);return o}applyRedirectCreateUrlTree(e,r,n,o){let i=this.createSegmentGroup(e,r.root,n,o);return new _p(i,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([o,i])=>{if(typeof i=="string"&&i.startsWith(":")){let s=i.substring(1);n[o]=r[s]}else n[o]=i}),n}createSegmentGroup(e,r,n,o){let i=this.createSegments(e,r.segments,n,o),a={};return Object.entries(r.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(e,l,n,o)}),new Ba(i,a)}createSegments(e,r,n,o){return r.map(i=>i.path.startsWith(":")?this.findPosParam(e,i,o):this.findOrReturn(i,n))}findPosParam(e,r,n){let o=n[r.path.substring(1)];if(!o)throw new Mo(4001,!1);return o}findOrReturn(e,r){let n=0;for(let o of r){if(o.path===e.path)return r.splice(n),o;n++}return e}},FY={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Xut(t,e,r,n,o){let i=UY(t,e,r);return i.matched?(n=Iut(e,n),Kut(n,e,r,o).pipe(Hi(a=>a===!0?i:Je({},FY)))):ui(i)}function UY(t,e,r){if(e.path==="**")return Jut(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?Je({},FY):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let o=(e.matcher||K2t)(r,t,e);if(!o)return Je({},FY);let i={};Object.entries(o.posParams??{}).forEach(([s,l])=>{i[s]=l.path});let a=o.consumed.length>0?Je(Je({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:r.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function Jut(t){return{matched:!0,parameters:t.length>0?Cpe(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function xpe(t,e,r,n){return r.length>0&&rdt(t,r,n)?{segmentGroup:new Ba(e,tdt(n,new Ba(r,t.children))),slicedSegments:[]}:r.length===0&&ndt(t,r,n)?{segmentGroup:new Ba(t.segments,edt(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new Ba(t.segments,t.children),slicedSegments:r}}function edt(t,e,r,n){let o={};for(let i of r)if(QB(t,e,i)&&!n[ff(i)]){let a=new Ba([],{});o[ff(i)]=a}return Je(Je({},n),o)}function tdt(t,e){let r={};r[fi]=e;for(let n of t)if(n.path===""&&ff(n)!==fi){let o=new Ba([],{});r[ff(n)]=o}return r}function rdt(t,e,r){return r.some(n=>QB(t,e,n)&&ff(n)!==fi)}function ndt(t,e,r){return r.some(n=>QB(t,e,n))}function QB(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function odt(t,e,r,n){return ff(t)!==n&&(n===fi||!QB(e,r,t))?!1:UY(e,t,r).matched}function idt(t,e,r){return e.length===0&&!t.children[r]}var NY=class{};function adt(t,e,r,n,o,i,a="emptyOnly"){return new RY(t,e,r,n,o,a,i).recognize()}var sdt=31,RY=class{constructor(e,r,n,o,i,a,s){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new BY(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new Mo(4002,`'${e.segmentGroup}'`)}recognize(){let e=xpe(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(Hi(r=>{let n=new hS([],Object.freeze({}),Object.freeze(Je({},this.urlTree.queryParams)),this.urlTree.fragment,{},fi,this.rootComponentType,null,{}),o=new Du(n,r),i=new LB("",o),a=put(n,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(i._root,null),{state:i,tree:a}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,fi).pipe(mp(n=>{if(n instanceof VB)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof gS?this.noMatchError(n):n}))}inheritParamsAndData(e,r){let n=e.value,o=LY(n,r,this.paramsInheritanceStrategy);n.params=Object.freeze(o.params),n.data=Object.freeze(o.data),e.children.forEach(i=>this.inheritParamsAndData(i,n))}processSegmentGroup(e,r,n,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n):this.processSegment(e,r,n,n.segments,o,!0).pipe(Hi(i=>i instanceof Du?[i]:[]))}processChildren(e,r,n){let o=[];for(let i of Object.keys(n.children))i==="primary"?o.unshift(i):o.push(i);return I1(o).pipe(rA(i=>{let a=n.children[i],s=_ut(r,i);return this.processSegmentGroup(e,s,a,i)}),G$((i,a)=>(i.push(...a),i)),vp(null),W$(),l0(i=>{if(i===null)return DA(n);let a=Wpe(i);return ldt(a),ui(a)}))}processSegment(e,r,n,o,i,a){return I1(r).pipe(rA(s=>this.processSegmentAgainstRoute(s._injector??e,r,s,n,o,i,a).pipe(mp(l=>{if(l instanceof gS)return ui(null);throw l}))),rf(s=>!!s),mp(s=>{if(Qpe(s))return idt(n,o,i)?ui(new NY):DA(n);throw s}))}processSegmentAgainstRoute(e,r,n,o,i,a,s){return odt(n,o,i,a)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,o,n,i,a):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(e,o,r,n,i,a):DA(o):DA(o)}expandSegmentAgainstRouteUsingRedirect(e,r,n,o,i,a){let{matched:s,consumedSegments:l,positionalParamSegments:u,remainingSegments:d}=UY(r,o,i);if(!s)return DA(r);o.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>sdt&&(this.allowRedirects=!1));let f=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,u);return this.applyRedirects.lineralizeSegments(o,f).pipe(l0(c=>this.processSegment(e,n,r,c.concat(d),a,!1)))}matchSegmentAgainstRoute(e,r,n,o,i){let a=Xut(r,n,o,e,this.urlSerializer);return n.path==="**"&&(r.children={}),a.pipe(L4(s=>s.matched?(e=n._injector??e,this.getChildConfig(e,n,o).pipe(L4(({routes:l})=>{let u=n._loadedInjector??e,{consumedSegments:d,remainingSegments:f,parameters:c}=s,h=new hS(d,c,Object.freeze(Je({},this.urlTree.queryParams)),this.urlTree.fragment,udt(n),ff(n),n.component??n._loadedComponent??null,n,ddt(n)),{segmentGroup:g,slicedSegments:p}=xpe(r,d,f,l);if(p.length===0&&g.hasChildren())return this.processChildren(u,l,g).pipe(Hi(v=>v===null?null:new Du(h,v)));if(l.length===0&&p.length===0)return ui(new Du(h,[]));let m=ff(n)===i;return this.processSegment(u,l,g,p,m?fi:i,!0).pipe(Hi(v=>new Du(h,v instanceof Du?[v]:[])))}))):DA(r)))}getChildConfig(e,r,n){return r.children?ui({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?ui({routes:r._loadedRoutes,injector:r._loadedInjector}):Zut(e,r,n,this.urlSerializer).pipe(l0(o=>o?this.configLoader.loadChildren(e,r).pipe(cl(i=>{r._loadedRoutes=i.routes,r._loadedInjector=i.injector})):qut(r))):ui({routes:[],injector:e})}};function ldt(t){t.sort((e,r)=>e.value.outlet===fi?-1:r.value.outlet===fi?1:e.value.outlet.localeCompare(r.value.outlet))}function cdt(t){let e=t.value.routeConfig;return e&&e.path===""}function Wpe(t){let e=[],r=new Set;for(let n of t){if(!cdt(n)){e.push(n);continue}let o=e.find(i=>n.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...n.children),r.add(o)):e.push(n)}for(let n of r){let o=Wpe(n.children);e.push(new Du(n.value,o))}return e.filter(n=>!r.has(n))}function udt(t){return t.data||{}}function ddt(t){return t.resolve||{}}function fdt(t,e,r,n,o,i){return l0(a=>adt(t,e,r,n,a.extractedUrl,o,i).pipe(Hi(({state:s,tree:l})=>lr(Je({},a),{targetSnapshot:s,urlAfterRedirects:l}))))}function hdt(t,e){return l0(r=>{let{targetSnapshot:n,guards:{canActivateChecks:o}}=r;if(!o.length)return ui(r);let i=new Set(o.map(l=>l.route)),a=new Set;for(let l of i)if(!a.has(l))for(let u of Gpe(l))a.add(u);let s=0;return I1(a).pipe(rA(l=>i.has(l)?pdt(l,n,t,e):(l.data=LY(l,l.parent,t).resolve,ui(void 0))),cl(()=>s++),nA(1),l0(l=>s===a.size?ui(r):Eu))})}function Gpe(t){let e=t.children.map(r=>Gpe(r)).flat();return[t,...e]}function pdt(t,e,r,n){let o=t.routeConfig,i=t._resolve;return o?.title!==void 0&&!zpe(o)&&(i[mS]=o.title),gdt(i,t,e,n).pipe(Hi(a=>(t._resolvedData=a,t.data=LY(t,t.parent,r).resolve,null)))}function gdt(t,e,r,n){let o=fY(t);if(o.length===0)return ui({});let i={};return I1(o).pipe(l0(a=>mdt(t[a],e,r,n).pipe(rf(),cl(s=>{i[a]=s}))),nA(1),U$(i),mp(a=>Qpe(a)?Eu:eA(a)))}function mdt(t,e,r,n){let o=vS(e)??n,i=BA(t,o),a=i.resolve?i.resolve(e,r):tm(o,()=>i(e,r));return Tp(a)}function uY(t){return L4(e=>{let r=t(e);return r?I1(r).pipe(Hi(()=>e)):ui(e)})}var $pe=(()=>{let e=class e{buildTitle(n){let o,i=n.root;for(;i!==void 0;)o=this.getResolvedTitleForRoute(i)??o,i=i.children.find(a=>a.outlet===fi);return o}getResolvedTitleForRoute(n){return n.data[mS]}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:()=>dn(vdt),providedIn:"root"});let t=e;return t})(),vdt=(()=>{let e=class e extends $pe{constructor(n){super(),this.title=n}updateTitle(n){let o=this.buildTitle(n);o!==void 0&&this.title.setTitle(o)}};e.\u0275fac=function(o){return new(o||e)(ra(mpe))},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),WY=new di("",{providedIn:"root",factory:()=>({})}),GY=new di(""),ydt=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=dn(YK)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return ui(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let o=Tp(n.loadComponent()).pipe(Hi(Zpe),cl(a=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=a}),DE(()=>{this.componentLoaders.delete(n)})),i=new Jy(o,()=>new $l).pipe(Xy());return this.componentLoaders.set(n,i),i}loadChildren(n,o){if(this.childrenLoaders.get(o))return this.childrenLoaders.get(o);if(o._loadedRoutes)return ui({routes:o._loadedRoutes,injector:o._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(o);let a=Adt(o,this.compiler,n,this.onLoadEndListener).pipe(DE(()=>{this.childrenLoaders.delete(o)})),s=new Jy(a,()=>new $l).pipe(Xy());return this.childrenLoaders.set(o,s),s}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Adt(t,e,r,n){return Tp(t.loadChildren()).pipe(Hi(Zpe),l0(o=>o instanceof HE||Array.isArray(o)?ui(o):I1(e.compileModuleAsync(o))),Hi(o=>{n&&n(t);let i,a,s=!1;return Array.isArray(o)?(a=o,s=!0):(i=o.create(r).injector,a=i.get(GY,[],{optional:!0,self:!0}).flat()),{routes:a.map(QY),injector:i}}))}function bdt(t){return t&&typeof t=="object"&&"default"in t}function Zpe(t){return bdt(t)?t.default:t}var $Y=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:()=>dn(xdt),providedIn:"root"});let t=e;return t})(),xdt=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,o){return n}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),wdt=new di("");var Cdt=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new $l,this.transitionAbortSubject=new $l,this.configLoader=dn(ydt),this.environmentInjector=dn(ua),this.urlSerializer=dn(zY),this.rootContexts=dn(jB),this.location=dn(XE),this.inputBindingEnabled=dn(jY,{optional:!0})!==null,this.titleStrategy=dn($pe),this.options=dn(WY,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=dn($Y),this.createViewTransition=dn(wdt,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ui(void 0),this.rootComponentType=null;let n=i=>this.events.next(new xY(i)),o=i=>this.events.next(new wY(i));this.configLoader.onLoadEndListener=o,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let o=++this.navigationId;this.transitions?.next(lr(Je(Je({},this.transitions.value),n),{id:o}))}setupNavigations(n,o,i){return this.transitions=new ll({id:0,currentUrlTree:o,currentRawUrl:o,extractedUrl:this.urlHandlingStrategy.extract(o),urlAfterRedirects:this.urlHandlingStrategy.extract(o),rawUrl:o,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:aS,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(z4(a=>a.id!==0),Hi(a=>lr(Je({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),L4(a=>{let s=!1,l=!1;return ui(a).pipe(L4(u=>{if(this.navigationId>a.id)return this.cancelNavigationTransition(a,"",Iu.SupersededByNewNavigation),Eu;this.currentTransition=a,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?lr(Je({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let d=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),f=u.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!d&&f!=="reload"){let c="";return this.events.next(new vm(u.id,this.urlSerializer.serialize(u.rawUrl),c,mY.IgnoredSameUrlNavigation)),u.resolve(null),Eu}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return ui(u).pipe(L4(c=>{let h=this.transitions?.getValue();return this.events.next(new cS(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),h!==this.transitions?.getValue()?Eu:Promise.resolve(c)}),fdt(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),cl(c=>{a.targetSnapshot=c.targetSnapshot,a.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation=lr(Je({},this.currentNavigation),{finalUrl:c.urlAfterRedirects});let h=new RB(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:c,extractedUrl:h,source:g,restoredState:p,extras:m}=u,v=new cS(c,this.urlSerializer.serialize(h),g,p);this.events.next(v);let b=Rpe(this.rootComponentType).snapshot;return this.currentTransition=a=lr(Je({},u),{targetSnapshot:b,urlAfterRedirects:h,extras:lr(Je({},m),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,ui(a)}else{let c="";return this.events.next(new vm(u.id,this.urlSerializer.serialize(u.extractedUrl),c,mY.IgnoredByUrlHandlingStrategy)),u.resolve(null),Eu}}),cl(u=>{let d=new vY(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}),Hi(u=>(this.currentTransition=a=lr(Je({},u),{guards:kut(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),a)),Hut(this.environmentInjector,u=>this.events.next(u)),cl(u=>{if(a.guardsResult=u.guardsResult,TA(u.guardsResult))throw Hpe(this.urlSerializer,u.guardsResult);let d=new yY(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(d)}),z4(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",Iu.GuardRejected),!1)),uY(u=>{if(u.guards.canActivateChecks.length)return ui(u).pipe(cl(d=>{let f=new AY(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(f)}),L4(d=>{let f=!1;return ui(d).pipe(hdt(this.paramsInheritanceStrategy,this.environmentInjector),cl({next:()=>f=!0,complete:()=>{f||this.cancelNavigationTransition(d,"",Iu.NoDataFromResolver)}}))}),cl(d=>{let f=new bY(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(f)}))}),uY(u=>{let d=f=>{let c=[];f.routeConfig?.loadComponent&&!f.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(f.routeConfig).pipe(cl(h=>{f.component=h}),Hi(()=>{})));for(let h of f.children)c.push(...d(h));return c};return gO(d(u.targetSnapshot.root)).pipe(vp(null),u5(1))}),uY(()=>this.afterPreactivation()),L4(()=>{let{currentSnapshot:u,targetSnapshot:d}=a,f=this.createViewTransition?.(this.environmentInjector,u.root,d.root);return f?I1(f).pipe(Hi(()=>a)):ui(a)}),Hi(u=>{let d=wut(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=a=lr(Je({},u),{targetRouterState:d}),this.currentNavigation.targetRouterState=d,a}),cl(()=>{this.events.next(new dS)}),Mut(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),u5(1),cl({next:u=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Mp(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{s=!0}}),Z$(this.transitionAbortSubject.pipe(cl(u=>{throw u}))),DE(()=>{!s&&!l&&this.cancelNavigationTransition(a,"",Iu.SupersededByNewNavigation),this.currentTransition?.id===a.id&&(this.currentNavigation=null,this.currentTransition=null)}),mp(u=>{if(l=!0,jpe(u))this.events.next(new kp(a.id,this.urlSerializer.serialize(a.extractedUrl),u.message,u.cancellationCode)),Sut(u)?this.events.next(new fS(u.url)):a.resolve(!1);else{this.events.next(new uS(a.id,this.urlSerializer.serialize(a.extractedUrl),u,a.targetSnapshot??void 0));try{a.resolve(n.errorHandler(u))}catch(d){this.options.resolveNavigationPromiseOnError?a.resolve(!1):a.reject(d)}}return Eu}))}))}cancelNavigationTransition(n,o,i){let a=new kp(n.id,this.urlSerializer.serialize(n.extractedUrl),o,i);this.events.next(a),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(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Edt(t){return t!==aS}var Sdt=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:()=>dn(Ddt),providedIn:"root"});let t=e;return t})(),PY=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},Ddt=(()=>{let e=class e extends PY{};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=GE(e)))(i||e)}})(),e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Kpe=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:()=>dn(Idt),providedIn:"root"});let t=e;return t})(),Idt=(()=>{let e=class e extends Kpe{constructor(){super(...arguments),this.location=dn(XE),this.urlSerializer=dn(zY),this.options=dn(WY,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=dn($Y),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new _p,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Rpe(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(o=>{o.type==="popstate"&&n(o.url,o.state)})}handleRouterEvent(n,o){if(n instanceof cS)this.stateMemento=this.createStateMemento();else if(n instanceof vm)this.rawUrlTree=o.initialUrl;else if(n instanceof RB){if(this.urlUpdateStrategy==="eager"&&!o.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl);this.setBrowserUrl(i,o)}}else n instanceof dS?(this.currentUrlTree=o.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl),this.routerState=o.targetRouterState,this.urlUpdateStrategy==="deferred"&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o))):n instanceof kp&&(n.code===Iu.GuardRejected||n.code===Iu.NoDataFromResolver)?this.restoreHistory(o):n instanceof uS?this.restoreHistory(o,!0):n instanceof Mp&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,o){let i=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(i)||o.extras.replaceUrl){let a=this.browserPageId,s=Je(Je({},o.extras.state),this.generateNgRouterState(o.id,a));this.location.replaceState(i,"",s)}else{let a=Je(Je({},o.extras.state),this.generateNgRouterState(o.id,this.browserPageId+1));this.location.go(i,"",a)}}restoreHistory(n,o=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,a=this.currentPageId-i;a!==0?this.location.historyGo(a):this.currentUrlTree===n.finalUrl&&a===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(o&&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,o){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:o}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=GE(e)))(i||e)}})(),e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),oS=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(oS||{});function _dt(t,e){t.events.pipe(z4(r=>r instanceof Mp||r instanceof kp||r instanceof uS||r instanceof vm),Hi(r=>r instanceof Mp||r instanceof vm?oS.COMPLETE:(r instanceof kp?r.code===Iu.Redirect||r.code===Iu.SupersededByNewNavigation:!1)?oS.REDIRECTING:oS.FAILED),z4(r=>r!==oS.REDIRECTING),u5(1)).subscribe(()=>{e()})}function Mdt(t){throw t}var kdt={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Tdt={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ZY=(()=>{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.isNgZoneEnabled=!1,this.console=dn(CB),this.stateManager=dn(Kpe),this.options=dn(WY,{optional:!0})||{},this.pendingTasks=dn(ZE),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=dn(Cdt),this.urlSerializer=dn(zY),this.location=dn(XE),this.urlHandlingStrategy=dn($Y),this._events=new $l,this.errorHandler=this.options.errorHandler||Mdt,this.navigated=!1,this.routeReuseStrategy=dn(Sdt),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=dn(GY,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!dn(jY,{optional:!0}),this.eventsSubscription=new s0,this.isNgZoneEnabled=dn(_a)instanceof _a&&_a.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(o=>{try{let i=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(i!==null&&a!==null){if(this.stateManager.handleRouterEvent(o,a),o instanceof kp&&o.code!==Iu.Redirect&&o.code!==Iu.SupersededByNewNavigation)this.navigated=!0;else if(o instanceof Mp)this.navigated=!0;else if(o instanceof fS){let s=this.urlHandlingStrategy.merge(o.url,i.currentRawUrl),l={info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||Edt(i.source)};this.scheduleNavigation(s,aS,null,l,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Bdt(o)&&this._events.next(o)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});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),aS,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,o)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",o)},0)})}navigateToSyncWithBrowser(n,o,i){let a={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let u=Je({},i);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(a.state=u)}let l=this.parseUrl(n);this.scheduleNavigation(l,o,s,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(QY),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,o={}){let{relativeTo:i,queryParams:a,fragment:s,queryParamsHandling:l,preserveFragment:u}=o,d=u?this.currentUrlTree.fragment:s,f=null;switch(l){case"merge":f=Je(Je({},this.currentUrlTree.queryParams),a);break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=a||null}f!==null&&(f=this.removeEmptyProps(f));let c;try{let h=i?i.snapshot:this.routerState.snapshot.root;c=Ope(h)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),c=this.currentUrlTree.root}return Bpe(c,n,f,d??null)}navigateByUrl(n,o={skipLocationChange:!1}){let i=TA(n)?n:this.parseUrl(n),a=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(a,aS,null,o)}navigate(n,o={skipLocationChange:!1}){return Odt(n),this.navigateByUrl(this.createUrlTree(n,o),o)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,o){let i;if(o===!0?i=Je({},kdt):o===!1?i=Je({},Tdt):i=o,TA(n))return vpe(this.currentUrlTree,n,i);let a=this.parseUrl(n);return vpe(this.currentUrlTree,a,i)}removeEmptyProps(n){return Object.entries(n).reduce((o,[i,a])=>(a!=null&&(o[i]=a),o),{})}scheduleNavigation(n,o,i,a,s){if(this.disposed)return Promise.resolve(!1);let l,u,d;s?(l=s.resolve,u=s.reject,d=s.promise):d=new Promise((c,h)=>{l=c,u=h});let f=this.pendingTasks.add();return _dt(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(f))}),this.navigationTransitions.handleNavigationRequest({source:o,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:a,resolve:l,reject:u,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(c=>Promise.reject(c))}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Odt(t){for(let e=0;e{let e=class e{constructor(n,o,i,a,s,l){this.router=n,this.route=o,this.tabIndexAttribute=i,this.renderer=a,this.el=s,this.locationStrategy=l,this.href=null,this.commands=null,this.onChanges=new $l,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let u=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=n.events.subscribe(d=>{d instanceof Mp&&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,o,i,a,s){let l=this.urlTree;if(l===null||this.isAnchorElement&&(n!==0||o||i||a||s||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(l,u),!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 o=this.href===null?null:O5e(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",o)}applyAttributeValue(n,o){let i=this.renderer,a=this.el.nativeElement;o!==null?i.setAttribute(a,n,o):i.removeAttribute(a,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(o){return new(o||e)(vs(ZY),vs(ym),EK("tabindex"),vs(im),vs(Q1),vs(SA))},e.\u0275dir=Xl({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(o,i){o&1&&ko("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),o&2&&xB("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[Yn.HasDecoratorInputTransform,"preserveFragment","preserveFragment",dm],skipLocationChange:[Yn.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",dm],replaceUrl:[Yn.HasDecoratorInputTransform,"replaceUrl","replaceUrl",dm],routerLink:"routerLink"},standalone:!0,features:[QK,Sd]});let t=e;return t})();var Fdt=new di("");function qpe(t,...e){return JO([{provide:GY,multi:!0,useValue:t},[],{provide:ym,useFactory:Ndt,deps:[ZY]},{provide:KK,multi:!0,useFactory:Rdt},e.map(r=>r.\u0275providers)])}function Ndt(t){return t.routerState.root}function Rdt(){let t=dn(dl);return e=>{let r=t.get(_d);if(e!==r.components[0])return;let n=t.get(ZY),o=t.get(Pdt);t.get(zdt)===1&&n.initialNavigation(),t.get(Ldt,null,Ii.Optional)?.setUpPreloading(),t.get(Fdt,null,Ii.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var Pdt=new di("",{factory:()=>new $l}),zdt=new di("",{providedIn:"root",factory:()=>1});var Ldt=new di("");var ii=It(gr(),1),Ove=It(pJ(),1),Bve=It(z2(),1);var rft=["child"],Fu=(()=>{let e=class e{constructor(){this.enable=So(),this._child=whe("child"),this.ready=No(!1),this.child=O2(()=>{if(this.enable())return this._child()})}ngOnInit(){}ngAfterContentInit(){this.ready.set(!0)}};e.\u0275fac=function(o){return new(o||o)},e.\u0275cmp=Ln({type:e,selectors:[["bridge-child"]],contentQueries:function(o,i,a){o&1&&Su(a,i._child,rft,5),o&2&&rs()},inputs:{enable:[Yn.SignalBased,"enable"]},standalone:!0,features:[Wn],decls:0,vars:0,template:function(o,i){},encapsulation:2});let t=e;return t})(),Tme=(()=>{let e=class e{transform(n,...o){return(...i)=>n(...o,...i)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275pipe=UE({name:"curry",type:e,pure:!0,standalone:!0});let t=e;return t})();function gJ(t,e){let r=new Set(t.split(","));return e?n=>r.has(n.toLowerCase()):n=>r.has(n)}var Ome=()=>{};var nft=Object.prototype.hasOwnProperty,dD=(t,e)=>nft.call(t,e),Jp=Array.isArray,fD=t=>Bme(t)==="[object Map]";var mJ=t=>typeof t=="function",oft=t=>typeof t=="string",hD=t=>typeof t=="symbol",ub=t=>t!==null&&typeof t=="object";var ift=Object.prototype.toString,Bme=t=>ift.call(t),Fme=t=>Bme(t).slice(8,-1);var fN=t=>oft(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t;var hN=t=>{let e=Object.create(null);return r=>e[r]||(e[r]=t(r))},aft=/-(\w)/g,Cbr=hN(t=>t.replace(aft,(e,r)=>r?r.toUpperCase():"")),sft=/\B([A-Z])/g,Ebr=hN(t=>t.replace(sft,"-$1").toLowerCase()),lft=hN(t=>t.charAt(0).toUpperCase()+t.slice(1)),Sbr=hN(t=>t?`on${lft(t)}`:""),Fm=(t,e)=>!Object.is(t,e);var Nme=(t,e,r)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r})};var cft="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly";var Dbr=gJ(cft+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");var t3,gD=class{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=t3,!e&&t3&&(this.index=(t3.scopes||(t3.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){let r=t3;try{return t3=this,e()}finally{t3=r}}}on(){t3=this}off(){t3=this.parent}stop(e){if(this._active){let r,n;for(r=0,n=this.effects.length;r=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),M5()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=t8,r=Nm;try{return t8=!0,Nm=this,this._runnings++,Rme(this),this.fn()}finally{Pme(this),this._runnings--,Nm=r,t8=e}}stop(){var e;this.active&&(Rme(this),Pme(this),(e=this.onStop)==null||e.call(this),this.active=!1)}};function dft(t){return t.value}function Rme(t){t._trackId++,t._depsLength=0}function Pme(t){if(t.deps.length>t._depsLength){for(let e=t._depsLength;e{let r=new Map;return r.cleanup=t,r.computed=e,r},AN=new WeakMap,Rm=Symbol(""),AJ=Symbol("");function Vc(t,e,r){if(t8&&Nm){let n=AN.get(t);n||AN.set(t,n=new Map);let o=n.get(r);o||n.set(r,o=$me(()=>n.delete(r))),Wme(Nm,o,void 0)}}function Af(t,e,r,n,o,i){let a=AN.get(t);if(!a)return;let s=[];if(e==="clear")s=[...a.values()];else if(r==="length"&&Jp(t)){let l=Number(n);a.forEach((u,d)=>{(d==="length"||!hD(d)&&d>=l)&&s.push(u)})}else switch(r!==void 0&&s.push(a.get(r)),e){case"add":Jp(t)?fN(r)&&s.push(a.get("length")):(s.push(a.get(Rm)),fD(t)&&s.push(a.get(AJ)));break;case"delete":Jp(t)||(s.push(a.get(Rm)),fD(t)&&s.push(a.get(AJ)));break;case"set":fD(t)&&s.push(a.get(Rm));break}SJ();for(let l of s)l&&Gme(l,4,void 0);DJ()}function fft(t,e){var r;return(r=AN.get(t))==null?void 0:r.get(e)}var hft=gJ("__proto__,__v_isRef,__isVue"),Zme=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(hD)),zme=pft();function pft(){let t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){let n=Jo(this);for(let i=0,a=this.length;i{t[e]=function(...r){_5(),SJ();let n=Jo(this)[e].apply(this,r);return DJ(),M5(),n}}),t}function gft(t){let e=Jo(this);return Vc(e,"has",t),e.hasOwnProperty(t)}var bN=class{constructor(e=!1,r=!1){this._isReadonly=e,this._isShallow=r}get(e,r,n){let o=this._isReadonly,i=this._isShallow;if(r==="__v_isReactive")return!o;if(r==="__v_isReadonly")return o;if(r==="__v_isShallow")return i;if(r==="__v_raw")return n===(o?i?Ift:qme:i?Yme:Kme).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=Jp(e);if(!o){if(a&&dD(zme,r))return Reflect.get(zme,r,n);if(r==="hasOwnProperty")return gft}let s=Reflect.get(e,r,n);return(hD(r)?Zme.has(r):hft(r))||(o||Vc(e,"get",r),i)?s:h0(s)?a&&fN(r)?s:s.value:ub(s)?o?MJ(s):s1(s):s}},xN=class extends bN{constructor(e=!1){super(!1,e)}set(e,r,n,o){let i=e[r];if(!this._isShallow){let l=r8(i);if(!db(n)&&!r8(n)&&(i=Jo(i),n=Jo(n)),!Jp(e)&&h0(i)&&!h0(n))return l?!1:(i.value=n,!0)}let a=Jp(e)&&fN(r)?Number(r)t,CN=t=>Reflect.getPrototypeOf(t);function pN(t,e,r=!1,n=!1){t=t.__v_raw;let o=Jo(t),i=Jo(e);r||(Fm(e,i)&&Vc(o,"get",e),Vc(o,"get",i));let{has:a}=CN(o),s=n?IJ:r?TJ:mD;if(a.call(o,e))return s(t.get(e));if(a.call(o,i))return s(t.get(i));t!==o&&t.get(e)}function gN(t,e=!1){let r=this.__v_raw,n=Jo(r),o=Jo(t);return e||(Fm(t,o)&&Vc(n,"has",t),Vc(n,"has",o)),t===o?r.has(t):r.has(t)||r.has(o)}function mN(t,e=!1){return t=t.__v_raw,!e&&Vc(Jo(t),"iterate",Rm),Reflect.get(t,"size",t)}function Lme(t){t=Jo(t);let e=Jo(this);return CN(e).has.call(e,t)||(e.add(t),Af(e,"add",t,t)),this}function Hme(t,e){e=Jo(e);let r=Jo(this),{has:n,get:o}=CN(r),i=n.call(r,t);i||(t=Jo(t),i=n.call(r,t));let a=o.call(r,t);return r.set(t,e),i?Fm(e,a)&&Af(r,"set",t,e,a):Af(r,"add",t,e),this}function Vme(t){let e=Jo(this),{has:r,get:n}=CN(e),o=r.call(e,t);o||(t=Jo(t),o=r.call(e,t));let i=n?n.call(e,t):void 0,a=e.delete(t);return o&&Af(e,"delete",t,void 0,i),a}function jme(){let t=Jo(this),e=t.size!==0,r=void 0,n=t.clear();return e&&Af(t,"clear",void 0,void 0,r),n}function vN(t,e){return function(n,o){let i=this,a=i.__v_raw,s=Jo(a),l=e?IJ:t?TJ:mD;return!t&&Vc(s,"iterate",Rm),a.forEach((u,d)=>n.call(o,l(u),l(d),i))}}function yN(t,e,r){return function(...n){let o=this.__v_raw,i=Jo(o),a=fD(i),s=t==="entries"||t===Symbol.iterator&&a,l=t==="keys"&&a,u=o[t](...n),d=r?IJ:e?TJ:mD;return!e&&Vc(i,"iterate",l?AJ:Rm),{next(){let{value:f,done:c}=u.next();return c?{value:f,done:c}:{value:s?[d(f[0]),d(f[1])]:d(f),done:c}},[Symbol.iterator](){return this}}}}function e8(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function Aft(){let t={get(i){return pN(this,i)},get size(){return mN(this)},has:gN,add:Lme,set:Hme,delete:Vme,clear:jme,forEach:vN(!1,!1)},e={get(i){return pN(this,i,!1,!0)},get size(){return mN(this)},has:gN,add:Lme,set:Hme,delete:Vme,clear:jme,forEach:vN(!1,!0)},r={get(i){return pN(this,i,!0)},get size(){return mN(this,!0)},has(i){return gN.call(this,i,!0)},add:e8("add"),set:e8("set"),delete:e8("delete"),clear:e8("clear"),forEach:vN(!0,!1)},n={get(i){return pN(this,i,!0,!0)},get size(){return mN(this,!0)},has(i){return gN.call(this,i,!0)},add:e8("add"),set:e8("set"),delete:e8("delete"),clear:e8("clear"),forEach:vN(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{t[i]=yN(i,!1,!1),r[i]=yN(i,!0,!1),e[i]=yN(i,!1,!0),n[i]=yN(i,!0,!0)}),[t,r,e,n]}var[bft,xft,wft,Cft]=Aft();function _J(t,e){let r=e?t?Cft:wft:t?xft:bft;return(n,o,i)=>o==="__v_isReactive"?!t:o==="__v_isReadonly"?t:o==="__v_raw"?n:Reflect.get(dD(r,o)&&o in n?r:n,o,i)}var Eft={get:_J(!1,!1)},Sft={get:_J(!1,!0)},Dft={get:_J(!0,!1)};var Kme=new WeakMap,Yme=new WeakMap,qme=new WeakMap,Ift=new WeakMap;function _ft(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Mft(t){return t.__v_skip||!Object.isExtensible(t)?0:_ft(Fme(t))}function s1(t){return r8(t)?t:kJ(t,!1,mft,Eft,Kme)}function zm(t){return kJ(t,!1,yft,Sft,Yme)}function MJ(t){return kJ(t,!0,vft,Dft,qme)}function kJ(t,e,r,n,o){if(!ub(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;let i=o.get(t);if(i)return i;let a=Mft(t);if(a===0)return t;let s=new Proxy(t,a===2?n:r);return o.set(t,s),s}function n8(t){return r8(t)?n8(t.__v_raw):!!(t&&t.__v_isReactive)}function r8(t){return!!(t&&t.__v_isReadonly)}function db(t){return!!(t&&t.__v_isShallow)}function EN(t){return n8(t)||r8(t)}function Jo(t){let e=t&&t.__v_raw;return e?Jo(e):t}function SN(t){return Object.isExtensible(t)&&Nme(t,"__v_skip",!0),t}var mD=t=>ub(t)?s1(t):t,TJ=t=>ub(t)?MJ(t):t;var wN=class{constructor(e,r,n,o){this.getter=e,this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Pm(()=>e(this._value),()=>pD(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){let e=Jo(this);return(!e._cacheable||e.effect.dirty)&&Fm(e._value,e._value=e.effect.run())&&pD(e,4),Jme(e),e.effect._dirtyLevel>=2&&pD(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}};function Xme(t,e,r=!1){let n,o,i=mJ(t);return i?(n=t,o=Ome):(n=t.get,o=t.set),new wN(n,o,i||!o,r)}function Jme(t){var e;t8&&Nm&&(t=Jo(t),Wme(Nm,(e=t.dep)!=null?e:t.dep=$me(()=>t.dep=void 0,t instanceof wN?t:void 0),void 0))}function pD(t,e=4,r){t=Jo(t);let n=t.dep;n&&Gme(n,e,void 0)}function h0(t){return!!(t&&t.__v_isRef===!0)}function ao(t){return e9e(t,!1)}function vn(t){return e9e(t,!0)}function e9e(t,e){return h0(t)?t:new xJ(t,e)}var xJ=class{constructor(e,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?e:Jo(e),this._value=r?e:mD(e)}get value(){return Jme(this),this._value}set value(e){let r=this.__v_isShallow||db(e)||r8(e);e=r?e:Jo(e),Fm(e,this._rawValue)&&(this._rawValue=e,this._value=r?e:mD(e),pD(this,4,e))}};function OJ(t){pD(t,4,void 0)}function o8(t){return h0(t)?t.value:t}var kft={get:(t,e,r)=>o8(Reflect.get(t,e,r)),set:(t,e,r,n)=>{let o=t[e];return h0(o)&&!h0(r)?(o.value=r,!0):Reflect.set(t,e,r,n)}};function DN(t){return n8(t)?t:new Proxy(t,kft)}var wJ=class{constructor(e,r,n){this._object=e,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){let e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return fft(Jo(this._object),this._key)}},CJ=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}};function BJ(t,e,r){return h0(t)?t:mJ(t)?new CJ(t):ub(t)&&arguments.length>1?Tft(t,e,r):ao(t)}function Tft(t,e,r){let n=t[e];return h0(n)?n:new wJ(t,e,r)}function FJ(t,e){let r=new Set(t.split(","));return e?n=>r.has(n.toLowerCase()):n=>r.has(n)}var cs={},fb=[],L2=()=>{},r9e=()=>!1,IN=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),NJ=t=>t.startsWith("onUpdate:"),vl=Object.assign,_N=(t,e)=>{let r=t.indexOf(e);r>-1&&t.splice(r,1)},Oft=Object.prototype.hasOwnProperty,Fa=(t,e)=>Oft.call(t,e),oa=Array.isArray,n9e=t=>PJ(t)==="[object Map]",o9e=t=>PJ(t)==="[object Set]";var Ai=t=>typeof t=="function",jc=t=>typeof t=="string";var H0=t=>t!==null&&typeof t=="object",RJ=t=>(H0(t)||Ai(t))&&Ai(t.then)&&Ai(t.catch),Bft=Object.prototype.toString,PJ=t=>Bft.call(t);var i9e=t=>PJ(t)==="[object Object]";var hb=FJ(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted");var MN=t=>{let e=Object.create(null);return r=>e[r]||(e[r]=t(r))},Fft=/-(\w)/g,Nu=MN(t=>t.replace(Fft,(e,r)=>r?r.toUpperCase():"")),Nft=/\B([A-Z])/g,vD=MN(t=>t.replace(Nft,"-$1").toLowerCase()),yD=MN(t=>t.charAt(0).toUpperCase()+t.slice(1)),AD=MN(t=>t?`on${yD(t)}`:""),zJ=(t,e)=>!Object.is(t,e),kN=(t,e)=>{for(let r=0;r{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r})},a9e=t=>{let e=parseFloat(t);return isNaN(e)?t:e};var t9e,pb=()=>t9e||(t9e=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function bD(t){if(oa(t)){let e={};for(let r=0;r{if(r){let n=r.split(Pft);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function xD(t){let e="";if(jc(t))e=t;else if(oa(t))for(let r=0;r{var a,s;return(s=(a=i.toString)==null?void 0:a.call(i))!=null?s:JSON.stringify(i)}).join(""),r&&r.proxy,o.map(({vnode:i})=>`at <${tve(r,i.type)}>`).join(` + `)}`}function Gg(t,e){let r=t.hasOwnProperty(_O);return r?t[_O]:null}function hst(t,e,r){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(r)?cK(r,e):e(r))}function k6e(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function kO(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function gst(t,e,r,n){let o=t.length;if(o==e)t.push(r,n);else if(o===1)t.push(n,t[0]),t[0]=r;else{for(o--,t.push(t[o-1],t[o]);o>e;){let i=o-2;t[o]=t[i],o--}t[e]=r,t[e+1]=n}}function XO(t,e,r){let n=QE(t,e);return n>=0?t[n|1]=r:(n=~n,gst(t,n,e,r)),n}function K$(t,e){let r=QE(t,e);if(r>=0)return t[r|1]}function QE(t,e){return mst(t,e,1)}function mst(t,e,r){let n=0,o=t.length>>r;for(;o!==n;){let i=n+(o-n>>1),a=t[i<e?o=i:n=i+1}return~(o<e){a=i-1;break}}}for(;i-1){let i;for(;++oi?f="":f=o[d+1].toLowerCase(),n&2&&u!==f){if(H4(n))return!1;a=!0}}}}return H4(n)||a}function H4(t){return(t&1)===0}function wst(t,e,r,n){if(e===null)return-1;let o=0;if(n||!r){let i=!1;for(;o-1)for(r++;r0?'="'+s+'"':"")+"]"}else n&8?o+="."+a:n&4&&(o+=" "+a);else o!==""&&!H4(a)&&(e+=jfe(i,o),o=""),n=a,i=i||!H4(n);r++}return o!==""&&(e+=jfe(i,o)),e}function Ist(t){return t.map(Dst).join(",")}function _st(t){let e=[],r=[],n=1,o=2;for(;n{let e=H6e(t),r=lr(Je({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===B6e.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||af.Emulated,styles:t.styles||Rc,_:null,schemas:t.schemas||null,tView:null,id:""});V6e(r);let n=t.dependencies;return r.directiveDefs=Ufe(n,!1),r.pipeDefs=Ufe(n,!0),r.id=Tst(r),r})}function Mst(t){return d5(t)||R6e(t)}function kst(t){return t!==null}function yA(t){return ZO(()=>({type:t.type,bootstrap:t.bootstrap||Rc,declarations:t.declarations||Rc,imports:t.imports||Rc,exports:t.exports||Rc,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Qfe(t,e){if(t==null)return cA;let r={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],i,a,s=Yn.None;Array.isArray(o)?(s=o[0],i=o[1],a=o[2]??i):(i=o,a=o),e?(r[i]=s!==Yn.None?[n,s]:n,e[i]=a):r[i]=n}return r}function Xl(t){return ZO(()=>{let e=H6e(t);return V6e(e),e})}function UE(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 d5(t){return t[qat]||null}function R6e(t){return t[Xat]||null}function P6e(t){return t[Jat]||null}function z6e(t){let e=d5(t)||R6e(t)||P6e(t);return e!==null?e.standalone:!1}function L6e(t,e){let r=t[est]||null;if(!r&&e===!0)throw new Error(`Type ${M2(t)} does not have '\u0275mod' property.`);return r}function H6e(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||cA,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Rc,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Qfe(t.inputs,e),outputs:Qfe(t.outputs),debugInfo:null}}function V6e(t){t.features?.forEach(e=>e(t))}function Ufe(t,e){if(!t)return null;let r=e?P6e:Mst;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(kst)}function Tst(t){let e=0,r=[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 o of r)e=Math.imul(31,e)+o.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function JO(t){return{\u0275providers:t}}function Ost(...t){return{\u0275providers:j6e(!0,t),\u0275fromNgModule:!0}}function j6e(t,...e){let r=[],n=new Set,o,i=a=>{r.push(a)};return cK(e,a=>{let s=a;pZ(s,i,[],n)&&(o||=[],o.push(s))}),o!==void 0&&Q6e(o,i),r}function Q6e(t,e){for(let r=0;r{e(i,n)})}}function pZ(t,e,r,n){if(t=Nc(t),!t)return!1;let o=null,i=Pfe(t),a=!i&&d5(t);if(!i&&!a){let l=t.ngModule;if(i=Pfe(l),i)o=l;else return!1}else{if(a&&!a.standalone)return!1;o=t}let s=n.has(o);if(a){if(s)return!1;if(n.add(o),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let u of l)pZ(u,e,r,n)}}else if(i){if(i.imports!=null&&!s){n.add(o);let u;try{cK(i.imports,d=>{pZ(d,e,r,n)&&(u||=[],u.push(d))})}finally{}u!==void 0&&Q6e(u,e)}if(!s){let u=Gg(o)||(()=>new o);e({provide:o,useFactory:u,deps:Rc},o),e({provide:O6e,useValue:o,multi:!0},o),e({provide:uA,useValue:()=>ra(o),multi:!0},o)}let l=i.providers;if(l!=null&&!s){let u=t;dK(l,d=>{e(d,u)})}}else return!1;return o!==t&&t.providers!==void 0}function dK(t,e){for(let r of t)I6e(r)&&(r=r.\u0275providers),Array.isArray(r)?dK(r,e):e(r)}var Bst=ts({provide:String,useValue:ts});function U6e(t){return t!==null&&typeof t=="object"&&Bst in t}function Fst(t){return!!(t&&t.useExisting)}function Nst(t){return!!(t&&t.useFactory)}function dA(t){return typeof t=="function"}function Rst(t){return!!t.useClass}var eB=new di(""),xO={},Pst={},Y$;function tB(){return Y$===void 0&&(Y$=new TO),Y$}var ua=class{},kE=class extends ua{get destroyed(){return this._destroyed}constructor(e,r,n,o){super(),this.parent=r,this.source=n,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,mZ(e,a=>this.processProvider(a)),this.records.set(T6e,oA(void 0,this)),o.has("environment")&&this.records.set(ua,oA(void 0,this));let i=this.records.get(eB);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(O6e,Rc,Ii.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=Ei(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of r)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Ei(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=yp(this),n=_2(void 0),o;try{return e()}finally{yp(r),_2(n)}}get(e,r=_E,n=Ii.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Lfe))return e[Lfe](this);n=qO(n);let o,i=yp(this),a=_2(void 0);try{if(!(n&Ii.SkipSelf)){let l=this.records.get(e);if(l===void 0){let u=jst(e)&&KO(e);u&&this.injectableDefInScope(u)?l=oA(gZ(e),xO):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l)}let s=n&Ii.Self?tB():this.parent;return r=n&Ii.Optional&&r===_E?null:r,s.get(e,r)}catch(s){if(s.name==="NullInjectorError"){if((s[MO]=s[MO]||[]).unshift(M2(e)),i)throw s;return dst(s,e,"R3InjectorError",this.source)}else throw s}finally{_2(a),yp(i)}}resolveInjectorInitializers(){let e=Ei(null),r=yp(this),n=_2(void 0),o;try{let i=this.get(uA,Rc,Ii.Self);for(let a of i)a()}finally{yp(r),_2(n),Ei(e)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push(M2(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Mo(205,!1)}processProvider(e){e=Nc(e);let r=dA(e)?e:Nc(e&&e.provide),n=Lst(e);if(!dA(e)&&e.multi===!0){let o=this.records.get(r);o||(o=oA(void 0,xO,!0),o.factory=()=>fZ(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,n)}hydrate(e,r){let n=Ei(null);try{return r.value===xO&&(r.value=Pst,r.value=r.factory()),typeof r.value=="object"&&r.value&&Vst(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{Ei(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=Nc(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function gZ(t){let e=KO(t),r=e!==null?e.factory:Gg(t);if(r!==null)return r;if(t instanceof di)throw new Mo(204,!1);if(t instanceof Function)return zst(t);throw new Mo(204,!1)}function zst(t){if(t.length>0)throw new Mo(204,!1);let r=Kat(t);return r!==null?()=>r.factory(t):()=>new t}function Lst(t){if(U6e(t))return oA(void 0,t.useValue);{let e=W6e(t);return oA(e,xO)}}function W6e(t,e,r){let n;if(dA(t)){let o=Nc(t);return Gg(o)||gZ(o)}else if(U6e(t))n=()=>Nc(t.useValue);else if(Nst(t))n=()=>t.useFactory(...fZ(t.deps||[]));else if(Fst(t))n=()=>ra(Nc(t.useExisting));else{let o=Nc(t&&(t.useClass||t.provide));if(Hst(t))n=()=>new o(...fZ(t.deps));else return Gg(o)||gZ(o)}return n}function oA(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function Hst(t){return!!t.deps}function Vst(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function jst(t){return typeof t=="function"||typeof t=="object"&&t instanceof di}function mZ(t,e){for(let r of t)Array.isArray(r)?mZ(r,e):r&&I6e(r)?mZ(r.\u0275providers,e):e(r)}function tm(t,e){t instanceof kE&&t.assertNotDestroyed();let r,n=yp(t),o=_2(void 0);try{return e()}finally{yp(n),_2(o)}}function G6e(){return _6e()!==void 0||lst()!=null}function Qst(t){if(!G6e())throw new Mo(-203,!1)}function Ust(t){return typeof t=="function"}var p5=0,ei=1,Ho=2,ul=3,V4=4,W4=5,TE=6,OE=7,Kl=8,fA=9,j4=10,_1=11,BE=12,Wfe=13,AA=14,Q4=15,WE=16,iA=17,f5=18,rB=19,$6e=20,Ap=21,wO=22,$g=23,ql=25,Z6e=1;var Zg=7,OO=8,hA=9,Yl=10,fK=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(fK||{});function Ug(t){return Array.isArray(t)&&typeof t[Z6e]=="object"}function g5(t){return Array.isArray(t)&&t[Z6e]===!0}function hK(t){return(t.flags&4)!==0}function nB(t){return t.componentOffset>-1}function oB(t){return(t.flags&1)===1}function bp(t){return!!t.template}function Wst(t){return(t[Ho]&512)!==0}var vZ=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function K6e(t,e,r,n){e!==null?e.applyValueToInputSignal(e,n):t[r]=n}function Sd(){return Y6e}function Y6e(t){return t.type.prototype.ngOnChanges&&(t.setInput=$st),Gst}Sd.ngInherit=!0;function Gst(){let t=X6e(this),e=t?.current;if(e){let r=t.previous;if(r===cA)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function $st(t,e,r,n,o){let i=this.declaredInputs[n],a=X6e(t)||Zst(t,{previous:cA,current:null}),s=a.current||(a.current={}),l=a.previous,u=l[i];s[i]=new vZ(u&&u.currentValue,r,l===cA),K6e(t,e,o,r)}var q6e="__ngSimpleChanges__";function X6e(t){return t[q6e]||null}function Zst(t,e){return t[q6e]=e}var Gfe=null;var nf=function(t,e,r){Gfe?.(t,e,r)},Kst="svg",Yst="math",qst=!1;function Xst(){return qst}function sf(t){for(;Array.isArray(t);)t=t[p5];return t}function J6e(t,e){return sf(e[t])}function Dd(t,e){return sf(e[t.index])}function pK(t,e){return t.data[e]}function gK(t,e){return t[e]}function Cp(t,e){let r=e[t];return Ug(r)?r:r[p5]}function mK(t){return(t[Ho]&128)===128}function Jst(t){return g5(t[ul])}function pA(t,e){return e==null?null:t[e]}function e5e(t){t[iA]=0}function e1t(t){t[Ho]&1024||(t[Ho]|=1024,mK(t)&&FE(t))}function t1t(t,e){for(;t>0;)e=e[AA],t--;return e}function vK(t){return!!(t[Ho]&9216||t[$g]?.dirty)}function yZ(t){t[j4].changeDetectionScheduler?.notify(1),vK(t)?FE(t):t[Ho]&64&&(Xst()?(t[Ho]|=1024,FE(t)):t[j4].changeDetectionScheduler?.notify())}function FE(t){t[j4].changeDetectionScheduler?.notify();let e=NE(t);for(;e!==null&&!(e[Ho]&8192||(e[Ho]|=8192,!mK(e)));)e=NE(e)}function t5e(t,e){if((t[Ho]&256)===256)throw new Mo(911,!1);t[Ap]===null&&(t[Ap]=[]),t[Ap].push(e)}function r1t(t,e){if(t[Ap]===null)return;let r=t[Ap].indexOf(e);r!==-1&&t[Ap].splice(r,1)}function NE(t){let e=t[ul];return g5(e)?e[ul]:e}var Si={lFrame:l5e(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function n1t(){return Si.lFrame.elementDepthCount}function o1t(){Si.lFrame.elementDepthCount++}function i1t(){Si.lFrame.elementDepthCount--}function r5e(){return Si.bindingsEnabled}function a1t(){return Si.skipHydrationRootTNode!==null}function s1t(t){return Si.skipHydrationRootTNode===t}function l1t(){Si.skipHydrationRootTNode=null}function vi(){return Si.lFrame.lView}function u0(){return Si.lFrame.tView}function qo(t){return Si.lFrame.contextLView=t,t[Kl]}function Xo(t){return Si.lFrame.contextLView=null,t}function Jl(){let t=n5e();for(;t!==null&&t.type===64;)t=t.parent;return t}function n5e(){return Si.lFrame.currentTNode}function c1t(){let t=Si.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function rm(t,e){let r=Si.lFrame;r.currentTNode=t,r.isParent=e}function yK(){return Si.lFrame.isParent}function o5e(){Si.lFrame.isParent=!1}function u1t(){return Si.lFrame.contextLView}function bA(){let t=Si.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function d1t(t){return Si.lFrame.bindingIndex=t}function xA(){return Si.lFrame.bindingIndex++}function i5e(t){let e=Si.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function f1t(){return Si.lFrame.inI18n}function h1t(t,e){let r=Si.lFrame;r.bindingIndex=r.bindingRootIndex=t,AZ(e)}function p1t(){return Si.lFrame.currentDirectiveIndex}function AZ(t){Si.lFrame.currentDirectiveIndex=t}function g1t(t){let e=Si.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function m1t(){return Si.lFrame.currentQueryIndex}function AK(t){Si.lFrame.currentQueryIndex=t}function v1t(t){let e=t[ei];return e.type===2?e.declTNode:e.type===1?t[W4]:null}function a5e(t,e,r){if(r&Ii.SkipSelf){let o=e,i=t;for(;o=o.parent,o===null&&!(r&Ii.Host);)if(o=v1t(i),o===null||(i=i[AA],o.type&10))break;if(o===null)return!1;e=o,t=i}let n=Si.lFrame=s5e();return n.currentTNode=e,n.lView=t,!0}function bK(t){let e=s5e(),r=t[ei];Si.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function s5e(){let t=Si.lFrame,e=t===null?null:t.child;return e===null?l5e(t):e}function l5e(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 c5e(){let t=Si.lFrame;return Si.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var u5e=c5e;function xK(){let t=c5e();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 y1t(t){return(Si.lFrame.contextLView=t1t(t,Si.lFrame.contextLView))[Kl]}function Ep(){return Si.lFrame.selectedIndex}function Kg(t){Si.lFrame.selectedIndex=t}function wK(){let t=Si.lFrame;return pK(t.tView,t.selectedIndex)}function A1t(){return Si.lFrame.currentNamespace}var d5e=!0;function iB(){return d5e}function aB(t){d5e=t}function b1t(t,e,r){let{ngOnChanges:n,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(n){let a=Y6e(e);(r.preOrderHooks??=[]).push(t,a),(r.preOrderCheckHooks??=[]).push(t,a)}o&&(r.preOrderHooks??=[]).push(0-t,o),i&&((r.preOrderHooks??=[]).push(t,i),(r.preOrderCheckHooks??=[]).push(t,i))}function sB(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r=n)break}else e[l]<0&&(t[iA]+=65536),(s>14>16&&(t[Ho]&3)===e&&(t[Ho]+=16384,$fe(s,i)):$fe(s,i)}var lA=-1,Yg=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function w1t(t){return t instanceof Yg}function C1t(t){return(t.flags&8)!==0}function E1t(t){return(t.flags&16)!==0}function h5e(t){return t!==lA}function BO(t){return t&32767}function S1t(t){return t>>16}function FO(t,e){let r=S1t(t),n=e;for(;r>0;)n=n[AA],r--;return n}var bZ=!0;function NO(t){let e=bZ;return bZ=t,e}var D1t=256,p5e=D1t-1,g5e=5,I1t=0,of={};function _1t(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(IE)&&(n=r[IE]),n==null&&(n=r[IE]=I1t++);let o=n&p5e,i=1<>g5e)]|=i}function RO(t,e){let r=m5e(t,e);if(r!==-1)return r;let n=e[ei];n.firstCreatePass&&(t.injectorIndex=e.length,X$(n.data,t),X$(e,null),X$(n.blueprint,null));let o=CK(t,e),i=t.injectorIndex;if(h5e(o)){let a=BO(o),s=FO(o,e),l=s[ei].data;for(let u=0;u<8;u++)e[i+u]=s[a+u]|l[a+u]}return e[i+8]=o,i}function X$(t,e){t.push(0,0,0,0,0,0,0,0,e)}function m5e(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function CK(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,o=e;for(;o!==null;){if(n=x5e(o),n===null)return lA;if(r++,o=o[AA],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return lA}function xZ(t,e,r){_1t(t,e,r)}function M1t(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let n=r.length,o=0;for(;o>20,f=n?s:s+d,c=o?s+d:u;for(let h=f;h=l&&g.type===r)return h}if(o){let h=a[l];if(h&&bp(h)&&h.type===r)return l}return null}function qg(t,e,r,n){let o=t[r],i=e.data;if(w1t(o)){let a=o;a.resolving&&rst(tst(i[r]));let s=NO(a.canSeeViewProviders);a.resolving=!0;let l,u=a.injectImpl?_2(a.injectImpl):null,d=a5e(t,n,Ii.Default);try{o=t[r]=a.factory(void 0,i,t,n),e.firstCreatePass&&r>=n.directiveStart&&b1t(r,i[r],e)}finally{u!==null&&_2(u),NO(s),a.resolving=!1,u5e()}}return o}function T1t(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(IE)?t[IE]:void 0;return typeof e=="number"?e>=0?e&p5e:O1t:e}function Zfe(t,e,r){let n=1<>g5e)]&n)}function Kfe(t,e){return!(t&Ii.Self)&&!(t&Ii.Host&&e)}var Wg=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return A5e(this._tNode,this._lView,e,qO(n),r)}};function O1t(){return new Wg(Jl(),vi())}function GE(t){return ZO(()=>{let e=t.prototype.constructor,r=e[_O]||wZ(e),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let i=o[_O]||wZ(o);if(i&&i!==r)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function wZ(t){return C6e(t)?()=>{let e=wZ(Nc(t));return e&&e()}:Gg(t)}function B1t(t,e,r,n,o){let i=t,a=e;for(;i!==null&&a!==null&&a[Ho]&2048&&!(a[Ho]&512);){let s=b5e(i,a,r,n|Ii.Self,of);if(s!==of)return s;let l=i.parent;if(!l){let u=a[$6e];if(u){let d=u.get(r,of,n);if(d!==of)return d}l=x5e(a),a=a[AA]}i=l}return o}function x5e(t){let e=t[ei],r=e.type;return r===2?e.declTNode:r===1?t[W4]:null}function EK(t){return M1t(Jl(),t)}function Yfe(t,e=null,r=null,n){let o=w5e(t,e,r,n);return o.resolveInjectorInitializers(),o}function w5e(t,e=null,r=null,n,o=new Set){let i=[r||Rc,Ost(t)];return n=n||(typeof t=="object"?void 0:M2(t)),new kE(i,e||tB(),n||null,o)}var dl=(()=>{let e=class e{static create(n,o){if(Array.isArray(n))return Yfe({name:""},o,n,"");{let i=n.name??"";return Yfe({name:i},n.parent,n.providers,i)}}};e.THROW_IF_NOT_FOUND=_E,e.NULL=new TO,e.\u0275prov=oi({token:e,providedIn:"any",factory:()=>ra(T6e)}),e.__NG_ELEMENT_ID__=-1;let t=e;return t})();var F1t="ngOriginalError";function J$(t){return t[F1t]}var U4=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&J$(e);for(;r&&J$(r);)r=J$(r);return r||null}},C5e=new di("",{providedIn:"root",factory:()=>dn(U4).handleError.bind(void 0)}),lB=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=N1t,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),CZ=class extends lB{constructor(e){super(),this._lView=e}onDestroy(e){return t5e(this._lView,e),()=>r1t(this._lView,e)}};function N1t(){return new CZ(vi())}var EZ=class{constructor(){this.destroyed=!1,this.listeners=null,this.errorHandler=dn(U4,{optional:!0}),this.destroyRef=dn(lB),this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(e){if(this.destroyed)throw new Mo(953,!1);return(this.listeners??=[]).push(e),{unsubscribe:()=>{let r=this.listeners?.indexOf(e);r!==void 0&&r!==-1&&this.listeners?.splice(r,1)}}}emit(e){if(this.destroyed)throw new Mo(953,!1);if(this.listeners===null)return;let r=Ei(null);try{for(let n of this.listeners)try{n(e)}catch(o){this.errorHandler?.handleError(o)}}finally{Ei(r)}}};function wA(t){return new EZ}function qfe(t,e){return w6e(t,e)}function R1t(t){return w6e(x6e,t)}var So=(qfe.required=R1t,qfe);function P1t(){return CA(Jl(),vi())}function CA(t,e){return new Q1(Dd(t,e))}var Q1=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=P1t;let t=e;return t})();function z1t(t){return t instanceof Q1?t.nativeElement:t}var SZ=class extends $l{constructor(e=!1){super(),this.destroyRef=void 0,this.__isAsync=e,G6e()&&(this.destroyRef=dn(lB,{optional:!0})??void 0)}emit(e){let r=Ei(null);try{super.next(e)}finally{Ei(r)}}subscribe(e,r,n){let o=e,i=r||(()=>null),a=n;if(e&&typeof e=="object"){let l=e;o=l.next?.bind(l),i=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(i=eZ(i),o&&(o=eZ(o)),a&&(a=eZ(a)));let s=super.subscribe({next:o,error:i,complete:a});return e instanceof s0&&e.add(s),s}};function eZ(t){return e=>{setTimeout(t,void 0,e)}}var Zl=SZ;function L1t(){return this._results[Symbol.iterator]()}var DZ=class t{get changes(){return this._changes??=new Zl}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 r=t.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=L1t)}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,r){return this._results.reduce(e,r)}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,r){this.dirty=!1;let n=pst(e);(this._changesDetected=!hst(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function E5e(t){return(t.flags&128)===128}var S5e=new Map,H1t=0;function V1t(){return H1t++}function j1t(t){S5e.set(t[rB],t)}function Q1t(t){S5e.delete(t[rB])}var Xfe="__ngContext__";function xp(t,e){Ug(e)?(t[Xfe]=e[rB],j1t(e)):t[Xfe]=e}function D5e(t){return _5e(t[BE])}function I5e(t){return _5e(t[V4])}function _5e(t){for(;t!==null&&!g5(t);)t=t[V4];return t}var IZ;function M5e(t){IZ=t}function U1t(){if(IZ!==void 0)return IZ;if(typeof document<"u")return document;throw new Mo(210,!1)}var SK=new di("",{providedIn:"root",factory:()=>W1t}),W1t="ng",DK=new di(""),EA=new di("",{providedIn:"platform",factory:()=>"unknown"});var IK=new di("",{providedIn:"root",factory:()=>U1t().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var G1t="h",$1t="b";var Z1t=()=>null;function _K(t,e,r=!1){return Z1t(t,e,r)}var k5e=!1,K1t=new di("",{providedIn:"root",factory:()=>k5e});var yO;function Y1t(){if(yO===void 0&&(yO=null,Qg.trustedTypes))try{yO=Qg.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return yO}function Jfe(t){return Y1t()?.createScriptURL(t)||t}var PO=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${b6e})`}};function nm(t){return t instanceof PO?t.changingThisBreaksApplicationSecurity:t}function MK(t,e){let r=q1t(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${b6e})`)}return r===e}function q1t(t){return t instanceof PO&&t.getTypeName()||null}var X1t=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function T5e(t){return t=String(t),t.match(X1t)?t:"unsafe:"+t}var cB=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}(cB||{});function om(t){let e=B5e();return e?e.sanitize(cB.URL,t)||"":MK(t,"URL")?nm(t):T5e(YO(t))}function J1t(t){let e=B5e();if(e)return Jfe(e.sanitize(cB.RESOURCE_URL,t)||"");if(MK(t,"ResourceURL"))return Jfe(nm(t));throw new Mo(904,!1)}function e0t(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?J1t:om}function O5e(t,e,r){return e0t(e,r)(t)}function B5e(){let t=vi();return t&&t[j4].sanitizer}var t0t=/^>|^->||--!>|)/g,n0t="\u200B$1\u200B";function o0t(t){return t.replace(t0t,e=>e.replace(r0t,n0t))}function F5e(t){return t instanceof Function?t():t}var h5=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(h5||{}),i0t;function kK(t,e){return i0t(t,e)}function aA(t,e,r,n,o){if(n!=null){let i,a=!1;g5(n)?i=n:Ug(n)&&(a=!0,n=n[p5]);let s=sf(n);t===0&&r!==null?o==null?z5e(e,r,s):zO(e,r,s,o||null,!0):t===1&&r!==null?zO(e,r,s,o||null,!0):t===2?C0t(e,s,a):t===3&&e.destroyNode(s),i!=null&&S0t(e,t,i,r,o)}}function a0t(t,e){return t.createText(e)}function s0t(t,e,r){t.setValue(e,r)}function l0t(t,e){return t.createComment(o0t(e))}function N5e(t,e,r){return t.createElement(e,r)}function c0t(t,e){R5e(t,e),e[p5]=null,e[W4]=null}function u0t(t,e,r,n,o,i){n[p5]=o,n[W4]=e,fB(t,n,r,1,o,i)}function R5e(t,e){e[j4].changeDetectionScheduler?.notify(1),fB(t,e,e[_1],2,null,null)}function d0t(t){let e=t[BE];if(!e)return tZ(t[ei],t);for(;e;){let r=null;if(Ug(e))r=e[BE];else{let n=e[Yl];n&&(r=n)}if(!r){for(;e&&!e[V4]&&e!==t;)Ug(e)&&tZ(e[ei],e),e=e[ul];e===null&&(e=t),Ug(e)&&tZ(e[ei],e),r=e&&e[V4]}e=r}}function f0t(t,e,r,n){let o=Yl+n,i=r.length;n>0&&(r[o-1][V4]=e),n0&&(t[r-1][V4]=n[V4]);let i=kO(t,Yl+e);c0t(n[ei],n);let a=i[f5];a!==null&&a.detachView(i[ei]),n[ul]=null,n[V4]=null,n[Ho]&=-129}return n}function uB(t,e){if(!(e[Ho]&256)){let r=e[_1];r.destroyNode&&fB(t,e,r,3,null,null),d0t(e)}}function tZ(t,e){if(e[Ho]&256)return;let r=Ei(null);try{e[Ho]&=-129,e[Ho]|=256,e[$g]&&M$(e[$g]),g0t(t,e),p0t(t,e),e[ei].type===1&&e[_1].destroy();let n=e[WE];if(n!==null&&g5(e[ul])){n!==e[ul]&&P5e(n,e);let o=e[f5];o!==null&&o.detachView(t)}Q1t(e)}finally{Ei(r)}}function p0t(t,e){let r=t.cleanup,n=e[OE];if(r!==null)for(let i=0;i=0?n[a]():n[-a].unsubscribe(),i+=2}else{let a=n[r[i+1]];r[i].call(a)}n!==null&&(e[OE]=null);let o=e[Ap];if(o!==null){e[Ap]=null;for(let i=0;i-1){let{encapsulation:i}=t.data[n.directiveStart+o];if(i===af.None||i===af.Emulated)return null}return Dd(n,r)}}function zO(t,e,r,n,o){t.insertBefore(e,r,n,o)}function z5e(t,e,r){t.appendChild(e,r)}function e6e(t,e,r,n,o){n!==null?zO(t,e,r,n,o):z5e(t,e,r)}function y0t(t,e,r,n){t.removeChild(e,r,n)}function TK(t,e){return t.parentNode(e)}function A0t(t,e){return t.nextSibling(e)}function b0t(t,e,r){return w0t(t,e,r)}function x0t(t,e,r){return t.type&40?Dd(t,r):null}var w0t=x0t,t6e;function dB(t,e,r,n){let o=m0t(t,n,e),i=e[_1],a=n.parent||e[W4],s=b0t(a,n,e);if(o!=null)if(Array.isArray(r))for(let l=0;lql&&j5e(t,e,ql,!1),nf(a?2:0,o),r(n,o)}finally{Kg(i),nf(a?3:1,o)}}function BK(t,e,r){if(hK(e)){let n=Ei(null);try{let o=e.directiveStart,i=e.directiveEnd;for(let a=o;anull;function F0t(t,e,r,n){let o=X5e(e);o.push(r),t.firstCreatePass&&J5e(t).push(n,o.length-1)}function N0t(t,e,r,n,o,i){let a=e?e.injectorIndex:-1,s=0;return a1t()&&(s|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function r6e(t,e,r,n,o){for(let i in e){if(!e.hasOwnProperty(i))continue;let a=e[i];if(a===void 0)continue;n??={};let s,l=Yn.None;Array.isArray(a)?(s=a[0],l=a[1]):s=a;let u=i;if(o!==null){if(!o.hasOwnProperty(i))continue;u=o[i]}t===0?n6e(n,r,u,s,l):n6e(n,r,u,s)}return n}function n6e(t,e,r,n,o){let i;t.hasOwnProperty(r)?(i=t[r]).push(e,n):i=t[r]=[e,n],o!==void 0&&i.push(o)}function R0t(t,e,r){let n=e.directiveStart,o=e.directiveEnd,i=t.data,a=e.attrs,s=[],l=null,u=null;for(let d=n;d0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function V0t(t,e,r,n){let o=r.directiveStart,i=r.directiveEnd;nB(r)&&Z0t(e,r,t.data[o+r.componentOffset]),t.firstCreatePass||RO(r,e),xp(n,e);let a=r.initialInputs;for(let s=o;s{FE(t.lView)},consumerOnSignalRead(){this.lView[$g]=this}}),ohe=100;function ihe(t,e=!0,r=0){let n=t[j4],o=n.rendererFactory,i=!1;i||o.begin?.();try{llt(t,r)}catch(a){throw e&&ehe(t,a),a}finally{i||(o.end?.(),n.inlineEffectRunner?.flush())}}function llt(t,e){TZ(t,e);let r=0;for(;vK(t);){if(r===ohe)throw new Mo(103,!1);r++,TZ(t,1)}}function clt(t,e,r,n){let o=e[Ho];if((o&256)===256)return;let i=!1;!i&&e[j4].inlineEffectRunner?.flush(),bK(e);let a=null,s=null;!i&&ult(t)&&(s=olt(e),a=QT(s));try{e5e(e),d1t(t.bindingStartIndex),r!==null&&W5e(t,e,r,2,n);let l=(o&3)===3;if(!i)if(l){let f=t.preOrderCheckHooks;f!==null&&CO(e,f,null)}else{let f=t.preOrderHooks;f!==null&&EO(e,f,0,null),q$(e,0)}if(dlt(e),ahe(e,0),t.contentQueries!==null&&q5e(t,e),!i)if(l){let f=t.contentCheckHooks;f!==null&&CO(e,f)}else{let f=t.contentHooks;f!==null&&EO(e,f,1),q$(e,1)}_0t(t,e);let u=t.components;u!==null&&lhe(e,u,0);let d=t.viewQuery;if(d!==null&&kZ(2,d,n),!i)if(l){let f=t.viewCheckHooks;f!==null&&CO(e,f)}else{let f=t.viewHooks;f!==null&&EO(e,f,2),q$(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[wO]){for(let f of e[wO])f();e[wO]=null}i||(e[Ho]&=-73)}catch(l){throw FE(e),l}finally{s!==null&&(UT(s,a),alt(s)),xK()}}function ult(t){return t.type!==2}function ahe(t,e){for(let r=D5e(t);r!==null;r=I5e(r))for(let n=Yl;n-1&&(RE(e,n),kO(r,n))}this._attachedToViewContainer=!1}uB(this._lView[ei],this._lView)}onDestroy(e){t5e(this._lView,e)}markForCheck(){HK(this._cdRefInjectingView||this._lView)}detach(){this._lView[Ho]&=-129}reattach(){yZ(this._lView),this._lView[Ho]|=128}detectChanges(){this._lView[Ho]|=1024,ihe(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Mo(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,R5e(this._lView[ei],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Mo(902,!1);this._appRef=e,yZ(this._lView)}},Cd=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=glt;let t=e;return t})(),hlt=Cd,plt=class extends hlt{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let o=gB(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:n});return new Xg(o)}};function glt(){return vB(Jl(),vi())}function vB(t,e){return t.type&4?new plt(e,t,CA(t,e)):null}var Hyr=new RegExp(`^(\\d+)*(${$1t}|${G1t})*(.*)`);var mlt=()=>null;function zE(t,e){return mlt(t,e)}var OZ=class{},BZ=class{},HO=class{};function vlt(t){let e=Error(`No component factory found for ${M2(t)}.`);return e[ylt]=t,e}var ylt="ngComponent";var FZ=class{resolveComponentFactory(e){throw vlt(e)}},yB=(()=>{let e=class e{};e.NULL=new FZ;let t=e;return t})(),LE=class{},im=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>Alt();let t=e;return t})();function Alt(){let t=vi(),e=Jl(),r=Cp(e.index,t);return(Ug(r)?r:t)[_1]}var blt=(()=>{let e=class e{};e.\u0275prov=oi({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),rZ={};var o6e=new Set;function am(t){o6e.has(t)||(o6e.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function i6e(...t){}function xlt(){let t=typeof Qg.requestAnimationFrame=="function",e=Qg[t?"requestAnimationFrame":"setTimeout"],r=Qg[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&e&&r){let n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);let o=r[Zone.__symbol__("OriginalDelegate")];o&&(r=o)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:r}}var _a=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Zl(!1),this.onMicrotaskEmpty=new Zl(!1),this.onStable=new Zl(!1),this.onError=new Zl(!1),typeof Zone>"u")throw new Mo(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!n&&r,o.shouldCoalesceRunChangeDetection=n,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=xlt().nativeRequestAnimationFrame,Elt(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new Mo(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new Mo(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,o){let i=this._inner,a=i.scheduleEventTask("NgZoneEvent: "+o,e,wlt,i6e,i6e);try{return i.runTask(a,r,n)}finally{i.cancelTask(a)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},wlt={};function VK(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 Clt(t){t.isCheckStableRunning||t.lastRequestAnimationFrameId!==-1||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Qg,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,NZ(t),t.isCheckStableRunning=!0,VK(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),NZ(t))}function Elt(t){let e=()=>{Clt(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,o,i,a,s)=>{if(Slt(s))return r.invokeTask(o,i,a,s);try{return a6e(t),r.invokeTask(o,i,a,s)}finally{(t.shouldCoalesceEventChangeDetection&&i.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),s6e(t)}},onInvoke:(r,n,o,i,a,s,l)=>{try{return a6e(t),r.invoke(o,i,a,s,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),s6e(t)}},onHasTask:(r,n,o,i)=>{r.hasTask(o,i),n===o&&(i.change=="microTask"?(t._hasPendingMicrotasks=i.microTask,NZ(t),VK(t)):i.change=="macroTask"&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(r,n,o,i)=>(r.handleError(o,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}function NZ(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.lastRequestAnimationFrameId!==-1?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function a6e(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function s6e(t){t._nesting--,VK(t)}function Slt(t){return!Array.isArray(t)||t.length!==1?!1:t[0].data?.__ignore_ng_zone__===!0}var che=(()=>{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 o of n)o()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=oi({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function VO(t,e,r){let n=r?t.styles:null,o=r?t.classes:null,i=0;if(e!==null)for(let a=0;a0&&H5e(t,r,i.join(" "))}}function Olt(t,e,r){let n=t.projection=[];for(let o=0;o{let e=class e{};e.__NG_ELEMENT_ID__=Flt;let t=e;return t})();function Flt(){let t=Jl();return dhe(t,vi())}var Nlt=sm,uhe=class extends Nlt{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return CA(this._hostTNode,this._hostLView)}get injector(){return new Wg(this._hostTNode,this._hostLView)}get parentInjector(){let e=CK(this._hostTNode,this._hostLView);if(h5e(e)){let r=FO(e,this._hostLView),n=BO(e),o=r[ei].data[n+8];return new Wg(o,r)}else return new Wg(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=c6e(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-Yl}createEmbeddedView(e,r,n){let o,i;typeof n=="number"?o=n:n!=null&&(o=n.index,i=n.injector);let a=zE(this._lContainer,e.ssrId),s=e.createEmbeddedViewImpl(r||{},i,a);return this.insertImpl(s,o,PE(this._hostTNode,a)),s}createComponent(e,r,n,o,i){let a=e&&!Ust(e),s;if(a)s=r;else{let g=r||{};s=g.index,n=g.injector,o=g.projectableNodes,i=g.environmentInjector||g.ngModuleRef}let l=a?e:new Jg(d5(e)),u=n||this.parentInjector;if(!i&&l.ngModule==null){let p=(a?u:this.parentInjector).get(ua,null);p&&(i=p)}let d=d5(l.componentType??{}),f=zE(this._lContainer,d?.id??null),c=f?.firstChild??null,h=l.create(u,o,c,i);return this.insertImpl(h.hostView,s,PE(this._hostTNode,f)),h}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let o=e._lView;if(Jst(o)){let s=this.indexOf(e);if(s!==-1)this.detach(s);else{let l=o[ul],u=new uhe(l,l[W4],l[ul]);u.detach(u.indexOf(e))}}let i=this._adjustIndex(r),a=this._lContainer;return mB(a,o,i,n),e.attachToViewContainerRef(),k6e(nZ(a),i,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=c6e(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=RE(this._lContainer,r);n&&(kO(nZ(this._lContainer),r),uB(n[ei],n))}detach(e){let r=this._adjustIndex(e,-1),n=RE(this._lContainer,r);return n&&kO(nZ(this._lContainer),r)!=null?new Xg(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function c6e(t){return t[OO]}function nZ(t){return t[OO]||(t[OO]=[])}function dhe(t,e){let r,n=e[t.index];return g5(n)?r=n:(r=Y5e(n,e,null,t),e[t.index]=r,pB(e,r)),Plt(r,e,t,n),new uhe(r,t,e)}function Rlt(t,e){let r=t[_1],n=r.createComment(""),o=Dd(e,t),i=TK(r,o);return zO(r,i,n,A0t(r,o),!1),n}var Plt=Hlt,zlt=()=>!1;function Llt(t,e,r){return zlt(t,e,r)}function Hlt(t,e,r,n){if(t[Zg])return;let o;r.type&8?o=sf(n):o=Rlt(e,r),t[Zg]=o}var zZ=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},LZ=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let n=e.contentQueries!==null?e.contentQueries[0]:r.length,o=[];for(let i=0;i0)n.push(a[s/2]);else{let u=i[s+1],d=e[-l];for(let f=Yl;fe.trim())}function ghe(t,e,r){t.queries===null&&(t.queries=new HZ),t.queries.track(new VZ(e,r))}function Zlt(t,e){let r=t.contentQueries||(t.contentQueries=[]),n=r.length?r[r.length-1]:-1;e!==n&&r.push(t.queries.length-1,e)}function mhe(t,e){return t.queries.getByIndex(e)}function Klt(t,e){let r=t[ei],n=mhe(r,e);return n.crossesNgTemplate?jZ(r,t,e,[]):fhe(r,t,n,e)}function Ylt(t){return typeof t=="function"&&t[wu]!==void 0}function No(t,e){am("NgSignals");let r=cfe(t),n=r[wu];return e?.equal&&(n.equal=e.equal),r.set=o=>$T(n,o),r.update=o=>ufe(n,o),r.asReadonly=qlt.bind(r),r}function qlt(){let t=this[wu];if(t.readonlyFn===void 0){let e=()=>this();e[wu]=t,t.readonlyFn=e}return t.readonlyFn}function vhe(t){return Ylt(t)&&typeof t.set=="function"}function jK(t,e){let r,n=k$(()=>{r._dirtyCounter();let o=Xlt(r,t);if(e&&o===void 0)throw new Mo(-951,!1);return o});return r=n[wu],r._dirtyCounter=No(0),r._flatValue=void 0,n}function yhe(){return jK(!0,!1)}function Ahe(){return jK(!0,!0)}function bhe(){return jK(!1,!1)}function xhe(t,e){let r=t[wu];r._lView=vi(),r._queryIndex=e,r._queryList=hhe(r._lView,e),r._queryList.onDirty(()=>r._dirtyCounter.update(n=>n+1))}function Xlt(t,e){let r=t._lView,n=t._queryIndex;if(r===void 0||n===void 0||r[Ho]&4)return e?void 0:Rc;let o=hhe(r,n),i=Klt(r,n);return o.reset(i,z1t),e?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}function u6e(t,e){return yhe()}function Jlt(t,e){return Ahe()}var Id=(u6e.required=Jlt,u6e);function AB(t,e){return bhe()}function d6e(t,e){return yhe()}function ect(t,e){return Ahe()}var whe=(d6e.required=ect,d6e);function G4(t,e){return bhe()}function tct(t){return Object.getPrototypeOf(t.prototype).constructor}function cf(t){let e=tct(t.type),r=!0,n=[t];for(;e;){let o;if(bp(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Mo(903,!1);o=e.\u0275dir}if(o){if(r){n.push(o);let a=t;a.inputs=AO(t.inputs),a.inputTransforms=AO(t.inputTransforms),a.declaredInputs=AO(t.declaredInputs),a.outputs=AO(t.outputs);let s=o.hostBindings;s&&act(t,s);let l=o.viewQuery,u=o.contentQueries;if(l&&oct(t,l),u&&ict(t,u),rct(t,o),$at(t.outputs,o.outputs),bp(o)&&o.data.animation){let d=t.data;d.animation=(d.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let a=0;a=0;n--){let o=t[n];o.hostVars=e+=o.hostVars,o.hostAttrs=ME(o.hostAttrs,r=ME(r,o.hostAttrs))}}function AO(t){return t===cA?{}:t===Rc?[]:t}function oct(t,e){let r=t.viewQuery;r?t.viewQuery=(n,o)=>{e(n,o),r(n,o)}:t.viewQuery=e}function ict(t,e){let r=t.contentQueries;r?t.contentQueries=(n,o,i)=>{e(n,o,i),r(n,o,i)}:t.contentQueries=e}function act(t,e){let r=t.hostBindings;r?t.hostBindings=(n,o)=>{e(n,o),r(n,o)}:t.hostBindings=e}function QK(t){let e=t.inputConfig,r={};for(let n in e)if(e.hasOwnProperty(n)){let o=e[n];Array.isArray(o)&&o[3]&&(r[n]=o[3])}t.inputTransforms=r}var wp=class{},HE=class{};var QZ=class extends wp{constructor(e,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new jO(this);let o=L6e(e);this._bootstrapComponents=F5e(o.bootstrap),this._r3Injector=w5e(e,r,[{provide:wp,useValue:this},{provide:yB,useValue:this.componentFactoryResolver},...n],M2(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(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},UZ=class extends HE{constructor(e){super(),this.moduleType=e}create(e){return new QZ(this.moduleType,e,[])}};var UO=class extends wp{constructor(e){super(),this.componentFactoryResolver=new jO(this),this.instance=null;let r=new kE([...e.providers,{provide:wp,useValue:this},{provide:yB,useValue:this.componentFactoryResolver}],e.parent||tB(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function UK(t,e,r=null){return new UO({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}var ZE=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ll(!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.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function bB(t,e,r){return t[e]=r}function sct(t,e){return t[e]}function Ed(t,e,r){let n=t[e];return Object.is(n,r)?!1:(t[e]=r,!0)}function Che(t,e,r,n){let o=Ed(t,e,r);return Ed(t,e+1,n)||o}function lct(t,e,r,n,o){let i=Che(t,e,r,n);return Ed(t,e+2,o)||i}function cct(t){return(t.flags&32)===32}function uct(t,e,r,n,o,i,a,s,l){let u=e.consts,d=$E(e,t,4,a||null,pA(u,s));PK(e,r,d,pA(u,l)),sB(e,d);let f=d.tView=RK(2,d,n,o,i,e.directiveRegistry,e.pipeRegistry,null,e.schemas,u,null);return e.queries!==null&&(e.queries.template(e,d),f.queries=e.queries.embeddedTView(d)),d}function na(t,e,r,n,o,i,a,s){let l=vi(),u=u0(),d=t+ql,f=u.firstCreatePass?uct(d,u,l,e,r,n,o,i,a):u.data[d];rm(f,!1);let c=dct(u,l,f,t);iB()&&dB(u,l,c,f),xp(c,l);let h=Y5e(c,l,c,f);return l[d]=h,pB(l,h),Llt(h,f,l),oB(f)&&FK(u,l,f),a!=null&&NK(l,f,s),na}var dct=fct;function fct(t,e,r,n){return aB(!0),e[_1].createComment("")}function xB(t,e,r,n){let o=vi(),i=xA();if(Ed(o,i,e)){let a=u0(),s=wK();K0t(s,o,t,e,r,n)}return xB}function hct(t,e,r,n){return Ed(t,xA(),r)?e+YO(r)+n:lf}function bO(t,e){return t<<17|e<<2}function em(t){return t>>17&32767}function pct(t){return(t&2)==2}function gct(t,e){return t&131071|e<<17}function WZ(t){return t|2}function gA(t){return(t&131068)>>2}function oZ(t,e){return t&-131069|e<<2}function mct(t){return(t&1)===1}function GZ(t){return t|1}function vct(t,e,r,n,o,i){let a=i?e.classBindings:e.styleBindings,s=em(a),l=gA(a);t[n]=r;let u=!1,d;if(Array.isArray(r)){let f=r;d=f[1],(d===null||QE(f,d)>0)&&(u=!0)}else d=r;if(o)if(l!==0){let c=em(t[s+1]);t[n+1]=bO(c,s),c!==0&&(t[c+1]=oZ(t[c+1],n)),t[s+1]=gct(t[s+1],n)}else t[n+1]=bO(s,0),s!==0&&(t[s+1]=oZ(t[s+1],n)),s=n;else t[n+1]=bO(l,0),s===0?s=n:t[l+1]=oZ(t[l+1],n),l=n;u&&(t[n+1]=WZ(t[n+1])),f6e(t,d,n,!0),f6e(t,d,n,!1),yct(e,d,t,n,i),a=bO(s,l),i?e.classBindings=a:e.styleBindings=a}function yct(t,e,r,n,o){let i=o?t.residualClasses:t.residualStyles;i!=null&&typeof e=="string"&&QE(i,e)>=0&&(r[n+1]=GZ(r[n+1]))}function f6e(t,e,r,n){let o=t[r+1],i=e===null,a=n?em(o):gA(o),s=!1;for(;a!==0&&(s===!1||i);){let l=t[a],u=t[a+1];Act(l,e)&&(s=!0,t[a+1]=n?GZ(u):WZ(u)),a=n?em(u):gA(u)}s&&(t[r+1]=n?WZ(o):GZ(o))}function Act(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?QE(t,e)>=0:!1}var c0={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ehe(t){return t.substring(c0.key,c0.keyEnd)}function bct(t){return t.substring(c0.value,c0.valueEnd)}function xct(t){return Ihe(t),She(t,mA(t,0,c0.textEnd))}function She(t,e){let r=c0.textEnd;return r===e?-1:(e=c0.keyEnd=Cct(t,c0.key=e,r),mA(t,e,r))}function wct(t){return Ihe(t),Dhe(t,mA(t,0,c0.textEnd))}function Dhe(t,e){let r=c0.textEnd,n=c0.key=mA(t,e,r);return r===n?-1:(n=c0.keyEnd=Ect(t,n,r),n=h6e(t,n,r,58),n=c0.value=mA(t,n,r),n=c0.valueEnd=Sct(t,n,r),h6e(t,n,r,59))}function Ihe(t){c0.key=0,c0.keyEnd=0,c0.value=0,c0.valueEnd=0,c0.textEnd=t.length}function mA(t,e,r){for(;e32;)e++;return e}function Ect(t,e,r){let n;for(;e=65&&(n&-33)<=90||n>=48&&n<=57);)e++;return e}function h6e(t,e,r,n){return e=mA(t,e,r),e32&&(s=a),i=o,o=n,n=l&-33}return s}function p6e(t,e,r,n){let o=-1,i=r;for(;i=0;r=Dhe(e,r))The(t,Ehe(e),bct(e))}function fl(t){_he(Fct,Ict,t,!0)}function Ict(t,e){for(let r=xct(e);r>=0;r=She(e,r))XO(t,Ehe(e),!0)}function _ct(t,e,r,n){let o=vi(),i=u0(),a=i5e(2);if(i.firstUpdatePass&&khe(i,t,a,n),e!==lf&&Ed(o,a,e)){let s=i.data[Ep()];Ohe(i,s,o,o[_1],t,o[a+1]=Rct(e,r),n,a)}}function _he(t,e,r,n){let o=u0(),i=i5e(2);o.firstUpdatePass&&khe(o,null,i,n);let a=vi();if(r!==lf&&Ed(a,i,r)){let s=o.data[Ep()];if(Bhe(s,n)&&!Mhe(o,i)){let l=n?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(r=uZ(l,r||"")),$Z(o,s,a,r,n)}else Nct(o,s,a,a[_1],a[i+1],a[i+1]=Bct(t,e,r),n,i)}}function Mhe(t,e){return e>=t.expandoStartIndex}function khe(t,e,r,n){let o=t.data;if(o[r+1]===null){let i=o[Ep()],a=Mhe(t,r);Bhe(i,n)&&e===null&&!a&&(e=!1),e=Mct(o,i,e,n),vct(o,i,e,r,a,n)}}function Mct(t,e,r,n){let o=g1t(t),i=n?e.residualClasses:e.residualStyles;if(o===null)(n?e.classBindings:e.styleBindings)===0&&(r=iZ(null,t,e,r,n),r=VE(r,e.attrs,n),i=null);else{let a=e.directiveStylingLast;if(a===-1||t[a]!==o)if(r=iZ(o,t,e,r,n),i===null){let l=kct(t,e,n);l!==void 0&&Array.isArray(l)&&(l=iZ(null,t,e,l[1],n),l=VE(l,e.attrs,n),Tct(t,e,n,l))}else i=Oct(t,e,n)}return i!==void 0&&(n?e.residualClasses=i:e.residualStyles=i),r}function kct(t,e,r){let n=r?e.classBindings:e.styleBindings;if(gA(n)!==0)return t[em(n)]}function Tct(t,e,r,n){let o=r?e.classBindings:e.styleBindings;t[em(o)]=n}function Oct(t,e,r){let n,o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i0;){let l=t[o],u=Array.isArray(l),d=u?l[1]:l,f=d===null,c=r[o+1];c===lf&&(c=f?Rc:void 0);let h=f?K$(c,n):d===n?c:void 0;if(u&&!WO(h)&&(h=K$(l,n)),WO(h)&&(s=h,a))return s;let g=t[o+1];o=a?em(g):gA(g)}if(e!==null){let l=i?e.residualClasses:e.residualStyles;l!=null&&(s=K$(l,n))}return s}function WO(t){return t!==void 0}function Rct(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=M2(nm(t)))),t}function Bhe(t,e){return(t.flags&(e?8:16))!==0}var ZZ=class{destroy(e){}updateValue(e,r){}swap(e,r){let n=Math.min(e,r),o=Math.max(e,r),i=this.detach(o);if(o-n>1){let a=this.detach(n);this.attach(n,i),this.attach(o,a)}else this.attach(n,i)}move(e,r){this.attach(r,this.detach(e))}};function aZ(t,e,r,n,o){return t===r&&Object.is(e,n)?1:Object.is(o(t,e),o(r,n))?-1:0}function Pct(t,e,r){let n,o,i=0,a=t.length-1;if(Array.isArray(e)){let s=e.length-1;for(;i<=a&&i<=s;){let l=t.at(i),u=e[i],d=aZ(i,l,i,u,r);if(d!==0){d<0&&t.updateValue(i,u),i++;continue}let f=t.at(a),c=e[s],h=aZ(a,f,s,c,r);if(h!==0){h<0&&t.updateValue(a,c),a--,s--;continue}let g=r(i,l),p=r(a,f),m=r(i,u);if(Object.is(m,p)){let v=r(s,c);Object.is(v,g)?(t.swap(i,a),t.updateValue(a,c),s--,a--):t.move(a,i),t.updateValue(i,u),i++;continue}if(n??=new GO,o??=v6e(t,i,a,r),KZ(t,n,i,m))t.updateValue(i,u),i++,a++;else if(o.has(m))n.set(g,t.detach(i)),a--;else{let v=t.create(i,e[i]);t.attach(i,v),i++,a++}}for(;i<=s;)m6e(t,n,r,i,e[i]),i++}else if(e!=null){let s=e[Symbol.iterator](),l=s.next();for(;!l.done&&i<=a;){let u=t.at(i),d=l.value,f=aZ(i,u,i,d,r);if(f!==0)f<0&&t.updateValue(i,d),i++,l=s.next();else{n??=new GO,o??=v6e(t,i,a,r);let c=r(i,d);if(KZ(t,n,i,c))t.updateValue(i,d),i++,a++,l=s.next();else if(!o.has(c))t.attach(i,t.create(i,d)),i++,a++,l=s.next();else{let h=r(i,u);n.set(h,t.detach(i)),a--}}}for(;!l.done;)m6e(t,n,r,t.length,l.value),l=s.next()}for(;i<=a;)t.destroy(t.detach(a--));n?.forEach(s=>{t.destroy(s)})}function KZ(t,e,r,n){return e!==void 0&&e.has(n)?(t.attach(r,e.get(n)),e.delete(n),!0):!1}function m6e(t,e,r,n,o){if(KZ(t,e,n,r(n,o)))t.updateValue(n,o);else{let i=t.create(n,o);t.attach(n,i)}}function v6e(t,e,r,n){let o=new Set;for(let i=e;i<=r;i++)o.add(n(i,t.at(i)));return o}var GO=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 r=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(r)?(this.kvMap.set(e,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,r){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(n);)n=o.get(n);o.set(n,r)}else this.kvMap.set(e,r)}forEach(e){for(let[r,n]of this.kvMap)if(e(n,r),this._vMap!==void 0){let o=this._vMap;for(;o.has(n);)n=o.get(n),e(n,r)}}};function P0(t,e,r){am("NgControlFlow");let n=vi(),o=xA(),i=JZ(n,ql+t),a=0;if(Ed(n,o,e)){let s=Ei(null);try{if(rhe(i,a),e!==-1){let l=eK(n[ei],ql+e),u=zE(i,l.tView.ssrId),d=gB(n,l,r,{dehydratedView:u});mB(i,d,a,PE(l,u))}}finally{Ei(s)}}else{let s=the(i,a);s!==void 0&&(s[Kl]=r)}}var YZ=class{constructor(e,r,n){this.lContainer=e,this.$implicit=r,this.$index=n}get $count(){return this.lContainer.length-Yl}};function Fhe(t){return t}var qZ=class{constructor(e,r,n){this.hasEmptyBlock=e,this.trackByFn=r,this.liveCollection=n}};function Nhe(t,e,r,n,o,i,a,s,l,u,d,f,c){am("NgControlFlow");let h=l!==void 0,g=vi(),p=s?a.bind(g[Q4][Kl]):a,m=new qZ(h,p);g[ql+t]=m,na(t+1,e,r,n,o,i),h&&na(t+2,l,u,d,f,c)}var XZ=class extends ZZ{constructor(e,r,n){super(),this.lContainer=e,this.hostLView=r,this.templateTNode=n,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Yl}at(e){return this.getLView(e)[Kl].$implicit}attach(e,r){let n=r[TE];this.needsIndexUpdate||=e!==this.length,mB(this.lContainer,r,e,PE(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,zct(this.lContainer,e)}create(e,r){let n=zE(this.lContainer,this.templateTNode.tView.ssrId);return gB(this.hostLView,this.templateTNode,new YZ(this.lContainer,r,e),{dehydratedView:n})}destroy(e){uB(e[ei],e)}updateValue(e,r){this.getLView(e)[Kl].$implicit=r}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(aB(!0),N5e(n,o,A1t()));function jct(t,e,r,n,o){let i=e.consts,a=pA(i,n),s=$E(e,t,8,"ng-container",a);a!==null&&VO(s,a,!0);let l=pA(i,o);return PK(e,r,s,l),e.queries!==null&&e.queries.elementStart(e,s),s}function Phe(t,e,r){let n=vi(),o=u0(),i=t+ql,a=o.firstCreatePass?jct(i,o,n,e,r):o.data[i];rm(a,!0);let s=Qct(o,n,a,t);return n[i]=s,iB()&&dB(o,n,s,a),xp(s,n),oB(a)&&(FK(o,n,a),BK(o,a,n)),r!=null&&NK(n,a),Phe}function zhe(){let t=Jl(),e=u0();return yK()?o5e():(t=t.parent,rm(t,!1)),e.firstCreatePass&&(sB(e,t),hK(t)&&e.queries.elementEnd(t)),zhe}function Sp(t,e,r){return Phe(t,e,r),zhe(),Sp}var Qct=(t,e,r,n)=>(aB(!0),l0t(e[_1],""));function U1(){return vi()}var $O="en-US";var Uct=$O;function Wct(t){typeof t=="string"&&(Uct=t.toLowerCase().replace(/_/g,"-"))}function ko(t,e,r,n){let o=vi(),i=u0(),a=Jl();return Lhe(i,o,o[_1],a,t,e,n),ko}function Gct(t,e,r,n){let o=t.cleanup;if(o!=null)for(let i=0;il?s[l]:null}typeof a=="string"&&(i+=2)}return null}function Lhe(t,e,r,n,o,i,a){let s=oB(n),u=t.firstCreatePass&&J5e(t),d=e[Kl],f=X5e(e),c=!0;if(n.type&3||a){let p=Dd(n,e),m=a?a(p):p,v=f.length,b=a?y=>a(sf(y[n.index])):n.index,A=null;if(!a&&s&&(A=Gct(t,e,o,n.index)),A!==null){let y=A.__ngLastListenerFn__||A;y.__ngNextListenerFn__=i,A.__ngLastListenerFn__=i,c=!1}else{i=A6e(n,e,d,i,!1);let y=r.listen(m,o,i);f.push(i,y),u&&u.push(o,b,v,v+1)}}else i=A6e(n,e,d,i,!1);let h=n.outputs,g;if(c&&h!==null&&(g=h[o])){let p=g.length;if(p)for(let m=0;m-1?Cp(t.index,e):e;HK(s);let l=y6e(e,r,n,a),u=i.__ngNextListenerFn__;for(;u;)l=y6e(e,r,u,a)&&l,u=u.__ngNextListenerFn__;return o&&l===!1&&a.preventDefault(),l}}function lm(t=1){return y1t(t)}function Su(t,e,r,n,o){xhe(e,Glt(t,r,n,o))}function ec(t,e,r,n){xhe(t,Wlt(e,r,n))}function rs(t=1){AK(m1t()+t)}function $ct(t,e,r,n){r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=n}function tc(t){let e=u1t();return gK(e,ql+t)}function ln(t,e=""){let r=vi(),n=u0(),o=t+ql,i=n.firstCreatePass?$E(n,o,1,e,null):n.data[o],a=Zct(n,r,i,e,t);r[o]=a,iB()&&dB(n,r,a,i),rm(i,!1)}var Zct=(t,e,r,n,o)=>(aB(!0),a0t(e[_1],n));function KE(t){return T2("",t,""),KE}function T2(t,e,r){let n=vi(),o=hct(n,t,e,r);return o!==lf&&J0t(n,Ep(),o),T2}function GK(t,e,r){vhe(e)&&(e=e());let n=vi(),o=xA();if(Ed(n,o,e)){let i=u0(),a=wK();$5e(i,a,n,t,e,n[_1],r,!1)}return GK}function Hhe(t,e){let r=vhe(t);return r&&t.set(e),r}function $K(t,e){let r=vi(),n=u0(),o=Jl();return Lhe(n,r,r[_1],o,t,e),$K}function Kct(t,e,r){let n=u0();if(n.firstCreatePass){let o=bp(t);tK(r,n.data,n.blueprint,o,!0),tK(e,n.data,n.blueprint,o,!1)}}function tK(t,e,r,n,o){if(t=Nc(t),Array.isArray(t))for(let i=0;i>20;if(dA(t)||!t.multi){let h=new Yg(u,o,vs),g=lZ(l,e,o?d:d+c,f);g===-1?(xZ(RO(s,a),i,l),sZ(i,t,e.length),e.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),r.push(h),a.push(h)):(r[g]=h,a[g]=h)}else{let h=lZ(l,e,d+c,f),g=lZ(l,e,d,d+c),p=h>=0&&r[h],m=g>=0&&r[g];if(o&&!m||!o&&!p){xZ(RO(s,a),i,l);let v=Xct(o?qct:Yct,r.length,o,n,u);!o&&m&&(r[g].providerFactory=v),sZ(i,t,e.length,0),e.push(l),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),r.push(v),a.push(v)}else{let v=Vhe(r[o?g:h],u,!o&&n);sZ(i,t,h>-1?h:g,v)}!o&&n&&m&&r[g].componentProviders++}}}function sZ(t,e,r,n){let o=dA(e),i=Rst(e);if(o||i){let l=(i?Nc(e.useClass):e).prototype.ngOnDestroy;if(l){let u=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){let d=u.indexOf(r);d===-1?u.push(r,[n,l]):u[d+1].push(n,l)}else u.push(r,l)}}}function Vhe(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function lZ(t,e,r,n){for(let o=r;o{r.providersResolver=(n,o)=>Kct(n,o?o(t):t,e)}}var Jct=(()=>{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 o=j6e(!1,n.type),i=o.length>0?UK([o],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=oi({token:e,providedIn:"environment",factory:()=>new e(ra(ua))});let t=e;return t})();function Wn(t){am("NgStandalone"),t.getStandaloneInjector=e=>e.get(Jct).getOrCreateStandaloneInjector(t)}function Rn(t,e,r){let n=bA()+t,o=vi();return o[n]===lf?bB(o,n,r?e.call(r):e()):sct(o,n)}function M1(t,e,r,n){return e2t(vi(),bA(),t,e,r,n)}function cm(t,e,r,n,o){return Qhe(vi(),bA(),t,e,r,n,o)}function jhe(t,e,r,n,o,i){return Uhe(vi(),bA(),t,e,r,n,o,i)}function ZK(t,e){let r=t[e];return r===lf?void 0:r}function e2t(t,e,r,n,o,i){let a=e+r;return Ed(t,a,o)?bB(t,a+1,i?n.call(i,o):n(o)):ZK(t,a+1)}function Qhe(t,e,r,n,o,i,a){let s=e+r;return Che(t,s,o,i)?bB(t,s+2,a?n.call(a,o,i):n(o,i)):ZK(t,s+2)}function Uhe(t,e,r,n,o,i,a,s){let l=e+r;return lct(t,l,o,i,a)?bB(t,l+3,s?n.call(s,o,i,a):n(o,i,a)):ZK(t,l+3)}function qE(t,e){let r=u0(),n,o=t+ql;r.firstCreatePass?(n=t2t(e,r.pipeRegistry),r.data[o]=n,n.onDestroy&&(r.destroyHooks??=[]).push(o,n.onDestroy)):n=r.data[o];let i=n.factory||(n.factory=Gg(n.type,!0)),a,s=_2(vs);try{let l=NO(!1),u=i();return NO(l),$ct(r,vi(),o,u),u}finally{_2(s)}}function t2t(t,e){if(e)for(let r=e.length-1;r>=0;r--){let n=e[r];if(t===n.name)return n}}function wB(t,e,r,n){let o=t+ql,i=vi(),a=gK(i,o);return Ghe(i,o)?Qhe(i,bA(),e,a.transform,r,n,a):a.transform(r,n)}function Whe(t,e,r,n,o){let i=t+ql,a=vi(),s=gK(a,i);return Ghe(a,i)?Uhe(a,bA(),e,s.transform,r,n,o,s):s.transform(r,n,o)}function Ghe(t,e){return t[ei].data[e].pure}function uf(t,e){return vB(t,e)}var CB=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var $he=new di("");function um(t){return!!t&&typeof t.then=="function"}function Zhe(t){return!!t&&typeof t.subscribe=="function"}var Khe=new di(""),Yhe=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,o)=>{this.resolve=n,this.reject=o}),this.appInits=dn(Khe,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let a=i();if(um(a))n.push(a);else if(Zhe(a)){let s=new Promise((l,u)=>{a.subscribe({complete:l,error:u})});n.push(s)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{o()}).catch(i=>{this.reject(i)}),n.length===0&&o(),this.initialized=!0}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),KK=new di("");function r2t(){lfe(()=>{throw new Mo(600,!1)})}function n2t(t){return t.isBoundToModule}function o2t(t,e,r){try{let n=r();return um(n)?n.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}var _d=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=dn(C5e),this.afterRenderEffectManager=dn(che),this.externalTestViews=new Set,this.beforeRender=new $l,this.afterTick=new $l,this.componentTypes=[],this.components=[],this.isStable=dn(ZE).hasPendingTasks.pipe(Hi(n=>!n)),this._injector=dn(ua)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,o){let i=n instanceof HO;if(!this._injector.get(Yhe).done){let h=!i&&z6e(n),g=!1;throw new Mo(405,g)}let s;i?s=n:s=this._injector.get(yB).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let l=n2t(s)?void 0:this._injector.get(wp),u=o||s.selector,d=s.create(dl.NULL,[],u,l),f=d.location.nativeElement,c=d.injector.get($he,null);return c?.registerApplication(f),d.onDestroy(()=>{this.detachView(d.hostView),cZ(this.components,d),c?.unregisterApplication(f)}),this._loadComponent(d),d}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new Mo(101,!1);let o=Ei(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(i){this.internalErrorHandler(i)}finally{this.afterTick.next(),this._runningTick=!1,Ei(o)}}detectChangesInAttachedViews(n){let o=0,i=this.afterRenderEffectManager;for(;;){if(o===ohe)throw new Mo(103,!1);if(n){let a=o===0;this.beforeRender.next(a);for(let{_lView:s,notifyErrorHandler:l}of this._views)i2t(s,a,l)}if(o++,i.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:a})=>nK(a))&&(i.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:a})=>nK(a))))break}}attachView(n){let o=n;this._views.push(o),o.attachToAppRef(this)}detachView(n){let o=n;cZ(this._views,o),o.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let o=this._injector.get(KK,[]);[...this._bootstrapListeners,...o].forEach(i=>i(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),()=>cZ(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new Mo(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function cZ(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function i2t(t,e,r){!e&&!nK(t)||a2t(t,r,e)}function nK(t){return vK(t)}function a2t(t,e,r){let n;r?(n=0,t[Ho]|=1024):t[Ho]&64?n=0:n=1,ihe(t,e,n)}var oK=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},YK=(()=>{let e=class e{compileModuleSync(n){return new UZ(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let o=this.compileModuleSync(n),i=L6e(n),a=F5e(i.declarations).reduce((s,l)=>{let u=d5(l);return u&&s.push(new Jg(u)),s},[]);return new oK(o,a)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var s2t=(()=>{let e=class e{constructor(){this.zone=dn(_a),this.applicationRef=dn(_d)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function l2t(t){return[{provide:_a,useFactory:t},{provide:uA,multi:!0,useFactory:()=>{let e=dn(s2t,{optional:!0});return()=>e.initialize()}},{provide:uA,multi:!0,useFactory:()=>{let e=dn(f2t);return()=>{e.initialize()}}},{provide:C5e,useFactory:c2t}]}function c2t(){let t=dn(_a),e=dn(U4);return r=>t.runOutsideAngular(()=>e.handleError(r))}function u2t(t){let e=l2t(()=>new _a(d2t(t)));return JO([[],e])}function d2t(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var f2t=(()=>{let e=class e{constructor(){this.subscription=new s0,this.initialized=!1,this.zone=dn(_a),this.pendingTasks=dn(ZE)}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(()=>{_a.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{_a.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function h2t(){return typeof $localize<"u"&&$localize.locale||$O}var qK=new di("",{providedIn:"root",factory:()=>dn(qK,Ii.Optional|Ii.SkipSelf)||h2t()});var qhe=new di("");var IO=null;function p2t(t=[],e){return dl.create({name:e,providers:[{provide:eB,useValue:"platform"},{provide:qhe,useValue:new Set([()=>IO=null])},...t]})}function g2t(t=[]){if(IO)return IO;let e=p2t(t);return IO=e,r2t(),m2t(e),e}function m2t(t){t.get(DK,null)?.forEach(r=>r())}var Dp=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=v2t;let t=e;return t})();function v2t(t){return y2t(Jl(),vi(),(t&16)===16)}function y2t(t,e,r){if(nB(t)&&!r){let n=Cp(t.index,e);return new Xg(n,n)}else if(t.type&47){let n=e[Q4];return new Xg(n,e)}return null}function Xhe(t){try{let{rootComponent:e,appProviders:r,platformProviders:n}=t,o=g2t(n),i=[u2t(),...r||[]],s=new UO({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,l=s.get(_a);return l.run(()=>{s.resolveInjectorInitializers();let u=s.get(U4,null),d;l.runOutsideAngular(()=>{d=l.onError.subscribe({next:h=>{u.handleError(h)}})});let f=()=>s.destroy(),c=o.get(qhe);return c.add(f),s.onDestroy(()=>{d.unsubscribe(),c.delete(f)}),o2t(u,l,()=>{let h=s.get(Yhe);return h.runInitializers(),h.donePromise.then(()=>{let g=s.get(qK,$O);Wct(g||$O);let p=s.get(_d);return e!==void 0&&p.bootstrap(e),p})})})}catch(e){return Promise.reject(e)}}function dm(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function O2(t,e){am("NgSignals");let r=k$(t);return e?.equal&&(r[wu].equal=e.equal),r}function m5(t){let e=Ei(null);try{return t()}finally{Ei(e)}}var A2t=new di("",{providedIn:"root",factory:()=>dn(b2t)}),b2t=(()=>{let e=class e{};e.\u0275prov=oi({token:e,providedIn:"root",factory:()=>new iK});let t=e;return t})(),iK=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=dn(ZE),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),this.taskId===null){let r=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(r),this.taskId=null})}}enqueue(e){let r=e.creationZone;this.queues.has(r)||this.queues.set(r,new Set);let n=this.queues.get(r);n.has(e)||(this.queuedEffectCount++,n.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,r]of this.queues)e===null?this.flushQueue(r):e.run(()=>this.flushQueue(r))}flushQueue(e){for(let r of e)e.delete(r),this.queuedEffectCount--,r.run()}},aK=class{constructor(e,r,n,o,i,a){this.scheduler=e,this.effectFn=r,this.creationZone=n,this.injector=i,this.watcher=dfe(s=>this.runEffect(s),()=>this.schedule(),a),this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(r){this.injector.get(U4,null,{optional:!0})?.handleError(r)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function Wi(t,e){am("NgSignals"),!e?.injector&&Qst(Wi);let r=e?.injector??dn(dl),n=e?.manualCleanup!==!0?r.get(lB):null,o=new aK(r.get(A2t),t,typeof Zone>"u"?null:Zone.current,n,r,e?.allowSignalWrites??!1),i=r.get(Dp,null,{optional:!0});return!i||!(i._lView[Ho]&8)?o.watcher.notify():(i._lView[wO]??=[]).push(o.watcher.notify),o}function fm(t,e){let r=d5(t),n=e.elementInjector||tB();return new Jg(r).create(n,e.projectableNodes,e.hostElement,e.environmentInjector)}function Ip(t){let e=d5(t);if(!e)return null;let r=new Jg(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var tpe=null;function v5(){return tpe}function rpe(t){tpe??=t}var EB=class{};var Md=new di(""),npe=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:()=>dn(x2t),providedIn:"platform"});let t=e;return t})();var x2t=(()=>{let e=class e extends npe{constructor(){super(),this._doc=dn(Md),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return v5().getBaseHref(this._doc)}onPopState(n){let o=v5().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",n,!1),()=>o.removeEventListener("popstate",n)}onHashChange(n){let o=v5().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",n,!1),()=>o.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,o,i){this._history.pushState(n,o,i)}replaceState(n,o,i){this._history.replaceState(n,o,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function ope(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function Jhe(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function hm(t){return t&&t[0]!=="?"?"?"+t:t}var SA=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:()=>dn(ipe),providedIn:"root"});let t=e;return t})(),w2t=new di(""),ipe=(()=>{let e=class e extends SA{constructor(n,o){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??dn(Md).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 ope(this._baseHref,n)}path(n=!1){let o=this._platformLocation.pathname+hm(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${o}${i}`:o}pushState(n,o,i,a){let s=this.prepareExternalUrl(i+hm(a));this._platformLocation.pushState(n,o,s)}replaceState(n,o,i,a){let s=this.prepareExternalUrl(i+hm(a));this._platformLocation.replaceState(n,o,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(o){return new(o||e)(ra(npe),ra(w2t,8))},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var XE=(()=>{let e=class e{constructor(n){this._subject=new Zl,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let o=this._locationStrategy.getBaseHref();this._basePath=S2t(Jhe(epe(o))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,o=""){return this.path()==this.normalize(n+hm(o))}normalize(n){return e.stripTrailingSlash(E2t(this._basePath,epe(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,o="",i=null){this._locationStrategy.pushState(i,"",n,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+hm(o)),i)}replaceState(n,o="",i=null){this._locationStrategy.replaceState(i,"",n,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+hm(o)),i)}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(o=>{this._notifyUrlChangeListeners(o.url,o.state)}),()=>{let o=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",o){this._urlChangeListeners.forEach(i=>i(n,o))}subscribe(n,o,i){return this._subject.subscribe({next:n,error:o,complete:i})}};e.normalizeQueryParams=hm,e.joinWithSlash=ope,e.stripTrailingSlash=Jhe,e.\u0275fac=function(o){return new(o||e)(ra(SA))},e.\u0275prov=oi({token:e,factory:()=>C2t(),providedIn:"root"});let t=e;return t})();function C2t(){return new XE(ra(SA))}function E2t(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function epe(t){return t.replace(/\/index.html$/,"")}function S2t(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}function ape(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[o,i]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(o.trim()===e)return decodeURIComponent(i)}return null}var pm=(()=>{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 o=this._viewContainerRef;if(this._viewRef&&o.remove(o.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=o.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,o,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,o,i):!1,get:(n,o,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,o,i)}})}};e.\u0275fac=function(o){return new(o||e)(vs(sm))},e.\u0275dir=Xl({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Sd]});let t=e;return t})();var spe="browser",D2t="server";function JK(t){return t===D2t}var SB=class{};var rY=class extends EB{constructor(){super(...arguments),this.supportsDOMEvents=!0}},nY=class t extends rY{static makeCurrent(){rpe(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.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,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=M2t();return r==null?null:k2t(r)}resetBaseElement(){JE=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return ape(document.cookie,e)}},JE=null;function M2t(){return JE=JE||document.querySelector("base"),JE?JE.getAttribute("href"):null}function k2t(t){return new URL(t,document.baseURI).pathname}var T2t=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:e.\u0275fac});let t=e;return t})(),oY=new di(""),dpe=(()=>{let e=class e{constructor(n,o){this._zone=o,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,o,i){return this._findPluginFor(o).addEventListener(n,o,i)}getZone(){return this._zone}_findPluginFor(n){let o=this._eventNameToPlugin.get(n);if(o)return o;if(o=this._plugins.find(a=>a.supports(n)),!o)throw new Mo(5101,!1);return this._eventNameToPlugin.set(n,o),o}};e.\u0275fac=function(o){return new(o||e)(ra(oY),ra(_a))},e.\u0275prov=oi({token:e,factory:e.\u0275fac});let t=e;return t})(),DB=class{constructor(e){this._doc=e}},eY="ng-app-id",fpe=(()=>{let e=class e{constructor(n,o,i,a={}){this.doc=n,this.appId=o,this.nonce=i,this.platformId=a,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=JK(a),this.resetHostNodes()}addStyles(n){for(let o of n)this.changeUsageCount(o,1)===1&&this.onStyleAdded(o)}removeStyles(n){for(let o of n)this.changeUsageCount(o,-1)<=0&&this.onStyleRemoved(o)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(o=>o.remove()),n.clear());for(let o of this.getAllStyles())this.onStyleRemoved(o);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let o of this.getAllStyles())this.addStyleToHost(n,o)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let o of this.hostNodes)this.addStyleToHost(o,n)}onStyleRemoved(n){let o=this.styleRef;o.get(n)?.elements?.forEach(i=>i.remove()),o.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${eY}="${this.appId}"]`);if(n?.length){let o=new Map;return n.forEach(i=>{i.textContent!=null&&o.set(i.textContent,i)}),o}return null}changeUsageCount(n,o){let i=this.styleRef;if(i.has(n)){let a=i.get(n);return a.usage+=o,a.usage}return i.set(n,{usage:o,elements:[]}),o}getStyleElement(n,o){let i=this.styleNodesInDOM,a=i?.get(o);if(a?.parentNode===n)return i.delete(o),a.removeAttribute(eY),a;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=o,this.platformIsServer&&s.setAttribute(eY,this.appId),n.appendChild(s),s}}addStyleToHost(n,o){let i=this.getStyleElement(n,o),a=this.styleRef,s=a.get(o)?.elements;s?s.push(i):a.set(o,{elements:[i],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(o){return new(o||e)(ra(Md),ra(SK),ra(IK,8),ra(EA))},e.\u0275prov=oi({token:e,factory:e.\u0275fac});let t=e;return t})(),tY={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},aY=/%COMP%/g,hpe="%COMP%",O2t=`_nghost-${hpe}`,B2t=`_ngcontent-${hpe}`,F2t=!0,N2t=new di("",{providedIn:"root",factory:()=>F2t});function R2t(t){return B2t.replace(aY,t)}function P2t(t){return O2t.replace(aY,t)}function ppe(t,e){return e.map(r=>r.replace(aY,t))}var lpe=(()=>{let e=class e{constructor(n,o,i,a,s,l,u,d=null){this.eventManager=n,this.sharedStylesHost=o,this.appId=i,this.removeStylesOnCompDestroy=a,this.doc=s,this.platformId=l,this.ngZone=u,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=JK(l),this.defaultRenderer=new eS(n,s,u,this.platformIsServer)}createRenderer(n,o){if(!n||!o)return this.defaultRenderer;this.platformIsServer&&o.encapsulation===af.ShadowDom&&(o=lr(Je({},o),{encapsulation:af.Emulated}));let i=this.getOrCreateRenderer(n,o);return i instanceof IB?i.applyToHost(n):i instanceof tS&&i.applyStyles(),i}getOrCreateRenderer(n,o){let i=this.rendererByCompId,a=i.get(o.id);if(!a){let s=this.doc,l=this.ngZone,u=this.eventManager,d=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,c=this.platformIsServer;switch(o.encapsulation){case af.Emulated:a=new IB(u,d,o,this.appId,f,s,l,c);break;case af.ShadowDom:return new iY(u,d,n,o,s,l,this.nonce,c);default:a=new tS(u,d,o,f,s,l,c);break}i.set(o.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(o){return new(o||e)(ra(dpe),ra(fpe),ra(SK),ra(N2t),ra(Md),ra(EA),ra(_a),ra(IK))},e.\u0275prov=oi({token:e,factory:e.\u0275fac});let t=e;return t})(),eS=class{constructor(e,r,n,o){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(tY[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(cpe(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(cpe(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new Mo(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,o){if(o){r=o+":"+r;let i=tY[o];i?e.setAttributeNS(i,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let o=tY[n];o?e.removeAttributeNS(o,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,o){o&(h5.DashCase|h5.Important)?e.style.setProperty(r,n,o&h5.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&h5.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=v5().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function cpe(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var iY=class extends eS{constructor(e,r,n,o,i,a,s,l){super(e,i,a,l),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=ppe(o.id,o.styles);for(let d of u){let f=document.createElement("style");s&&f.setAttribute("nonce",s),f.textContent=d,this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},tS=class extends eS{constructor(e,r,n,o,i,a,s,l){super(e,i,a,s),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=o,this.styles=l?ppe(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},IB=class extends tS{constructor(e,r,n,o,i,a,s,l){let u=o+"-"+n.id;super(e,r,n,i,a,s,l,u),this.contentAttr=R2t(u),this.hostAttr=P2t(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},z2t=(()=>{let e=class e extends DB{constructor(n){super(n)}supports(n){return!0}addEventListener(n,o,i){return n.addEventListener(o,i,!1),()=>this.removeEventListener(n,o,i)}removeEventListener(n,o,i){return n.removeEventListener(o,i)}};e.\u0275fac=function(o){return new(o||e)(ra(Md))},e.\u0275prov=oi({token:e,factory:e.\u0275fac});let t=e;return t})(),upe=["alt","control","meta","shift"],L2t={"\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"},H2t={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},V2t=(()=>{let e=class e extends DB{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,o,i){let a=e.parseEventName(o),s=e.eventCallback(a.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>v5().onAndCancel(n,a.domEventName,s))}static parseEventName(n){let o=n.toLowerCase().split("."),i=o.shift();if(o.length===0||!(i==="keydown"||i==="keyup"))return null;let a=e._normalizeKey(o.pop()),s="",l=o.indexOf("code");if(l>-1&&(o.splice(l,1),s="code."),upe.forEach(d=>{let f=o.indexOf(d);f>-1&&(o.splice(f,1),s+=d+".")}),s+=a,o.length!=0||a.length===0)return null;let u={};return u.domEventName=i,u.fullKey=s,u}static matchEventFullKeyCode(n,o){let i=L2t[n.key]||n.key,a="";return o.indexOf("code.")>-1&&(i=n.code,a="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),upe.forEach(s=>{if(s!==i){let l=H2t[s];l(n)&&(a+=s+".")}}),a+=i,a===o)}static eventCallback(n,o,i){return a=>{e.matchEventFullKeyCode(a,n)&&i.runGuarded(()=>o(a))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(o){return new(o||e)(ra(Md))},e.\u0275prov=oi({token:e,factory:e.\u0275fac});let t=e;return t})();function gpe(t,e){return Xhe(Je({rootComponent:t},j2t(e)))}function j2t(t){return{appProviders:[...$2t,...t?.providers??[]],platformProviders:G2t}}function Q2t(){nY.makeCurrent()}function U2t(){return new U4}function W2t(){return M5e(document),document}var G2t=[{provide:EA,useValue:spe},{provide:DK,useValue:Q2t,multi:!0},{provide:Md,useFactory:W2t,deps:[]}];var $2t=[{provide:eB,useValue:"root"},{provide:U4,useFactory:U2t,deps:[]},{provide:oY,useClass:z2t,multi:!0,deps:[Md,_a,EA]},{provide:oY,useClass:V2t,multi:!0,deps:[Md]},lpe,fpe,dpe,{provide:LE,useExisting:lpe},{provide:SB,useClass:T2t,deps:[]},[]];var mpe=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(o){return new(o||e)(ra(Md))},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var fi="primary",mS=Symbol("RouteTitle"),dY=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function kA(t){return new dY(t)}function K2t(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[i]===o)}else return t===e}function Cpe(t){return t.length>0?t[t.length-1]:null}function Tp(t){return V$(t)?t:um(t)?I1(Promise.resolve(t)):ui(t)}var q2t={exact:Spe,subset:Dpe},Epe={exact:X2t,subset:J2t,ignored:()=>!0};function vpe(t,e,r){return q2t[r.paths](t.root,e.root,r.matrixParams)&&Epe[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function X2t(t,e){return df(t,e)}function Spe(t,e,r){if(!mm(t.segments,e.segments)||!kB(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!Spe(t.children[n],e.children[n],r))return!1;return!0}function J2t(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>wpe(t[r],e[r]))}function Dpe(t,e,r){return Ipe(t,e,e.segments,r)}function Ipe(t,e,r,n){if(t.segments.length>r.length){let o=t.segments.slice(0,r.length);return!(!mm(o,r)||e.hasChildren()||!kB(o,r,n))}else if(t.segments.length===r.length){if(!mm(t.segments,r)||!kB(t.segments,r,n))return!1;for(let o in e.children)if(!t.children[o]||!Dpe(t.children[o],e.children[o],n))return!1;return!0}else{let o=r.slice(0,t.segments.length),i=r.slice(t.segments.length);return!mm(t.segments,o)||!kB(t.segments,o,n)||!t.children[fi]?!1:Ipe(t.children[fi],e,i,n)}}function kB(t,e,r){return e.every((n,o)=>Epe[r](t[o].parameters,n.parameters))}var _p=class{constructor(e=new Ba([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=kA(this.queryParams),this._queryParamMap}toString(){return rut.serialize(this)}},Ba=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return TB(this)}},gm=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=kA(this.parameters),this._parameterMap}toString(){return Mpe(this)}};function eut(t,e){return mm(t,e)&&t.every((r,n)=>df(r.parameters,e[n].parameters))}function mm(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function tut(t,e){let r=[];return Object.entries(t.children).forEach(([n,o])=>{n===fi&&(r=r.concat(e(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==fi&&(r=r.concat(e(o,n)))}),r}var zY=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:()=>new BB,providedIn:"root"});let t=e;return t})(),BB=class{parse(e){let r=new pY(e);return new _p(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${rS(e.root,!0)}`,n=iut(e.queryParams),o=typeof e.fragment=="string"?`#${nut(e.fragment)}`:"";return`${r}${n}${o}`}},rut=new BB;function TB(t){return t.segments.map(e=>Mpe(e)).join("/")}function rS(t,e){if(!t.hasChildren())return TB(t);if(e){let r=t.children[fi]?rS(t.children[fi],!1):"",n=[];return Object.entries(t.children).forEach(([o,i])=>{o!==fi&&n.push(`${o}:${rS(i,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=tut(t,(n,o)=>o===fi?[rS(t.children[fi],!1)]:[`${o}:${rS(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[fi]!=null?`${TB(t)}/${r[0]}`:`${TB(t)}/(${r.join("//")})`}}function _pe(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function _B(t){return _pe(t).replace(/%3B/gi,";")}function nut(t){return encodeURI(t)}function hY(t){return _pe(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function OB(t){return decodeURIComponent(t)}function ype(t){return OB(t.replace(/\+/g,"%20"))}function Mpe(t){return`${hY(t.path)}${out(t.parameters)}`}function out(t){return Object.entries(t).map(([e,r])=>`;${hY(e)}=${hY(r)}`).join("")}function iut(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(o=>`${_B(r)}=${_B(o)}`).join("&"):`${_B(r)}=${_B(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var aut=/^[^\/()?;#]+/;function sY(t){let e=t.match(aut);return e?e[0]:""}var sut=/^[^\/()?;=#]+/;function lut(t){let e=t.match(sut);return e?e[0]:""}var cut=/^[^=?&#]+/;function uut(t){let e=t.match(cut);return e?e[0]:""}var dut=/^[^&#]+/;function fut(t){let e=t.match(dut);return e?e[0]:""}var pY=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ba([],{}):new Ba([],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 r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[fi]=new Ba(e,r)),n}parseSegment(){let e=sY(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new Mo(4009,!1);return this.capture(e),new gm(OB(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=lut(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let o=sY(this.remaining);o&&(n=o,this.capture(n))}e[OB(r)]=OB(n)}parseQueryParam(e){let r=uut(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let a=fut(this.remaining);a&&(n=a,this.capture(n))}let o=ype(r),i=ype(n);if(e.hasOwnProperty(o)){let a=e[o];Array.isArray(a)||(a=[a],e[o]=a),a.push(i)}else e[o]=i}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=sY(this.remaining),o=this.remaining[n.length];if(o!=="/"&&o!==")"&&o!==";")throw new Mo(4010,!1);let i;n.indexOf(":")>-1?(i=n.slice(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=fi);let a=this.parseChildren();r[i]=Object.keys(a).length===1?a[fi]:new Ba([],a),this.consumeOptional("//")}return r}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 Mo(4011,!1)}};function kpe(t){return t.segments.length>0?new Ba([],{[fi]:t}):t}function Tpe(t){let e={};for(let[n,o]of Object.entries(t.children)){let i=Tpe(o);if(n===fi&&i.segments.length===0&&i.hasChildren())for(let[a,s]of Object.entries(i.children))e[a]=s;else(i.segments.length>0||i.hasChildren())&&(e[n]=i)}let r=new Ba(t.segments,e);return hut(r)}function hut(t){if(t.numberOfChildren===1&&t.children[fi]){let e=t.children[fi];return new Ba(t.segments.concat(e.segments),e.children)}return t}function TA(t){return t instanceof _p}function put(t,e,r=null,n=null){let o=Ope(t);return Bpe(o,e,r,n)}function Ope(t){let e;function r(i){let a={};for(let l of i.children){let u=r(l);a[l.outlet]=u}let s=new Ba(i.url,a);return i===t&&(e=s),s}let n=r(t.root),o=kpe(n);return e??o}function Bpe(t,e,r,n){let o=t;for(;o.parent;)o=o.parent;if(e.length===0)return lY(o,o,o,r,n);let i=gut(e);if(i.toRoot())return lY(o,o,new Ba([],{}),r,n);let a=mut(i,o,t),s=a.processChildren?iS(a.segmentGroup,a.index,i.commands):Npe(a.segmentGroup,a.index,i.commands);return lY(o,a.segmentGroup,s,r,n)}function FB(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function lS(t){return typeof t=="object"&&t!=null&&t.outlets}function lY(t,e,r,n,o){let i={};n&&Object.entries(n).forEach(([l,u])=>{i[l]=Array.isArray(u)?u.map(d=>`${d}`):`${u}`});let a;t===e?a=r:a=Fpe(t,e,r);let s=kpe(Tpe(a));return new _p(s,i,o)}function Fpe(t,e,r){let n={};return Object.entries(t.children).forEach(([o,i])=>{i===e?n[o]=r:n[o]=Fpe(i,e,r)}),new Ba(t.segments,n)}var NB=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&FB(n[0]))throw new Mo(4003,!1);let o=n.find(lS);if(o&&o!==Cpe(n))throw new Mo(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function gut(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new NB(!0,0,t);let e=0,r=!1,n=t.reduce((o,i,a)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let s={};return Object.entries(i.outlets).forEach(([l,u])=>{s[l]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:s}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:a===0?(i.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?r=!0:s===".."?e++:s!=""&&o.push(s))}),o):[...o,i]},[]);return new NB(r,e,n)}var _A=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function mut(t,e,r){if(t.isAbsolute)return new _A(e,!0,0);if(!r)return new _A(e,!1,NaN);if(r.parent===null)return new _A(r,!0,0);let n=FB(t.commands[0])?0:1,o=r.segments.length-1+n;return vut(r,o,t.numberOfDoubleDots)}function vut(t,e,r){let n=t,o=e,i=r;for(;i>o;){if(i-=o,n=n.parent,!n)throw new Mo(4005,!1);o=n.segments.length}return new _A(n,!1,o-i)}function yut(t){return lS(t[0])?t[0].outlets:{[fi]:t}}function Npe(t,e,r){if(t??=new Ba([],{}),t.segments.length===0&&t.hasChildren())return iS(t,e,r);let n=Aut(t,e,r),o=r.slice(n.commandIndex);if(n.match&&n.pathIndexi!==fi)&&t.children[fi]&&t.numberOfChildren===1&&t.children[fi].segments.length===0){let i=iS(t.children[fi],e,r);return new Ba(t.segments,i.children)}return Object.entries(n).forEach(([i,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(o[i]=Npe(t.children[i],e,a))}),Object.entries(t.children).forEach(([i,a])=>{n[i]===void 0&&(o[i]=a)}),new Ba(t.segments,o)}}function Aut(t,e,r){let n=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};for(;o=r.length)return i;let a=t.segments[o],s=r[n];if(lS(s))break;let l=`${s}`,u=n0&&l===void 0)break;if(l&&u&&typeof u=="object"&&u.outlets===void 0){if(!bpe(l,u,a))return i;n+=2}else{if(!bpe(l,{},a))return i;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function gY(t,e,r){let n=t.segments.slice(0,e),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=gY(new Ba([],{}),0,n))}),e}function Ape(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function bpe(t,e,r){return t==r.path&&df(e,r.parameters)}var aS="imperative",hl=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}(hl||{}),kd=class{constructor(e,r){this.id=e,this.url=r}},cS=class extends kd{constructor(e,r,n="imperative",o=null){super(e,r),this.type=hl.NavigationStart,this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Mp=class extends kd{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=hl.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Iu=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Iu||{}),mY=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(mY||{}),kp=class extends kd{constructor(e,r,n,o){super(e,r),this.reason=n,this.code=o,this.type=hl.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},vm=class extends kd{constructor(e,r,n,o){super(e,r),this.reason=n,this.code=o,this.type=hl.NavigationSkipped}},uS=class extends kd{constructor(e,r,n,o){super(e,r),this.error=n,this.target=o,this.type=hl.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},RB=class extends kd{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=hl.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},vY=class extends kd{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=hl.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yY=class extends kd{constructor(e,r,n,o,i){super(e,r),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=i,this.type=hl.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},AY=class extends kd{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=hl.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},bY=class extends kd{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=hl.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},xY=class{constructor(e){this.route=e,this.type=hl.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},wY=class{constructor(e){this.route=e,this.type=hl.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},CY=class{constructor(e){this.snapshot=e,this.type=hl.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},EY=class{constructor(e){this.snapshot=e,this.type=hl.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},SY=class{constructor(e){this.snapshot=e,this.type=hl.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},DY=class{constructor(e){this.snapshot=e,this.type=hl.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var dS=class{},fS=class{constructor(e){this.url=e}};var IY=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new jB,this.attachRef=null}},jB=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,o){let i=this.getOrCreateContext(n);i.outlet=o,this.contexts.set(n,i)}onChildOutletDestroyed(n){let o=this.getContext(n);o&&(o.outlet=null,o.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let o=this.getContext(n);return o||(o=new IY,this.contexts.set(n,o)),o}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),PB=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=_Y(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=_Y(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=MY(e,this._root);return r.length<2?[]:r[r.length-2].children.map(o=>o.value).filter(o=>o!==e)}pathFromRoot(e){return MY(e,this._root).map(r=>r.value)}};function _Y(t,e){if(t===e.value)return e;for(let r of e.children){let n=_Y(t,r);if(n)return n}return null}function MY(t,e){if(t===e.value)return[e];for(let r of e.children){let n=MY(t,r);if(n.length)return n.unshift(e),n}return[]}var Du=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function IA(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var zB=class extends PB{constructor(e,r){super(e),this.snapshot=r,HY(this,e)}toString(){return this.snapshot.toString()}};function Rpe(t){let e=xut(t),r=new ll([new gm("",{})]),n=new ll({}),o=new ll({}),i=new ll({}),a=new ll(""),s=new ym(r,n,i,a,o,fi,t,e.root);return s.snapshot=e.root,new zB(new Du(s,[]),e)}function xut(t){let e={},r={},n={},o="",i=new hS([],e,n,o,r,fi,t,null,{});return new LB("",new Du(i,[]))}var ym=class{constructor(e,r,n,o,i,a,s,l){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=i,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(Hi(u=>u[mS]))??ui(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(Hi(e=>kA(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Hi(e=>kA(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function LY(t,e,r="emptyOnly"){let n,{routeConfig:o}=t;return e!==null&&(r==="always"||o?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:Je(Je({},e.params),t.params),data:Je(Je({},e.data),t.data),resolve:Je(Je(Je(Je({},t.data),e.data),o?.data),t._resolvedData)}:n={params:Je({},t.params),data:Je({},t.data),resolve:Je(Je({},t.data),t._resolvedData??{})},o&&zpe(o)&&(n.resolve[mS]=o.title),n}var hS=class{get title(){return this.data?.[mS]}constructor(e,r,n,o,i,a,s,l,u){this.url=e,this.params=r,this.queryParams=n,this.fragment=o,this.data=i,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=kA(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=kA(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},LB=class extends PB{constructor(e,r){super(r),this.url=e,HY(this,r)}toString(){return Ppe(this._root)}};function HY(t,e){e.value._routerState=t,e.children.forEach(r=>HY(t,r))}function Ppe(t){let e=t.children.length>0?` { ${t.children.map(Ppe).join(", ")} } `:"";return`${t.value}${e}`}function cY(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,df(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),df(e.params,r.params)||t.paramsSubject.next(r.params),Y2t(e.url,r.url)||t.urlSubject.next(r.url),df(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function kY(t,e){let r=df(t.params,e.params)&&eut(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||kY(t.parent,e.parent))}function zpe(t){return typeof t.title=="string"||t.title===null}var VY=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=fi,this.activateEvents=new Zl,this.deactivateEvents=new Zl,this.attachEvents=new Zl,this.detachEvents=new Zl,this.parentContexts=dn(jB),this.location=dn(sm),this.changeDetector=dn(Dp),this.environmentInjector=dn(ua),this.inputBinder=dn(jY,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:o,previousValue:i}=n.name;if(o)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),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 Mo(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Mo(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Mo(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,o){this.activated=n,this._activatedRoute=o,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,o){if(this.isActivated)throw new Mo(4013,!1);this._activatedRoute=n;let i=this.location,s=n.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,u=new TY(n,l,i.injector);this.activated=i.createComponent(s,{index:i.length,injector:u,environmentInjector:o??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=Xl({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Sd]});let t=e;return t})(),TY=class{constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n,this.__ngOutletInjector=!0}get(e,r){return e===ym?this.route:e===jB?this.childContexts:this.parent.get(e,r)}},jY=new di("");function wut(t,e,r){let n=pS(t,e._root,r?r._root:void 0);return new zB(n,e)}function pS(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let o=Cut(t,e,r);return new Du(n,o)}else{if(t.shouldAttach(e.value)){let i=t.retrieve(e.value);if(i!==null){let a=i.route;return a.value._futureSnapshot=e.value,a.children=e.children.map(s=>pS(t,s)),a}}let n=Eut(e.value),o=e.children.map(i=>pS(t,i));return new Du(n,o)}}function Cut(t,e,r){return e.children.map(n=>{for(let o of r.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return pS(t,n,o);return pS(t,n)})}function Eut(t){return new ym(new ll(t.url),new ll(t.params),new ll(t.queryParams),new ll(t.fragment),new ll(t.data),t.outlet,t.component,t)}var Lpe="ngNavigationCancelingError";function Hpe(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=TA(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,o=Vpe(!1,Iu.Redirect);return o.url=r,o.navigationBehaviorOptions=n,o}function Vpe(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[Lpe]=!0,r.cancellationCode=e,r}function Sut(t){return jpe(t)&&TA(t.url)}function jpe(t){return!!t&&t[Lpe]}var Dut=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=Ln({type:e,selectors:[["ng-component"]],standalone:!0,features:[Wn],decls:1,vars:0,template:function(o,i){o&1&&Do(0,"router-outlet")},dependencies:[VY],encapsulation:2});let t=e;return t})();function Iut(t,e){return t.providers&&!t._injector&&(t._injector=UK(t.providers,e,`Route: ${t.path}`)),t._injector??e}function QY(t){let e=t.children&&t.children.map(QY),r=e?lr(Je({},t),{children:e}):Je({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==fi&&(r.component=Dut),r}function ff(t){return t.outlet||fi}function _ut(t,e){let r=t.filter(n=>ff(n)===e);return r.push(...t.filter(n=>ff(n)!==e)),r}function vS(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var Mut=(t,e,r,n)=>Hi(o=>(new OY(e,o.targetRouterState,o.currentRouterState,r,n).activate(t),o)),OY=class{constructor(e,r,n,o,i){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=i}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),cY(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let o=IA(r);e.children.forEach(i=>{let a=i.value.outlet;this.deactivateRoutes(i,o[a],n),delete o[a]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,n)})}deactivateRoutes(e,r,n){let o=e.value,i=r?r.value:null;if(o===i)if(o.component){let a=n.getContext(o.outlet);a&&this.deactivateChildRoutes(e,r,a.children)}else this.deactivateChildRoutes(e,r,n);else i&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),o=n&&e.value.component?n.children:r,i=IA(e);for(let a of Object.values(i))this.deactivateRouteAndItsChildren(a,o);if(n&&n.outlet){let a=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:a,route:e,contexts:s})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),o=n&&e.value.component?n.children:r,i=IA(e);for(let a of Object.values(i))this.deactivateRouteAndItsChildren(a,o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let o=IA(r);e.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],n),this.forwardEvent(new DY(i.value.snapshot))}),e.children.length&&this.forwardEvent(new EY(e.value.snapshot))}activateRoutes(e,r,n){let o=e.value,i=r?r.value:null;if(cY(o),o===i)if(o.component){let a=n.getOrCreateContext(o.outlet);this.activateChildRoutes(e,r,a.children)}else this.activateChildRoutes(e,r,n);else if(o.component){let a=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),cY(s.route.value),this.activateChildRoutes(e,null,a.children)}else{let s=vS(o.snapshot);a.attachRef=null,a.route=o,a.injector=s,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(e,null,a.children)}}else this.activateChildRoutes(e,null,n)}},HB=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},MA=class{constructor(e,r){this.component=e,this.route=r}};function kut(t,e,r){let n=t._root,o=e?e._root:null;return nS(n,o,r,[n.value])}function Tut(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function BA(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!E6e(t)?t:e.get(t):n}function nS(t,e,r,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=IA(e);return t.children.forEach(a=>{Out(a,i[a.value.outlet],r,n.concat([a.value]),o),delete i[a.value.outlet]}),Object.entries(i).forEach(([a,s])=>sS(s,r.getContext(a),o)),o}function Out(t,e,r,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=t.value,a=e?e.value:null,s=r?r.getContext(t.value.outlet):null;if(a&&i.routeConfig===a.routeConfig){let l=But(a,i,i.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new HB(n)):(i.data=a.data,i._resolvedData=a._resolvedData),i.component?nS(t,e,s?s.children:null,n,o):nS(t,e,r,n,o),l&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new MA(s.outlet.component,a))}else a&&sS(e,s,o),o.canActivateChecks.push(new HB(n)),i.component?nS(t,null,s?s.children:null,n,o):nS(t,null,r,n,o);return o}function But(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!mm(t.url,e.url);case"pathParamsOrQueryParamsChange":return!mm(t.url,e.url)||!df(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!kY(t,e)||!df(t.queryParams,e.queryParams);case"paramsChange":default:return!kY(t,e)}}function sS(t,e,r){let n=IA(t),o=t.value;Object.entries(n).forEach(([i,a])=>{o.component?e?sS(a,e.children.getContext(i),r):sS(a,null,r):sS(a,e,r)}),o.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new MA(e.outlet.component,o)):r.canDeactivateChecks.push(new MA(null,o)):r.canDeactivateChecks.push(new MA(null,o))}function yS(t){return typeof t=="function"}function Fut(t){return typeof t=="boolean"}function Nut(t){return t&&yS(t.canLoad)}function Rut(t){return t&&yS(t.canActivate)}function Put(t){return t&&yS(t.canActivateChild)}function zut(t){return t&&yS(t.canDeactivate)}function Lut(t){return t&&yS(t.canMatch)}function Qpe(t){return t instanceof c5||t?.name==="EmptyError"}var MB=Symbol("INITIAL_VALUE");function OA(){return L4(t=>gO(t.map(e=>e.pipe(u5(1),$$(MB)))).pipe(Hi(e=>{for(let r of e)if(r!==!0){if(r===MB)return MB;if(r===!1||r instanceof _p)return r}return!0}),z4(e=>e!==MB),u5(1)))}function Hut(t,e){return l0(r=>{let{targetSnapshot:n,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:a}}=r;return a.length===0&&i.length===0?ui(lr(Je({},r),{guardsResult:!0})):Vut(a,n,o,t).pipe(l0(s=>s&&Fut(s)?jut(n,i,t,e):ui(s)),Hi(s=>lr(Je({},r),{guardsResult:s})))})}function Vut(t,e,r,n){return I1(t).pipe(l0(o=>$ut(o.component,o.route,r,e,n)),rf(o=>o!==!0,!0))}function jut(t,e,r,n){return I1(e).pipe(rA(o=>tA(Uut(o.route.parent,n),Qut(o.route,n),Gut(t,o.path,r),Wut(t,o.route,r))),rf(o=>o!==!0,!0))}function Qut(t,e){return t!==null&&e&&e(new SY(t)),ui(!0)}function Uut(t,e){return t!==null&&e&&e(new CY(t)),ui(!0)}function Wut(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return ui(!0);let o=n.map(i=>mO(()=>{let a=vS(e)??r,s=BA(i,a),l=Rut(s)?s.canActivate(e,t):tm(a,()=>s(e,t));return Tp(l).pipe(rf())}));return ui(o).pipe(OA())}function Gut(t,e,r){let n=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(a=>Tut(a)).filter(a=>a!==null).map(a=>mO(()=>{let s=a.guards.map(l=>{let u=vS(a.node)??r,d=BA(l,u),f=Put(d)?d.canActivateChild(n,t):tm(u,()=>d(n,t));return Tp(f).pipe(rf())});return ui(s).pipe(OA())}));return ui(i).pipe(OA())}function $ut(t,e,r,n,o){let i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!i||i.length===0)return ui(!0);let a=i.map(s=>{let l=vS(e)??o,u=BA(s,l),d=zut(u)?u.canDeactivate(t,e,r,n):tm(l,()=>u(t,e,r,n));return Tp(d).pipe(rf())});return ui(a).pipe(OA())}function Zut(t,e,r,n){let o=e.canLoad;if(o===void 0||o.length===0)return ui(!0);let i=o.map(a=>{let s=BA(a,t),l=Nut(s)?s.canLoad(e,r):tm(t,()=>s(e,r));return Tp(l)});return ui(i).pipe(OA(),Upe(n))}function Upe(t){return P$(cl(e=>{if(TA(e))throw Hpe(t,e)}),Hi(e=>e===!0))}function Kut(t,e,r,n){let o=e.canMatch;if(!o||o.length===0)return ui(!0);let i=o.map(a=>{let s=BA(a,t),l=Lut(s)?s.canMatch(e,r):tm(t,()=>s(e,r));return Tp(l)});return ui(i).pipe(OA(),Upe(n))}var gS=class{constructor(e){this.segmentGroup=e||null}},VB=class extends Error{constructor(e){super(),this.urlTree=e}};function DA(t){return eA(new gS(t))}function Yut(t){return eA(new Mo(4e3,!1))}function qut(t){return eA(Vpe(!1,Iu.GuardRejected))}var BY=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],o=r.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return ui(n);if(o.numberOfChildren>1||!o.children[fi])return Yut(e.redirectTo);o=o.children[fi]}}applyRedirectCommands(e,r,n){let o=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r.startsWith("/"))throw new VB(o);return o}applyRedirectCreateUrlTree(e,r,n,o){let i=this.createSegmentGroup(e,r.root,n,o);return new _p(i,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([o,i])=>{if(typeof i=="string"&&i.startsWith(":")){let s=i.substring(1);n[o]=r[s]}else n[o]=i}),n}createSegmentGroup(e,r,n,o){let i=this.createSegments(e,r.segments,n,o),a={};return Object.entries(r.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(e,l,n,o)}),new Ba(i,a)}createSegments(e,r,n,o){return r.map(i=>i.path.startsWith(":")?this.findPosParam(e,i,o):this.findOrReturn(i,n))}findPosParam(e,r,n){let o=n[r.path.substring(1)];if(!o)throw new Mo(4001,!1);return o}findOrReturn(e,r){let n=0;for(let o of r){if(o.path===e.path)return r.splice(n),o;n++}return e}},FY={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Xut(t,e,r,n,o){let i=UY(t,e,r);return i.matched?(n=Iut(e,n),Kut(n,e,r,o).pipe(Hi(a=>a===!0?i:Je({},FY)))):ui(i)}function UY(t,e,r){if(e.path==="**")return Jut(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?Je({},FY):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let o=(e.matcher||K2t)(r,t,e);if(!o)return Je({},FY);let i={};Object.entries(o.posParams??{}).forEach(([s,l])=>{i[s]=l.path});let a=o.consumed.length>0?Je(Je({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:r.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function Jut(t){return{matched:!0,parameters:t.length>0?Cpe(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function xpe(t,e,r,n){return r.length>0&&rdt(t,r,n)?{segmentGroup:new Ba(e,tdt(n,new Ba(r,t.children))),slicedSegments:[]}:r.length===0&&ndt(t,r,n)?{segmentGroup:new Ba(t.segments,edt(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new Ba(t.segments,t.children),slicedSegments:r}}function edt(t,e,r,n){let o={};for(let i of r)if(QB(t,e,i)&&!n[ff(i)]){let a=new Ba([],{});o[ff(i)]=a}return Je(Je({},n),o)}function tdt(t,e){let r={};r[fi]=e;for(let n of t)if(n.path===""&&ff(n)!==fi){let o=new Ba([],{});r[ff(n)]=o}return r}function rdt(t,e,r){return r.some(n=>QB(t,e,n)&&ff(n)!==fi)}function ndt(t,e,r){return r.some(n=>QB(t,e,n))}function QB(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function odt(t,e,r,n){return ff(t)!==n&&(n===fi||!QB(e,r,t))?!1:UY(e,t,r).matched}function idt(t,e,r){return e.length===0&&!t.children[r]}var NY=class{};function adt(t,e,r,n,o,i,a="emptyOnly"){return new RY(t,e,r,n,o,a,i).recognize()}var sdt=31,RY=class{constructor(e,r,n,o,i,a,s){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new BY(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new Mo(4002,`'${e.segmentGroup}'`)}recognize(){let e=xpe(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(Hi(r=>{let n=new hS([],Object.freeze({}),Object.freeze(Je({},this.urlTree.queryParams)),this.urlTree.fragment,{},fi,this.rootComponentType,null,{}),o=new Du(n,r),i=new LB("",o),a=put(n,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(i._root,null),{state:i,tree:a}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,fi).pipe(mp(n=>{if(n instanceof VB)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof gS?this.noMatchError(n):n}))}inheritParamsAndData(e,r){let n=e.value,o=LY(n,r,this.paramsInheritanceStrategy);n.params=Object.freeze(o.params),n.data=Object.freeze(o.data),e.children.forEach(i=>this.inheritParamsAndData(i,n))}processSegmentGroup(e,r,n,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n):this.processSegment(e,r,n,n.segments,o,!0).pipe(Hi(i=>i instanceof Du?[i]:[]))}processChildren(e,r,n){let o=[];for(let i of Object.keys(n.children))i==="primary"?o.unshift(i):o.push(i);return I1(o).pipe(rA(i=>{let a=n.children[i],s=_ut(r,i);return this.processSegmentGroup(e,s,a,i)}),G$((i,a)=>(i.push(...a),i)),vp(null),W$(),l0(i=>{if(i===null)return DA(n);let a=Wpe(i);return ldt(a),ui(a)}))}processSegment(e,r,n,o,i,a){return I1(r).pipe(rA(s=>this.processSegmentAgainstRoute(s._injector??e,r,s,n,o,i,a).pipe(mp(l=>{if(l instanceof gS)return ui(null);throw l}))),rf(s=>!!s),mp(s=>{if(Qpe(s))return idt(n,o,i)?ui(new NY):DA(n);throw s}))}processSegmentAgainstRoute(e,r,n,o,i,a,s){return odt(n,o,i,a)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,o,n,i,a):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(e,o,r,n,i,a):DA(o):DA(o)}expandSegmentAgainstRouteUsingRedirect(e,r,n,o,i,a){let{matched:s,consumedSegments:l,positionalParamSegments:u,remainingSegments:d}=UY(r,o,i);if(!s)return DA(r);o.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>sdt&&(this.allowRedirects=!1));let f=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,u);return this.applyRedirects.lineralizeSegments(o,f).pipe(l0(c=>this.processSegment(e,n,r,c.concat(d),a,!1)))}matchSegmentAgainstRoute(e,r,n,o,i){let a=Xut(r,n,o,e,this.urlSerializer);return n.path==="**"&&(r.children={}),a.pipe(L4(s=>s.matched?(e=n._injector??e,this.getChildConfig(e,n,o).pipe(L4(({routes:l})=>{let u=n._loadedInjector??e,{consumedSegments:d,remainingSegments:f,parameters:c}=s,h=new hS(d,c,Object.freeze(Je({},this.urlTree.queryParams)),this.urlTree.fragment,udt(n),ff(n),n.component??n._loadedComponent??null,n,ddt(n)),{segmentGroup:g,slicedSegments:p}=xpe(r,d,f,l);if(p.length===0&&g.hasChildren())return this.processChildren(u,l,g).pipe(Hi(v=>v===null?null:new Du(h,v)));if(l.length===0&&p.length===0)return ui(new Du(h,[]));let m=ff(n)===i;return this.processSegment(u,l,g,p,m?fi:i,!0).pipe(Hi(v=>new Du(h,v instanceof Du?[v]:[])))}))):DA(r)))}getChildConfig(e,r,n){return r.children?ui({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?ui({routes:r._loadedRoutes,injector:r._loadedInjector}):Zut(e,r,n,this.urlSerializer).pipe(l0(o=>o?this.configLoader.loadChildren(e,r).pipe(cl(i=>{r._loadedRoutes=i.routes,r._loadedInjector=i.injector})):qut(r))):ui({routes:[],injector:e})}};function ldt(t){t.sort((e,r)=>e.value.outlet===fi?-1:r.value.outlet===fi?1:e.value.outlet.localeCompare(r.value.outlet))}function cdt(t){let e=t.value.routeConfig;return e&&e.path===""}function Wpe(t){let e=[],r=new Set;for(let n of t){if(!cdt(n)){e.push(n);continue}let o=e.find(i=>n.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...n.children),r.add(o)):e.push(n)}for(let n of r){let o=Wpe(n.children);e.push(new Du(n.value,o))}return e.filter(n=>!r.has(n))}function udt(t){return t.data||{}}function ddt(t){return t.resolve||{}}function fdt(t,e,r,n,o,i){return l0(a=>adt(t,e,r,n,a.extractedUrl,o,i).pipe(Hi(({state:s,tree:l})=>lr(Je({},a),{targetSnapshot:s,urlAfterRedirects:l}))))}function hdt(t,e){return l0(r=>{let{targetSnapshot:n,guards:{canActivateChecks:o}}=r;if(!o.length)return ui(r);let i=new Set(o.map(l=>l.route)),a=new Set;for(let l of i)if(!a.has(l))for(let u of Gpe(l))a.add(u);let s=0;return I1(a).pipe(rA(l=>i.has(l)?pdt(l,n,t,e):(l.data=LY(l,l.parent,t).resolve,ui(void 0))),cl(()=>s++),nA(1),l0(l=>s===a.size?ui(r):Eu))})}function Gpe(t){let e=t.children.map(r=>Gpe(r)).flat();return[t,...e]}function pdt(t,e,r,n){let o=t.routeConfig,i=t._resolve;return o?.title!==void 0&&!zpe(o)&&(i[mS]=o.title),gdt(i,t,e,n).pipe(Hi(a=>(t._resolvedData=a,t.data=LY(t,t.parent,r).resolve,null)))}function gdt(t,e,r,n){let o=fY(t);if(o.length===0)return ui({});let i={};return I1(o).pipe(l0(a=>mdt(t[a],e,r,n).pipe(rf(),cl(s=>{i[a]=s}))),nA(1),U$(i),mp(a=>Qpe(a)?Eu:eA(a)))}function mdt(t,e,r,n){let o=vS(e)??n,i=BA(t,o),a=i.resolve?i.resolve(e,r):tm(o,()=>i(e,r));return Tp(a)}function uY(t){return L4(e=>{let r=t(e);return r?I1(r).pipe(Hi(()=>e)):ui(e)})}var $pe=(()=>{let e=class e{buildTitle(n){let o,i=n.root;for(;i!==void 0;)o=this.getResolvedTitleForRoute(i)??o,i=i.children.find(a=>a.outlet===fi);return o}getResolvedTitleForRoute(n){return n.data[mS]}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:()=>dn(vdt),providedIn:"root"});let t=e;return t})(),vdt=(()=>{let e=class e extends $pe{constructor(n){super(),this.title=n}updateTitle(n){let o=this.buildTitle(n);o!==void 0&&this.title.setTitle(o)}};e.\u0275fac=function(o){return new(o||e)(ra(mpe))},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),WY=new di("",{providedIn:"root",factory:()=>({})}),GY=new di(""),ydt=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=dn(YK)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return ui(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let o=Tp(n.loadComponent()).pipe(Hi(Zpe),cl(a=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=a}),DE(()=>{this.componentLoaders.delete(n)})),i=new Jy(o,()=>new $l).pipe(Xy());return this.componentLoaders.set(n,i),i}loadChildren(n,o){if(this.childrenLoaders.get(o))return this.childrenLoaders.get(o);if(o._loadedRoutes)return ui({routes:o._loadedRoutes,injector:o._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(o);let a=Adt(o,this.compiler,n,this.onLoadEndListener).pipe(DE(()=>{this.childrenLoaders.delete(o)})),s=new Jy(a,()=>new $l).pipe(Xy());return this.childrenLoaders.set(o,s),s}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Adt(t,e,r,n){return Tp(t.loadChildren()).pipe(Hi(Zpe),l0(o=>o instanceof HE||Array.isArray(o)?ui(o):I1(e.compileModuleAsync(o))),Hi(o=>{n&&n(t);let i,a,s=!1;return Array.isArray(o)?(a=o,s=!0):(i=o.create(r).injector,a=i.get(GY,[],{optional:!0,self:!0}).flat()),{routes:a.map(QY),injector:i}}))}function bdt(t){return t&&typeof t=="object"&&"default"in t}function Zpe(t){return bdt(t)?t.default:t}var $Y=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:()=>dn(xdt),providedIn:"root"});let t=e;return t})(),xdt=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,o){return n}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),wdt=new di("");var Cdt=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new $l,this.transitionAbortSubject=new $l,this.configLoader=dn(ydt),this.environmentInjector=dn(ua),this.urlSerializer=dn(zY),this.rootContexts=dn(jB),this.location=dn(XE),this.inputBindingEnabled=dn(jY,{optional:!0})!==null,this.titleStrategy=dn($pe),this.options=dn(WY,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=dn($Y),this.createViewTransition=dn(wdt,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ui(void 0),this.rootComponentType=null;let n=i=>this.events.next(new xY(i)),o=i=>this.events.next(new wY(i));this.configLoader.onLoadEndListener=o,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let o=++this.navigationId;this.transitions?.next(lr(Je(Je({},this.transitions.value),n),{id:o}))}setupNavigations(n,o,i){return this.transitions=new ll({id:0,currentUrlTree:o,currentRawUrl:o,extractedUrl:this.urlHandlingStrategy.extract(o),urlAfterRedirects:this.urlHandlingStrategy.extract(o),rawUrl:o,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:aS,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(z4(a=>a.id!==0),Hi(a=>lr(Je({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),L4(a=>{let s=!1,l=!1;return ui(a).pipe(L4(u=>{if(this.navigationId>a.id)return this.cancelNavigationTransition(a,"",Iu.SupersededByNewNavigation),Eu;this.currentTransition=a,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?lr(Je({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let d=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),f=u.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!d&&f!=="reload"){let c="";return this.events.next(new vm(u.id,this.urlSerializer.serialize(u.rawUrl),c,mY.IgnoredSameUrlNavigation)),u.resolve(null),Eu}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return ui(u).pipe(L4(c=>{let h=this.transitions?.getValue();return this.events.next(new cS(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),h!==this.transitions?.getValue()?Eu:Promise.resolve(c)}),fdt(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),cl(c=>{a.targetSnapshot=c.targetSnapshot,a.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation=lr(Je({},this.currentNavigation),{finalUrl:c.urlAfterRedirects});let h=new RB(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:c,extractedUrl:h,source:g,restoredState:p,extras:m}=u,v=new cS(c,this.urlSerializer.serialize(h),g,p);this.events.next(v);let b=Rpe(this.rootComponentType).snapshot;return this.currentTransition=a=lr(Je({},u),{targetSnapshot:b,urlAfterRedirects:h,extras:lr(Je({},m),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,ui(a)}else{let c="";return this.events.next(new vm(u.id,this.urlSerializer.serialize(u.extractedUrl),c,mY.IgnoredByUrlHandlingStrategy)),u.resolve(null),Eu}}),cl(u=>{let d=new vY(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}),Hi(u=>(this.currentTransition=a=lr(Je({},u),{guards:kut(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),a)),Hut(this.environmentInjector,u=>this.events.next(u)),cl(u=>{if(a.guardsResult=u.guardsResult,TA(u.guardsResult))throw Hpe(this.urlSerializer,u.guardsResult);let d=new yY(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(d)}),z4(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",Iu.GuardRejected),!1)),uY(u=>{if(u.guards.canActivateChecks.length)return ui(u).pipe(cl(d=>{let f=new AY(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(f)}),L4(d=>{let f=!1;return ui(d).pipe(hdt(this.paramsInheritanceStrategy,this.environmentInjector),cl({next:()=>f=!0,complete:()=>{f||this.cancelNavigationTransition(d,"",Iu.NoDataFromResolver)}}))}),cl(d=>{let f=new bY(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(f)}))}),uY(u=>{let d=f=>{let c=[];f.routeConfig?.loadComponent&&!f.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(f.routeConfig).pipe(cl(h=>{f.component=h}),Hi(()=>{})));for(let h of f.children)c.push(...d(h));return c};return gO(d(u.targetSnapshot.root)).pipe(vp(null),u5(1))}),uY(()=>this.afterPreactivation()),L4(()=>{let{currentSnapshot:u,targetSnapshot:d}=a,f=this.createViewTransition?.(this.environmentInjector,u.root,d.root);return f?I1(f).pipe(Hi(()=>a)):ui(a)}),Hi(u=>{let d=wut(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=a=lr(Je({},u),{targetRouterState:d}),this.currentNavigation.targetRouterState=d,a}),cl(()=>{this.events.next(new dS)}),Mut(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),u5(1),cl({next:u=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Mp(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{s=!0}}),Z$(this.transitionAbortSubject.pipe(cl(u=>{throw u}))),DE(()=>{!s&&!l&&this.cancelNavigationTransition(a,"",Iu.SupersededByNewNavigation),this.currentTransition?.id===a.id&&(this.currentNavigation=null,this.currentTransition=null)}),mp(u=>{if(l=!0,jpe(u))this.events.next(new kp(a.id,this.urlSerializer.serialize(a.extractedUrl),u.message,u.cancellationCode)),Sut(u)?this.events.next(new fS(u.url)):a.resolve(!1);else{this.events.next(new uS(a.id,this.urlSerializer.serialize(a.extractedUrl),u,a.targetSnapshot??void 0));try{a.resolve(n.errorHandler(u))}catch(d){this.options.resolveNavigationPromiseOnError?a.resolve(!1):a.reject(d)}}return Eu}))}))}cancelNavigationTransition(n,o,i){let a=new kp(n.id,this.urlSerializer.serialize(n.extractedUrl),o,i);this.events.next(a),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(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Edt(t){return t!==aS}var Sdt=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:()=>dn(Ddt),providedIn:"root"});let t=e;return t})(),PY=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},Ddt=(()=>{let e=class e extends PY{};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=GE(e)))(i||e)}})(),e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Kpe=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:()=>dn(Idt),providedIn:"root"});let t=e;return t})(),Idt=(()=>{let e=class e extends Kpe{constructor(){super(...arguments),this.location=dn(XE),this.urlSerializer=dn(zY),this.options=dn(WY,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=dn($Y),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new _p,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Rpe(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(o=>{o.type==="popstate"&&n(o.url,o.state)})}handleRouterEvent(n,o){if(n instanceof cS)this.stateMemento=this.createStateMemento();else if(n instanceof vm)this.rawUrlTree=o.initialUrl;else if(n instanceof RB){if(this.urlUpdateStrategy==="eager"&&!o.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl);this.setBrowserUrl(i,o)}}else n instanceof dS?(this.currentUrlTree=o.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl),this.routerState=o.targetRouterState,this.urlUpdateStrategy==="deferred"&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o))):n instanceof kp&&(n.code===Iu.GuardRejected||n.code===Iu.NoDataFromResolver)?this.restoreHistory(o):n instanceof uS?this.restoreHistory(o,!0):n instanceof Mp&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,o){let i=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(i)||o.extras.replaceUrl){let a=this.browserPageId,s=Je(Je({},o.extras.state),this.generateNgRouterState(o.id,a));this.location.replaceState(i,"",s)}else{let a=Je(Je({},o.extras.state),this.generateNgRouterState(o.id,this.browserPageId+1));this.location.go(i,"",a)}}restoreHistory(n,o=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,a=this.currentPageId-i;a!==0?this.location.historyGo(a):this.currentUrlTree===n.finalUrl&&a===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(o&&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,o){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:o}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=GE(e)))(i||e)}})(),e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),oS=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(oS||{});function _dt(t,e){t.events.pipe(z4(r=>r instanceof Mp||r instanceof kp||r instanceof uS||r instanceof vm),Hi(r=>r instanceof Mp||r instanceof vm?oS.COMPLETE:(r instanceof kp?r.code===Iu.Redirect||r.code===Iu.SupersededByNewNavigation:!1)?oS.REDIRECTING:oS.FAILED),z4(r=>r!==oS.REDIRECTING),u5(1)).subscribe(()=>{e()})}function Mdt(t){throw t}var kdt={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Tdt={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ZY=(()=>{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.isNgZoneEnabled=!1,this.console=dn(CB),this.stateManager=dn(Kpe),this.options=dn(WY,{optional:!0})||{},this.pendingTasks=dn(ZE),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=dn(Cdt),this.urlSerializer=dn(zY),this.location=dn(XE),this.urlHandlingStrategy=dn($Y),this._events=new $l,this.errorHandler=this.options.errorHandler||Mdt,this.navigated=!1,this.routeReuseStrategy=dn(Sdt),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=dn(GY,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!dn(jY,{optional:!0}),this.eventsSubscription=new s0,this.isNgZoneEnabled=dn(_a)instanceof _a&&_a.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(o=>{try{let i=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(i!==null&&a!==null){if(this.stateManager.handleRouterEvent(o,a),o instanceof kp&&o.code!==Iu.Redirect&&o.code!==Iu.SupersededByNewNavigation)this.navigated=!0;else if(o instanceof Mp)this.navigated=!0;else if(o instanceof fS){let s=this.urlHandlingStrategy.merge(o.url,i.currentRawUrl),l={info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||Edt(i.source)};this.scheduleNavigation(s,aS,null,l,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Bdt(o)&&this._events.next(o)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});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),aS,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,o)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",o)},0)})}navigateToSyncWithBrowser(n,o,i){let a={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let u=Je({},i);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(a.state=u)}let l=this.parseUrl(n);this.scheduleNavigation(l,o,s,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(QY),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,o={}){let{relativeTo:i,queryParams:a,fragment:s,queryParamsHandling:l,preserveFragment:u}=o,d=u?this.currentUrlTree.fragment:s,f=null;switch(l){case"merge":f=Je(Je({},this.currentUrlTree.queryParams),a);break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=a||null}f!==null&&(f=this.removeEmptyProps(f));let c;try{let h=i?i.snapshot:this.routerState.snapshot.root;c=Ope(h)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),c=this.currentUrlTree.root}return Bpe(c,n,f,d??null)}navigateByUrl(n,o={skipLocationChange:!1}){let i=TA(n)?n:this.parseUrl(n),a=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(a,aS,null,o)}navigate(n,o={skipLocationChange:!1}){return Odt(n),this.navigateByUrl(this.createUrlTree(n,o),o)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,o){let i;if(o===!0?i=Je({},kdt):o===!1?i=Je({},Tdt):i=o,TA(n))return vpe(this.currentUrlTree,n,i);let a=this.parseUrl(n);return vpe(this.currentUrlTree,a,i)}removeEmptyProps(n){return Object.entries(n).reduce((o,[i,a])=>(a!=null&&(o[i]=a),o),{})}scheduleNavigation(n,o,i,a,s){if(this.disposed)return Promise.resolve(!1);let l,u,d;s?(l=s.resolve,u=s.reject,d=s.promise):d=new Promise((c,h)=>{l=c,u=h});let f=this.pendingTasks.add();return _dt(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(f))}),this.navigationTransitions.handleNavigationRequest({source:o,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:a,resolve:l,reject:u,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(c=>Promise.reject(c))}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=oi({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Odt(t){for(let e=0;e{let e=class e{constructor(n,o,i,a,s,l){this.router=n,this.route=o,this.tabIndexAttribute=i,this.renderer=a,this.el=s,this.locationStrategy=l,this.href=null,this.commands=null,this.onChanges=new $l,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let u=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=n.events.subscribe(d=>{d instanceof Mp&&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,o,i,a,s){let l=this.urlTree;if(l===null||this.isAnchorElement&&(n!==0||o||i||a||s||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(l,u),!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 o=this.href===null?null:O5e(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",o)}applyAttributeValue(n,o){let i=this.renderer,a=this.el.nativeElement;o!==null?i.setAttribute(a,n,o):i.removeAttribute(a,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(o){return new(o||e)(vs(ZY),vs(ym),EK("tabindex"),vs(im),vs(Q1),vs(SA))},e.\u0275dir=Xl({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(o,i){o&1&&ko("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),o&2&&xB("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[Yn.HasDecoratorInputTransform,"preserveFragment","preserveFragment",dm],skipLocationChange:[Yn.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",dm],replaceUrl:[Yn.HasDecoratorInputTransform,"replaceUrl","replaceUrl",dm],routerLink:"routerLink"},standalone:!0,features:[QK,Sd]});let t=e;return t})();var Fdt=new di("");function qpe(t,...e){return JO([{provide:GY,multi:!0,useValue:t},[],{provide:ym,useFactory:Ndt,deps:[ZY]},{provide:KK,multi:!0,useFactory:Rdt},e.map(r=>r.\u0275providers)])}function Ndt(t){return t.routerState.root}function Rdt(){let t=dn(dl);return e=>{let r=t.get(_d);if(e!==r.components[0])return;let n=t.get(ZY),o=t.get(Pdt);t.get(zdt)===1&&n.initialNavigation(),t.get(Ldt,null,Ii.Optional)?.setUpPreloading(),t.get(Fdt,null,Ii.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var Pdt=new di("",{factory:()=>new $l}),zdt=new di("",{providedIn:"root",factory:()=>1});var Ldt=new di("");var ii=It(gr(),1),Ove=It(pJ(),1),Bve=It(z2(),1);var rft=["child"],Fu=(()=>{let e=class e{constructor(){this.enable=So(),this._child=whe("child"),this.ready=No(!1),this.child=O2(()=>{if(this.enable())return this._child()})}ngOnInit(){}ngAfterContentInit(){this.ready.set(!0)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=Ln({type:e,selectors:[["bridge-child"]],contentQueries:function(o,i,a){o&1&&Su(a,i._child,rft,5),o&2&&rs()},inputs:{enable:[Yn.SignalBased,"enable"]},standalone:!0,features:[Wn],decls:0,vars:0,template:function(o,i){},encapsulation:2});let t=e;return t})(),Tme=(()=>{let e=class e{transform(n,...o){return(...i)=>n(...o,...i)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275pipe=UE({name:"curry",type:e,pure:!0,standalone:!0});let t=e;return t})();function gJ(t,e){let r=new Set(t.split(","));return e?n=>r.has(n.toLowerCase()):n=>r.has(n)}var Ome=()=>{};var nft=Object.prototype.hasOwnProperty,dD=(t,e)=>nft.call(t,e),Jp=Array.isArray,fD=t=>Bme(t)==="[object Map]";var mJ=t=>typeof t=="function",oft=t=>typeof t=="string",hD=t=>typeof t=="symbol",ub=t=>t!==null&&typeof t=="object";var ift=Object.prototype.toString,Bme=t=>ift.call(t),Fme=t=>Bme(t).slice(8,-1);var fN=t=>oft(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t;var hN=t=>{let e=Object.create(null);return r=>e[r]||(e[r]=t(r))},aft=/-(\w)/g,Cbr=hN(t=>t.replace(aft,(e,r)=>r?r.toUpperCase():"")),sft=/\B([A-Z])/g,Ebr=hN(t=>t.replace(sft,"-$1").toLowerCase()),lft=hN(t=>t.charAt(0).toUpperCase()+t.slice(1)),Sbr=hN(t=>t?`on${lft(t)}`:""),Fm=(t,e)=>!Object.is(t,e);var Nme=(t,e,r)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r})};var cft="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly";var Dbr=gJ(cft+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");var t3,gD=class{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=t3,!e&&t3&&(this.index=(t3.scopes||(t3.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){let r=t3;try{return t3=this,e()}finally{t3=r}}}on(){t3=this}off(){t3=this.parent}stop(e){if(this._active){let r,n;for(r=0,n=this.effects.length;r=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),M5()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=t8,r=Nm;try{return t8=!0,Nm=this,this._runnings++,Rme(this),this.fn()}finally{Pme(this),this._runnings--,Nm=r,t8=e}}stop(){var e;this.active&&(Rme(this),Pme(this),(e=this.onStop)==null||e.call(this),this.active=!1)}};function dft(t){return t.value}function Rme(t){t._trackId++,t._depsLength=0}function Pme(t){if(t.deps.length>t._depsLength){for(let e=t._depsLength;e{let r=new Map;return r.cleanup=t,r.computed=e,r},AN=new WeakMap,Rm=Symbol(""),AJ=Symbol("");function Vc(t,e,r){if(t8&&Nm){let n=AN.get(t);n||AN.set(t,n=new Map);let o=n.get(r);o||n.set(r,o=$me(()=>n.delete(r))),Wme(Nm,o,void 0)}}function Af(t,e,r,n,o,i){let a=AN.get(t);if(!a)return;let s=[];if(e==="clear")s=[...a.values()];else if(r==="length"&&Jp(t)){let l=Number(n);a.forEach((u,d)=>{(d==="length"||!hD(d)&&d>=l)&&s.push(u)})}else switch(r!==void 0&&s.push(a.get(r)),e){case"add":Jp(t)?fN(r)&&s.push(a.get("length")):(s.push(a.get(Rm)),fD(t)&&s.push(a.get(AJ)));break;case"delete":Jp(t)||(s.push(a.get(Rm)),fD(t)&&s.push(a.get(AJ)));break;case"set":fD(t)&&s.push(a.get(Rm));break}SJ();for(let l of s)l&&Gme(l,4,void 0);DJ()}function fft(t,e){var r;return(r=AN.get(t))==null?void 0:r.get(e)}var hft=gJ("__proto__,__v_isRef,__isVue"),Zme=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(hD)),zme=pft();function pft(){let t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){let n=Jo(this);for(let i=0,a=this.length;i{t[e]=function(...r){_5(),SJ();let n=Jo(this)[e].apply(this,r);return DJ(),M5(),n}}),t}function gft(t){let e=Jo(this);return Vc(e,"has",t),e.hasOwnProperty(t)}var bN=class{constructor(e=!1,r=!1){this._isReadonly=e,this._isShallow=r}get(e,r,n){let o=this._isReadonly,i=this._isShallow;if(r==="__v_isReactive")return!o;if(r==="__v_isReadonly")return o;if(r==="__v_isShallow")return i;if(r==="__v_raw")return n===(o?i?Ift:qme:i?Yme:Kme).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=Jp(e);if(!o){if(a&&dD(zme,r))return Reflect.get(zme,r,n);if(r==="hasOwnProperty")return gft}let s=Reflect.get(e,r,n);return(hD(r)?Zme.has(r):hft(r))||(o||Vc(e,"get",r),i)?s:h0(s)?a&&fN(r)?s:s.value:ub(s)?o?MJ(s):s1(s):s}},xN=class extends bN{constructor(e=!1){super(!1,e)}set(e,r,n,o){let i=e[r];if(!this._isShallow){let l=r8(i);if(!db(n)&&!r8(n)&&(i=Jo(i),n=Jo(n)),!Jp(e)&&h0(i)&&!h0(n))return l?!1:(i.value=n,!0)}let a=Jp(e)&&fN(r)?Number(r)t,CN=t=>Reflect.getPrototypeOf(t);function pN(t,e,r=!1,n=!1){t=t.__v_raw;let o=Jo(t),i=Jo(e);r||(Fm(e,i)&&Vc(o,"get",e),Vc(o,"get",i));let{has:a}=CN(o),s=n?IJ:r?TJ:mD;if(a.call(o,e))return s(t.get(e));if(a.call(o,i))return s(t.get(i));t!==o&&t.get(e)}function gN(t,e=!1){let r=this.__v_raw,n=Jo(r),o=Jo(t);return e||(Fm(t,o)&&Vc(n,"has",t),Vc(n,"has",o)),t===o?r.has(t):r.has(t)||r.has(o)}function mN(t,e=!1){return t=t.__v_raw,!e&&Vc(Jo(t),"iterate",Rm),Reflect.get(t,"size",t)}function Lme(t){t=Jo(t);let e=Jo(this);return CN(e).has.call(e,t)||(e.add(t),Af(e,"add",t,t)),this}function Hme(t,e){e=Jo(e);let r=Jo(this),{has:n,get:o}=CN(r),i=n.call(r,t);i||(t=Jo(t),i=n.call(r,t));let a=o.call(r,t);return r.set(t,e),i?Fm(e,a)&&Af(r,"set",t,e,a):Af(r,"add",t,e),this}function Vme(t){let e=Jo(this),{has:r,get:n}=CN(e),o=r.call(e,t);o||(t=Jo(t),o=r.call(e,t));let i=n?n.call(e,t):void 0,a=e.delete(t);return o&&Af(e,"delete",t,void 0,i),a}function jme(){let t=Jo(this),e=t.size!==0,r=void 0,n=t.clear();return e&&Af(t,"clear",void 0,void 0,r),n}function vN(t,e){return function(n,o){let i=this,a=i.__v_raw,s=Jo(a),l=e?IJ:t?TJ:mD;return!t&&Vc(s,"iterate",Rm),a.forEach((u,d)=>n.call(o,l(u),l(d),i))}}function yN(t,e,r){return function(...n){let o=this.__v_raw,i=Jo(o),a=fD(i),s=t==="entries"||t===Symbol.iterator&&a,l=t==="keys"&&a,u=o[t](...n),d=r?IJ:e?TJ:mD;return!e&&Vc(i,"iterate",l?AJ:Rm),{next(){let{value:f,done:c}=u.next();return c?{value:f,done:c}:{value:s?[d(f[0]),d(f[1])]:d(f),done:c}},[Symbol.iterator](){return this}}}}function e8(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function Aft(){let t={get(i){return pN(this,i)},get size(){return mN(this)},has:gN,add:Lme,set:Hme,delete:Vme,clear:jme,forEach:vN(!1,!1)},e={get(i){return pN(this,i,!1,!0)},get size(){return mN(this)},has:gN,add:Lme,set:Hme,delete:Vme,clear:jme,forEach:vN(!1,!0)},r={get(i){return pN(this,i,!0)},get size(){return mN(this,!0)},has(i){return gN.call(this,i,!0)},add:e8("add"),set:e8("set"),delete:e8("delete"),clear:e8("clear"),forEach:vN(!0,!1)},n={get(i){return pN(this,i,!0,!0)},get size(){return mN(this,!0)},has(i){return gN.call(this,i,!0)},add:e8("add"),set:e8("set"),delete:e8("delete"),clear:e8("clear"),forEach:vN(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{t[i]=yN(i,!1,!1),r[i]=yN(i,!0,!1),e[i]=yN(i,!1,!0),n[i]=yN(i,!0,!0)}),[t,r,e,n]}var[bft,xft,wft,Cft]=Aft();function _J(t,e){let r=e?t?Cft:wft:t?xft:bft;return(n,o,i)=>o==="__v_isReactive"?!t:o==="__v_isReadonly"?t:o==="__v_raw"?n:Reflect.get(dD(r,o)&&o in n?r:n,o,i)}var Eft={get:_J(!1,!1)},Sft={get:_J(!1,!0)},Dft={get:_J(!0,!1)};var Kme=new WeakMap,Yme=new WeakMap,qme=new WeakMap,Ift=new WeakMap;function _ft(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Mft(t){return t.__v_skip||!Object.isExtensible(t)?0:_ft(Fme(t))}function s1(t){return r8(t)?t:kJ(t,!1,mft,Eft,Kme)}function zm(t){return kJ(t,!1,yft,Sft,Yme)}function MJ(t){return kJ(t,!0,vft,Dft,qme)}function kJ(t,e,r,n,o){if(!ub(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;let i=o.get(t);if(i)return i;let a=Mft(t);if(a===0)return t;let s=new Proxy(t,a===2?n:r);return o.set(t,s),s}function n8(t){return r8(t)?n8(t.__v_raw):!!(t&&t.__v_isReactive)}function r8(t){return!!(t&&t.__v_isReadonly)}function db(t){return!!(t&&t.__v_isShallow)}function EN(t){return n8(t)||r8(t)}function Jo(t){let e=t&&t.__v_raw;return e?Jo(e):t}function SN(t){return Object.isExtensible(t)&&Nme(t,"__v_skip",!0),t}var mD=t=>ub(t)?s1(t):t,TJ=t=>ub(t)?MJ(t):t;var wN=class{constructor(e,r,n,o){this.getter=e,this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Pm(()=>e(this._value),()=>pD(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){let e=Jo(this);return(!e._cacheable||e.effect.dirty)&&Fm(e._value,e._value=e.effect.run())&&pD(e,4),Jme(e),e.effect._dirtyLevel>=2&&pD(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}};function Xme(t,e,r=!1){let n,o,i=mJ(t);return i?(n=t,o=Ome):(n=t.get,o=t.set),new wN(n,o,i||!o,r)}function Jme(t){var e;t8&&Nm&&(t=Jo(t),Wme(Nm,(e=t.dep)!=null?e:t.dep=$me(()=>t.dep=void 0,t instanceof wN?t:void 0),void 0))}function pD(t,e=4,r){t=Jo(t);let n=t.dep;n&&Gme(n,e,void 0)}function h0(t){return!!(t&&t.__v_isRef===!0)}function ao(t){return e9e(t,!1)}function vn(t){return e9e(t,!0)}function e9e(t,e){return h0(t)?t:new xJ(t,e)}var xJ=class{constructor(e,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?e:Jo(e),this._value=r?e:mD(e)}get value(){return Jme(this),this._value}set value(e){let r=this.__v_isShallow||db(e)||r8(e);e=r?e:Jo(e),Fm(e,this._rawValue)&&(this._rawValue=e,this._value=r?e:mD(e),pD(this,4,e))}};function OJ(t){pD(t,4,void 0)}function o8(t){return h0(t)?t.value:t}var kft={get:(t,e,r)=>o8(Reflect.get(t,e,r)),set:(t,e,r,n)=>{let o=t[e];return h0(o)&&!h0(r)?(o.value=r,!0):Reflect.set(t,e,r,n)}};function DN(t){return n8(t)?t:new Proxy(t,kft)}var wJ=class{constructor(e,r,n){this._object=e,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){let e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return fft(Jo(this._object),this._key)}},CJ=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}};function BJ(t,e,r){return h0(t)?t:mJ(t)?new CJ(t):ub(t)&&arguments.length>1?Tft(t,e,r):ao(t)}function Tft(t,e,r){let n=t[e];return h0(n)?n:new wJ(t,e,r)}function FJ(t,e){let r=new Set(t.split(","));return e?n=>r.has(n.toLowerCase()):n=>r.has(n)}var cs={},fb=[],L2=()=>{},r9e=()=>!1,IN=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),NJ=t=>t.startsWith("onUpdate:"),vl=Object.assign,_N=(t,e)=>{let r=t.indexOf(e);r>-1&&t.splice(r,1)},Oft=Object.prototype.hasOwnProperty,Fa=(t,e)=>Oft.call(t,e),oa=Array.isArray,n9e=t=>PJ(t)==="[object Map]",o9e=t=>PJ(t)==="[object Set]";var Ai=t=>typeof t=="function",jc=t=>typeof t=="string";var H0=t=>t!==null&&typeof t=="object",RJ=t=>(H0(t)||Ai(t))&&Ai(t.then)&&Ai(t.catch),Bft=Object.prototype.toString,PJ=t=>Bft.call(t);var i9e=t=>PJ(t)==="[object Object]";var hb=FJ(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted");var MN=t=>{let e=Object.create(null);return r=>e[r]||(e[r]=t(r))},Fft=/-(\w)/g,Nu=MN(t=>t.replace(Fft,(e,r)=>r?r.toUpperCase():"")),Nft=/\B([A-Z])/g,vD=MN(t=>t.replace(Nft,"-$1").toLowerCase()),yD=MN(t=>t.charAt(0).toUpperCase()+t.slice(1)),AD=MN(t=>t?`on${yD(t)}`:""),zJ=(t,e)=>!Object.is(t,e),kN=(t,e)=>{for(let r=0;r{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r})},a9e=t=>{let e=parseFloat(t);return isNaN(e)?t:e};var t9e,pb=()=>t9e||(t9e=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function bD(t){if(oa(t)){let e={};for(let r=0;r{if(r){let n=r.split(Pft);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function xD(t){let e="";if(jc(t))e=t;else if(oa(t))for(let r=0;r{var a,s;return(s=(a=i.toString)==null?void 0:a.call(i))!=null?s:JSON.stringify(i)}).join(""),r&&r.proxy,o.map(({vnode:i})=>`at <${tve(r,i.type)}>`).join(` `),o]);else{let i=[`[Vue warn]: ${t}`,...e];o.length&&i.push(` `,...Wft(o)),console.warn(...i)}M5()}function Uft(){let t=ED[ED.length-1];if(!t)return[];let e=[];for(;t;){let r=e[0];r&&r.vnode===t?r.recurseCount++:e.push({vnode:t,recurseCount:0});let n=t.component&&t.component.parent;t=n&&n.vnode}return e}function Wft(t){let e=[];return t.forEach((r,n)=>{e.push(...n===0?[]:[` `],...Gft(r))}),e}function Gft({vnode:t,recurseCount:e}){let r=e>0?`... (${e} recursive calls)`:"",n=t.component?t.component.parent==null:!1,o=` at <${tve(t.component,t.type,n)}`,i=">"+r;return t.props?[o,...$ft(t.props),i]:[o+i]}function $ft(t){let e=[],r=Object.keys(t);return r.slice(0,3).forEach(n=>{e.push(...I9e(n,t[n]))}),r.length>3&&e.push(" ..."),e}function I9e(t,e,r){return jc(e)?(e=JSON.stringify(e),r?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?r?e:[`${t}=${e}`]:h0(e)?(e=I9e(t,Jo(e.value),!0),r?e:[`${t}=Ref<`,e,">"]):Ai(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=Jo(e),r?e:[`${t}=`,e])}function k5(t,e,r,n){try{return n?t(...n):t()}catch(o){HN(o,e,r)}}function Ru(t,e,r,n){if(Ai(t)){let i=k5(t,e,r,n);return i&&RJ(i)&&i.catch(a=>{HN(a,e,r)}),i}let o=[];for(let i=0;i>>1,o=sc[n],i=kD(o);iwf&&sc.splice(e,1)}function qft(t){oa(t)?mb.push(...t):(!i8||!i8.includes(t,t.allowRecurse?Vm+1:Vm))&&mb.push(t),M9e()}function s9e(t,e,r=MD?wf+1:0){for(;rkD(r)-kD(n));if(mb.length=0,i8){i8.push(...e);return}for(i8=e,Vm=0;Vmt.id==null?1/0:t.id,Xft=(t,e)=>{let r=kD(t)-kD(e);if(r===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return r};function T9e(t){QJ=!1,MD=!0,sc.sort(Xft);let e=L2;try{for(wf=0;wfCf.emit(o,...i)),wD=[]):typeof window<"u"&&window.HTMLElement&&!((n=(r=window.navigator)==null?void 0:r.userAgent)!=null&&n.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{O9e(i,e)}),setTimeout(()=>{Cf||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,UJ=!0,wD=[])},3e3)):(UJ=!0,wD=[])}function Jft(t,e){VN("app:init",t,e,{Fragment:Gi,Text:O5,Comment:Pu,Static:_D})}function e6t(t){VN("app:unmount",t)}var t6t=eee("component:added"),B9e=eee("component:updated"),r6t=eee("component:removed"),n6t=t=>{Cf&&typeof Cf.cleanupBuffer=="function"&&!Cf.cleanupBuffer(t)&&r6t(t)};function eee(t){return e=>{VN(t,e.appContext.app,e.uid,e.parent?e.parent.uid:void 0,e)}}function o6t(t,e,r){VN("component:emit",t.appContext.app,t,e,r)}function i6t(t,e,...r){if(t.isUnmounted)return;let n=t.vnode.props||cs,o=r,i=e.startsWith("update:"),a=i&&e.slice(7);if(a&&a in n){let d=`${a==="modelValue"?"model":a}Modifiers`,{number:f,trim:c}=n[d]||cs;c&&(o=r.map(h=>jc(h)?h.trim():h)),f&&(o=r.map(a9e))}__VUE_PROD_DEVTOOLS__&&o6t(t,e,o);let s,l=n[s=AD(e)]||n[s=AD(Nu(e))];!l&&i&&(l=n[s=AD(vD(e))]),l&&Ru(l,t,6,o);let u=n[s+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[s])return;t.emitted[s]=!0,Ru(u,t,6,o)}}function F9e(t,e,r=!1){let n=e.emitsCache,o=n.get(t);if(o!==void 0)return o;let i=t.emits,a={},s=!1;if(__VUE_OPTIONS_API__&&!Ai(t)){let l=u=>{let d=F9e(u,e,!0);d&&(s=!0,vl(a,d))};!r&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!i&&!s?(H0(t)&&n.set(t,null),null):(oa(i)?i.forEach(l=>a[l]=null):vl(a,i),H0(t)&&n.set(t,a),a)}function jN(t,e){return!t||!IN(e)?!1:(e=e.slice(2).replace(/Once$/,""),Fa(t,e[0].toLowerCase()+e.slice(1))||Fa(t,vD(e))||Fa(t,e))}var Uc=null,N9e=null;function PN(t){let e=Uc;return Uc=t,N9e=t&&t.type.__scopeId||null,e}function a6t(t,e=Uc,r){if(!e||t._n)return t;let n=(...o)=>{n._d&&x9e(-1);let i=PN(e),a;try{a=t(...o)}finally{PN(i),n._d&&x9e(1)}return __VUE_PROD_DEVTOOLS__&&B9e(e),a};return n._n=!0,n._c=!0,n._d=!0,n}function LJ(t){let{type:e,vnode:r,proxy:n,withProxy:o,props:i,propsOptions:[a],slots:s,attrs:l,emit:u,render:d,renderCache:f,data:c,setupState:h,ctx:g,inheritAttrs:p}=t,m,v,b=PN(t);try{if(r.shapeFlag&4){let C=o||n,D=C;m=xf(d.call(D,C,f,i,h,c,g)),v=l}else{let C=e;m=xf(C.length>1?C(i,{attrs:l,slots:s,emit:u}):C(i,null)),v=e.props?l:s6t(l)}}catch(C){Z6t.length=0,HN(C,t,1),m=Dt(Pu)}let A=m,y;if(v&&p!==!1){let C=Object.keys(v),{shapeFlag:D}=A;C.length&&D&7&&(a&&C.some(NJ)&&(v=l6t(v,a)),A=V2(A,v))}return r.dirs&&(A=V2(A),A.dirs=A.dirs?A.dirs.concat(r.dirs):r.dirs),r.transition&&(A.transition=r.transition),m=A,PN(b),m}var s6t=t=>{let e;for(let r in t)(r==="class"||r==="style"||IN(r))&&((e||(e={}))[r]=t[r]);return e},l6t=(t,e)=>{let r={};for(let n in t)(!NJ(n)||!(n.slice(9)in e))&&(r[n]=t[n]);return r};function c6t(t,e,r){let{props:n,children:o,component:i}=t,{props:a,children:s,patchFlag:l}=e,u=i.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?l9e(n,a,u):!!a;if(l&8){let d=e.dynamicProps;for(let f=0;ft.__isSuspense;function m6t(t,e){e&&e.pendingBranch?oa(t)?e.effects.push(...t):e.effects.push(t):qft(t)}var v6t=Symbol.for("v-scx"),y6t=()=>{{let t=fa(v6t);return t}};function Ra(t,e){return tee(t,null,e)}var ON={};function uo(t,e,r){return tee(t,e,r)}function tee(t,e,{immediate:r,deep:n,flush:o,once:i,onTrack:a,onTrigger:s}=cs){if(e&&i){let I=e;e=(...k)=>{I(...k),D()}}let l=I=>{Qft("Invalid watch source: ",I,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},u=yl,d=I=>n===!0?I:Qm(I,n===!1?1:void 0),f,c=!1,h=!1;if(h0(t)?(f=()=>t.value,c=db(t)):n8(t)?(f=()=>d(t),c=!0):oa(t)?(h=!0,c=t.some(I=>n8(I)||db(I)),f=()=>t.map(I=>{if(h0(I))return I.value;if(n8(I))return d(I);if(Ai(I))return k5(I,u,2)})):Ai(t)?e?f=()=>k5(t,u,2):f=()=>(g&&g(),Ru(t,u,3,[p])):f=L2,e&&n){let I=f;f=()=>Qm(I())}let g,p=I=>{g=y.onStop=()=>{k5(I,u,4),g=y.onStop=void 0}},m;if($N)if(p=L2,e?r&&Ru(e,u,3,[f(),h?[]:void 0,p]):f(),o==="sync"){let I=y6t();m=I.__watcherHandles||(I.__watcherHandles=[])}else return L2;let v=h?new Array(t.length).fill(ON):ON,b=()=>{if(!(!y.active||!y.dirty))if(e){let I=y.run();(n||c||(h?I.some((k,E)=>zJ(k,v[E])):zJ(I,v)))&&(g&&g(),Ru(e,u,3,[I,v===ON?void 0:h&&v[0]===ON?[]:v,p]),v=I)}else y.run()};b.allowRecurse=!!e;let A;o==="sync"?A=b:o==="post"?A=()=>H2(b,u&&u.suspense):(b.pre=!0,u&&(b.id=u.uid),A=()=>JJ(b));let y=new Pm(f,L2,A),C=EJ(),D=()=>{y.stop(),C&&_N(C.effects,y)};return e?r?b():v=y.run():o==="post"?H2(y.run.bind(y),u&&u.suspense):y.run(),m&&m.push(D),D}function A6t(t,e,r){let n=this.proxy,o=jc(t)?t.includes(".")?P9e(n,t):()=>n[t]:t.bind(n,n),i;Ai(e)?i=e:(i=e.handler,r=e);let a=TD(this),s=tee(o,i.bind(n),r);return a(),s}function P9e(t,e){let r=e.split(".");return()=>{let n=t;for(let o=0;o0){if(r>=e)return t;r++}if(n=n||new Set,n.has(t))return t;if(n.add(t),h0(t))Qm(t.value,e,r,n);else if(oa(t))for(let o=0;o{Qm(o,e,r,n)});else if(i9e(t))for(let o in t)Qm(t[o],e,r,n);return t}function Ab(t,e){if(Uc===null)return t;let r=ZN(Uc)||Uc.proxy,n=t.dirs||(t.dirs=[]);for(let o=0;o{t.isMounted=!0}),us(()=>{t.isUnmounting=!0}),t}var zd=[Function,Array],nee={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:zd,onEnter:zd,onAfterEnter:zd,onEnterCancelled:zd,onBeforeLeave:zd,onLeave:zd,onAfterLeave:zd,onLeaveCancelled:zd,onBeforeAppear:zd,onAppear:zd,onAfterAppear:zd,onAppearCancelled:zd},b6t={name:"BaseTransition",props:nee,setup(t,{slots:e}){let r=zu(),n=ree();return()=>{let o=e.default&&QN(e.default(),!0);if(!o||!o.length)return;let i=o[0];if(o.length>1){let c=!1;for(let h of o)if(h.type!==Pu){i=h,c=!0;break}}let a=Jo(t),{mode:s}=a;if(n.isLeaving)return HJ(i);let l=u9e(i);if(!l)return HJ(i);let u=vb(l,a,n,r);yb(l,u);let d=r.subTree,f=d&&u9e(d);if(f&&f.type!==Pu&&!jm(l,f)){let c=vb(f,a,n,r);if(yb(f,c),s==="out-in")return n.isLeaving=!0,c.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&(r.effect.dirty=!0,r.update())},HJ(i);s==="in-out"&&l.type!==Pu&&(c.delayLeave=(h,g,p)=>{let m=L9e(n,f);m[String(f.key)]=f,h[a8]=()=>{g(),h[a8]=void 0,delete u.delayedLeave},u.delayedLeave=p})}return i}}},z9e=b6t;function L9e(t,e){let{leavingVNodes:r}=t,n=r.get(e.type);return n||(n=Object.create(null),r.set(e.type,n)),n}function vb(t,e,r,n){let{appear:o,mode:i,persisted:a=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:c,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:p,onAppear:m,onAfterAppear:v,onAppearCancelled:b}=e,A=String(t.key),y=L9e(r,t),C=(k,E)=>{k&&Ru(k,n,9,E)},D=(k,E)=>{let T=E[1];C(k,E),oa(k)?k.every(j=>j.length<=1)&&T():k.length<=1&&T()},I={mode:i,persisted:a,beforeEnter(k){let E=s;if(!r.isMounted)if(o)E=p||s;else return;k[a8]&&k[a8](!0);let T=y[A];T&&jm(t,T)&&T.el[a8]&&T.el[a8](),C(E,[k])},enter(k){let E=l,T=u,j=d;if(!r.isMounted)if(o)E=m||l,T=v||u,j=b||d;else return;let O=!1,$=k[BN]=W=>{O||(O=!0,W?C(j,[k]):C(T,[k]),I.delayedLeave&&I.delayedLeave(),k[BN]=void 0)};E?D(E,[k,$]):$()},leave(k,E){let T=String(t.key);if(k[BN]&&k[BN](!0),r.isUnmounting)return E();C(f,[k]);let j=!1,O=k[a8]=$=>{j||(j=!0,E(),$?C(g,[k]):C(h,[k]),k[a8]=void 0,y[T]===t&&delete y[T])};y[T]=t,c?D(c,[k,O]):O()},clone(k){return vb(k,e,r,n)}};return I}function HJ(t){if(UN(t))return t=V2(t),t.children=null,t}function u9e(t){return UN(t)?t.children?t.children[0]:void 0:t}function yb(t,e){t.shapeFlag&6&&t.component?yb(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function QN(t,e=!1,r){let n=[],o=0;for(let i=0;i1)for(let i=0;i!!t.type.__asyncLoader;var UN=t=>t.type.__isKeepAlive;function x6t(t,e){H9e(t,"a",e)}function w6t(t,e){H9e(t,"da",e)}function H9e(t,e,r=yl){let n=t.__wdc||(t.__wdc=()=>{let o=r;for(;o;){if(o.isDeactivated)return;o=o.parent}return t()});if(WN(e,n,r),r){let o=r.parent;for(;o&&o.parent;)UN(o.parent.vnode)&&C6t(n,e,r,o),o=o.parent}}function C6t(t,e,r,n){let o=WN(e,t,n,!0);r3(()=>{_N(n[e],o)},r)}function WN(t,e,r=yl,n=!1){if(r){let o=r[t]||(r[t]=[]),i=e.__weh||(e.__weh=(...a)=>{if(r.isUnmounted)return;_5();let s=TD(r),l=Ru(e,r,t,a);return s(),M5(),l});return n?o.unshift(i):o.push(i),i}}var T5=t=>(e,r=yl)=>(!$N||t==="sp")&&WN(t,(...n)=>e(...n),r),oee=T5("bm"),Fi=T5("m"),iee=T5("bu"),T1=T5("u"),us=T5("bum"),r3=T5("um"),E6t=T5("sp"),S6t=T5("rtg"),D6t=T5("rtc");function I6t(t,e=yl){WN("ec",t,e)}var WJ=t=>t?X9e(t)?ZN(t)||t.proxy:WJ(t.parent):null,SD=vl(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>WJ(t.parent),$root:t=>WJ(t.root),$emit:t=>t.emit,$options:t=>__VUE_OPTIONS_API__?aee(t):t.type,$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,JJ(t.update)}),$nextTick:t=>t.n||(t.n=Na.bind(t.proxy)),$watch:t=>__VUE_OPTIONS_API__?A6t.bind(t):L2});var VJ=(t,e)=>t!==cs&&!t.__isScriptSetup&&Fa(t,e),_6t={get({_:t},e){let{ctx:r,setupState:n,data:o,props:i,accessCache:a,type:s,appContext:l}=t,u;if(e[0]!=="$"){let h=a[e];if(h!==void 0)switch(h){case 1:return n[e];case 2:return o[e];case 4:return r[e];case 3:return i[e]}else{if(VJ(n,e))return a[e]=1,n[e];if(o!==cs&&Fa(o,e))return a[e]=2,o[e];if((u=t.propsOptions[0])&&Fa(u,e))return a[e]=3,i[e];if(r!==cs&&Fa(r,e))return a[e]=4,r[e];(!__VUE_OPTIONS_API__||GJ)&&(a[e]=0)}}let d=SD[e],f,c;if(d)return e==="$attrs"&&Vc(t,"get",e),d(t);if((f=s.__cssModules)&&(f=f[e]))return f;if(r!==cs&&Fa(r,e))return a[e]=4,r[e];if(c=l.config.globalProperties,Fa(c,e))return c[e]},set({_:t},e,r){let{data:n,setupState:o,ctx:i}=t;return VJ(o,e)?(o[e]=r,!0):n!==cs&&Fa(n,e)?(n[e]=r,!0):Fa(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:n,appContext:o,propsOptions:i}},a){let s;return!!r[a]||t!==cs&&Fa(t,a)||VJ(e,a)||(s=i[0])&&Fa(s,a)||Fa(n,a)||Fa(SD,a)||Fa(o.config.globalProperties,a)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:Fa(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};function d9e(t){return oa(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}var GJ=!0;function M6t(t){let e=aee(t),r=t.proxy,n=t.ctx;GJ=!1,e.beforeCreate&&f9e(e.beforeCreate,t,"bc");let{data:o,computed:i,methods:a,watch:s,provide:l,inject:u,created:d,beforeMount:f,mounted:c,beforeUpdate:h,updated:g,activated:p,deactivated:m,beforeDestroy:v,beforeUnmount:b,destroyed:A,unmounted:y,render:C,renderTracked:D,renderTriggered:I,errorCaptured:k,serverPrefetch:E,expose:T,inheritAttrs:j,components:O,directives:$,filters:W}=e;if(u&&k6t(u,n,null),a)for(let q in a){let F=a[q];Ai(F)&&(n[q]=F.bind(r))}if(o){let q=o.call(r,r);H0(q)&&(t.data=s1(q))}if(GJ=!0,i)for(let q in i){let F=i[q],z=Ai(F)?F.bind(r,r):Ai(F.get)?F.get.bind(r,r):L2,L=!Ai(F)&&Ai(F.set)?F.set.bind(r):L2,N=Ut({get:z,set:L});Object.defineProperty(n,q,{enumerable:!0,configurable:!0,get:()=>N.value,set:K=>N.value=K})}if(s)for(let q in s)V9e(s[q],n,r,q);if(l){let q=Ai(l)?l.call(r):l;Reflect.ownKeys(q).forEach(F=>{l1(F,q[F])})}d&&f9e(d,t,"c");function B(q,F){oa(F)?F.forEach(z=>q(z.bind(r))):F&&q(F.bind(r))}if(B(oee,f),B(Fi,c),B(iee,h),B(T1,g),B(x6t,p),B(w6t,m),B(I6t,k),B(D6t,D),B(S6t,I),B(us,b),B(r3,y),B(E6t,E),oa(T))if(T.length){let q=t.exposed||(t.exposed={});T.forEach(F=>{Object.defineProperty(q,F,{get:()=>r[F],set:z=>r[F]=z})})}else t.exposed||(t.exposed={});C&&t.render===L2&&(t.render=C),j!=null&&(t.inheritAttrs=j),O&&(t.components=O),$&&(t.directives=$)}function k6t(t,e,r=L2){oa(t)&&(t=$J(t));for(let n in t){let o=t[n],i;H0(o)?"default"in o?i=fa(o.from||n,o.default,!0):i=fa(o.from||n):i=fa(o),h0(i)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):e[n]=i}}function f9e(t,e,r){Ru(oa(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,r)}function V9e(t,e,r,n){let o=n.includes(".")?P9e(r,n):()=>r[n];if(jc(t)){let i=e[t];Ai(i)&&uo(o,i)}else if(Ai(t))uo(o,t.bind(r));else if(H0(t))if(oa(t))t.forEach(i=>V9e(i,e,r,n));else{let i=Ai(t.handler)?t.handler.bind(r):e[t.handler];Ai(i)&&uo(o,i,t)}}function aee(t){let e=t.type,{mixins:r,extends:n}=e,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=t.appContext,s=i.get(e),l;return s?l=s:!o.length&&!r&&!n?l=e:(l={},o.length&&o.forEach(u=>zN(l,u,a,!0)),zN(l,e,a)),H0(e)&&i.set(e,l),l}function zN(t,e,r,n=!1){let{mixins:o,extends:i}=e;i&&zN(t,i,r,!0),o&&o.forEach(a=>zN(t,a,r,!0));for(let a in e)if(!(n&&a==="expose")){let s=T6t[a]||r&&r[a];t[a]=s?s(t[a],e[a]):e[a]}return t}var T6t={data:h9e,props:p9e,emits:p9e,methods:CD,computed:CD,beforeCreate:Qc,created:Qc,beforeMount:Qc,mounted:Qc,beforeUpdate:Qc,updated:Qc,beforeDestroy:Qc,beforeUnmount:Qc,destroyed:Qc,unmounted:Qc,activated:Qc,deactivated:Qc,errorCaptured:Qc,serverPrefetch:Qc,components:CD,directives:CD,watch:B6t,provide:h9e,inject:O6t};function h9e(t,e){return e?t?function(){return vl(Ai(t)?t.call(this,this):t,Ai(e)?e.call(this,this):e)}:e:t}function O6t(t,e){return CD($J(t),$J(e))}function $J(t){if(oa(t)){let e={};for(let r=0;r1)return r&&Ai(e)?e.call(n&&n.proxy):e}}function R6t(t,e,r,n=!1){let o={},i={};TN(i,GN,1),t.propsDefaults=Object.create(null),Q9e(t,e,o,i);for(let a in t.propsOptions[0])a in o||(o[a]=void 0);r?t.props=n?o:zm(o):t.type.props?t.props=o:t.props=i,t.attrs=i}function P6t(t,e,r,n){let{props:o,attrs:i,vnode:{patchFlag:a}}=t,s=Jo(o),[l]=t.propsOptions,u=!1;if((n||a>0)&&!(a&16)){if(a&8){let d=t.vnode.dynamicProps;for(let f=0;f{l=!0;let[c,h]=U9e(f,e,!0);vl(a,c),h&&s.push(...h)};!r&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}if(!i&&!l)return H0(t)&&n.set(t,fb),fb;if(oa(i))for(let d=0;d-1,h[1]=p<0||g-1||Fa(h,"default"))&&s.push(f)}}}let u=[a,s];return H0(t)&&n.set(t,u),u}function g9e(t){return t[0]!=="$"&&!hb(t)}function m9e(t){return t===null?"null":typeof t=="function"?t.name||"":typeof t=="object"&&t.constructor&&t.constructor.name||""}function v9e(t,e){return m9e(t)===m9e(e)}function y9e(t,e){return oa(e)?e.findIndex(r=>v9e(r,t)):Ai(e)&&v9e(e,t)?0:-1}var W9e=t=>t[0]==="_"||t==="$stable",see=t=>oa(t)?t.map(xf):[xf(t)],z6t=(t,e,r)=>{if(e._n)return e;let n=a6t((...o)=>see(e(...o)),r);return n._c=!1,n},G9e=(t,e,r)=>{let n=t._ctx;for(let o in t){if(W9e(o))continue;let i=t[o];if(Ai(i))e[o]=z6t(o,i,n);else if(i!=null){let a=see(i);e[o]=()=>a}}},$9e=(t,e)=>{let r=see(e);t.slots.default=()=>r},L6t=(t,e)=>{if(t.vnode.shapeFlag&32){let r=e._;r?(t.slots=Jo(e),TN(e,"_",r)):G9e(e,t.slots={})}else t.slots={},e&&$9e(t,e);TN(t.slots,GN,1)},H6t=(t,e,r)=>{let{vnode:n,slots:o}=t,i=!0,a=cs;if(n.shapeFlag&32){let s=e._;s?r&&s===1?i=!1:(vl(o,e),!r&&s===1&&delete o._):(i=!e.$stable,G9e(e,o)),a=e}else e&&($9e(t,e),a={default:1});if(i)for(let s in o)!W9e(s)&&a[s]==null&&delete o[s]};function KJ(t,e,r,n,o=!1){if(oa(t)){t.forEach((c,h)=>KJ(c,e&&(oa(e)?e[h]:e),r,n,o));return}if(NN(n)&&!o)return;let i=n.shapeFlag&4?ZN(n.component)||n.component.proxy:n.el,a=o?null:i,{i:s,r:l}=t,u=e&&e.r,d=s.refs===cs?s.refs={}:s.refs,f=s.setupState;if(u!=null&&u!==l&&(jc(u)?(d[u]=null,Fa(f,u)&&(f[u]=null)):h0(u)&&(u.value=null)),Ai(l))k5(l,s,12,[a,d]);else{let c=jc(l),h=h0(l);if(c||h){let g=()=>{if(t.f){let p=c?Fa(f,l)?f[l]:d[l]:l.value;o?oa(p)&&_N(p,i):oa(p)?p.includes(i)||p.push(i):c?(d[l]=[i],Fa(f,l)&&(f[l]=d[l])):(l.value=[i],t.k&&(d[t.k]=l.value))}else c?(d[l]=a,Fa(f,l)&&(f[l]=a)):h&&(l.value=a,t.k&&(d[t.k]=a))};a?(g.id=-1,H2(g,r)):g()}}}function V6t(){let t=[];typeof __VUE_OPTIONS_API__!="boolean"&&(pb().__VUE_OPTIONS_API__=!0),typeof __VUE_PROD_DEVTOOLS__!="boolean"&&(pb().__VUE_PROD_DEVTOOLS__=!1),typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(pb().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}var H2=m6t;function Z9e(t){return j6t(t)}function j6t(t,e){V6t();let r=pb();r.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&O9e(r.__VUE_DEVTOOLS_GLOBAL_HOOK__,r);let{insert:n,remove:o,patchProp:i,createElement:a,createText:s,createComment:l,setText:u,setElementText:d,parentNode:f,nextSibling:c,setScopeId:h=L2,insertStaticContent:g}=t,p=(Z,oe,pe,xe=null,ee=null,de=null,ce=void 0,ne=null,ue=!!oe.dynamicChildren)=>{if(Z===oe)return;Z&&!jm(Z,oe)&&(xe=Q(Z),H(Z,ee,de,!0),Z=null),oe.patchFlag===-2&&(ue=!1,oe.dynamicChildren=null);let{type:ve,ref:De,shapeFlag:_e}=oe;switch(ve){case O5:m(Z,oe,pe,xe);break;case Pu:v(Z,oe,pe,xe);break;case _D:Z==null&&b(oe,pe,xe,ce);break;case Gi:$(Z,oe,pe,xe,ee,de,ce,ne,ue);break;default:_e&1?D(Z,oe,pe,xe,ee,de,ce,ne,ue):_e&6?W(Z,oe,pe,xe,ee,de,ce,ne,ue):(_e&64||_e&128)&&ve.process(Z,oe,pe,xe,ee,de,ce,ne,ue,le)}De!=null&&ee&&KJ(De,Z&&Z.ref,de,oe||Z,!oe)},m=(Z,oe,pe,xe)=>{if(Z==null)n(oe.el=s(oe.children),pe,xe);else{let ee=oe.el=Z.el;oe.children!==Z.children&&u(ee,oe.children)}},v=(Z,oe,pe,xe)=>{Z==null?n(oe.el=l(oe.children||""),pe,xe):oe.el=Z.el},b=(Z,oe,pe,xe)=>{[Z.el,Z.anchor]=g(Z.children,oe,pe,xe,Z.el,Z.anchor)},A=(Z,oe,pe,xe)=>{if(oe.children!==Z.children){let ee=c(Z.anchor);C(Z),[oe.el,oe.anchor]=g(oe.children,pe,ee,xe)}else oe.el=Z.el,oe.anchor=Z.anchor},y=({el:Z,anchor:oe},pe,xe)=>{let ee;for(;Z&&Z!==oe;)ee=c(Z),n(Z,pe,xe),Z=ee;n(oe,pe,xe)},C=({el:Z,anchor:oe})=>{let pe;for(;Z&&Z!==oe;)pe=c(Z),o(Z),Z=pe;o(oe)},D=(Z,oe,pe,xe,ee,de,ce,ne,ue)=>{oe.type==="svg"?ce="svg":oe.type==="math"&&(ce="mathml"),Z==null?I(oe,pe,xe,ee,de,ce,ne,ue):T(Z,oe,ee,de,ce,ne,ue)},I=(Z,oe,pe,xe,ee,de,ce,ne)=>{let ue,ve,{props:De,shapeFlag:_e,transition:Me,dirs:Ie}=Z;if(ue=Z.el=a(Z.type,de,De&&De.is,De),_e&8?d(ue,Z.children):_e&16&&E(Z.children,ue,null,xe,ee,jJ(Z,de),ce,ne),Ie&&Lm(Z,null,xe,"created"),k(ue,Z,Z.scopeId,ce,xe),De){for(let He in De)He!=="value"&&!hb(He)&&i(ue,He,null,De[He],de,Z.children,xe,ee,V);"value"in De&&i(ue,"value",null,De.value,de),(ve=De.onVnodeBeforeMount)&&bf(ve,xe,Z)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(ue,"__vnode",{value:Z,enumerable:!1}),Object.defineProperty(ue,"__vueParentComponent",{value:xe,enumerable:!1})),Ie&&Lm(Z,null,xe,"beforeMount");let ke=Q6t(ee,Me);ke&&Me.beforeEnter(ue),n(ue,oe,pe),((ve=De&&De.onVnodeMounted)||ke||Ie)&&H2(()=>{ve&&bf(ve,xe,Z),ke&&Me.enter(ue),Ie&&Lm(Z,null,xe,"mounted")},ee)},k=(Z,oe,pe,xe,ee)=>{if(pe&&h(Z,pe),xe)for(let de=0;de{for(let ve=ue;ve{let ne=oe.el=Z.el,{patchFlag:ue,dynamicChildren:ve,dirs:De}=oe;ue|=Z.patchFlag&16;let _e=Z.props||cs,Me=oe.props||cs,Ie;if(pe&&Hm(pe,!1),(Ie=Me.onVnodeBeforeUpdate)&&bf(Ie,pe,oe,Z),De&&Lm(oe,Z,pe,"beforeUpdate"),pe&&Hm(pe,!0),ve?j(Z.dynamicChildren,ve,ne,pe,xe,jJ(oe,ee),de):ce||z(Z,oe,ne,null,pe,xe,jJ(oe,ee),de,!1),ue>0){if(ue&16)O(ne,oe,_e,Me,pe,xe,ee);else if(ue&2&&_e.class!==Me.class&&i(ne,"class",null,Me.class,ee),ue&4&&i(ne,"style",_e.style,Me.style,ee),ue&8){let ke=oe.dynamicProps;for(let He=0;He{Ie&&bf(Ie,pe,oe,Z),De&&Lm(oe,Z,pe,"updated")},xe)},j=(Z,oe,pe,xe,ee,de,ce)=>{for(let ne=0;ne{if(pe!==xe){if(pe!==cs)for(let ne in pe)!hb(ne)&&!(ne in xe)&&i(Z,ne,pe[ne],null,ce,oe.children,ee,de,V);for(let ne in xe){if(hb(ne))continue;let ue=xe[ne],ve=pe[ne];ue!==ve&&ne!=="value"&&i(Z,ne,ve,ue,ce,oe.children,ee,de,V)}"value"in xe&&i(Z,"value",pe.value,xe.value,ce)}},$=(Z,oe,pe,xe,ee,de,ce,ne,ue)=>{let ve=oe.el=Z?Z.el:s(""),De=oe.anchor=Z?Z.anchor:s(""),{patchFlag:_e,dynamicChildren:Me,slotScopeIds:Ie}=oe;Ie&&(ne=ne?ne.concat(Ie):Ie),Z==null?(n(ve,pe,xe),n(De,pe,xe),E(oe.children||[],pe,De,ee,de,ce,ne,ue)):_e>0&&_e&64&&Me&&Z.dynamicChildren?(j(Z.dynamicChildren,Me,pe,ee,de,ce,ne),(oe.key!=null||ee&&oe===ee.subTree)&&lee(Z,oe,!0)):z(Z,oe,pe,De,ee,de,ce,ne,ue)},W=(Z,oe,pe,xe,ee,de,ce,ne,ue)=>{oe.slotScopeIds=ne,Z==null?oe.shapeFlag&512?ee.ctx.activate(oe,pe,xe,ce,ue):Y(oe,pe,xe,ee,de,ce,ue):B(Z,oe,ue)},Y=(Z,oe,pe,xe,ee,de,ce)=>{let ne=Z.component=r5t(Z,xe,ee);if(UN(Z)&&(ne.ctx.renderer=le),n5t(ne),ne.asyncDep){if(ee&&ee.registerDep(ne,q),!Z.el){let ue=ne.subTree=Dt(Pu);v(null,ue,oe,pe)}}else q(ne,Z,oe,pe,ee,de,ce)},B=(Z,oe,pe)=>{let xe=oe.component=Z.component;if(c6t(Z,oe,pe))if(xe.asyncDep&&!xe.asyncResolved){F(xe,oe,pe);return}else xe.next=oe,Yft(xe.update),xe.effect.dirty=!0,xe.update();else oe.el=Z.el,xe.vnode=oe},q=(Z,oe,pe,xe,ee,de,ce)=>{let ne=()=>{if(Z.isMounted){let{next:De,bu:_e,u:Me,parent:Ie,vnode:ke}=Z;{let we=K9e(Z);if(we){De&&(De.el=ke.el,F(Z,De,ce)),we.asyncDep.then(()=>{Z.isUnmounted||ne()});return}}let He=De,je;Hm(Z,!1),De?(De.el=ke.el,F(Z,De,ce)):De=ke,_e&&kN(_e),(je=De.props&&De.props.onVnodeBeforeUpdate)&&bf(je,Ie,De,ke),Hm(Z,!0);let ye=LJ(Z),Oe=Z.subTree;Z.subTree=ye,p(Oe,ye,f(Oe.el),Q(Oe),Z,ee,de),De.el=ye.el,He===null&&u6t(Z,ye.el),Me&&H2(Me,ee),(je=De.props&&De.props.onVnodeUpdated)&&H2(()=>bf(je,Ie,De,ke),ee),__VUE_PROD_DEVTOOLS__&&B9e(Z)}else{let De,{el:_e,props:Me}=oe,{bm:Ie,m:ke,parent:He}=Z,je=NN(oe);if(Hm(Z,!1),Ie&&kN(Ie),!je&&(De=Me&&Me.onVnodeBeforeMount)&&bf(De,He,oe),Hm(Z,!0),_e&&ae){let ye=()=>{Z.subTree=LJ(Z),ae(_e,Z.subTree,Z,ee,null)};je?oe.type.__asyncLoader().then(()=>!Z.isUnmounted&&ye()):ye()}else{let ye=Z.subTree=LJ(Z);p(null,ye,pe,xe,Z,ee,de),oe.el=ye.el}if(ke&&H2(ke,ee),!je&&(De=Me&&Me.onVnodeMounted)){let ye=oe;H2(()=>bf(De,He,ye),ee)}(oe.shapeFlag&256||He&&NN(He.vnode)&&He.vnode.shapeFlag&256)&&Z.a&&H2(Z.a,ee),Z.isMounted=!0,__VUE_PROD_DEVTOOLS__&&t6t(Z),oe=pe=xe=null}},ue=Z.effect=new Pm(ne,L2,()=>JJ(ve),Z.scope),ve=Z.update=()=>{ue.dirty&&ue.run()};ve.id=Z.uid,Hm(Z,!0),ve()},F=(Z,oe,pe)=>{oe.component=Z;let xe=Z.vnode.props;Z.vnode=oe,Z.next=null,P6t(Z,oe.props,xe,pe),H6t(Z,oe.children,pe),_5(),s9e(Z),M5()},z=(Z,oe,pe,xe,ee,de,ce,ne,ue=!1)=>{let ve=Z&&Z.children,De=Z?Z.shapeFlag:0,_e=oe.children,{patchFlag:Me,shapeFlag:Ie}=oe;if(Me>0){if(Me&128){N(ve,_e,pe,xe,ee,de,ce,ne,ue);return}else if(Me&256){L(ve,_e,pe,xe,ee,de,ce,ne,ue);return}}Ie&8?(De&16&&V(ve,ee,de),_e!==ve&&d(pe,_e)):De&16?Ie&16?N(ve,_e,pe,xe,ee,de,ce,ne,ue):V(ve,ee,de,!0):(De&8&&d(pe,""),Ie&16&&E(_e,pe,xe,ee,de,ce,ne,ue))},L=(Z,oe,pe,xe,ee,de,ce,ne,ue)=>{Z=Z||fb,oe=oe||fb;let ve=Z.length,De=oe.length,_e=Math.min(ve,De),Me;for(Me=0;Me<_e;Me++){let Ie=oe[Me]=ue?s8(oe[Me]):xf(oe[Me]);p(Z[Me],Ie,pe,null,ee,de,ce,ne,ue)}ve>De?V(Z,ee,de,!0,!1,_e):E(oe,pe,xe,ee,de,ce,ne,ue,_e)},N=(Z,oe,pe,xe,ee,de,ce,ne,ue)=>{let ve=0,De=oe.length,_e=Z.length-1,Me=De-1;for(;ve<=_e&&ve<=Me;){let Ie=Z[ve],ke=oe[ve]=ue?s8(oe[ve]):xf(oe[ve]);if(jm(Ie,ke))p(Ie,ke,pe,null,ee,de,ce,ne,ue);else break;ve++}for(;ve<=_e&&ve<=Me;){let Ie=Z[_e],ke=oe[Me]=ue?s8(oe[Me]):xf(oe[Me]);if(jm(Ie,ke))p(Ie,ke,pe,null,ee,de,ce,ne,ue);else break;_e--,Me--}if(ve>_e){if(ve<=Me){let Ie=Me+1,ke=IeMe)for(;ve<=_e;)H(Z[ve],ee,de,!0),ve++;else{let Ie=ve,ke=ve,He=new Map;for(ve=ke;ve<=Me;ve++){let fe=oe[ve]=ue?s8(oe[ve]):xf(oe[ve]);fe.key!=null&&He.set(fe.key,ve)}let je,ye=0,Oe=Me-ke+1,we=!1,R=0,G=new Array(Oe);for(ve=0;ve=Oe){H(fe,ee,de,!0);continue}let Ee;if(fe.key!=null)Ee=He.get(fe.key);else for(je=ke;je<=Me;je++)if(G[je-ke]===0&&jm(fe,oe[je])){Ee=je;break}Ee===void 0?H(fe,ee,de,!0):(G[Ee-ke]=ve+1,Ee>=R?R=Ee:we=!0,p(fe,oe[Ee],pe,null,ee,de,ce,ne,ue),ye++)}let re=we?U6t(G):fb;for(je=re.length-1,ve=Oe-1;ve>=0;ve--){let fe=ke+ve,Ee=oe[fe],Ae=fe+1{let{el:de,type:ce,transition:ne,children:ue,shapeFlag:ve}=Z;if(ve&6){K(Z.component.subTree,oe,pe,xe);return}if(ve&128){Z.suspense.move(oe,pe,xe);return}if(ve&64){ce.move(Z,oe,pe,le);return}if(ce===Gi){n(de,oe,pe);for(let _e=0;_ene.enter(de),ee);else{let{leave:_e,delayLeave:Me,afterLeave:Ie}=ne,ke=()=>n(de,oe,pe),He=()=>{_e(de,()=>{ke(),Ie&&Ie()})};Me?Me(de,ke,He):He()}else n(de,oe,pe)},H=(Z,oe,pe,xe=!1,ee=!1)=>{let{type:de,props:ce,ref:ne,children:ue,dynamicChildren:ve,shapeFlag:De,patchFlag:_e,dirs:Me}=Z;if(ne!=null&&KJ(ne,null,pe,Z,!0),De&256){oe.ctx.deactivate(Z);return}let Ie=De&1&&Me,ke=!NN(Z),He;if(ke&&(He=ce&&ce.onVnodeBeforeUnmount)&&bf(He,oe,Z),De&6)te(Z.component,pe,xe);else{if(De&128){Z.suspense.unmount(pe,xe);return}Ie&&Lm(Z,null,oe,"beforeUnmount"),De&64?Z.type.remove(Z,oe,pe,ee,le,xe):ve&&(de!==Gi||_e>0&&_e&64)?V(ve,oe,pe,!1,!0):(de===Gi&&_e&384||!ee&&De&16)&&V(ue,oe,pe),xe&&P(Z)}(ke&&(He=ce&&ce.onVnodeUnmounted)||Ie)&&H2(()=>{He&&bf(He,oe,Z),Ie&&Lm(Z,null,oe,"unmounted")},pe)},P=Z=>{let{type:oe,el:pe,anchor:xe,transition:ee}=Z;if(oe===Gi){x(pe,xe);return}if(oe===_D){C(Z);return}let de=()=>{o(pe),ee&&!ee.persisted&&ee.afterLeave&&ee.afterLeave()};if(Z.shapeFlag&1&&ee&&!ee.persisted){let{leave:ce,delayLeave:ne}=ee,ue=()=>ce(pe,de);ne?ne(Z.el,de,ue):ue()}else de()},x=(Z,oe)=>{let pe;for(;Z!==oe;)pe=c(Z),o(Z),Z=pe;o(oe)},te=(Z,oe,pe)=>{let{bum:xe,scope:ee,update:de,subTree:ce,um:ne}=Z;xe&&kN(xe),ee.stop(),de&&(de.active=!1,H(ce,Z,oe,pe)),ne&&H2(ne,oe),H2(()=>{Z.isUnmounted=!0},oe),oe&&oe.pendingBranch&&!oe.isUnmounted&&Z.asyncDep&&!Z.asyncResolved&&Z.suspenseId===oe.pendingId&&(oe.deps--,oe.deps===0&&oe.resolve()),__VUE_PROD_DEVTOOLS__&&n6t(Z)},V=(Z,oe,pe,xe=!1,ee=!1,de=0)=>{for(let ce=de;ceZ.shapeFlag&6?Q(Z.component.subTree):Z.shapeFlag&128?Z.suspense.next():c(Z.anchor||Z.el),U=!1,X=(Z,oe,pe)=>{Z==null?oe._vnode&&H(oe._vnode,null,null,!0):p(oe._vnode||null,Z,oe,null,null,null,pe),U||(U=!0,s9e(),k9e(),U=!1),oe._vnode=Z},le={p,um:H,m:K,r:P,mt:Y,mc:E,pc:z,pbc:j,n:Q,o:t},se,ae;return e&&([se,ae]=e(le)),{render:X,hydrate:se,createApp:N6t(X,se)}}function jJ({type:t,props:e},r){return r==="svg"&&t==="foreignObject"||r==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:r}function Hm({effect:t,update:e},r){t.allowRecurse=e.allowRecurse=r}function Q6t(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function lee(t,e,r=!1){let n=t.children,o=e.children;if(oa(n)&&oa(o))for(let i=0;i>1,t[r[s]]0&&(e[n]=r[i-1]),r[i]=n)}}for(i=r.length,a=r[i-1];i-- >0;)r[i]=a,a=e[a];return r}function K9e(t){let e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:K9e(e)}var W6t=t=>t.__isTeleport,ID=t=>t&&(t.disabled||t.disabled===""),A9e=t=>typeof SVGElement<"u"&&t instanceof SVGElement,b9e=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,YJ=(t,e)=>{let r=t&&t.to;if(jc(r))if(e){let n=e(r);return n}else return null;else return r},G6t={name:"Teleport",__isTeleport:!0,process(t,e,r,n,o,i,a,s,l,u){let{mc:d,pc:f,pbc:c,o:{insert:h,querySelector:g,createText:p,createComment:m}}=u,v=ID(e.props),{shapeFlag:b,children:A,dynamicChildren:y}=e;if(t==null){let C=e.el=p(""),D=e.anchor=p("");h(C,r,n),h(D,r,n);let I=e.target=YJ(e.props,g),k=e.targetAnchor=p("");I&&(h(k,I),a==="svg"||A9e(I)?a="svg":(a==="mathml"||b9e(I))&&(a="mathml"));let E=(T,j)=>{b&16&&d(A,T,j,o,i,a,s,l)};v?E(r,D):I&&E(I,k)}else{e.el=t.el;let C=e.anchor=t.anchor,D=e.target=t.target,I=e.targetAnchor=t.targetAnchor,k=ID(t.props),E=k?r:D,T=k?C:I;if(a==="svg"||A9e(D)?a="svg":(a==="mathml"||b9e(D))&&(a="mathml"),y?(c(t.dynamicChildren,y,E,o,i,a,s),lee(t,e,!0)):l||f(t,e,E,T,o,i,a,s,!1),v)k?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):FN(e,r,C,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){let j=e.target=YJ(e.props,g);j&&FN(e,j,null,u,0)}else k&&FN(e,D,I,u,1)}Y9e(e)},remove(t,e,r,n,{um:o,o:{remove:i}},a){let{shapeFlag:s,children:l,anchor:u,targetAnchor:d,target:f,props:c}=t;if(f&&i(d),a&&i(u),s&16){let h=a||!ID(c);for(let g=0;gt??null,RN=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?jc(t)||h0(t)||Ai(t)?{i:Uc,r:t,k:e,f:!!r}:t:null);function K6t(t,e=null,r=null,n=0,o=null,i=t===Gi?0:1,a=!1,s=!1){let l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&q9e(e),ref:e&&RN(e),scopeId:N9e,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Uc};return s?(uee(l,r),i&128&&t.normalize(l)):r&&(l.shapeFlag|=jc(r)?8:16),cee>0&&!a&&gb&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&gb.push(l),l}var Dt=Y6t;function Y6t(t,e=null,r=null,n=0,o=null,i=!1){if((!t||t===h6t)&&(t=Pu),Ef(t)){let s=V2(t,e,!0);return r&&uee(s,r),cee>0&&!i&&gb&&(s.shapeFlag&6?gb[gb.indexOf(t)]=s:gb.push(s)),s.patchFlag|=-2,s}if(c5t(t)&&(t=t.__vccOpts),e){e=q6t(e);let{class:s,style:l}=e;s&&!jc(s)&&(e.class=xD(s)),H0(l)&&(EN(l)&&!oa(l)&&(l=vl({},l)),e.style=bD(l))}let a=jc(t)?1:g6t(t)?128:W6t(t)?64:H0(t)?4:Ai(t)?2:0;return K6t(t,e,r,n,o,a,i,!0)}function q6t(t){return t?EN(t)||GN in t?vl({},t):t:null}function V2(t,e,r=!1){let{props:n,ref:o,patchFlag:i,children:a}=t,s=e?J6t(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:s,key:s&&q9e(s),ref:e&&e.ref?r&&o?oa(o)?o.concat(RN(e)):[o,RN(e)]:RN(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Gi?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&V2(t.ssContent),ssFallback:t.ssFallback&&V2(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function X6t(t=" ",e=0){return Dt(O5,null,t,e)}function xf(t){return t==null||typeof t=="boolean"?Dt(Pu):oa(t)?Dt(Gi,null,t.slice()):typeof t=="object"?s8(t):Dt(O5,null,String(t))}function s8(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:V2(t)}function uee(t,e){let r=0,{shapeFlag:n}=t;if(e==null)e=null;else if(oa(e))r=16;else if(typeof e=="object")if(n&65){let o=e.default;o&&(o._c&&(o._d=!1),uee(t,o()),o._c&&(o._d=!0));return}else{r=32;let o=e._;!o&&!(GN in e)?e._ctx=Uc:o===3&&Uc&&(Uc.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Ai(e)?(e={default:e,_ctx:Uc},r=32):(e=String(e),n&64?(r=16,e=[X6t(e)]):r=8);t.children=e,t.shapeFlag|=r}function J6t(...t){let e={};for(let r=0;ryl||Uc,LN,qJ;{let t=pb(),e=(r,n)=>{let o;return(o=t[r])||(o=t[r]=[]),o.push(n),i=>{o.length>1?o.forEach(a=>a(i)):o[0](i)}};LN=e("__VUE_INSTANCE_SETTERS__",r=>yl=r),qJ=e("__VUE_SSR_SETTERS__",r=>$N=r)}var TD=t=>{let e=yl;return LN(t),t.scope.on(),()=>{t.scope.off(),LN(e)}},w9e=()=>{yl&&yl.scope.off(),LN(null)};function X9e(t){return t.vnode.shapeFlag&4}var $N=!1;function n5t(t,e=!1){e&&qJ(e);let{props:r,children:n}=t.vnode,o=X9e(t);R6t(t,r,o,e),L6t(t,n);let i=o?o5t(t,e):void 0;return e&&qJ(!1),i}function o5t(t,e){var r;let n=t.type;t.accessCache=Object.create(null),t.proxy=SN(new Proxy(t.ctx,_6t));let{setup:o}=n;if(o){let i=t.setupContext=o.length>1?a5t(t):null,a=TD(t);_5();let s=k5(o,t,0,[t.props,i]);if(M5(),a(),RJ(s)){if(s.then(w9e,w9e),e)return s.then(l=>{C9e(t,l,e)}).catch(l=>{HN(l,t,0)});t.asyncDep=s}else C9e(t,s,e)}else J9e(t,e)}function C9e(t,e,r){Ai(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:H0(e)&&(__VUE_PROD_DEVTOOLS__&&(t.devtoolsRawSetupState=e),t.setupState=DN(e)),J9e(t,r)}var E9e,S9e;function J9e(t,e,r){let n=t.type;if(!t.render){if(!e&&E9e&&!n.render){let o=n.template||aee(t).template;if(o){let{isCustomElement:i,compilerOptions:a}=t.appContext.config,{delimiters:s,compilerOptions:l}=n,u=vl(vl({isCustomElement:i,delimiters:s},a),l);n.render=E9e(o,u)}}t.render=n.render||L2,S9e&&S9e(t)}if(__VUE_OPTIONS_API__){let o=TD(t);_5();try{M6t(t)}finally{M5(),o()}}}function i5t(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,r){return Vc(t,"get","$attrs"),e[r]}}))}function a5t(t){let e=r=>{t.exposed=r||{}};return{get attrs(){return i5t(t)},slots:t.slots,emit:t.emit,expose:e}}function ZN(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(DN(SN(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in SD)return SD[r](t)},has(e,r){return r in e||r in SD}}))}var s5t=/(?:^|[-_])(\w)/g,l5t=t=>t.replace(s5t,e=>e.toUpperCase()).replace(/[-_]/g,"");function eve(t,e=!0){return Ai(t)?t.displayName||t.name:t.name||e&&t.__name}function tve(t,e,r=!1){let n=eve(e);if(!n&&e.__file){let o=e.__file.match(/([^/\\]+)\.\w+$/);o&&(n=o[1])}if(!n&&t&&t.parent){let o=i=>{for(let a in i)if(i[a]===e)return a};n=o(t.components||t.parent.type.components)||o(t.appContext.components)}return n?l5t(n):r?"App":"Anonymous"}function c5t(t){return Ai(t)&&"__vccOpts"in t}var Ut=(t,e)=>Xme(t,e,$N);function Ma(t,e,r){let n=arguments.length;return n===2?H0(e)&&!oa(e)?Ef(e)?Dt(t,null,[e]):Dt(t,e):Dt(t,null,e):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Ef(r)&&(r=[r]),Dt(t,e,r))}var D9e="3.4.21";function rve(t,e){let r=new Set(t.split(","));return e?n=>r.has(n.toLowerCase()):n=>r.has(n)}var nve=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),ove=t=>t.startsWith("onUpdate:"),OD=Object.assign;var BD=Array.isArray;var dee=t=>typeof t=="function",xb=t=>typeof t=="string";var ive=t=>t!==null&&typeof t=="object";var KN=t=>{let e=Object.create(null);return r=>e[r]||(e[r]=t(r))},u5t=/-(\w)/g,d5t=KN(t=>t.replace(u5t,(e,r)=>r?r.toUpperCase():"")),f5t=/\B([A-Z])/g,fee=KN(t=>t.replace(f5t,"-$1").toLowerCase()),hee=KN(t=>t.charAt(0).toUpperCase()+t.slice(1)),axr=KN(t=>t?`on${hee(t)}`:"");var ave=t=>{let e=xb(t)?Number(t):NaN;return isNaN(e)?t:e};var sve="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",lve=rve(sve),sxr=rve(sve+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function pee(t){return!!t||t===""}var h5t="http://www.w3.org/2000/svg",p5t="http://www.w3.org/1998/Math/MathML",u8=typeof document<"u"?document:null,cve=u8&&u8.createElement("template"),g5t={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{let e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,n)=>{let o=e==="svg"?u8.createElementNS(h5t,t):e==="mathml"?u8.createElementNS(p5t,t):u8.createElement(t,r?{is:r}:void 0);return t==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:t=>u8.createTextNode(t),createComment:t=>u8.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>u8.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,n,o,i){let a=r?r.previousSibling:e.lastChild;if(o&&(o===i||o.nextSibling))for(;e.insertBefore(o.cloneNode(!0),r),!(o===i||!(o=o.nextSibling)););else{cve.innerHTML=n==="svg"?`${t}`:n==="mathml"?`${t}`:t;let s=cve.content;if(n==="svg"||n==="mathml"){let l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}e.insertBefore(s,r)}return[a?a.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}},l8="transition",FD="animation",wb=Symbol("_vtc"),V0=(t,{slots:e})=>Ma(z9e,Eve(t),e);V0.displayName="Transition";var Cve={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},m5t=V0.props=OD({},nee,Cve),Um=(t,e=[])=>{BD(t)?t.forEach(r=>r(...e)):t&&t(...e)},uve=t=>t?BD(t)?t.some(e=>e.length>1):t.length>1:!1;function Eve(t){let e={};for(let O in t)O in Cve||(e[O]=t[O]);if(t.css===!1)return e;let{name:r="v",type:n,duration:o,enterFromClass:i=`${r}-enter-from`,enterActiveClass:a=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=i,appearActiveClass:u=a,appearToClass:d=s,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:c=`${r}-leave-active`,leaveToClass:h=`${r}-leave-to`}=t,g=v5t(o),p=g&&g[0],m=g&&g[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:A,onLeave:y,onLeaveCancelled:C,onBeforeAppear:D=v,onAppear:I=b,onAppearCancelled:k=A}=e,E=(O,$,W)=>{c8(O,$?d:s),c8(O,$?u:a),W&&W()},T=(O,$)=>{O._isLeaving=!1,c8(O,f),c8(O,h),c8(O,c),$&&$()},j=O=>($,W)=>{let Y=O?I:b,B=()=>E($,O,W);Um(Y,[$,B]),dve(()=>{c8($,O?l:i),B5($,O?d:s),uve(Y)||fve($,n,p,B)})};return OD(e,{onBeforeEnter(O){Um(v,[O]),B5(O,i),B5(O,a)},onBeforeAppear(O){Um(D,[O]),B5(O,l),B5(O,u)},onEnter:j(!1),onAppear:j(!0),onLeave(O,$){O._isLeaving=!0;let W=()=>T(O,$);B5(O,f),Dve(),B5(O,c),dve(()=>{O._isLeaving&&(c8(O,f),B5(O,h),uve(y)||fve(O,n,m,W))}),Um(y,[O,W])},onEnterCancelled(O){E(O,!1),Um(A,[O])},onAppearCancelled(O){E(O,!0),Um(k,[O])},onLeaveCancelled(O){T(O),Um(C,[O])}})}function v5t(t){if(t==null)return null;if(ive(t))return[gee(t.enter),gee(t.leave)];{let e=gee(t);return[e,e]}}function gee(t){return ave(t)}function B5(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t[wb]||(t[wb]=new Set)).add(e)}function c8(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.remove(n));let r=t[wb];r&&(r.delete(e),r.size||(t[wb]=void 0))}function dve(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}var y5t=0;function fve(t,e,r,n){let o=t._endId=++y5t,i=()=>{o===t._endId&&n()};if(r)return setTimeout(i,r);let{type:a,timeout:s,propCount:l}=Sve(t,e);if(!a)return n();let u=a+"end",d=0,f=()=>{t.removeEventListener(u,c),i()},c=h=>{h.target===t&&++d>=l&&f()};setTimeout(()=>{d(r[g]||"").split(", "),o=n(`${l8}Delay`),i=n(`${l8}Duration`),a=hve(o,i),s=n(`${FD}Delay`),l=n(`${FD}Duration`),u=hve(s,l),d=null,f=0,c=0;e===l8?a>0&&(d=l8,f=a,c=i.length):e===FD?u>0&&(d=FD,f=u,c=l.length):(f=Math.max(a,u),d=f>0?a>u?l8:FD:null,c=d?d===l8?i.length:l.length:0);let h=d===l8&&/\b(transform|all)(,|$)/.test(n(`${l8}Property`).toString());return{type:d,timeout:f,propCount:c,hasTransform:h}}function hve(t,e){for(;t.lengthpve(r)+pve(t[n])))}function pve(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function Dve(){return document.body.offsetHeight}function A5t(t,e,r){let n=t[wb];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}var qN=Symbol("_vod"),Ive=Symbol("_vsh"),JN={beforeMount(t,{value:e},{transition:r}){t[qN]=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):ND(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:n}){!e!=!r&&(n?e?(n.beforeEnter(t),ND(t,!0),n.enter(t)):n.leave(t,()=>{ND(t,!1)}):ND(t,e))},beforeUnmount(t,{value:e}){ND(t,e)}};function ND(t,e){t.style.display=e?t[qN]:"none",t[Ive]=!e}var b5t=Symbol("");var x5t=/(^|;)\s*display\s*:/;function w5t(t,e,r){let n=t.style,o=xb(r),i=!1;if(r&&!o){if(e)if(xb(e))for(let a of e.split(";")){let s=a.slice(0,a.indexOf(":")).trim();r[s]==null&&YN(n,s,"")}else for(let a in e)r[a]==null&&YN(n,a,"");for(let a in r)a==="display"&&(i=!0),YN(n,a,r[a])}else if(o){if(e!==r){let a=n[b5t];a&&(r+=";"+a),n.cssText=r,i=x5t.test(r)}}else e&&t.removeAttribute("style");qN in t&&(t[qN]=i?n.display:"",t[Ive]&&(n.display="none"))}var gve=/\s*!important$/;function YN(t,e,r){if(BD(r))r.forEach(n=>YN(t,e,n));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{let n=C5t(t,e);gve.test(r)?t.setProperty(fee(n),r.replace(gve,""),"important"):t[n]=r}}var mve=["Webkit","Moz","ms"],mee={};function C5t(t,e){let r=mee[e];if(r)return r;let n=Nu(e);if(n!=="filter"&&n in t)return mee[e]=n;n=hee(n);for(let o=0;ovee||(k5t.then(()=>vee=0),vee=Date.now());function O5t(t,e){let r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Ru(B5t(n,r.value),e,5,[n])};return r.value=t,r.attached=T5t(),r}function B5t(t,e){if(BD(e)){let r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(n=>o=>!o._stopped&&n&&n(o))}else return e}var bve=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,F5t=(t,e,r,n,o,i,a,s,l)=>{let u=o==="svg";e==="class"?A5t(t,n,u):e==="style"?w5t(t,r,n):nve(e)?ove(e)||_5t(t,e,r,n,a):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):N5t(t,e,n,u))?S5t(t,e,n,i,a,s,l):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),E5t(t,e,n,u))};function N5t(t,e,r,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in t&&bve(e)&&dee(r));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){let o=t.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return bve(e)&&xb(r)?!1:e in t}var _ve=new WeakMap,Mve=new WeakMap,XN=Symbol("_moveCb"),xve=Symbol("_enterCb"),R5t={name:"TransitionGroup",props:OD({},m5t,{tag:String,moveClass:String}),setup(t,{slots:e}){let r=zu(),n=ree(),o,i;return T1(()=>{if(!o.length)return;let a=t.moveClass||`${t.name||"v"}-move`;if(!V5t(o[0].el,r.vnode.el,a))return;o.forEach(z5t),o.forEach(L5t);let s=o.filter(H5t);Dve(),s.forEach(l=>{let u=l.el,d=u.style;B5(u,a),d.transform=d.webkitTransform=d.transitionDuration="";let f=u[XN]=c=>{c&&c.target!==u||(!c||/transform$/.test(c.propertyName))&&(u.removeEventListener("transitionend",f),u[XN]=null,c8(u,a))};u.addEventListener("transitionend",f)})}),()=>{let a=Jo(t),s=Eve(a),l=a.tag||Gi;o=i,i=e.default?QN(e.default()):[];for(let u=0;udelete t.mode;R5t.props;function z5t(t){let e=t.el;e[XN]&&e[XN](),e[xve]&&e[xve]()}function L5t(t){Mve.set(t,t.el.getBoundingClientRect())}function H5t(t){let e=_ve.get(t),r=Mve.get(t),n=e.left-r.left,o=e.top-r.top;if(n||o){let i=t.el.style;return i.transform=i.webkitTransform=`translate(${n}px,${o}px)`,i.transitionDuration="0s",t}}function V5t(t,e,r){let n=t.cloneNode(),o=t[wb];o&&o.forEach(s=>{s.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),r.split(/\s+/).forEach(s=>s&&n.classList.add(s)),n.style.display="none";let i=e.nodeType===1?e:e.parentNode;i.appendChild(n);let{hasTransform:a}=Sve(n);return i.removeChild(n),a}var Sxr=Symbol("_assign");var j5t=["ctrl","shift","alt","meta"],Q5t={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>j5t.some(r=>t[`${r}Key`]&&!e.includes(r))},yee=(t,e)=>{let r=t._withMods||(t._withMods={}),n=e.join(".");return r[n]||(r[n]=(o,...i)=>{for(let a=0;a{kve().render(...t)};var tR=(...t)=>{let e=kve().createApp(...t),{mount:r}=e;return e.mount=n=>{let o=G5t(n);if(!o)return;let i=e._component;!dee(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";let a=r(o,!1,W5t(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},e};function W5t(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function G5t(t){return xb(t)?document.querySelector(t):t}function $5t(t,e){t&1&&Sp(0)}function Z5t(t,e){t&1&&na(0,$5t,1,0,"ng-container",0),t&2&&xr("ngTemplateOutlet",e)}var Eee=["child"];function K5t(t,e){t&1&&Sp(0)}function Y5t(t,e){if(t&1&&na(0,K5t,1,0,"ng-container",0),t&2){let r=e;xr("ngTemplateOutlet",r.templateRef)("ngTemplateOutletContext",r.context)}}var q5t="react-wrapper-class",Fve=(0,ii.createContext)(void 0);function Aee(t,e){return()=>{let r=(0,ii.useRef)(void 0);return(0,ii.useEffect)(()=>(t instanceof Array?t.forEach(n=>{r.current.appendChild(n)}):r.current.appendChild(t),()=>{e?.()}),[]),(0,ii.createElement)("div",{ref:r,className:q5t})}}function Cb(t,e){return{subscribe:(r,n)=>{let o=!0,i=Wi(()=>{let a=t();o&&(o=!1,n===a)||r(a)},{injector:e});return()=>{i.destroy()}},getSnapshot:t}}function Wm({getSnapshot:t,subscribe:e}){let[r,n]=(0,ii.useState)(t());return(0,ii.useEffect)(()=>{let o=e(n,r);return()=>{o()}},[r]),r}function Wc(t,e,r,n){let o=No(void 0);r??=t.runInReact;let i=Ip(t),a=(l,u)=>{let[d,f]=(0,ii.useState)([]),c=r?.(l,u);c?.props&&(l=c.props);let h=(0,ii.useRef)(void 0),g=e?.environmentInjector||(0,ii.useContext)(Fve),p=g.get(_d),m=g.get(_a),[v,b]=(0,ii.useState)(void 0);return(0,ii.useEffect)(()=>{let A=m.run(()=>{let C=fm(t,lr(Je({hostElement:h.current},e),{environmentInjector:g}));return p.attachView(C.hostView),C});o.set(A);let y=A.instance;return y.children&&Wi(()=>{let C=y.children().map(D=>D());f(C)},{injector:A.injector}),b(A),()=>{o.set(void 0),A.destroy()}},[]),(0,ii.useEffect)(()=>{!v||!v.instance.props||m.run(()=>{v.setInput("props",l)})},[v,l]),(0,ii.useEffect)(()=>{if(!v)return;let A=v.instance;c?.output&&A.output&&m.run(()=>{A.output.set(c.output)})},[v,c?.output]),(0,ii.createElement)(i.selector,{ref:h},...d)},s=n?.forwardRef?(0,ii.forwardRef)(a):a;return{ngComponentRefSignal:o,reactElement:(0,ii.createElement)(a),reactFunctionComponent:s}}function Ld(t){let e=t.disableMemo?Wc(t.component,t.options,void 0,{forwardRef:!!t.props?.ref}).reactFunctionComponent:(0,ii.useMemo)(()=>Wc(t.component,t.options,void 0,{forwardRef:!!t.props?.ref}).reactFunctionComponent,[]);return(0,ii.createElement)(e,t.props)}var X5t=(()=>{let e=class e{constructor(){this.props=So()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=Ln({type:e,selectors:[["ng-component"]],hostAttrs:[1,"react-wrapper-class","react-wrapper-template-class"],inputs:{props:[Yn.SignalBased,"props"]},standalone:!0,features:[Wn],decls:1,vars:1,consts:[[4,"ngTemplateOutlet"]],template:function(o,i){if(o&1&&na(0,Z5t,1,1,"ng-container"),o&2){let a;P0(0,(a=(a=i.props())==null?null:a.templateRef)?0:-1,a)}},dependencies:[pm],encapsulation:2,changeDetection:0});let t=e;return t})(),wee;function J5t(t,e){return{props:typeof t=="function"?t():t,output:typeof e=="function"?e():e}}var eht=[],$i=(()=>{var e,r,n,o,i,a,s,l,rR,d,f,c,Nve,g,Rve;let m=class m{constructor(){Xn(this,l);Xn(this,c);Xn(this,g);Xn(this,e,void 0);Xn(this,r,void 0);Xn(this,n,void 0);Xn(this,o,void 0);Xn(this,i,void 0);Xn(this,a,void 0);Xn(this,s,void 0);Xn(this,d,void 0);Xn(this,f,void 0);this.root=So(),this.component=So(),this.props=So({}),this.outputDefine=So(),this.runInReact=So(J5t),this.childrenInput=So(void 0,{alias:"children"}),this.parent=So(),this.CONTEXT=(0,ii.createContext)(void 0),this.output=No(void 0),this.reactPortal=No(void 0),this.inited=No(!1),this.children=G4("child",{descendants:!1}),Ao(this,e,dn(dl)),Ao(this,r,dn(ua)),this.instance=No(void 0),Ao(this,o,new Map),Ao(this,i,No([])),this.ready=No(!1),Ao(this,a,dn(_a)),Ao(this,s,O2(()=>{let b=this.childrenInput()||this.children();for(let A of b)if(A instanceof wee&&!A.ready())return eht;return sl(this,l,rR).call(this,b)})),this.elementRef=dn(Q1),Ao(this,d,new Set),Ao(this,f,No([])),Wi(()=>{let b=this.parent(),A=this.reactPortal();b&&A&&(Ir(b,d).add(A),Ir(b,f).set([...Ir(b,d)]))},{allowSignalWrites:!0})}ngAfterContentInit(){let b=Cb(Ir(this,s),Ir(this,e)),A=Cb(this.props,Ir(this,e)),y=Cb(this.outputDefine,Ir(this,e)),C=Cb(Ir(this,f),Ir(this,e)),D=Cb(Ir(this,i),Ir(this,e));Wi(()=>{let I=this.component(),k=this.root();if(I){let E=(0,ii.createElement)((0,ii.memo)(()=>{let T=Wm(b),j=Wm(C),O=Wm(D),$=Wm(A),W=Wm(y),{props:Y,output:B}=this.runInReact()($,W);B&&Ir(this,a).run(()=>{this.output.set(B)}),(0,ii.useEffect)(()=>{Ir(this,a).run(()=>{this.inited.set(!0)})},[]);let q=(0,ii.useMemo)(()=>(0,ii.createElement)(this.CONTEXT.Provider,{value:B},(0,ii.createElement)(I,Y,...T,...j.map(F=>F()),...O)),[B,Y,T,j,O]);return(0,ii.useMemo)(()=>k?(0,ii.createElement)(Fve.Provider,{value:Ir(this,e).get(ua)},q):q,[q])}));k?Ir(this,a).runOutsideAngular(()=>{Ao(this,n,(0,Ove.createRoot)(this.elementRef.nativeElement)),Ir(this,n).render(E)}):this.reactPortal.set(()=>(0,Bve.createPortal)(E,this.elementRef.nativeElement)),this.instance.set(E),this.ready.set(!0)}},{injector:Ir(this,e),allowSignalWrites:!0})}addContextChild(b){return Ir(this,o).set(b.runInReact,(0,ii.createElement)(()=>{let A=b.runInReact()?.output;return A&&Ir(this,a).run(()=>{b.output.set(A)}),(0,ii.createElement)(ii.Fragment)})),Ir(this,i).set([...Ir(this,o).values()]),()=>sl(this,g,Rve).call(this,b)}ngOnDestroy(){Ir(this,n)&&Ir(this,n).unmount(),sl(this,c,Nve).call(this)}};e=new WeakMap,r=new WeakMap,n=new WeakMap,o=new WeakMap,i=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakSet,rR=function(b){return b.map(A=>{if(A instanceof wee)return A.instance();if(A instanceof Cd)return Ld({component:X5t,props:{templateRef:A},options:{environmentInjector:Ir(this,r)},disableMemo:!0});if(typeof A=="string"||typeof A=="number"||typeof A=="boolean"||!A)return A;if(A instanceof Fu){let y=A.child();return y?sl(this,l,rR).call(this,[y])[0]:void 0}else return typeof A[Symbol.iterator]=="function"?sl(this,l,rR).call(this,Array.from(A)):typeof A=="object"&&A?"elementRef"in A?(0,ii.createElement)(Aee(A.elementRef.nativeElement)):"nativeElement"in A?(0,ii.createElement)(Aee(A.nativeElement)):(0,ii.createElement)(Aee(A)):A}).flat().filter(Boolean)},d=new WeakMap,f=new WeakMap,c=new WeakSet,Nve=function(){let b=this.parent();b&&(Ir(b,d).delete(this.reactPortal()),Ir(b,f).set([...Ir(b,d)]))},g=new WeakSet,Rve=function(b){let A=Ir(this,o);A.delete(b.runInReact),Ir(this,i).set([...A.values()])},m.\u0275fac=function(A){return new(A||m)},m.\u0275cmp=Ln({type:m,selectors:[["react-outlet"]],contentQueries:function(A,y,C){A&1&&Su(C,y.children,Eee,4),A&2&&rs()},inputs:{root:[Yn.SignalBased,"root"],component:[Yn.SignalBased,"component"],props:[Yn.SignalBased,"props"],outputDefine:[Yn.SignalBased,"outputDefine"],runInReact:[Yn.SignalBased,"runInReact"],childrenInput:[Yn.SignalBased,"children","childrenInput"],parent:[Yn.SignalBased,"parent"]},standalone:!0,features:[Wn],decls:0,vars:0,template:function(A,y){},encapsulation:2});let t=m;return t})();wee=$i;function nR(t){return O2(()=>{let e=t(),r=[];for(let n of e){let o=n.reactPortal();if(!o)return[];r.push(o)}return r})}var oR=(()=>{var e;let r=class r{constructor(){Xn(this,e,void 0);this.parent=So(),this.props=So(),Ao(this,e,dn(dl)),this.propsSubscribe=Cb(this.props,Ir(this,e)),this.output=No(void 0),Wi(o=>{let i=this.parent();i&&o(i.addContextChild(this))},{allowSignalWrites:!0})}};e=new WeakMap,r.\u0275fac=function(i){return new(i||r)},r.\u0275dir=Xl({type:r,inputs:{parent:[Yn.SignalBased,"parent"],props:[Yn.SignalBased,"props"]}});let t=r;return t})();function bee(t,e){return m5(()=>{let r=vn(t());return Wi(()=>{r.value=t()},{injector:e}),r})}var tht="vue-wrapper-class",Pve=Symbol("ENVIRONMENT_INJECTOR");function xee(t,e){return Ma({setup:()=>{let r=ao(void 0);return Fi(()=>{t instanceof Array?t.forEach(n=>{r.value.appendChild(n)}):r.value.appendChild(t)}),us(()=>{e?.()}),()=>Ma("div",{ref:r,class:tht})}})}var rht=(()=>{let e=class e{constructor(){this.props=So()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=Ln({type:e,selectors:[["ng-component"]],hostAttrs:[1,"vue-wrapper-class","vue-wrapper-template-class"],inputs:{props:[Yn.SignalBased,"props"]},standalone:!0,features:[Wn],decls:1,vars:1,consts:[[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(o,i){if(o&1&&na(0,Y5t,1,2,"ng-container"),o&2){let a;P0(0,(a=i.props())?0:-1,a)}},dependencies:[pm],encapsulation:2,changeDetection:0});let t=e;return t})();function nht(t,e,r){let n=No(void 0);r??=t.runInReact;let o=Ip(t),i=_n({props:["props"],setup:(a,s)=>{let l=a.props,u=ao([]),d=r?.(l,void 0);d?.props&&(l=d.props);let f=ao(void 0),c=e?.environmentInjector||fa(Pve),h=c.get(_d),g=c.get(_a),p=ao(void 0);return Fi(()=>{let m=g.run(()=>{let b=fm(t,lr(Je({hostElement:f.value},e),{environmentInjector:c}));return h.attachView(b.hostView),b});p.value=m,n.set(m);let v=m.instance;v.children&&Wi(()=>{let b=v.children().map(A=>A());u.value=b},{injector:m.injector})}),us(()=>{p.value?.destroy(),n.set(void 0)}),Ra(()=>{!p.value||!p.value.instance.props||g.run(()=>{p.value.setInput("props",l)})}),Ra(()=>{if(!p.value)return;let m=p.value.instance;d?.output&&m.output&&g.run(()=>{m.output.set(d.output)})}),()=>Ma(o.selector,lr(Je({},l),{ref:f}),u.value)}});return{ngComponentRefSignal:n,vueFunctionComponent:i,vueElement:Ma(i)}}function See(t){let e=nht(t.component,t.options,void 0).vueFunctionComponent;return Ma(e,{props:t.props})}function Cee(t,e){if(t instanceof Eb)return()=>t.instance();if(t instanceof Cd)return r=>See({component:rht,props:{context:r,templateRef:t},options:{environmentInjector:e}});if(typeof t=="string"||typeof t=="number"||typeof t=="boolean"||!t)return()=>t;if(t instanceof Fu){let r=t.child();return r?Cee(r,e):void 0}else return typeof t[Symbol.iterator]=="function"?Array.from(t).map(r=>Cee(r,e)).flat():t&&typeof t=="object"?"elementRef"in t?()=>xee(t.elementRef.nativeElement):"nativeElement"in t?()=>xee(t.nativeElement):()=>xee(t):t}function zve(t,e){return t.map(r=>Cee(r,e)).flat().filter(Boolean)}var Tve=(()=>{var e,r;let n=class n{constructor(){Xn(this,e,void 0);Xn(this,r,void 0);this.name=So.required(),this.children=G4("child"),this.slot=No(void 0),Ao(this,e,dn(ua)),Ao(this,r,dn(dl))}ngOnInit(){}ngAfterContentInit(){Wi(()=>{let i=this.children(),a=zve(i,Ir(this,e));m5(()=>{this.slot.set(s=>a.map(l=>l(s)))})},{injector:Ir(this,r)})}};e=new WeakMap,r=new WeakMap,n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=Ln({type:n,selectors:[["vue-slot-group"]],contentQueries:function(a,s,l){a&1&&Su(l,s.children,Eee,4),a&2&&rs()},inputs:{name:[Yn.SignalBased,"name"]},standalone:!0,features:[Wn],decls:0,vars:0,template:function(a,s){},encapsulation:2});let t=n;return t})(),Lve;function oht(t,e){return{props:t.value,output:e?.value}}var Eb=(()=>{var e,r,n,o,i,a,s,l,u,d,f,c,Hve,g,Vve;let m=class m{constructor(){Xn(this,c);Xn(this,g);Xn(this,e,void 0);Xn(this,r,void 0);Xn(this,n,void 0);Xn(this,o,void 0);Xn(this,i,void 0);Xn(this,a,void 0);Xn(this,s,void 0);Xn(this,l,void 0);Xn(this,u,void 0);Xn(this,d,void 0);Xn(this,f,void 0);this.root=So(),this.component=So(),this.props=So({}),this.model=So(),this.modelChange=wA(),this.emits=So(),this.outputDefine=So(),this.runInVue=So(oht),this.childrenInput=So(void 0,{alias:"children"}),this.parent=So(),this.CONTEXT=Symbol(),this.output=No(void 0),this.vuePortal=No(void 0),this.inited=No(!1),this.children=G4("child",{descendants:!1}),this.slotGroup=G4(Tve),Ao(this,e,dn(dl)),Ao(this,r,dn(ua)),this.instance=No(void 0),Ao(this,o,new Map),Ao(this,i,No([])),this.ready=No(!1),Ao(this,a,dn(_a)),this.elementRef=dn(Q1),Ao(this,s,O2(()=>{let b=this.slotGroup();if(b.length){let C={};for(let D of b){if(!D.slot())return;C[D.name()]=D.slot()}return Object.keys(C).length?C:void 0}let A=this.childrenInput()||this.children();for(let C of A)if((C instanceof Lve||C instanceof Fu)&&!C.ready())return;let y=zve(A,Ir(this,r));return{default:C=>y.map(D=>D(C))}})),Ao(this,l,O2(()=>{let b=Ir(this,s).call(this),A=Ir(this,f).call(this),y=Ir(this,i).call(this),C;return C=lr(Je({},b),{__portal:()=>A,__context:()=>y}),C})),Ao(this,u,O2(()=>{let b=this.props(),A=this.model()||{},y=this.emits()||{},C=zm(Je(Je({},b),A));for(let D in A)C[`onUpdate:${D}`]=I=>{C[D]=I,this.modelChange.emit(A)};for(let D in y)C[`on${D[0].toUpperCase()}${D.slice(1)}`]=()=>Ir(this,a).run(y[D]);return C})),Ao(this,d,new Set),Ao(this,f,No([])),Wi(()=>{let b=this.parent(),A=this.vuePortal();b&&A&&(Ir(b,d).add(A),Ir(b,f).set([...Ir(b,d)]))},{allowSignalWrites:!0})}ngAfterContentInit(){Wi(()=>{let b=this.component(),A=this.root();if(b){let y=Ma({setup:()=>{let C=bee(Ir(this,l),Ir(this,e)),D=bee(Ir(this,u),Ir(this,e)),I=bee(this.outputDefine,Ir(this,e));return Fi(()=>{Ir(this,a).run(()=>{this.inited.set(!0)})}),l1(this.CONTEXT,wA),()=>{let{props:k,output:E}=m5(()=>this.runInVue()(D,I));return E&&Ir(this,a).run(()=>{this.output.set(E)}),Ma(b,k,C.value)}}});A?Ir(this,a).runOutsideAngular(()=>{Ao(this,n,tR(y)),Ir(this,n).mount(this.elementRef.nativeElement),Ir(this,n).provide(Pve,Ir(this,e).get(ua))}):this.vuePortal.set(()=>Ma(bb,{to:this.elementRef.nativeElement,disable:!1},y)),this.instance.set(y),this.ready.set(!0)}},{injector:Ir(this,e),allowSignalWrites:!0})}addContextChild(b){return Ir(this,o).set(b.runInVue,Ma(()=>{let A=b.runInVue()?.output;return A&&Ir(this,a).run(()=>{b.output.set(A)}),Ma(Gi)})),Ir(this,i).set([...Ir(this,o).values()]),()=>sl(this,g,Vve).call(this,b)}ngOnDestroy(){Ir(this,n)&&Ir(this,n).unmount(),sl(this,c,Hve).call(this)}};e=new WeakMap,r=new WeakMap,n=new WeakMap,o=new WeakMap,i=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap,c=new WeakSet,Hve=function(){let b=this.parent();b&&(Ir(b,d).delete(this.vuePortal()),Ir(b,f).set([...Ir(b,d)]))},g=new WeakSet,Vve=function(b){let A=Ir(this,o);A.delete(b.runInReact),Ir(this,i).set([...A.values()])},m.\u0275fac=function(A){return new(A||m)},m.\u0275cmp=Ln({type:m,selectors:[["vue-outlet"]],contentQueries:function(A,y,C){A&1&&(Su(C,y.children,Eee,4),Su(C,y.slotGroup,Tve,4)),A&2&&rs(2)},inputs:{root:[Yn.SignalBased,"root"],component:[Yn.SignalBased,"component"],props:[Yn.SignalBased,"props"],model:[Yn.SignalBased,"model"],emits:[Yn.SignalBased,"emits"],outputDefine:[Yn.SignalBased,"outputDefine"],runInVue:[Yn.SignalBased,"runInVue"],childrenInput:[Yn.SignalBased,"children","childrenInput"],parent:[Yn.SignalBased,"parent"]},outputs:{modelChange:"modelChange"},standalone:!0,features:[Wn],decls:0,vars:0,template:function(A,y){},encapsulation:2});let t=m;return t})();Lve=Eb;var Mt=It(gr(),1);function Ks(t){if(typeof t=="string"||typeof t=="number")return""+t;let e="";if(Array.isArray(t))for(let r=0,n;r{let e,r=new Set,n=(d,f)=>{let c=typeof d=="function"?d(e):d;if(!Object.is(c,e)){let h=e;e=f??(typeof c!="object"||c===null)?c:Object.assign({},e,c),r.forEach(g=>g(e,h))}},o=()=>e,l={setState:n,getState:o,getInitialState:()=>u,subscribe:d=>(r.add(d),()=>r.delete(d)),destroy:()=>{(import.meta.env?import.meta.env.MODE:void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},u=e=t(n,o,l);return l},qve=t=>t?Yve(t):Yve;var{useDebugValue:wht}=Jve.default,{useSyncExternalStoreWithSelector:Cht}=eye.default,Eht=t=>t;function Iee(t,e=Eht,r){let n=Cht(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,r);return wht(n),n}var Xve=(t,e)=>{let r=qve(t),n=(o,i=e)=>Iee(r,o,i);return Object.assign(n,r),n},tye=(t,e)=>t?Xve(t,e):Xve;function c1(t,e){if(Object.is(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(let[n,o]of t)if(!Object.is(o,e.get(n)))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!1;for(let n of r)if(!Object.prototype.hasOwnProperty.call(e,n)||!Object.is(t[n],e[n]))return!1;return!0}var Sht={value:()=>{}};function nye(){for(var t=0,e=arguments.length,r={},n;t=0&&(n=r.slice(o+1),r=r.slice(0,o)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}aR.prototype=nye.prototype={constructor:aR,on:function(t,e){var r=this._,n=Dht(t+"",r),o,i=-1,a=n.length;if(arguments.length<2){for(;++i0)for(var r=new Array(o),n=0,o,i;n=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),_ee.hasOwnProperty(e)?{space:_ee[e],local:t}:t}function _ht(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===sR&&e.documentElement.namespaceURI===sR?e.createElement(t):e.createElementNS(r,t)}}function Mht(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function lR(t){var e=F5(t);return(e.local?Mht:_ht)(e)}function kht(){}function $m(t){return t==null?kht:function(){return this.querySelector(t)}}function oye(t){typeof t!="function"&&(t=$m(t));for(var e=this._groups,r=e.length,n=new Array(r),o=0;o=A&&(A=b+1);!(C=m[A])&&++A=0;)(a=n[o])&&(i&&a.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(a,i),i=a);return this}function mye(t){t||(t=Qht);function e(f,c){return f&&c?t(f.__data__,c.__data__):!f-!c}for(var r=this._groups,n=r.length,o=new Array(n),i=0;ie?1:t>=e?0:NaN}function vye(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function yye(){return Array.from(this)}function Aye(){for(var t=this._groups,e=0,r=t.length;e1?this.each((e==null?Yht:typeof e=="function"?Xht:qht)(t,e,r??"")):d8(this.node(),t)}function d8(t,e){return t.style.getPropertyValue(e)||dR(t).getComputedStyle(t,null).getPropertyValue(e)}function Jht(t){return function(){delete this[t]}}function ept(t,e){return function(){this[t]=e}}function tpt(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function Sye(t,e){return arguments.length>1?this.each((e==null?Jht:typeof e=="function"?tpt:ept)(t,e)):this.node()[t]}function Dye(t){return t.trim().split(/^|\s+/)}function kee(t){return t.classList||new Iye(t)}function Iye(t){this._node=t,this._names=Dye(t.getAttribute("class")||"")}Iye.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function _ye(t,e){for(var r=kee(t),n=-1,o=e.length;++n=0&&(r=e.slice(n+1),e=e.slice(0,n)),{type:e,name:r}})}function Apt(t){return function(){var e=this.__on;if(e){for(var r=0,n=-1,o=e.length,i;r()=>t;function jD(t,{sourceEvent:e,subject:r,target:n,identifier:o,active:i,x:a,y:s,dx:l,dy:u,dispatch:d}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:d}})}jD.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function Ept(t){return!t.ctrlKey&&!t.button}function Spt(){return this.parentNode}function Dpt(t,e){return e??{x:t.x,y:t.y}}function Ipt(){return navigator.maxTouchPoints||"ontouchstart"in this}function Oee(){var t=Ept,e=Spt,r=Dpt,n=Ipt,o={},i=Gm("start","drag","end"),a=0,s,l,u,d,f=0;function c(y){y.on("mousedown.drag",h).filter(n).on("touchstart.drag",m).on("touchmove.drag",v,Gye).on("touchend.drag touchcancel.drag",b).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function h(y,C){if(!(d||!t.call(this,y,C))){var D=A(this,e.call(this,y,C),y,C,"mouse");D&&(j0(y.view).on("mousemove.drag",g,Zm).on("mouseup.drag",p,Zm),LD(y.view),fR(y),u=!1,s=y.clientX,l=y.clientY,D("start",y))}}function g(y){if(f8(y),!u){var C=y.clientX-s,D=y.clientY-l;u=C*C+D*D>f}o.mouse("drag",y)}function p(y){j0(y.view).on("mousemove.drag mouseup.drag",null),HD(y.view,u),f8(y),o.mouse("end",y)}function m(y,C){if(t.call(this,y,C)){var D=y.changedTouches,I=e.call(this,y,C),k=D.length,E,T;for(E=0;E>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?pR(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?pR(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Mpt.exec(t))?new j2(e[1],e[2],e[3],1):(e=kpt.exec(t))?new j2(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Tpt.exec(t))?pR(e[1],e[2],e[3],e[4]):(e=Opt.exec(t))?pR(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Bpt.exec(t))?Jye(e[1],e[2]/100,e[3]/100,1):(e=Fpt.exec(t))?Jye(e[1],e[2]/100,e[3]/100,e[4]):$ye.hasOwnProperty(t)?Yye($ye[t]):t==="transparent"?new j2(NaN,NaN,NaN,0):null}function Yye(t){return new j2(t>>16&255,t>>8&255,t&255,1)}function pR(t,e,r,n){return n<=0&&(t=e=r=NaN),new j2(t,e,r,n)}function Ppt(t){return t instanceof WD||(t=h8(t)),t?(t=t.rgb(),new j2(t.r,t.g,t.b,t.opacity)):new j2}function Ib(t,e,r,n){return arguments.length===1?Ppt(t):new j2(t,e,r,n??1)}function j2(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}hR(j2,Ib,Bee(WD,{brighter(t){return t=t==null?mR:Math.pow(mR,t),new j2(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?QD:Math.pow(QD,t),new j2(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new j2(Ym(this.r),Ym(this.g),Ym(this.b),vR(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:qye,formatHex:qye,formatHex8:zpt,formatRgb:Xye,toString:Xye}));function qye(){return`#${Km(this.r)}${Km(this.g)}${Km(this.b)}`}function zpt(){return`#${Km(this.r)}${Km(this.g)}${Km(this.b)}${Km((isNaN(this.opacity)?1:this.opacity)*255)}`}function Xye(){let t=vR(this.opacity);return`${t===1?"rgb(":"rgba("}${Ym(this.r)}, ${Ym(this.g)}, ${Ym(this.b)}${t===1?")":`, ${t})`}`}function vR(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ym(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Km(t){return t=Ym(t),(t<16?"0":"")+t.toString(16)}function Jye(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new n3(t,e,r,n)}function tAe(t){if(t instanceof n3)return new n3(t.h,t.s,t.l,t.opacity);if(t instanceof WD||(t=h8(t)),!t)return new n3;if(t instanceof n3)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,o=Math.min(e,r,n),i=Math.max(e,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(e===i?a=(r-n)/s+(r0&&l<1?0:a,new n3(a,s,l,t.opacity)}function rAe(t,e,r,n){return arguments.length===1?tAe(t):new n3(t,e,r,n??1)}function n3(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}hR(n3,rAe,Bee(WD,{brighter(t){return t=t==null?mR:Math.pow(mR,t),new n3(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?QD:Math.pow(QD,t),new n3(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,o=2*r-n;return new j2(Fee(t>=240?t-240:t+120,o,n),Fee(t,o,n),Fee(t<120?t+240:t-120,o,n),this.opacity)},clamp(){return new n3(eAe(this.h),gR(this.s),gR(this.l),vR(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=vR(this.opacity);return`${t===1?"hsl(":"hsla("}${eAe(this.h)}, ${gR(this.s)*100}%, ${gR(this.l)*100}%${t===1?")":`, ${t})`}`}}));function eAe(t){return t=(t||0)%360,t<0?t+360:t}function gR(t){return Math.max(0,Math.min(1,t||0))}function Fee(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}function Nee(t,e,r,n,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*r+(1+3*t+3*i-3*a)*n+a*o)/6}function nAe(t){var e=t.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),o=t[n],i=t[n+1],a=n>0?t[n-1]:2*o-i,s=n()=>t;function Lpt(t,e){return function(r){return t+r*e}}function Hpt(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function iAe(t){return(t=+t)==1?yR:function(e,r){return r-e?Hpt(e,r,t):Ree(isNaN(e)?r:e)}}function yR(t,e){var r=e-t;return r?Lpt(t,r):Ree(isNaN(t)?e:t)}var AR=function t(e){var r=iAe(e);function n(o,i){var a=r((o=Ib(o)).r,(i=Ib(i)).r),s=r(o.g,i.g),l=r(o.b,i.b),u=yR(o.opacity,i.opacity);return function(d){return o.r=a(d),o.g=s(d),o.b=l(d),o.opacity=u(d),o+""}}return n.gamma=t,n}(1);function aAe(t){return function(e){var r=e.length,n=new Array(r),o=new Array(r),i=new Array(r),a,s;for(a=0;ar&&(i=e.slice(r,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(o=o[0])?s[a]?s[a]+=o:s[++a]=o:(s[++a]=null,l.push({i:a,x:Hd(n,o)})),r=Pee.lastIndex;return r180?d+=360:d-u>180&&(u+=360),c.push({i:f.push(o(f)+"rotate(",null,n)-2,x:Hd(u,d)})):d&&f.push(o(f)+"rotate("+d+n)}function s(u,d,f,c){u!==d?c.push({i:f.push(o(f)+"skewX(",null,n)-2,x:Hd(u,d)}):d&&f.push(o(f)+"skewX("+d+n)}function l(u,d,f,c,h,g){if(u!==f||d!==c){var p=h.push(o(h)+"scale(",null,",",null,")");g.push({i:p-4,x:Hd(u,f)},{i:p-2,x:Hd(d,c)})}else(f!==1||c!==1)&&h.push(o(h)+"scale("+f+","+c+")")}return function(u,d){var f=[],c=[];return u=t(u),d=t(d),i(u.translateX,u.translateY,d.translateX,d.translateY,f,c),a(u.rotate,d.rotate,f,c),s(u.skewX,d.skewX,f,c),l(u.scaleX,u.scaleY,d.scaleX,d.scaleY,f,c),u=d=null,function(h){for(var g=-1,p=c.length,m;++g=0&&t._call.call(void 0,e),t=t._next;--_b}function fAe(){qm=(CR=KD.now())+ER,_b=$D=0;try{gAe()}finally{_b=0,Ypt(),qm=0}}function Kpt(){var t=KD.now(),e=t-CR;e>hAe&&(ER-=e,CR=t)}function Ypt(){for(var t,e=wR,r,n=1/0;e;)e._call?(n>e._time&&(n=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:wR=r);ZD=t,Uee(n)}function Uee(t){if(!_b){$D&&($D=clearTimeout($D));var e=t-qm;e>24?(t<1/0&&($D=setTimeout(fAe,t-KD.now()-ER)),GD&&(GD=clearInterval(GD))):(GD||(CR=KD.now(),GD=setInterval(Kpt,hAe)),_b=1,pAe(fAe))}}function DR(t,e,r){var n=new YD;return e=e==null?0:+e,n.restart(o=>{n.stop(),t(o+e)},e,r),n}var qpt=Gm("start","end","cancel","interrupt"),Xpt=[],yAe=0,mAe=1,_R=2,IR=3,vAe=4,MR=5,XD=6;function p8(t,e,r,n,o,i){var a=t.__transition;if(!a)t.__transition={};else if(r in a)return;Jpt(t,r,{name:e,index:n,group:o,on:qpt,tween:Xpt,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:yAe})}function JD(t,e){var r=p0(t,e);if(r.state>yAe)throw new Error("too late; already scheduled");return r}function Al(t,e){var r=p0(t,e);if(r.state>IR)throw new Error("too late; already running");return r}function p0(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function Jpt(t,e,r){var n=t.__transition,o;n[e]=r,r.timer=SR(i,0,r.time);function i(u){r.state=mAe,r.timer.restart(a,r.delay,r.time),r.delay<=u&&a(u-r.delay)}function a(u){var d,f,c,h;if(r.state!==mAe)return l();for(d in n)if(h=n[d],h.name===r.name){if(h.state===IR)return DR(a);h.state===vAe?(h.state=XD,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete n[d]):+d_R&&n.state=0&&(e=e.slice(0,r)),!e||e==="start"})}function A8t(t,e,r){var n,o,i=y8t(e)?JD:Al;return function(){var a=i(this,t),s=a.on;s!==n&&(o=(n=s).copy()).on(e,r),a.on=o}}function MAe(t,e){var r=this._id;return arguments.length<2?p0(this.node(),r).on.on(t):this.each(A8t(r,t,e))}function b8t(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function kAe(){return this.on("end.remove",b8t(this._id))}function TAe(t){var e=this._name,r=this._id;typeof t!="function"&&(t=$m(t));for(var n=this._groups,o=n.length,i=new Array(o),a=0;a()=>t;function Wee(t,{sourceEvent:e,target:r,transform:n,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:n,enumerable:!0,configurable:!0},_:{value:o}})}function o3(t,e,r){this.k=t,this.x=e,this.y=r}o3.prototype={constructor:o3,scale:function(t){return t===1?this:new o3(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new o3(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Q2=new o3(1,0,0);Gee.prototype=o3.prototype;function Gee(t){for(;!t.__zoom;)if(!(t=t.parentNode))return Q2;return t.__zoom}function BR(t){t.stopImmediatePropagation()}function kb(t){t.preventDefault(),t.stopImmediatePropagation()}function N8t(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function R8t(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function QAe(){return this.__zoom||Q2}function P8t(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function z8t(){return navigator.maxTouchPoints||"ontouchstart"in this}function L8t(t,e,r){var n=t.invertX(e[0][0])-r[0][0],o=t.invertX(e[1][0])-r[1][0],i=t.invertY(e[0][1])-r[0][1],a=t.invertY(e[1][1])-r[1][1];return t.translate(o>n?(n+o)/2:Math.min(0,n)||Math.max(0,o),a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a))}function tI(){var t=N8t,e=R8t,r=L8t,n=P8t,o=z8t,i=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],s=250,l=Qee,u=Gm("start","zoom","end"),d,f,c,h=500,g=150,p=0,m=10;function v(W){W.property("__zoom",QAe).on("wheel.zoom",k,{passive:!1}).on("mousedown.zoom",E).on("dblclick.zoom",T).filter(o).on("touchstart.zoom",j).on("touchmove.zoom",O).on("touchend.zoom touchcancel.zoom",$).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}v.transform=function(W,Y,B,q){var F=W.selection?W.selection():W;F.property("__zoom",QAe),W!==F?C(W,Y,B,q):F.interrupt().each(function(){D(this,arguments).event(q).start().zoom(null,typeof Y=="function"?Y.apply(this,arguments):Y).end()})},v.scaleBy=function(W,Y,B,q){v.scaleTo(W,function(){var F=this.__zoom.k,z=typeof Y=="function"?Y.apply(this,arguments):Y;return F*z},B,q)},v.scaleTo=function(W,Y,B,q){v.transform(W,function(){var F=e.apply(this,arguments),z=this.__zoom,L=B==null?y(F):typeof B=="function"?B.apply(this,arguments):B,N=z.invert(L),K=typeof Y=="function"?Y.apply(this,arguments):Y;return r(A(b(z,K),L,N),F,a)},B,q)},v.translateBy=function(W,Y,B,q){v.transform(W,function(){return r(this.__zoom.translate(typeof Y=="function"?Y.apply(this,arguments):Y,typeof B=="function"?B.apply(this,arguments):B),e.apply(this,arguments),a)},null,q)},v.translateTo=function(W,Y,B,q,F){v.transform(W,function(){var z=e.apply(this,arguments),L=this.__zoom,N=q==null?y(z):typeof q=="function"?q.apply(this,arguments):q;return r(Q2.translate(N[0],N[1]).scale(L.k).translate(typeof Y=="function"?-Y.apply(this,arguments):-Y,typeof B=="function"?-B.apply(this,arguments):-B),z,a)},q,F)};function b(W,Y){return Y=Math.max(i[0],Math.min(i[1],Y)),Y===W.k?W:new o3(Y,W.x,W.y)}function A(W,Y,B){var q=Y[0]-B[0]*W.k,F=Y[1]-B[1]*W.k;return q===W.x&&F===W.y?W:new o3(W.k,q,F)}function y(W){return[(+W[0][0]+ +W[1][0])/2,(+W[0][1]+ +W[1][1])/2]}function C(W,Y,B,q){W.on("start.zoom",function(){D(this,arguments).event(q).start()}).on("interrupt.zoom end.zoom",function(){D(this,arguments).event(q).end()}).tween("zoom",function(){var F=this,z=arguments,L=D(F,z).event(q),N=e.apply(F,z),K=B==null?y(N):typeof B=="function"?B.apply(F,z):B,H=Math.max(N[1][0]-N[0][0],N[1][1]-N[0][1]),P=F.__zoom,x=typeof Y=="function"?Y.apply(F,z):Y,te=l(P.invert(K).concat(H/P.k),x.invert(K).concat(H/x.k));return function(V){if(V===1)V=x;else{var Q=te(V),U=H/Q[2];V=new o3(U,K[0]-Q[0]*U,K[1]-Q[1]*U)}L.zoom(null,V)}})}function D(W,Y,B){return!B&&W.__zooming||new I(W,Y)}function I(W,Y){this.that=W,this.args=Y,this.active=0,this.sourceEvent=null,this.extent=e.apply(W,Y),this.taps=0}I.prototype={event:function(W){return W&&(this.sourceEvent=W),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(W,Y){return this.mouse&&W!=="mouse"&&(this.mouse[1]=Y.invert(this.mouse[0])),this.touch0&&W!=="touch"&&(this.touch0[1]=Y.invert(this.touch0[0])),this.touch1&&W!=="touch"&&(this.touch1[1]=Y.invert(this.touch1[0])),this.that.__zoom=Y,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(W){var Y=j0(this.that).datum();u.call(W,this.that,new Wee(W,{sourceEvent:this.sourceEvent,target:v,type:W,transform:this.that.__zoom,dispatch:u}),Y)}};function k(W,...Y){if(!t.apply(this,arguments))return;var B=D(this,Y).event(W),q=this.__zoom,F=Math.max(i[0],Math.min(i[1],q.k*Math.pow(2,n.apply(this,arguments)))),z=lc(W);if(B.wheel)(B.mouse[0][0]!==z[0]||B.mouse[0][1]!==z[1])&&(B.mouse[1]=q.invert(B.mouse[0]=z)),clearTimeout(B.wheel);else{if(q.k===F)return;B.mouse=[z,q.invert(z)],Xm(this),B.start()}kb(W),B.wheel=setTimeout(L,g),B.zoom("mouse",r(A(b(q,F),B.mouse[0],B.mouse[1]),B.extent,a));function L(){B.wheel=null,B.end()}}function E(W,...Y){if(c||!t.apply(this,arguments))return;var B=W.currentTarget,q=D(this,Y,!0).event(W),F=j0(W.view).on("mousemove.zoom",K,!0).on("mouseup.zoom",H,!0),z=lc(W,B),L=W.clientX,N=W.clientY;LD(W.view),BR(W),q.mouse=[z,this.__zoom.invert(z)],Xm(this),q.start();function K(P){if(kb(P),!q.moved){var x=P.clientX-L,te=P.clientY-N;q.moved=x*x+te*te>p}q.event(P).zoom("mouse",r(A(q.that.__zoom,q.mouse[0]=lc(P,B),q.mouse[1]),q.extent,a))}function H(P){F.on("mousemove.zoom mouseup.zoom",null),HD(P.view,q.moved),kb(P),q.event(P).end()}}function T(W,...Y){if(t.apply(this,arguments)){var B=this.__zoom,q=lc(W.changedTouches?W.changedTouches[0]:W,this),F=B.invert(q),z=B.k*(W.shiftKey?.5:2),L=r(A(b(B,z),q,F),e.apply(this,Y),a);kb(W),s>0?j0(this).transition().duration(s).call(C,L,q,W):j0(this).call(v.transform,L,q,W)}}function j(W,...Y){if(t.apply(this,arguments)){var B=W.touches,q=B.length,F=D(this,Y,W.changedTouches.length===q).event(W),z,L,N,K;for(BR(W),L=0;L"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:t=>`Node type "${t}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:t=>`The old edge with id=${t} does not exist.`,error009:t=>`Marker type "${t}" doesn't exist.`,error008:(t,e)=>`Couldn't create edge for ${t?"target":"source"} handle id: "${t?e.targetHandle:e.sourceHandle}", edge id: ${e.id}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:t=>`Edge type "${t}" not found. Using fallback type "default".`,error012:t=>`Node with id "${t}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`},hbe=Df.error001();function Qa(t,e){let r=(0,Mt.useContext)(VR);if(r===null)throw new Error(hbe);return Iee(r,t,e)}var f1=()=>{let t=(0,Mt.useContext)(VR);if(t===null)throw new Error(hbe);return(0,Mt.useMemo)(()=>({getState:t.getState,setState:t.setState,subscribe:t.subscribe,destroy:t.destroy}),[t])},j8t=t=>t.userSelectionActive?"none":"all";function t9(i){var a=i,{position:t,children:e,className:r,style:n}=a,o=Eo(a,["position","children","className","style"]);let s=Qa(j8t),l=`${t}`.split("-");return Mt.default.createElement("div",Je({className:Ks(["react-flow__panel",r,...l]),style:lr(Je({},n),{pointerEvents:s})},o),e)}function Q8t({proOptions:t,position:e="bottom-right"}){return t?.hideAttribution?null:Mt.default.createElement(t9,{position:e,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://reactflow.dev/pro"},Mt.default.createElement("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution"},"React Flow"))}var U8t=f=>{var c=f,{x:t,y:e,label:r,labelStyle:n={},labelShowBg:o=!0,labelBgStyle:i={},labelBgPadding:a=[2,4],labelBgBorderRadius:s=2,children:l,className:u}=c,d=Eo(c,["x","y","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","children","className"]);let h=(0,Mt.useRef)(null),[g,p]=(0,Mt.useState)({x:0,y:0,width:0,height:0}),m=Ks(["react-flow__edge-textwrapper",u]);return(0,Mt.useEffect)(()=>{if(h.current){let v=h.current.getBBox();p({x:v.x,y:v.y,width:v.width,height:v.height})}},[r]),typeof r>"u"||!r?null:Mt.default.createElement("g",Je({transform:`translate(${t-g.width/2} ${e-g.height/2})`,className:m,visibility:g.width?"visible":"hidden"},d),o&&Mt.default.createElement("rect",{width:g.width+2*a[0],x:-a[0],y:-a[1],height:g.height+2*a[1],className:"react-flow__edge-textbg",style:i,rx:s,ry:s}),Mt.default.createElement("text",{className:"react-flow__edge-text",y:g.height/2,dy:"0.3em",ref:h,style:n},r),l)},W8t=(0,Mt.memo)(U8t),ste=t=>({width:t.offsetWidth,height:t.offsetHeight}),zb=(t,e=0,r=1)=>Math.min(Math.max(t,e),r),lte=(t={x:0,y:0},e)=>({x:zb(t.x,e[0][0],e[1][0]),y:zb(t.y,e[0][1],e[1][1])}),UAe=(t,e,r)=>tr?-zb(Math.abs(t-r),1,50)/50:0,pbe=(t,e)=>{let r=UAe(t.x,35,e.width-35)*20,n=UAe(t.y,35,e.height-35)*20;return[r,n]},gbe=t=>t.getRootNode?.()||window?.document,mbe=(t,e)=>({x:Math.min(t.x,e.x),y:Math.min(t.y,e.y),x2:Math.max(t.x2,e.x2),y2:Math.max(t.y2,e.y2)}),iI=({x:t,y:e,width:r,height:n})=>({x:t,y:e,x2:t+r,y2:e+n}),vbe=({x:t,y:e,x2:r,y2:n})=>({x:t,y:e,width:r-t,height:n-e}),WAe=t=>lr(Je({},t.positionAbsolute||{x:0,y:0}),{width:t.width||0,height:t.height||0}),ybe=(t,e)=>vbe(mbe(iI(t),iI(e))),Xee=(t,e)=>{let r=Math.max(0,Math.min(t.x+t.width,e.x+e.width)-Math.max(t.x,e.x)),n=Math.max(0,Math.min(t.y+t.height,e.y+e.height)-Math.max(t.y,e.y));return Math.ceil(r*n)},G8t=t=>Vd(t.width)&&Vd(t.height)&&Vd(t.x)&&Vd(t.y),Vd=t=>!isNaN(t)&&isFinite(t),d1=Symbol.for("internals"),Abe=["Enter"," ","Escape"],bbe=(t,e)=>{},$8t=t=>"nativeEvent"in t;function Jee(t){let r=($8t(t)?t.nativeEvent:t).composedPath?.()?.[0]||t.target;return["INPUT","SELECT","TEXTAREA"].includes(r?.nodeName)||r?.hasAttribute("contenteditable")||!!r?.closest(".nokey")}var xbe=t=>"clientX"in t,v8=(t,e)=>{let r=xbe(t),n=r?t.clientX:t.touches?.[0].clientX,o=r?t.clientY:t.touches?.[0].clientY;return{x:n-(e?.left??0),y:o-(e?.top??0)}},zR=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0,sI=({id:t,path:e,labelX:r,labelY:n,label:o,labelStyle:i,labelShowBg:a,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:u,style:d,markerEnd:f,markerStart:c,interactionWidth:h=20})=>Mt.default.createElement(Mt.default.Fragment,null,Mt.default.createElement("path",{id:t,style:d,d:e,fill:"none",className:"react-flow__edge-path",markerEnd:f,markerStart:c}),h&&Mt.default.createElement("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:h,className:"react-flow__edge-interaction"}),o&&Vd(r)&&Vd(n)?Mt.default.createElement(W8t,{x:r,y:n,label:o,labelStyle:i,labelShowBg:a,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:u}):null);sI.displayName="BaseEdge";function rI(t,e,r){return r===void 0?r:n=>{let o=e().edges.find(i=>i.id===t);o&&r(n,Je({},o))}}function wbe({sourceX:t,sourceY:e,targetX:r,targetY:n}){let o=Math.abs(r-t)/2,i=r{let[m,v,b]=Ebe({sourceX:t,sourceY:e,sourcePosition:o,targetX:r,targetY:n,targetPosition:i});return Mt.default.createElement(sI,{path:m,labelX:v,labelY:b,label:a,labelStyle:s,labelShowBg:l,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:f,style:c,markerEnd:h,markerStart:g,interactionWidth:p})});cte.displayName="SimpleBezierEdge";var $Ae={[go.Left]:{x:-1,y:0},[go.Right]:{x:1,y:0},[go.Top]:{x:0,y:-1},[go.Bottom]:{x:0,y:1}},Z8t=({source:t,sourcePosition:e=go.Bottom,target:r})=>e===go.Left||e===go.Right?t.xMath.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2));function K8t({source:t,sourcePosition:e=go.Bottom,target:r,targetPosition:n=go.Top,center:o,offset:i}){let a=$Ae[e],s=$Ae[n],l={x:t.x+a.x*i,y:t.y+a.y*i},u={x:r.x+s.x*i,y:r.y+s.y*i},d=Z8t({source:l,sourcePosition:e,target:u}),f=d.x!==0?"x":"y",c=d[f],h=[],g,p,m={x:0,y:0},v={x:0,y:0},[b,A,y,C]=wbe({sourceX:t.x,sourceY:t.y,targetX:r.x,targetY:r.y});if(a[f]*s[f]===-1){g=o.x??b,p=o.y??A;let I=[{x:g,y:l.y},{x:g,y:u.y}],k=[{x:l.x,y:p},{x:u.x,y:p}];a[f]===c?h=f==="x"?I:k:h=f==="x"?k:I}else{let I=[{x:l.x,y:u.y}],k=[{x:u.x,y:l.y}];if(f==="x"?h=a.x===c?k:I:h=a.y===c?I:k,e===n){let $=Math.abs(t[f]-r[f]);if($<=i){let W=Math.min(i-1,i-$);a[f]===c?m[f]=(l[f]>t[f]?-1:1)*W:v[f]=(u[f]>r[f]?-1:1)*W}}if(e!==n){let $=f==="x"?"y":"x",W=a[f]===s[$],Y=l[$]>u[$],B=l[$]=O?(g=(E.x+T.x)/2,p=h[0].y):(g=h[0].x,p=(E.y+T.y)/2)}return[[t,{x:l.x+m.x,y:l.y+m.y},...h,{x:u.x+v.x,y:u.y+v.y},r],g,p,y,C]}function Y8t(t,e,r,n){let o=Math.min(ZAe(t,e)/2,ZAe(e,r)/2,n),{x:i,y:a}=e;if(t.x===i&&i===r.x||t.y===a&&a===r.y)return`L${i} ${a}`;if(t.y===a){let u=t.x{let A="";return b>0&&b{let[v,b,A]=tte({sourceX:t,sourceY:e,sourcePosition:f,targetX:r,targetY:n,targetPosition:c,borderRadius:p?.borderRadius,offset:p?.offset});return Mt.default.createElement(sI,{path:v,labelX:b,labelY:A,label:o,labelStyle:i,labelShowBg:a,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:u,style:d,markerEnd:h,markerStart:g,interactionWidth:m})});jR.displayName="SmoothStepEdge";var ute=(0,Mt.memo)(t=>Mt.default.createElement(jR,lr(Je({},t),{pathOptions:(0,Mt.useMemo)(()=>({borderRadius:0,offset:t.pathOptions?.offset}),[t.pathOptions?.offset])})));ute.displayName="StepEdge";function q8t({sourceX:t,sourceY:e,targetX:r,targetY:n}){let[o,i,a,s]=wbe({sourceX:t,sourceY:e,targetX:r,targetY:n});return[`M ${t},${e}L ${r},${n}`,o,i,a,s]}var dte=(0,Mt.memo)(({sourceX:t,sourceY:e,targetX:r,targetY:n,label:o,labelStyle:i,labelShowBg:a,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:u,style:d,markerEnd:f,markerStart:c,interactionWidth:h})=>{let[g,p,m]=q8t({sourceX:t,sourceY:e,targetX:r,targetY:n});return Mt.default.createElement(sI,{path:g,labelX:p,labelY:m,label:o,labelStyle:i,labelShowBg:a,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:u,style:d,markerEnd:f,markerStart:c,interactionWidth:h})});dte.displayName="StraightEdge";function FR(t,e){return t>=0?.5*t:e*25*Math.sqrt(-t)}function KAe({pos:t,x1:e,y1:r,x2:n,y2:o,c:i}){switch(t){case go.Left:return[e-FR(e-n,i),r];case go.Right:return[e+FR(n-e,i),r];case go.Top:return[e,r-FR(r-o,i)];case go.Bottom:return[e,r+FR(o-r,i)]}}function Sbe({sourceX:t,sourceY:e,sourcePosition:r=go.Bottom,targetX:n,targetY:o,targetPosition:i=go.Top,curvature:a=.25}){let[s,l]=KAe({pos:r,x1:t,y1:e,x2:n,y2:o,c:a}),[u,d]=KAe({pos:i,x1:n,y1:o,x2:t,y2:e,c:a}),[f,c,h,g]=Cbe({sourceX:t,sourceY:e,targetX:n,targetY:o,sourceControlX:s,sourceControlY:l,targetControlX:u,targetControlY:d});return[`M${t},${e} C${s},${l} ${u},${d} ${n},${o}`,f,c,h,g]}var HR=(0,Mt.memo)(({sourceX:t,sourceY:e,targetX:r,targetY:n,sourcePosition:o=go.Bottom,targetPosition:i=go.Top,label:a,labelStyle:s,labelShowBg:l,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:f,style:c,markerEnd:h,markerStart:g,pathOptions:p,interactionWidth:m})=>{let[v,b,A]=Sbe({sourceX:t,sourceY:e,sourcePosition:o,targetX:r,targetY:n,targetPosition:i,curvature:p?.curvature});return Mt.default.createElement(sI,{path:v,labelX:b,labelY:A,label:a,labelStyle:s,labelShowBg:l,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:f,style:c,markerEnd:h,markerStart:g,interactionWidth:m})});HR.displayName="BezierEdge";var fte=(0,Mt.createContext)(null),X8t=fte.Provider;fte.Consumer;var J8t=()=>(0,Mt.useContext)(fte),e7t=t=>"id"in t&&"source"in t&&"target"in t;var t7t=({source:t,sourceHandle:e,target:r,targetHandle:n})=>`reactflow__edge-${t}${e||""}-${r}${n||""}`,rte=(t,e)=>typeof t>"u"?"":typeof t=="string"?t:`${e?`${e}__`:""}${Object.keys(t).sort().map(n=>`${n}=${t[n]}`).join("&")}`,r7t=(t,e)=>e.some(r=>r.source===t.source&&r.target===t.target&&(r.sourceHandle===t.sourceHandle||!r.sourceHandle&&!t.sourceHandle)&&(r.targetHandle===t.targetHandle||!r.targetHandle&&!t.targetHandle)),n7t=(t,e)=>{if(!t.source||!t.target)return bbe("006",Df.error006()),e;let r;return e7t(t)?r=Je({},t):r=lr(Je({},t),{id:t7t(t)}),r7t(r,e)?e:e.concat(r)};var nte=({x:t,y:e},[r,n,o],i,[a,s])=>{let l={x:(t-r)/o,y:(e-n)/o};return i?{x:a*Math.round(l.x/a),y:s*Math.round(l.y/s)}:l},Dbe=({x:t,y:e},[r,n,o])=>({x:t*o+r,y:e*o+n}),y8=(t,e=[0,0])=>{if(!t)return{x:0,y:0,positionAbsolute:{x:0,y:0}};let r=(t.width??0)*e[0],n=(t.height??0)*e[1],o={x:t.position.x-r,y:t.position.y-n};return lr(Je({},o),{positionAbsolute:t.positionAbsolute?{x:t.positionAbsolute.x-r,y:t.positionAbsolute.y-n}:o})},lI=(t,e=[0,0])=>{if(t.length===0)return{x:0,y:0,width:0,height:0};let r=t.reduce((n,o)=>{let{x:i,y:a}=y8(o,e).positionAbsolute;return mbe(n,iI({x:i,y:a,width:o.width||0,height:o.height||0}))},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return vbe(r)};var Ibe=(t,e,[r,n,o]=[0,0,1],i=!1,a=!1,s=[0,0])=>{let l={x:(e.x-r)/o,y:(e.y-n)/o,width:e.width/o,height:e.height/o},u=[];return t.forEach(d=>{let{width:f,height:c,selectable:h=!0,hidden:g=!1}=d;if(a&&!h||g)return!1;let{positionAbsolute:p}=y8(d,s),m={x:p.x,y:p.y,width:f||0,height:c||0},v=Xee(l,m),b=typeof f>"u"||typeof c>"u"||f===null||c===null,A=i&&v>0,y=(f||0)*(c||0);(b||A||v>=y||d.dragging)&&u.push(d)}),u},_be=(t,e)=>{let r=t.map(n=>n.id);return e.filter(n=>r.includes(n.source)||r.includes(n.target))};var Mbe=(t,e,r,n,o,i=.1)=>{let a=e/(t.width*(1+i)),s=r/(t.height*(1+i)),l=Math.min(a,s),u=zb(l,n,o),d=t.x+t.width/2,f=t.y+t.height/2,c=e/2-d*u,h=r/2-f*u;return{x:c,y:h,zoom:u}},Jm=(t,e=0)=>t.transition().duration(e);function YAe(t,e,r,n){return(e[r]||[]).reduce((o,i)=>(`${t.id}-${i.id}-${r}`!==n&&o.push({id:i.id||null,type:r,nodeId:t.id,x:(t.positionAbsolute?.x??0)+i.x+i.width/2,y:(t.positionAbsolute?.y??0)+i.y+i.height/2}),o),[])}function o7t(t,e,r,n,o,i){let{x:a,y:s}=v8(t),u=e.elementsFromPoint(a,s).find(g=>g.classList.contains("react-flow__handle"));if(u){let g=u.getAttribute("data-nodeid");if(g){let p=hte(void 0,u),m=u.getAttribute("data-handleid"),v=i({nodeId:g,id:m,type:p});if(v){let b=o.find(A=>A.nodeId===g&&A.type===p&&A.id===m);return{handle:{id:m,type:p,nodeId:g,x:b?.x||r.x,y:b?.y||r.y},validHandleResult:v}}}}let d=[],f=1/0;if(o.forEach(g=>{let p=Math.sqrt((g.x-r.x)**2+(g.y-r.y)**2);if(p<=n){let m=i(g);p<=f&&(pg.isValid),h=d.some(({handle:g})=>g.type==="target");return d.find(({handle:g,validHandleResult:p})=>h?g.type==="target":c?p.isValid:!0)||d[0]}var i7t={source:null,target:null,sourceHandle:null,targetHandle:null},kbe=()=>({handleDomNode:null,isValid:!1,connection:i7t,endHandle:null});function Tbe(t,e,r,n,o,i,a){let s=o==="target",l=a.querySelector(`.react-flow__handle[data-id="${t?.nodeId}-${t?.id}-${t?.type}"]`),u=lr(Je({},kbe()),{handleDomNode:l});if(l){let d=hte(void 0,l),f=l.getAttribute("data-nodeid"),c=l.getAttribute("data-handleid"),h=l.classList.contains("connectable"),g=l.classList.contains("connectableend"),p={source:s?f:r,sourceHandle:s?c:n,target:s?r:f,targetHandle:s?n:c};u.connection=p,h&&g&&(e===Lb.Strict?s&&d==="source"||!s&&d==="target":f!==r||c!==n)&&(u.endHandle={nodeId:f,handleId:c,type:d},u.isValid=i(p))}return u}function a7t({nodes:t,nodeId:e,handleId:r,handleType:n}){return t.reduce((o,i)=>{if(i[d1]){let{handleBounds:a}=i[d1],s=[],l=[];a&&(s=YAe(i,a,"source",`${e}-${r}-${n}`),l=YAe(i,a,"target",`${e}-${r}-${n}`)),o.push(...s,...l)}return o},[])}function hte(t,e){return t||(e?.classList.contains("target")?"target":e?.classList.contains("source")?"source":null)}function $ee(t){t?.classList.remove("valid","connecting","react-flow__handle-valid","react-flow__handle-connecting")}function s7t(t,e){let r=null;return e?r="valid":t&&!e&&(r="invalid"),r}function Obe({event:t,handleId:e,nodeId:r,onConnect:n,isTarget:o,getState:i,setState:a,isValidConnection:s,edgeUpdaterType:l,onEdgeUpdateEnd:u}){let d=gbe(t.target),{connectionMode:f,domNode:c,autoPanOnConnect:h,connectionRadius:g,onConnectStart:p,panBy:m,getNodes:v,cancelConnection:b}=i(),A=0,y,{x:C,y:D}=v8(t),I=d?.elementFromPoint(C,D),k=hte(l,I),E=c?.getBoundingClientRect();if(!E||!k)return;let T,j=v8(t,E),O=!1,$=null,W=!1,Y=null,B=a7t({nodes:v(),nodeId:r,handleId:e,handleType:k}),q=()=>{if(!h)return;let[L,N]=pbe(j,E);m({x:L,y:N}),A=requestAnimationFrame(q)};a({connectionPosition:j,connectionStatus:null,connectionNodeId:r,connectionHandleId:e,connectionHandleType:k,connectionStartHandle:{nodeId:r,handleId:e,type:k},connectionEndHandle:null}),p?.(t,{nodeId:r,handleId:e,handleType:k});function F(L){let{transform:N}=i();j=v8(L,E);let{handle:K,validHandleResult:H}=o7t(L,d,nte(j,N,!1,[1,1]),g,B,P=>Tbe(P,f,r,e,o?"target":"source",s,d));if(y=K,O||(q(),O=!0),Y=H.handleDomNode,$=H.connection,W=H.isValid,a({connectionPosition:y&&W?Dbe({x:y.x,y:y.y},N):j,connectionStatus:s7t(!!y,W),connectionEndHandle:H.endHandle}),!y&&!W&&!Y)return $ee(T);$.source!==$.target&&Y&&($ee(T),T=Y,Y.classList.add("connecting","react-flow__handle-connecting"),Y.classList.toggle("valid",W),Y.classList.toggle("react-flow__handle-valid",W))}function z(L){(y||Y)&&$&&W&&n?.($),i().onConnectEnd?.(L),l&&u?.(L),$ee(T),b(),cancelAnimationFrame(A),O=!1,W=!1,$=null,Y=null,d.removeEventListener("mousemove",F),d.removeEventListener("mouseup",z),d.removeEventListener("touchmove",F),d.removeEventListener("touchend",z)}d.addEventListener("mousemove",F),d.addEventListener("mouseup",z),d.addEventListener("touchmove",F),d.addEventListener("touchend",z)}var qAe=()=>!0,l7t=t=>({connectionStartHandle:t.connectionStartHandle,connectOnClick:t.connectOnClick,noPanClassName:t.noPanClassName}),c7t=(t,e,r)=>n=>{let{connectionStartHandle:o,connectionEndHandle:i,connectionClickStartHandle:a}=n;return{connecting:o?.nodeId===t&&o?.handleId===e&&o?.type===r||i?.nodeId===t&&i?.handleId===e&&i?.type===r,clickConnecting:a?.nodeId===t&&a?.handleId===e&&a?.type===r}},Bbe=(0,Mt.forwardRef)((g,h)=>{var p=g,{type:t="source",position:e=go.Top,isValidConnection:r,isConnectable:n=!0,isConnectableStart:o=!0,isConnectableEnd:i=!0,id:a,onConnect:s,children:l,className:u,onMouseDown:d,onTouchStart:f}=p,c=Eo(p,["type","position","isValidConnection","isConnectable","isConnectableStart","isConnectableEnd","id","onConnect","children","className","onMouseDown","onTouchStart"]);let m=a||null,v=t==="target",b=f1(),A=J8t(),{connectOnClick:y,noPanClassName:C}=Qa(l7t,c1),{connecting:D,clickConnecting:I}=Qa(c7t(A,m,t),c1);A||b.getState().onError?.("010",Df.error010());let k=j=>{let{defaultEdgeOptions:O,onConnect:$,hasDefaultEdges:W}=b.getState(),Y=Je(Je({},O),j);if(W){let{edges:B,setEdges:q}=b.getState();q(n7t(Y,B))}$?.(Y),s?.(Y)},E=j=>{if(!A)return;let O=xbe(j);o&&(O&&j.button===0||!O)&&Obe({event:j,handleId:m,nodeId:A,onConnect:k,isTarget:v,getState:b.getState,setState:b.setState,isValidConnection:r||b.getState().isValidConnection||qAe}),O?d?.(j):f?.(j)},T=j=>{let{onClickConnectStart:O,onClickConnectEnd:$,connectionClickStartHandle:W,connectionMode:Y,isValidConnection:B}=b.getState();if(!A||!W&&!o)return;if(!W){O?.(j,{nodeId:A,handleId:m,handleType:t}),b.setState({connectionClickStartHandle:{nodeId:A,type:t,handleId:m}});return}let q=gbe(j.target),F=r||B||qAe,{connection:z,isValid:L}=Tbe({nodeId:A,id:m,type:t},Y,W.nodeId,W.handleId||null,W.type,F,q);L&&k(z),$?.(j),b.setState({connectionClickStartHandle:null})};return Mt.default.createElement("div",Je({"data-handleid":m,"data-nodeid":A,"data-handlepos":e,"data-id":`${A}-${m}-${t}`,className:Ks(["react-flow__handle",`react-flow__handle-${e}`,"nodrag",C,u,{source:!v,target:v,connectable:n,connectablestart:o,connectableend:i,connecting:I,connectionindicator:n&&(o&&!D||i&&D)}]),onMouseDown:E,onTouchStart:E,onClick:y?T:void 0,ref:h},c),l)});Bbe.displayName="Handle";var P5=(0,Mt.memo)(Bbe),Fbe=({data:t,isConnectable:e,targetPosition:r=go.Top,sourcePosition:n=go.Bottom})=>Mt.default.createElement(Mt.default.Fragment,null,Mt.default.createElement(P5,{type:"target",position:r,isConnectable:e}),t?.label,Mt.default.createElement(P5,{type:"source",position:n,isConnectable:e}));Fbe.displayName="DefaultNode";var ote=(0,Mt.memo)(Fbe),Nbe=({data:t,isConnectable:e,sourcePosition:r=go.Bottom})=>Mt.default.createElement(Mt.default.Fragment,null,t?.label,Mt.default.createElement(P5,{type:"source",position:r,isConnectable:e}));Nbe.displayName="InputNode";var Rbe=(0,Mt.memo)(Nbe),Pbe=({data:t,isConnectable:e,targetPosition:r=go.Top})=>Mt.default.createElement(Mt.default.Fragment,null,Mt.default.createElement(P5,{type:"target",position:r,isConnectable:e}),t?.label);Pbe.displayName="OutputNode";var zbe=(0,Mt.memo)(Pbe),pte=()=>null;pte.displayName="GroupNode";var u7t=t=>({selectedNodes:t.getNodes().filter(e=>e.selected),selectedEdges:t.edges.filter(e=>e.selected)}),NR=t=>t.id;function d7t(t,e){return c1(t.selectedNodes.map(NR),e.selectedNodes.map(NR))&&c1(t.selectedEdges.map(NR),e.selectedEdges.map(NR))}var Lbe=(0,Mt.memo)(({onSelectionChange:t})=>{let e=f1(),{selectedNodes:r,selectedEdges:n}=Qa(u7t,d7t);return(0,Mt.useEffect)(()=>{let o={nodes:r,edges:n};t?.(o),e.getState().onSelectionChange.forEach(i=>i(o))},[r,n,t]),null});Lbe.displayName="SelectionListener";var f7t=t=>!!t.onSelectionChange;function h7t({onSelectionChange:t}){let e=Qa(f7t);return t||e?Mt.default.createElement(Lbe,{onSelectionChange:t}):null}var p7t=t=>({setNodes:t.setNodes,setEdges:t.setEdges,setDefaultNodesAndEdges:t.setDefaultNodesAndEdges,setMinZoom:t.setMinZoom,setMaxZoom:t.setMaxZoom,setTranslateExtent:t.setTranslateExtent,setNodeExtent:t.setNodeExtent,reset:t.reset});function Tb(t,e){(0,Mt.useEffect)(()=>{typeof t<"u"&&e(t)},[t])}function _i(t,e,r){(0,Mt.useEffect)(()=>{typeof e<"u"&&r({[t]:e})},[e])}var g7t=({nodes:t,edges:e,defaultNodes:r,defaultEdges:n,onConnect:o,onConnectStart:i,onConnectEnd:a,onClickConnectStart:s,onClickConnectEnd:l,nodesDraggable:u,nodesConnectable:d,nodesFocusable:f,edgesFocusable:c,edgesUpdatable:h,elevateNodesOnSelect:g,minZoom:p,maxZoom:m,nodeExtent:v,onNodesChange:b,onEdgesChange:A,elementsSelectable:y,connectionMode:C,snapGrid:D,snapToGrid:I,translateExtent:k,connectOnClick:E,defaultEdgeOptions:T,fitView:j,fitViewOptions:O,onNodesDelete:$,onEdgesDelete:W,onNodeDrag:Y,onNodeDragStart:B,onNodeDragStop:q,onSelectionDrag:F,onSelectionDragStart:z,onSelectionDragStop:L,noPanClassName:N,nodeOrigin:K,rfId:H,autoPanOnConnect:P,autoPanOnNodeDrag:x,onError:te,connectionRadius:V,isValidConnection:Q,nodeDragThreshold:U})=>{let{setNodes:X,setEdges:le,setDefaultNodesAndEdges:se,setMinZoom:ae,setMaxZoom:Z,setTranslateExtent:oe,setNodeExtent:pe,reset:xe}=Qa(p7t,c1),ee=f1();return(0,Mt.useEffect)(()=>{let de=n?.map(ce=>Je(Je({},ce),T));return se(r,de),()=>{xe()}},[]),_i("defaultEdgeOptions",T,ee.setState),_i("connectionMode",C,ee.setState),_i("onConnect",o,ee.setState),_i("onConnectStart",i,ee.setState),_i("onConnectEnd",a,ee.setState),_i("onClickConnectStart",s,ee.setState),_i("onClickConnectEnd",l,ee.setState),_i("nodesDraggable",u,ee.setState),_i("nodesConnectable",d,ee.setState),_i("nodesFocusable",f,ee.setState),_i("edgesFocusable",c,ee.setState),_i("edgesUpdatable",h,ee.setState),_i("elementsSelectable",y,ee.setState),_i("elevateNodesOnSelect",g,ee.setState),_i("snapToGrid",I,ee.setState),_i("snapGrid",D,ee.setState),_i("onNodesChange",b,ee.setState),_i("onEdgesChange",A,ee.setState),_i("connectOnClick",E,ee.setState),_i("fitViewOnInit",j,ee.setState),_i("fitViewOnInitOptions",O,ee.setState),_i("onNodesDelete",$,ee.setState),_i("onEdgesDelete",W,ee.setState),_i("onNodeDrag",Y,ee.setState),_i("onNodeDragStart",B,ee.setState),_i("onNodeDragStop",q,ee.setState),_i("onSelectionDrag",F,ee.setState),_i("onSelectionDragStart",z,ee.setState),_i("onSelectionDragStop",L,ee.setState),_i("noPanClassName",N,ee.setState),_i("nodeOrigin",K,ee.setState),_i("rfId",H,ee.setState),_i("autoPanOnConnect",P,ee.setState),_i("autoPanOnNodeDrag",x,ee.setState),_i("onError",te,ee.setState),_i("connectionRadius",V,ee.setState),_i("isValidConnection",Q,ee.setState),_i("nodeDragThreshold",U,ee.setState),Tb(t,X),Tb(e,le),Tb(p,ae),Tb(m,Z),Tb(k,oe),Tb(v,pe),null},XAe={display:"none"},m7t={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},Hbe="react-flow__node-desc",Vbe="react-flow__edge-desc",v7t="react-flow__aria-live",y7t=t=>t.ariaLiveMessage;function A7t({rfId:t}){let e=Qa(y7t);return Mt.default.createElement("div",{id:`${v7t}-${t}`,"aria-live":"assertive","aria-atomic":"true",style:m7t},e)}function b7t({rfId:t,disableKeyboardA11y:e}){return Mt.default.createElement(Mt.default.Fragment,null,Mt.default.createElement("div",{id:`${Hbe}-${t}`,style:XAe},"Press enter or space to select a node.",!e&&"You can then use the arrow keys to move the node around."," Press delete to remove it and escape to cancel."," "),Mt.default.createElement("div",{id:`${Vbe}-${t}`,style:XAe},"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel."),!e&&Mt.default.createElement(A7t,{rfId:t}))}var aI=(t=null,e={actInsideInputWithModifier:!0})=>{let[r,n]=(0,Mt.useState)(!1),o=(0,Mt.useRef)(!1),i=(0,Mt.useRef)(new Set([])),[a,s]=(0,Mt.useMemo)(()=>{if(t!==null){let u=(Array.isArray(t)?t:[t]).filter(f=>typeof f=="string").map(f=>f.split("+")),d=u.reduce((f,c)=>f.concat(...c),[]);return[u,d]}return[[],[]]},[t]);return(0,Mt.useEffect)(()=>{let l=typeof document<"u"?document:null,u=e?.target||l;if(t!==null){let d=h=>{if(o.current=h.ctrlKey||h.metaKey||h.shiftKey,(!o.current||o.current&&!e.actInsideInputWithModifier)&&Jee(h))return!1;let p=ebe(h.code,s);i.current.add(h[p]),JAe(a,i.current,!1)&&(h.preventDefault(),n(!0))},f=h=>{if((!o.current||o.current&&!e.actInsideInputWithModifier)&&Jee(h))return!1;let p=ebe(h.code,s);JAe(a,i.current,!0)?(n(!1),i.current.clear()):i.current.delete(h[p]),h.key==="Meta"&&i.current.clear(),o.current=!1},c=()=>{i.current.clear(),n(!1)};return u?.addEventListener("keydown",d),u?.addEventListener("keyup",f),window.addEventListener("blur",c),()=>{u?.removeEventListener("keydown",d),u?.removeEventListener("keyup",f),window.removeEventListener("blur",c)}}},[t,n]),r};function JAe(t,e,r){return t.filter(n=>r||n.length===e.size).some(n=>n.every(o=>e.has(o)))}function ebe(t,e){return e.includes(t)?"code":"key"}function jbe(t,e,r,n){let o=t.parentNode||t.parentId;if(!o)return r;let i=e.get(o),a=y8(i,n);return jbe(i,e,{x:(r.x??0)+a.x,y:(r.y??0)+a.y,z:(i[d1]?.z??0)>(r.z??0)?i[d1]?.z??0:r.z??0},n)}function Qbe(t,e,r){t.forEach(n=>{let o=n.parentNode||n.parentId;if(o&&!t.has(o))throw new Error(`Parent node ${o} not found`);if(o||r?.[n.id]){let{x:i,y:a,z:s}=jbe(n,t,lr(Je({},n.position),{z:n[d1]?.z??0}),e);n.positionAbsolute={x:i,y:a},n[d1].z=s,r?.[n.id]&&(n[d1].isParent=!0)}})}function Zee(t,e,r,n){let o=new Map,i={},a=n?1e3:0;return t.forEach(s=>{let l=(Vd(s.zIndex)?s.zIndex:0)+(s.selected?a:0),u=e.get(s.id),d=lr(Je({},s),{positionAbsolute:{x:s.position.x,y:s.position.y}}),f=s.parentNode||s.parentId;f&&(i[f]=!0);let c=u?.type&&u?.type!==s.type;Object.defineProperty(d,d1,{enumerable:!1,value:{handleBounds:c?void 0:u?.[d1]?.handleBounds,z:l}}),o.set(s.id,d)}),Qbe(o,r,i),o}function Ube(t,e={}){let{getNodes:r,width:n,height:o,minZoom:i,maxZoom:a,d3Zoom:s,d3Selection:l,fitViewOnInitDone:u,fitViewOnInit:d,nodeOrigin:f}=t(),c=e.initial&&!u&&d;if(s&&l&&(c||!e.initial)){let g=r().filter(m=>{let v=e.includeHiddenNodes?m.width&&m.height:!m.hidden;return e.nodes?.length?v&&e.nodes.some(b=>b.id===m.id):v}),p=g.every(m=>m.width&&m.height);if(g.length>0&&p){let m=lI(g,f),{x:v,y:b,zoom:A}=Mbe(m,n,o,e.minZoom??i,e.maxZoom??a,e.padding??.1),y=Q2.translate(v,b).scale(A);return typeof e.duration=="number"&&e.duration>0?s.transform(Jm(l,e.duration),y):s.transform(l,y),!0}}return!1}function x7t(t,e){return t.forEach(r=>{let n=e.get(r.id);n&&e.set(n.id,lr(Je({},n),{[d1]:n[d1],selected:r.selected}))}),new Map(e)}function w7t(t,e){return e.map(r=>{let n=t.find(o=>o.id===r.id);return n&&(r.selected=n.selected),r})}function RR({changedNodes:t,changedEdges:e,get:r,set:n}){let{nodeInternals:o,edges:i,onNodesChange:a,onEdgesChange:s,hasDefaultNodes:l,hasDefaultEdges:u}=r();t?.length&&(l&&n({nodeInternals:x7t(t,o)}),a?.(t)),e?.length&&(u&&n({edges:w7t(e,i)}),s?.(e))}var Ob=()=>{},C7t={zoomIn:Ob,zoomOut:Ob,zoomTo:Ob,getZoom:()=>1,setViewport:Ob,getViewport:()=>({x:0,y:0,zoom:1}),fitView:()=>!1,setCenter:Ob,fitBounds:Ob,project:t=>t,screenToFlowPosition:t=>t,flowToScreenPosition:t=>t,viewportInitialized:!1},E7t=t=>({d3Zoom:t.d3Zoom,d3Selection:t.d3Selection}),S7t=()=>{let t=f1(),{d3Zoom:e,d3Selection:r}=Qa(E7t,c1);return(0,Mt.useMemo)(()=>r&&e?{zoomIn:o=>e.scaleBy(Jm(r,o?.duration),1.2),zoomOut:o=>e.scaleBy(Jm(r,o?.duration),1/1.2),zoomTo:(o,i)=>e.scaleTo(Jm(r,i?.duration),o),getZoom:()=>t.getState().transform[2],setViewport:(o,i)=>{let[a,s,l]=t.getState().transform,u=Q2.translate(o.x??a,o.y??s).scale(o.zoom??l);e.transform(Jm(r,i?.duration),u)},getViewport:()=>{let[o,i,a]=t.getState().transform;return{x:o,y:i,zoom:a}},fitView:o=>Ube(t.getState,o),setCenter:(o,i,a)=>{let{width:s,height:l,maxZoom:u}=t.getState(),d=typeof a?.zoom<"u"?a.zoom:u,f=s/2-o*d,c=l/2-i*d,h=Q2.translate(f,c).scale(d);e.transform(Jm(r,a?.duration),h)},fitBounds:(o,i)=>{let{width:a,height:s,minZoom:l,maxZoom:u}=t.getState(),{x:d,y:f,zoom:c}=Mbe(o,a,s,l,u,i?.padding??.1),h=Q2.translate(d,f).scale(c);e.transform(Jm(r,i?.duration),h)},project:o=>{let{transform:i,snapToGrid:a,snapGrid:s}=t.getState();return console.warn("[DEPRECATED] `project` is deprecated. Instead use `screenToFlowPosition`. There is no need to subtract the react flow bounds anymore! https://reactflow.dev/api-reference/types/react-flow-instance#screen-to-flow-position"),nte(o,i,a,s)},screenToFlowPosition:o=>{let{transform:i,snapToGrid:a,snapGrid:s,domNode:l}=t.getState();if(!l)return o;let{x:u,y:d}=l.getBoundingClientRect(),f={x:o.x-u,y:o.y-d};return nte(f,i,a,s)},flowToScreenPosition:o=>{let{transform:i,domNode:a}=t.getState();if(!a)return o;let{x:s,y:l}=a.getBoundingClientRect(),u=Dbe(o,i);return{x:u.x+s,y:u.y+l}},viewportInitialized:!0}:C7t,[e,r])};function Hb(){let t=S7t(),e=f1(),r=(0,Mt.useCallback)(()=>e.getState().getNodes().map(p=>Je({},p)),[]),n=(0,Mt.useCallback)(p=>e.getState().nodeInternals.get(p),[]),o=(0,Mt.useCallback)(()=>{let{edges:p=[]}=e.getState();return p.map(m=>Je({},m))},[]),i=(0,Mt.useCallback)(p=>{let{edges:m=[]}=e.getState();return m.find(v=>v.id===p)},[]),a=(0,Mt.useCallback)(p=>{let{getNodes:m,setNodes:v,hasDefaultNodes:b,onNodesChange:A}=e.getState(),y=m(),C=typeof p=="function"?p(y):p;if(b)v(C);else if(A){let D=C.length===0?y.map(I=>({type:"remove",id:I.id})):C.map(I=>({item:I,type:"reset"}));A(D)}},[]),s=(0,Mt.useCallback)(p=>{let{edges:m=[],setEdges:v,hasDefaultEdges:b,onEdgesChange:A}=e.getState(),y=typeof p=="function"?p(m):p;if(b)v(y);else if(A){let C=y.length===0?m.map(D=>({type:"remove",id:D.id})):y.map(D=>({item:D,type:"reset"}));A(C)}},[]),l=(0,Mt.useCallback)(p=>{let m=Array.isArray(p)?p:[p],{getNodes:v,setNodes:b,hasDefaultNodes:A,onNodesChange:y}=e.getState();if(A){let D=[...v(),...m];b(D)}else if(y){let C=m.map(D=>({item:D,type:"add"}));y(C)}},[]),u=(0,Mt.useCallback)(p=>{let m=Array.isArray(p)?p:[p],{edges:v=[],setEdges:b,hasDefaultEdges:A,onEdgesChange:y}=e.getState();if(A)b([...v,...m]);else if(y){let C=m.map(D=>({item:D,type:"add"}));y(C)}},[]),d=(0,Mt.useCallback)(()=>{let{getNodes:p,edges:m=[],transform:v}=e.getState(),[b,A,y]=v;return{nodes:p().map(C=>Je({},C)),edges:m.map(C=>Je({},C)),viewport:{x:b,y:A,zoom:y}}},[]),f=(0,Mt.useCallback)(({nodes:p,edges:m})=>{let{nodeInternals:v,getNodes:b,edges:A,hasDefaultNodes:y,hasDefaultEdges:C,onNodesDelete:D,onEdgesDelete:I,onNodesChange:k,onEdgesChange:E}=e.getState(),T=(p||[]).map(Y=>Y.id),j=(m||[]).map(Y=>Y.id),O=b().reduce((Y,B)=>{let q=B.parentNode||B.parentId,F=!T.includes(B.id)&&q&&Y.find(L=>L.id===q);return(typeof B.deletable=="boolean"?B.deletable:!0)&&(T.includes(B.id)||F)&&Y.push(B),Y},[]),$=A.filter(Y=>typeof Y.deletable=="boolean"?Y.deletable:!0),W=$.filter(Y=>j.includes(Y.id));if(O||W){let Y=_be(O,$),B=[...W,...Y],q=B.reduce((F,z)=>(F.includes(z.id)||F.push(z.id),F),[]);if((C||y)&&(C&&e.setState({edges:A.filter(F=>!q.includes(F.id))}),y&&(O.forEach(F=>{v.delete(F.id)}),e.setState({nodeInternals:new Map(v)}))),q.length>0&&(I?.(B),E&&E(q.map(F=>({id:F,type:"remove"})))),O.length>0&&(D?.(O),k)){let F=O.map(z=>({id:z.id,type:"remove"}));k(F)}}},[]),c=(0,Mt.useCallback)(p=>{let m=G8t(p),v=m?null:e.getState().nodeInternals.get(p.id);return!m&&!v?[null,null,m]:[m?p:WAe(v),v,m]},[]),h=(0,Mt.useCallback)((p,m=!0,v)=>{let[b,A,y]=c(p);return b?(v||e.getState().getNodes()).filter(C=>{if(!y&&(C.id===A.id||!C.positionAbsolute))return!1;let D=WAe(C),I=Xee(D,b);return m&&I>0||I>=b.width*b.height}):[]},[]),g=(0,Mt.useCallback)((p,m,v=!0)=>{let[b]=c(p);if(!b)return!1;let A=Xee(b,m);return v&&A>0||A>=b.width*b.height},[]);return(0,Mt.useMemo)(()=>lr(Je({},t),{getNodes:r,getNode:n,getEdges:o,getEdge:i,setNodes:a,setEdges:s,addNodes:l,addEdges:u,toObject:d,deleteElements:f,getIntersectingNodes:h,isNodeIntersecting:g}),[t,r,n,o,i,a,s,l,u,d,f,h,g])}var D7t={actInsideInputWithModifier:!1},I7t=({deleteKeyCode:t,multiSelectionKeyCode:e})=>{let r=f1(),{deleteElements:n}=Hb(),o=aI(t,D7t),i=aI(e);(0,Mt.useEffect)(()=>{if(o){let{edges:a,getNodes:s}=r.getState(),l=s().filter(d=>d.selected),u=a.filter(d=>d.selected);n({nodes:l,edges:u}),r.setState({nodesSelectionActive:!1})}},[o]),(0,Mt.useEffect)(()=>{r.setState({multiSelectionActive:i})},[i])};function _7t(t){let e=f1();(0,Mt.useEffect)(()=>{let r,n=()=>{if(!t.current)return;let o=ste(t.current);(o.height===0||o.width===0)&&e.getState().onError?.("004",Df.error004()),e.setState({width:o.width||500,height:o.height||500})};return n(),window.addEventListener("resize",n),t.current&&(r=new ResizeObserver(()=>n()),r.observe(t.current)),()=>{window.removeEventListener("resize",n),r&&t.current&&r.unobserve(t.current)}},[])}var gte={position:"absolute",width:"100%",height:"100%",top:0,left:0},M7t=(t,e)=>t.x!==e.x||t.y!==e.y||t.zoom!==e.k,PR=t=>({x:t.x,y:t.y,zoom:t.k}),Bb=(t,e)=>t.target.closest(`.${e}`),tbe=(t,e)=>e===2&&Array.isArray(t)&&t.includes(2),rbe=t=>{let e=t.ctrlKey&&zR()?10:1;return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*e},k7t=t=>({d3Zoom:t.d3Zoom,d3Selection:t.d3Selection,d3ZoomHandler:t.d3ZoomHandler,userSelectionActive:t.userSelectionActive}),T7t=({onMove:t,onMoveStart:e,onMoveEnd:r,onPaneContextMenu:n,zoomOnScroll:o=!0,zoomOnPinch:i=!0,panOnScroll:a=!1,panOnScrollSpeed:s=.5,panOnScrollMode:l=Nb.Free,zoomOnDoubleClick:u=!0,elementsSelectable:d,panOnDrag:f=!0,defaultViewport:c,translateExtent:h,minZoom:g,maxZoom:p,zoomActivationKeyCode:m,preventScrolling:v=!0,children:b,noWheelClassName:A,noPanClassName:y})=>{let C=(0,Mt.useRef)(),D=f1(),I=(0,Mt.useRef)(!1),k=(0,Mt.useRef)(!1),E=(0,Mt.useRef)(null),T=(0,Mt.useRef)({x:0,y:0,zoom:0}),{d3Zoom:j,d3Selection:O,d3ZoomHandler:$,userSelectionActive:W}=Qa(k7t,c1),Y=aI(m),B=(0,Mt.useRef)(0),q=(0,Mt.useRef)(!1),F=(0,Mt.useRef)();return _7t(E),(0,Mt.useEffect)(()=>{if(E.current){let z=E.current.getBoundingClientRect(),L=tI().scaleExtent([g,p]).translateExtent(h),N=j0(E.current).call(L),K=Q2.translate(c.x,c.y).scale(zb(c.zoom,g,p)),H=[[0,0],[z.width,z.height]],P=L.constrain()(K,H,h);L.transform(N,P),L.wheelDelta(rbe),D.setState({d3Zoom:L,d3Selection:N,d3ZoomHandler:N.on("wheel.zoom"),transform:[P.x,P.y,P.k],domNode:E.current.closest(".react-flow")})}},[]),(0,Mt.useEffect)(()=>{O&&j&&(a&&!Y&&!W?O.on("wheel.zoom",z=>{if(Bb(z,A))return!1;z.preventDefault(),z.stopImmediatePropagation();let L=O.property("__zoom").k||1,N=zR();if(z.ctrlKey&&i&&N){let U=lc(z),X=rbe(z),le=L*Math.pow(2,X);j.scaleTo(O,le,U,z);return}let K=z.deltaMode===1?20:1,H=l===Nb.Vertical?0:z.deltaX*K,P=l===Nb.Horizontal?0:z.deltaY*K;!N&&z.shiftKey&&l!==Nb.Vertical&&(H=z.deltaY*K,P=0),j.translateBy(O,-(H/L)*s,-(P/L)*s,{internal:!0});let x=PR(O.property("__zoom")),{onViewportChangeStart:te,onViewportChange:V,onViewportChangeEnd:Q}=D.getState();clearTimeout(F.current),q.current||(q.current=!0,e?.(z,x),te?.(x)),q.current&&(t?.(z,x),V?.(x),F.current=setTimeout(()=>{r?.(z,x),Q?.(x),q.current=!1},150))},{passive:!1}):typeof $<"u"&&O.on("wheel.zoom",function(z,L){if(!v||Bb(z,A))return null;z.preventDefault(),$.call(this,z,L)},{passive:!1}))},[W,a,l,O,j,$,Y,i,v,A,e,t,r]),(0,Mt.useEffect)(()=>{j&&j.on("start",z=>{if(!z.sourceEvent||z.sourceEvent.internal)return null;B.current=z.sourceEvent?.button;let{onViewportChangeStart:L}=D.getState(),N=PR(z.transform);I.current=!0,T.current=N,z.sourceEvent?.type==="mousedown"&&D.setState({paneDragging:!0}),L?.(N),e?.(z.sourceEvent,N)})},[j,e]),(0,Mt.useEffect)(()=>{j&&(W&&!I.current?j.on("zoom",null):W||j.on("zoom",z=>{let{onViewportChange:L}=D.getState();if(D.setState({transform:[z.transform.x,z.transform.y,z.transform.k]}),k.current=!!(n&&tbe(f,B.current??0)),(t||L)&&!z.sourceEvent?.internal){let N=PR(z.transform);L?.(N),t?.(z.sourceEvent,N)}}))},[W,j,t,f,n]),(0,Mt.useEffect)(()=>{j&&j.on("end",z=>{if(!z.sourceEvent||z.sourceEvent.internal)return null;let{onViewportChangeEnd:L}=D.getState();if(I.current=!1,D.setState({paneDragging:!1}),n&&tbe(f,B.current??0)&&!k.current&&n(z.sourceEvent),k.current=!1,(r||L)&&M7t(T.current,z.transform)){let N=PR(z.transform);T.current=N,clearTimeout(C.current),C.current=setTimeout(()=>{L?.(N),r?.(z.sourceEvent,N)},a?150:0)}})},[j,a,f,r,n]),(0,Mt.useEffect)(()=>{j&&j.filter(z=>{let L=Y||o,N=i&&z.ctrlKey;if((f===!0||Array.isArray(f)&&f.includes(1))&&z.button===1&&z.type==="mousedown"&&(Bb(z,"react-flow__node")||Bb(z,"react-flow__edge")))return!0;if(!f&&!L&&!a&&!u&&!i||W||!u&&z.type==="dblclick"||Bb(z,A)&&z.type==="wheel"||Bb(z,y)&&(z.type!=="wheel"||a&&z.type==="wheel"&&!Y)||!i&&z.ctrlKey&&z.type==="wheel"||!L&&!a&&!N&&z.type==="wheel"||!f&&(z.type==="mousedown"||z.type==="touchstart")||Array.isArray(f)&&!f.includes(z.button)&&(z.type==="mousedown"||z.type==="touchstart"))return!1;let K=Array.isArray(f)&&f.includes(z.button)||!z.button||z.button<=1;return(!z.ctrlKey||z.type==="wheel")&&K})},[W,j,o,i,a,u,f,d,Y]),Mt.default.createElement("div",{className:"react-flow__renderer",ref:E,style:gte},b)},O7t=t=>({userSelectionActive:t.userSelectionActive,userSelectionRect:t.userSelectionRect});function B7t(){let{userSelectionActive:t,userSelectionRect:e}=Qa(O7t,c1);return t&&e?Mt.default.createElement("div",{className:"react-flow__selection react-flow__container",style:{width:e.width,height:e.height,transform:`translate(${e.x}px, ${e.y}px)`}}):null}function nbe(t,e){let r=e.parentNode||e.parentId,n=t.find(o=>o.id===r);if(n){let o=e.position.x+e.width-n.width,i=e.position.y+e.height-n.height;if(o>0||i>0||e.position.x<0||e.position.y<0){if(n.style=Je({},n.style)||{},n.style.width=n.style.width??n.width,n.style.height=n.style.height??n.height,o>0&&(n.style.width+=o),i>0&&(n.style.height+=i),e.position.x<0){let a=Math.abs(e.position.x);n.position.x=n.position.x-a,n.style.width+=a,e.position.x=0}if(e.position.y<0){let a=Math.abs(e.position.y);n.position.y=n.position.y-a,n.style.height+=a,e.position.y=0}n.width=n.style.width,n.height=n.style.height}}}function Wbe(t,e){if(t.some(n=>n.type==="reset"))return t.filter(n=>n.type==="reset").map(n=>n.item);let r=t.filter(n=>n.type==="add").map(n=>n.item);return e.reduce((n,o)=>{let i=t.filter(s=>s.id===o.id);if(i.length===0)return n.push(o),n;let a=Je({},o);for(let s of i)if(s)switch(s.type){case"select":{a.selected=s.selected;break}case"position":{typeof s.position<"u"&&(a.position=s.position),typeof s.positionAbsolute<"u"&&(a.positionAbsolute=s.positionAbsolute),typeof s.dragging<"u"&&(a.dragging=s.dragging),a.expandParent&&nbe(n,a);break}case"dimensions":{typeof s.dimensions<"u"&&(a.width=s.dimensions.width,a.height=s.dimensions.height),typeof s.updateStyle<"u"&&(a.style=Je(Je({},a.style||{}),s.dimensions)),typeof s.resizing=="boolean"&&(a.resizing=s.resizing),a.expandParent&&nbe(n,a);break}case"remove":return n}return n.push(a),n},r)}function Gbe(t,e){return Wbe(t,e)}function F7t(t,e){return Wbe(t,e)}var m8=(t,e)=>({id:t,type:"select",selected:e});function Rb(t,e){return t.reduce((r,n)=>{let o=e.includes(n.id);return!n.selected&&o?(n.selected=!0,r.push(m8(n.id,!0))):n.selected&&!o&&(n.selected=!1,r.push(m8(n.id,!1))),r},[])}var Kee=(t,e)=>r=>{r.target===e.current&&t?.(r)},N7t=t=>({userSelectionActive:t.userSelectionActive,elementsSelectable:t.elementsSelectable,dragging:t.paneDragging}),$be=(0,Mt.memo)(({isSelecting:t,selectionMode:e=LR.Full,panOnDrag:r,onSelectionStart:n,onSelectionEnd:o,onPaneClick:i,onPaneContextMenu:a,onPaneScroll:s,onPaneMouseEnter:l,onPaneMouseMove:u,onPaneMouseLeave:d,children:f})=>{let c=(0,Mt.useRef)(null),h=f1(),g=(0,Mt.useRef)(0),p=(0,Mt.useRef)(0),m=(0,Mt.useRef)(),{userSelectionActive:v,elementsSelectable:b,dragging:A}=Qa(N7t,c1),y=()=>{h.setState({userSelectionActive:!1,userSelectionRect:null}),g.current=0,p.current=0},C=$=>{i?.($),h.getState().resetSelectedElements(),h.setState({nodesSelectionActive:!1})},D=$=>{if(Array.isArray(r)&&r?.includes(2)){$.preventDefault();return}a?.($)},I=s?$=>s($):void 0,k=$=>{let{resetSelectedElements:W,domNode:Y}=h.getState();if(m.current=Y?.getBoundingClientRect(),!b||!t||$.button!==0||$.target!==c.current||!m.current)return;let{x:B,y:q}=v8($,m.current);W(),h.setState({userSelectionRect:{width:0,height:0,startX:B,startY:q,x:B,y:q}}),n?.($)},E=$=>{let{userSelectionRect:W,nodeInternals:Y,edges:B,transform:q,onNodesChange:F,onEdgesChange:z,nodeOrigin:L,getNodes:N}=h.getState();if(!t||!m.current||!W)return;h.setState({userSelectionActive:!0,nodesSelectionActive:!1});let K=v8($,m.current),H=W.startX??0,P=W.startY??0,x=lr(Je({},W),{x:K.xX.id),U=V.map(X=>X.id);if(g.current!==U.length){g.current=U.length;let X=Rb(te,U);X.length&&F?.(X)}if(p.current!==Q.length){p.current=Q.length;let X=Rb(B,Q);X.length&&z?.(X)}h.setState({userSelectionRect:x})},T=$=>{if($.button!==0)return;let{userSelectionRect:W}=h.getState();!v&&W&&$.target===c.current&&C?.($),h.setState({nodesSelectionActive:g.current>0}),y(),o?.($)},j=$=>{v&&(h.setState({nodesSelectionActive:g.current>0}),o?.($)),y()},O=b&&(t||v);return Mt.default.createElement("div",{className:Ks(["react-flow__pane",{dragging:A,selection:t}]),onClick:O?void 0:Kee(C,c),onContextMenu:Kee(D,c),onWheel:Kee(I,c),onMouseEnter:O?void 0:l,onMouseDown:O?k:void 0,onMouseMove:O?E:u,onMouseUp:O?T:void 0,onMouseLeave:O?j:d,ref:c,style:gte},f,Mt.default.createElement(B7t,null))});$be.displayName="Pane";function Zbe(t,e){let r=t.parentNode||t.parentId;if(!r)return!1;let n=e.get(r);return n?n.selected?!0:Zbe(n,e):!1}function obe(t,e,r){let n=t;do{if(n?.matches(e))return!0;if(n===r.current)return!1;n=n.parentElement}while(n);return!1}function R7t(t,e,r,n){return Array.from(t.values()).filter(o=>(o.selected||o.id===n)&&(!o.parentNode||o.parentId||!Zbe(o,t))&&(o.draggable||e&&typeof o.draggable>"u")).map(o=>({id:o.id,position:o.position||{x:0,y:0},positionAbsolute:o.positionAbsolute||{x:0,y:0},distance:{x:r.x-(o.positionAbsolute?.x??0),y:r.y-(o.positionAbsolute?.y??0)},delta:{x:0,y:0},extent:o.extent,parentNode:o.parentNode||o.parentId,parentId:o.parentNode||o.parentId,width:o.width,height:o.height,expandParent:o.expandParent}))}function P7t(t,e){return!e||e==="parent"?e:[e[0],[e[1][0]-(t.width||0),e[1][1]-(t.height||0)]]}function Kbe(t,e,r,n,o=[0,0],i){let a=P7t(t,t.extent||n),s=a,l=t.parentNode||t.parentId;if(t.extent==="parent"&&!t.expandParent)if(l&&t.width&&t.height){let f=r.get(l),{x:c,y:h}=y8(f,o).positionAbsolute;s=f&&Vd(c)&&Vd(h)&&Vd(f.width)&&Vd(f.height)?[[c+t.width*o[0],h+t.height*o[1]],[c+f.width-t.width+t.width*o[0],h+f.height-t.height+t.height*o[1]]]:s}else i?.("005",Df.error005()),s=a;else if(t.extent&&l&&t.extent!=="parent"){let f=r.get(l),{x:c,y:h}=y8(f,o).positionAbsolute;s=[[t.extent[0][0]+c,t.extent[0][1]+h],[t.extent[1][0]+c,t.extent[1][1]+h]]}let u={x:0,y:0};if(l){let f=r.get(l);u=y8(f,o).positionAbsolute}let d=s&&s!=="parent"?lte(e,s):e;return{position:{x:d.x-u.x,y:d.y-u.y},positionAbsolute:d}}function Yee({nodeId:t,dragItems:e,nodeInternals:r}){let n=e.map(o=>{let i=r.get(o.id);return lr(Je({},i),{position:o.position,positionAbsolute:o.positionAbsolute})});return[t?n.find(o=>o.id===t):n[0],n]}var ibe=(t,e,r,n)=>{let o=e.querySelectorAll(t);if(!o||!o.length)return null;let i=Array.from(o),a=e.getBoundingClientRect(),s={x:a.width*n[0],y:a.height*n[1]};return i.map(l=>{let u=l.getBoundingClientRect();return Je({id:l.getAttribute("data-handleid"),position:l.getAttribute("data-handlepos"),x:(u.left-a.left-s.x)/r,y:(u.top-a.top-s.y)/r},ste(l))})};function nI(t,e,r){return r===void 0?r:n=>{let o=e().nodeInternals.get(t);o&&r(n,Je({},o))}}function ite({id:t,store:e,unselect:r=!1,nodeRef:n}){let{addSelectedNodes:o,unselectNodesAndEdges:i,multiSelectionActive:a,nodeInternals:s,onError:l}=e.getState(),u=s.get(t);if(!u){l?.("012",Df.error012(t));return}e.setState({nodesSelectionActive:!1}),u.selected?(r||u.selected&&a)&&(i({nodes:[u],edges:[]}),requestAnimationFrame(()=>n?.current?.blur())):o([t])}function z7t(){let t=f1();return(0,Mt.useCallback)(({sourceEvent:r})=>{let{transform:n,snapGrid:o,snapToGrid:i}=t.getState(),a=r.touches?r.touches[0].clientX:r.clientX,s=r.touches?r.touches[0].clientY:r.clientY,l={x:(a-n[0])/n[2],y:(s-n[1])/n[2]};return Je({xSnapped:i?o[0]*Math.round(l.x/o[0]):l.x,ySnapped:i?o[1]*Math.round(l.y/o[1]):l.y},l)},[])}function qee(t){return(e,r,n)=>t?.(e,n)}function Ybe({nodeRef:t,disabled:e=!1,noDragClassName:r,handleSelector:n,nodeId:o,isSelectable:i,selectNodesOnDrag:a}){let s=f1(),[l,u]=(0,Mt.useState)(!1),d=(0,Mt.useRef)([]),f=(0,Mt.useRef)({x:null,y:null}),c=(0,Mt.useRef)(0),h=(0,Mt.useRef)(null),g=(0,Mt.useRef)({x:0,y:0}),p=(0,Mt.useRef)(null),m=(0,Mt.useRef)(!1),v=(0,Mt.useRef)(!1),b=z7t();return(0,Mt.useEffect)(()=>{if(t?.current){let A=j0(t.current),y=({x:I,y:k})=>{let{nodeInternals:E,onNodeDrag:T,onSelectionDrag:j,updateNodePositions:O,nodeExtent:$,snapGrid:W,snapToGrid:Y,nodeOrigin:B,onError:q}=s.getState();f.current={x:I,y:k};let F=!1,z={x:0,y:0,x2:0,y2:0};if(d.current.length>1&&$){let N=lI(d.current,B);z=iI(N)}if(d.current=d.current.map(N=>{let K={x:I-N.distance.x,y:k-N.distance.y};Y&&(K.x=W[0]*Math.round(K.x/W[0]),K.y=W[1]*Math.round(K.y/W[1]));let H=[[$[0][0],$[0][1]],[$[1][0],$[1][1]]];d.current.length>1&&$&&!N.extent&&(H[0][0]=N.positionAbsolute.x-z.x+$[0][0],H[1][0]=N.positionAbsolute.x+(N.width??0)-z.x2+$[1][0],H[0][1]=N.positionAbsolute.y-z.y+$[0][1],H[1][1]=N.positionAbsolute.y+(N.height??0)-z.y2+$[1][1]);let P=Kbe(N,K,E,H,B,q);return F=F||N.position.x!==P.position.x||N.position.y!==P.position.y,N.position=P.position,N.positionAbsolute=P.positionAbsolute,N}),!F)return;O(d.current,!0,!0),u(!0);let L=o?T:qee(j);if(L&&p.current){let[N,K]=Yee({nodeId:o,dragItems:d.current,nodeInternals:E});L(p.current,N,K)}},C=()=>{if(!h.current)return;let[I,k]=pbe(g.current,h.current);if(I!==0||k!==0){let{transform:E,panBy:T}=s.getState();f.current.x=(f.current.x??0)-I/E[2],f.current.y=(f.current.y??0)-k/E[2],T({x:I,y:k})&&y(f.current)}c.current=requestAnimationFrame(C)},D=I=>{let{nodeInternals:k,multiSelectionActive:E,nodesDraggable:T,unselectNodesAndEdges:j,onNodeDragStart:O,onSelectionDragStart:$}=s.getState();v.current=!0;let W=o?O:qee($);(!a||!i)&&!E&&o&&(k.get(o)?.selected||j()),o&&i&&a&&ite({id:o,store:s,nodeRef:t});let Y=b(I);if(f.current=Y,d.current=R7t(k,T,Y,o),W&&d.current){let[B,q]=Yee({nodeId:o,dragItems:d.current,nodeInternals:k});W(I.sourceEvent,B,q)}};if(e)A.on(".drag",null);else{let I=Oee().on("start",k=>{let{domNode:E,nodeDragThreshold:T}=s.getState();T===0&&D(k);let j=b(k);f.current=j,h.current=E?.getBoundingClientRect()||null,g.current=v8(k.sourceEvent,h.current)}).on("drag",k=>{let E=b(k),{autoPanOnNodeDrag:T,nodeDragThreshold:j}=s.getState();if(!m.current&&v.current&&T&&(m.current=!0,C()),!v.current){let O=E.xSnapped-(f?.current?.x??0),$=E.ySnapped-(f?.current?.y??0);Math.sqrt(O*O+$*$)>j&&D(k)}(f.current.x!==E.xSnapped||f.current.y!==E.ySnapped)&&d.current&&v.current&&(p.current=k.sourceEvent,g.current=v8(k.sourceEvent,h.current),y(E))}).on("end",k=>{if(v.current&&(u(!1),m.current=!1,v.current=!1,cancelAnimationFrame(c.current),d.current)){let{updateNodePositions:E,nodeInternals:T,onNodeDragStop:j,onSelectionDragStop:O}=s.getState(),$=o?j:qee(O);if(E(d.current,!1,!1),$){let[W,Y]=Yee({nodeId:o,dragItems:d.current,nodeInternals:T});$(k.sourceEvent,W,Y)}}}).filter(k=>{let E=k.target;return!k.button&&(!r||!obe(E,`.${r}`,t))&&(!n||obe(E,n,t))});return A.call(I),()=>{A.on(".drag",null)}}}},[t,e,r,n,i,s,o,a,b]),l}function qbe(){let t=f1();return(0,Mt.useCallback)(r=>{let{nodeInternals:n,nodeExtent:o,updateNodePositions:i,getNodes:a,snapToGrid:s,snapGrid:l,onError:u,nodesDraggable:d}=t.getState(),f=a().filter(b=>b.selected&&(b.draggable||d&&typeof b.draggable>"u")),c=s?l[0]:5,h=s?l[1]:5,g=r.isShiftPressed?4:1,p=r.x*c*g,m=r.y*h*g,v=f.map(b=>{if(b.positionAbsolute){let A={x:b.positionAbsolute.x+p,y:b.positionAbsolute.y+m};s&&(A.x=l[0]*Math.round(A.x/l[0]),A.y=l[1]*Math.round(A.y/l[1]));let{positionAbsolute:y,position:C}=Kbe(b,A,n,o,void 0,u);b.position=C,b.positionAbsolute=y}return b});i(v,!0,!1)},[])}var Pb={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},oI=t=>{let e=({id:r,type:n,data:o,xPos:i,yPos:a,xPosOrigin:s,yPosOrigin:l,selected:u,onClick:d,onMouseEnter:f,onMouseMove:c,onMouseLeave:h,onContextMenu:g,onDoubleClick:p,style:m,className:v,isDraggable:b,isSelectable:A,isConnectable:y,isFocusable:C,selectNodesOnDrag:D,sourcePosition:I,targetPosition:k,hidden:E,resizeObserver:T,dragHandle:j,zIndex:O,isParent:$,noDragClassName:W,noPanClassName:Y,initialized:B,disableKeyboardA11y:q,ariaLabel:F,rfId:z,hasHandleBounds:L})=>{let N=f1(),K=(0,Mt.useRef)(null),H=(0,Mt.useRef)(null),P=(0,Mt.useRef)(I),x=(0,Mt.useRef)(k),te=(0,Mt.useRef)(n),V=A||b||d||f||c||h,Q=qbe(),U=nI(r,N.getState,f),X=nI(r,N.getState,c),le=nI(r,N.getState,h),se=nI(r,N.getState,g),ae=nI(r,N.getState,p),Z=xe=>{let{nodeDragThreshold:ee}=N.getState();if(A&&(!D||!b||ee>0)&&ite({id:r,store:N,nodeRef:K}),d){let de=N.getState().nodeInternals.get(r);de&&d(xe,Je({},de))}},oe=xe=>{if(!Jee(xe)&&!q)if(Abe.includes(xe.key)&&A){let ee=xe.key==="Escape";ite({id:r,store:N,unselect:ee,nodeRef:K})}else b&&u&&Object.prototype.hasOwnProperty.call(Pb,xe.key)&&(N.setState({ariaLiveMessage:`Moved selected node ${xe.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~i}, y: ${~~a}`}),Q({x:Pb[xe.key].x,y:Pb[xe.key].y,isShiftPressed:xe.shiftKey}))};(0,Mt.useEffect)(()=>()=>{H.current&&T?.unobserve(H.current)},[]),(0,Mt.useEffect)(()=>{if(K.current&&!E){let xe=K.current;(!B||!L)&&(H.current&&T?.unobserve(H.current),T?.observe(xe),H.current=xe)}},[E,B,L]),(0,Mt.useEffect)(()=>{let xe=te.current!==n,ee=P.current!==I,de=x.current!==k;K.current&&(xe||ee||de)&&(xe&&(te.current=n),ee&&(P.current=I),de&&(x.current=k),N.getState().updateNodeDimensions([{id:r,nodeElement:K.current,forceUpdate:!0}]))},[r,n,I,k]);let pe=Ybe({nodeRef:K,disabled:E||!b,noDragClassName:W,handleSelector:j,nodeId:r,isSelectable:A,selectNodesOnDrag:D});return E?null:Mt.default.createElement("div",{className:Ks(["react-flow__node",`react-flow__node-${n}`,{[Y]:b},v,{selected:u,selectable:A,parent:$,dragging:pe}]),ref:K,style:Je({zIndex:O,transform:`translate(${s}px,${l}px)`,pointerEvents:V?"all":"none",visibility:B?"visible":"hidden"},m),"data-id":r,"data-testid":`rf__node-${r}`,onMouseEnter:U,onMouseMove:X,onMouseLeave:le,onContextMenu:se,onClick:Z,onDoubleClick:ae,onKeyDown:C?oe:void 0,tabIndex:C?0:void 0,role:C?"button":void 0,"aria-describedby":q?void 0:`${Hbe}-${z}`,"aria-label":F},Mt.default.createElement(X8t,{value:r},Mt.default.createElement(t,{id:r,data:o,type:n,xPos:i,yPos:a,selected:u,isConnectable:y,sourcePosition:I,targetPosition:k,dragging:pe,dragHandle:j,zIndex:O})))};return e.displayName="NodeWrapper",(0,Mt.memo)(e)},L7t=t=>{let e=t.getNodes().filter(r=>r.selected);return lr(Je({},lI(e,t.nodeOrigin)),{transformString:`translate(${t.transform[0]}px,${t.transform[1]}px) scale(${t.transform[2]})`,userSelectionActive:t.userSelectionActive})};function H7t({onSelectionContextMenu:t,noPanClassName:e,disableKeyboardA11y:r}){let n=f1(),{width:o,height:i,x:a,y:s,transformString:l,userSelectionActive:u}=Qa(L7t,c1),d=qbe(),f=(0,Mt.useRef)(null);if((0,Mt.useEffect)(()=>{r||f.current?.focus({preventScroll:!0})},[r]),Ybe({nodeRef:f}),u||!o||!i)return null;let c=t?g=>{let p=n.getState().getNodes().filter(m=>m.selected);t(g,p)}:void 0,h=g=>{Object.prototype.hasOwnProperty.call(Pb,g.key)&&d({x:Pb[g.key].x,y:Pb[g.key].y,isShiftPressed:g.shiftKey})};return Mt.default.createElement("div",{className:Ks(["react-flow__nodesselection","react-flow__container",e]),style:{transform:l}},Mt.default.createElement("div",{ref:f,className:"react-flow__nodesselection-rect",onContextMenu:c,tabIndex:r?void 0:-1,onKeyDown:r?void 0:h,style:{width:o,height:i,top:s,left:a}}))}var V7t=(0,Mt.memo)(H7t),j7t=t=>t.nodesSelectionActive,Xbe=({children:t,onPaneClick:e,onPaneMouseEnter:r,onPaneMouseMove:n,onPaneMouseLeave:o,onPaneContextMenu:i,onPaneScroll:a,deleteKeyCode:s,onMove:l,onMoveStart:u,onMoveEnd:d,selectionKeyCode:f,selectionOnDrag:c,selectionMode:h,onSelectionStart:g,onSelectionEnd:p,multiSelectionKeyCode:m,panActivationKeyCode:v,zoomActivationKeyCode:b,elementsSelectable:A,zoomOnScroll:y,zoomOnPinch:C,panOnScroll:D,panOnScrollSpeed:I,panOnScrollMode:k,zoomOnDoubleClick:E,panOnDrag:T,defaultViewport:j,translateExtent:O,minZoom:$,maxZoom:W,preventScrolling:Y,onSelectionContextMenu:B,noWheelClassName:q,noPanClassName:F,disableKeyboardA11y:z})=>{let L=Qa(j7t),N=aI(f),K=aI(v),H=K||T,P=K||D,x=N||c&&H!==!0;return I7t({deleteKeyCode:s,multiSelectionKeyCode:m}),Mt.default.createElement(T7t,{onMove:l,onMoveStart:u,onMoveEnd:d,onPaneContextMenu:i,elementsSelectable:A,zoomOnScroll:y,zoomOnPinch:C,panOnScroll:P,panOnScrollSpeed:I,panOnScrollMode:k,zoomOnDoubleClick:E,panOnDrag:!N&&H,defaultViewport:j,translateExtent:O,minZoom:$,maxZoom:W,zoomActivationKeyCode:b,preventScrolling:Y,noWheelClassName:q,noPanClassName:F},Mt.default.createElement($be,{onSelectionStart:g,onSelectionEnd:p,onPaneClick:e,onPaneMouseEnter:r,onPaneMouseMove:n,onPaneMouseLeave:o,onPaneContextMenu:i,onPaneScroll:a,panOnDrag:H,isSelecting:!!x,selectionMode:h},t,L&&Mt.default.createElement(V7t,{onSelectionContextMenu:B,noPanClassName:F,disableKeyboardA11y:z})))};Xbe.displayName="FlowRenderer";var Q7t=(0,Mt.memo)(Xbe);function U7t(t){return Qa((0,Mt.useCallback)(r=>t?Ibe(r.nodeInternals,{x:0,y:0,width:r.width,height:r.height},r.transform,!0):r.getNodes(),[t]))}function W7t(t){let e={input:oI(t.input||Rbe),default:oI(t.default||ote),output:oI(t.output||zbe),group:oI(t.group||pte)},r={},n=Object.keys(t).filter(o=>!["input","default","output","group"].includes(o)).reduce((o,i)=>(o[i]=oI(t[i]||ote),o),r);return Je(Je({},e),n)}var G7t=({x:t,y:e,width:r,height:n,origin:o})=>!r||!n?{x:t,y:e}:o[0]<0||o[1]<0||o[0]>1||o[1]>1?{x:t,y:e}:{x:t-r*o[0],y:e-n*o[1]},$7t=t=>({nodesDraggable:t.nodesDraggable,nodesConnectable:t.nodesConnectable,nodesFocusable:t.nodesFocusable,elementsSelectable:t.elementsSelectable,updateNodeDimensions:t.updateNodeDimensions,onError:t.onError}),Jbe=t=>{let{nodesDraggable:e,nodesConnectable:r,nodesFocusable:n,elementsSelectable:o,updateNodeDimensions:i,onError:a}=Qa($7t,c1),s=U7t(t.onlyRenderVisibleElements),l=(0,Mt.useRef)(),u=(0,Mt.useMemo)(()=>{if(typeof ResizeObserver>"u")return null;let d=new ResizeObserver(f=>{let c=f.map(h=>({id:h.target.getAttribute("data-id"),nodeElement:h.target,forceUpdate:!0}));i(c)});return l.current=d,d},[]);return(0,Mt.useEffect)(()=>()=>{l?.current?.disconnect()},[]),Mt.default.createElement("div",{className:"react-flow__nodes",style:gte},s.map(d=>{let f=d.type||"default";t.nodeTypes[f]||(a?.("003",Df.error003(f)),f="default");let c=t.nodeTypes[f]||t.nodeTypes.default,h=!!(d.draggable||e&&typeof d.draggable>"u"),g=!!(d.selectable||o&&typeof d.selectable>"u"),p=!!(d.connectable||r&&typeof d.connectable>"u"),m=!!(d.focusable||n&&typeof d.focusable>"u"),v=t.nodeExtent?lte(d.positionAbsolute,t.nodeExtent):d.positionAbsolute,b=v?.x??0,A=v?.y??0,y=G7t({x:b,y:A,width:d.width??0,height:d.height??0,origin:t.nodeOrigin});return Mt.default.createElement(c,{key:d.id,id:d.id,className:d.className,style:d.style,type:f,data:d.data,sourcePosition:d.sourcePosition||go.Bottom,targetPosition:d.targetPosition||go.Top,hidden:d.hidden,xPos:b,yPos:A,xPosOrigin:y.x,yPosOrigin:y.y,selectNodesOnDrag:t.selectNodesOnDrag,onClick:t.onNodeClick,onMouseEnter:t.onNodeMouseEnter,onMouseMove:t.onNodeMouseMove,onMouseLeave:t.onNodeMouseLeave,onContextMenu:t.onNodeContextMenu,onDoubleClick:t.onNodeDoubleClick,selected:!!d.selected,isDraggable:h,isSelectable:g,isConnectable:p,isFocusable:m,resizeObserver:u,dragHandle:d.dragHandle,zIndex:d[d1]?.z??0,isParent:!!d[d1]?.isParent,noDragClassName:t.noDragClassName,noPanClassName:t.noPanClassName,initialized:!!d.width&&!!d.height,rfId:t.rfId,disableKeyboardA11y:t.disableKeyboardA11y,ariaLabel:d.ariaLabel,hasHandleBounds:!!d[d1]?.handleBounds})}))};Jbe.displayName="NodeRenderer";var Z7t=(0,Mt.memo)(Jbe),K7t=(t,e,r)=>r===go.Left?t-e:r===go.Right?t+e:t,Y7t=(t,e,r)=>r===go.Top?t-e:r===go.Bottom?t+e:t,abe="react-flow__edgeupdater",sbe=({position:t,centerX:e,centerY:r,radius:n=10,onMouseDown:o,onMouseEnter:i,onMouseOut:a,type:s})=>Mt.default.createElement("circle",{onMouseDown:o,onMouseEnter:i,onMouseOut:a,className:Ks([abe,`${abe}-${s}`]),cx:K7t(e,n,t),cy:Y7t(r,n,t),r:n,stroke:"transparent",fill:"transparent"}),q7t=()=>!0,Fb=t=>{let e=({id:r,className:n,type:o,data:i,onClick:a,onEdgeDoubleClick:s,selected:l,animated:u,label:d,labelStyle:f,labelShowBg:c,labelBgStyle:h,labelBgPadding:g,labelBgBorderRadius:p,style:m,source:v,target:b,sourceX:A,sourceY:y,targetX:C,targetY:D,sourcePosition:I,targetPosition:k,elementsSelectable:E,hidden:T,sourceHandleId:j,targetHandleId:O,onContextMenu:$,onMouseEnter:W,onMouseMove:Y,onMouseLeave:B,edgeUpdaterRadius:q,onEdgeUpdate:F,onEdgeUpdateStart:z,onEdgeUpdateEnd:L,markerEnd:N,markerStart:K,rfId:H,ariaLabel:P,isFocusable:x,isUpdatable:te,pathOptions:V,interactionWidth:Q,disableKeyboardA11y:U})=>{let X=(0,Mt.useRef)(null),[le,se]=(0,Mt.useState)(!1),[ae,Z]=(0,Mt.useState)(!1),oe=f1(),pe=(0,Mt.useMemo)(()=>`url('#${rte(K,H)}')`,[K,H]),xe=(0,Mt.useMemo)(()=>`url('#${rte(N,H)}')`,[N,H]);if(T)return null;let ee=ye=>{let{edges:Oe,addSelectedEdges:we,unselectNodesAndEdges:R,multiSelectionActive:G}=oe.getState(),re=Oe.find(fe=>fe.id===r);re&&(E&&(oe.setState({nodesSelectionActive:!1}),re.selected&&G?(R({nodes:[],edges:[re]}),X.current?.blur()):we([r])),a&&a(ye,re))},de=rI(r,oe.getState,s),ce=rI(r,oe.getState,$),ne=rI(r,oe.getState,W),ue=rI(r,oe.getState,Y),ve=rI(r,oe.getState,B),De=(ye,Oe)=>{if(ye.button!==0)return;let{edges:we,isValidConnection:R}=oe.getState(),G=Oe?b:v,re=(Oe?O:j)||null,fe=Oe?"target":"source",Ee=R||q7t,Ae=Oe,be=we.find(Le=>Le.id===r);Z(!0),z?.(ye,be,fe);let Se=Le=>{Z(!1),L?.(Le,be,fe)};Obe({event:ye,handleId:re,nodeId:G,onConnect:Le=>F?.(be,Le),isTarget:Ae,getState:oe.getState,setState:oe.setState,isValidConnection:Ee,edgeUpdaterType:fe,onEdgeUpdateEnd:Se})},_e=ye=>De(ye,!0),Me=ye=>De(ye,!1),Ie=()=>se(!0),ke=()=>se(!1),He=!E&&!a,je=ye=>{if(!U&&Abe.includes(ye.key)&&E){let{unselectNodesAndEdges:Oe,addSelectedEdges:we,edges:R}=oe.getState();ye.key==="Escape"?(X.current?.blur(),Oe({edges:[R.find(re=>re.id===r)]})):we([r])}};return Mt.default.createElement("g",{className:Ks(["react-flow__edge",`react-flow__edge-${o}`,n,{selected:l,animated:u,inactive:He,updating:le}]),onClick:ee,onDoubleClick:de,onContextMenu:ce,onMouseEnter:ne,onMouseMove:ue,onMouseLeave:ve,onKeyDown:x?je:void 0,tabIndex:x?0:void 0,role:x?"button":"img","data-testid":`rf__edge-${r}`,"aria-label":P===null?void 0:P||`Edge from ${v} to ${b}`,"aria-describedby":x?`${Vbe}-${H}`:void 0,ref:X},!ae&&Mt.default.createElement(t,{id:r,source:v,target:b,selected:l,animated:u,label:d,labelStyle:f,labelShowBg:c,labelBgStyle:h,labelBgPadding:g,labelBgBorderRadius:p,data:i,style:m,sourceX:A,sourceY:y,targetX:C,targetY:D,sourcePosition:I,targetPosition:k,sourceHandleId:j,targetHandleId:O,markerStart:pe,markerEnd:xe,pathOptions:V,interactionWidth:Q}),te&&Mt.default.createElement(Mt.default.Fragment,null,(te==="source"||te===!0)&&Mt.default.createElement(sbe,{position:I,centerX:A,centerY:y,radius:q,onMouseDown:_e,onMouseEnter:Ie,onMouseOut:ke,type:"source"}),(te==="target"||te===!0)&&Mt.default.createElement(sbe,{position:k,centerX:C,centerY:D,radius:q,onMouseDown:Me,onMouseEnter:Ie,onMouseOut:ke,type:"target"})))};return e.displayName="EdgeWrapper",(0,Mt.memo)(e)};function X7t(t){let e={default:Fb(t.default||HR),straight:Fb(t.bezier||dte),step:Fb(t.step||ute),smoothstep:Fb(t.step||jR),simplebezier:Fb(t.simplebezier||cte)},r={},n=Object.keys(t).filter(o=>!["default","bezier"].includes(o)).reduce((o,i)=>(o[i]=Fb(t[i]||HR),o),r);return Je(Je({},e),n)}function lbe(t,e,r=null){let n=(r?.x||0)+e.x,o=(r?.y||0)+e.y,i=r?.width||e.width,a=r?.height||e.height;switch(t){case go.Top:return{x:n+i/2,y:o};case go.Right:return{x:n+i,y:o+a/2};case go.Bottom:return{x:n+i/2,y:o+a};case go.Left:return{x:n,y:o+a/2}}}function cbe(t,e){return t?t.length===1||!e?t[0]:e&&t.find(r=>r.id===e)||null:null}var J7t=(t,e,r,n,o,i)=>{let a=lbe(r,t,e),s=lbe(i,n,o);return{sourceX:a.x,sourceY:a.y,targetX:s.x,targetY:s.y}};function egt({sourcePos:t,targetPos:e,sourceWidth:r,sourceHeight:n,targetWidth:o,targetHeight:i,width:a,height:s,transform:l}){let u={x:Math.min(t.x,e.x),y:Math.min(t.y,e.y),x2:Math.max(t.x+r,e.x+o),y2:Math.max(t.y+n,e.y+i)};u.x===u.x2&&(u.x2+=1),u.y===u.y2&&(u.y2+=1);let d=iI({x:(0-l[0])/l[2],y:(0-l[1])/l[2],width:a/l[2],height:s/l[2]}),f=Math.max(0,Math.min(d.x2,u.x2)-Math.max(d.x,u.x)),c=Math.max(0,Math.min(d.y2,u.y2)-Math.max(d.y,u.y));return Math.ceil(f*c)>0}function ube(t){let e=t?.[d1]?.handleBounds||null,r=e&&t?.width&&t?.height&&typeof t?.positionAbsolute?.x<"u"&&typeof t?.positionAbsolute?.y<"u";return[{x:t?.positionAbsolute?.x||0,y:t?.positionAbsolute?.y||0,width:t?.width||0,height:t?.height||0},e,!!r]}var tgt=[{level:0,isMaxLevel:!0,edges:[]}];function rgt(t,e,r=!1){let n=-1,o=t.reduce((a,s)=>{let l=Vd(s.zIndex),u=l?s.zIndex:0;if(r){let d=e.get(s.target),f=e.get(s.source),c=s.selected||d?.selected||f?.selected,h=Math.max(f?.[d1]?.z||0,d?.[d1]?.z||0,1e3);u=(l?s.zIndex:0)+(c?h:0)}return a[u]?a[u].push(s):a[u]=[s],n=u>n?u:n,a},{}),i=Object.entries(o).map(([a,s])=>{let l=+a;return{edges:s,level:l,isMaxLevel:l===n}});return i.length===0?tgt:i}function ngt(t,e,r){let n=Qa((0,Mt.useCallback)(o=>t?o.edges.filter(i=>{let a=e.get(i.source),s=e.get(i.target);return a?.width&&a?.height&&s?.width&&s?.height&&egt({sourcePos:a.positionAbsolute||{x:0,y:0},targetPos:s.positionAbsolute||{x:0,y:0},sourceWidth:a.width,sourceHeight:a.height,targetWidth:s.width,targetHeight:s.height,width:o.width,height:o.height,transform:o.transform})}):o.edges,[t,e]));return rgt(n,e,r)}var ogt=({color:t="none",strokeWidth:e=1})=>Mt.default.createElement("polyline",{style:{stroke:t,strokeWidth:e},strokeLinecap:"round",strokeLinejoin:"round",fill:"none",points:"-5,-4 0,0 -5,4"}),igt=({color:t="none",strokeWidth:e=1})=>Mt.default.createElement("polyline",{style:{stroke:t,fill:t,strokeWidth:e},strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"}),dbe={[ete.Arrow]:ogt,[ete.ArrowClosed]:igt};function agt(t){let e=f1();return(0,Mt.useMemo)(()=>Object.prototype.hasOwnProperty.call(dbe,t)?dbe[t]:(e.getState().onError?.("009",Df.error009(t)),null),[t])}var sgt=({id:t,type:e,color:r,width:n=12.5,height:o=12.5,markerUnits:i="strokeWidth",strokeWidth:a,orient:s="auto-start-reverse"})=>{let l=agt(e);return l?Mt.default.createElement("marker",{className:"react-flow__arrowhead",id:t,markerWidth:`${n}`,markerHeight:`${o}`,viewBox:"-10 -10 20 20",markerUnits:i,orient:s,refX:"0",refY:"0"},Mt.default.createElement(l,{color:r,strokeWidth:a})):null},lgt=({defaultColor:t,rfId:e})=>r=>{let n=[];return r.edges.reduce((o,i)=>([i.markerStart,i.markerEnd].forEach(a=>{if(a&&typeof a=="object"){let s=rte(a,e);n.includes(s)||(o.push(Je({id:s,color:a.color||t},a)),n.push(s))}}),o),[]).sort((o,i)=>o.id.localeCompare(i.id))},exe=({defaultColor:t,rfId:e})=>{let r=Qa((0,Mt.useCallback)(lgt({defaultColor:t,rfId:e}),[t,e]),(n,o)=>!(n.length!==o.length||n.some((i,a)=>i.id!==o[a].id)));return Mt.default.createElement("defs",null,r.map(n=>Mt.default.createElement(sgt,{id:n.id,key:n.id,type:n.type,color:n.color,width:n.width,height:n.height,markerUnits:n.markerUnits,strokeWidth:n.strokeWidth,orient:n.orient})))};exe.displayName="MarkerDefinitions";var cgt=(0,Mt.memo)(exe),ugt=t=>({nodesConnectable:t.nodesConnectable,edgesFocusable:t.edgesFocusable,edgesUpdatable:t.edgesUpdatable,elementsSelectable:t.elementsSelectable,width:t.width,height:t.height,connectionMode:t.connectionMode,nodeInternals:t.nodeInternals,onError:t.onError}),txe=({defaultMarkerColor:t,onlyRenderVisibleElements:e,elevateEdgesOnSelect:r,rfId:n,edgeTypes:o,noPanClassName:i,onEdgeUpdate:a,onEdgeContextMenu:s,onEdgeMouseEnter:l,onEdgeMouseMove:u,onEdgeMouseLeave:d,onEdgeClick:f,edgeUpdaterRadius:c,onEdgeDoubleClick:h,onEdgeUpdateStart:g,onEdgeUpdateEnd:p,children:m,disableKeyboardA11y:v})=>{let{edgesFocusable:b,edgesUpdatable:A,elementsSelectable:y,width:C,height:D,connectionMode:I,nodeInternals:k,onError:E}=Qa(ugt,c1),T=ngt(e,k,r);return C?Mt.default.createElement(Mt.default.Fragment,null,T.map(({level:j,edges:O,isMaxLevel:$})=>Mt.default.createElement("svg",{key:j,style:{zIndex:j},width:C,height:D,className:"react-flow__edges react-flow__container"},$&&Mt.default.createElement(cgt,{defaultColor:t,rfId:n}),Mt.default.createElement("g",null,O.map(W=>{let[Y,B,q]=ube(k.get(W.source)),[F,z,L]=ube(k.get(W.target));if(!q||!L)return null;let N=W.type||"default";o[N]||(E?.("011",Df.error011(N)),N="default");let K=o[N]||o.default,H=I===Lb.Strict?z.target:(z.target??[]).concat(z.source??[]),P=cbe(B.source,W.sourceHandle),x=cbe(H,W.targetHandle),te=P?.position||go.Bottom,V=x?.position||go.Top,Q=!!(W.focusable||b&&typeof W.focusable>"u"),U=typeof a<"u"&&(W.updatable||A&&typeof W.updatable>"u");if(!P||!x)return E?.("008",Df.error008(P,W)),null;let{sourceX:X,sourceY:le,targetX:se,targetY:ae}=J7t(Y,P,te,F,x,V);return Mt.default.createElement(K,{key:W.id,id:W.id,className:Ks([W.className,i]),type:N,data:W.data,selected:!!W.selected,animated:!!W.animated,hidden:!!W.hidden,label:W.label,labelStyle:W.labelStyle,labelShowBg:W.labelShowBg,labelBgStyle:W.labelBgStyle,labelBgPadding:W.labelBgPadding,labelBgBorderRadius:W.labelBgBorderRadius,style:W.style,source:W.source,target:W.target,sourceHandleId:W.sourceHandle,targetHandleId:W.targetHandle,markerEnd:W.markerEnd,markerStart:W.markerStart,sourceX:X,sourceY:le,targetX:se,targetY:ae,sourcePosition:te,targetPosition:V,elementsSelectable:y,onEdgeUpdate:a,onContextMenu:s,onMouseEnter:l,onMouseMove:u,onMouseLeave:d,onClick:f,edgeUpdaterRadius:c,onEdgeDoubleClick:h,onEdgeUpdateStart:g,onEdgeUpdateEnd:p,rfId:n,ariaLabel:W.ariaLabel,isFocusable:Q,isUpdatable:U,pathOptions:"pathOptions"in W?W.pathOptions:void 0,interactionWidth:W.interactionWidth,disableKeyboardA11y:v})})))),m):null};txe.displayName="EdgeRenderer";var dgt=(0,Mt.memo)(txe),fgt=t=>`translate(${t.transform[0]}px,${t.transform[1]}px) scale(${t.transform[2]})`;function hgt({children:t}){let e=Qa(fgt);return Mt.default.createElement("div",{className:"react-flow__viewport react-flow__container",style:{transform:e}},t)}function pgt(t){let e=Hb(),r=(0,Mt.useRef)(!1);(0,Mt.useEffect)(()=>{!r.current&&e.viewportInitialized&&t&&(setTimeout(()=>t(e),1),r.current=!0)},[t,e.viewportInitialized])}var ggt={[go.Left]:go.Right,[go.Right]:go.Left,[go.Top]:go.Bottom,[go.Bottom]:go.Top},rxe=({nodeId:t,handleType:e,style:r,type:n=e9.Bezier,CustomComponent:o,connectionStatus:i})=>{let{fromNode:a,handleId:s,toX:l,toY:u,connectionMode:d}=Qa((0,Mt.useCallback)(D=>({fromNode:D.nodeInternals.get(t),handleId:D.connectionHandleId,toX:(D.connectionPosition.x-D.transform[0])/D.transform[2],toY:(D.connectionPosition.y-D.transform[1])/D.transform[2],connectionMode:D.connectionMode}),[t]),c1),f=a?.[d1]?.handleBounds,c=f?.[e];if(d===Lb.Loose&&(c=c||f?.[e==="source"?"target":"source"]),!a||!c)return null;let h=s?c.find(D=>D.id===s):c[0],g=h?h.x+h.width/2:(a.width??0)/2,p=h?h.y+h.height/2:a.height??0,m=(a.positionAbsolute?.x??0)+g,v=(a.positionAbsolute?.y??0)+p,b=h?.position,A=b?ggt[b]:null;if(!b||!A)return null;if(o)return Mt.default.createElement(o,{connectionLineType:n,connectionLineStyle:r,fromNode:a,fromHandle:h,fromX:m,fromY:v,toX:l,toY:u,fromPosition:b,toPosition:A,connectionStatus:i});let y="",C={sourceX:m,sourceY:v,sourcePosition:b,targetX:l,targetY:u,targetPosition:A};return n===e9.Bezier?[y]=Sbe(C):n===e9.Step?[y]=tte(lr(Je({},C),{borderRadius:0})):n===e9.SmoothStep?[y]=tte(C):n===e9.SimpleBezier?[y]=Ebe(C):y=`M${m},${v} ${l},${u}`,Mt.default.createElement("path",{d:y,fill:"none",className:"react-flow__connection-path",style:r})};rxe.displayName="ConnectionLine";var mgt=t=>({nodeId:t.connectionNodeId,handleType:t.connectionHandleType,nodesConnectable:t.nodesConnectable,connectionStatus:t.connectionStatus,width:t.width,height:t.height});function vgt({containerStyle:t,style:e,type:r,component:n}){let{nodeId:o,handleType:i,nodesConnectable:a,width:s,height:l,connectionStatus:u}=Qa(mgt,c1);return!(o&&i&&s&&a)?null:Mt.default.createElement("svg",{style:t,width:s,height:l,className:"react-flow__edges react-flow__connectionline react-flow__container"},Mt.default.createElement("g",{className:Ks(["react-flow__connection",u])},Mt.default.createElement(rxe,{nodeId:o,handleType:i,style:e,type:r,CustomComponent:n,connectionStatus:u})))}function fbe(t,e){let r=(0,Mt.useRef)(null),n=f1();return(0,Mt.useMemo)(()=>e(t),[t])}var nxe=({nodeTypes:t,edgeTypes:e,onMove:r,onMoveStart:n,onMoveEnd:o,onInit:i,onNodeClick:a,onEdgeClick:s,onNodeDoubleClick:l,onEdgeDoubleClick:u,onNodeMouseEnter:d,onNodeMouseMove:f,onNodeMouseLeave:c,onNodeContextMenu:h,onSelectionContextMenu:g,onSelectionStart:p,onSelectionEnd:m,connectionLineType:v,connectionLineStyle:b,connectionLineComponent:A,connectionLineContainerStyle:y,selectionKeyCode:C,selectionOnDrag:D,selectionMode:I,multiSelectionKeyCode:k,panActivationKeyCode:E,zoomActivationKeyCode:T,deleteKeyCode:j,onlyRenderVisibleElements:O,elementsSelectable:$,selectNodesOnDrag:W,defaultViewport:Y,translateExtent:B,minZoom:q,maxZoom:F,preventScrolling:z,defaultMarkerColor:L,zoomOnScroll:N,zoomOnPinch:K,panOnScroll:H,panOnScrollSpeed:P,panOnScrollMode:x,zoomOnDoubleClick:te,panOnDrag:V,onPaneClick:Q,onPaneMouseEnter:U,onPaneMouseMove:X,onPaneMouseLeave:le,onPaneScroll:se,onPaneContextMenu:ae,onEdgeUpdate:Z,onEdgeContextMenu:oe,onEdgeMouseEnter:pe,onEdgeMouseMove:xe,onEdgeMouseLeave:ee,edgeUpdaterRadius:de,onEdgeUpdateStart:ce,onEdgeUpdateEnd:ne,noDragClassName:ue,noWheelClassName:ve,noPanClassName:De,elevateEdgesOnSelect:_e,disableKeyboardA11y:Me,nodeOrigin:Ie,nodeExtent:ke,rfId:He})=>{let je=fbe(t,W7t),ye=fbe(e,X7t);return pgt(i),Mt.default.createElement(Q7t,{onPaneClick:Q,onPaneMouseEnter:U,onPaneMouseMove:X,onPaneMouseLeave:le,onPaneContextMenu:ae,onPaneScroll:se,deleteKeyCode:j,selectionKeyCode:C,selectionOnDrag:D,selectionMode:I,onSelectionStart:p,onSelectionEnd:m,multiSelectionKeyCode:k,panActivationKeyCode:E,zoomActivationKeyCode:T,elementsSelectable:$,onMove:r,onMoveStart:n,onMoveEnd:o,zoomOnScroll:N,zoomOnPinch:K,zoomOnDoubleClick:te,panOnScroll:H,panOnScrollSpeed:P,panOnScrollMode:x,panOnDrag:V,defaultViewport:Y,translateExtent:B,minZoom:q,maxZoom:F,onSelectionContextMenu:g,preventScrolling:z,noDragClassName:ue,noWheelClassName:ve,noPanClassName:De,disableKeyboardA11y:Me},Mt.default.createElement(hgt,null,Mt.default.createElement(dgt,{edgeTypes:ye,onEdgeClick:s,onEdgeDoubleClick:u,onEdgeUpdate:Z,onlyRenderVisibleElements:O,onEdgeContextMenu:oe,onEdgeMouseEnter:pe,onEdgeMouseMove:xe,onEdgeMouseLeave:ee,onEdgeUpdateStart:ce,onEdgeUpdateEnd:ne,edgeUpdaterRadius:de,defaultMarkerColor:L,noPanClassName:De,elevateEdgesOnSelect:!!_e,disableKeyboardA11y:Me,rfId:He},Mt.default.createElement(vgt,{style:b,type:v,component:A,containerStyle:y})),Mt.default.createElement("div",{className:"react-flow__edgelabel-renderer"}),Mt.default.createElement(Z7t,{nodeTypes:je,onNodeClick:a,onNodeDoubleClick:l,onNodeMouseEnter:d,onNodeMouseMove:f,onNodeMouseLeave:c,onNodeContextMenu:h,selectNodesOnDrag:W,onlyRenderVisibleElements:O,noPanClassName:De,noDragClassName:ue,disableKeyboardA11y:Me,nodeOrigin:Ie,nodeExtent:ke,rfId:He})))};nxe.displayName="GraphView";var ygt=(0,Mt.memo)(nxe),ate=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],g8={rfId:"1",width:0,height:0,transform:[0,0,1],nodeInternals:new Map,edges:[],onNodesChange:null,onEdgesChange:null,hasDefaultNodes:!1,hasDefaultEdges:!1,d3Zoom:null,d3Selection:null,d3ZoomHandler:void 0,minZoom:.5,maxZoom:2,translateExtent:ate,nodeExtent:ate,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionNodeId:null,connectionHandleId:null,connectionHandleType:"source",connectionPosition:{x:0,y:0},connectionStatus:null,connectionMode:Lb.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:[0,0],nodeDragThreshold:0,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesUpdatable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,fitViewOnInit:!1,fitViewOnInitDone:!1,fitViewOnInitOptions:void 0,onSelectionChange:[],multiSelectionActive:!1,connectionStartHandle:null,connectionEndHandle:null,connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,connectionRadius:20,onError:bbe,isValidConnection:void 0},Agt=()=>tye((t,e)=>lr(Je({},g8),{setNodes:r=>{let{nodeInternals:n,nodeOrigin:o,elevateNodesOnSelect:i}=e();t({nodeInternals:Zee(r,n,o,i)})},getNodes:()=>Array.from(e().nodeInternals.values()),setEdges:r=>{let{defaultEdgeOptions:n={}}=e();t({edges:r.map(o=>Je(Je({},n),o))})},setDefaultNodesAndEdges:(r,n)=>{let o=typeof r<"u",i=typeof n<"u",a=o?Zee(r,new Map,e().nodeOrigin,e().elevateNodesOnSelect):new Map;t({nodeInternals:a,edges:i?n:[],hasDefaultNodes:o,hasDefaultEdges:i})},updateNodeDimensions:r=>{let{onNodesChange:n,nodeInternals:o,fitViewOnInit:i,fitViewOnInitDone:a,fitViewOnInitOptions:s,domNode:l,nodeOrigin:u}=e(),d=l?.querySelector(".react-flow__viewport");if(!d)return;let f=window.getComputedStyle(d),{m22:c}=new window.DOMMatrixReadOnly(f.transform),h=r.reduce((p,m)=>{let v=o.get(m.id);if(v?.hidden)o.set(v.id,lr(Je({},v),{[d1]:lr(Je({},v[d1]),{handleBounds:void 0})}));else if(v){let b=ste(m.nodeElement);!!(b.width&&b.height&&(v.width!==b.width||v.height!==b.height||m.forceUpdate))&&(o.set(v.id,Je(lr(Je({},v),{[d1]:lr(Je({},v[d1]),{handleBounds:{source:ibe(".source",m.nodeElement,c,u),target:ibe(".target",m.nodeElement,c,u)}})}),b)),p.push({id:v.id,type:"dimensions",dimensions:b}))}return p},[]);Qbe(o,u);let g=a||i&&!a&&Ube(e,Je({initial:!0},s));t({nodeInternals:new Map(o),fitViewOnInitDone:g}),h?.length>0&&n?.(h)},updateNodePositions:(r,n=!0,o=!1)=>{let{triggerNodeChanges:i}=e(),a=r.map(s=>{let l={id:s.id,type:"position",dragging:o};return n&&(l.positionAbsolute=s.positionAbsolute,l.position=s.position),l});i(a)},triggerNodeChanges:r=>{let{onNodesChange:n,nodeInternals:o,hasDefaultNodes:i,nodeOrigin:a,getNodes:s,elevateNodesOnSelect:l}=e();if(r?.length){if(i){let u=Gbe(r,s()),d=Zee(u,o,a,l);t({nodeInternals:d})}n?.(r)}},addSelectedNodes:r=>{let{multiSelectionActive:n,edges:o,getNodes:i}=e(),a,s=null;n?a=r.map(l=>m8(l,!0)):(a=Rb(i(),r),s=Rb(o,[])),RR({changedNodes:a,changedEdges:s,get:e,set:t})},addSelectedEdges:r=>{let{multiSelectionActive:n,edges:o,getNodes:i}=e(),a,s=null;n?a=r.map(l=>m8(l,!0)):(a=Rb(o,r),s=Rb(i(),[])),RR({changedNodes:s,changedEdges:a,get:e,set:t})},unselectNodesAndEdges:({nodes:r,edges:n}={})=>{let{edges:o,getNodes:i}=e(),a=r||i(),s=n||o,l=a.map(d=>(d.selected=!1,m8(d.id,!1))),u=s.map(d=>m8(d.id,!1));RR({changedNodes:l,changedEdges:u,get:e,set:t})},setMinZoom:r=>{let{d3Zoom:n,maxZoom:o}=e();n?.scaleExtent([r,o]),t({minZoom:r})},setMaxZoom:r=>{let{d3Zoom:n,minZoom:o}=e();n?.scaleExtent([o,r]),t({maxZoom:r})},setTranslateExtent:r=>{e().d3Zoom?.translateExtent(r),t({translateExtent:r})},resetSelectedElements:()=>{let{edges:r,getNodes:n}=e(),i=n().filter(s=>s.selected).map(s=>m8(s.id,!1)),a=r.filter(s=>s.selected).map(s=>m8(s.id,!1));RR({changedNodes:i,changedEdges:a,get:e,set:t})},setNodeExtent:r=>{let{nodeInternals:n}=e();n.forEach(o=>{o.positionAbsolute=lte(o.position,r)}),t({nodeExtent:r,nodeInternals:new Map(n)})},panBy:r=>{let{transform:n,width:o,height:i,d3Zoom:a,d3Selection:s,translateExtent:l}=e();if(!a||!s||!r.x&&!r.y)return!1;let u=Q2.translate(n[0]+r.x,n[1]+r.y).scale(n[2]),d=[[0,0],[o,i]],f=a?.constrain()(u,d,l);return a.transform(s,f),n[0]!==f.x||n[1]!==f.y||n[2]!==f.k},cancelConnection:()=>t({connectionNodeId:g8.connectionNodeId,connectionHandleId:g8.connectionHandleId,connectionHandleType:g8.connectionHandleType,connectionStatus:g8.connectionStatus,connectionStartHandle:g8.connectionStartHandle,connectionEndHandle:g8.connectionEndHandle}),reset:()=>t(Je({},g8))}),Object.is),QR=({children:t})=>{let e=(0,Mt.useRef)(null);return e.current||(e.current=Agt()),Mt.default.createElement(V8t,{value:e.current},t)};QR.displayName="ReactFlowProvider";var oxe=({children:t})=>(0,Mt.useContext)(VR)?Mt.default.createElement(Mt.default.Fragment,null,t):Mt.default.createElement(QR,null,t);oxe.displayName="ReactFlowWrapper";var bgt={input:Rbe,default:ote,output:zbe,group:pte},xgt={default:HR,straight:dte,step:ute,smoothstep:jR,simplebezier:cte},wgt=[0,0],Cgt=[15,15],Egt={x:0,y:0,zoom:1},Sgt={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0},Vb=(0,Mt.forwardRef)((Yr,un)=>{var Pn=Yr,{nodes:t,edges:e,defaultNodes:r,defaultEdges:n,className:o,nodeTypes:i=bgt,edgeTypes:a=xgt,onNodeClick:s,onEdgeClick:l,onInit:u,onMove:d,onMoveStart:f,onMoveEnd:c,onConnect:h,onConnectStart:g,onConnectEnd:p,onClickConnectStart:m,onClickConnectEnd:v,onNodeMouseEnter:b,onNodeMouseMove:A,onNodeMouseLeave:y,onNodeContextMenu:C,onNodeDoubleClick:D,onNodeDragStart:I,onNodeDrag:k,onNodeDragStop:E,onNodesDelete:T,onEdgesDelete:j,onSelectionChange:O,onSelectionDragStart:$,onSelectionDrag:W,onSelectionDragStop:Y,onSelectionContextMenu:B,onSelectionStart:q,onSelectionEnd:F,connectionMode:z=Lb.Strict,connectionLineType:L=e9.Bezier,connectionLineStyle:N,connectionLineComponent:K,connectionLineContainerStyle:H,deleteKeyCode:P="Backspace",selectionKeyCode:x="Shift",selectionOnDrag:te=!1,selectionMode:V=LR.Full,panActivationKeyCode:Q="Space",multiSelectionKeyCode:U=zR()?"Meta":"Control",zoomActivationKeyCode:X=zR()?"Meta":"Control",snapToGrid:le=!1,snapGrid:se=Cgt,onlyRenderVisibleElements:ae=!1,selectNodesOnDrag:Z=!0,nodesDraggable:oe,nodesConnectable:pe,nodesFocusable:xe,nodeOrigin:ee=wgt,edgesFocusable:de,edgesUpdatable:ce,elementsSelectable:ne,defaultViewport:ue=Egt,minZoom:ve=.5,maxZoom:De=2,translateExtent:_e=ate,preventScrolling:Me=!0,nodeExtent:Ie,defaultMarkerColor:ke="#b1b1b7",zoomOnScroll:He=!0,zoomOnPinch:je=!0,panOnScroll:ye=!1,panOnScrollSpeed:Oe=.5,panOnScrollMode:we=Nb.Free,zoomOnDoubleClick:R=!0,panOnDrag:G=!0,onPaneClick:re,onPaneMouseEnter:fe,onPaneMouseMove:Ee,onPaneMouseLeave:Ae,onPaneScroll:be,onPaneContextMenu:Se,children:Ne,onEdgeUpdate:Le,onEdgeContextMenu:rt,onEdgeDoubleClick:$e,onEdgeMouseEnter:ot,onEdgeMouseMove:Ue,onEdgeMouseLeave:ct,onEdgeUpdateStart:dt,onEdgeUpdateEnd:At,edgeUpdaterRadius:Te=10,onNodesChange:Ve,onEdgesChange:Ye,noDragClassName:st="nodrag",noWheelClassName:wt="nowheel",noPanClassName:yt="nopan",fitView:Ft=!1,fitViewOptions:Gt,connectOnClick:Tt=!0,attributionPosition:Yt,proOptions:vr,defaultEdgeOptions:Lt,elevateNodesOnSelect:Bt=!0,elevateEdgesOnSelect:tr=!1,disableKeyboardA11y:dr=!1,autoPanOnConnect:vt=!0,autoPanOnNodeDrag:ir=!0,connectionRadius:Vt=20,isValidConnection:Kt,onError:Wt,style:Nt,id:ur,nodeDragThreshold:Rr}=Pn,hr=Eo(Pn,["nodes","edges","defaultNodes","defaultEdges","className","nodeTypes","edgeTypes","onNodeClick","onEdgeClick","onInit","onMove","onMoveStart","onMoveEnd","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","onNodeMouseEnter","onNodeMouseMove","onNodeMouseLeave","onNodeContextMenu","onNodeDoubleClick","onNodeDragStart","onNodeDrag","onNodeDragStop","onNodesDelete","onEdgesDelete","onSelectionChange","onSelectionDragStart","onSelectionDrag","onSelectionDragStop","onSelectionContextMenu","onSelectionStart","onSelectionEnd","connectionMode","connectionLineType","connectionLineStyle","connectionLineComponent","connectionLineContainerStyle","deleteKeyCode","selectionKeyCode","selectionOnDrag","selectionMode","panActivationKeyCode","multiSelectionKeyCode","zoomActivationKeyCode","snapToGrid","snapGrid","onlyRenderVisibleElements","selectNodesOnDrag","nodesDraggable","nodesConnectable","nodesFocusable","nodeOrigin","edgesFocusable","edgesUpdatable","elementsSelectable","defaultViewport","minZoom","maxZoom","translateExtent","preventScrolling","nodeExtent","defaultMarkerColor","zoomOnScroll","zoomOnPinch","panOnScroll","panOnScrollSpeed","panOnScrollMode","zoomOnDoubleClick","panOnDrag","onPaneClick","onPaneMouseEnter","onPaneMouseMove","onPaneMouseLeave","onPaneScroll","onPaneContextMenu","children","onEdgeUpdate","onEdgeContextMenu","onEdgeDoubleClick","onEdgeMouseEnter","onEdgeMouseMove","onEdgeMouseLeave","onEdgeUpdateStart","onEdgeUpdateEnd","edgeUpdaterRadius","onNodesChange","onEdgesChange","noDragClassName","noWheelClassName","noPanClassName","fitView","fitViewOptions","connectOnClick","attributionPosition","proOptions","defaultEdgeOptions","elevateNodesOnSelect","elevateEdgesOnSelect","disableKeyboardA11y","autoPanOnConnect","autoPanOnNodeDrag","connectionRadius","isValidConnection","onError","style","id","nodeDragThreshold"]);let Pt=ur||"1";return Mt.default.createElement("div",lr(Je({},hr),{style:Je(Je({},Nt),Sgt),ref:un,className:Ks(["react-flow",o]),"data-testid":"rf__wrapper",id:ur}),Mt.default.createElement(oxe,null,Mt.default.createElement(ygt,{onInit:u,onMove:d,onMoveStart:f,onMoveEnd:c,onNodeClick:s,onEdgeClick:l,onNodeMouseEnter:b,onNodeMouseMove:A,onNodeMouseLeave:y,onNodeContextMenu:C,onNodeDoubleClick:D,nodeTypes:i,edgeTypes:a,connectionLineType:L,connectionLineStyle:N,connectionLineComponent:K,connectionLineContainerStyle:H,selectionKeyCode:x,selectionOnDrag:te,selectionMode:V,deleteKeyCode:P,multiSelectionKeyCode:U,panActivationKeyCode:Q,zoomActivationKeyCode:X,onlyRenderVisibleElements:ae,selectNodesOnDrag:Z,defaultViewport:ue,translateExtent:_e,minZoom:ve,maxZoom:De,preventScrolling:Me,zoomOnScroll:He,zoomOnPinch:je,zoomOnDoubleClick:R,panOnScroll:ye,panOnScrollSpeed:Oe,panOnScrollMode:we,panOnDrag:G,onPaneClick:re,onPaneMouseEnter:fe,onPaneMouseMove:Ee,onPaneMouseLeave:Ae,onPaneScroll:be,onPaneContextMenu:Se,onSelectionContextMenu:B,onSelectionStart:q,onSelectionEnd:F,onEdgeUpdate:Le,onEdgeContextMenu:rt,onEdgeDoubleClick:$e,onEdgeMouseEnter:ot,onEdgeMouseMove:Ue,onEdgeMouseLeave:ct,onEdgeUpdateStart:dt,onEdgeUpdateEnd:At,edgeUpdaterRadius:Te,defaultMarkerColor:ke,noDragClassName:st,noWheelClassName:wt,noPanClassName:yt,elevateEdgesOnSelect:tr,rfId:Pt,disableKeyboardA11y:dr,nodeOrigin:ee,nodeExtent:Ie}),Mt.default.createElement(g7t,{nodes:t,edges:e,defaultNodes:r,defaultEdges:n,onConnect:h,onConnectStart:g,onConnectEnd:p,onClickConnectStart:m,onClickConnectEnd:v,nodesDraggable:oe,nodesConnectable:pe,nodesFocusable:xe,edgesFocusable:de,edgesUpdatable:ce,elementsSelectable:ne,elevateNodesOnSelect:Bt,minZoom:ve,maxZoom:De,nodeExtent:Ie,onNodesChange:Ve,onEdgesChange:Ye,snapToGrid:le,snapGrid:se,connectionMode:z,translateExtent:_e,connectOnClick:Tt,defaultEdgeOptions:Lt,fitView:Ft,fitViewOptions:Gt,onNodesDelete:T,onEdgesDelete:j,onNodeDragStart:I,onNodeDrag:k,onNodeDragStop:E,onSelectionDrag:W,onSelectionDragStart:$,onSelectionDragStop:Y,noPanClassName:yt,nodeOrigin:ee,rfId:Pt,autoPanOnConnect:vt,autoPanOnNodeDrag:ir,onError:Wt,connectionRadius:Vt,isValidConnection:Kt,nodeDragThreshold:Rr}),Mt.default.createElement(h7t,{onSelectionChange:O}),Ne,Mt.default.createElement(Q8t,{proOptions:vr,position:Yt}),Mt.default.createElement(b7t,{rfId:Pt,disableKeyboardA11y:dr})))});Vb.displayName="ReactFlow";function ixe(){let t=f1();return(0,Mt.useCallback)(e=>{let{domNode:r,updateNodeDimensions:n}=t.getState(),i=(Array.isArray(e)?e:[e]).reduce((a,s)=>{let l=r?.querySelector(`.react-flow__node[data-id="${s}"]`);return l&&a.push({id:s,nodeElement:l,forceUpdate:!0}),a},[]);requestAnimationFrame(()=>n(i))},[])}function axe(t){return e=>{let[r,n]=(0,Mt.useState)(e),o=(0,Mt.useCallback)(i=>n(a=>t(i,a)),[]);return[r,n,o]}}var UR=axe(Gbe),WR=axe(F7t);var g0=It(gr(),1);var sxe=({id:t,x:e,y:r,width:n,height:o,style:i,color:a,strokeColor:s,strokeWidth:l,className:u,borderRadius:d,shapeRendering:f,onClick:c,selected:h})=>{let{background:g,backgroundColor:p}=i||{},m=a||g||p;return g0.default.createElement("rect",{className:Ks(["react-flow__minimap-node",{selected:h},u]),x:e,y:r,rx:d,ry:d,width:n,height:o,fill:m,stroke:s,strokeWidth:l,shapeRendering:f,onClick:c?v=>c(v,t):void 0})};sxe.displayName="MiniMapNode";var Dgt=(0,g0.memo)(sxe),Igt=t=>t.nodeOrigin,_gt=t=>t.getNodes().filter(e=>!e.hidden&&e.width&&e.height),mte=t=>t instanceof Function?t:()=>t;function Mgt({nodeStrokeColor:t="transparent",nodeColor:e="#e2e2e2",nodeClassName:r="",nodeBorderRadius:n=5,nodeStrokeWidth:o=2,nodeComponent:i=Dgt,onClick:a}){let s=Qa(_gt,c1),l=Qa(Igt),u=mte(e),d=mte(t),f=mte(r),c=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return g0.default.createElement(g0.default.Fragment,null,s.map(h=>{let{x:g,y:p}=y8(h,l).positionAbsolute;return g0.default.createElement(i,{key:h.id,x:g,y:p,width:h.width,height:h.height,style:h.style,selected:h.selected,className:f(h),color:u(h),borderRadius:n,strokeColor:d(h),strokeWidth:o,shapeRendering:c,onClick:a,id:h.id})}))}var kgt=(0,g0.memo)(Mgt),Tgt=200,Ogt=150,Bgt=t=>{let e=t.getNodes(),r={x:-t.transform[0]/t.transform[2],y:-t.transform[1]/t.transform[2],width:t.width/t.transform[2],height:t.height/t.transform[2]};return{viewBB:r,boundingRect:e.length>0?ybe(lI(e,t.nodeOrigin),r):r,rfId:t.rfId}},Fgt="react-flow__minimap-desc";function lxe({style:t,className:e,nodeStrokeColor:r="transparent",nodeColor:n="#e2e2e2",nodeClassName:o="",nodeBorderRadius:i=5,nodeStrokeWidth:a=2,nodeComponent:s,maskColor:l="rgb(240, 240, 240, 0.6)",maskStrokeColor:u="none",maskStrokeWidth:d=1,position:f="bottom-right",onClick:c,onNodeClick:h,pannable:g=!1,zoomable:p=!1,ariaLabel:m="React Flow mini map",inversePan:v=!1,zoomStep:b=10,offsetScale:A=5}){let y=f1(),C=(0,g0.useRef)(null),{boundingRect:D,viewBB:I,rfId:k}=Qa(Bgt,c1),E=t?.width??Tgt,T=t?.height??Ogt,j=D.width/E,O=D.height/T,$=Math.max(j,O),W=$*E,Y=$*T,B=A*$,q=D.x-(W-D.width)/2-B,F=D.y-(Y-D.height)/2-B,z=W+B*2,L=Y+B*2,N=`${Fgt}-${k}`,K=(0,g0.useRef)(0);K.current=$,(0,g0.useEffect)(()=>{if(C.current){let x=j0(C.current),te=U=>{let{transform:X,d3Selection:le,d3Zoom:se}=y.getState();if(U.sourceEvent.type!=="wheel"||!le||!se)return;let ae=-U.sourceEvent.deltaY*(U.sourceEvent.deltaMode===1?.05:U.sourceEvent.deltaMode?1:.002)*b,Z=X[2]*Math.pow(2,ae);se.scaleTo(le,Z)},V=U=>{let{transform:X,d3Selection:le,d3Zoom:se,translateExtent:ae,width:Z,height:oe}=y.getState();if(U.sourceEvent.type!=="mousemove"||!le||!se)return;let pe=K.current*Math.max(1,X[2])*(v?-1:1),xe={x:X[0]-U.sourceEvent.movementX*pe,y:X[1]-U.sourceEvent.movementY*pe},ee=[[0,0],[Z,oe]],de=Q2.translate(xe.x,xe.y).scale(X[2]),ce=se.constrain()(de,ee,ae);se.transform(le,ce)},Q=tI().on("zoom",g?V:null).on("zoom.wheel",p?te:null);return x.call(Q),()=>{x.on("zoom",null)}}},[g,p,v,b]);let H=c?x=>{let te=lc(x);c(x,{x:te[0],y:te[1]})}:void 0,P=h?(x,te)=>{let V=y.getState().nodeInternals.get(te);h(x,V)}:void 0;return g0.default.createElement(t9,{position:f,style:t,className:Ks(["react-flow__minimap",e]),"data-testid":"rf__minimap"},g0.default.createElement("svg",{width:E,height:T,viewBox:`${q} ${F} ${z} ${L}`,role:"img","aria-labelledby":N,ref:C,onClick:H},m&&g0.default.createElement("title",{id:N},m),g0.default.createElement(kgt,{onClick:P,nodeColor:n,nodeStrokeColor:r,nodeBorderRadius:i,nodeClassName:o,nodeStrokeWidth:a,nodeComponent:s}),g0.default.createElement("path",{className:"react-flow__minimap-mask",d:`M${q-B},${F-B}h${z+B*2}v${L+B*2}h${-z-B*2}z