docker-client-mx 1.39.0 → 1.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/docker-desktop-mx/browser/chunk-5jLUVNg7.js +1 -0
  2. package/dist/docker-desktop-mx/browser/chunk-7fAa0H9l2.js +1 -0
  3. package/dist/docker-desktop-mx/browser/chunk-8P32TlCt.js +1 -0
  4. package/dist/docker-desktop-mx/browser/{chunk-BWEbjl8i.js → chunk-BEAPEQBM.js} +1 -1
  5. package/dist/docker-desktop-mx/browser/chunk-BH9xkVLp.js +1 -0
  6. package/dist/docker-desktop-mx/browser/chunk-BMXieIjc.js +1 -0
  7. package/dist/docker-desktop-mx/browser/chunk-BfC3KqGQ.js +1 -0
  8. package/dist/docker-desktop-mx/browser/{chunk-D1Z6IQ-O.js → chunk-Bn40KMmY.js} +1 -1
  9. package/dist/docker-desktop-mx/browser/{chunk-CG34bAfY.js → chunk-Bw7Mtap6.js} +1 -1
  10. package/dist/docker-desktop-mx/browser/chunk-CC7DUrLR.js +1 -0
  11. package/dist/docker-desktop-mx/browser/{chunk-VLH5Jka4.js → chunk-CC_wIdx2.js} +1 -1
  12. package/dist/docker-desktop-mx/browser/{chunk-S9IeOMe4.js → chunk-CHFuuSv8.js} +1 -1
  13. package/dist/docker-desktop-mx/browser/{chunk-BxCMq76L.js → chunk-CP90rR4k.js} +1 -1
  14. package/dist/docker-desktop-mx/browser/chunk-CZNcOfBu2.js +6 -0
  15. package/dist/docker-desktop-mx/browser/chunk-CaYY-6hH.js +1 -0
  16. package/dist/docker-desktop-mx/browser/chunk-Ch8nHKqR.js +1 -0
  17. package/dist/docker-desktop-mx/browser/chunk-CiOk-qoT.js +1 -0
  18. package/dist/docker-desktop-mx/browser/{chunk-BpGvpxhZ.js → chunk-CmtjDUsV.js} +1 -1
  19. package/dist/docker-desktop-mx/browser/{chunk-DfetwWmp.js → chunk-CpVmilfG.js} +2 -2
  20. package/dist/docker-desktop-mx/browser/{chunk-B-3JRBZY.js → chunk-CzrtYwlw.js} +1 -1
  21. package/dist/docker-desktop-mx/browser/{chunk-BgPEkm-o.js → chunk-D0pCyzqb.js} +1 -1
  22. package/dist/docker-desktop-mx/browser/chunk-D4dQfTTc.js +1 -0
  23. package/dist/docker-desktop-mx/browser/chunk-DAgdneMS.js +1 -0
  24. package/dist/docker-desktop-mx/browser/{chunk-CEIzuD8m.js → chunk-DBPVGjlB.js} +2 -2
  25. package/dist/docker-desktop-mx/browser/chunk-DEsPgcXV.js +4 -0
  26. package/dist/docker-desktop-mx/browser/chunk-DFhjd8-d2.js +1 -0
  27. package/dist/docker-desktop-mx/browser/chunk-DGtAiSbg.js +1 -0
  28. package/dist/docker-desktop-mx/browser/{chunk-DieHqkfe.js → chunk-DKNRYU3y.js} +1 -1
  29. package/dist/docker-desktop-mx/browser/{chunk-zFBXm_xf2.js → chunk-DLh60Eif.js} +1 -1
  30. package/dist/docker-desktop-mx/browser/chunk-DdFeg3-c.js +3 -0
  31. package/dist/docker-desktop-mx/browser/{chunk-nJjV_Xqa.js → chunk-Di8ZOBwa.js} +1 -1
  32. package/dist/docker-desktop-mx/browser/{chunk-Dw1WSpzf.js → chunk-Doow6WqE.js} +1 -1
  33. package/dist/docker-desktop-mx/browser/chunk-Dq9pgyA42.js +2 -0
  34. package/dist/docker-desktop-mx/browser/chunk-Ds9stAVj.js +1 -0
  35. package/dist/docker-desktop-mx/browser/{chunk-BuLmfnYb2.js → chunk-Dz9ZDzia.js} +1 -1
  36. package/dist/docker-desktop-mx/browser/{chunk-Bg_b-Jjw.js → chunk-MpnWAfxv.js} +1 -1
  37. package/dist/docker-desktop-mx/browser/chunk-fqYbS3e-.js +1 -0
  38. package/dist/docker-desktop-mx/browser/{chunk-CGtoxp5M.js → chunk-lLCuDcp6.js} +1 -1
  39. package/dist/docker-desktop-mx/browser/chunk-nped2UPz.js +1 -0
  40. package/dist/docker-desktop-mx/browser/{chunk-DzQ3NZEw.js → chunk-wVwXBw1N.js} +1 -1
  41. package/dist/docker-desktop-mx/browser/index.html +2 -2
  42. package/dist/docker-desktop-mx/browser/main-HUWYR6IC.js +1 -0
  43. package/dist/docker-desktop-mx/browser/styles-D7Y5N7JX.css +1 -0
  44. package/dist-electron/channels.js +8 -0
  45. package/dist-electron/channels.js.map +1 -1
  46. package/dist-electron/compose.js +3 -1
  47. package/dist-electron/compose.js.map +1 -1
  48. package/dist-electron/cpu-limit.js +58 -0
  49. package/dist-electron/cpu-limit.js.map +1 -0
  50. package/dist-electron/image-file.js +124 -0
  51. package/dist-electron/image-file.js.map +1 -0
  52. package/dist-electron/ipc.js +28 -0
  53. package/dist-electron/ipc.js.map +1 -1
  54. package/dist-electron/preload.js +16 -1
  55. package/dist-electron/preload.js.map +1 -1
  56. package/dist-electron/service-build.js +85 -0
  57. package/dist-electron/service-build.js.map +1 -0
  58. package/package.json +1 -1
  59. package/dist/docker-desktop-mx/browser/chunk-0lzDD7VN.js +0 -1
  60. package/dist/docker-desktop-mx/browser/chunk-AYiAyx6i.js +0 -1
  61. package/dist/docker-desktop-mx/browser/chunk-BhIIfV1H.js +0 -1
  62. package/dist/docker-desktop-mx/browser/chunk-Bo6U-hOl.js +0 -1
  63. package/dist/docker-desktop-mx/browser/chunk-BoHvB94t.js +0 -1
  64. package/dist/docker-desktop-mx/browser/chunk-C5DLS5H5.js +0 -1
  65. package/dist/docker-desktop-mx/browser/chunk-CAMD3gZz.js +0 -3
  66. package/dist/docker-desktop-mx/browser/chunk-CFdB_rJ_.js +0 -6
  67. package/dist/docker-desktop-mx/browser/chunk-CW5lS8he.js +0 -1
  68. package/dist/docker-desktop-mx/browser/chunk-C_5f0tVq.js +0 -4
  69. package/dist/docker-desktop-mx/browser/chunk-C_ouaGQt.js +0 -1
  70. package/dist/docker-desktop-mx/browser/chunk-CpkVTYEc.js +0 -1
  71. package/dist/docker-desktop-mx/browser/chunk-Cz39jf9o.js +0 -1
  72. package/dist/docker-desktop-mx/browser/chunk-D2Fy6Fo8.js +0 -1
  73. package/dist/docker-desktop-mx/browser/chunk-DDNJaJAt2.js +0 -2
  74. package/dist/docker-desktop-mx/browser/chunk-Dh_teJNw.js +0 -1
  75. package/dist/docker-desktop-mx/browser/chunk-DnACbmqU.js +0 -1
  76. package/dist/docker-desktop-mx/browser/chunk-DtDLpTQP.js +0 -1
  77. package/dist/docker-desktop-mx/browser/chunk-PF0v2lXq.js +0 -1
  78. package/dist/docker-desktop-mx/browser/chunk-cblD6gvc.js +0 -1
  79. package/dist/docker-desktop-mx/browser/main-ER3MV5C2.js +0 -1
  80. package/dist/docker-desktop-mx/browser/styles-PTUPDI7O.css +0 -1
@@ -1 +0,0 @@
1
- import{Ct as Tc,Dn as kE,En as jc,Fn as mj,Ft as Wm,G as M,Gn as pg,H as Li,I as Jm,J as My,Kn as pj,L as Km,Mn as lk,O as HE,On as kc,Pt as W$1,R as Kr,S as G,T as Gm,Tn as jI,Tr as zr,V as Ld,Vn as ok,W as Lt$1,X as Nc,Zn as rf,_ as Dj,_r as wt,at as Pr,b as Ej,cn as ec,er as sk,gt as SE,hr as wc,in as dk,it as PS,j as IS,ln as f,lr as ve$1,p as Cj,r as Ac,sn as eH,t as $I,tt as Od,u as C,un as fS,ut as RE,wn as ik,wt as Tg,xt as TE,z as LD}from"./chunk-C_5f0tVq.js";import{n as he$1,t as W$2}from"./chunk-CEIzuD8m.js";import{C as qn,E as tn,O as zn,d as Wn,f as Xn,h as ar,i as Gn,m as Zn,n as Bn,p as Yn,t as $n,u as Tt,y as ir}from"./chunk-S9IeOMe4.js";import{r as g,t as L}from"./chunk-CG34bAfY.js";function Ft(e){let n=C(ie);return Lt$1(()=>e?.()??n())}var ie;var Pt=f(()=>{Kr();ie=new M(`RDX_DIRECTION`,{providedIn:`root`,factory:()=>Lt$1(()=>`ltr`)})});function Kt(){return C(St,{optional:!0,self:!0})}function Bt(e){return{provide:St,useFactory:e}}function Wt(e,n){let t=e.compareDocumentPosition(n);return t&Node.DOCUMENT_POSITION_FOLLOWING||t&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:t&Node.DOCUMENT_POSITION_PRECEDING||t&Node.DOCUMENT_POSITION_CONTAINS?1:0}function de(e){return[...e].filter(n=>n.element.isConnected).sort((n,t)=>Wt(n.element,t.element))}function le(e){let n=new Set;for(let t=1;t<e.length;t+=1){let i=ue(e[t-1],e[t]);i&&n.add(i)}return n}function ue(e,n){let t=e.parentElement;for(;t&&!t.contains(n);)t=t.parentElement;return t}function ce(e){let n=new Set;for(let t of e){for(let i=0;i<t.addedNodes.length;i+=1)if(n.has(t.addedNodes[i]))return!0;for(let i=0;i<t.removedNodes.length;i+=1)n.add(t.removedNodes[i])}for(let t of n)if(t.isConnected)return!0;return!1}function he(e,n){return re.some(t=>!n.includes(t)&&e.getModifierState(t))}function At(e){if(!(e instanceof HTMLElement))return!1;if(e.tagName===`TEXTAREA`)return!0;if(e.tagName!==`INPUT`)return!1;try{return e.selectionStart!=null}catch{return!1}}function zt(e,n){let t=n===`rtl`?$n:qn,i=n===`rtl`?qn:$n;return{forwardKeys:e===`horizontal`?[t]:e===`vertical`?[Wn]:[t,Wn],backwardKeys:e===`horizontal`?[i]:e===`vertical`?[zn]:[i,zn]}}function me(e,n,t,i){let{forwardKeys:o,backwardKeys:s}=zt(t,i),a=n.selectionStart,l=n.selectionEnd,r=n.value??``;return!!(a==null||l==null||e.shiftKey||a!==l||!s.includes(e.key)&&a<r.length||!o.includes(e.key)&&a>0)}function Lt(e,n){return n<0||n>=e.length}function Vt(e,n){return ot(e,{startingIndex:-1,disabledIndices:n})}function pe(e,n){return ot(e,{startingIndex:e.length,decrement:!0,disabledIndices:n})}function ot(e,n={}){let{startingIndex:t=-1,decrement:i=!1,disabledIndices:o}=n,s=i?-1:1;for(let a=t+s;a>=0&&a<e.length;a+=s)if(!$t(e,a,o))return a;return-1}function $t(e,n,t){if(t?.includes(n))return!0;let i=e[n];return i?!ge(i)||i.matches(`:disabled`)?!0:t===void 0&&(i.hasAttribute(`disabled`)||i.getAttribute(`aria-disabled`)===`true`):!1}function fe(e){return e===null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}function ge(e){if(!e||!e.isConnected)return!1;if(typeof Element<`u`&&!(e instanceof Element))return!0;let n;try{n=getComputedStyle(e)}catch{return!0}return n.visibility!==`hidden`&&n.visibility!==`collapse`}function be(e,n,t,i){if(!e||!n||typeof e.scrollTo!=`function`)return;let o=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight,a=e.scrollLeft,l=e.scrollTop;if(o&&i!==`vertical`){let r=Ot(e,n,`left`),d=J(e),p=J(n);t===`ltr`&&(r+n.offsetWidth+p.scrollMarginRight>e.scrollLeft+e.clientWidth-d.scrollPaddingRight?a=r+n.offsetWidth+p.scrollMarginRight-e.clientWidth+d.scrollPaddingRight:r-p.scrollMarginLeft<e.scrollLeft+d.scrollPaddingLeft&&(a=r-p.scrollMarginLeft-d.scrollPaddingLeft)),t===`rtl`&&(r-p.scrollMarginRight<e.scrollLeft+d.scrollPaddingLeft?a=r-p.scrollMarginLeft-d.scrollPaddingLeft:r+n.offsetWidth+p.scrollMarginRight>e.scrollLeft+e.clientWidth-d.scrollPaddingRight&&(a=r+n.offsetWidth+p.scrollMarginRight-e.clientWidth+d.scrollPaddingRight))}if(s&&i!==`horizontal`){let r=Ot(e,n,`top`),d=J(e),p=J(n);r-p.scrollMarginTop<e.scrollTop+d.scrollPaddingTop?l=r-p.scrollMarginTop-d.scrollPaddingTop:r+n.offsetHeight+p.scrollMarginBottom>e.scrollTop+e.clientHeight-d.scrollPaddingBottom&&(l=r+n.offsetHeight+p.scrollMarginBottom-e.clientHeight+d.scrollPaddingBottom)}e.scrollTo({left:a,top:l,behavior:`auto`})}function Ot(e,n,t){let i=t===`left`?`offsetLeft`:`offsetTop`,o=0,s=n;for(;s?.offsetParent&&(o+=s[i],s.offsetParent!==e);)s=s.offsetParent;return o}function J(e){let n=getComputedStyle(e);return{scrollMarginTop:parseFloat(n.scrollMarginTop)||0,scrollMarginRight:parseFloat(n.scrollMarginRight)||0,scrollMarginBottom:parseFloat(n.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(n.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(n.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(n.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(n.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(n.scrollPaddingLeft)||0}}var St;var se;var jt;var ae;var re;var ve;var st;var xe;var W;var O;var ye;var at;var Ie;var z;var Z;var rt=f(()=>{Kr();Kr();tn();Pt();St=new M(`RdxCompositeItemOwner`);se=`data-composite-item-active`,jt=new Set([zn,Wn,$n,qn]),ae=new Set([...jt,Xn,Yn]),re=[`Shift`,`Control`,`Alt`,`Meta`];ve=()=>{let e=C(W);return{listElement:e.elementRef.nativeElement,items:e.items,itemMap:e.itemMap,registerItem:n=>e.registerItem(n),indexOf:n=>e.indexOf(n)}},[st,xe]=Gn(`RdxCompositeListContext`,`utils/composite`),W=(()=>{class e{constructor(){this.elementRef=C(Pr),this.registrations=new Map,this.registrationTick=wt(0),this.reorderTick=wt(0),this.onMapChange=pj(),this.items=Lt$1(()=>(this.reorderTick(),this.registrationTick(),de([...this.registrations.values()]))),this.indexMap=Lt$1(()=>{let t=new Map;return this.items().forEach((i,o)=>{t.set(i.element,o)}),t}),this.itemMap=Lt$1(()=>{let t=new Map;return this.items().forEach((i,o)=>{t.set(i.element,G(W$1({},i.metadata()??{}),{index:o}))}),t}),rf(()=>{this.onMapChange.emit(this.itemMap())}),this.observeItemReordering()}observeItemReordering(){typeof MutationObserver==`function`&&rf(t=>{let i=this.items().map(a=>a.element);if(i.length<2)return;let o=le(i);if(o.size===0)return;let s=new MutationObserver(a=>{if(!ce(a))return;let l=null;for(let r of i)if(r.isConnected){if(l&&Wt(l,r)>0){s.disconnect(),this.reorderTick.update(d=>d+1);return}l=r}});o.forEach(a=>s.observe(a,{childList:!0})),t(()=>s.disconnect())})}registerItem(t){return this.registrations.set(t.element,t),this.registrationTick.update(i=>i+1),()=>{this.registrations.get(t.element)===t&&(this.registrations.delete(t.element),this.registrationTick.update(i=>i+1))}}indexOf(t){return this.indexMap().get(t)??-1}elements(){return this.items().map(t=>t.element)}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=$I({type:e,selectors:[[``,`rdxCompositeList`,``]],outputs:{onMapChange:`onMapChange`},exportAs:[`rdxCompositeList`],features:[IS([xe(ve)])]})}}return e})(),O=(()=>{class e{constructor(){this.owner=Kt(),this.injectedListContext=this.owner?null:st(!0),this.elementRef=C(Pr),this.hasRendered=wt(!1),this.listContext=Lt$1(()=>this.owner?this.owner.listContext():this.injectedListContext),this.metadataInput=jc(void 0,{alias:`metadata`}),this._metadata=PS(()=>this.metadataInput()),this.index=Lt$1(()=>this.listContext()?.indexOf(this.elementRef.nativeElement)??-1),this.inListElement=Lt$1(()=>this.isInListElement(this.listContext())),LD(()=>{this.hasRendered.set(!0)}),rf(t=>{let i=this.listContext();if(!i||!this.hasRendered()||!this.isInListElement(i))return;let o=this.elementRef.nativeElement;t(Tg(()=>i.registerItem({element:o,metadata:this._metadata.asReadonly()})))})}setMetadata(t){this._metadata.set(t)}isInListElement(t){return!!t&&t.listElement.contains(this.elementRef.nativeElement)}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=$I({type:e,selectors:[[``,`rdxCompositeListItem`,``]],inputs:{metadataInput:[1,`metadata`,`metadataInput`]},exportAs:[`rdxCompositeListItem`]})}}return e})(),ye=()=>{let e=C(z);return{rootElement:e.elementRef.nativeElement,highlightedIndex:e.highlightedIndex.asReadonly(),highlightItemOnHover:e.highlightItemOnHover,orientation:e.orientation,dir:e.dir,isIndexDisabled:n=>e.isIndexDisabled(n),setHighlightedIndex:(n,t)=>e.setHighlightedIndex(n,t),relayKeyboardEvent:n=>e.relayKeyboardEvent(n)}},[at,Ie]=Gn(`RdxCompositeRootContext`,`utils/composite`),z=(()=>{class e{constructor(){this.elementRef=C(Pr),this.compositeList=C(W,{self:!0}),this.hasSetInitialIndex=!1,this.orientationInput=jc(`both`,{alias:`orientation`}),this._orientation=PS(()=>this.orientationInput()),this.orientation=this._orientation.asReadonly(),this.dirInput=jc(void 0,{alias:`dir`}),this.effectiveDir=Ft(this.dirInput),this._dir=PS(()=>this.effectiveDir()),this.dir=this._dir.asReadonly(),this.loopFocusInput=jc(!0,{alias:`loopFocus`,transform:Dj}),this._loopFocus=PS(()=>this.loopFocusInput()),this.loopFocus=this._loopFocus.asReadonly(),this.enableHomeAndEndKeysInput=jc(!1,{alias:`enableHomeAndEndKeys`,transform:Dj}),this._enableHomeAndEndKeys=PS(()=>this.enableHomeAndEndKeysInput()),this.enableHomeAndEndKeys=this._enableHomeAndEndKeys.asReadonly(),this.disabledIndicesInput=jc(void 0,{alias:`disabledIndices`}),this._disabledIndices=PS(()=>this.disabledIndicesInput()),this.disabledIndices=this._disabledIndices.asReadonly(),this.modifierKeysInput=jc([],{alias:`modifierKeys`}),this._modifierKeys=PS(()=>this.modifierKeysInput()),this.modifierKeys=this._modifierKeys.asReadonly(),this.highlightItemOnHover=jc(!1,{transform:Dj}),this.stopEventPropagation=jc(!0,{transform:Dj}),this.highlightedIndex=mj(0),this.onHighlightedIndexChange=pj(),this.onMapChange=pj(),this.items=this.compositeList.items,this.itemMap=this.compositeList.itemMap,rf(()=>{let t=this.items();if(t.length!==0){if(!this.hasSetInitialIndex){this.hasSetInitialIndex=!0;let i=t.findIndex(o=>o.element.hasAttribute(se));if(i!==-1){this.setHighlightedIndex(i,!0);return}this.moveHighlightOffDisabledItem();return}this.disabledIndices()!=null&&this.moveHighlightOffDisabledItem()}}),rf(()=>{this.onMapChange.emit(this.itemMap())})}moveHighlightOffDisabledItem(){if(!this.isIndexDisabled(this.highlightedIndex()))return;let t=this.elements(),i=Vt(t,this.disabledIndices());Lt(t,i)||this.setHighlightedIndex(i)}indexOf(t){return this.compositeList.indexOf(t)}setOrientation(t){this._orientation.set(t)}setLoopFocus(t){this._loopFocus.set(t)}setDir(t){this._dir.set(t)}setEnableHomeAndEndKeys(t){this._enableHomeAndEndKeys.set(t)}setDisabledIndices(t){this._disabledIndices.set(t)}setModifierKeys(t){this._modifierKeys.set(t)}isIndexDisabled(t){return $t(this.elements(),t,this.disabledIndices())}setHighlightedIndex(t,i=!1){this.highlightedIndex()!==t&&(this.highlightedIndex.set(t),this.onHighlightedIndexChange.emit(t)),i&&be(this.elementRef.nativeElement,this.elements()[t],this.dir(),this.orientation())}relayKeyboardEvent(t){this.handleCompositeKeydown(t,!0)}handleKeydown(t){this.handleCompositeKeydown(t,!1)}handleFocusIn(t){let i=t.target;At(i)&&i.setSelectionRange(0,i.value.length)}handleCompositeKeydown(t,i){if(!(this.enableHomeAndEndKeys()?ae:jt).has(t.key)||he(t,this.modifierKeys()))return;let s=t.target,a=this.elementRef.nativeElement;if(!i&&s instanceof HTMLElement){let d=s.closest(`[rdxCompositeRoot]`);if(d&&d!==a)return}if(At(s)&&!fe(s))try{if(me(t,s,this.orientation(),this.dir()))return}catch{return}let l=this.elements();if(l.length===0)return;let r=this.getNextIndex(t,l);r===this.highlightedIndex()||Lt(l,r)||(this.stopEventPropagation()&&t.stopPropagation(),t.preventDefault(),this.setHighlightedIndex(r,!0),queueMicrotask(()=>{this.elements()[r]?.focus()}))}getNextIndex(t,i){let o=this.highlightedIndex(),s=Vt(i,this.disabledIndices()),a=pe(i,this.disabledIndices());if(this.enableHomeAndEndKeys()){if(t.key===`Home`)return s;if(t.key===`End`)return a}let{forwardKeys:l,backwardKeys:r}=zt(this.orientation(),this.dir()),d=l.includes(t.key),p=r.includes(t.key);if(!d&&!p)return o;let E=p,Xt=E?s:a,Yt=E?a:s;return this.loopFocus()&&o===Xt?Yt:ot(i,{startingIndex:o,decrement:E,disabledIndices:this.disabledIndices()})}elements(){return this.compositeList.elements()}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=$I({type:e,selectors:[[``,`rdxCompositeRoot`,``]],hostBindings:function(i,o){i&1&&Jm(`keydown`,function(a){return o.handleKeydown(a)})(`focusin`,function(a){return o.handleFocusIn(a)})},inputs:{orientationInput:[1,`orientation`,`orientationInput`],dirInput:[1,`dir`,`dirInput`],loopFocusInput:[1,`loopFocus`,`loopFocusInput`],enableHomeAndEndKeysInput:[1,`enableHomeAndEndKeys`,`enableHomeAndEndKeysInput`],disabledIndicesInput:[1,`disabledIndices`,`disabledIndicesInput`],modifierKeysInput:[1,`modifierKeys`,`modifierKeysInput`],highlightItemOnHover:[1,`highlightItemOnHover`],stopEventPropagation:[1,`stopEventPropagation`],highlightedIndex:[1,`highlightedIndex`]},outputs:{highlightedIndex:`highlightedIndexChange`,onHighlightedIndexChange:`onHighlightedIndexChange`,onMapChange:`onMapChange`},exportAs:[`rdxCompositeRoot`],features:[IS([Ie(ye)]),jI([W])]})}}return e})(),Z=(()=>{class e{constructor(){this.owner=Kt(),this.injectedRootContext=this.owner?null:at(!0),this.listItem=C(O,{self:!0}),this.elementRef=C(Pr),this.rootContext=Lt$1(()=>this.owner?this.owner.rootContext():this.injectedRootContext),this.index=this.listItem.index,this.tabIndex=Lt$1(()=>{let t=this.rootContext();if(!this.isInRootElement(t))return null;let i=this.index();return i!==-1&&t.highlightedIndex()===i&&!t.isIndexDisabled(i)?0:-1})}setMetadata(t){this.listItem.setMetadata(t)}handleFocus(){let t=this.rootContext(),i=this.index();i!==-1&&this.isInRootElement(t)&&t.setHighlightedIndex(i)}handleMouseMove(t){if(ir(t))return;let i=this.rootContext(),o=this.index();!this.isInRootElement(i)||o===-1||!i.highlightItemOnHover()||i.highlightedIndex()===o||i.isIndexDisabled(o)||this.elementRef.nativeElement.focus()}isInRootElement(t){return!!t&&t.rootElement.contains(this.elementRef.nativeElement)}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=$I({type:e,selectors:[[``,`rdxCompositeItem`,``]],hostVars:1,hostBindings:function(i,o){i&1&&Jm(`focus`,function(){return o.handleFocus()})(`mousemove`,function(a){return o.handleMouseMove(a)}),i&2&&zr(`tabindex`,o.tabIndex())},exportAs:[`rdxCompositeItem`],features:[jI([{directive:O,inputs:[`metadata`,`metadata`]}])]})}}return e})()});function qt(e,n){return`${e}-tab-${n}`}function Ut(e,n){return`${e}-panel-${n}`}function De(e){return typeof e.disabled==`boolean`&&typeof e.id==`string`&&Object.prototype.hasOwnProperty.call(e,`value`)}function Te(e,n){for(let t of e.values())if(t.value===n)return t}function Ne(e){for(let n of e.values())if(!n.disabled)return n.value}function ke(e,n,t,i){if(e==null||n==null)return`none`;let o=null,s=null,a=-1,l=-1;for(let[p,E]of i.entries())if(E.value===e&&(o=p,a=E.index),E.value===n&&(s=p,l=E.index),o&&s)break;if(!o||!s||a===l)return Fe(e,n,t);let r=o.getBoundingClientRect(),d=s.getBoundingClientRect();return t===`horizontal`?d.left<r.left?`left`:d.left>r.left||l>a?`right`:`left`:d.top<r.top?`up`:d.top>r.top||l>a?`down`:`up`}function Fe(e,n,t){return e!==n&&typeof e==`number`&&typeof n==`number`||e!==n&&typeof e==`string`&&typeof n==`string`?t===`horizontal`?n>e?`right`:`left`:n>e?`down`:`up`:`none`}function Ae(){return Bt(Pe)}var tt;var Me;var fi;var Re;var _e;var Ee;var we;var Pe;var gi;var Le=f(()=>{Kr();Kr();tn();rt();rt();g();[tt,Me]=Gn(`RdxTabsRootContext`,`components/tabs`);fi=(()=>{class e{constructor(){this.rootContext=tt(),this.elementRef=C(Pr),this.compositeRoot=C(z,{self:!0}),this.compositeRootContext=at(),this.compositeListContext=st(),this.activateOnFocus=jc(!1,{transform:Dj}),this.loopFocus=jc(!0,{transform:Dj}),this.tabMap=Lt$1(()=>{let i=new Map;return this.compositeRoot.itemMap().forEach((o,s)=>{De(o)&&i.set(s,o)}),i}),this.tabMetadata=Lt$1(()=>Array.from(this.tabMap().values())),this.disabledIndices=Lt$1(()=>this.tabMetadata().filter(i=>i.disabled).map(i=>i.index)),this.activeIndex=Lt$1(()=>{let i=this.rootContext.value();return this.tabMetadata().find(s=>s.value===i)?.index??-1});let t=this.rootContext.registerTabList(this.elementRef.nativeElement,this.compositeRootContext,this.compositeListContext);C(ve$1).onDestroy(t),this.compositeRoot.setEnableHomeAndEndKeys(!0),this.compositeRoot.setDisabledIndices([]),rf(()=>{this.compositeRoot.setOrientation(this.rootContext.orientation()),this.compositeRoot.setLoopFocus(this.loopFocus())}),rf(()=>{this.rootContext.setTabMap(this.tabMap())}),rf(()=>{let i=this.activeIndex();if(i===-1)return;let o=this.elementRef.nativeElement,s=o.ownerDocument.activeElement;if(!(s&&o.contains(s))){if(this.disabledIndices().includes(i)){let a=this.tabMetadata().find(l=>!l.disabled)?.index;a!==void 0&&this.compositeRoot.setHighlightedIndex(a);return}this.compositeRoot.setHighlightedIndex(i)}}),rf(()=>this.rootContext.setActivateOnFocus(this.activateOnFocus()))}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=$I({type:e,selectors:[[``,`rdxTabsList`,``]],hostAttrs:[`role`,`tablist`],hostVars:3,hostBindings:function(i,o){i&2&&zr(`aria-orientation`,o.rootContext.orientation()===`vertical`?`vertical`:void 0)(`data-orientation`,o.rootContext.orientation())(`data-activation-direction`,o.rootContext.activationDirection())},inputs:{activateOnFocus:[1,`activateOnFocus`],loopFocus:[1,`loopFocus`]},exportAs:[`rdxTabsList`],features:[jI([z])]})}}return e})();Re=()=>({present:C(_e).present}),_e=(()=>{class e{constructor(){this.elementRef=C(Pr),this.listItem=C(O,{self:!0}),this.rootContext=tt(),this.value=jc.required(),this.keepMounted=jc(!1,{transform:Dj}),this.transition=ar(()=>{}),this.transitionStatus=this.transition.status,this.panelId=Lt$1(()=>Ut(this.rootContext.baseId,this.value())),this.tabId=Lt$1(()=>{let i=this.value();for(let o of this.rootContext.tabMap().values())if(o.value===i)return o.id;return qt(this.rootContext.baseId,i)}),this.active=Lt$1(()=>this.rootContext.value()===this.value()),this.hasPresence=wt(!1),this.present=Lt$1(()=>this.keepMounted()||this.active()),this.hidden=Lt$1(()=>!this.active()&&this.transitionStatus()!==`ending`&&(!this.hasPresence()||this.keepMounted())),this.index=this.listItem.index,this.previousActive=!1,this.isFirstRun=!0;let t=this.transition.registerElement(this.elementRef.nativeElement);C(ve$1).onDestroy(t),rf(()=>{this.listItem.setMetadata({id:this.panelId(),value:this.value()})}),rf(()=>{let i=this.active();if(this.isFirstRun){this.isFirstRun=!1,this.previousActive=i;return}i!==this.previousActive&&(this.previousActive=i,Tg(()=>this.transition.start(i)))})}markHasPresence(){this.hasPresence.set(!0)}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=$I({type:e,selectors:[[``,`rdxTabsPanel`,``]],hostAttrs:[`role`,`tabpanel`],hostVars:10,hostBindings:function(i,o){i&2&&(Km(`hidden`,o.hidden()),zr(`id`,o.panelId())(`tabindex`,o.active()?0:-1)(`aria-labelledby`,o.tabId())(`data-orientation`,o.rootContext.orientation())(`data-activation-direction`,o.rootContext.activationDirection())(`data-index`,o.index())(`data-hidden`,o.active()?void 0:``)(`data-starting-style`,o.transitionStatus()===`starting`?``:void 0)(`data-ending-style`,o.transitionStatus()===`ending`?``:void 0))},inputs:{value:[1,`value`],keepMounted:[1,`keepMounted`]},exportAs:[`rdxTabsPanel`],features:[IS([L(Re)]),jI([O])]})}}return e})(),Ee=()=>{let e=C(we);return{baseId:e.baseId,value:e.value,orientation:e.orientation,activationDirection:e.activationDirection.asReadonly(),activateOnFocus:e.activateOnFocus.asReadonly(),tabListElement:e.tabListElement.asReadonly(),tabMap:e.tabMap.asReadonly(),tabCompositeRoot:e.tabCompositeRoot.asReadonly(),tabCompositeList:e.tabCompositeList.asReadonly(),setValue:(n,t,i)=>e.setValue(n,t,i),setActivateOnFocus:n=>e.activateOnFocus.set(n),registerTabList:(n,t,i)=>e.registerTabList(n,t,i),setTabMap:n=>e.tabMap.set(n)}},we=(()=>{class e{constructor(){this.baseId=Tt(`rdx-tabs-`),this.value=mj(),this.defaultValue=jc(void 0),this.orientation=jc(`horizontal`),this.onValueChange=pj(),this.activateOnFocus=wt(!1),this.tabListElement=wt(null),this.tabMap=wt(new Map),this.tabCompositeRoot=wt(null),this.tabCompositeList=wt(null),this.activationDirection=wt(`none`),this.externallyControlled=wt(!1),this.hasObservedValue=!1,this.internalValueCommit=!1,this.hasAppliedDefaultValue=!1,this.shouldNotifyInitialValueChange=!0,this.shouldHonorDisabledDefaultValue=!1,this.didRegisterTabs=!1,rf(()=>{let t=this.value();if(this.internalValueCommit){this.internalValueCommit=!1,this.hasObservedValue=!0,this.previousObservedValue=t;return}if(!this.hasObservedValue){this.hasObservedValue=!0,this.previousObservedValue=t,t!==void 0&&this.externallyControlled.set(!0);return}t!==this.previousObservedValue&&(this.externallyControlled.set(!0),this.previousObservedValue=t)}),rf(()=>{if(this.hasAppliedDefaultValue||Tg(this.value)!==void 0)return;let t=this.defaultValue(),i=t!==void 0;this.hasAppliedDefaultValue=!0,this.initialDefaultValue=t??0,this.shouldNotifyInitialValueChange=!i,this.shouldHonorDisabledDefaultValue=i,Tg(()=>this.commitValue(this.initialDefaultValue))}),rf(()=>{let t=this.tabMap(),i=this.value();if(this.externallyControlled())return;if(t.size===0){this.didRegisterTabs&&i!==null&&!this.lastKnownTabElement?.isConnected&&Tg(()=>this.commitAutomaticValueChange(null,`missing`));return}this.didRegisterTabs=!0,this.lastKnownTabElement=t.keys().next().value;let o=Te(t,i),s=Ne(t),a=o?.disabled,l=o==null&&i!==null;if(!a&&i===this.initialDefaultValue&&(this.shouldHonorDisabledDefaultValue=!1),this.shouldHonorDisabledDefaultValue&&a&&i===this.initialDefaultValue)return;let r=this.shouldNotifyInitialValueChange;if(a||l){let d=s??null;if(i===d){this.shouldNotifyInitialValueChange=!1;return}let p=`missing`;r?p=`initial`:a&&(p=`disabled`),Tg(()=>this.commitAutomaticValueChange(d,p));return}r&&o!=null&&(Tg(()=>this.notifyAutomaticValueChange(i,`initial`)),this.shouldNotifyInitialValueChange=!1)})}setValue(t,i,o=`none`){let s=this.value();if(s===t)return;let a=i?.currentTarget instanceof HTMLElement?i.currentTarget:void 0,{eventDetails:l}=Zn(o,i??new Event(`tabs.value-change`),a),r=l,d=ke(s,t,this.orientation(),this.tabMap());r.activationDirection=d,this.onValueChange.emit({value:t,eventDetails:r}),!r.isCanceled()&&(this.activationDirection.set(d),this.commitValue(t))}registerTabList(t,i,o){return this.tabListElement.set(t),this.tabCompositeRoot.set(i),this.tabCompositeList.set(o),()=>{this.tabCompositeRoot()!==i||this.tabCompositeList()!==o||(this.tabListElement.set(null),this.tabCompositeRoot.set(null),this.tabCompositeList.set(null),this.activateOnFocus.set(!1))}}commitValue(t){this.internalValueCommit=!0,this.value.set(t)}commitAutomaticValueChange(t,i){this.activationDirection.set(`none`),this.commitValue(t),this.notifyAutomaticValueChange(t,i),this.shouldNotifyInitialValueChange=!1}notifyAutomaticValueChange(t,i){if(t===void 0)return;let{eventDetails:o}=Zn(i,new Event(`tabs.value-change`)),s=o;s.activationDirection=`none`,this.onValueChange.emit({value:t,eventDetails:s})}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=$I({type:e,selectors:[[``,`rdxTabsRoot`,``]],hostVars:2,hostBindings:function(i,o){i&2&&zr(`data-orientation`,o.orientation())(`data-activation-direction`,o.activationDirection())},inputs:{value:[1,`value`],defaultValue:[1,`defaultValue`],orientation:[1,`orientation`]},outputs:{value:`valueChange`,onValueChange:`onValueChange`},exportAs:[`rdxTabsRoot`],features:[IS([Me(Ee)]),jI([W])]})}}return e})();Pe=()=>{let e=tt();return{rootContext:e.tabCompositeRoot,listContext:e.tabCompositeList}};gi=(()=>{class e{constructor(){this.rootContext=tt(),this.compositeItem=C(Z,{self:!0}),this.elementRef=C(Pr),this.value=jc.required(),this.disabled=jc(!1,{transform:Dj}),this.nativeButton=jc(!0,{transform:Dj}),this.id=jc(void 0),this.tabId=Lt$1(()=>this.id()??qt(this.rootContext.baseId,this.value())),this.panelId=Lt$1(()=>Ut(this.rootContext.baseId,this.value())),this.active=Lt$1(()=>this.rootContext.value()===this.value()),this.isPressing=!1,this.isMainButton=!1,Ej()&&Cj(()=>{let t=this.rootContext.tabCompositeList();t&&!t.listElement.contains(this.elementRef.nativeElement)&&Bn(`tabs/tab-outside-list`,'`rdxTabsTab` is rendered outside its `rdxTabsList`, so it gets no roving tabindex, arrow keys cannot reach it, and its `role="tab"` sits outside the `role="tablist"`. Move the tab inside the list, or project it there with `<ng-content>`.',`components/tabs`)}),rf(()=>{this.compositeItem.setMetadata({disabled:this.disabled(),id:this.tabId(),value:this.value()})})}onClick(t){this.active()||this.disabled()||this.rootContext.setValue(this.value(),t,`none`)}onKeyDown(t){!this.disabled()&&(t.key===` `||t.key===`Enter`)&&this.rootContext.setValue(this.value(),t,`none`)}onPointerDown(t){if(this.active()||this.disabled())return;this.isPressing=!0,this.isMainButton=t.button===0;let i=t.currentTarget instanceof HTMLElement?t.currentTarget.ownerDocument:document;i.addEventListener(`pointerup`,()=>{this.isPressing=!1,this.isMainButton=!1},{once:!0}),i.addEventListener(`pointercancel`,()=>{this.isPressing=!1,this.isMainButton=!1},{once:!0}),i.addEventListener(`blur`,()=>{this.isPressing=!1,this.isMainButton=!1},{once:!0})}onFocus(t){this.active()||this.disabled()||this.rootContext.activateOnFocus()&&(!this.isPressing||this.isMainButton)&&this.rootContext.setValue(this.value(),t,`none`)}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=$I({type:e,selectors:[[``,`rdxTabsTab`,``]],hostAttrs:[`role`,`tab`],hostVars:11,hostBindings:function(i,o){i&1&&Jm(`click`,function(a){return o.onClick(a)})(`keydown`,function(a){return o.onKeyDown(a)})(`pointerdown`,function(a){return o.onPointerDown(a)})(`focus`,function(a){return o.onFocus(a)}),i&2&&zr(`type`,o.nativeButton()?`button`:void 0)(`id`,o.tabId())(`aria-selected`,o.active())(`aria-controls`,o.panelId())(`aria-disabled`,o.disabled()?`true`:void 0)(`disabled`,null)(`data-composite-item-active`,o.active()?``:void 0)(`data-orientation`,o.rootContext.orientation())(`data-activation-direction`,o.rootContext.activationDirection())(`data-active`,o.active()?``:void 0)(`data-disabled`,o.disabled()?``:void 0)},inputs:{value:[1,`value`],disabled:[1,`disabled`],nativeButton:[1,`nativeButton`],id:[1,`id`]},exportAs:[`rdxTabsTab`],features:[IS([Ae()]),jI([Z])]})}}return e})()});function Ve(e,n){if(e&1&&(Li(0,`p`,8),fS(1),Nc()),e&2){let t=HE(2);ec(),pg(t.t().introHost)}}function Oe(e,n){if(e&1&&(Li(0,`p`,8),fS(1),Nc()),e&2){let t=HE(2);ec(),pg(t.t().introContainer)}}function He(e,n){if(e&1&&SE(0,Ve,2,1,`p`,8)(1,Oe,2,1,`p`,8),e&2)kE(HE().containerId()===null?0:1)}function Se(e,n){if(e&1&&(Li(0,`p`,9),fS(1),Nc()),e&2){let t=HE().$implicit;ec(),pg(t.text)}}function Ke(e,n){if(e&1&&Gm(0,`app-answer-text`,10),e&2){let t=HE().$implicit;Wm(`text`,t.text)}}function Be(e,n){if(e&1&&(Li(0,`p`,11),Gm(1,`app-icon`,15),fS(2),Nc()),e&2){let t=HE().$implicit;ec(),Wm(`size`,12),ec(),Ac(` `,t.label,` `)}}function je(e,n){if(e&1&&(Li(0,`pre`,17),fS(1),Nc()),e&2){let t=HE(2).$implicit;ec(),pg(t.proposal.command)}}function We(e,n){if(e&1&&(Li(0,`span`,21),fS(1),Nc()),e&2){let t=HE(2).$implicit,i=HE();ec(),pg(t.proposal.kind===`command`?i.t().onPrompt:i.t().done)}}function ze(e,n){if(e&1&&(Li(0,`span`,22),fS(1),Nc()),e&2){let t=HE(2).$implicit;ec(),pg(t.problem)}}function $e(e,n){if(e&1){let t=RE();Li(0,`div`,12)(1,`p`,16),fS(2),Nc(),SE(3,je,2,1,`pre`,17),Li(4,`div`,18)(5,`button`,19),Jm(`click`,function(){Od(t);let o=HE(),s=o.$implicit,a=o.$index;return Ld(HE().carryOut(a,s.proposal))}),Gm(6,`app-icon`,20),fS(7),Nc(),SE(8,We,2,1,`span`,21)(9,ze,2,1,`span`,22),Nc()()}if(e&2){let t=HE().$implicit,i=HE();ec(2),pg(t.proposal.reason),ec(),kE(t.proposal.kind===`command`?3:-1),ec(2),Wm(`disabled`,t.state===`busy`||t.state===`done`&&t.proposal.kind!==`command`),ec(),Wm(`name`,i.proposalIcon(t.proposal))(`size`,14),ec(),Ac(` `,i.proposalLabel(t.proposal),` `),ec(),kE(t.state===`done`?8:t.state===`failed`?9:-1)}}function qe(e,n){if(e&1&&(Li(0,`p`,13),fS(1),Nc()),e&2){let t=HE().$implicit;ec(),pg(t.text)}}function Ue(e,n){if(e&1&&(Li(0,`p`,14),fS(1),Nc()),e&2){let t=HE().$implicit;ec(),Ac(` `,t.problem,` `)}}function Qe(e,n){if(e&1&&SE(0,Se,2,1,`p`,9)(1,Ke,1,1,`app-answer-text`,10)(2,Be,3,2,`p`,11)(3,$e,10,7,`div`,12)(4,qe,2,1,`p`,13)(5,Ue,2,1,`p`,14),e&2){let t,i=n.$implicit;kE((t=i.kind)===`question`?0:t===`answer`?1:t===`tool`?2:t===`proposal`?3:t===`usage`?4:t===`error`?5:-1)}}function Xe(e,n){if(e&1&&(Li(0,`p`,2),fS(1),Nc()),e&2){let t=HE();ec(),pg(t.t().thinking)}}function dt(e){return e.toLocaleString(ik())}var Qt;var Ye=f(()=>{Kr();lk();he$1();dk();sk();Kr();Qt=class e{containerId=jc(null);commandChosen=pj();entries=wt([]);busy=wt(!1);draft=wt(``);t=Lt$1(()=>ok().containers.assistant);defaultQuestion=Lt$1(()=>this.containerId()===null?this.t().defaultHostQuestion:this.t().defaultQuestion);conversationId=null;unsubscribe=null;destroyed=!1;constructor(){C(ve$1).onDestroy(()=>{this.destroyed=!0,this.unsubscribe?.(),this.conversationId!==null&&window.electron.assistant.close(this.conversationId)})}async submit(n){n.preventDefault();let t=this.draft().trim()||(this.entries().length===0?this.defaultQuestion():``);if(!(t===``||this.busy())){this.draft.set(``),this.busy.set(!0),this.append({kind:`question`,text:t});try{let i=await this.conversation();await window.electron.assistant.ask(i,t)}catch(i){this.append({kind:`error`,problem:eH(i)})}finally{this.busy.set(!1)}}}proposalLabel(n){let t=this.t();return n.kind===`command`?t.putInTerminal:n.kind===`compose`?t.composeUp(n.project):t[n.action](n.containerName)}proposalIcon(n){return n.kind===`command`?`terminal`:n.kind===`compose`?`play`:{start:`play`,stop:`stop`,restart:`refresh`}[n.action]}async carryOut(n,t){if(t.kind===`command`){this.commandChosen.emit(t.command),this.updateProposal(n,{state:`done`});return}this.updateProposal(n,{state:`busy`});try{let i=t.kind===`compose`?await window.electron.compose.up(t.project):await window.electron.containers.action(t.action,t.containerId);this.updateProposal(n,i.ok?{state:`done`}:{state:`failed`,problem:i.problem})}catch(i){this.updateProposal(n,{state:`failed`,problem:eH(i)})}}async conversation(){if(this.conversationId!==null)return this.conversationId;let n=await window.electron.assistant.start(this.containerId());if(this.destroyed)throw window.electron.assistant.close(n),new Error(this.t().panelClosed);return this.conversationId=n,this.unsubscribe=window.electron.assistant.onEvent(n,t=>this.receive(t)),n}receive(n){switch(n.type){case`text`:this.entries.update(t=>{let i=t.at(-1);return i?.kind===`answer`?[...t.slice(0,-1),{kind:`answer`,text:i.text+n.text}]:n.text.trim()===``?t:[...t,{kind:`answer`,text:n.text}]});break;case`tool`:this.append({kind:`tool`,label:n.label});break;case`proposal`:this.append({kind:`proposal`,proposal:n.proposal,state:`open`});break;case`done`:this.append({kind:`usage`,text:this.t().usage(dt(n.inputTokens),dt(n.cachedTokens),dt(n.outputTokens))});break;case`error`:this.append({kind:`error`,problem:n.problem});break}}append(n){this.entries.update(t=>[...t,n])}updateProposal(n,t){this.entries.update(i=>i.map((o,s)=>s===n&&o.kind===`proposal`?W$1(W$1({},o),t):o))}static ɵfac=function(t){return new(t||e)};static ɵcmp=wc({type:e,selectors:[[`app-assistant-view`]],hostAttrs:[1,`flex`,`h-full`,`flex-col`],inputs:{containerId:[1,`containerId`]},outputs:{commandChosen:`commandChosen`},decls:13,vars:9,consts:[[`data-testid`,`assistant-log`,1,`min-h-0`,`flex-1`,`overflow-y-auto`,`px-6`,`py-4`],[1,`max-w-3xl`,`space-y-3`],[1,`text-[12px]`,`text-ink-500`],[1,`flex`,`shrink-0`,`gap-2`,`border-t`,`border-ink-700`,`px-6`,`py-3`,3,`submit`],[`for`,`assistant-question`,1,`sr-only`],[`id`,`assistant-question`,`type`,`text`,`autocomplete`,`off`,1,`mx-focus`,`min-w-0`,`flex-1`,`rounded-md`,`border`,`border-ink-700`,`bg-ink-800`,`px-3`,`py-1.5`,`text-[13px]`,`text-ink-100`,`placeholder:text-ink-500`,3,`input`,`placeholder`,`value`,`disabled`],[`type`,`submit`,`data-testid`,`assistant-ask`,1,`mx-btn`,`mx-focus`,3,`disabled`],[`name`,`sparkle`,3,`size`],[1,`max-w-2xl`,`text-[13px]`,`text-ink-400`],[1,`rounded-md`,`bg-ink-800`,`px-3`,`py-2`,`text-[13px]`,`text-ink-100`],[`data-testid`,`assistant-answer`,1,`text-[13px]`,`leading-relaxed`,`text-ink-200`,3,`text`],[`data-testid`,`assistant-tool`,1,`flex`,`items-center`,`gap-1.5`,`text-[12px]`,`text-ink-500`],[`data-testid`,`assistant-proposal`,1,`rounded-md`,`border`,`border-ink-700`,`bg-ink-850`,`px-3`,`py-2`],[`data-testid`,`assistant-usage`,1,`text-[11px]`,`text-ink-600`],[`data-testid`,`assistant-error`,1,`rounded-md`,`border`,`border-danger/40`,`bg-danger/10`,`px-3`,`py-2`,`text-[13px]`,`text-danger`],[`name`,`search`,3,`size`],[1,`text-[12px]`,`text-ink-400`],[1,`mt-2`,`overflow-x-auto`,`rounded`,`bg-ink-900`,`px-2`,`py-1`,`font-mono`,`text-[12px]`,`text-ink-100`],[1,`mt-2`,`flex`,`items-center`,`gap-2`],[`type`,`button`,1,`mx-btn`,`mx-focus`,3,`click`,`disabled`],[3,`name`,`size`],[1,`text-[12px]`,`text-ok`],[1,`text-[12px]`,`text-danger`]],template:function(t,i){t&1&&(Li(0,`div`,0),SE(1,He,2,1),Li(2,`div`,1),kc(3,Qe,6,1,null,null,TE),SE(5,Xe,2,1,`p`,2),Nc()(),Li(6,`form`,3),Jm(`submit`,function(s){return i.submit(s)}),Li(7,`label`,4),fS(8),Nc(),Li(9,`input`,5),Jm(`input`,function(s){return i.draft.set(s.target.value)}),Nc(),Li(10,`button`,6),Gm(11,`app-icon`,7),fS(12),Nc()()),t&2&&(ec(),kE(i.entries().length===0?1:-1),ec(2),Tc(i.entries()),ec(2),kE(i.busy()?5:-1),ec(3),pg(i.t().questionLabel),ec(),Wm(`placeholder`,i.entries().length===0?i.defaultQuestion():i.t().followUp)(`value`,i.draft())(`disabled`,i.busy()),ec(),Wm(`disabled`,i.busy()),ec(),Wm(`size`,14),ec(),Ac(` `,i.t().ask,` `))},dependencies:[W$2,My],encapsulation:2})}});export{fi as a,_e as i,Qt as n,gi as o,Ye as r,we as s,Le as t};
@@ -1,3 +0,0 @@
1
- import{Dn as kE,En as jc,Ft as Wm,Gn as pg,H as Li,I as Jm,In as nS,J as My,Kt as _m,O as HE,Pn as mg,R as Kr,T as Gm,Vn as ok,W as Lt,X as Nc,Zn as rf,_r as wt,_t as SS,cn as ec,er as sk,gt as SE,hr as wc,in as dk,ln as f,mt as Rp,r as Ac,u as C,un as fS,wt as Tg}from"./chunk-C_5f0tVq.js";import"./chunk-Bg_b-Jjw.js";import"./chunk-0lzDD7VN.js";import{n as v,t as u}from"./chunk-PF0v2lXq.js";import{n as x,t as u$1}from"./chunk-Dw1WSpzf.js";import{a as Yt,u as ra}from"./chunk-CW5lS8he.js";import{i as z,n as oe$1,r as x$1}from"./chunk-BgPEkm-o.js";function U(n,e){let t=new Map;for(let o of n)if(o.state===`running`)for(let i of o.ports)i.hostPort!==null&&t.set(`${o.id}:${String(i.hostPort)}:${String(i.containerPort)}/${i.protocol}`,{hostPort:i.hostPort,containerId:o.id,containerName:o.name,containerPort:i.containerPort,protocol:i.protocol,hostIp:i.hostIp??null,missing:!1});for(let o of e)if(o.kind===`ports`)for(let i of o.ports)t.set(`${o.id}:missing:${String(i.hostPort)}:${String(i.containerPort)}/${i.protocol}`,{hostPort:i.hostPort,containerId:o.id,containerName:o.name,containerPort:i.containerPort,protocol:i.protocol,hostIp:i.hostIp,missing:!0});return[...t.values()].sort((o,i)=>(o.hostPort??Infinity)-(i.hostPort??Infinity)||o.containerName.localeCompare(i.containerName)||o.containerPort-i.containerPort)}function F(n){return!n.missing&&n.hostPort!==null&&n.protocol===`tcp`?`http://localhost:${String(n.hostPort)}`:null}var G=f(()=>{});function X(n,e){if(n&1&&(Li(0,`a`,17),fS(1),Gm(2,`app-icon`,19),Nc()),n&2){let t=HE().$implicit,o=HE();Wm(`href`,e,Rp)(`title`,o.t().open(t.hostPort??0)),ec(),pg(t.hostPort),ec(),Wm(`size`,11)}}function Y(n,e){if(n&1&&(Li(0,`span`,20),fS(1),Nc()),n&2){let t=HE().$implicit;nS(t.missing?`text-danger`:`text-ink-400`),ec(),pg(t.hostPort??`—`)}}function Z(n,e){if(n&1&&SE(0,X,3,4,`a`,17)(1,Y,2,3,`span`,18),n&2){let t,o=e.$implicit;kE((t=HE().url(o))?0:1,t)}}function ee(n,e){if(n&1&&(Li(0,`span`,22),Gm(1,`app-icon`,23),fS(2),Nc()),n&2){let t=HE(2);Wm(`title`,t.t().missingTitle),ec(),Wm(`size`,12),ec(),Ac(` `,t.t().missing,` `)}}function te(n,e){if(n&1&&(Li(0,`a`,21),fS(1),Nc(),SE(2,ee,3,3,`span`,22)),n&2){let t=e.$implicit;Wm(`routerLink`,SS(3,W,t.containerId)),ec(),pg(t.containerName),ec(),kE(t.missing?2:-1)}}function ne(n,e){if(n&1&&(Li(0,`span`,24),fS(1),Nc()),n&2){let t=e.$implicit;ec(),mg(``,t.containerPort,`/`,t.protocol)}}function oe(n,e){if(n&1&&(Li(0,`span`,24),fS(1),Nc()),n&2){let t=HE().$implicit;ec(),pg(t.hostIp)}}function ie(n,e){if(n&1&&(Li(0,`span`,25),fS(1),Nc()),n&2){let t=HE(2);ec(),pg(t.t().allAddresses)}}function re(n,e){if(n&1&&SE(0,oe,2,1,`span`,24)(1,ie,2,1,`span`,25),n&2){let t=e.$implicit;kE(t.hostIp?0:1)}}var W;var O;f(()=>{Kr();ra();v();G();sk();oe$1();dk();x();Kr();W=n=>[`/containers`,n];O=class n{containers=C(u);t=Lt(()=>ok().networks.ports);problem=this.containers.problem;search=wt(``);zoek=jc(void 0);gaps=wt([]);columns=Lt(()=>{let e=this.t().columns;return[{key:`hostPort`,label:e.hostPort,width:`110px`},{key:`container`,label:e.container},{key:`target`,label:e.target,width:`150px`},{key:`address`,label:e.address,width:`150px`}]});all=Lt(()=>U(this.containers.containers(),this.gaps()));rows=Lt(()=>{let e=this.search().trim().toLowerCase().replace(/^:/,``);return e===``?this.all():this.all().filter(t=>`${String(t.hostPort??``)} ${t.containerName} ${String(t.containerPort)}/${t.protocol}`.toLowerCase().includes(e))});trackKey=e=>`${e.containerId}:${String(e.hostPort)}:${String(e.containerPort)}/${e.protocol}:${String(e.missing)}`;url=F;runningKey=Lt(()=>this.containers.containers().filter(e=>e.state===`running`&&e.missingNetwork===null).map(e=>`${e.id}:${e.name}`).join(`
2
- `));constructor(){this.containers.refresh(),rf(()=>{let e=this.zoek();e!==void 0&&Tg(()=>this.search.set(e))}),rf(()=>{let e=this.runningKey();Tg(()=>{this.loadGaps(e)})})}async loadGaps(e){let t=e===``?[]:e.split(`
3
- `).map(i=>{let[g=``,...f]=i.split(`:`);return{id:g,name:f.join(`:`)}}),o=await Promise.all(t.map(i=>window.electron.containers.wiring(i.id).catch(()=>null)));e===this.runningKey()&&this.gaps.set(t.flatMap((i,g)=>{let f=o[g]?.missingPorts??[];return f.length===0?[]:[{kind:`ports`,id:i.id,name:i.name,ports:f}]}))}static ɵfac=function(t){return new(t||n)};static ɵcmp=wc({type:n,selectors:[[`app-ports-page`]],inputs:{zoek:[1,`zoek`]},decls:20,vars:12,consts:[[1,`flex`,`h-full`,`flex-col`],[1,`shrink-0`,`px-6`,`pt-5`,`pb-3`],[1,`text-xl`,`font-semibold`,`tracking-tight`,`text-ink-100`],[1,`mt-1`,`text-[13px]`,`text-ink-400`],[1,`mt-4`,`flex`,`flex-wrap`,`items-center`,`gap-4`],[1,`relative`,`flex`,`items-center`],[1,`pointer-events-none`,`absolute`,`left-2.5`,`text-ink-500`],[`name`,`search`,3,`size`],[1,`sr-only`],[`type`,`search`,`data-testid`,`ports-search`,1,`mx-focus`,`w-72`,`rounded-md`,`border`,`border-ink-700`,`bg-ink-850`,`py-1.5`,`pr-3`,`pl-8`,`text-[13px]`,`text-ink-100`,`placeholder:text-ink-500`,3,`input`,`placeholder`,`value`],[3,`problem`],[1,`min-h-0`,`flex-1`,`overflow-y-auto`,`px-6`,`pb-6`],[3,`columns`,`rows`,`trackKey`,`selectable`,`emptyMessage`],[`appCell`,`hostPort`],[`appCell`,`container`],[`appCell`,`target`],[`appCell`,`address`],[`target`,`_blank`,`rel`,`noreferrer`,1,`mx-focus`,`inline-flex`,`items-center`,`gap-1`,`font-mono`,`text-accent`,`tabular-nums`,`hover:underline`,3,`href`,`title`],[1,`font-mono`,`tabular-nums`,3,`class`],[`name`,`external`,3,`size`],[1,`font-mono`,`tabular-nums`],[1,`mx-focus`,`truncate`,`text-ink-100`,`hover:text-accent`,`hover:underline`,3,`routerLink`],[`data-testid`,`port-missing`,1,`ml-2`,`inline-flex`,`items-center`,`gap-1`,`text-[12px]`,`text-danger`,3,`title`],[`name`,`warning`,3,`size`],[1,`font-mono`,`text-[12px]`,`text-ink-300`],[1,`text-[12px]`,`text-ink-500`]],template:function(t,o){t&1&&(Li(0,`section`,0)(1,`div`,1)(2,`h1`,2),fS(3),Nc(),Li(4,`p`,3),fS(5),Nc(),Li(6,`div`,4)(7,`label`,5)(8,`span`,6),Gm(9,`app-icon`,7),Nc(),Li(10,`span`,8),fS(11),Nc(),Li(12,`input`,9),Jm(`input`,function(g){return o.search.set(g.target.value)}),Nc()()(),Gm(13,`app-page-messages`,10),Nc(),Li(14,`div`,11)(15,`app-data-table`,12),_m(16,Z,2,1,`ng-template`,13)(17,te,3,5,`ng-template`,14)(18,ne,2,2,`ng-template`,15)(19,re,2,1,`ng-template`,16),Nc()()()),t&2&&(ec(3),pg(o.t().title),ec(2),pg(o.t().intro),ec(4),Wm(`size`,15),ec(2),pg(o.t().searchLabel),ec(),Wm(`placeholder`,o.t().searchLabel)(`value`,o.search()),ec(),Wm(`problem`,o.problem()),ec(2),Wm(`columns`,o.columns())(`rows`,o.rows())(`trackKey`,o.trackKey)(`selectable`,!1)(`emptyMessage`,o.all().length===0?o.t().none:o.t().empty))},dependencies:[z,x$1,My,u$1,Yt],encapsulation:2})}})();export{O as PortsPage};
@@ -1,6 +0,0 @@
1
- import{Ct as Tc,Dn as kE,En as jc,Fn as mj,Ft as Wm,Gn as pg,H as Li,I as Jm,In as nS,J as My,Jt as ag,Kt as _m,Mn as lk,O as HE,On as kc,Pn as mg,Pt as W,R as Kr,S as G,Sn as hg,T as Gm,Tr as zr,V as Ld,Vn as ok,W as Lt,X as Nc,Zn as rf,Zt as bS,_r as wt$1,_t as SS,cn as ec,en as bg,er as sk,gt as SE,hr as wc,in as dk,ln as f,lr as ve,r as Ac,sn as eH,sr as vS,tt as Od,u as C,un as fS,ur as vg,ut as RE,vt as Sc,wt as Tg,xr as yS}from"./chunk-C_5f0tVq.js";import{n as y,t as f$1}from"./chunk-BWEbjl8i.js";import"./chunk-Bg_b-Jjw.js";import{n as y$1,t as c}from"./chunk-nJjV_Xqa.js";import"./chunk-0lzDD7VN.js";import{n as o,t as i}from"./chunk-D1Z6IQ-O.js";import"./chunk-S9IeOMe4.js";import"./chunk-CG34bAfY.js";import{_ as pn,d as dn,f as fn,g as ln,l as an,m as ie,r as Je$1,u as cn,v as un}from"./chunk-C_ouaGQt.js";import{n as v,t as u}from"./chunk-PF0v2lXq.js";import{n as x,t as u$1}from"./chunk-Dw1WSpzf.js";import{a as Yt,r as Q,s as fe,u as ra}from"./chunk-CW5lS8he.js";import{n as u$2,t as c$1}from"./chunk-DieHqkfe.js";import{n as V,t as G$1}from"./chunk-BpGvpxhZ.js";import{n as W$1,t as J}from"./chunk-Bo6U-hOl.js";function $e(n,t){if(n&1){let e=RE();Li(0,`button`,18),Jm(`click`,function(){let o=Od(e).$implicit;return Ld(HE(2).view.set(o))}),fS(1),Nc()}if(n&2){let e=t.$implicit,i=HE(2);ag(`border-accent`,i.view()===e)(`text-accent`,i.view()===e),zr(`data-testid`,`compose-view-`+e)(`aria-pressed`,i.view()===e),ec(),Ac(` `,e===`raw`?i.t().raw:i.t().resolved,` `)}}function We(n,t){n&1&&(Li(0,`pre`,9),fS(1),Nc()),n&2&&(ec(),pg(t))}function Le(n,t){n&1&&(Li(0,`p`,10),fS(1),Nc()),n&2&&(ec(),pg(t))}function Ge(n,t){if(n&1&&(Li(0,`p`,11),fS(1),Nc()),n&2){let e=HE(2);ec(),pg(e.t().loading)}}function Ae(n,t){n&1&&(Li(0,`span`,13),fS(1),Nc()),n&2&&(ec(),pg(t))}function He(n,t){if(n&1){let e=RE();Gm(0,`div`,2),Li(1,`div`,3)(2,`div`,4)(3,`h2`,5),fS(4),Nc(),Li(5,`p`,6),fS(6),Nc(),Li(7,`div`,7),kc(8,$e,2,7,`button`,8,Sc),Nc(),SE(10,We,2,1,`pre`,9)(11,Le,2,1,`p`,10)(12,Ge,2,1,`p`,11),Li(13,`div`,12),SE(14,Ae,2,1,`span`,13),Li(15,`button`,14),Gm(16,`app-icon`,15),fS(17),Nc(),Li(18,`button`,16),Jm(`click`,function(){Od(e);return Ld(HE().copy())}),Gm(19,`app-icon`,17),fS(20),Nc()()()()}if(n&2){let e,i,o=HE();ec(4),pg(o.t().title(o.project())),ec(2),Ac(` `,o.view()===`raw`?o.t().rawHint:o.t().resolvedHint,` `),ec(2),Tc(o.views),ec(2),kE((e=o.body())?10:(e=o.problem())?11:12,e),ec(4),kE((i=o.copyProblem())?14:-1,i),ec(2),Wm(`size`,14),ec(),Ac(` `,o.common().close,` `),ec(),Wm(`disabled`,o.body()===null),ec(),Wm(`name`,o.copied()?`check`:`copy`)(`size`,14),ec(),Ac(` `,o.copied()?o.common().copied:o.common().copy,` `)}}var te;var Se=f(()=>{Kr();Je$1();lk();dk();sk();Kr();te=class n{open=mj(!1);project=jc.required();t=Lt(()=>ok().compose.file);common=Lt(()=>ok().common);views=[`raw`,`resolved`];view=wt$1(`raw`);files=wt$1(null);config=wt$1(null);copied=wt$1(!1);copyProblem=wt$1(null);constructor(){rf(()=>{if(!this.open())return;let t=this.project();Tg(()=>{this.load(t)})})}body(){if(this.view()===`resolved`){let e=this.config();return e?.ok===!0?e.yaml:null}let t=this.files();return t?.ok!==!0?null:t.files.map(e=>`# ${e.path}
2
- ${e.problem??(e.content.trim()===``?this.t().empty:e.content)}`).join(`
3
-
4
- `)}problem(){let t=this.view()===`resolved`?this.config():this.files();return t?.ok===!1?t.problem:null}async copy(){let t=this.body();if(t!==null)try{await navigator.clipboard.writeText(t),this.copyProblem.set(null),this.copied.set(!0),setTimeout(()=>this.copied.set(!1),1500)}catch(e){this.copyProblem.set(this.t().copyFailed(eH(e)))}}async load(t){this.files.set(null),this.config.set(null),this.copied.set(!1),this.copyProblem.set(null),this.view.set(`raw`);let[e,i]=await Promise.all([window.electron.compose.files(t).catch(o=>({ok:!1,problem:eH(o)})),window.electron.compose.config(t).catch(o=>({ok:!1,problem:eH(o)}))]);this.files.set(e),this.config.set(i)}static ɵfac=function(e){return new(e||n)};static ɵcmp=wc({type:n,selectors:[[`app-compose-file-dialog`]],inputs:{open:[1,`open`],project:[1,`project`]},outputs:{open:`openChange`},decls:2,vars:1,consts:[[`rdxDialogRoot`,``,3,`openChange`,`open`],[`rdxDialogPortal`,``],[`rdxDialogBackdrop`,``,1,`fixed`,`inset-0`,`z-40`,`bg-black/50`],[`rdxDialogViewport`,``,1,`fixed`,`inset-0`,`z-50`,`grid`,`place-items-center`,`p-4`],[`rdxDialogPopup`,``,`data-testid`,`compose-file-dialog`,1,`flex`,`max-h-[85vh]`,`w-full`,`max-w-4xl`,`flex-col`,`rounded-lg`,`border`,`border-ink-700`,`bg-ink-850`,`p-5`,`shadow-2xl`],[`rdxDialogTitle`,``,1,`text-[15px]`,`font-semibold`,`text-ink-100`],[`rdxDialogDescription`,``,1,`mt-1`,`text-[13px]`,`text-ink-400`],[1,`mt-3`,`flex`,`shrink-0`,`gap-1`],[`type`,`button`,1,`mx-btn`,`mx-focus`,3,`border-accent`,`text-accent`],[`data-testid`,`compose-file-text`,1,`mt-3`,`min-h-0`,`flex-1`,`overflow-auto`,`rounded-md`,`border`,`border-ink-700`,`bg-ink-900`,`p-3`,`font-mono`,`text-[12px]`,`leading-relaxed`,`whitespace-pre`,`text-ink-200`],[1,`mt-4`,`rounded-md`,`border`,`border-danger/40`,`bg-danger/10`,`px-3`,`py-2`,`text-[13px]`,`text-danger`],[1,`mt-4`,`text-[13px]`,`text-ink-400`],[1,`mt-4`,`flex`,`items-center`,`justify-end`,`gap-2`],[1,`mr-auto`,`text-[12px]`,`text-danger`],[`type`,`button`,`rdxDialogClose`,``,1,`mx-btn`,`mx-focus`],[`name`,`close`,3,`size`],[`type`,`button`,`data-testid`,`compose-file-copy`,1,`mx-btn`,`mx-focus`,3,`click`,`disabled`],[3,`name`,`size`],[`type`,`button`,1,`mx-btn`,`mx-focus`,3,`click`]],template:function(e,i){e&1&&(Li(0,`div`,0),vg(`openChange`,function(p){return vS(i.open,p)||(i.open=p),p}),_m(1,He,21,10,`ng-template`,1),Nc()),e&2&&hg(`open`,i.open)},dependencies:[ie,ln,an,pn,cn,fn,dn,un,My],encapsulation:2})}});function Qe(n,t){if(n&1&&(Li(0,`p`,7),fS(1),Nc()),n&2){let e=HE(2);ec(),pg(e.t().loading)}}function Je(n,t){if(n&1&&(Li(0,`li`,14),Gm(1,`app-icon`,16),Li(2,`span`,17),fS(3),Nc(),Li(4,`span`,18),fS(5),Nc(),Li(6,`span`,19),fS(7),Nc()()),n&2){let e=t.$implicit,i=HE(3);ec(),nS(i.iconClass(e)),Wm(`name`,i.iconOf(e))(`size`,13),ec(),Wm(`title`,e.reference),ec(),pg(e.reference),ec(2),pg(e.services.join(`, `)),ec(),nS(e.state===`failed`?`text-danger`:`text-ink-400`),Wm(`title`,e.problem??``),ec(),Ac(` `,i.stateOf(e),` `)}}function Xe(n,t){if(n&1&&(Li(0,`li`,15),Gm(1,`app-icon`,20),Li(2,`span`,21),fS(3),Nc(),Li(4,`span`,22),fS(5),Nc()()),n&2){let e=t.$implicit,i=HE(3);ec(),Wm(`size`,13),ec(2),pg(e.service),ec(2),pg(e.reason===`build`?i.t().skippedBuild:i.t().skippedDigest)}}function Ye(n,t){if(n&1&&(Li(0,`ul`,8),kc(1,Je,8,11,`li`,14,Ke),kc(3,Xe,6,3,`li`,15,qe),Nc()),n&2){let e=HE(2);ec(),Tc(e.rows()),ec(2),Tc(e.skipped())}}function Ze(n,t){if(n&1&&(Li(0,`p`,7),fS(1),Nc()),n&2){let e=HE(2);ec(),pg(e.t().noImages)}}function et(n,t){n&1&&(Li(0,`p`,9),fS(1),Nc()),n&2&&(ec(),pg(t))}function tt(n,t){if(n&1&&(Li(0,`p`,7),fS(1),Nc()),n&2){let e=HE(2);ec(),pg(e.t().checking)}}function nt(n,t){if(n&1&&(Li(0,`p`,23),Gm(1,`app-icon`,24),fS(2),Nc()),n&2){let e=HE(3);ec(),Wm(`size`,13),ec(),Ac(` `,e.t().upToDate)}}function it(n,t){if(n&1&&(Li(0,`p`,27),fS(1),Nc()),n&2){let e=HE(),i=HE(4);ec(),pg(i.t().renewed(e.renewed.join(`, `)))}}function ot(n,t){if(n&1&&(Li(0,`p`,28),fS(1),Nc()),n&2){let e=HE(),i=HE(4);ec(),pg(i.t().unchanged(e.unchanged.join(`, `)))}}function at(n,t){if(n&1&&(Li(0,`p`,29),fS(1),Nc()),n&2){let e=t.$implicit;ec(),pg(e)}}function rt(n,t){if(n&1&&(SE(0,it,2,1,`p`,27),SE(1,ot,2,1,`p`,28),kc(2,at,2,1,`p`,29,Sc)),n&2){let e=t;kE(e.renewed.length>0?0:-1),ec(),kE(e.unchanged.length>0?1:-1),ec(),Tc(e.problems)}}function lt(n,t){if(n&1){let e=RE();Li(0,`div`,26)(1,`button`,30),Jm(`click`,function(){Od(e);return Ld(HE(4).renew())}),Gm(2,`app-icon`,31),fS(3),Nc(),Li(4,`span`,32),fS(5),Nc()()}if(n&2){let e=HE(4);ec(),Wm(`disabled`,e.phase()===`renewing`),ec(),Wm(`size`,14),ec(),Ac(` `,e.phase()===`renewing`?e.t().renewing:e.t().renew,` `),ec(2),pg(e.t().renewHint)}}function pt(n,t){if(n&1&&(Li(0,`p`,25),fS(1),Nc(),SE(2,rt,4,2)(3,lt,6,4,`div`,26)),n&2){let e,i=HE(),o=HE(2);ec(),pg(o.t().stale(i.join(`, `))),ec(),kE((e=o.result())?2:3,e)}}function dt(n,t){n&1&&(Li(0,`div`,10),SE(1,nt,3,2,`p`,23)(2,pt,4,2),Nc()),n&2&&(ec(),kE(t.length===0?1:2))}function st(n,t){if(n&1&&(Gm(0,`div`,2),Li(1,`div`,3)(2,`div`,4)(3,`h2`,5),fS(4),Nc(),Li(5,`p`,6),fS(6),Nc(),SE(7,Qe,2,1,`p`,7),SE(8,Ye,5,0,`ul`,8)(9,Ze,2,1,`p`,7),SE(10,et,2,1,`p`,9),SE(11,tt,2,1,`p`,7),SE(12,dt,3,1,`div`,10),Li(13,`div`,11)(14,`button`,12),Gm(15,`app-icon`,13),fS(16),Nc()()()()),n&2){let e,i,o=HE();ec(4),pg(o.t().title(o.project())),ec(2),pg(o.t().description),ec(),kE(o.phase()===`loading`?7:-1),ec(),kE(o.rows().length>0||o.skipped().length>0?8:o.phase()!==`loading`&&o.phase()!==`failed`?9:-1),ec(2),kE((e=o.problem())?10:-1,e),ec(),kE(o.phase()===`checking`?11:-1),ec(),kE((i=o.stale())?12:-1,i),ec(3),Wm(`size`,14),ec(),Ac(` `,o.finished()?o.common().close:o.common().cancel,` `)}}function ct(n){let t=n.layers.reduce((e,i)=>e+i.total,0);return t===0?null:Math.round(n.layers.reduce((e,i)=>e+i.current,0)/t*100)}var Ke;var qe;var ne;var Ee=f(()=>{Kr();Je$1();lk();sk();dk();Kr();Ke=(n,t)=>t.reference,qe=(n,t)=>t.service;ne=class n{open=mj(!1);project=jc.required();t=Lt(()=>ok().compose.update);common=Lt(()=>ok().common);phase=wt$1(`loading`);rows=wt$1([]);skipped=wt$1([]);stale=wt$1(null);result=wt$1(null);problem=wt$1(null);finished=Lt(()=>[`ready`,`done`,`failed`].includes(this.phase()));round=0;stopPull=null;constructor(){C(ve).onDestroy(()=>this.cancel()),rf(()=>{let t=this.open(),e=this.project();Tg(()=>{t?this.start(e):this.cancel()})})}stateOf(t){let e=this.t();switch(t.state){case`waiting`:return e.waiting;case`pulling`:return t.percent===null?e.pulling:`${e.pulling} ${String(t.percent)}%`;case`done`:return e.pulled;case`failed`:return e.failed(t.problem??``)}}iconOf(t){return t.state===`done`?`check`:t.state===`failed`?`warning`:`download`}iconClass(t){return t.state===`done`?`text-ok`:t.state===`failed`?`text-danger`:t.state===`pulling`?`text-accent`:`text-ink-500`}cancel(){this.round+=1,this.stopPull?.(),this.stopPull=null}async start(t){this.cancel();let e=this.round,i=()=>e===this.round;this.phase.set(`loading`),this.rows.set([]),this.skipped.set([]),this.stale.set(null),this.result.set(null),this.problem.set(null);try{let o=await window.electron.compose.images(t);if(!i())return;this.rows.set(o.images.map(x=>G(W({},x),{state:`waiting`,percent:null,problem:null}))),this.skipped.set(o.skipped),this.phase.set(`pulling`);for(let x of o.images)if(await this.pull(x.reference,i),!i())return;this.phase.set(`checking`);let p=await window.electron.compose.stale(t);i()&&(this.stale.set(p),this.phase.set(`ready`))}catch(o){i()&&(this.problem.set(eH(o)),this.phase.set(`failed`))}}async pull(t,e){let i=p=>{e()&&this.rows.update(x=>x.map(O=>O.reference===t?W(W({},O),p):O))};i({state:`pulling`});let o=await window.electron.images.pull(t);if(!o.ok){i({state:`failed`,problem:o.problem});return}await new Promise(p=>{let x=window.electron.images.onPullProgress(o.streamId,$=>{if(!$.done){i({percent:ct($)});return}i($.problem===null?{state:`done`,percent:null}:{state:`failed`,problem:$.problem}),O()}),O=()=>{x(),window.electron.images.close(o.streamId),this.stopPull=null,p()};this.stopPull=O})}async renew(){let t=this.round;this.phase.set(`renewing`);try{let e=await window.electron.compose.renew(this.project());t===this.round&&(this.result.set(e),this.phase.set(`done`))}catch(e){t===this.round&&(this.result.set({renewed:[],unchanged:[],problems:[eH(e)]}),this.phase.set(`done`))}}static ɵfac=function(e){return new(e||n)};static ɵcmp=wc({type:n,selectors:[[`app-project-update-dialog`]],inputs:{open:[1,`open`],project:[1,`project`]},outputs:{open:`openChange`},decls:2,vars:1,consts:[[`rdxDialogRoot`,``,3,`openChange`,`open`],[`rdxDialogPortal`,``],[`rdxDialogBackdrop`,``,1,`fixed`,`inset-0`,`z-40`,`bg-black/50`],[`rdxDialogViewport`,``,1,`fixed`,`inset-0`,`z-50`,`grid`,`place-items-center`,`p-4`],[`rdxDialogPopup`,``,`data-testid`,`project-update`,1,`w-full`,`max-w-2xl`,`rounded-lg`,`border`,`border-ink-700`,`bg-ink-850`,`p-5`,`shadow-2xl`],[`rdxDialogTitle`,``,1,`text-[15px]`,`font-semibold`,`text-ink-100`],[`rdxDialogDescription`,``,1,`mt-1`,`text-[13px]`,`text-ink-400`],[1,`mt-4`,`text-[13px]`,`text-ink-400`],[`data-testid`,`project-update-images`,1,`mt-4`,`space-y-1.5`,`text-[13px]`],[1,`mt-4`,`text-[13px]`,`text-danger`],[`data-testid`,`project-update-stale`,1,`mt-4`,`rounded-md`,`border`,`border-ink-700`,`bg-ink-800`,`px-3`,`py-2.5`,`text-[13px]`],[1,`mt-5`,`flex`,`justify-end`],[`type`,`button`,`rdxDialogClose`,``,1,`mx-btn`,`mx-focus`],[`name`,`close`,3,`size`],[1,`flex`,`items-center`,`gap-3`],[1,`flex`,`items-center`,`gap-3`,`text-ink-500`],[3,`name`,`size`],[1,`min-w-0`,`truncate`,`font-mono`,`text-ink-100`,3,`title`],[1,`min-w-0`,`truncate`,`text-ink-500`],[1,`ml-auto`,`shrink-0`,`text-[12px]`,3,`title`],[`name`,`code`,3,`size`],[1,`font-mono`],[1,`ml-auto`,`text-[12px]`],[1,`flex`,`items-center`,`gap-2`,`text-ink-300`],[`name`,`check`,1,`text-ok`,3,`size`],[1,`text-ink-200`],[1,`mt-2.5`,`flex`,`items-center`,`gap-3`],[1,`mt-2`,`text-ok`],[1,`mt-1`,`text-ink-400`],[1,`mt-2`,`text-danger`],[`type`,`button`,`data-testid`,`project-update-renew`,1,`mx-btn`,`mx-focus`,3,`click`,`disabled`],[`name`,`refresh`,3,`size`],[1,`text-[12px]`,`text-ink-500`]],template:function(e,i){e&1&&(Li(0,`div`,0),vg(`openChange`,function(p){return vS(i.open,p)||(i.open=p),p}),_m(1,st,17,9,`ng-template`,1),Nc()),e&2&&hg(`open`,i.open)},dependencies:[ie,ln,an,pn,cn,fn,dn,un,My],encapsulation:2})}});function _t(n,t){if(n&1&&(Li(0,`div`,6),fS(1),Nc()),n&2){let e=HE();ec(),pg(e.version)}}function xt(n,t){if(n&1&&(Li(0,`div`,13),fS(1),Nc()),n&2){let e=HE();ec(),pg(e.problem)}}function ft(n,t){n&1&&SE(0,_t,2,1,`div`,6)(1,xt,2,1,`div`,13),n&2&&kE(t.cliAvailable?0:1)}function yt(n,t){if(n&1&&(Li(0,`div`,6),fS(1),Nc()),n&2){let e=HE();ec(),pg(e.t().updating)}}function bt(n,t){if(n&1&&(Li(0,`span`,20),fS(1),Nc()),n&2){let e=t;Wm(`title`,e),ec(),pg(e)}}function vt(n,t){if(n&1&&(Li(0,`div`,23),fS(1),Nc()),n&2){let e=HE(2);ec(),pg(e.t().busy)}}function ht(n,t){if(n&1&&(Li(0,`div`,26),Gm(1,`app-icon`,27),fS(2),Nc()),n&2){let e=t,i=HE().$implicit,o=HE();nS(e.problem?`text-danger`:`text-accent`),Wm(`title`,e.problem?``:o.t().driftTitle),zr(`data-testid`,`compose-drift-`+i.name),ec(),Wm(`name`,e.problem?`warning`:`file`)(`size`,12),ec(),Ac(` `,e.text,` `)}}function Ct(n,t){if(n&1&&(Li(0,`span`,31),fS(1),Nc()),n&2){let e=HE().$implicit,i=HE(2).$implicit,o=HE();Wm(`title`,o.t().driftTitle),zr(`data-testid`,`compose-drift-`+i.name+`-`+e.name),ec(),pg(o.t().drift)}}function wt(n,t){if(n&1&&(Li(0,`span`,38),fS(1),Nc()),n&2){let e=t.$implicit;ec(),Ac(` `,e.hostPort?e.hostPort+`:`+e.containerPort:e.containerPort,` `)}}function Dt(n,t){if(n&1&&(Li(0,`span`,36),kc(1,wt,2,1,`span`,38,gt),Nc()),n&2){let e=HE().$implicit;ec(),Tc(e.ports.slice(0,2))}}function kt(n,t){if(n&1&&(Li(0,`div`,34),Gm(1,`app-state-dot`,17),Li(2,`a`,35),fS(3),Nc(),Li(4,`span`,36),fS(5),Nc(),Li(6,`span`,37),fS(7),Nc(),SE(8,Dt,3,0,`span`,36),Nc()),n&2){let e=t.$implicit;ec(),Wm(`state`,e.state),ec(),Wm(`routerLink`,SS(6,mt,e.id)),ec(),pg(e.name),ec(2),pg(e.status),ec(2),pg(e.image),ec(),kE(e.ports.length>0?8:-1)}}function Pt(n,t){if(n&1){let e=RE();Li(0,`div`,28)(1,`div`,29)(2,`div`,30),fS(3),Nc(),SE(4,Ct,2,3,`span`,31),Li(5,`button`,32),Jm(`click`,function(){let o=Od(e).$implicit,p=HE(2).$implicit;return Ld(HE().recreate(p,o))}),Gm(6,`app-icon`,33),fS(7),Nc()(),kc(8,kt,9,8,`div`,34,ut),Nc()}if(n&2){let e=t.$implicit,i=HE(2).$implicit,o=bS(0),p=HE();ec(3),pg(e.name),ec(),kE(p.drifted(i.name,e.name)?4:-1),ec(),Wm(`disabled`,o||!p.canCompose(i))(`title`,p.canCompose(i)?p.t().recreateTitle:p.composeBlockedReason(i)),zr(`data-testid`,`compose-recreate-`+e.name)(`aria-label`,p.t().recreateAria(e.name)),ec(),Wm(`size`,14),ec(),Ac(` `,p.t().recreate,` `),ec(),Tc(e.containers)}}function jt(n,t){if(n&1&&(Li(0,`div`,25),kc(1,Pt,10,8,`div`,28,Te),Nc()),n&2){let e=HE().$implicit;ec(),Tc(e.services)}}function St(n,t){if(n&1){let e=RE();bg(0),Li(1,`div`,9)(2,`div`,14)(3,`button`,15),Jm(`click`,function(){let o=Od(e).$implicit;return Ld(HE().toggle(o.name))}),Gm(4,`app-icon`,16)(5,`app-state-dot`,17),Li(6,`span`,18),fS(7),Nc()(),Li(8,`span`,19),fS(9),Nc(),SE(10,bt,2,2,`span`,20),Li(11,`div`,21)(12,`app-action-menu`,22),Jm(`picked`,function(o){let p=Od(e).$implicit;return Ld(HE().onProjectMenu(o,p))}),Nc()()(),SE(13,vt,2,1,`div`,23),SE(14,ht,3,7,`div`,24),SE(15,jt,3,0,`div`,25),Nc()}if(n&2){let e,i,o=t.$implicit,p=HE(),x=yS(p.busy(o));ec(3),zr(`aria-expanded`,p.isExpanded(o.name))(`aria-label`,p.isExpanded(o.name)?p.t().collapse(o.name):p.t().expand(o.name)),ec(),Wm(`name`,p.isExpanded(o.name)?`chevronDown`:`chevronRight`)(`size`,14),ec(),Wm(`state`,o.state),ec(2),pg(o.name),ec(2),mg(` `,p.projectLabelOf(o.state),` · `,p.t().runningOf(o.running,o.total),` `),ec(),kE((e=o.workingDir)?10:-1,e),ec(2),Wm(`label`,p.t().menuAria(o.name))(`items`,p.projectMenu(o)),ec(),kE(x?13:-1),ec(),kE((i=p.driftNote(o.name))?14:-1,i),ec(),kE(p.isExpanded(o.name)?15:-1)}}function Et(n,t){if(n&1&&(Li(0,`p`,10),fS(1),Nc()),n&2){let e=HE();ec(),pg(e.t().empty)}}var mt;var Te;var ut;var gt;var Ie;f(()=>{Kr();ra();y();y$1();v();sk();J();dk();x();u$2();Se();Ee();G$1();o();Kr();mt=n=>[`/containers`,n],Te=(n,t)=>t.name,ut=(n,t)=>t.id,gt=(n,t)=>t.containerPort;Ie=class n{containers=C(u);compose=C(c);t=Lt(()=>ok().compose);common=Lt(()=>ok().common);loading=this.containers.loading;problem=this.containers.problem;composePending=this.compose.pending;containerPending=this.containers.pending;status=this.compose.status;projects=Lt(()=>f$1(this.containers.containers()));expanded=wt$1(new Set);confirmOpen=wt$1(!1);fileOpen=wt$1(!1);fileProject=wt$1(``);pendingDown=wt$1(null);updateOpen=wt$1(!1);drift=wt$1(new Map);projectKey=Lt(()=>this.projects().filter(t=>t.workingDir!==null).map(t=>t.name).join(`
5
- `));updateProject=wt$1(``);bestand=jc(void 0);afbreken=jc(void 0);bijwerken=jc(void 0);router=C(fe);route=C(Q);constructor(){this.containers.refresh(),this.compose.loadStatus(),rf(()=>{let t=this.bestand();t!==void 0&&Tg(()=>{this.fileProject.set(t),this.fileOpen.set(!0),i(this.router,this.route,`bestand`)})}),rf(()=>{let t=this.projectKey(),e=this.status()?.cliAvailable;t!==``&&e===!0&&Tg(()=>t.split(`
6
- `).forEach(i=>{this.checkDrift(i)}))}),rf(()=>{let t=this.bijwerken();t!==void 0&&Tg(()=>{this.openUpdate(t),i(this.router,this.route,`bijwerken`)})}),rf(()=>{let t=this.afbreken();t!==void 0&&Tg(()=>{this.pendingDown.set(t),this.confirmOpen.set(!0),i(this.router,this.route,`afbreken`)})})}isExpanded(t){return this.expanded().has(t)}toggle(t){let e=new Set(this.expanded());e.delete(t)||e.add(t),this.expanded.set(e)}projectLabelOf(t){return this.t().state[t]}busy(t){return this.composePending().has(t.name)||t.containerIds.some(e=>this.containerPending().has(e))}composeBlockedReason(t){let e=this.status();return e!==null&&!e.cliAvailable?this.t().noCli:t.workingDir===null?this.t().noWorkingDir:``}canCompose(t){return this.composeBlockedReason(t)===``}run(t,e){this.containers.runMany(t,e.containerIds)}up(t){this.compose.up(t.name)}projectMenu(t){let e=this.t(),i=this.common(),o=this.busy(t),p=this.canCompose(t),x=p?void 0:this.composeBlockedReason(t);return[{id:`up`,label:e.up,icon:`plus`,disabled:o||!p,hint:x??`docker compose up -d`},{id:`start`,label:i.start,icon:`play`,disabled:o},{id:`stop`,label:i.stop,icon:`stop`,disabled:o},{id:`restart`,label:i.restart,icon:`refresh`,disabled:o},{id:`update`,label:e.update.menu,icon:`download`,disabled:o||!p,hint:x??e.update.hint},{id:`file`,label:e.file.button,icon:`file`,disabled:t.workingDir===null,separated:!0},{id:`down`,label:e.down,icon:`trash`,danger:!0,disabled:o||!p,hint:x??`docker compose down`,separated:!0}]}onProjectMenu(t,e){t===`up`?this.up(e):t===`update`?this.openUpdate(e.name):t===`file`?this.openFile(e):t===`down`?this.askDown(e):this.run(t,e)}recreate(t,e){this.compose.recreate(t.name,e.name).then(()=>this.checkDrift(t.name))}async checkDrift(t){try{let e=await window.electron.compose.drift(t);this.drift.update(i=>new Map(i).set(t,e))}catch{}}drifted(t,e){let i=this.drift().get(t);return i?.ok===!0&&i.changed.includes(e)}driftNote(t){let e=this.drift().get(t);return e===void 0?null:e.ok?e.changed.length===0?null:{text:this.t().driftProject(e.changed.join(`, `)),problem:!1}:{text:this.t().driftProblem(e.problem),problem:!0}}openUpdate(t){this.updateProject.set(t),this.updateOpen.set(!0)}openFile(t){this.fileProject.set(t.name),this.fileOpen.set(!0)}askDown(t){this.pendingDown.set(t.name),this.confirmOpen.set(!0)}confirmDown(){let t=this.pendingDown();t!==null&&(this.compose.down(t),this.pendingDown.set(null))}downDescription(){let t=this.pendingDown();return t===null?``:this.t().downDialog.description(t)}static ɵfac=function(e){return new(e||n)};static ɵcmp=wc({type:n,selectors:[[`app-compose-page`]],inputs:{bestand:[1,`bestand`],afbreken:[1,`afbreken`],bijwerken:[1,`bijwerken`]},decls:19,vars:14,consts:[[1,`flex`,`h-full`,`flex-col`],[1,`shrink-0`,`px-6`,`pt-5`,`pb-3`],[1,`flex`,`flex-wrap`,`items-start`,`gap-4`],[1,`text-xl`,`font-semibold`,`tracking-tight`,`text-ink-100`],[1,`mt-1`,`max-w-prose`,`text-[13px]`,`text-ink-400`],[1,`ml-auto`,`text-right`],[1,`text-[12px]`,`text-ink-500`],[3,`problem`],[1,`min-h-0`,`flex-1`,`space-y-3`,`overflow-y-auto`,`px-6`,`pb-6`],[1,`rounded-lg`,`border`,`border-ink-700`,`bg-ink-850`],[1,`py-10`,`text-center`,`text-[13px]`,`text-ink-400`],[3,`openChange`,`open`,`project`],[3,`openChange`,`confirmed`,`open`,`title`,`description`,`confirmLabel`],[1,`max-w-xs`,`text-[12px]`,`text-warn`],[1,`flex`,`flex-wrap`,`items-center`,`gap-3`,`px-3`,`py-2.5`],[`type`,`button`,1,`mx-focus`,`flex`,`min-w-0`,`cursor-pointer`,`items-center`,`gap-2`,`text-left`,3,`click`],[1,`shrink-0`,`text-ink-500`,3,`name`,`size`],[3,`state`],[1,`truncate`,`text-[14px]`,`font-medium`,`text-ink-100`],[1,`shrink-0`,`text-[12px]`,`text-ink-400`],[1,`min-w-0`,`truncate`,`font-mono`,`text-[11px]`,`text-ink-500`,3,`title`],[1,`ml-auto`,`shrink-0`],[`compact`,``,3,`picked`,`label`,`items`],[1,`px-3`,`pb-2`,`text-[12px]`,`text-ink-500`],[1,`flex`,`items-center`,`gap-1.5`,`px-3`,`pb-2`,`text-[12px]`,3,`class`,`title`],[1,`border-t`,`border-ink-800`],[1,`flex`,`items-center`,`gap-1.5`,`px-3`,`pb-2`,`text-[12px]`,3,`title`],[3,`name`,`size`],[1,`border-b`,`border-ink-800`,`px-3`,`py-2`,`last:border-b-0`],[1,`flex`,`items-center`,`gap-3`],[1,`text-[12px]`,`font-medium`,`text-ink-300`],[1,`text-[11px]`,`text-accent`,3,`title`],[`type`,`button`,1,`mx-btn`,`mx-focus`,`ml-auto`,3,`click`,`disabled`,`title`],[`name`,`refresh`,3,`size`],[1,`mt-1`,`flex`,`flex-wrap`,`items-center`,`gap-3`,`pl-3`,`text-[13px]`],[1,`mx-focus`,`min-w-0`,`truncate`,`text-ink-100`,`hover:text-accent`,`hover:underline`,3,`routerLink`],[1,`shrink-0`,`text-ink-500`],[1,`min-w-0`,`truncate`,`text-ink-400`],[1,`mr-2`]],template:function(e,i){if(e&1&&(Li(0,`section`,0)(1,`div`,1)(2,`div`,2)(3,`div`)(4,`h1`,3),fS(5),Nc(),Li(6,`p`,4),fS(7),Nc()(),Li(8,`div`,5),SE(9,ft,2,1),SE(10,yt,2,1,`div`,6),Nc()(),Gm(11,`app-page-messages`,7),Nc(),Li(12,`div`,8),kc(13,St,16,15,`div`,9,Te,!1,Et,2,1,`p`,10),Nc()(),Li(16,`app-compose-file-dialog`,11),vg(`openChange`,function(p){return vS(i.fileOpen,p)||(i.fileOpen=p),p}),Nc(),Li(17,`app-project-update-dialog`,11),vg(`openChange`,function(p){return vS(i.updateOpen,p)||(i.updateOpen=p),p}),Nc(),Li(18,`app-confirm-dialog`,12),vg(`openChange`,function(p){return vS(i.confirmOpen,p)||(i.confirmOpen=p),p}),Jm(`confirmed`,function(){return i.confirmDown()}),Nc()),e&2){let o;ec(5),pg(i.t().title),ec(2),pg(i.t().intro),ec(2),kE((o=i.status())?9:-1,o),ec(),kE(i.loading()?10:-1),ec(),Wm(`problem`,i.problem()),ec(2),Tc(i.projects()),ec(3),hg(`open`,i.fileOpen),Wm(`project`,i.fileProject()),ec(),hg(`open`,i.updateOpen),Wm(`project`,i.updateProject()),ec(),hg(`open`,i.confirmOpen),Wm(`title`,i.t().downDialog.title)(`description`,i.downDescription())(`confirmLabel`,i.t().downDialog.confirm)}},dependencies:[Yt,My,W$1,u$1,c$1,te,ne,V],encapsulation:2})}})();export{Ie as ComposePage};
@@ -1 +0,0 @@
1
- import{$t as bc,An as km,Bn as ob,C as Ge$1,Cr as yc,D as Gu,E as Gn$1,En as jc,Er as zs$1,Et as Tt$1,G as M,Hn as on,I as Jm,Jn as qt$1,K as Mg,Ln as nf,Lt as Ws$1,M as Ib,Mt as Vm,N as Ij,Nn as mb,Nt as Vr$1,Ot as UE,P as Iw,Pt as W,Q as Nn$1,Qt as bb,R as Kr$1,Rn as ng,Rt as Wt$1,S as G,Sr as yb,St as Tb,T as Gm,Tr as zr$1,Tt as Ti$1,U as Lr,Ut as Zo$1,Vt as Yw,W as Lt$1,Wn as pE,Wt as Zt,Xn as rb,Yn as qy,Yt as aw,_ as Dj,_r as wt$1,an as dm,at as Pr,bn as hD,bt as T$1,c as Bn$1,cr as va,dn as fb,dt as RS,f as Cb,fn as fj,g as Db,gr as wj,hn as ge,hr as wc,ht as S,i as Ao$1,ir as tf,it as PS,jn as lf,jt as VE,kn as ke$1,kt as Us$1,l as Br$1,ln as f,lr as ve$1,lt as Qn$1,mr as wb,n as $e$1,nn as br,nr as tb,on as dp,or as ue$1,ot as QC,q as Mn$1,qt as _r,rn as cr,rr as te$1,s as Be$1,t as $I,tn as bj,tr as sw,u as C,vn as gl,w as Gi$1,wt as Tg,x as Fs$1,xn as hb,y as Eb,yn as gn$1,yt as Se$1,zn as nr,zt as X$1}from"./chunk-C_5f0tVq.js";import{c as Re$1,d as oe,l as T$2,o as Ne,r as Be$2,s as R,t as $,u as ge$1}from"./chunk-0lzDD7VN.js";function $r(t){for(let r of t)r.remove()}function Br(t,r){let e=r.createElement(`style`);return e.textContent=t,e}function Wi(t,r,e,n){let i=t.head?.querySelectorAll(`style[${fn}="${r}"],link[${fn}="${r}"]`);if(!i||i.length===0)return!1;for(let o of i)o.removeAttribute(fn),o instanceof HTMLLinkElement?n.set(o.href.slice(o.href.lastIndexOf(`/`)+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]});return!0}function gn(t,r){let e=r.createElement(`link`);return e.setAttribute(`rel`,`stylesheet`),e.setAttribute(`href`,t),e}function Xi(t){return Ki.replace(yn,t)}function eo(t){return Yi.replace(yn,t)}function qr(t,r){return r.map(e=>e.replace(yn,t))}function zr(t){return t.tagName===`TEMPLATE`&&t.content!==void 0}var xe;var vt;var Rt;var vn;var fn;var mn;var pn;var yn;var Fr;var Yi;var Ki;var Qi;var Zi;var Ji;var Sn;var ke;var mt;var je;var yt;var Vr=f(()=>{Ne();Kr$1();Kr$1();xe=class{_doc;constructor(r){this._doc=r}manager},vt=(()=>{class t extends xe{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,i,o){return e.addEventListener(n,i,o),()=>this.removeEventListener(e,n,i,o)}removeEventListener(e,n,i,o){return e.removeEventListener(n,i,o)}static ɵfac=function(n){return new(n||t)($e$1(br))};static ɵprov=X$1({token:t,factory:t.ɵfac})}return t})(),Rt=new M(``),vn=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(s=>{s.manager=this});let i=e.filter(s=>!(s instanceof vt));this._plugins=i.slice().reverse();let o=e.find(s=>s instanceof vt);o&&this._plugins.push(o)}addEventListener(e,n,i,o){return this._findPluginFor(n).addEventListener(e,n,i,o)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(o=>o.supports(e)),!n)throw new S(-5101,!1);return this._eventNameToPlugin.set(e,n),n}static ɵfac=function(n){return new(n||t)($e$1(Rt),$e$1(ke$1))};static ɵprov=X$1({token:t,factory:t.ɵfac})}return t})(),fn=`ng-app-id`;mn=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,n,i,o={}){this.doc=e,this.appId=n,this.nonce=i,Wi(e,n,this.inline,this.external)&&this.hosts.add(e.head)}addStyles(e,n){for(let i of e)this.addUsage(i,this.inline,Br);n?.forEach(i=>this.addUsage(i,this.external,gn))}removeStyles(e,n){for(let i of e)this.removeUsage(i,this.inline);n?.forEach(i=>this.removeUsage(i,this.external))}addUsage(e,n,i){let o=n.get(e);o?o.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(e,this.doc)))})}removeUsage(e,n){let i=n.get(e);i&&(i.usage--,i.usage<=0&&($r(i.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])$r(e);this.hosts.clear()}addHost(e){if(!this.hosts.has(e)){this.hosts.add(e);for(let[n,{elements:i}]of this.inline)i.push(this.addElement(e,Br(n,this.doc)));for(let[n,{elements:i}]of this.external)i.push(this.addElement(e,gn(n,this.doc)))}}removeHost(e){this.hosts.delete(e);for(let n of[...this.inline.values(),...this.external.values()]){let i=[];for(let o of n.elements)o.parentNode===e?o.remove():i.push(o);n.elements=i}}addElement(e,n){return this.nonce&&n.setAttribute(`nonce`,this.nonce),e.appendChild(n)}static ɵfac=function(n){return new(n||t)($e$1(br),$e$1(nf),$e$1(aw,8),$e$1(sw))};static ɵprov=X$1({token:t,factory:t.ɵfac})}return t})(),pn={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`,math:`http://www.w3.org/1998/Math/MathML`},yn=/%COMP%/g,Fr=`%COMP%`,Yi=`_nghost-${Fr}`,Ki=`_ngcontent-${Fr}`,Qi=!0,Zi=new M(``,{factory:()=>Qi}),Ji=new M(``);Sn=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;cssVarNamespace;constructor(e,n,i,o,s,c,a=null,u=null,l=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.ngZone=c,this.nonce=a,this.tracingService=u,this.cssVarNamespace=l??``,this.defaultRenderer=new ke(e,s,c,this.tracingService,this.cssVarNamespace)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;let i=this.getOrCreateRenderer(e,n);return i instanceof yt?i.applyToHost(e):i instanceof je&&i.applyStyles(),i}getOrCreateRenderer(e,n){let i=this.rendererByCompId,o=i.get(n.id);if(!o){let s=this.doc,c=this.ngZone,a=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,p=this.tracingService;switch(n.encapsulation){case Gn$1.Emulated:o=new yt(a,u,n,this.appId,l,s,c,p,this.cssVarNamespace);break;case Gn$1.ShadowDom:return new mt(a,e,n,s,c,this.nonce,p,this.cssVarNamespace,u);case Gn$1.ExperimentalIsolatedShadowDom:return new mt(a,e,n,s,c,this.nonce,p,this.cssVarNamespace);default:o=new je(a,u,n,l,s,c,p,this.cssVarNamespace);break}i.set(n.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static ɵfac=function(n){return new(n||t)($e$1(vn),$e$1(dm),$e$1(nf),$e$1(Zi),$e$1(br),$e$1(ke$1),$e$1(aw),$e$1(Qn$1,8),$e$1(Ji,8))};static ɵprov=X$1({token:t,factory:t.ɵfac})}return t})(),ke=class{eventManager;doc;ngZone;tracingService;cssVarNamespace;data=Object.create(null);throwOnSyntheticProps=!0;constructor(r,e,n,i,o=``){this.eventManager=r,this.doc=e,this.ngZone=n,this.tracingService=i,this.cssVarNamespace=o}destroy(){}destroyNode=null;createElement(r,e){return e?this.doc.createElementNS(pn[e]||e,r):this.doc.createElement(r)}createComment(r){return this.doc.createComment(r)}createText(r){return this.doc.createTextNode(r)}appendChild(r,e){(zr(r)?r.content:r).appendChild(e)}insertBefore(r,e,n){if(r){let i=zr(r)?r.content:r;if(n!=null&&n.parentNode!==i)throw new S(-5106,!1);i.insertBefore(e,n)}}removeChild(r,e){e.remove()}selectRootElement(r,e){let n=typeof r==`string`?this.doc.querySelector(r):r;if(!n)throw new S(-5104,!1);return e||(n.textContent=``),n}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,n,i){if(i){e=i+`:`+e;let o=pn[i];o?r.setAttributeNS(o,e,n):r.setAttribute(e,n)}else r.setAttribute(e,n)}removeAttribute(r,e,n){if(n){let i=pn[n];i?r.removeAttributeNS(i,e):r.removeAttribute(`${n}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,n,i){let o=e.startsWith(`--`);o&&(e=e.replace(`%NS%`,this.cssVarNamespace)),o||i&(Ti$1.DashCase|Ti$1.Important)?r.style.setProperty(e,n,i&Ti$1.Important?`important`:``):r.style[e]=n}removeStyle(r,e,n){let i=e.startsWith(`--`);i&&(e=e.replace(`%NS%`,this.cssVarNamespace)),i||n&Ti$1.DashCase?r.style.removeProperty(e):r.style[e]=``}setProperty(r,e,n){r!=null&&(r[e]=n)}setValue(r,e){r.nodeValue=e}listen(r,e,n,i){if(typeof r==`string`&&(r=T$2().getGlobalEventTarget(this.doc,r),!r))throw new S(-5102,!1);let o=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(r,e,o)),this.eventManager.addEventListener(r,e,o,i)}decoratePreventDefault(r){return e=>{if(e===`__ngUnwrap__`)return r;r(e)===!1&&e.preventDefault()}}};mt=class extends ke{hostEl;sharedStylesHost;shadowRoot;constructor(r,e,n,i,o,s,c,a,u){super(r,i,o,c,a),this.hostEl=e,this.sharedStylesHost=u,this.shadowRoot=e.attachShadow({mode:`open`}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let l=n.styles;l=qr(n.id,l).map(h=>h.replace(/%NS%/g,a));for(let h of l){let y=document.createElement(`style`);s&&y.setAttribute(`nonce`,s),y.textContent=h,this.shadowRoot.appendChild(y)}let p=n.getExternalStyles?.();if(p)for(let h of p){let y=gn(h,i);s&&y.setAttribute(`nonce`,s),this.shadowRoot.appendChild(y)}}nodeOrShadowRoot(r){return r===this.hostEl?this.shadowRoot:r}appendChild(r,e){return super.appendChild(this.nodeOrShadowRoot(r),e)}insertBefore(r,e,n){return super.insertBefore(this.nodeOrShadowRoot(r),e,n)}removeChild(r,e){return super.removeChild(null,e)}parentNode(r){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(r)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},je=class extends ke{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(r,e,n,i,o,s,c,a,u){super(r,o,s,c,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i;let l=n.styles,p=u?qr(u,l):l;this.styles=p.map(h=>h.replace(/%NS%/g,a)),this.styleUrls=n.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Tt$1.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},yt=class extends je{contentAttr;hostAttr;constructor(r,e,n,i,o,s,c,a,u){let l=i+`-`+n.id;super(r,e,n,o,s,c,a,u,l),this.contentAttr=Xi(l),this.hostAttr=eo(l)}applyToHost(r){this.applyStyles(),this.setAttribute(r,this.hostAttr,``)}createElement(r,e){let n=super.createElement(r,e);return super.setAttribute(n,this.contentAttr,``),n}}});function ro(){return He=He||document.head.querySelector(`base`),He?He.getAttribute(`href`):null}function io(t){return new URL(t,document.baseURI).pathname}async function ao(t,r,e){return wj(W({rootComponent:t},co(r,e)))}function co(t,r){return{platformRef:r?.platformRef,appProviders:[...po,...t?.providers??[]],platformProviders:fo}}function uo(){wt.makeCurrent()}function lo(){return new Ge$1}function ho(){return Yw(document),document}var wt;var He;var Gr;var oo;var so;var Wr;var fo;var po;var Yr=f(()=>{Ne();Kr$1();Kr$1();Vr();wt=class t extends ${supportsDOMEvents=!0;static makeCurrent(){ge$1(new t)}onAndCancel(r,e,n,i){return r.addEventListener(e,n,i),()=>{r.removeEventListener(e,n,i)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.remove()}createElement(r,e){return e=e||this.getDefaultDocument(),e.createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument(`fakeTitle`)}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return e===`window`?window:e===`document`?r:e===`body`?r.body:null}getBaseHref(r){let e=ro();return e==null?null:io(e)}resetBaseElement(){He=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return Re$1(document.cookie,r)}},He=null;Gr=[`alt`,`control`,`meta`,`shift`],oo={"\b":`Backspace`," ":`Tab`,"":`Delete`,"\x1B":`Escape`,Del:`Delete`,Esc:`Escape`,Left:`ArrowLeft`,Right:`ArrowRight`,Up:`ArrowUp`,Down:`ArrowDown`,Menu:`ContextMenu`,Scroll:`ScrollLock`,Win:`OS`},so={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Wr=(()=>{class t extends xe{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,i,o){let s=t.parseEventName(n),c=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>T$2().onAndCancel(e,s.domEventName,c,o))}static parseEventName(e){let n=e.toLowerCase().split(`.`),i=n.shift();if(n.length===0||!(i===`keydown`||i===`keyup`))return null;let o=t._normalizeKey(n.pop()),s=``,c=n.indexOf(`code`);if(c>-1&&(n.splice(c,1),s=`code.`),Gr.forEach(u=>{let l=n.indexOf(u);l>-1&&(n.splice(l,1),s+=u+`.`)}),s+=o,n.length!=0||o.length===0)return null;let a={};return a.domEventName=i,a.fullKey=s,a}static matchEventFullKeyCode(e,n){let i=oo[e.key]||e.key,o=``;return n.indexOf(`code.`)>-1&&(i=e.code,o=`code.`),i==null||!i?!1:(i=i.toLowerCase(),i===` `?i=`space`:i===`.`&&(i=`dot`),Gr.forEach(s=>{if(s!==i){let c=so[s];c(e)&&(o+=s+`.`)}}),o+=i,o===n)}static eventCallback(e,n,i){return o=>{t.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>n(o))}}static _normalizeKey(e){return e===`esc`?`escape`:e}static ɵfac=function(n){return new(n||t)($e$1(br))};static ɵprov=X$1({token:t,factory:t.ɵfac})}return t})();fo=[{provide:sw,useValue:Be$2},{provide:tf,useValue:uo,multi:!0},{provide:br,useFactory:ho}],po=[{provide:va,useValue:`root`},{provide:Ge$1,useFactory:lo},{provide:Rt,useClass:vt,multi:!0},{provide:Rt,useClass:Wr,multi:!0},Sn,{provide:dm,useClass:mn},{provide:mn,useExisting:dm},vn,{provide:_r,useExisting:Sn},[]]});var Kr;var Qr=f(()=>{Yr();Ne();Kr$1();Kr=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||``}static ɵfac=function(n){return new(n||t)($e$1(br))};static ɵprov=X$1({token:t,factory:t.ɵfac,providedIn:`root`})}return t})()});function ce(t){return new bn(t)}function Rn(t,r,e){for(let n=0;n<t.length;n++){let i=t[n],o=r[n];if(i[0]===`:`)e[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function ri(t,r,e){let n=e.path.split(`/`),i=n.indexOf(`**`);if(i===-1){if(n.length>t.length||e.pathMatch===`full`&&(r.hasChildren()||n.length<t.length))return null;let a={},u=t.slice(0,n.length);return Rn(n,u,a)?{consumed:u,posParams:a}:null}if(i!==n.lastIndexOf(`**`))return null;let o=n.slice(0,i),s=n.slice(i+1);if(o.length+s.length>t.length||e.pathMatch===`full`&&r.hasChildren()&&e.path!==`**`)return null;let c={};return!Rn(o,t.slice(0,o.length),c)||!Rn(s,t.slice(t.length-s.length),c)?null:{consumed:t,posParams:c}}function _t(t){return new Promise((r,e)=>{t.pipe(bb()).subscribe({next:n=>r(n),error:n=>e(n)})})}function mo(t,r){if(t.length!==r.length)return!1;for(let e=0;e<t.length;++e)if(!V(t[e],r[e]))return!1;return!0}function V(t,r){let e=t?Tn(t):void 0,n=r?Tn(r):void 0;if(!e||!n||e.length!=n.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!ii(t[i],r[i]))return!1;return!0}function Tn(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function ii(t,r){if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return!1;let e=[...t].sort(),n=[...r].sort();return e.every((i,o)=>n[o]===i)}else return t===r}function yo(t){return t.length>0?t[t.length-1]:null}function he(t){return ob(t)?t:yc(t)?on(Promise.resolve(t)):tb(t)}function oi(t){return ob(t)?_t(t):Promise.resolve(t)}function Bn(t,r,e){let n=t instanceof A?t:r.parseUrl(t);return Lt$1(()=>Mn(r.lastSuccessfulNavigation()?.finalUrl??new A,n,W(W({},Se),e)))}function Mn(t,r,e){return So[e.paths](t.root,r.root,e.matrixParams)&&si[e.queryParams](t.queryParams,r.queryParams)&&!(e.fragment===`exact`&&t.fragment!==r.fragment)}function Ro(t,r){return V(t,r)}function ai(t,r,e){if(!ae(t.segments,r.segments)||!bt(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!t.children[n]||!ai(t.children[n],r.children[n],e))return!1;return!0}function wo(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(e=>ii(t[e],r[e]))}function ci(t,r,e){return ui(t,r,r.segments,e)}function ui(t,r,e,n){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!ae(i,e)||r.hasChildren()||!bt(i,e,n))}else if(t.segments.length===e.length){if(!ae(t.segments,e)||!bt(t.segments,e,n))return!1;for(let i in r.children)if(!t.children[i]||!ci(t.children[i],r.children[i],n))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!ae(t.segments,i)||!bt(t.segments,i,n)||!t.children[g]?!1:ui(t.children[g],r,o,n)}}function bt(t,r,e){return r.every((n,i)=>si[e](t[i].parameters,n.parameters))}function Co(t,r){return ae(t,r)&&t.every((e,n)=>V(e.parameters,r[n].parameters))}function ae(t,r){return t.length!==r.length?!1:t.every((e,n)=>e.path===r[n].path)}function Eo(t,r){let e=[];return Object.entries(t.children).forEach(([n,i])=>{n===g&&(e=e.concat(r(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==g&&(e=e.concat(r(i,n)))}),e}function Tt(t){return t.segments.map(r=>di(r)).join(`/`)}function $e(t,r){if(!t.hasChildren())return Tt(t);if(r){let e=t.children[g]?$e(t.children[g],!1):``,n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==g&&n.push(`${i}:${$e(o,!1)}`)}),n.length>0?`${e}(${n.join(`//`)})`:e}else{let e=Eo(t,(n,i)=>i===g?[$e(t.children[g],!1)]:[`${i}:${$e(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[g]!=null?`${Tt(t)}/${e[0]}`:`${Tt(t)}/(${e.join(`//`)})`}}function li(t){return encodeURIComponent(t).replace(/%40/g,`@`).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`)}function Ct(t){return li(t).replace(/%3B/gi,`;`)}function To(t){return encodeURI(t)}function _n(t){return li(t).replace(/\(/g,`%28`).replace(/\)/g,`%29`).replace(/%26/gi,`&`)}function Mt(t){return decodeURIComponent(t)}function Zr(t){return Mt(t.replace(/\+/g,`%20`))}function di(t){return`${_n(t.path)}${Mo(t.parameters)}`}function Mo(t){return Object.entries(t).map(([r,e])=>`;${_n(r)}=${_n(e)}`).join(``)}function _o(t){let r=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(i=>`${Ct(e)}=${Ct(i)}`).join(`&`):`${Ct(e)}=${Ct(n)}`).filter(e=>e);return r.length?`?${r.join(`&`)}`:``}function wn(t){let r=t.match(Ao);return r?r[0]:``}function Do(t){let r=t.match(Io);return r?r[0]:``}function Oo(t){let r=t.match(No);return r?r[0]:``}function Uo(t){let r=t.match(Po);return r?r[0]:``}function hi(t){return t.segments.length>0?new m([],{[g]:t}):t}function fi(t){let r=Object.create(null);for(let[n,i]of Object.entries(t.children)){let o=fi(i);if(n===g&&o.segments.length===0&&o.hasChildren())for(let[s,c]of Object.entries(o.children))r[s]=c;else(o.segments.length>0||o.hasChildren())&&(r[n]=o)}return Lo(new m(t.segments,r))}function Lo(t){if(t.numberOfChildren===1&&t.children[g]){let r=t.children[g];return new m(t.segments.concat(r.segments),r.children)}return t}function te(t){return t instanceof A}function pi(t,r,e=null,n=null,i=new ee){return vi(gi(t),r,e,n,i)}function gi(t){let r;function e(o){let s={};for(let a of o.children){let u=e(a);s[a.outlet]=u}let c=new m(o.url,s);return o===t&&(r=c),c}let i=hi(e(t.root));return r??i}function vi(t,r,e,n,i){let o=t;for(;o.parent;)o=o.parent;if(r.length===0)return Cn(o,o,o,e,n,i);let s=xo(r);if(s.toRoot())return Cn(o,o,new m([],{}),e,n,i);let c=ko(s,o,t),a=c.processChildren?ze(c.segmentGroup,c.index,s.commands):yi(c.segmentGroup,c.index,s.commands);return Cn(o,c.segmentGroup,a,e,n,i)}function At(t){return typeof t==`object`&&t!=null&&!t.outlets&&!t.segmentPath}function Ve(t){return typeof t==`object`&&t!=null&&t.outlets}function Jr(t,r,e){t||=`ɵ`;let n=new A;return n.queryParams={[t]:r},e.parse(e.serialize(n)).queryParams[t]}function Cn(t,r,e,n,i,o){let s={};for(let[u,l]of Object.entries(n??{}))s[u]=Array.isArray(l)?l.map(p=>Jr(u,p,o)):Jr(u,l,o);let c;t===r?c=e:c=mi(t,r,e);let a=hi(fi(c));return new A(a,s,i)}function mi(t,r,e){let n=Object.create(null);return Object.entries(t.children).forEach(([i,o])=>{o===r?n[i]=e:n[i]=mi(o,r,e)}),new m(t.segments,n)}function xo(t){if(typeof t[0]==`string`&&t.length===1&&t[0]===`/`)return new It(!0,0,t);let r=0,e=!1,n=t.reduce((i,o,s)=>{if(typeof o==`object`&&o!=null){if(o.outlets){let c={};return Object.entries(o.outlets).forEach(([a,u])=>{c[a]=typeof u==`string`?u.split(`/`):u}),[...i,{outlets:c}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!=`string`?[...i,o]:s===0?(o.split(`/`).forEach((c,a)=>{a==0&&c===`.`||(a==0&&c===``?e=!0:c===`..`?r++:c!=``&&i.push(c))}),i):[...i,o]},[]);return new It(e,r,n)}function ko(t,r,e){if(t.isAbsolute)return new me(r,!0,0);if(!e)return new me(r,!1,NaN);if(e.parent===null)return new me(e,!0,0);let n=At(t.commands[0])?0:1;return jo(e,e.segments.length-1+n,t.numberOfDoubleDots)}function jo(t,r,e){let n=t,i=r,o=e;for(;o>i;){if(o-=i,n=n.parent,!n)throw new S(4005,!1);i=n.segments.length}return new me(n,!1,i-o)}function Ho(t){return Ve(t[0])?t[0].outlets:{[g]:t}}function yi(t,r,e){if(t??=new m([],{}),t.segments.length===0&&t.hasChildren())return ze(t,r,e);let n=$o(t,r,e),i=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let o=new m(t.segments.slice(0,n.pathIndex),{});return o.children[g]=new m(t.segments.slice(n.pathIndex),t.children),ze(o,0,i)}else return n.match&&i.length===0?new m(t.segments,{}):n.match&&!t.hasChildren()?In(t,r,e):n.match?ze(t,0,i):In(t,r,e)}function ze(t,r,e){if(e.length===0)return new m(t.segments,{});{let n=Ho(e),i=Object.create(null);if(Object.keys(n).some(o=>o!==g)&&t.children[g]&&t.numberOfChildren===1&&t.children[g].segments.length===0){let o=ze(t.children[g],r,e);return new m(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s==`string`&&(s=[s]),s!==null&&(i[o]=yi(t.children[o],r,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new m(t.segments,i)}}function $o(t,r,e){let n=0,i=r,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(n>=e.length)return o;let s=t.segments[i],c=e[n];if(Ve(c))break;let a=`${c}`,u=n<e.length-1?e[n+1]:null;if(i>0&&a===void 0)break;if(a&&u&&typeof u==`object`&&u.outlets===void 0){if(!ei(a,u,s))return o;n+=2}else{if(!ei(a,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function In(t,r,e){let n=t.segments.slice(0,r),i=0;for(;i<e.length;){let o=e[i];if(Ve(o)){let a=Bo(o.outlets);return new m(n,a)}if(i===0&&At(e[0])){let a=t.segments[r];n.push(new X(a.path,Xr(e[0]))),i++;continue}let s=Ve(o)?o.outlets[g]:`${o}`,c=i<e.length-1?e[i+1]:null;s&&c&&At(c)?(n.push(new X(s,Xr(c))),i+=2):(n.push(new X(s,{})),i++)}return new m(n,{})}function Bo(t){let r={};return Object.entries(t).forEach(([e,n])=>{typeof n==`string`&&(n=[n]),n!==null&&(r[e]=In(new m([],{}),0,n))}),r}function Xr(t){let r={};return Object.entries(t).forEach(([e,n])=>r[e]=`${n}`),r}function ei(t,r,e){return t==e.path&&V(r,e.parameters)}function Si(t){return t instanceof j&&(t.code===T.Redirect||t.code===T.SupersededByNewNavigation)}function zo(t){return!(t instanceof Re)&&!(t instanceof we)&&!(t instanceof Ye)}function Dn(t,r){if(t===r.value)return r;for(let e of r.children){let n=Dn(t,e);if(n)return n}return null}function Nn(t,r){if(t===r.value)return[r];for(let e of r.children){let n=Nn(t,e);if(n.length)return n.unshift(r),n}return[]}function ve(t){let r={};return t&&t.children.forEach(e=>r[e.value.outlet]=e),r}function Ri(t,r){let e=Fo(t,r),n=new qt$1([new X(``,{})]),i=new qt$1({}),o=new qt$1({}),s=new qt$1({}),c=new qt$1(``),a=new Q(n,i,s,c,o,g,t,e.root);return a.snapshot=e.root,new Ke(new P(a,[]),e)}function Fo(t,r){let s=new Ce([],{},{},``,{},g,t,null,{},r);return new Qe(``,new P(s,[]))}function zn(t,r,e){let n,{routeConfig:i}=t;return r!==null&&(e===`always`||i?.path===``||!r.component&&!r.routeConfig?.loadComponent)?n={params:W(W({},r.params),t.params),data:W(W({},r.data),t.data),resolve:W(W(W(W({},t.data),r.data),i?.data),t._resolvedData)}:n={params:W({},t.params),data:W({},t.data),resolve:W(W({},t.data),t._resolvedData??{})},i&&Ci(i)&&(n.resolve[Xe]=i.title),n}function Fn(t,r){r.value._routerState=t,r.children.forEach(e=>Fn(t,e))}function wi(t){let r=t.children.length>0?` { ${t.children.map(wi).join(`, `)} } `:``;return`${t.value}${r}`}function En(t){if(t.snapshot){let r=t.snapshot,e=t._futureSnapshot;t.snapshot=e,V(r.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),V(r.params,e.params)||t.paramsSubject.next(e.params),mo(r.url,e.url)||t.urlSubject.next(e.url),V(r.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function On(t,r){let e=V(t.params,r.params)&&Co(t.url,r.url),n=!t.parent!=!r.parent;return e&&!n&&(!t.parent||On(t.parent,r.parent))}function Ci(t){return typeof t.title==`string`||t.title===null}function Gn(t){let r=t.children&&t.children.map(Gn),e=r?G(W({},t),{children:r}):W({},t);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==g&&(e.component=Vn),e}function Vo(t,r,e){let n=new Set,i=Ze(t,r._root,e?e._root:void 0,n);return{newlyCreatedRoutes:n,state:new Ke(i,r)}}function Ze(t,r,e,n){if(e&&t.shouldReuseRoute(r.value,e.value.snapshot)){let i=e.value;i._setPending(r.value);let o=Go(t,r,e,n);return new P(i,o)}else{if(t.shouldAttach(r.value)){let s=t.retrieve(r.value);if(s!==null){let c=s.route;return c.value._setPending(r.value),c.children=r.children.map(a=>Ze(t,a,void 0,n)),c}}let i=Wo(r.value);i._setPending(r.value),n.add(i);let o=r.children.map(s=>Ze(t,s,void 0,n));return new P(i,o)}}function Go(t,r,e,n){return r.children.map(i=>{for(let o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return Ze(t,i,o,n);return Ze(t,i,void 0,n)})}function Wo(t){return new Q(new qt$1(t.url),new qt$1(t.params),new qt$1(t.queryParams),new qt$1(t.fragment),new qt$1(t.data),t.outlet,t.component,t)}function zt(t,r){let{redirectTo:e,navigationBehaviorOptions:n}=te(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=Mi(!1,T.Redirect);return i.url=e,i.navigationBehaviorOptions=n,i}function Mi(t,r){let e=new Error(`NavigationCancelingError: ${t||``}`);return e[Ti]=!0,e.cancellationCode=r,e}function Yo(t){return _i(t)&&te(t.url)}function _i(t){return!!t&&t[Ti]}function Ko(t,r,e){let n=t._root;return Be(n,r?r._root:null,e,[n.value])}function Qo(t){let r=t.routeConfig?t.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:t,guards:r}}function Me(t,r){let e=Symbol(),n=r.get(t,e);return n===e?typeof t==`function`&&!Tb(t)?t:r.get(t):n}function Be(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ve(r);return t.children.forEach(s=>{Zo(s,o[s.value.outlet],e,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,c])=>qe(c,e.getContext(s),e,i)),i}function Zo(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=r?r.value:null,c=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let a=Jo(s,o,o.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new Ft(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Be(t,r,c?c.children:null,n,i):Be(t,r,e,n,i),a&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new ye(c.outlet.component,s))}else s&&qe(r,c,e,i),i.canActivateChecks.push(new Ft(n)),o.component?Be(t,null,c?c.children:null,n,i):Be(t,null,e,n,i);return i}function Jo(t,r,e){if(typeof e==`function`)return Zo$1(r._environmentInjector,()=>e(t,r));switch(e){case`pathParamsChange`:return!ae(t.url,r.url);case`pathParamsOrQueryParamsChange`:return!ae(t.url,r.url)||!V(t.queryParams,r.queryParams);case`always`:return!0;case`paramsOrQueryParamsChange`:return!On(t,r)||!V(t.queryParams,r.queryParams);default:return!On(t,r)}}function qe(t,r,e,n){let i=ve(t),o=t.value;Object.entries(i).forEach(([s,c])=>{o.component?r?qe(c,r.children.getContext(s),r.children,n):qe(c,null,null,n):qe(c,e?e.getContext(s):null,e,n)}),o.component?r&&r.outlet&&r.outlet.isActivated?n.canDeactivateChecks.push(new ye(r.outlet.component,o)):n.canDeactivateChecks.push(new ye(null,o)):n.canDeactivateChecks.push(new ye(null,o))}function tt(t){return typeof t==`function`}function Xo(t){return typeof t==`boolean`}function es(t){return t&&tt(t.canLoad)}function ts(t){return t&&tt(t.canActivate)}function ns(t){return t&&tt(t.canActivateChild)}function rs(t){return t&&tt(t.canDeactivate)}function is(t){return t&&tt(t.canMatch)}function Ai(t){return t instanceof Zt||t?.name===`EmptyError`}function be(){return Cb(t=>fb(t.map(r=>r.pipe(zs$1(1),Db(Et)))).pipe(Nn$1(r=>{for(let e of r)if(e!==!0){if(e===Et)return Et;if(e===!1||os(e))return e}return!0}),Us$1(r=>r!==Et),zs$1(1)))}function os(t){return te(t)||t instanceof Ee}function Ii(t){return t.aborted?tb(void 0).pipe(zs$1(1)):new T$1(r=>{let e=()=>{r.next(),r.complete()};return t.addEventListener(`abort`,e),()=>t.removeEventListener(`abort`,e)})}function Di(t){return Ib(Ii(t))}function ss(t){return Mn$1(r=>{let{targetSnapshot:e,currentSnapshot:n,guards:{canActivateChecks:i,canDeactivateChecks:o}}=r;return o.length===0&&i.length===0?tb(G(W({},r),{guardsResult:!0})):as(o,e,n).pipe(Mn$1(s=>s&&Xo(s)?cs(e,i,t):tb(s)),Nn$1(s=>G(W({},r),{guardsResult:s})))})}function as(t,r,e){return on(t).pipe(Mn$1(n=>fs(n.component,n.route,e,r)),bb(n=>n!==!0,!0))}function cs(t,r,e){return on(r).pipe(hb(n=>Ao$1(ls(n.route.parent,e),us(n.route,e),hs(t,n.path),ds(t,n.route))),bb(n=>n!==!0,!0))}function us(t,r){return t!==null&&r&&r(new jt(t)),tb(!0)}function ls(t,r){return t!==null&&r&&r(new xt(t)),tb(!0)}function ds(t,r){let e=r.routeConfig?r.routeConfig.canActivate:null;if(!e||e.length===0)return tb(!0);return tb(e.map(i=>mb(()=>{let o=r._environmentInjector,s=Me(i,o);return he(ts(s)?s.canActivate(r,t):Zo$1(o,()=>s(r,t))).pipe(bb())}))).pipe(be())}function hs(t,r){let e=r[r.length-1];return tb(r.slice(0,r.length-1).reverse().map(o=>Qo(o)).filter(o=>o!==null).map(o=>mb(()=>{return tb(o.guards.map(c=>{let a=o.node._environmentInjector,u=Me(c,a);return he(ns(u)?u.canActivateChild(e,t):Zo$1(a,()=>u(e,t))).pipe(bb())})).pipe(be())}))).pipe(be())}function fs(t,r,e,n){let i=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!i||i.length===0)return tb(!0);return tb(i.map(s=>{let c=r._environmentInjector,a=Me(s,c);return he(rs(a)?a.canDeactivate(t,r,e,n):Zo$1(c,()=>a(t,r,e,n))).pipe(bb())})).pipe(be())}function ps(t,r,e,n,i){let o=r.canLoad;if(o===void 0||o.length===0)return tb(!0);return tb(o.map(c=>{let a=Me(c,t),l=he(es(a)?a.canLoad(r,e):Zo$1(t,()=>a(r,e)));return i?l.pipe(Di(i)):l})).pipe(be(),Ni(n))}function Ni(t){return qy(Eb(r=>{if(typeof r!=`boolean`)throw zt(t,r)}),Nn$1(r=>r===!0))}function gs(t,r,e,n,i,o){let s=r.canMatch;if(!s||s.length===0)return tb(!0);return tb(s.map(a=>{let u=Me(a,t);return he(is(u)?u.canMatch(r,e,i):Zo$1(t,()=>u(r,e,i))).pipe(Di(o))})).pipe(be(),Ni(n))}function vs(t){throw new S(4e3,!1)}function ms(t){throw Mi(!1,T.GuardRejected)}function ys(t,r,e){if(typeof t==`string`)return Promise.resolve(t);let n=t;return _t(he(Zo$1(e,()=>n(r))))}function Ss(t,r){return t.providers&&!t._injector&&(t._injector=bc(t.providers,r,`Route: ${t.path}`)),t._injector??r}function B(t){return t.outlet||g}function Rs(t,r){let e=t.filter(n=>B(n)===r);return e.push(...t.filter(n=>B(n)!==r)),e}function Oi(t){return{routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function ws(t,r,e,n,i,o,s){let c=Pi(t,r,e);if(!c.matched)return tb(c);let a=Oi(o(c));return n=Ss(r,n),gs(n,r,e,i,a,s).pipe(Nn$1(u=>u===!0?c:W({},xn)))}function Pi(t,r,e){if(r.path===``)return r.pathMatch===`full`&&(t.hasChildren()||e.length>0)?W({},xn):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(r.matcher||ri)(e,t,r);if(!i)return W({},xn);let o={};Object.entries(i.posParams??{}).forEach(([c,a])=>{o[c]=a.path});let s=i.consumed.length>0?W(W({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function ti(t,r,e,n,i){return e.length>0&&bs(t,e,n,i)?{segmentGroup:new m(r,Es(n,new m(e,t.children))),slicedSegments:[]}:e.length===0&&Ts(t,e,n)?{segmentGroup:new m(t.segments,Cs(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new m(t.segments,t.children),slicedSegments:e}}function Cs(t,r,e,n){let i={};for(let o of e)if(Vt(t,r,o)&&!n[B(o)]){let s=new m([],{});i[B(o)]=s}return W(W({},n),i)}function Es(t,r){let e={};e[g]=r;for(let n of t)if(n.path===``&&B(n)!==g){let i=new m([],{});e[B(n)]=i}return e}function bs(t,r,e,n){return e.some(i=>!Vt(t,r,i)||!(B(i)!==g)?!1:!(n!==void 0&&B(i)===n))}function Ts(t,r,e){return e.some(n=>Vt(t,r,n))}function Vt(t,r,e){return(t.hasChildren()||r.length>0)&&e.pathMatch===`full`?!1:e.path===``}function Ms(t,r,e){return r.length===0&&!t.children[e]}async function _s(t,r,e,n,i,o,s,c){return new jn(t,r,e,n,i,s,o,c).recognize()}function Is(t){t.sort((r,e)=>r.value.outlet===g?-1:e.value.outlet===g?1:r.value.outlet.localeCompare(e.value.outlet))}function Ds(t){let r=t.value.routeConfig;return r&&r.path===``}function Ui(t){let r=[],e=new Set;for(let n of t){if(!Ds(n)){r.push(n);continue}let i=r.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),e.add(i)):r.push(n)}for(let n of e){let i=Ui(n.children);r.push(new P(n.value,i))}return r.filter(n=>!e.has(n))}function Ns(t){return t.data||{}}function Os(t){return t.resolve||{}}function Ps(t,r,e,n,i,o,s){return Mn$1(async c=>{let{state:a,tree:u}=await _s(t,r,e,n,c.extractedUrl,i,o,s);return G(W({},c),{targetSnapshot:a,urlAfterRedirects:u})})}function Us(t){return Mn$1(r=>{let{targetSnapshot:e,guards:{canActivateChecks:n}}=r;if(!n.length)return tb(r);let i=new Set(n.map(c=>c.route)),o=new Set;for(let c of i)if(!o.has(c))for(let a of Li(c))o.add(a);let s=0;return on(o).pipe(hb(c=>i.has(c)?Ls(c,e,t):(c.data=zn(c,c.parent,t).resolve,tb(void 0))),Eb(()=>s++),wb(1),Mn$1(c=>s===o.size?tb(r):Wt$1))})}function Li(t){return[t,...t.children.map(e=>Li(e)).flat()]}function Ls(t,r,e){let n=t.routeConfig,i=t._resolve;return n?.title!==void 0&&!Ci(n)&&(i[Xe]=n.title),mb(()=>(t.data=zn(t,t.parent,e).resolve,xs(i,t,r).pipe(Nn$1(o=>(t._resolvedData=o,t.data=W(W({},t.data),o),null)))))}function xs(t,r,e){let n=Tn(t);if(n.length===0)return tb({});let i={};return on(n).pipe(Mn$1(o=>ks(t[o],r,e).pipe(bb(),Eb(s=>{if(s instanceof Ee)throw zt(new ee,s);i[o]=s}))),wb(1),Nn$1(()=>i),Gu(o=>Ai(o)?Wt$1:rb(o)))}function ks(t,r,e){let n=r._environmentInjector,i=Me(t,n);return he(i.resolve?i.resolve(r,e):Zo$1(n,()=>i(r,e)))}function Hn(t){return Cb(r=>{let e=t(r);return e?on(e).pipe(Nn$1(()=>r)):tb(r)})}async function ji(t,r,e,n){let o=await Hi(fj(await oi(Zo$1(e,()=>t.loadChildren())))),s;o instanceof km||Array.isArray(o)?s=o:s=await r.compileModuleAsync(o),n&&n(t);let c,a,l;return Array.isArray(s)?a=s:(c=s.create(e).injector,l=s,a=c.get(nt,[],{optional:!0,self:!0}).flat()),{routes:a.map(Gn),injector:c,factory:l}}async function Hi(t){return t}function $s(t){return t!==Fe}function ni(t){for(let r of t.newlyCreatedRoutes??[])r._localInjector?.destroy(),r._localInjector=void 0;Fi(t.targetRouterState)}function Fi(t){if(!t)return;let r=e=>{e.value.pending?.set(!1),e.children.forEach(r)};r(t._root)}function Kn(t,r){t.events.pipe(Us$1(e=>e instanceof z||e instanceof j||e instanceof le||e instanceof K),Nn$1(e=>e instanceof z||e instanceof K?0:(e instanceof j?e.code===T.Redirect||e.code===T.SupersededByNewNavigation:!1)?2:1),Us$1(e=>e!==2),zs$1(1)).subscribe(()=>{r()})}function Fs(t){for(let r=0;r<t.length;r++)if(t[r]==null)throw new S(4008,!1)}var g;var Xe;var bn;var So;var si;var $n;var Se;var A;var m;var X;var Te;var ee;var bo;var Ao;var Io;var No;var Po;var An;var It;var me;var Fe;var b;var U;var ue;var z;var T;var Ge;var j;var K;var le;var We;var Dt;var Nt;var Ot;var Pt;var Ut;var Lt;var xt;var kt;var jt;var Ht;var Re;var Ye;var we;var $t;var de;var Bt;var P;var Ke;var Q;var qo;var Ce;var Qe;var Ei;var qn;var Pn;var et;var bi;var Vn;var Ee;var Ti;var Un;var Ft;var ye;var Et;var Y;var Je;var Ln;var xn;var kn;var As;var jn;var Wn;var Yn;var xi;var _e;var nt;var ki;var Gt;var js;var $i;var Hs;var Bi;var zi;var qi;var Vi;var qt;var Bs;var Wt;var zs;var fe;var Qn=f(()=>{Ne();Kr$1();Kr$1();Ws$1();lf();Qr();g=`primary`,Xe=Symbol(`RouteTitle`),bn=class{params;constructor(r){this.params=r||{}}has(r){return Object.hasOwn(this.params,r)}get(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};So={exact:ai,subset:ci},si={exact:Ro,subset:wo,ignored:()=>!0},$n={paths:`exact`,fragment:`ignored`,matrixParams:`ignored`,queryParams:`exact`},Se={paths:`subset`,fragment:`ignored`,matrixParams:`ignored`,queryParams:`subset`};A=class{root;queryParams;fragment;_queryParamMap;constructor(r=new m([],{}),e={},n=null){this.root=r,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=ce(this.queryParams),this._queryParamMap}toString(){return bo.serialize(this)}},m=class{segments;children;parent=null;constructor(r,e){this.segments=r,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Tt(this)}},X=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=ce(this.parameters),this._parameterMap}toString(){return di(this)}};Te=(()=>{class t{static ɵfac=function(n){return new(n||t)};static ɵprov=Lr({token:t,factory:()=>new ee})}return t})(),ee=class{parse(r){let e=new An(r);return new A(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){return`${`/${$e(r.root,!0)}`}${_o(r.queryParams)}${typeof r.fragment==`string`?`#${To(r.fragment)}`:``}`}},bo=new ee;Ao=/^[^\/()?;#]+/;Io=/^[^\/()?;=#]+/;No=/^[^=?&#]+/;Po=/^[^&#]+/;An=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){for(;this.consumeOptional(`/`););return this.remaining===``||this.peekStartsWith(`?`)||this.peekStartsWith(`#`)?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional(`?`))do this.parseQueryParam(r);while(this.consumeOptional(`&`));return r}parseFragment(){return this.consumeOptional(`#`)?decodeURIComponent(this.remaining):null}parseChildren(r=0){if(r>50)throw new S(4010,!1);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 n={};this.peekStartsWith(`/(`)&&(this.capture(`/`),n=this.parseParens(!0,r));let i={};return this.peekStartsWith(`(`)&&(i=this.parseParens(!1,r)),(e.length>0||Object.keys(n).length>0)&&(i[g]=new m(e,n)),i}parseSegment(){let r=wn(this.remaining);if(r===``&&this.peekStartsWith(`;`))throw new S(4009,!1);return this.capture(r),new X(Mt(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(`;`);)this.parseParam(r);return r}parseParam(r){let e=Do(this.remaining);if(!e)return;this.capture(e);let n=``;if(this.consumeOptional(`=`)){let i=wn(this.remaining);i&&(n=i,this.capture(n))}r[Mt(e)]=Mt(n)}parseQueryParam(r){let e=Oo(this.remaining);if(!e)return;this.capture(e);let n=``;if(this.consumeOptional(`=`)){let s=Uo(this.remaining);s&&(n=s,this.capture(n))}let i=Zr(e),o=Zr(n);if(Object.hasOwn(r,i)){let s=r[i];Array.isArray(s)||(s=[s],r[i]=s),s.push(o)}else r[i]=o}parseParens(r,e){let n=Object.create(null);for(this.capture(`(`);!this.consumeOptional(`)`)&&this.remaining.length>0;){let i=wn(this.remaining),o=this.remaining[i.length];if(o!==`/`&&o!==`)`&&o!==`;`)throw new S(4010,!1);let s;i.indexOf(`:`)>-1?(s=i.slice(0,i.indexOf(`:`)),this.capture(s),this.capture(`:`)):r&&(s=g);let c=this.parseChildren(e+1);n[s??g]=Object.keys(c).length===1&&c[g]?c[g]:new m([],c),this.consumeOptional(`//`)}return n}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new S(4011,!1)}};It=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,n){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=n,r&&n.length>0&&At(n[0]))throw new S(4003,!1);let i=n.find(Ve);if(i&&i!==yo(n))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]==`/`}};me=class{segmentGroup;processChildren;index;constructor(r,e,n){this.segmentGroup=r,this.processChildren=e,this.index=n}};Fe=`imperative`,b=(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})(b||{}),U=class{id;url;constructor(r,e){this.id=r,this.url=e}},ue=class extends U{type=b.NavigationStart;navigationTrigger;restoredState;constructor(r,e,n=`imperative`,i=null){super(r,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},z=class extends U{urlAfterRedirects;type=b.NavigationEnd;constructor(r,e,n){super(r,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},T=(function(t){return t[t.Redirect=0]=`Redirect`,t[t.SupersededByNewNavigation=1]=`SupersededByNewNavigation`,t[t.NoDataFromResolver=2]=`NoDataFromResolver`,t[t.GuardRejected=3]=`GuardRejected`,t[t.Aborted=4]=`Aborted`,t})(T||{}),Ge=(function(t){return t[t.IgnoredSameUrlNavigation=0]=`IgnoredSameUrlNavigation`,t[t.IgnoredByUrlHandlingStrategy=1]=`IgnoredByUrlHandlingStrategy`,t})(Ge||{}),j=class extends U{reason;code;type=b.NavigationCancel;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};K=class extends U{reason;code;type=b.NavigationSkipped;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}},le=class extends U{error;target;type=b.NavigationError;constructor(r,e,n,i){super(r,e),this.error=n,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},We=class extends U{urlAfterRedirects;state;type=b.RoutesRecognized;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Dt=class extends U{urlAfterRedirects;state;type=b.GuardsCheckStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Nt=class extends U{urlAfterRedirects;state;shouldActivate;type=b.GuardsCheckEnd;constructor(r,e,n,i,o){super(r,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Ot=class extends U{urlAfterRedirects;state;type=b.ResolveStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Pt=class extends U{urlAfterRedirects;state;type=b.ResolveEnd;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ut=class{route;type=b.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Lt=class{route;type=b.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},xt=class{snapshot;type=b.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}},kt=class{snapshot;type=b.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}},jt=class{snapshot;type=b.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}},Ht=class{snapshot;type=b.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}},Re=class{},Ye=class{},we=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};$t=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new de(this.rootInjector)}resetChildren(){this.children=new de(this.rootInjector)}},de=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let i=this.getOrCreateContext(e);i.outlet=n,this.contexts.set(e,i)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new $t(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static ɵfac=function(n){return new(n||t)($e$1(ue$1))};static ɵprov=X$1({token:t,factory:t.ɵfac,providedIn:`root`})}return t})(),Bt=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){let e=Dn(r,this._root);return e?e.children.map(n=>n.value):[]}firstChild(r){let e=Dn(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=Nn(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return Nn(r,this._root).map(e=>e.value)}};P=class{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};Ke=class extends Bt{snapshot;constructor(r,e){super(r),this.snapshot=e,Fn(this,r)}toString(){return this.snapshot.toString()}};Q=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;resources;_localInjector;pending;paramsSignal;queryParamsSignal;paramMapSignal;queryParamMapSignal;fragmentSignal;dataSignal;constructor(r,e,n,i,o,s,c,a){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=c,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(Nn$1(u=>u[Xe]))??tb(void 0),this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(Nn$1(r=>ce(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Nn$1(r=>ce(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}_setPending(r){this._futureSnapshot=r,this.pending?.set(!0)}},qo=`always`;Ce=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;resources;get title(){return this.data?.[Xe]}constructor(r,e,n,i,o,s,c,a,u,l){this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=c,this.routeConfig=a,this._resolve=u,this._environmentInjector=l}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??=ce(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ce(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join(`/`)}', path:'${this.routeConfig?this.routeConfig.path:``}')`}},Qe=class extends Bt{url;constructor(r,e){super(e),this.url=r,Fn(this,e)}toString(){return wi(this._root)}};Ei=new M(``),qn=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=g;activateEvents=new Be$1;deactivateEvents=new Be$1;attachEvents=new Be$1;detachEvents=new Be$1;routerOutletData=jc();parentContexts=C(de);location=C(Gi$1);changeDetector=C(bj);inputBinder=C(et,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:i}=e.name;if(n)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(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this,this.location.injector),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,a=new Pn(e,c,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:a,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this,this.location.injector),this.activateEvents.emit(this.activated.instance)}static ɵfac=function(n){return new(n||t)};static ɵdir=$I({type:t,selectors:[[`router-outlet`]],inputs:{name:`name`,routerOutletData:[1,`routerOutletData`]},outputs:{activateEvents:`activate`,deactivateEvents:`deactivate`,attachEvents:`attach`,detachEvents:`detach`},exportAs:[`outlet`],features:[Iw]})}return t})(),Pn=class{route;childContexts;parent;outletData;constructor(r,e,n,i){this.route=r,this.childContexts=e,this.parent=n,this.outletData=i}get(r,e){return r===Q?this.route:r===de?this.childContexts:r===Ei?this.outletData:this.parent.get(r,e)}},et=new M(``),bi=(()=>{class t{options;feature;outletDataSubscriptions=new Map;outletSeenKeys=new Map;outletEffects=new Map;constructor(e,n=null){this.options=e,this.feature=n,this.options.queryParams??=!0}bindActivatedRouteToOutletComponent(e,n){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e,n)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e),this.outletSeenKeys.delete(e),this.outletEffects.get(e)?.forEach(n=>n.destroy()),this.outletEffects.delete(e)}subscribeToRouteData(e,n){let{activatedRoute:i}=e,o=[],s=[];if(this.feature?.createResourceOutletBindingEffects&&e.activatedComponentRef){let{handledKeys:a,createdEffects:u}=this.feature.createResourceOutletBindingEffects(e.activatedComponentRef,i,n);o.push(...u),s=a}o.length>0&&this.outletEffects.set(e,o);let c=fb([this.options.queryParams?i.queryParams:tb({}),i.params,i.data]).pipe(Cb(([a,u,l],p)=>(l=W(W(W(W({},a),u),l),i.resources||{}),p===0?tb(l):Promise.resolve(l)))).subscribe(a=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let u=Ij(i.component);if(!u){this.unsubscribeFromRouteData(e);return}let l=this.outletSeenKeys.get(e);l||(l=new Set,this.outletSeenKeys.set(e,l));for(let h of Object.keys(a))l.add(h);let p=this.options.unmatchedInputBehavior??`alwaysUndefined`;for(let{templateName:h}of u.inputs){if(s.includes(h))continue;let y=a[h];(y!==void 0||p===`alwaysUndefined`||l.has(h))&&e.activatedComponentRef.setInput(h,y)}});this.outletDataSubscriptions.set(e,c)}static ɵfac=function(n){QC()};static ɵprov=X$1({token:t,factory:t.ɵfac})}return t})(),Vn=(()=>{class t{static ɵfac=function(n){return new(n||t)};static ɵcmp=wc({type:t,selectors:[[`ng-component`]],exportAs:[`emptyRouterOutlet`],decls:1,vars:0,template:function(n,i){n&1&&Gm(0,`router-outlet`)},dependencies:[qn],encapsulation:2,changeDetection:1})}return t})();Ee=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},Ti=`ngNavigationCancelingError`;Un=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,e,n,i,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(r){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,r),En(this.futureState.root),this.activateChildRoutes(e,n,r)}deactivateChildRoutes(r,e,n){let i=ve(e);r.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(r,e,s.children)}else this.deactivateChildRoutes(r,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=ve(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),c=n.children.contexts;n.resetChildren(),this.routeReuseStrategy.store(r.value.snapshot,{componentRef:s,route:r,contexts:c})}}deactivateRouteAndOutlet(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=ve(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null),r.value._localInjector?.destroy()}activateChildRoutes(r,e,n){let i=ve(e);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new Ht(o.value.snapshot))}),r.children.length&&this.forwardEvent(new kt(r.value.snapshot))}activateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(En(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,e,s.children)}else this.activateChildRoutes(r,e,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(c.contexts),s.attachRef=c.componentRef,s.route=c.route.value,s.outlet&&s.outlet.attach(c.componentRef,c.route.value),En(c.route.value),this.activateChildRoutes(r,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(r,null,s.children)}else this.activateChildRoutes(r,null,n)}},Ft=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},ye=class{component;route;constructor(r,e){this.component=r,this.route=e}};Et=Symbol(`INITIAL_VALUE`);Y=class t extends Error{segmentGroup;constructor(r){super(),this.segmentGroup=r||null,Object.setPrototypeOf(this,t.prototype)}},Je=class t extends Error{urlTree;constructor(r){super(),this.urlTree=r,Object.setPrototypeOf(this,t.prototype)}};Ln=class{urlSerializer;urlTree;constructor(r,e){this.urlSerializer=r,this.urlTree=e}async lineralizeSegments(r,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return n;if(i.numberOfChildren>1||!i.children[g])throw vs(`${r.redirectTo}`);i=i.children[g]}}async applyRedirectCommands(r,e,n,i,o){let s=await ys(e,i,o);if(s instanceof A)throw new Je(s);let c=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),r,n);if(s[0]===`/`)throw new Je(c);return c}applyRedirectCreateUrlTree(r,e,n,i){let o=this.createSegmentGroup(r,e.root,n,i);return new A(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){let n={};return Object.entries(r).forEach(([i,o])=>{if(typeof o==`string`&&o[0]===`:`){let c=o.substring(1);n[i]=e[c]}else n[i]=o}),n}createSegmentGroup(r,e,n,i){let o=this.createSegments(r,e.segments,n,i),s=Object.create(null);return Object.entries(e.children).forEach(([c,a])=>{s[c]=this.createSegmentGroup(r,a,n,i)}),new m(o,s)}createSegments(r,e,n,i){return e.map(o=>o.path[0]===`:`?this.findPosParam(r,o,i):this.findOrReturn(o,n))}findPosParam(r,e,n){let i=n[e.path.substring(1)];if(!i)throw new S(4001,!1);return i}findOrReturn(r,e){let n=0;for(let i of e){if(i.path===r.path)return e.splice(n),i;n++}return r}};xn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};kn=class{};As=31,jn=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,e,n,i,o,s,c,a){this.injector=r,this.configLoader=e,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=c,this.abortSignal=a,this.applyRedirects=new Ln(this.urlSerializer,this.urlTree)}noMatchError(r){return new S(4002,`'${r.segmentGroup}'`)}async recognize(){let r=ti(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:n}=await this.match(r),i=new P(n,e),o=new Qe(``,i),s=pi(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}async match(r){let e=new Ce([],Object.freeze({}),Object.freeze(W({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),g,this.rootComponentType,null,{},this.injector);try{return{children:await this.processSegmentGroup(this.injector,this.config,r,g,e),rootSnapshot:e}}catch(n){if(n instanceof Je)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Y?this.noMatchError(n):n}}async processSegmentGroup(r,e,n,i,o){if(n.segments.length===0&&n.hasChildren())return this.processChildren(r,e,n,o);let s=await this.processSegment(r,e,n,n.segments,i,!0,o);return s instanceof P?[s]:[]}async processChildren(r,e,n,i){let o=[];for(let a of Object.keys(n.children))a===`primary`?o.unshift(a):o.push(a);let s=[];for(let a of o){let u=n.children[a],l=Rs(e,a),p=await this.processSegmentGroup(r,l,u,a,i);s.push(...p)}let c=Ui(s);return Is(c),c}async processSegment(r,e,n,i,o,s,c){for(let a of e)try{return await this.processSegmentAgainstRoute(a._injector??r,e,a,n,i,o,s,c)}catch(u){if(u instanceof Y||Ai(u))continue;throw u}if(Ms(n,i,o))return new kn;throw new Y(n)}async processSegmentAgainstRoute(r,e,n,i,o,s,c,a){if(B(n)!==s&&(s===g||!Vt(i,o,n)))throw new Y(i);if(n.redirectTo===void 0)return this.matchSegmentAgainstRoute(r,i,n,o,s,a);if(this.allowRedirects&&c)return this.expandSegmentAgainstRouteUsingRedirect(r,i,e,n,o,s,a);throw new Y(i)}async expandSegmentAgainstRouteUsingRedirect(r,e,n,i,o,s,c){let{matched:a,parameters:u,consumedSegments:l,positionalParamSegments:p,remainingSegments:h}=Pi(e,i,o);if(!a)throw new Y(e);typeof i.redirectTo==`string`&&i.redirectTo[0]===`/`&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>As&&(this.allowRedirects=!1));let y=this.createSnapshot(r,i,o,u,c);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let H=await this.applyRedirects.applyRedirectCommands(l,i.redirectTo,p,Oi(y),r),ne=await this.applyRedirects.lineralizeSegments(i,H);return this.processSegment(r,n,e,ne.concat(h),s,!1,c)}createSnapshot(r,e,n,i,o){let s=new Ce(n,i,Object.freeze(W({},this.urlTree.queryParams)),this.urlTree.fragment,Ns(e),B(e),e.component??e._loadedComponent??null,e,Os(e),r),c=zn(s,o,this.paramsInheritanceStrategy);return s.params=Object.freeze(c.params),s.data=Object.freeze(c.data),s}async matchSegmentAgainstRoute(r,e,n,i,o,s){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let c=re=>this.createSnapshot(r,n,re.consumedSegments,re.parameters,s),a=await _t(ws(e,n,i,r,this.urlSerializer,c,this.abortSignal));if(n.path===`**`&&(e.children={}),!a?.matched)throw new Y(e);r=n._injector??r;let{routes:u}=await this.getChildConfig(r,n,i),l=n._loadedInjector??r,{parameters:p,consumedSegments:h,remainingSegments:y}=a,H=this.createSnapshot(r,n,h,p,s),{segmentGroup:ne,slicedSegments:Ae}=ti(e,h,y,u,o);if(Ae.length===0&&ne.hasChildren()){let re=await this.processChildren(l,u,ne,H);return new P(H,re)}if(u.length===0&&Ae.length===0)return new P(H,[]);let Kt=B(n)===o,rt=await this.processSegment(l,u,ne,Ae,Kt?g:o,!0,H);return new P(H,rt instanceof P?[rt]:[])}async getChildConfig(r,e,n){if(e.children)return{routes:e.children,injector:r};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(r).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await _t(ps(r,e,n,this.urlSerializer,this.abortSignal))){let o=await this.configLoader.loadChildren(r,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw ms(e)}return{routes:[],injector:r}}};Wn=new M(``);Yn=(()=>{class t{buildTitle(e){let n,i=e.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(o=>o.outlet===g);return n}getResolvedTitleForRoute(e){return e.data[Xe]}static ɵfac=function(n){return new(n||t)};static ɵprov=Lr({token:t,factory:()=>C(xi)})}return t})(),xi=(()=>{class t extends Yn{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static ɵfac=function(n){return new(n||t)($e$1(Kr))};static ɵprov=X$1({token:t,factory:t.ɵfac,providedIn:`root`})}return t})(),_e=new M(``,{factory:()=>({})}),nt=new M(``),ki=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=C(RS);async loadComponent(e,n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return Promise.resolve(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=(async()=>{try{let s=await Hi(fj(await oi(Zo$1(e,()=>n.loadComponent()))));return this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s,s}finally{this.componentLoaders.delete(n)}})();return this.componentLoaders.set(n,i),i}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return Promise.resolve({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let i=(async()=>{try{let o=await ji(n,this.compiler,e,this.onLoadEndListener);return n._loadedRoutes=o.routes,n._loadedInjector=o.injector,n._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(n)}})();return this.childrenLoaders.set(n,i),i}static ɵfac=function(n){return new(n||t)};static ɵprov=Lr({token:t,factory:t.ɵfac})}return t})();Gt=(()=>{class t{static ɵfac=function(n){return new(n||t)};static ɵprov=Lr({token:t,factory:()=>C(js)})}return t})(),js=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static ɵfac=function(n){return new(n||t)};static ɵprov=Lr({token:t,factory:t.ɵfac})}return t})(),$i=new M(``),Hs=()=>{},Bi=new M(``),zi=(()=>{class t{currentNavigation=wt$1(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=wt$1(null);events=new ge;transitionAbortWithErrorSubject=new ge;configLoader=C(ki);environmentInjector=C(ue$1);destroyRef=C(ve$1);urlSerializer=C(Te);rootContexts=C(de);location=C(oe);inputBindingEnabled=C(et,{optional:!0})!==null;titleStrategy=C(Yn);options=C(_e,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||qo;urlHandlingStrategy=C(Gt);createViewTransition=C($i,{optional:!0});navigationErrorHandler=C(Bi,{optional:!0});routerResourcesFeature=C(Wn,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>tb(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new Ut(i)),n=i=>this.events.next(new Lt(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;Tg(()=>{this.transitions?.next(G(W({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(e){return this.transitions=new qt$1(null),this.transitions.pipe(Us$1(n=>n!==null),Cb(n=>{let i=!0,o=!1,s=new AbortController,c=()=>!o&&this.currentTransition?.id===n.id;return tb(n).pipe(Cb(a=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,``,T.SupersededByNewNavigation),Wt$1;this.currentTransition=n;let u=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl==`string`?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:u?G(W({},u),{previousNavigation:null}):null,abort:()=>s.abort(),routesRecognizeHandler:a.routesRecognizeHandler,beforeActivateHandler:a.beforeActivateHandler});let l=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),p=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!l&&p!==`reload`)return this.events.next(new K(a.id,this.urlSerializer.serialize(a.rawUrl),``,Ge.IgnoredSameUrlNavigation)),a.resolve(!1),Wt$1;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return tb(a).pipe(Cb(h=>(this.events.next(new ue(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),h.id!==this.navigationId?Wt$1:Promise.resolve(h))),Ps(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,s.signal),Eb(h=>{n.targetSnapshot=h.targetSnapshot,n.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation.update(y=>(y.finalUrl=h.urlAfterRedirects,y)),this.events.next(new Ye)}),Cb(h=>on(n.routesRecognizeHandler.deferredHandle??tb(void 0)).pipe(Nn$1(()=>h))),Eb(()=>{let h=new We(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(h)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:h,extractedUrl:y,source:H,restoredState:ne,extras:Ae}=a,Kt=new ue(h,this.urlSerializer.serialize(y),H,ne);this.events.next(Kt);let rt=Ri(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=n=G(W({},a),{targetSnapshot:rt,urlAfterRedirects:y,extras:G(W({},Ae),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(re=>(re.finalUrl=y,re)),tb(n)}else return this.events.next(new K(a.id,this.urlSerializer.serialize(a.extractedUrl),``,Ge.IgnoredByUrlHandlingStrategy)),a.resolve(!1),Wt$1}),Nn$1(a=>{let u=new Dt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(u),this.currentTransition=n=G(W({},a),{guards:Ko(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),n}),ss(a=>this.events.next(a)),Cb(a=>{if(n.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!=`boolean`)throw zt(this.urlSerializer,a.guardsResult);let u=new Nt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(u),!c())return Wt$1;if(!a.guardsResult)return this.cancelNavigationTransition(a,``,T.GuardRejected),Wt$1;if(a.guards.canActivateChecks.length===0)return tb(a);let l=new Ot(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(l),!c())return Wt$1;let p=!1;return tb(a).pipe(Us(this.paramsInheritanceStrategy),Eb({next:()=>{p=!0;let h=new Pt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(h)},complete:()=>{p||this.cancelNavigationTransition(a,``,T.NoDataFromResolver)}}))}),Hn(a=>{let u=p=>{let h=[];if(p.routeConfig?._loadedComponent)p.component=p.routeConfig?._loadedComponent;else if(p.routeConfig?.loadComponent){let y=p._environmentInjector;h.push(this.configLoader.loadComponent(y,p.routeConfig).then(H=>{p.component=H}))}for(let y of p.children)h.push(...u(y));return h},l=u(a.targetSnapshot.root);return l.length===0?tb(a):on(Promise.all(l).then(()=>a))}),Cb(a=>{let{newlyCreatedRoutes:u,state:l}=Vo(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=n=a=G(W({},a),{targetRouterState:l,newlyCreatedRoutes:u}),this.currentNavigation.update(p=>(p.targetRouterState=l,p)),tb(a)}),this.routerResourcesFeature?.setupAndRunResources(s.signal)??(a=>a),Hn(()=>this.afterPreactivation()),Cb(()=>{let{currentSnapshot:a,targetSnapshot:u}=n,l=this.createViewTransition?.(this.environmentInjector,a.root,u.root,n.hasUAVisualTransition);return l?on(l).pipe(Nn$1(()=>n)):tb(n)}),zs$1(1),Cb(a=>{i=!1,this.events.next(new Re);let u=n.beforeActivateHandler.deferredHandle;return u?on(u.then(()=>a)):tb(a)}),Eb(a=>{new Un(e.routeReuseStrategy,n.targetRouterState,n.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),a.newlyCreatedRoutes?.clear(),c()&&(Fi(a.targetRouterState),o=!0,this.currentNavigation.update(u=>(u.abort=Hs,u)),this.lastSuccessfulNavigation.set(Tg(this.currentNavigation)),this.events.next(new z(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0))}),Ib(Ii(s.signal).pipe(Us$1(()=>!o&&i),Eb(()=>{this.cancelNavigationTransition(n,s.signal.reason+``,T.Aborted)}))),Eb({complete:()=>{o=!0}}),Ib(this.transitionAbortWithErrorSubject.pipe(Eb(a=>{throw a}))),yb(()=>{s.abort(),o||this.cancelNavigationTransition(n,``,T.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Gu(a=>{if(o=!0,ni(n),this.destroyed)return n.resolve(!1),Wt$1;if(_i(a))this.events.next(new j(n.id,this.urlSerializer.serialize(n.extractedUrl),a.message,a.cancellationCode)),Yo(a)?this.events.next(new we(a.url,a.navigationBehaviorOptions)):n.resolve(!1);else{let u=new le(n.id,this.urlSerializer.serialize(n.extractedUrl),a,n.targetSnapshot??void 0);try{let l=Zo$1(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof Ee){let{message:p,cancellationCode:h}=zt(this.urlSerializer,l);this.events.next(new j(n.id,this.urlSerializer.serialize(n.extractedUrl),p,h)),this.events.next(new we(l.redirectTo,l.navigationBehaviorOptions))}else throw this.events.next(u),a}catch(l){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(l)}}return Wt$1}))}))}cancelNavigationTransition(e,n,i){ni(e);let o=new j(e.id,this.urlSerializer.serialize(e.extractedUrl),n,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=Tg(this.currentNavigation),i=n?.targetBrowserUrl??n?.extractedUrl;return e.toString()!==i?.toString()&&!n?.extras.skipLocationChange}static ɵfac=function(n){return new(n||t)};static ɵprov=Lr({token:t,factory:t.ɵfac})}return t})();qi=new M(``),Vi=(()=>{class t{static ɵfac=function(n){return new(n||t)};static ɵprov=Lr({token:t,factory:()=>C(Bs)})}return t})(),qt=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}shouldDestroyInjector(r){return!0}},Bs=(()=>{class t extends qt{static ɵfac=function(n){return new(n||t)};static ɵprov=Lr({token:t,factory:t.ɵfac})}return t})(),Wt=(()=>{class t{urlSerializer=C(Te);options=C(_e,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||`replace`;location=C(oe);urlHandlingStrategy=C(Gt);urlUpdateStrategy=this.options.urlUpdateStrategy||`deferred`;currentUrlTree=new A;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:n,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,n):n,s=i??o;return s instanceof A?this.urlSerializer.serialize(s):s}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{ɵrouterUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:n,initialUrl:i}){n&&e?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,i),this.routerState=e):this.rawUrlTree=i}routerState=Ri(null,C(ue$1));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static ɵfac=function(n){return new(n||t)};static ɵprov=Lr({token:t,factory:()=>C(zs)})}return t})(),zs=(()=>{class t extends Wt{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!==`computed`?this.currentPageId:this.restoredState()?.ɵrouterPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type===`popstate`&&setTimeout(()=>{e(n.url,n.state,`popstate`,{replaceUrl:!0},n.hasUAVisualTransition)})})}handleRouterEvent(e,n){e instanceof ue?this.updateStateMemento():e instanceof K?this.commitTransition(n):e instanceof We?this.urlUpdateStrategy===`eager`&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof Re?(this.commitTransition(n),this.urlUpdateStrategy===`deferred`&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof j&&!Si(e)?this.restoreHistory(n):e instanceof le?this.restoreHistory(n,!0):e instanceof z&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,n){let{extras:i,id:o}=n,{replaceUrl:s,state:c}=i;if(this.location.isCurrentPathEqualTo(e)||s){let a=this.browserPageId,u=W(W({},c),this.generateNgRouterState(o,a,n));this.location.replaceState(e,``,u)}else{let a=W(W({},c),this.generateNgRouterState(o,this.browserPageId+1,n));this.location.go(e,``,a)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution===`computed`){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution===`replace`&&(n&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),``,this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n,i){return this.canceledNavigationResolution===`computed`?W({navigationId:e,ɵrouterPageId:n},this.routerUrlState(i)):W({navigationId:e},this.routerUrlState(i))}static ɵfac=function(n){return new(n||t)};static ɵprov=Lr({token:t,factory:t.ɵfac})}return t})();fe=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=C(pE);stateManager=C(Wt);options=C(_e,{optional:!0})||{};pendingTasks=C(Bn$1);urlUpdateStrategy=this.options.urlUpdateStrategy||`deferred`;navigationTransitions=C(zi);urlSerializer=C(Te);location=C(oe);urlHandlingStrategy=C(Gt);injector=C(ue$1);_events=new ge;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=C(Vi);injectorCleanup=C(qi,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||`ignore`;config=C(nt,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!C(et,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new te$1;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,o=Tg(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof j&&n.code!==T.Redirect&&n.code!==T.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof z)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(n instanceof we){let s=n.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),a=W({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy===`eager`||$s(i.source)},s);this.scheduleNavigation(c,Fe,null,a,i.hasUAVisualTransition,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}zo(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Fe,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n,i,o,s)=>{this.navigateToSyncWithBrowser(e,i,n,o,s)})}navigateToSyncWithBrowser(e,n,i,o,s){let c=i?.navigationId?i:null,a=i?.ɵrouterUrl??e;if(i?.ɵrouterUrl&&(o=G(W({},o),{browserUrl:e})),i){let l=W({},i);delete l.navigationId,delete l.ɵrouterPageId,delete l.ɵrouterUrl,Object.keys(l).length!==0&&(o.state=l)}let u=this.parseUrl(a);this.scheduleNavigation(u,n,c,o,s).catch(l=>{this.disposed||this.injector.get(gn$1)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Tg(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Gn),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:c,preserveFragment:a}=n,u=a?this.currentUrlTree.fragment:s,l=null;switch(c??this.options.defaultQueryParamsHandling){case`merge`:l=W(W({},this.currentUrlTree.queryParams),o);break;case`preserve`:l=this.currentUrlTree.queryParams;break;default:l=o||null}l!==null&&(l=this.removeEmptyProps(l));let p;try{p=gi(i?i.snapshot:this.routerState.snapshot.root)}catch{(typeof e[0]!=`string`||e[0][0]!==`/`)&&(e=[]),p=this.currentUrlTree.root}return vi(p,e,l,u??null,this.urlSerializer)}navigateByUrl(e,n={skipLocationChange:!1}){let i=te(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Fe,null,n)}navigate(e,n={skipLocationChange:!1}){return Fs(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(nr(4018,!1)),this.urlSerializer.parse(`/`)}}isActive(e,n){let i;if(n===!0?i=W({},$n):n===!1?i=W({},Se):i=W(W({},Se),n),te(e))return Mn(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Mn(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((n,[i,o])=>(o!=null&&(n[i]=o),n),{})}scheduleNavigation(e,n,i,o,s,c){if(this.disposed)return Promise.resolve(!1);let a,u,l;c?(a=c.resolve,u=c.reject,l=c.promise):l=new Promise((h,y)=>{a=h,u=y});let p=this.pendingTasks.add();return Kn(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,hasUAVisualTransition:s,resolve:a,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(Promise.reject.bind(Promise))}static ɵfac=function(n){return new(n||t)};static ɵprov=Lr({token:t,factory:t.ɵfac})}return t})()});function Ws(t){let r=t;return!!(r.paths||r.matrixParams||r.queryParams||r.fragment)}function Ks(t,...r){return cr([{provide:nt,multi:!0,useValue:t},{provide:Q,useFactory:Qs},{provide:Vm,multi:!0,useFactory:Js},r.map(e=>e.ɵproviders)])}function Qs(){return C(fe).routerState.root}function Zs(t,r){return{ɵkind:t,ɵproviders:r}}function Js(){let t=C(Se$1);return r=>{let e=t.get(Br$1);if(r!==e.components[0])return;let n=t.get(fe),i=t.get(Xs);t.get(ea)===1&&n.initialNavigation(),t.get(ta,null,{optional:!0})?.setUpPreloading(),t.get(Ys,null,{optional:!0})?.init(),n.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}function na(t={}){return Zs(8,[{provide:et,useFactory:()=>new bi(t,C(Wn,{optional:!0}))}])}var Vs;var Yt;var Gs;var Ys;var Xs;var ea;var ta;var Gi=f(()=>{Ne();Kr$1();Kr$1();Qn();Ws$1();lf();Vs=(()=>{class t{router=C(fe);stateManager=C(Wt);fragment=wt$1(``);queryParams=wt$1({});path=wt$1(``);serializer=C(Te);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof z&&this.updateState()})}updateState(){let{fragment:e,root:n,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(i),this.path.set(this.serializer.serialize(new A(n)))}static ɵfac=function(n){return new(n||t)};static ɵprov=Lr({token:t,factory:t.ɵfac})}return t})(),Yt=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=C(new Mg(`href`),{optional:!0});reactiveHref=PS(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return Tg(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}set target(e){this._target.set(e)}get target(){return Tg(this._target)}_target=wt$1(void 0);set queryParams(e){this._queryParams.set(e)}get queryParams(){return Tg(this._queryParams)}_queryParams=wt$1(void 0,{equal:()=>!1});set fragment(e){this._fragment.set(e)}get fragment(){return Tg(this._fragment)}_fragment=wt$1(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e)}get queryParamsHandling(){return Tg(this._queryParamsHandling)}_queryParamsHandling=wt$1(void 0);set state(e){this._state.set(e)}get state(){return Tg(this._state)}_state=wt$1(void 0,{equal:()=>!1});set info(e){this._info.set(e)}get info(){return Tg(this._info)}_info=wt$1(void 0,{equal:()=>!1});set relativeTo(e){this._relativeTo.set(e)}get relativeTo(){return Tg(this._relativeTo)}_relativeTo=wt$1(void 0);set preserveFragment(e){this._preserveFragment.set(e)}get preserveFragment(){return Tg(this._preserveFragment)}_preserveFragment=wt$1(!1);set skipLocationChange(e){this._skipLocationChange.set(e)}get skipLocationChange(){return Tg(this._skipLocationChange)}_skipLocationChange=wt$1(!1);set replaceUrl(e){this._replaceUrl.set(e)}get replaceUrl(){return Tg(this._replaceUrl)}_replaceUrl=wt$1(!1);browserUrl=jc(void 0);isAnchorElement;onChanges=new ge;applicationErrorHandler=C(gn$1);options=C(_e,{optional:!0});reactiveRouterState=C(Vs);constructor(e,n,i,o,s,c){this.router=e,this.route=n,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=c;let a=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=a===`a`||a===`area`||!!(typeof customElements==`object`&&customElements.get(a)?.observedAttributes?.includes?.(`href`))}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue(`tabindex`,e)}ngOnChanges(e){this.onChanges.next(this)}routerLinkInput=wt$1(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(te(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl(`0`))}onClick(e,n,i,o,s){let c=this._urlTree();if(c===null||this.isAnchorElement&&(e!==0||n||i||o||s||typeof this.target==`string`&&this.target!=`_self`))return!0;let a=this.browserUrl(),u=W({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},a!==void 0&&{browserUrl:a});return this.router.navigateByUrl(c,u)?.catch(l=>{this.applicationErrorHandler(l)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,n){let i=this.renderer,o=this.el.nativeElement;n!==null?i.setAttribute(o,e,n):i.removeAttribute(o,e)}_urlTree=Lt$1(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=i=>i===`preserve`||i===`merge`;(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let n=this.routerLinkInput();return n===null||!this.router.createUrlTree?null:te(n)?n:this.router.createUrlTree(n,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,n)=>this.computeHref(e)===this.computeHref(n)});get urlTree(){return Tg(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??``:null}static ɵfac=function(n){return new(n||t)(Vr$1(fe),Vr$1(Q),dp(`tabindex`),Vr$1(gl),Vr$1(Pr),Vr$1(R))};static ɵdir=$I({type:t,selectors:[[``,`routerLink`,``]],hostVars:2,hostBindings:function(n,i){n&1&&Jm(`click`,function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&zr$1(`href`,i.reactiveHref(),hD)(`target`,i._target())},inputs:{target:`target`,queryParams:`queryParams`,fragment:`fragment`,queryParamsHandling:`queryParamsHandling`,state:`state`,info:`info`,relativeTo:`relativeTo`,preserveFragment:[2,`preserveFragment`,`preserveFragment`,Dj],skipLocationChange:[2,`skipLocationChange`,`skipLocationChange`,Dj],replaceUrl:[2,`replaceUrl`,`replaceUrl`,Dj],browserUrl:[1,`browserUrl`],routerLink:`routerLink`},features:[Iw]})}return t})(),Gs=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new Be$1;link=C(Yt,{optional:!0});constructor(e,n,i,o){this.router=e,this.element=n,this.renderer=i,this.cdr=o,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof z&&this.update()})}ngAfterContentInit(){tb(this.links.changes,tb(null)).pipe(Fs$1()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=on(e).pipe(Fs$1()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(e){if(e==null){this.classes=[];return}let n=Array.isArray(e)?e:e.split(` `);this.classes=n.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||this.routerLinkActiveOptions===null&&!this._isActive||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,`aria-current`,this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,`aria-current`),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let n=this.routerLinkActiveOptions;if(n===null)return()=>!1;let i;return n===void 0?i=W({},Se):Ws(n)?i=n:n.exact??!1?i=W({},$n):i=W({},Se),o=>{let s=o.urlTree;return s?Tg(Bn(s,e,i)):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static ɵfac=function(n){return new(n||t)(Vr$1(fe),Vr$1(Pr),Vr$1(gl),Vr$1(bj))};static ɵdir=$I({type:t,selectors:[[``,`routerLinkActive`,``]],contentQueries:function(n,i,o){if(n&1&&ng(o,Yt,5),n&2){let s;VE(s=UE())&&(i.links=s)}},inputs:{routerLinkActiveOptions:`routerLinkActiveOptions`,ariaCurrentWhenActive:`ariaCurrentWhenActive`,routerLinkActive:`routerLinkActive`},outputs:{isActiveChange:`isActiveChange`},exportAs:[`routerLinkActive`],features:[Iw]})}return t})();Ys=new M(``);Xs=new M(``,{factory:()=>new ge}),ea=new M(``,{factory:()=>1}),ta=new M(``)});var ra=f(()=>{Qn();Gi()});export{Yt as a,na as c,Qr as i,qn as l,Ks as n,ao as o,Q as r,fe as s,Gs as t,ra as u};