docker-client-mx 1.46.0 → 1.47.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.
- package/dist/docker-desktop-mx/browser/chunk--8mGUJAn.js +1 -0
- package/dist/docker-desktop-mx/browser/chunk-5_sGKQni.js +1 -0
- package/dist/docker-desktop-mx/browser/{chunk-dMo4BIG3.js → chunk-B-o5hXOb.js} +1 -1
- package/dist/docker-desktop-mx/browser/{chunk-BHeMRkJW.js → chunk-B-wG1P-32.js} +4 -4
- package/dist/docker-desktop-mx/browser/chunk-B2EShQtx.js +6 -0
- package/dist/docker-desktop-mx/browser/chunk-BYVhZ88_.js +1 -0
- package/dist/docker-desktop-mx/browser/{chunk-B2FafzpV.js → chunk-B_y5IYob2.js} +2 -2
- package/dist/docker-desktop-mx/browser/{chunk-BiQwXu_z.js → chunk-BdM_u7-N.js} +1 -1
- package/dist/docker-desktop-mx/browser/{chunk-DTYNCfd52.js → chunk-BkMeriAO2.js} +1 -1
- package/dist/docker-desktop-mx/browser/chunk-BzctO2pl.js +1 -0
- package/dist/docker-desktop-mx/browser/{chunk-FuBWiPKf.js → chunk-C0zZrY7Q.js} +1 -1
- package/dist/docker-desktop-mx/browser/{chunk-DKpHGsCy.js → chunk-CAFP1xPu.js} +1 -1
- package/dist/docker-desktop-mx/browser/chunk-CI4m0buS.js +1 -0
- package/dist/docker-desktop-mx/browser/chunk-CQWK0K-u.js +1 -0
- package/dist/docker-desktop-mx/browser/chunk-Ci_V0cow.js +1 -0
- package/dist/docker-desktop-mx/browser/chunk-CsXiAvQZ.js +1 -0
- package/dist/docker-desktop-mx/browser/chunk-Cva1WgC9.js +1 -0
- package/dist/docker-desktop-mx/browser/chunk-CyIYmLAx2.js +1 -0
- package/dist/docker-desktop-mx/browser/chunk-D9wKjS-4.js +4 -0
- package/dist/docker-desktop-mx/browser/chunk-DDXVa5ug.js +1 -0
- package/dist/docker-desktop-mx/browser/chunk-DGowKW_R2.js +3 -0
- package/dist/docker-desktop-mx/browser/chunk-DJ_YTqcg.js +1 -0
- package/dist/docker-desktop-mx/browser/{chunk-Ds9UWi20.js → chunk-DLduIDn8.js} +1 -1
- package/dist/docker-desktop-mx/browser/chunk-DM-ZJf6i2.js +1 -0
- package/dist/docker-desktop-mx/browser/{chunk-BNXdbUqv.js → chunk-DRSLMQv0.js} +2 -2
- package/dist/docker-desktop-mx/browser/{chunk-BSz2tiCV.js → chunk-DUEEE1of.js} +1 -1
- package/dist/docker-desktop-mx/browser/chunk-DVNubhu5.js +1 -0
- package/dist/docker-desktop-mx/browser/chunk-DaLHmamd.js +1 -0
- package/dist/docker-desktop-mx/browser/chunk-DgQfvcw6.js +1 -0
- package/dist/docker-desktop-mx/browser/chunk-DhhlIffD.js +1 -0
- package/dist/docker-desktop-mx/browser/{chunk-CLii2-2s.js → chunk-DnoDi7LZ.js} +1 -1
- package/dist/docker-desktop-mx/browser/chunk-DpQe-4PA.js +1 -0
- package/dist/docker-desktop-mx/browser/{chunk-6Ee5XYkz.js → chunk-Dx6pB9SS.js} +1 -1
- package/dist/docker-desktop-mx/browser/{chunk-C9w0bf2Y.js → chunk-F6eWZMl2.js} +1 -1
- package/dist/docker-desktop-mx/browser/chunk-KPCWgafs.js +1 -0
- package/dist/docker-desktop-mx/browser/chunk-MHnhOupE2.js +1 -0
- package/dist/docker-desktop-mx/browser/{chunk-bj_sMiGa.js → chunk-N02t_L0r.js} +1 -1
- package/dist/docker-desktop-mx/browser/{chunk-BFq6LhBl.js → chunk-RW2CuHOJ.js} +1 -1
- package/dist/docker-desktop-mx/browser/chunk-TwB2JZ5F2.js +1 -0
- package/dist/docker-desktop-mx/browser/chunk-YcHxGDGY.js +1 -0
- package/dist/docker-desktop-mx/browser/chunk-_SDm3Kr6.js +1 -0
- package/dist/docker-desktop-mx/browser/{chunk-DwKe2pMP.js → chunk-aZvSgdSQ.js} +1 -1
- package/dist/docker-desktop-mx/browser/chunk-t2gYzsd3.js +1 -0
- package/dist/docker-desktop-mx/browser/chunk-x4B-Z7Ml.js +1 -0
- package/dist/docker-desktop-mx/browser/index.html +2 -2
- package/dist/docker-desktop-mx/browser/main-H3S3O6WP.js +1 -0
- package/dist/docker-desktop-mx/browser/styles-GSAQVAJP.css +1 -0
- package/dist-electron/attention.js +14 -1
- package/dist-electron/attention.js.map +1 -1
- package/dist-electron/channels.js +3 -0
- package/dist-electron/channels.js.map +1 -1
- package/dist-electron/container-adjust.js +138 -10
- package/dist-electron/container-adjust.js.map +1 -1
- package/dist-electron/ipc.js +61 -5
- package/dist-electron/ipc.js.map +1 -1
- package/dist-electron/main.js +30 -1
- package/dist-electron/main.js.map +1 -1
- package/dist-electron/memory-watch.js +87 -0
- package/dist-electron/memory-watch.js.map +1 -0
- package/dist-electron/preload.js +7 -1
- package/dist-electron/preload.js.map +1 -1
- package/dist-electron/settings.js +8 -0
- package/dist-electron/settings.js.map +1 -1
- package/dist-electron/stats.js +25 -0
- package/dist-electron/stats.js.map +1 -1
- package/dist-electron/volume-restore.js +40 -0
- package/dist-electron/volume-restore.js.map +1 -0
- package/dist-electron/volume-schedules.js +71 -13
- package/dist-electron/volume-schedules.js.map +1 -1
- package/package.json +1 -1
- package/dist/docker-desktop-mx/browser/chunk-B-jCnQFP2.js +0 -6
- package/dist/docker-desktop-mx/browser/chunk-B6qORmpw.js +0 -1
- package/dist/docker-desktop-mx/browser/chunk-B7IRMMXz2.js +0 -1
- package/dist/docker-desktop-mx/browser/chunk-B7xNIuls.js +0 -3
- package/dist/docker-desktop-mx/browser/chunk-BZygkakw2.js +0 -1
- package/dist/docker-desktop-mx/browser/chunk-Ba7ROPTT.js +0 -1
- package/dist/docker-desktop-mx/browser/chunk-Bk32Rk5p.js +0 -4
- package/dist/docker-desktop-mx/browser/chunk-BsmS2zXP.js +0 -1
- package/dist/docker-desktop-mx/browser/chunk-ByAKccx1.js +0 -1
- package/dist/docker-desktop-mx/browser/chunk-C4OFwmD92.js +0 -1
- package/dist/docker-desktop-mx/browser/chunk-CI-MgoDd.js +0 -1
- package/dist/docker-desktop-mx/browser/chunk-CWjMCD8T.js +0 -1
- package/dist/docker-desktop-mx/browser/chunk-CaJx4ff8.js +0 -1
- package/dist/docker-desktop-mx/browser/chunk-CesW8OnI.js +0 -1
- package/dist/docker-desktop-mx/browser/chunk-CgneC1Je.js +0 -1
- package/dist/docker-desktop-mx/browser/chunk-ChGlpKnY.js +0 -1
- package/dist/docker-desktop-mx/browser/chunk-CnivQPHU.js +0 -1
- package/dist/docker-desktop-mx/browser/chunk-CyNh8lBK2.js +0 -1
- package/dist/docker-desktop-mx/browser/chunk-D-daLnRf.js +0 -1
- package/dist/docker-desktop-mx/browser/chunk-D5pKQvyX.js +0 -1
- package/dist/docker-desktop-mx/browser/chunk-D8vF1ayp2.js +0 -1
- package/dist/docker-desktop-mx/browser/chunk-DFkgt4XH.js +0 -1
- package/dist/docker-desktop-mx/browser/chunk-DJfErblk.js +0 -1
- package/dist/docker-desktop-mx/browser/chunk-DWYNwk_L.js +0 -1
- package/dist/docker-desktop-mx/browser/chunk-FM5_LSb4.js +0 -1
- package/dist/docker-desktop-mx/browser/chunk-gOjj4-4k.js +0 -1
- package/dist/docker-desktop-mx/browser/chunk-idasJ9ng.js +0 -1
- package/dist/docker-desktop-mx/browser/chunk-ux3iG9S52.js +0 -1
- package/dist/docker-desktop-mx/browser/main-DIJOTBZN.js +0 -1
- package/dist/docker-desktop-mx/browser/styles-3HWRDJL3.css +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$n as sg,A as Ib,At as W,C as Gi,Cn as jc,Dn as ke,F as Jm,H as M,M as Ik,Mn as mj,Nt as Ws,Sn as jI,Vn as p,Z as OD,Zn as rp,at as Pk,br as y_,ct as Qr,er as sw,g as Dj,gr as wt,ht as T,l as C,lt as RI,nt as Ot,ot as Pr,p as Cr,q as Ng,qt as ap,s as Br,sr as ve$1,st as Qm,tn as br,un as fj,wn as k,yr as xr,yt as Tg}from"./chunk-Bk32Rk5p.js";import{n as $n$1,o as Ne}from"./chunk-FM5_LSb4.js";import{D as tr,E as tn$1,T as sr,_ as er,a as Je$1,b as me$1,h as ar,i as Gn$1,l as Qn$1,m as Zn$1,o as Jn$1,u as Tt,v as et,w as rr,x as nr}from"./chunk-CesW8OnI.js";import{i as v,n as f,r as g,t as L$1}from"./chunk-Ds9UWi20.js";function F(e,o){let t=o;for(;t;){if(t===e)return!0;t=St(t)?t.host:t.parentNode}return!1}function En(e){return e.visibility===`hidden`||e.visibility===`collapse`}function wn(e,o){return!e.isConnected||!o||En(o)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():o.display!==`none`&&o.display!==`contents`}function Cn(e){let o=e.assignedSlot;if(o)return o;if(e.parentElement)return e.parentElement;let t=e.getRootNode();return St(t)?t.host:null}function He(e){for(let o of Array.from(e.children))if(L(o)===`summary`)return o;return null}function Tn(e,o){let t=He(o);return!!t&&(e===t||F(t,e))}function Lt(e){let o=e?L(e):``;return e!=null&&e.matches(bn)&&(o!==`summary`||e.parentElement!=null&&L(e.parentElement)===`details`&&He(e.parentElement)===e)&&(o!==`details`||He(e)==null)&&(o!==`input`||e.type!==`hidden`)}function Fn(e,o){let t=xn(e);return o?!!t&&t.display!==`none`:wn(e,t)}function On(e){if(!Lt(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let o=e;o;o=Cn(o)){let t=o!==e,n=L(o)===`slot`;if(o.hasAttribute(`inert`)||t&&L(o)===`details`&&!o.open&&!Tn(e,o)||o.hasAttribute(`hidden`)||!n&&!Fn(o,t))return!1}return!0}function Rn(e){let o=e.tabIndex;if(o<0){let t=L(e);if(t===`details`||t===`audio`||t===`video`||fe(e)&&e.isContentEditable)return 0}return o}function Se(e){if(L(e)!==`input`)return null;let o=e;return o.type===`radio`&&o.name!==``?o:null}function Mn(e,o){let t=Se(e);if(!t)return!0;let n=o.find(i=>{let s=Se(i);return s?.name===t.name&&s.form===t.form&&s.checked});return n?n===t:o.find(i=>{let s=Se(i);return s?.name===t.name&&s.form===t.form})===t}function Bt(e){if(fe(e)&&L(e)===`slot`){let o=e.assignedElements({flatten:!0});if(o.length>0)return o}return fe(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Ht(e,o){Bt(e).forEach(t=>{Lt(t)&&o.push(t),Ht(t,o)})}function In(e,o){let t=[],n=i=>{Bt(i).forEach(s=>{fe(s)&&s.matches(o)&&t.push(s),n(s)})};return n(e),t}function An(e){let o=[];return Ht(e,o),o.filter(On)}function ge(e){let o=An(e);return o.filter(t=>Rn(t)>=0&&Mn(t,o))}function me(e){return ge(e)}function Nn(e){let o=ge(e);return[o[0],o[o.length-1]]}function jt(e,o){let t=ge(e);if(t.length===0)return;let n=rr(e.ownerDocument),i=n?t.indexOf(n):-1;return t[i===-1?o===1?0:t.length-1:i+o]}function je(e){let o=(e?.ownerDocument??document).body;return jt(o,1)??e}function Ge(e){let o=(e?.ownerDocument??document).body;return jt(o,-1)??e}function Pn(e){return e.composedPath?.()[0]??e.target}function kn(e,{select:o=!1,root:t}={}){let n=t??e[0]?.ownerDocument??document,i=rr(n);for(let s of e)if(x(s,{select:o}),rr(n)!==i)return!0}function Gt(e){return e instanceof(e?.ownerDocument?.defaultView?.HTMLElement??HTMLElement)&&e.matches(Sn)}function Ln(e){return e instanceof HTMLInputElement&&`select`in e}function x(e,{select:o=!1}={}){if(e&&e.focus){let n=rr((`ownerDocument`in e?e.ownerDocument:void 0)??document);e.focus({preventScroll:!0}),e!==n&&Ln(e)&&o&&e.select()}}function Ve(e){let o=e.createElement(`span`);return o.setAttribute(`tabindex`,`0`),o.setAttribute(ve,``),me$1.screenReader.voiceOver&&me$1.engine.webkit?o.setAttribute(`role`,`button`):o.setAttribute(`aria-hidden`,`true`),Object.assign(o.style,Bn),o}function Nt(e){for(let o of ge(e))o.setAttribute(le,o.getAttribute(`tabindex`)??``),o.setAttribute(`tabindex`,`-1`)}function pe(e){In(e,`[${le}]`).forEach(o=>{let t=o.getAttribute(le);o.removeAttribute(le),t?o.setAttribute(`tabindex`,t):o.removeAttribute(`tabindex`)})}function te(e,o){let t=e.relatedTarget;return!t||!F(o,t)}function Vt(e,o={}){let t=o.enabled??(()=>!0),n=!1;rp(i=>{let s=e();if(!s||!t())return;let r=s.ownerDocument,u=d=>{!d.relatedTarget||!te(d,s)||(d.type===`focusin`?n&&(pe(s),n=!1):(Nt(s),n=!0))};te(new FocusEvent(`focusin`,{relatedTarget:r.activeElement}),s)&&(Nt(s),n=!0),s.addEventListener(`focusin`,u,!0),s.addEventListener(`focusout`,u,!0),i(()=>{s.removeEventListener(`focusin`,u,!0),s.removeEventListener(`focusout`,u,!0),n&&(pe(s),n=!1)})})}function _t(e){return{provide:De,useFactory:e}}function Hn(e){let o=Pt.get(e);return o||(o=wt([]),Pt.set(e,o)),o}function jn(e){let o=Hn(e);return{add(t){let n=o(),i=n[0];t!==i&&i?.pause();let s=kt(n,t);s.unshift(t),o.set(s)},remove(t){let i=kt(o(),t);o.set(i),o()[0]?.resume()}}}function kt(e,o){let t=[...e],n=t.indexOf(o);return n!==-1&&t.splice(n,1),t}var bn;var L;var yn;var fe;var St;var xn;var Le;var Be;var At;var Sn;var ve;var le;var Bn;var De;var Pt;var Do;var Gn;var Vn;var V;var be=p(()=>{Qr();Qr();tn$1();bn=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`,L=e=>e.nodeName.toLowerCase(),yn=e=>e!=null&&typeof e.nodeType==`number`,fe=e=>{if(!yn(e))return!1;let o=e.ownerDocument?.defaultView;return o?e instanceof o.HTMLElement:e instanceof HTMLElement},St=e=>e!==null&&e.nodeType===11&&`host`in e,xn=e=>{let o=e.ownerDocument.defaultView;return o?o.getComputedStyle(e):null};Le=`focusScope.autoFocusOnMount`,Be=`focusScope.autoFocusOnUnmount`,At={bubbles:!1,cancelable:!0};Sn=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`;ve=`data-rdx-focus-guard`,le=`data-rdx-tabindex`,Bn={position:`fixed`,top:`0`,left:`0`,width:`1px`,height:`1px`,padding:`0`,margin:`-1px`,overflow:`hidden`,clipPath:`inset(50%)`,whiteSpace:`nowrap`,border:`0`};De=new M(`RdxFocusScopeConfig`,{factory:()=>({trapped:wt(!1)})});Pt=new WeakMap;[Do,Gn]=Gn$1(`FocusScope Context`,`utils/focus-scope`),Vn=()=>{let e=C(V);return{loop:e.loop,trapped:e.isTrapped}},V=(()=>{class e{constructor(){this.injector=C(ke),this.destroyRef=C(ve$1),this.elementRef=C(Pr),this.config=C(De),this.ownerDocument=this.elementRef.nativeElement.ownerDocument??document,this.loop=jc(!1,{transform:Dj}),this.trapped=jc(void 0,{transform:t=>t===void 0?void 0:Dj(t)}),this.isTrapped=Ot(()=>this.trapped()??this.config.trapped()),this.mountAutoFocus=fj(),this.unmountAutoFocus=fj(),this.lastFocusedElement=wt(null),this.focusScopesStack=jn(this.ownerDocument),this.focusScope={paused:wt(!1),pause:()=>this.focusScope.paused.set(!0),resume:()=>this.focusScope.paused.set(!1)},this.alive=!0,this.destroyRef.onDestroy(()=>{this.alive=!1}),OD(()=>{rp(t=>{let n=this.elementRef.nativeElement;if(this.isTrapped()){let i=d=>{if(this.focusScope.paused()||!n)return;let v=Pn(d);F(n,v)?this.lastFocusedElement.set(v):x(this.lastFocusedElement(),{select:!0})},s=d=>{if(this.focusScope.paused()||!n)return;let v=d.relatedTarget;v!==null&&(F(n,v)||x(this.lastFocusedElement(),{select:!0}))},r=()=>{F(n,this.lastFocusedElement())||x(n)},u=new MutationObserver(r);n&&u.observe(n,{childList:!0,subtree:!0}),this.ownerDocument.addEventListener(`focusin`,i),this.ownerDocument.addEventListener(`focusout`,s),t(()=>{this.ownerDocument.removeEventListener(`focusin`,i),this.ownerDocument.removeEventListener(`focusout`,s),u.disconnect()})}},{injector:this.injector}),rp(async t=>{let n=this.elementRef.nativeElement;if(await Promise.resolve(),!n||!this.alive)return;this.focusScopesStack.add(this.focusScope);let i=rr(this.ownerDocument),s=F(n,i),r=d=>{this.alive&&this.mountAutoFocus.emit(d)};if(!s){let d=new CustomEvent(Le,At);n.addEventListener(Le,r),n.dispatchEvent(d),d.defaultPrevented||(kn(me(n),{select:!0,root:this.ownerDocument}),rr(this.ownerDocument)===i&&x(n))}let u=d=>{this.alive&&this.unmountAutoFocus.emit(d)};n.addEventListener(Be,u),t(()=>{n.removeEventListener(Le,r);let d=new CustomEvent(Be,At);n.dispatchEvent(d),(this.ownerDocument.defaultView??globalThis).requestAnimationFrame(()=>{let O=this.config.returnFocus?.();O!==!1&&!d.defaultPrevented&&(O?x(O,{select:!0}):this.shouldPreserveMovedFocus()||x(i??this.ownerDocument.body,{select:!0})),n.removeEventListener(Be,u),this.focusScopesStack.remove(this.focusScope)})})},{injector:this.injector})})}shouldPreserveMovedFocus(){let t=rr(this.ownerDocument);return!!t&&t!==this.ownerDocument.body&&!F(this.elementRef.nativeElement,t)}handleKeyDown(t){if(!this.loop()&&!this.isTrapped()||this.focusScope.paused())return;let n=t.key===`Tab`&&!t.altKey&&!t.ctrlKey&&!t.metaKey,i=rr(this.ownerDocument);if(n&&i){let s=t.currentTarget,[r,u]=Nn(s);r&&u?!t.shiftKey&&i===u?(t.preventDefault(),this.loop()&&x(r,{select:!0})):t.shiftKey&&i===r&&(t.preventDefault(),this.loop()&&x(u,{select:!0})):i===s&&t.preventDefault()}}static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=RI({type:e,selectors:[[``,`rdxFocusScope`,``]],hostAttrs:[`tabindex`,`-1`],hostBindings:function(n,i){n&1&&Jm(`keydown`,function(r){return i.handleKeyDown(r)})},inputs:{loop:[1,`loop`],trapped:[1,`trapped`]},outputs:{mountAutoFocus:`mountAutoFocus`,unmountAutoFocus:`unmountAutoFocus`},features:[Ik([Gn(Vn)])]})}}return e})()});function Yt(e){return e?e instanceof ShadowRoot?e.host:Yt(e.parentNode):null}function Kt(e,o){return o.map(t=>{if(e.contains(t))return t;let n=Yt(t);return n&&e.contains(n)?n:null}).filter(t=>t!=null)}function Ut(e){let o=new Set;return e.forEach(t=>{let n=t;for(;n&&!o.has(n);)o.add(n),n=n.parentNode}),o}function Xt(e,o,t){let n=[],i=s=>{!s||t.has(s)||Array.from(s.children).forEach(r=>{r.nodeName.toLowerCase()!==`script`&&(o.has(r)?i(r):n.push(r))})};return i(e),n}function qt(e,o={}){let{ariaHidden:t=!1,inert:n=!1,mark:i=!0}=o,s=e[0];if(!s)return()=>{};let r=s.ownerDocument.body,u=Kt(r,e),d=n?`inert`:t?`aria-hidden`:null,v=[],O=[];if(d){let E=ye[d],l=xe[d],D=Kt(r,Array.from(r.querySelectorAll(`[aria-live]`))),k=u.concat(D);Xt(r,Ut(k),new Set(k)).forEach(R=>{let S=R.getAttribute(d),b=S!==null&&S!==`false`,$=(E.get(R)??0)+1;E.set(R,$),v.push(R),$===1&&b&&l.add(R),b||R.setAttribute(d,d===`inert`?``:`true`)})}return i&&Xt(r,Ut(u),new Set(u)).forEach(l=>{let D=(ne.get(l)??0)+1;ne.set(l,D),O.push(l),D===1&&l.setAttribute(we,``)}),_e+=1,()=>{if(d){let E=ye[d],l=xe[d];v.forEach(D=>{let k=(E.get(D)??0)-1;E.set(D,k),k===0&&(l.has(D)||D.removeAttribute(d),l.delete(D))})}O.forEach(E=>{let l=(ne.get(E)??0)-1;ne.set(E,l),l===0&&E.removeAttribute(we)}),_e-=1,_e===0&&(ye.inert=new WeakMap,ye[`aria-hidden`]=new WeakMap,xe.inert=new WeakSet,xe[`aria-hidden`]=new WeakSet,ne=new WeakMap)}}function Ke(e){return e?typeof KeyboardEvent<`u`&&e instanceof KeyboardEvent?`keyboard`:`pointerType`in e&&typeof e.pointerType==`string`?e.pointerType||`mouse`:typeof MouseEvent<`u`&&e instanceof MouseEvent?e.detail===0?`keyboard`:`mouse`:``:null}function Ce(e){return typeof e==`function`?e():e}function Wt(e,o){let t=typeof e==`function`?e(o):e;return t===!1?!1:Ce(t)}function Kn(e,o){let t=typeof e==`function`?e(o):e;return typeof t==`boolean`?t:Ce(t)}function zt(e){return{provide:$t,useFactory:e}}function Ee(e){return e===void 0?void 0:Dj(e)}function Un(){return _t(()=>({trapped:wt(!1)}))}var we;var ye;var xe;var ne;var _e;var $t;var Te;var Fe=p(()=>{Ne();Qr();Qr();tn$1();be();be();we=`data-rdx-floating-inert`,ye={inert:new WeakMap,"aria-hidden":new WeakMap},xe={inert:new WeakSet,"aria-hidden":new WeakSet},ne=new WeakMap,_e=0;$t=new M(`RdxFloatingFocusManagerConfig`);Te=(()=>{class e{constructor(){this.enabled=jc(void 0,{transform:Ee}),this.modal=jc(void 0,{transform:Ee}),this.inert=jc(void 0,{transform:Ee}),this.initialFocus=jc(void 0),this.returnFocus=jc(void 0),this.restoreFocus=jc(void 0),this.previousFocusableElement=jc(void 0),this.nextFocusableElement=jc(void 0),this.beforeContentFocusGuardRef=jc(void 0),this.externalTree=jc(void 0),this.getInsideElements=jc(void 0),this.closeOnFocusOut=jc(void 0,{transform:Ee}),this.focusOut=fj(),this.config=C($t,{optional:!0}),this.effectiveEnabled=Ot(()=>this.enabled()??this.config?.enabled?.()??!0),this.effectiveModal=Ot(()=>this.modal()??this.config?.modal?.()??!1),this.effectiveInert=Ot(()=>this.inert()??this.config?.inert?.()??this.effectiveModal()),this.effectiveCloseOnFocusOut=Ot(()=>this.closeOnFocusOut()??this.config?.closeOnFocusOut?.()??!0),this.effectiveInitialFocus=Ot(()=>this.initialFocus()!==void 0?this.initialFocus():this.config?.initialFocus?.()??null),this.effectiveReturnFocus=Ot(()=>this.returnFocus()!==void 0?this.returnFocus():this.config?.returnFocus?.()??!0),this.effectiveRestoreFocus=Ot(()=>this.restoreFocus()??this.config?.restoreFocus?.()??!1),this.effectivePreviousFocusableElement=Ot(()=>this.previousFocusableElement()!==void 0?this.previousFocusableElement():this.config?.previousFocusableElement?.()),this.effectiveNextFocusableElement=Ot(()=>this.nextFocusableElement()!==void 0?this.nextFocusableElement():this.config?.nextFocusableElement?.()),this.effectiveBeforeContentFocusGuardRef=Ot(()=>this.beforeContentFocusGuardRef()??this.config?.beforeContentFocusGuardRef?.()),this.effectiveExternalTree=Ot(()=>this.externalTree()??this.config?.externalTree?.()??null),this.insideElements=Ot(()=>((this.getInsideElements()??this.config?.getInsideElements)?.()??[]).filter(n=>n!=null)),this.effectiveOpenInteractionType=Ot(()=>this.config?.openInteractionType?.()??this._interactionType()),this.effectiveCloseInteractionType=Ot(()=>this.config?.closeInteractionType?.()??this._interactionType()),this.trapped=Ot(()=>this.effectiveEnabled()&&this.effectiveModal()),this.focusScopeConfig=C(De),this.host=C(Pr).nativeElement,this.isBrowser=$n$1(C(sw)),this.rootContext=C(et,{optional:!0}),this.registration=C(Je$1,{optional:!0}),this._interactionType=wt(``),this.interactionType=this._interactionType.asReadonly(),rp(()=>this.focusScopeConfig.trapped.set(this.trapped())),this.focusScopeConfig.returnFocus=()=>this.resolveReturnFocusTarget(),this.isBrowser&&(rp(t=>{!this.effectiveEnabled()||!this.isFloatingOpen()||t(qt(this.avoidElements(),{ariaHidden:!1,mark:!0}))}),rp(t=>{!this.effectiveEnabled()||!this.isFloatingOpen()||!this.effectiveInert()||t(qt(this.avoidElements(),{inert:!0,mark:!1}))}),rp(()=>{if(!me$1.engine.webkit||this.isFloatingOpen())return;let t=this.rootContext?.floatingElement??this.host;if(!t)return;let n=rr(t.ownerDocument);Gt(n)&&F(t,n)&&n.blur()}),this.trackInteractionType(),Vt(()=>this.rootContext?.floatingElement??this.host,{enabled:()=>!!this.rootContext&&this.effectiveEnabled()&&this.isFloatingOpen()&&!this.effectiveModal()}),this.wireCloseOnFocusOut(),this.wireRestoreFocus(),this.wirePortalFocusBridge(),this.wireFocusOrchestration(),this.wireInitialFocusFallback())}trackInteractionType(){let t=this.host.ownerDocument,n=s=>{this._interactionType.set(s.pointerType||`mouse`)},i=()=>this._interactionType.set(`keyboard`);t.addEventListener(`pointerdown`,n,!0),t.addEventListener(`keydown`,i,!0),C(ve$1).onDestroy(()=>{t.removeEventListener(`pointerdown`,n,!0),t.removeEventListener(`keydown`,i,!0)})}wireFocusOrchestration(){C(V).mountAutoFocus.subscribe(n=>{let i=this.effectiveOpenInteractionType(),s=Wt(this.effectiveInitialFocus(),i)??this.defaultInitialFocus(i);if(s===!1){n.preventDefault();return}s&&(n.preventDefault(),s.focus())})}resolveReturnTarget(){return this.resolveReturnFocusTarget()}resolveReturnFocusTarget(){let t=Kn(this.effectiveReturnFocus(),this.effectiveCloseInteractionType());if(t===!1||t===void 0)return!1;if(!(t===!0||t==null))return t}defaultInitialFocus(t){if(t!==`touch`)return null;let n=this.rootContext?.floatingElement??this.host;return n.hasAttribute(`tabindex`)||n.setAttribute(`tabindex`,`-1`),n}wireInitialFocusFallback(){rp(()=>{!this.effectiveEnabled()||!this.isFloatingOpen()||this.scheduleInitialFocusFallback()})}scheduleInitialFocusFallback(t=0){(this.host.ownerDocument.defaultView??globalThis).requestAnimationFrame(()=>this.applyInitialFocusFallback(t))}applyInitialFocusFallback(t){if(!this.effectiveEnabled()||!this.isFloatingOpen())return;let n=this.rootContext?.floatingElement??this.host,i=this.host.ownerDocument.activeElement;if(i instanceof HTMLElement&&n.contains(i))return;let s=this.effectiveOpenInteractionType(),r=Wt(this.effectiveInitialFocus(),s);if(r===!1)return;let u=r??this.defaultInitialFocus(s);u&&i!==u&&u.focus({preventScroll:!0}),t<2&&this.scheduleInitialFocusFallback(t+1)}wireCloseOnFocusOut(){let t=this.host.ownerDocument,n=!1,i=()=>{n=!0},s=()=>{n=!1},r=u=>{if(!this.effectiveEnabled()||!this.effectiveCloseOnFocusOut()||this.effectiveModal()||n)return;let d=u.relatedTarget;d&&(d instanceof Element&&d.hasAttribute(ve)||this.isRelatedTargetInside(d)||this.focusOut.emit(u))};t.addEventListener(`pointerdown`,i,!0),t.addEventListener(`pointerup`,s,!0),t.addEventListener(`focusout`,r,!0),C(ve$1).onDestroy(()=>{t.removeEventListener(`pointerdown`,i,!0),t.removeEventListener(`pointerup`,s,!0),t.removeEventListener(`focusout`,r,!0)})}wireRestoreFocus(){let t=this.host.ownerDocument,n=i=>{if(!this.effectiveEnabled()||!this.effectiveRestoreFocus()||!this.isFloatingOpen())return;let s=i.target;if(!s||!this.isRelatedTargetInside(s))return;(t.defaultView??globalThis).requestAnimationFrame(()=>{if(!this.effectiveEnabled()||!this.effectiveRestoreFocus()||!this.isFloatingOpen()||t.activeElement!==t.body)return;let u=this.rootContext?.floatingElement??this.host;x(this.effectiveRestoreFocus()===`popup`?u:me(u).at(-1)??u)})};t.addEventListener(`focusout`,n,!0),C(ve$1).onDestroy(()=>t.removeEventListener(`focusout`,n,!0))}wirePortalFocusBridge(){rp(t=>{if(!this.effectiveEnabled()||!this.isFloatingOpen()){this.setBeforeContentFocusGuardRef(null);return}let n=this.host.ownerDocument,i=this.host.parentNode;if(!i)return;let s=Ve(n),r=Ve(n);s.setAttribute(`data-type`,`inside`),r.setAttribute(`data-type`,`inside`),i.insertBefore(s,this.host),i.insertBefore(r,this.host.nextSibling),this.setBeforeContentFocusGuardRef(s);let u=v=>{if(this.effectiveModal()){x(this.getTabbableContent().at(-1)??this.host);return}if(this.isFromOutsideFocusGuard(v)){pe(this.rootContext?.floatingElement??this.host),x(this.getTabbableContent()[0]??this.host);return}if(te(v,this.portalFocusContainer())){x(je(this.rootContext?.referenceElement??this.host));return}x(Ce(this.effectivePreviousFocusableElement())??this.defaultPreviousFocusable())},d=v=>{if(this.effectiveModal()){x(this.getTabbableContent()[0]??this.host);return}if(te(v,this.portalFocusContainer())){x(Ge(this.rootContext?.referenceElement??this.host));return}x(Ce(this.effectiveNextFocusableElement())??this.defaultNextFocusable())};s.addEventListener(`focus`,u),r.addEventListener(`focus`,d),t(()=>{s.removeEventListener(`focus`,u),r.removeEventListener(`focus`,d),s.remove(),r.remove(),this.setBeforeContentFocusGuardRef(null)})})}avoidElements(){return[this.host,...this.insideElements()].filter(t=>t!=null)}isFloatingOpen(){return this.rootContext?.open()??!0}isRelatedTargetInside(t){if(F(this.rootContext?.floatingElement??this.host,t)||this.rootContext&&this.contextContains(this.rootContext,t)||this.insideElements().some(s=>s===t||F(s,t)))return!0;let i=this.currentFloatingNode();if(i){for(let s of i.tree.ancestors(i))if(s.context&&this.contextContains(s.context,t))return!0;for(let s of i.tree.children(i,{onlyOpen:!0}))if(s.context&&this.contextContains(s.context,t))return!0}return!1}contextContains(t,n){return t.floatingElement&&F(t.floatingElement,n)||t.referenceElement&&F(t.referenceElement,n)?!0:t.triggers.contains(n)}currentFloatingNode(){return(this.registration?.node()??null)||(this.effectiveExternalTree()?.all.find(i=>i.context===this.rootContext)??null)}getTabbableContent(){return me(this.rootContext?.floatingElement??this.host)}portalFocusContainer(){let t=this.rootContext?.floatingElement??this.host,n=t.parentElement;return n&&n!==t.ownerDocument.body?n:t}defaultPreviousFocusable(){return Ge(this.rootContext?.referenceElement??this.host)}defaultNextFocusable(){return je(this.rootContext?.referenceElement??this.host)}setBeforeContentFocusGuardRef(t){let n=this.effectiveBeforeContentFocusGuardRef();n&&(typeof n==`function`?n(t):n.set(t))}isFromOutsideFocusGuard(t){let n=t.relatedTarget;return n instanceof Element&&n.hasAttribute(ve)&&n.getAttribute(`data-type`)===`outside`}static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=RI({type:e,selectors:[[``,`rdxFloatingFocusManager`,``]],inputs:{enabled:[1,`enabled`],modal:[1,`modal`],inert:[1,`inert`],initialFocus:[1,`initialFocus`],returnFocus:[1,`returnFocus`],restoreFocus:[1,`restoreFocus`],previousFocusableElement:[1,`previousFocusableElement`],nextFocusableElement:[1,`nextFocusableElement`],beforeContentFocusGuardRef:[1,`beforeContentFocusGuardRef`],externalTree:[1,`externalTree`],getInsideElements:[1,`getInsideElements`],closeOnFocusOut:[1,`closeOnFocusOut`]},outputs:{focusOut:`focusOut`},exportAs:[`rdxFloatingFocusManager`],features:[Ik([Un()]),jI([{directive:V,inputs:[`loop`,`loop`]}])]})}}return e})()});function qn(e){e||(e=C(ve$1));let o=new T(t=>{if(e.destroyed){t.next();return}return e.onDestroy(t.next.bind(t))});return t=>t.pipe(Ib(o))}function Xe(e,o){return new Ue(e)}function qe(e){let o=y_(e);return new T(t=>{let n=o?.onDestroy(()=>t.complete()),i=e.subscribe(s=>t.next(s));return()=>{i.unsubscribe(),n?.()}})}var Ue;var Jt=p(()=>{Ws();ap();Cr();Ng();Ue=class{source;destroyed=!1;destroyRef=C(ve$1);constructor(o){this.source=o,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}subscribe(o){if(this.destroyed)throw new k(953,!1);let t=this.source.pipe(qn(this.destroyRef)).subscribe({next:n=>o(n)});return{unsubscribe:()=>t.unsubscribe()}}}});function Oe(e){return e!==null&&typeof e.nodeType==`number`}function $n(e){if(!Oe(e))return!1;let o=e.ownerDocument?.defaultView;return o?e instanceof o.HTMLElement:e instanceof HTMLElement}function $e(e){if(!Oe(e))return!1;let o=e.ownerDocument?.defaultView;return o?e instanceof o.Element:e instanceof Element}function zn(e){return!(`button`in e)||e.button===0}function Qt(e){let o=e.ownerDocument;return e===o.documentElement||e===o.body}function ze(e){return e!==null&&e.nodeType===11&&`host`in e}function Jn(e){let o=e.parentNode;if(o)return o;let t=e.getRootNode();return ze(t)?t.host:null}function We(e){return e===null||e.nodeType===Node.DOCUMENT_NODE||ze(e)||$e(e)&&Qt(e)}function Qn(e){let o=e;for(;!We(o);){let t=Jn(o);if(We(t)||!$e(t))break;o=t}return o}function Zn(e,o){if(!$e(e)||Qt(e)||e.closest(`[data-rdx-internal-backdrop], [data-rdx-menu-internal-backdrop], [data-rdx-dialog-internal-backdrop]`))return!1;let t=e.getRootNode(),n=ze(t)?t:o.ownerDocument,i=Array.from(n.querySelectorAll(`[${we}]`));if(i.length===0)return!1;let s=o.floatingElement;if(s&&e.contains(s))return!1;let r=Qn(e);return i.every(u=>!r.contains(u))}function eo(e){let o=e.target;if(!$n(o)||`touches`in e||typeof e.offsetX!=`number`)return!1;let t=o.ownerDocument.defaultView;if(!t)return!1;let n=e,i=t.getComputedStyle(o),s=/auto|scroll/,r=We(o),u=r||s.test(i.overflowX),d=r||s.test(i.overflowY),v=u&&o.clientWidth>0&&o.scrollWidth>o.clientWidth,O=d&&o.clientHeight>0&&o.scrollHeight>o.clientHeight,E=i.direction===`rtl`,l=O&&(E?n.offsetX<=o.offsetWidth-o.clientWidth:n.offsetX>o.clientWidth),D=v&&n.offsetY>o.clientHeight;return l||D}function to(e,o){let t=Ye.get(e);return o===`escape-key`?t?t.escapeKey():!1:t?t.outsidePress():!0}var oe;var Wn;var Yn;var Ye;var Re;var Zt=p(()=>{Ne();Qr();tn$1();Fe();oe=()=>!0,Wn=()=>!1,Yn=()=>`sloppy`;Ye=new WeakMap;Re=class{constructor(o,t,n={}){this.context=o,this.node=t,this.branches=new Set;let i=n.enabled??oe,s=n.escapeKey??oe,r=n.escapeKeyBubbles??Wn,u=n.outsidePress??oe,d=n.outsidePressBubbles??oe,v=n.outsidePressEvent??Yn,O=n.focusOutside??oe;this.active=()=>this.context.open()&&i(),Ye.set(this.context,{escapeKey:r,outsidePress:d});let E=C(ve$1);if(E.onDestroy(()=>Ye.delete(this.context)),!$n$1(C(sw)))return;let l=this.context.ownerDocument,D=l.defaultView??globalThis,k=(c,N)=>{n.onDismiss?.(c,N)},se=!1,R=!1,S=``,b=null,$,Me,_=()=>{D.clearTimeout($),D.clearTimeout(Me)},K=()=>{let c=v();return typeof c==`string`?c:c[S===`pen`||S===``?`mouse`:S]??`sloppy`},Qe=c=>{c.key!==`Escape`||!this.active()||!s()||se||!r()&&this.hasBlockingChild(`escape-key`)||(n.onEscapeKeyDown?.(c),c.defaultPrevented||k(`escape-key`,c),r()||c.stopPropagation())},Ze=()=>{se=!0},et=()=>{D.setTimeout(()=>{se=!1},me$1.engine.webkit?5:0)},z=c=>{!this.active()||!zn(c)||this.isInside(c.target)||!u(c)||Zn(c.target,this.context)||eo(c)||!d()&&this.hasBlockingChild(`outside-press`)||(n.onPointerDownOutside?.(c),c.defaultPrevented||k(`outside-press`,c))},tt=c=>{R=this.isInside(c.target),S=c.pointerType||``},nt=()=>{R=!1},ot=c=>{K()===`sloppy`&&c.pointerType!==`touch`&&z(c)},it=c=>{if(K()===`intentional`){if(R){R=!1;return}z(c)}},st=c=>{if(S=`touch`,K()!==`sloppy`||!this.active()||this.isInside(c.target))return;let N=c.touches?.[0];N&&(_(),b={startX:N.clientX,startY:N.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},$=D.setTimeout(()=>{b&&(b.dismissOnTouchEnd=!1,b.dismissOnMouseDown=!1)},1e3))},rt=c=>{if(!b||K()!==`sloppy`||this.isInside(c.target))return;let N=c.touches?.[0];if(!N)return;let ct=N.clientX-b.startX,lt=N.clientY-b.startY,ft=Math.sqrt(ct*ct+lt*lt);ft>5&&(b.dismissOnTouchEnd=!0),ft>10&&(z(c),_(),b=null)},at=c=>{if(!(!b||K()!==`sloppy`||this.isInside(c.target))){if(b.dismissOnTouchEnd){z(c),_(),b=null;return}D.clearTimeout(Me),Me=D.setTimeout(()=>{b=null},400)}},ut=c=>{if(!(!b||K()!==`sloppy`)){if(!b.dismissOnMouseDown){b=null,_();return}z(c),_(),b=null}},dt=c=>{Promise.resolve().then(()=>Promise.resolve()).then(()=>{!this.active()||!O()||this.isInside(c.target)||(n.onFocusOutside?.(c),c.defaultPrevented||k(`focus-outside`,c))})};l.addEventListener(`keydown`,Qe,{capture:!0}),l.addEventListener(`compositionstart`,Ze,{capture:!0}),l.addEventListener(`compositionend`,et,{capture:!0}),l.addEventListener(`focusin`,dt),l.addEventListener(`pointerdown`,tt,{capture:!0}),l.addEventListener(`pointercancel`,nt,{capture:!0});let hn=D.setTimeout(()=>{l.addEventListener(`pointerdown`,ot),l.addEventListener(`click`,it),l.addEventListener(`touchstart`,st,{capture:!0,passive:!0}),l.addEventListener(`touchmove`,rt,{capture:!0,passive:!0}),l.addEventListener(`touchend`,at,{capture:!0,passive:!0}),l.addEventListener(`mousedown`,ut,{capture:!0})},0);E.onDestroy(()=>{D.clearTimeout(hn),l.removeEventListener(`keydown`,Qe,{capture:!0}),l.removeEventListener(`compositionstart`,Ze,{capture:!0}),l.removeEventListener(`compositionend`,et,{capture:!0}),l.removeEventListener(`focusin`,dt),l.removeEventListener(`pointerdown`,tt,{capture:!0}),l.removeEventListener(`pointercancel`,nt,{capture:!0}),l.removeEventListener(`pointerdown`,ot),l.removeEventListener(`click`,it),l.removeEventListener(`touchstart`,st,{capture:!0}),l.removeEventListener(`touchmove`,rt,{capture:!0}),l.removeEventListener(`touchend`,at,{capture:!0}),l.removeEventListener(`mousedown`,ut,{capture:!0}),_()})}isInside(o){if(this.contextContains(this.context,o))return!0;let t=this.node();if(t){for(let n of t.tree.children(t,{onlyOpen:!0}))if(n.context&&this.contextContains(n.context,o))return!0}if(Oe(o)){for(let n of this.branches)if(n.contains(o))return!0}return!1}contextContains(o,t){let n=o.floatingElement;return n&&Oe(t)&&n.contains(t)?!0:o.triggers.contains(t)}hasBlockingChild(o){let t=this.node();return t?t.tree.children(t,{onlyOpen:!0}).some(n=>n.context!==null&&!to(n.context,o)):!1}}});function no(e,o){return e?typeof e==`string`?o?.querySelector(e)??null:e instanceof Pr?e.nativeElement??null:e instanceof HTMLElement?e:null:null}var en;var tn=p(()=>{Ne();Qr();Qr();g();en=(()=>{class e{constructor(){this.viewContainerRef=C(Gi),this.templateRef=C(xr),this.document=C(br,{optional:!0}),this.isBrowser=$n$1(C(sw)),this.container=jc(),this.keepMounted=jc(!1,{transform:Dj}),this.contextPresent=C(v).present,this.present=Ot(()=>this.contextPresent()||this.keepMounted()),this._computedContainer=Pk(this.container),this.elementContainer=Ot(()=>no(this._computedContainer(),this.document)??this.document?.body??null),this.mountedNodes=wt([]),this.viewRef=null;let t=new f({present:this.present,isBrowser:this.isBrowser,injector:C(ke),mountView:()=>this.mountView(),destroyView:()=>this.destroyView()});rp(()=>{let n=this.elementContainer(),i=this.mountedNodes();if(!(!this.isBrowser||!n))for(let s of i)n.appendChild(s)}),C(ve$1).onDestroy(()=>t.dispose())}setContainer(t){this._computedContainer.set(t)}mountView(){this.viewRef=this.viewContainerRef.createEmbeddedView(this.templateRef);let t=this.viewRef.rootNodes;return this.mountedNodes.set(t),t.filter(n=>n instanceof HTMLElement)}destroyView(){this.viewRef?.destroy(),this.viewRef=null,this.mountedNodes.set([])}static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=RI({type:e,inputs:{container:[1,`container`],keepMounted:[1,`keepMounted`]}})}}return e})()});function sn(e){return{provide:on,useValue:W(W({},nn),e)}}function rn(e){return{contentId:e.contentId,titleId:e.titleId.asReadonly(),descriptionId:e.descriptionId.asReadonly(),isOpen:e.open,present:e.present,modal:e.effectiveModal,disablePointerDismissal:e.effectiveDisablePointerDismissal,role:e.role,transitionStatus:e.transitionStatus,trigger:e.trigger.asReadonly(),triggers:e.triggers.asReadonly(),payload:e.payload.asReadonly(),openInteractionType:e.openInteractionType.asReadonly(),closeInteractionType:e.closeInteractionType.asReadonly(),nested:e.nested,nestedDialogOpen:e.nestedDialogOpen,nestedOpenCount:e.nestedOpenCount.asReadonly(),setTitleId:o=>e.titleId.set(o),setDescriptionId:o=>e.descriptionId.set(o),registerTransitionElement:o=>e.registerTransitionElement(o),registerTrigger:(o,t,n)=>e.registerTrigger(o,t,n),setTriggerOpenInteractionType:o=>e.setTriggerOpenInteractionType(o),open:(o,t,n,i,s)=>e.show(o,t,n,i,s),close:(o,t)=>e.close(o,t),toggle:(o,t,n,i)=>e.toggle(o,t,n,i)}}var nn;var on;var ao;var uo;var B;var co;var ie;var an;var un;var dn;var lo;var fo;var cn;var ln;var fn;var pn;var Je=p(()=>{Qr();Qr();tn$1();tn$1();Fe();Fe();Jt();Zt();be();tn();g();nn={role:`dialog`,forceModal:!1,forcePointerDismissalDisabled:!1},on=new M(`RdxDialogVariant`,{factory:()=>nn});ao=e=>e===`trap-focus`?e:Dj(e),uo=()=>rn(C(ie)),[B,co]=Gn$1(`RdxDialogRootContext`,`components/dialog`),ie=(()=>{class e{constructor(){this.destroyRef=C(ve$1),this.parentRoot=C(e,{optional:!0,skipSelf:!0}),this.variant=C(on),this.hasAppliedDefaultOpen=!1,this.hasAppliedDefaultTriggerId=!1,this.registeredTriggers=new Map,this.transition=ar(n=>this.emitOpenChangeComplete(n)),this.transitionStatus=this.transition.status,this.registerTransitionElement=this.transition.registerElement,this.open=mj(!1),this.defaultOpen=jc(!1,{transform:Dj}),this.triggerId=mj(null),this.defaultTriggerId=jc(null),this.modal=jc(!0,{transform:ao}),this.disablePointerDismissal=jc(!1,{transform:Dj}),this.handle=jc(),this.onOpenChange=fj(),this.onOpenChangeComplete=fj(),this.contentId=Tt(`rdx-dialog-content-`),this.titleId=wt(void 0),this.descriptionId=wt(void 0),this.trigger=wt(void 0),this.triggers=wt([]),this.payload=wt(void 0),this.nestedOpenCount=wt(0),this.openInteractionType=wt(null),this.closeInteractionType=wt(null),this.preventUnmountOnClose=wt(!1),this.pendingTriggerOpenInteractionType=wt(null),this.present=Ot(()=>this.open()||this.preventUnmountOnClose()),this.nested=!!this.parentRoot,this.nestedDialogOpen=Ot(()=>this.nestedOpenCount()>0),this.role=this.variant.role,this.effectiveModal=Ot(()=>this.variant.forceModal?!0:this.modal()),this.effectiveDisablePointerDismissal=Ot(()=>this.disablePointerDismissal()||this.variant.forcePointerDismissalDisabled),this.floatingContext=tr({ownerDocument:C(Pr).nativeElement.ownerDocument,open:()=>this.open()}),rp(()=>this.floatingContext.setReferenceElement(this.trigger()??null)),rp(()=>{this.open()&&this.preventUnmountOnClose()&&this.preventUnmountOnClose.set(!1)});let t=this.open();rp(()=>{let n=this.defaultOpen();!this.hasAppliedDefaultOpen&&n&&(this.hasAppliedDefaultOpen=!0,this.open.set(n))}),rp(()=>{let n=this.defaultTriggerId();!this.hasAppliedDefaultTriggerId&&n!==null&&(this.hasAppliedDefaultTriggerId=!0,this.triggerId.set(n))}),rp(()=>{let n=this.triggerId();Tg(()=>this.syncTriggerId(n))}),rp(()=>{let n=this.open();n!==t&&(t=n,Tg(()=>this.transition.start(n)))}),rp(n=>{this.open()&&this.parentRoot&&n(Tg(()=>this.parentRoot.openNestedChild()))}),rp(n=>{let i=this.handle();i&&n(Tg(()=>i.registerRoot(rn(this))))})}show(t=this.trigger(),n,i,s=`none`,r){let u=t!==void 0||n!==void 0;if(this.open()){t&&this.trigger.set(t),i!==void 0&&this.triggerId.set(i),u&&this.payload.set(n);return}let d=r??new Event(`dialog.open-change`),v=this.createOpenChangeEvent(!0,s,d,t,i??this.triggerId());this.onOpenChange.emit(v.payload),!v.eventDetails.isCanceled()&&(this.openInteractionType.set(this.consumeOpenInteractionType(r)),t&&this.trigger.set(t),i!==void 0&&this.triggerId.set(i),u&&this.payload.set(n),this.preventUnmountOnClose.set(!1),this.open.set(!0),this.floatingContext.events.emit(`openchange`,{open:!0,reason:s,event:v.eventDetails.event}))}close(t=`none`,n){if(!this.open())return;let i=n??new Event(`dialog.open-change`),s=this.createOpenChangeEvent(!1,t,i,this.trigger(),this.triggerId());this.onOpenChange.emit(s.payload),!s.eventDetails.isCanceled()&&(this.pendingTriggerOpenInteractionType.set(null),this.closeInteractionType.set(Ke(n)),this.preventUnmountOnClose.set(s.shouldPreventUnmountOnClose()),this.open.set(!1),this.floatingContext.events.emit(`openchange`,{open:!1,reason:t,event:s.eventDetails.event}))}toggle(t,n,i,s=new Event(`dialog.open-change`)){if(this.open()&&this.trigger()===n){this.close(`trigger-press`,s);return}this.show(n,i,t,`trigger-press`,s)}setTriggerOpenInteractionType(t){this.pendingTriggerOpenInteractionType.set(t)}registerTrigger(t,n,i){return this.registeredTriggers.set(t,{element:n,payload:i}),this.triggers.update(s=>s.includes(n)?s:[...s,n]),this.floatingContext.triggers.add(n),(this.triggerId()===t||!this.trigger()&&this.triggerId()===null)&&(this.trigger.set(n),this.payload.set(i())),()=>{if(this.registeredTriggers.get(t)?.element===n&&this.registeredTriggers.delete(t),this.triggers.update(s=>s.filter(r=>r!==n)),this.floatingContext.triggers.delete(n),!this.destroyRef.destroyed&&this.trigger()===n){let s=this.registeredTriggers.entries().next().value;this.triggerId()!==null&&this.triggerId.set(s?.[0]??null),this.trigger.set(s?.[1].element),this.payload.set(s?.[1].payload())}}}openNestedChild(){return this.nestedOpenCount.update(t=>t+1),()=>this.nestedOpenCount.update(t=>t-1)}syncTriggerId(t){if(t===null){this.trigger.set(void 0),this.payload.set(void 0);return}let n=this.registeredTriggers.get(t);n&&n.element!==this.trigger()&&(this.trigger.set(n.element),this.payload.set(n.payload()))}createOpenChangeEvent(t,n,i,s,r){let u=Zn$1(n,i,s);return{eventDetails:u.eventDetails,shouldPreventUnmountOnClose:u.shouldPreventUnmountOnClose,payload:{open:t,triggerId:r,trigger:u.eventDetails.trigger,reason:u.eventDetails.reason,event:u.eventDetails.event,eventDetails:u.eventDetails}}}emitOpenChangeComplete(t){this.destroyRef.destroyed||this.onOpenChangeComplete.emit(t)}consumeOpenInteractionType(t){let n=this.pendingTriggerOpenInteractionType();return this.pendingTriggerOpenInteractionType.set(null),n??Ke(t)}static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=RI({type:e,selectors:[[``,`rdxDialogRoot`,``]],inputs:{open:[1,`open`],defaultOpen:[1,`defaultOpen`],triggerId:[1,`triggerId`],defaultTriggerId:[1,`defaultTriggerId`],modal:[1,`modal`],disablePointerDismissal:[1,`disablePointerDismissal`],handle:[1,`handle`]},outputs:{open:`openChange`,triggerId:`triggerIdChange`,onOpenChange:`onOpenChange`,onOpenChangeComplete:`onOpenChangeComplete`},exportAs:[`rdxDialogRoot`],features:[Ik([co(uo),Jn$1(),Qn$1(()=>C(e).floatingContext)])]})}}return e})();an=(()=>{class e{constructor(){this.rootContext=B(),this.forceRender=jc(!1,{transform:Dj});let t=C(et,{optional:!0});if(t){let n=C(Pr).nativeElement;t.addFloatingElement(n),C(ve$1).onDestroy(()=>t.removeFloatingElement(n))}}static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=RI({type:e,selectors:[[``,`rdxDialogBackdrop`,``]],hostAttrs:[`role`,`presentation`],hostVars:7,hostBindings:function(n,i){n&2&&(Qm(`hidden`,i.rootContext.nested&&!i.forceRender()),Br(`data-closed`,i.rootContext.isOpen()?void 0:``)(`data-ending-style`,i.rootContext.transitionStatus()===`ending`?``:void 0)(`data-open`,i.rootContext.isOpen()?``:void 0)(`data-starting-style`,i.rootContext.transitionStatus()===`starting`?``:void 0)(`data-nested`,i.rootContext.nested?``:void 0)(`data-nested-dialog-open`,i.rootContext.nestedDialogOpen()?``:void 0))},inputs:{forceRender:[1,`forceRender`]},exportAs:[`rdxDialogBackdrop`]})}}return e})(),un=(()=>{class e{constructor(){this.rootContext=B()}static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=RI({type:e,selectors:[[`button`,`rdxDialogClose`,``]],hostAttrs:[`type`,`button`],hostBindings:function(n,i){n&1&&Jm(`click`,function(r){return i.rootContext.close(`close-press`,r)})},exportAs:[`rdxDialogClose`]})}}return e})(),dn=(()=>{class e{constructor(){this.rootContext=B(),this.id=Tt(`rdx-dialog-description-`),this.rootContext.setDescriptionId(this.id),C(ve$1).onDestroy(()=>this.rootContext.setDescriptionId(void 0))}static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=RI({type:e,selectors:[[``,`rdxDialogDescription`,``]],hostVars:1,hostBindings:function(n,i){n&2&&Qm(`id`,i.id)},exportAs:[`rdxDialogDescription`]})}}return e})(),lo=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`]),fo=`data-rdx-dialog-internal-backdrop`,cn=(()=>{class e{constructor(){this.rootContext=B(),this.host=C(Pr).nativeElement,this.floatingContext=C(et),this.registration=C(Je$1,{optional:!0}),this.focusManager=C(Te),this.focusScope=C(V),this.escapeKeyDown=fj(),this.pointerDownOutside=fj(),this.focusOutside=fj(),this.interactOutside=fj(),this.openAutoFocus=Xe(qe(this.focusScope.mountAutoFocus)),this.closeAutoFocus=Xe(qe(this.focusScope.unmountAutoFocus)),this.floatingContext.setFloatingElement(this.host),sr(Ot(()=>this.rootContext.modal()===!0&&this.rootContext.isOpen()),{referenceElement:()=>this.host});let t=this.rootContext.registerTransitionElement(this.host);C(ve$1).onDestroy(t);let n=C(ke);OD(()=>nr(this.host,n,{marker:fo,isOpen:()=>this.rootContext.isOpen(),shouldRender:()=>this.rootContext.modal()===!0,cutout:()=>this.host.closest(`[rdxDialogViewport]`),passThrough:()=>this.host.closest(`[rdxDialogViewport]`)!==null})),new Re(this.floatingContext,()=>this.registration?.node()??null,{escapeKey:()=>!0,outsidePress:()=>this.isTopmost()&&!this.rootContext.disablePointerDismissal(),outsidePressEvent:()=>this.rootContext.modal()===!0?`intentional`:`sloppy`,focusOutside:()=>!1,onEscapeKeyDown:i=>this.escapeKeyDown.emit(i),onPointerDownOutside:i=>{this.pointerDownOutside.emit(i),this.interactOutside.emit(i)},onDismiss:(i,s)=>{this.rootContext.close(i===`escape-key`?`escape-key`:`outside-press`,s)}}),this.focusManager.focusOut.subscribe(i=>{this.focusOutside.emit(i),this.interactOutside.emit(i),i.defaultPrevented||this.rootContext.close(`focus-out`,i)})}isTopmost(){return this.rootContext.isOpen()&&!this.rootContext.nestedDialogOpen()}onKeyDown(t){lo.has(t.key)&&t.stopPropagation()}static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=RI({type:e,selectors:[[``,`rdxDialogPopup`,``]],hostVars:13,hostBindings:function(n,i){n&1&&Jm(`keydown`,function(r){return i.onKeyDown(r)}),n&2&&(Qm(`id`,i.rootContext.contentId),Br(`role`,i.rootContext.role)(`aria-modal`,i.rootContext.modal()===!0?`true`:void 0)(`aria-describedby`,i.rootContext.descriptionId())(`aria-labelledby`,i.rootContext.titleId())(`data-closed`,i.rootContext.isOpen()?void 0:``)(`data-ending-style`,i.rootContext.transitionStatus()===`ending`?``:void 0)(`data-open`,i.rootContext.isOpen()?``:void 0)(`data-starting-style`,i.rootContext.transitionStatus()===`starting`?``:void 0)(`data-nested`,i.rootContext.nested?``:void 0)(`data-nested-dialog-open`,i.rootContext.nestedDialogOpen()?``:void 0),sg(`--%NS%nested-dialogs`,i.rootContext.nestedOpenCount()))},outputs:{escapeKeyDown:`escapeKeyDown`,pointerDownOutside:`pointerDownOutside`,focusOutside:`focusOutside`,interactOutside:`interactOutside`,openAutoFocus:`openAutoFocus`,closeAutoFocus:`closeAutoFocus`},exportAs:[`rdxDialogPopup`],features:[Ik([zt(()=>{let t=B();return{modal:()=>t.modal()===!0||t.modal()===`trap-focus`,inert:()=>t.modal()===!0,enabled:()=>t.present(),restoreFocus:()=>`popup`,openInteractionType:()=>t.openInteractionType(),closeInteractionType:()=>t.closeInteractionType(),closeOnFocusOut:()=>!t.disablePointerDismissal()}})]),jI([er,Te])]})}}return e})(),ln=(()=>{class e{constructor(){this.container=jc()}static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=RI({type:e,selectors:[[`ng-template`,`rdxDialogPortal`,``]],inputs:{container:[1,`container`]},exportAs:[`rdxDialogPortal`],features:[Ik([L$1(()=>({present:B().present}))]),jI([{directive:en,inputs:[`container`,`container`]}])]})}}return e})(),fn=(()=>{class e{constructor(){this.rootContext=B(),this.id=Tt(`rdx-dialog-title-`),this.rootContext.setTitleId(this.id),C(ve$1).onDestroy(()=>this.rootContext.setTitleId(void 0))}static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=RI({type:e,selectors:[[``,`rdxDialogTitle`,``]],hostVars:1,hostBindings:function(n,i){n&2&&Qm(`id`,i.id)},exportAs:[`rdxDialogTitle`]})}}return e})(),pn=(()=>{class e{constructor(){this.rootContext=B()}static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=RI({type:e,selectors:[[``,`rdxDialogViewport`,``]],hostAttrs:[`role`,`presentation`],hostVars:8,hostBindings:function(n,i){n&2&&(Br(`data-closed`,i.rootContext.isOpen()?void 0:``)(`data-ending-style`,i.rootContext.transitionStatus()===`ending`?``:void 0)(`data-open`,i.rootContext.isOpen()?``:void 0)(`data-starting-style`,i.rootContext.transitionStatus()===`starting`?``:void 0)(`data-nested`,i.rootContext.nested?``:void 0)(`data-nested-dialog-open`,i.rootContext.nestedDialogOpen()?``:void 0),sg(`pointer-events`,i.rootContext.isOpen()?null:`none`))},exportAs:[`rdxDialogViewport`]})}}return e})()});var Oi;var Ri;var Mi;var Ii;var Ai;var Ni;var Pi;var ki;var ho=p(()=>{Qr();Qr();Je();Je();Oi=(()=>{class e{static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=RI({type:e,selectors:[[``,`rdxAlertDialogBackdrop`,``]],exportAs:[`rdxAlertDialogBackdrop`],features:[jI([an])]})}}return e})(),Ri=(()=>{class e{static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=RI({type:e,selectors:[[`button`,`rdxAlertDialogClose`,``]],exportAs:[`rdxAlertDialogClose`],features:[jI([un])]})}}return e})(),Mi=(()=>{class e{static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=RI({type:e,selectors:[[``,`rdxAlertDialogDescription`,``]],exportAs:[`rdxAlertDialogDescription`],features:[jI([dn])]})}}return e})(),Ii=(()=>{class e{static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=RI({type:e,selectors:[[``,`rdxAlertDialogPopup`,``]],exportAs:[`rdxAlertDialogPopup`],features:[jI([{directive:cn,outputs:[`escapeKeyDown`,`escapeKeyDown`,`pointerDownOutside`,`pointerDownOutside`,`focusOutside`,`focusOutside`,`interactOutside`,`interactOutside`,`openAutoFocus`,`openAutoFocus`,`closeAutoFocus`,`closeAutoFocus`]}])]})}}return e})(),Ai=(()=>{class e{static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=RI({type:e,selectors:[[`ng-template`,`rdxAlertDialogPortal`,``]],exportAs:[`rdxAlertDialogPortal`],features:[jI([{directive:ln,inputs:[`container`,`container`]}])]})}}return e})(),Ni=(()=>{class e{constructor(){this.dialog=C(ie),this.open=this.dialog.open,this.triggerId=this.dialog.triggerId,this.payload=this.dialog.payload}static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=RI({type:e,selectors:[[``,`rdxAlertDialogRoot`,``]],exportAs:[`rdxAlertDialogRoot`],features:[Ik([sn({role:`alertdialog`,forceModal:!0,forcePointerDismissalDisabled:!0})]),jI([{directive:ie,inputs:[`open`,`open`,`defaultOpen`,`defaultOpen`,`triggerId`,`triggerId`,`defaultTriggerId`,`defaultTriggerId`,`handle`,`handle`],outputs:[`openChange`,`openChange`,`triggerIdChange`,`triggerIdChange`,`onOpenChange`,`onOpenChange`,`onOpenChangeComplete`,`onOpenChangeComplete`]}])]})}}return e})(),Pi=(()=>{class e{static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=RI({type:e,selectors:[[``,`rdxAlertDialogTitle`,``]],exportAs:[`rdxAlertDialogTitle`],features:[jI([fn])]})}}return e})(),ki=(()=>{class e{static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=RI({type:e,selectors:[[``,`rdxAlertDialogViewport`,``]],exportAs:[`rdxAlertDialogViewport`],features:[jI([pn])]})}}return e})()});export{pn as _,Ni as a,Ri as c,dn as d,fn as f,ln as g,ki as h,Mi as i,an as l,ie as m,Ii as n,Oi as o,ho as p,Je as r,Pi as s,Ai as t,cn as u,un as v};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ft as X,Ln as oS,Qn as sS,Vn as p,ct as Qr,gr as wt,kn as lS,l as C,nt as Ot,on as eH,sr as ve}from"./chunk-Bk32Rk5p.js";import{i as Wi,s as ca}from"./chunk-CgneC1Je.js";var y;var f=p(()=>{Qr();lS();ca();sS();Qr();y=class s{toast=C(Wi);items=wt([]);busy=wt(!1);loadProblem=wt(null);running=wt(new Set);networks=this.items.asReadonly();loading=this.busy.asReadonly();problem=this.loadProblem.asReadonly();pending=this.running.asReadonly();unusedCount=Ot(()=>this.items().filter(e=>!e.builtIn&&e.connected===0).length);constructor(){C(ve).onDestroy(window.electron.events.subscribe(e=>{e.includes(`network`)&&this.refresh()}))}async refresh(){this.busy.set(!0);try{this.items.set(await window.electron.networks.list()),this.loadProblem.set(null)}catch(e){this.loadProblem.set(eH(e))}finally{this.busy.set(!1)}}async create(e){let t;try{let r=await window.electron.networks.create(e);t=r.ok?null:r.problem}catch(r){t=eH(r)}return t===null&&(this.toast.success(oS().networks.created(e.name)),await this.refresh()),t}async remove(e){this.running.update(t=>new Set(t).add(e));try{let t=await window.electron.networks.remove(e);t.ok||this.toast.error(t.problem)}finally{this.running.update(t=>{let r=new Set(t);return r.delete(e),r})}await this.refresh()}async removeMany(e){await Promise.all(e.map(t=>this.remove(t)))}async prune(){this.busy.set(!0);try{let e=await window.electron.networks.prune();e.ok?this.toast.success(e.removed===0?oS().common.nothingToPrune:oS().networks.pruned(e.removed)):this.toast.error(e.problem)}finally{this.busy.set(!1)}await this.refresh()}static ɵfac=function(t){return new(t||s)};static ɵprov=X({token:s,factory:s.ɵfac,providedIn:`root`})}});export{y as n,f as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as Od,Ct as UE,D as HE,En as kc,F as Jm,G as My,Gn as pk,Gt as _m,K as Nc,Ln as oS,Qn as sS,Tn as kE,V as Ld,Vn as p,Vt as _E,Xn as rg,Zn as rp,_r as xc,cr as vg,ct as Qr,dt as SE,et as Oi,ft as Sc,gr as wt,jt as Wm,k as IE,ln as fg,m as DE,mn as gj,mr as wc,nt as Ot,rn as dS,s as Br,sn as ec,ur as vk,vt as Tc,w as Gm,yn as hg}from"./chunk-Bk32Rk5p.js";import"./chunk-FM5_LSb4.js";import"./chunk-DKpHGsCy.js";import"./chunk-BNXdbUqv.js";import"./chunk-CesW8OnI.js";import"./chunk-Ds9UWi20.js";import"./chunk-DwKe2pMP.js";import{n as oo,t as nc}from"./chunk-B2FafzpV.js";import{a as fi,i as _e,n as Qt,o as gi,r as Ye,s as we,t as Le}from"./chunk-DWYNwk_L.js";function te(n,a){if(n&1&&(Oi(0,`button`,7),Gm(1,`app-icon`,10),pk(2),Nc()),n&2){let e=a.$implicit,t=HE();Wm(`value`,e),ec(),Wm(`name`,t.tabIcons[e])(`size`,14),ec(),xc(``,t.tabLabel(e),` `)}}function ae(n,a){if(n&1&&Gm(0,`app-terminal-view`,11),n&2)Wm(`active`,HE().tab()===`terminal`)}function ne(n,a){if(n&1&&(Oi(0,`p`,12),pk(1),Nc()),n&2){let e=HE();ec(),fg(e.t().loading)}}function ie(n,a){if(n&1){let e=_E();Oi(0,`div`,9)(1,`app-assistant-view`,13),Jm(`commandChosen`,function(g){Ld(e);return Od(HE().insertCommand(g))}),Nc()()}}var ee;var J;p(()=>{Qr();Le();dS();Ye();nc();sS();Qr();ee=()=>[oo];J=class n{terminal=gj(oo);t=Ot(()=>oS().terminal);tabIcons={terminal:`terminal`,assistant:`sparkle`};assistantConfigured=wt(!1);tabNames=Ot(()=>this.assistantConfigured()?[`terminal`,`assistant`]:[`terminal`]);tab=wt(`terminal`);visited=wt(new Set([`terminal`]));constructor(){rp(()=>{let a=this.tab();this.visited.update(e=>e.has(a)?e:new Set(e).add(a))}),window.electron.assistant.status().then(a=>this.assistantConfigured.set(a.configured)).catch(()=>this.assistantConfigured.set(!1))}tabLabel(a){return this.t().tabs[a]}insertCommand(a){this.tab.set(`terminal`),this.terminal()?.insert(a)}static ɵfac=function(e){return new(e||n)};static ɵcmp=wc({type:n,selectors:[[`app-terminal-page`]],viewQuery:function(e,t){e&1&&rg(t.terminal,oo,5),e&2&&UE()},decls:25,vars:8,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`,`max-w-prose`,`text-[13px]`,`text-ink-400`],[1,`text-ink-200`],[`rdxTabsRoot`,``,1,`flex`,`min-h-0`,`flex-1`,`flex-col`,3,`valueChange`,`value`],[`rdxTabsList`,``,1,`flex`,`shrink-0`,`gap-1`,`border-b`,`border-ink-700`,`px-6`],[`type`,`button`,`rdxTabsTab`,``,1,`mx-focus`,`-mb-px`,`cursor-pointer`,`border-b-2`,`border-transparent`,`px-3`,`py-2`,`text-[13px]`,`text-ink-400`,`transition-colors`,`hover:text-ink-100`,`data-[active]:border-accent`,`data-[active]:text-ink-100`,3,`value`],[`rdxTabsPanel`,``,`value`,`terminal`,1,`min-h-0`,`flex-1`],[`rdxTabsPanel`,``,`value`,`assistant`,1,`min-h-0`,`flex-1`],[1,`mr-1.5`,`-mt-0.5`,`inline-flex`,`align-middle`,3,`name`,`size`],[3,`active`],[1,`px-6`,`py-5`,`text-[13px]`,`text-ink-400`],[3,`commandChosen`]],template:function(e,t){e&1&&(Oi(0,`section`,0)(1,`div`,1)(2,`h1`,2),pk(3),Nc(),Oi(4,`p`,3),pk(5),Oi(6,`code`),pk(7,`docker`),Nc(),pk(8),Oi(9,`strong`,4),pk(10,`root`),Nc(),pk(11),Oi(12,`code`),pk(13,`alpine`),Nc(),pk(14),Nc()(),Oi(15,`div`,5),vg(`valueChange`,function(l){return vk(t.tab,l)||(t.tab=l),l}),Oi(16,`div`,6),Sc(17,te,3,4,`button`,7,kc),Nc(),Oi(19,`div`,8),_m(20,ae,1,1)(21,ne,2,1),DE(22,20,ee,21),IE(),Nc(),kE(24,ie,2,0,`div`,9),Nc()()),e&2&&(ec(3),fg(t.t().title),ec(2),xc(` `,t.t().intro.start,` `),ec(3),fg(t.t().intro.afterDocker),ec(3),fg(t.t().intro.afterRoot),ec(3),xc(``,t.t().intro.afterAlpine,` `),ec(),hg(`value`,t.tab),ec(),Br(`aria-label`,t.t().tabsLabel),ec(),Tc(t.tabNames()),ec(7),SE(t.assistantConfigured()&&t.visited().has(`assistant`)?24:-1))},dependencies:[we,fi,gi,_e,My,Qt],encapsulation:2})}})();export{J as TerminalPage};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-Bk32Rk5p.js";import"./chunk-DKpHGsCy.js";import"./chunk-DwKe2pMP.js";import{n as oo,t as nc}from"./chunk-B2FafzpV.js";nc();export{oo as TerminalView};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as Od,Cn as jc,D as HE,En as kc,Gn as pk,It as Xm,Kn as qr,Kt as ag,Ln as oS,Mn as mj,Mt as Wr,Qn as sS,V as Ld,Vn as p,Vt as _E,_r as xc,ct as Qr,ft as Sc,ln as fg,mr as wc,nt as Ot,s as Br,sn as ec,st as Qm,vt as Tc}from"./chunk-Bk32Rk5p.js";function B(n){let t=S.exec(n);if(t!==null){let o=m[t[1].toLowerCase()];if(o!==void 0)return o}let e=k.exec(n);if(e!==null)return m[e[1].toLowerCase()]??null;let r=O.exec(n);return r===null?null:m[r[1].toLowerCase()]??null}function H(n,t){return t.size===0||(n===`error`||n===`warn`)&&t.has(n)}function U(n){let t=0,e=0;for(let r of n)t+=r===`error`?1:0,e+=r===`warn`?1:0;return{error:t,warn:e}}function j(n,t){let e=n.trim();if(e===``)return P;let r=/^\/(.+)\/([a-z]*)$/.exec(e);if(r===null){let o=t?e:e.toLowerCase();return{test:a=>(t?a:a.toLowerCase()).includes(o),problem:null}}try{let o=r[2].includes(`i`)||t?r[2]:`${r[2]}i`,a=new RegExp(r[1],o);return{test:M=>a.test(M),problem:null}}catch(o){return{test:()=>!0,problem:oS().logs.invalidExpression(o instanceof Error?o.message:String(o))}}}var m;var O;var S;var k;var G;var P;var V=p(()=>{sS();m={err:`error`,error:`error`,fatal:`error`,panic:`error`,critical:`error`,wrn:`warn`,warn:`warn`,warning:`warn`,inf:`info`,info:`info`,notice:`info`,dbg:`debug`,debug:`debug`,trace:`debug`},O=/\b(ERR|ERROR|FATAL|PANIC|CRITICAL|WRN|WARN|WARNING|INF|INFO|NOTICE|DBG|DEBUG|TRACE)\b/,S=/\b(?:level|lvl|severity)["']?\s*[=:]\s*["']?([A-Za-z]+)/i,k=/\[(err|error|fatal|panic|critical|wrn|warn|warning|inf|info|notice|dbg|debug|trace)\]/i;G={error:`text-danger`,warn:`text-warn`,info:`text-ok`,debug:`text-ink-500`};P={test:()=>!0,problem:null}});function W(n,t){if(n&1){let e=_E();qr(0,`button`,2),Xm(`click`,function(){let o=Ld(e).$implicit;return Od(HE().toggle(o))}),pk(1),qr(2,`span`,3),pk(3),Wr()()}if(n&2){let e=t.$implicit,r=HE();ag(`border-danger`,e===`error`&&r.chosen().has(e))(`text-danger`,e===`error`&&r.chosen().has(e))(`border-warn`,e===`warn`&&r.chosen().has(e))(`text-warn`,e===`warn`&&r.chosen().has(e)),Qm(`title`,r.t().unknownHidden),Br(`aria-pressed`,r.chosen().has(e))(`data-testid`,`level-`+e),ec(),xc(` `,e===`error`?r.t().errors:r.t().warnings,` `),ec(2),fg(e===`error`?r.errors():r.warnings())}}var T;var $=p(()=>{Qr();sS();Qr();T=class n{chosen=mj.required();errors=jc(0);warnings=jc(0);levels=[`error`,`warn`];t=Ot(()=>oS().logs.levels);toggle(t){let e=new Set(this.chosen());e.delete(t)||e.add(t),this.chosen.set(e)}static ɵfac=function(e){return new(e||n)};static ɵcmp=wc({type:n,selectors:[[`app-level-filter`]],inputs:{chosen:[1,`chosen`],errors:[1,`errors`],warnings:[1,`warnings`]},outputs:{chosen:`chosenChange`},decls:3,vars:1,consts:[[`role`,`group`,1,`flex`,`items-center`,`gap-1`],[`type`,`button`,1,`mx-btn`,`mx-focus`,3,`border-danger`,`text-danger`,`border-warn`,`text-warn`,`title`],[`type`,`button`,1,`mx-btn`,`mx-focus`,3,`click`,`title`],[1,`text-[11px]`,`tabular-nums`,`opacity-70`]],template:function(e,r){e&1&&(qr(0,`div`,0),Sc(1,W,4,13,`button`,1,kc),Wr()),e&2&&(Br(`aria-label`,r.t().label),ec(),Tc(r.levels))},encapsulation:2})}});export{T as a,j as c,H as i,B as n,U as o,G as r,V as s,$ as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ft as X,Ln as oS,Qn as sS,Vn as p,ct as Qr,gr as wt,kn as lS,l as C,nt as Ot,on as eH,sr as ve}from"./chunk-Bk32Rk5p.js";import{i as Wi,s as ca}from"./chunk-CgneC1Je.js";import{i as h$1,r as d}from"./chunk-FuBWiPKf.js";function M(n){let e=oS().images.check,t=p=>n.filter(f=>f.state===p).length,s=t(`update`),o=[s===0?e.allCurrent:e.updates(s)];return t(`unknown`)>0&&o.push(e.notInRegistry(t(`unknown`))),t(`error`)>0&&o.push(e.uncheckable(t(`error`))),e.summary(o.join(`, `),n.length)}var h;var P=p(()=>{Qr();h$1();lS();ca();sS();Qr();h=class n{toast=C(Wi);items=wt([]);busy=wt(!1);loadProblem=wt(null);running=wt(new Set);updateResults=wt(null);checking=wt(!1);images=this.items.asReadonly();loading=this.busy.asReadonly();problem=this.loadProblem.asReadonly();pending=this.running.asReadonly();updates=this.updateResults.asReadonly();checkingUpdates=this.checking.asReadonly();totalBytes=Ot(()=>[...new Map(this.items().map(e=>[e.id,e.sizeBytes]))].reduce((e,[,t])=>e+t,0));unusedCount=Ot(()=>this.items().filter(e=>e.inUseBy===0).length);constructor(){C(ve).onDestroy(window.electron.events.subscribe(e=>{e.includes(`image`)&&this.refresh()}))}async refresh(){this.busy.set(!0);try{this.items.set(await window.electron.images.list()),this.loadProblem.set(null)}catch(e){this.loadProblem.set(eH(e))}finally{this.busy.set(!1)}}async remove(e,t){this.running.update(s=>new Set(s).add(e));try{let s=await window.electron.images.remove(e,t);s.ok||this.toast.error(s.problem)}finally{this.running.update(s=>{let o=new Set(s);return o.delete(e),o})}await this.refresh()}async removeMany(e,t){await Promise.all(e.map(s=>this.remove(s,t)))}async prune(e){this.busy.set(!0);try{let t=await window.electron.images.prune(e);t.ok?this.toast.success(t.removed===0?oS().common.nothingToPrune:oS().images.pruned(t.removed,d(t.reclaimedBytes))):this.toast.error(t.problem)}finally{this.busy.set(!1)}await this.refresh()}async checkUpdates(){this.checking.set(!0);try{let e=await window.electron.images.checkUpdates();this.updateResults.set(new Map(e.map(t=>[t.reference,t]))),this.toast.success(M(e))}catch(e){this.toast.error(eH(e))}finally{this.checking.set(!1)}}async recheckIfChecked(){this.updateResults()!==null&&await this.checkUpdates()}static ɵfac=function(t){return new(t||n)};static ɵprov=X({token:n,factory:n.ɵfac,providedIn:`root`})}});export{h as n,P as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$t as bj,At as W,Cn as jc,Dn as ke$1,Er as zw,F as Jm,Fn as np,Ft as X,H as M,M as Ik,Mn as mj,N as Iw,Nt as Ws,O as Ho,Sr as yc,Vn as p,Y as Nn,Z as OD,Zn as rp,a as Am,at as Pk,ct as Qr,dn as gb,er as sw,g as Dj,gr as wt$1,hn as gl,kt as Vr,l as C,lt as RI,nr as te,nt as Ot$1,ot as Pr,qt as ap,s as Br,sr as ve,tn as br,un as fj,v as Ej,yt as Tg,zn as on}from"./chunk-Bk32Rk5p.js";import{l as T$1,n as $n$1,o as Ne}from"./chunk-FM5_LSb4.js";function at(){let n=T$1()?T$1().getUserAgent():``;return/android (\d+)/.test(n.toLowerCase())}function ut(n){return n==null||ct(n)===0}function ct(n){return n==null?null:Array.isArray(n)||typeof n==`string`?n.length:n instanceof Set?n.size:null}function ht(n){return ut(n.value)?{required:!0}:null}function Ie(n){return null}function ke(n){return n!=null}function ft(n){return yc(n)?on(n):n}function Pe(n){let e={};return n.forEach(t=>{e=t!=null?W(W({},e),t):e}),Object.keys(e).length===0?null:e}function je(n,e){return e.map(t=>t(n))}function mt(n){return!n.validate}function Le(n){return n.map(e=>mt(e)?e:t=>e.validate(t))}function gt(n){if(!n)return null;let e=n.filter(ke);return e.length==0?null:function(t){return Pe(je(t,e))}}function yt(n){return n!=null?gt(Le(n)):null}function pt(n){if(!n)return null;let e=n.filter(ke);return e.length==0?null:function(t){return gb(je(t,e).map(ft)).pipe(Nn(Pe))}}function vt(n){return n!=null?pt(Le(n)):null}function _t(n){return n.tagName===`INPUT`||n.tagName===`SELECT`||n.tagName===`TEXTAREA`}function Ct(n,e,t,r){switch(t){case`name`:n.setAttribute(e,t,r);break;case`disabled`:case`readonly`:case`required`:r?n.setAttribute(e,t,``):n.removeAttribute(e,t);break;case`max`:case`min`:case`minLength`:case`maxLength`:r!==void 0?n.setAttribute(e,t,r.toString()):n.removeAttribute(e,t);break}}function Vt(n){return Object.getPrototypeOf(n.constructor)===ot}function wt(n,e){if(!e)return null;let t,r,i;return e.forEach(o=>{o.constructor===Te?t=o:Vt(o)?r=o:i=o}),i||r||t||null}var Re;var ot;var ae;var st;var lt;var Te;var dt;var ie;var oe;var q;var se;var bt;var Dt;var Be;var z;var Ge=p(()=>{Qr();Qr();Ws();ap();Ne();Re=(()=>{class n{_renderer;_elementRef;onChange=t=>{};onTouched=()=>{};constructor(t,r){this._renderer=t,this._elementRef=r}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty(`disabled`,t)}static ɵfac=function(r){return new(r||n)(Vr(gl),Vr(Pr))};static ɵdir=RI({type:n})}return n})(),ot=(()=>{class n extends Re{static ɵfac=(()=>{let t;return function(i){return(t||(t=zw(n)))(i||n)}})();static ɵdir=RI({type:n,features:[Am]})}return n})(),ae=new M(``),st={provide:ae,useExisting:Ho(()=>Te),multi:!0};lt=new M(``),Te=(()=>{class n extends Re{_compositionMode;_composing=!1;constructor(t,r,i){super(t,r),this._compositionMode=i,this._compositionMode??=!at()}writeValue(t){let r=t??``;this.setProperty(`value`,r)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static ɵfac=function(r){return new(r||n)(Vr(gl),Vr(Pr),Vr(lt,8))};static ɵdir=RI({type:n,selectors:[[`input`,`formControlName`,``,3,`type`,`checkbox`,3,`ngNoCva`,``],[`textarea`,`formControlName`,``,3,`ngNoCva`,``],[`input`,`formControl`,``,3,`type`,`checkbox`,3,`ngNoCva`,``],[`textarea`,`formControl`,``,3,`ngNoCva`,``],[`input`,`ngModel`,``,3,`type`,`checkbox`,3,`ngNoCva`,``],[`textarea`,`ngModel`,``,3,`ngNoCva`,``],[``,`ngDefaultControl`,``]],hostBindings:function(r,i){r&1&&Jm(`input`,function(s){return i._handleInput(s.target.value)})(`blur`,function(){return i.onTouched()})(`compositionstart`,function(){return i._compositionStart()})(`compositionend`,function(s){return i._compositionEnd(s.target.value)})},standalone:!1,features:[Ik([st]),Am]})}return n})();dt=new M(``);ie=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=yt(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=vt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control?.reset(e)}hasError(e,t){return this.control?this.control.hasError(e,t):!1}getError(e,t){return this.control?this.control.getError(e,t):null}},oe=class{},q=class extends oe{source;constructor(e){super(),this.source=e}};se=class{kind;context;control;message;constructor({kind:e,context:t,control:r}){this.kind=e,this.context=t,this.control=r}},bt=(()=>{class n{_validator=Ie;_onChange;_enabled;ngOnChanges(t){if(this.inputName in t){let r=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Ie,this._onChange?.()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return t!=null}static ɵfac=function(r){return new(r||n)};static ɵdir=RI({type:n,features:[Iw]})}return n})(),Dt={provide:dt,useExisting:Ho(()=>Be),multi:!0},Be=(()=>{class n extends bt{required;inputName=`required`;normalizeInput=Dj;createValidator=t=>ht;enabled(t){return t}static ɵfac=(()=>{let t;return function(i){return(t||(t=zw(n)))(i||n)}})();static ɵdir=RI({type:n,selectors:[[``,`required`,``,`formControlName`,``,3,`type`,`checkbox`],[``,`required`,``,`formControl`,``,3,`type`,`checkbox`],[``,`required`,``,`ngModel`,``,3,`type`,`checkbox`]],hostVars:1,hostBindings:function(r,i){r&2&&Br(`required`,i._enabled?``:null)},inputs:{required:`required`},standalone:!1,features:[Ik([Dt]),Am]})}return n})();z=class extends ie{_parent=null;name=null;valueAccessor=null;isCustomControlBased=!1;userOnReset;resetSubscription;set onReset(e){this.userOnReset=e,this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.control&&(this.resetSubscription=this.control.events.subscribe(t=>{t instanceof q&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription?.add(this.resetSubscription))}isNativeFormElement=!1;rawValueAccessors;_selectedValueAccessor=null;get selectedValueAccessor(){return this._selectedValueAccessor??=wt(this,this.rawValueAccessors)}parseErrorsValidator=null;renderer;injector;requiredValidatorViaDi;subscription;customControlBindings=null;constructor(e,t,r){super(),this.injector=e,this.renderer=t,this.rawValueAccessors=r,this.injector?.get(ve)?.onDestroy(()=>{this.removeParseErrorsValidator(this.control),this.subscription?.unsubscribe()})}setupCustomControl(){this.subscription?.unsubscribe();let e=this.injector?.get(bj);if(!this.control||!e)return;let t=e.markForCheck.bind(e);this.subscription=new te,this.subscription.add(this.control.valueChanges.subscribe(t)),this.subscription.add(this.control.statusChanges.subscribe(t)),this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.userOnReset&&(this.resetSubscription=this.control.events.subscribe(r=>{r instanceof q&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription.add(this.resetSubscription)),this.parseErrorsValidator&&this.control.addValidators(this.parseErrorsValidator)}ngControlCreate(e){!e.nativeElement.hasAttribute?.(`ngNoCva`)&&(this.rawValueAccessors&&this.rawValueAccessors.length>0||this.valueAccessor!==null)||!e.customControl||(this.isCustomControlBased=!0,e.listenToCustomControlModel(i=>{this.control?.markAsDirty(),this.control?.setValue(i,{emitModelToViewChange:!1}),this.viewToModelUpdate(i)}),e.listenToCustomControlOutput(`touch`,()=>{this.control?.markAsTouched()}),this.customControlBindings={},this.isNativeFormElement=_t(e.nativeElement),this.requiredValidatorViaDi=this._rawValidators.find(i=>i instanceof Be))}ngControlUpdate(e,t){if(!this.isCustomControlBased)return;let r=this.control,i=this.customControlBindings;Object.is(i.value,r.value)||(i.value=r.value,e.setCustomControlModelInput(r.value)),this.bindControlProperty(e,i,`touched`,r.touched),this.bindControlProperty(e,i,`dirty`,r.dirty),this.bindControlProperty(e,i,`valid`,r.valid),this.bindControlProperty(e,i,`invalid`,r.invalid),this.bindControlProperty(e,i,`pending`,r.pending),this.bindControlProperty(e,i,`disabled`,r.disabled),this.shouldBindRequired&&this.bindControlProperty(e,i,`required`,this.isRequired);let o=r.errors;if(i.errors!==o){i.errors=o;let s=this._convertErrors(o);e.setInputOnDirectives(`errors`,s)}}get isRequired(){return(this.requiredValidatorViaDi?._enabled||this.control?._hasRequired())??!1}get shouldBindRequired(){return!0}bindControlProperty(e,t,r,i){if(t[r]===i)return;t[r]=i;let o=e.setInputOnDirectives(r,i);this.isNativeFormElement&&!o&&(r===`disabled`||r===`required`)&&this.renderer&&Ct(this.renderer,e.nativeElement,r,i)}_convertErrors(e){if(e===null)return[];let t=this.control;return Object.entries(e).map(([r,i])=>new se({context:i,kind:r,control:t}))}setParseErrorSource(e){if(e===void 0)return;let t=null,r=Ot$1(()=>{let i=e();return i.length===0?null:i.reduce((o,s)=>(o[s.kind]=s,o),{})});this.parseErrorsValidator=(()=>t).bind(this),rp(()=>{t=r(),this.control?.updateValueAndValidity({emitEvent:!1})},{injector:this.injector})}removeParseErrorsValidator(e){this.parseErrorsValidator&&(e?.removeValidators(this.parseErrorsValidator),e?.updateValueAndValidity({emitEvent:!1}))}}});function At(n){return{provide:ae,useExisting:Ho(()=>n),multi:!0}}function Ln(){return C(Et)}function Mt(n){return n?Object.entries(n).map(([e,t])=>{let r=typeof t==`string`?t:t&&typeof t==`object`&&typeof t.message==`string`?t.message:void 0;return r===void 0?{kind:e}:{kind:e,message:r}}):[]}function St(){let n=C(ke$1),e=C(ve),t=wt$1(!1,{debugName:`RdxNgControlState.connected`}),r=wt$1(void 0,{debugName:`RdxNgControlState.name`}),i=wt$1(void 0,{debugName:`RdxNgControlState.value`}),o=wt$1(!1,{debugName:`RdxNgControlState.valid`}),s=wt$1(!1,{debugName:`RdxNgControlState.invalid`}),a=wt$1(!1,{debugName:`RdxNgControlState.pending`}),h=wt$1(!1,{debugName:`RdxNgControlState.disabled`}),f=wt$1(null,{debugName:`RdxNgControlState.rawErrors`}),m=Ot$1(()=>Mt(f()),{debugName:`RdxNgControlState.errors`}),l=wt$1(!1,{debugName:`RdxNgControlState.dirty`}),d=wt$1(!1,{debugName:`RdxNgControlState.touched`}),u=!1,g,y;return queueMicrotask(()=>{if(u)return;let D=n.get(z,null,{self:!0,optional:!0}),p=D?.control;if(!p||typeof p.events?.subscribe!=`function`)return;y=v=>p.reset(v);let F=()=>{r.set(D.name==null?void 0:String(D.name)),i.set(p.value),o.set(p.valid),s.set(p.invalid),a.set(p.pending),h.set(p.disabled),f.set(p.errors),l.set(p.dirty),d.set(p.touched)};F();let C=p.events.subscribe(F);g=()=>C.unsubscribe(),t.set(!0)}),e.onDestroy(()=>{u=!0,g?.()}),{connected:t.asReadonly(),name:r.asReadonly(),value:i.asReadonly(),valid:o.asReadonly(),invalid:s.asReadonly(),pending:a.asReadonly(),disabled:h.asReadonly(),errors:m,dirty:l.asReadonly(),touched:d.asReadonly(),reset:D=>y?(y(D),!0):!1}}function Ye(n){return`${Nt}/${n}.md`}function Xe(n,e,t){return`[rdx:${n}] ${e}${t?` See ${Ye(t)}`:``}`}function Bn(n,e,t){!Ej()||Ue.has(n)||(Ue.add(n),console.warn(Xe(n,e,t)))}function N(n,e,t){throw new Error(Xe(n,e,t))}function Gn(n,e){let t=`${n.replace(/\s*Context$/,``)}Context`,r=new M(t);return[(s=!1)=>{let a=C(r,{optional:!0});if(a==null&&!s){let h=e?` See ${Ye(e)} for the required part hierarchy.`:``;throw new Error(`No \`${t}\` found. This part must be placed inside the directive that provides \`${t}\` (usually the primitive's root).${h}`)}return a},s=>({provide:r,useFactory:s})]}function Tt(n){return C(Rt).getId(n)}function kt(n){let e=wt$1(!1),t=Ot$1(()=>{let s=n.errors()??[],a=n.ngControlState?.connected()?n.ngControlState.errors():[];return a.length>0?[...s,...a]:s}),r=Ot$1(()=>n.invalid()||t().length>0||!!(n.ngControlState?.connected()&&n.ngControlState.invalid())),i=Ot$1(()=>(n.pending?.()??!1)||!!(n.ngControlState?.connected()&&n.ngControlState.pending()));return{invalidState:r,pendingState:i,validState:Ot$1(()=>i()?null:r()?!1:n.ngControlState?.connected()&&n.ngControlState.disabled()?null:!0),errorsState:t,touchedState:Ot$1(()=>n.ngControlState?.connected()?n.ngControlState.touched():n.touched()),dirtyState:Ot$1(()=>n.ngControlState?.connected()?n.ngControlState.dirty():n.dirty()||e()),markDirty:()=>e.set(!0),markAsTouched:()=>{n.cva?.markAsTouched(),n.touched.set(!0),n.touch.emit()},resetInteractionState:()=>{n.touched.set(!1),e.set(!1)},resetDirtyState:()=>e.set(!1)}}function Zn(n,e,t){let r=!1,i=!1,o=!1;return{eventDetails:{reason:n,event:e,trigger:t,cancel:()=>{r=!0},isCanceled:()=>r,allowPropagation:()=>{i=!0},get isPropagationAllowed(){return i},preventUnmountOnClose:()=>{o=!0}},shouldPreventUnmountOnClose:()=>o}}function Ze(){let n=new Map;return{emit(e,t){let r=n.get(e);if(r)for(let i of[...r])i(t)},on(e,t){let r=n.get(e);r||(r=new Set,n.set(e,r)),r.add(t)},off(e,t){n.get(e)?.delete(t)}}}function Lt(){return[{provide:k,useFactory:()=>new k},{provide:Je,useExisting:k}]}function Bt(n){return n.context?.open()??!1}function Jn(){return{provide:ce,useFactory:()=>C(ce,{optional:!0,skipSelf:!0})??new ue}}function Qn(n){return{provide:et,useFactory:n}}function Gt(n){return n!==null&&typeof n.nodeType==`number`}function tr(n){return new he(n)}function Wt(n){return`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${n.left}px ${n.top}px,${n.left}px ${n.bottom}px,${n.right}px ${n.bottom}px,${n.right}px ${n.top}px,${n.left}px ${n.top}px)`}function nr(n,e,t){let r=n.ownerDocument,i=t.marker??Ht,o=null,s=()=>{o?.remove(),o=null},a=rp(()=>{let h=t.isOpen(),f=t.shouldRender();if(f&&!o){o=r.createElement(`div`),o.setAttribute(`role`,`presentation`),o.setAttribute(i,``),o.style.position=`fixed`,o.style.inset=`0px`,o.style.userSelect=`none`,o.style.webkitUserSelect=`none`;let m=t.cutout?.()??null;m&&(o.style.clipPath=Wt(m.getBoundingClientRect())),n.parentElement?.insertBefore(o,n)}else f||s();o&&(o.style.pointerEvents=t.passThrough?.()?`none`:``,h?o.removeAttribute(`inert`):o.setAttribute(`inert`,``))},{injector:e});e.get(ve).onDestroy(()=>{a.destroy(),s()})}function $t(n){let{maxTouchPoints:e,webkitBackdropFilter:t}=n,r=n.userAgent.toLowerCase(),i=n.platform.toLowerCase(),o=t,s=!o&&r.includes(`firefox`),a=!o&&r.includes(`chrom`),h=/^i(os$|p)/.test(i)||i===`macintel`&&e>1||/ip(ad|hone|od)/.test(r),f=i===`android`||r.includes(`android`),m=!h&&i.startsWith(`mac`),l=i.startsWith(`win`),d=!f&&/^(linux|chrome os)/.test(i),u=m||h;return{engine:{webkit:o,gecko:s,blink:a},os:{ios:h,android:f,mac:m,windows:l,linux:d,apple:u},screenReader:{voiceOver:u},env:{jsdom:/jsdom|happydom/.test(r)}}}function qt(){let n=typeof navigator>`u`?void 0:navigator;return{userAgent:n?.userAgent??``,platform:n?.platform??``,maxTouchPoints:n?.maxTouchPoints??0,webkitBackdropFilter:typeof CSS<`u`&&CSS.supports?.(`-webkit-backdrop-filter:none`)===!0}}function rr(n=document){let e=n.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function ir(n){return me.engine.webkit&&n.movementX===0&&n.movementY===0}function or(n){let e=C(Pr).nativeElement,t=e.ownerDocument,r=C(ve);if(!t||!$n$1(C(sw)))return zt;let i=[],o,s=[],a=!1,h=!0,f=!1,m=()=>{let u=n.form(),g=u?t.getElementById(u):typeof e.closest==`function`?e.closest(`form`):e.parentElement?.closest(`form`);return g?.localName===`form`?g:null},l=()=>{n.syncNativeControl?.();let u=n.name(),g=n.form(),y=n.disabled(),P=n.hasNativeControl?.()??!1,D=n.value&&n.serialize?n.serialize(n.value()):[];if(!f)return;let F=!!(u&&n.serialize&&!P)?D.length:0;for(;i.length>F;)i.pop()?.remove();for(;i.length<F;){let C=t.createElement(`input`);C.type=`hidden`;let v=i.at(-1);e.parentNode?.insertBefore(C,v?v.nextSibling:e.nextSibling),i.push(C)}for(let C=0;C<i.length;C++){let v=i[C];v.name=u,v.value=D[C],v.disabled=y,g?v.setAttribute(`form`,g):v.removeAttribute(`form`),v.hasAttribute(`data-rdx-native-form-control`)||(v.defaultValue=s[C]??D[C],v.setAttribute(`data-rdx-native-form-control`,``))}};rp(()=>{!a&&n.defaultValue&&(o=n.defaultValue(),s=n.serialize?n.serialize(o):[],a=!0)}),rp(l),OD(()=>{f=!0,Tg(l)});let d=u=>{u.target!==m()||!n.onReset||!a||queueMicrotask(()=>{h&&!u.defaultPrevented&&Tg(()=>n.onReset(o))})};return t.addEventListener(`reset`,d,!0),r.onDestroy(()=>{h=!1,t.removeEventListener(`reset`,d,!0);for(let u of i)u.remove()}),{ownerForm:m,sync:l,requestSubmit:()=>{Tg(l),m()?.requestSubmit()}}}function ge(n){let e=n.ownerDocument.defaultView;if(!e)return!1;let{overflow:t,overflowX:r,overflowY:i,display:o}=e.getComputedStyle(n);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&![`inline`,`contents`].includes(o)}function Yt(n){let e=n.defaultView;return e?e.innerWidth-n.documentElement.clientWidth>0:!1}function Xt(n){if(!n.defaultView||typeof CSS>`u`||!CSS.supports||!CSS.supports(`scrollbar-gutter`,`stable`))return!1;let t=n.documentElement,r=ge(t)?t:n.body,i=r.style.overflowY,o=t.style.scrollbarGutter;t.style.scrollbarGutter=`stable`,r.style.overflowY=`scroll`;let s=r.offsetWidth;r.style.overflowY=`hidden`;let a=r.offsetWidth;return r.style.overflowY=i,t.style.scrollbarGutter=o,s===a}function Kt(n){let e=n.documentElement,t=ge(e)?e:n.body,r={overflowX:t.style.overflowX,overflowY:t.style.overflowY};return t.style.overflowX=`hidden`,t.style.overflowY=`hidden`,()=>{t.style.overflowX=r.overflowX,t.style.overflowY=r.overflowY}}function Zt(n){let e=n.documentElement,t=n.body,r=n.defaultView;if(!r)return()=>{};if(me.engine.webkit&&(r.visualViewport?.scale??1)!==1)return()=>{};let i=0,o=0,s=!1,a={},h={},f=``,m=0,l=()=>{let g=r.getComputedStyle(e),y=r.getComputedStyle(t),D=(g.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;i=e.scrollTop,o=e.scrollLeft,a={scrollbarGutter:e.style.scrollbarGutter,overflowY:e.style.overflowY,overflowX:e.style.overflowX},f=e.style.scrollBehavior,h={position:t.style.position,height:t.style.height,width:t.style.width,boxSizing:t.style.boxSizing,overflowY:t.style.overflowY,overflowX:t.style.overflowX,scrollBehavior:t.style.scrollBehavior};let p=e.scrollHeight>e.clientHeight,F=e.scrollWidth>e.clientWidth,C=g.overflowY===`scroll`||y.overflowY===`scroll`,v=g.overflowX===`scroll`||y.overflowX===`scroll`,ye=Math.max(0,r.innerWidth-t.clientWidth),pe=Math.max(0,r.innerHeight-t.clientHeight),ve=(parseFloat(y.marginTop)||0)+(parseFloat(y.marginBottom)||0),_e=(parseFloat(y.marginLeft)||0)+(parseFloat(y.marginRight)||0),Ce=ge(e)?e:t;if(s=Xt(n),s){e.style.scrollbarGutter=D,Ce.style.overflowY=`hidden`,Ce.style.overflowX=`hidden`;return}Object.assign(e.style,{scrollbarGutter:D,overflowY:`hidden`,overflowX:`hidden`}),(p||C)&&(e.style.overflowY=`scroll`),(F||v)&&(e.style.overflowX=`scroll`),Object.assign(t.style,{position:`relative`,height:ve||pe?`calc(100dvh - ${ve+pe}px)`:`100dvh`,width:_e||ye?`calc(100vw - ${_e+ye}px)`:`100vw`,boxSizing:`border-box`,overflowY:`hidden`,overflowX:`hidden`,scrollBehavior:`unset`}),t.scrollTop=i,t.scrollLeft=o,e.style.scrollBehavior=`unset`},d=()=>{Object.assign(e.style,a),Object.assign(t.style,h),s||(e.scrollTop=i,e.scrollLeft=o,e.style.scrollBehavior=f)},u=()=>{d(),m=r.requestAnimationFrame(l)};return l(),r.addEventListener(`resize`,u),()=>{m&&r.cancelAnimationFrame(m),d(),r.removeEventListener(`resize`,u)}}function Jt(n){let e=$e.get(n);return e||(e=new fe(n),$e.set(n,e)),e}function sr(n,e={}){let t=C(br),r=$n$1(C(sw)),i=null,o=null,s=()=>{i?.(),i=null,o=null};rp(()=>{if(!r)return;let a=e.referenceElement?.()?.ownerDocument??t;n()?(!i||o!==a)&&(s(),i=Jt(a).acquire(),o=a):i&&s()}),r&&C(ve).onDestroy(s)}function ar(n){let e=C(ke$1),t=C(ve),r=wt$1(void 0),i,o,s,a=0,h=()=>{s!==void 0&&(cancelAnimationFrame(s),s=void 0),o!==void 0&&(clearTimeout(o),o=void 0)},f=(l,d)=>{d===a&&(h(),r.set(void 0),t.destroyed||n(l))},m=(l,d)=>{let u=i,g=u?en(u):0;if(!u||g===0){f(l,d);return}let y=typeof u.getAnimations==`function`?u.getAnimations():[];o=setTimeout(()=>f(l,d),g+Qt),y.length!==0&&Promise.all(y.map(P=>P.finished.catch(()=>{}))).then(()=>f(l,d))};return t.onDestroy(h),{status:r.asReadonly(),registerElement:l=>(i=l,()=>{i===l&&(i=void 0)}),start:l=>{let d=++a;h(),r.set(l?`starting`:`ending`),OD(()=>{t.destroyed||d!==a||(l?s=requestAnimationFrame(()=>{s=void 0,!(t.destroyed||d!==a)&&(r.set(void 0),m(l,d))}):m(l,d))},{injector:e})}}}function en(n){let e=getComputedStyle(n);return Math.max(qe(e.transitionDuration,e.transitionDelay),qe(e.animationDuration,e.animationDelay))}function qe(n,e){let t=n.split(`,`).map(ze),r=e.split(`,`).map(ze);return t.reduce((i,o,s)=>Math.max(i,o+r[s%r.length]),0)}function ze(n){let e=n.trim(),t=Number.parseFloat(e);return Number.isFinite(t)?e.endsWith(`ms`)?t:t*1e3:0}var Et;var Nt;var Ue;var Ft;var Ke;var xt;var Ot;var It;var Wn;var $n;var qn;var zn;var Yn;var Xn;var He;var Rt;var Pt;var Kn;var jt;var k;var Je;var B;var Qe;var le;var T;var ue;var ce;var et;var er;var de;var Ut;var he;var Ht;var me;var zt;var We;var fe;var $e;var Qt;var tn=p(()=>{Qr();Qr();Ge();Ne();Et=(()=>{class n{constructor(){this.valueInput=jc(void 0,{alias:`value`}),this.disabledInput=jc(!1,{alias:`disabled`,transform:Dj}),this.valueChange=fj(),this._value=Pk(()=>this.valueInput()),this.value=this._value.asReadonly(),this._disabled=Pk(()=>this.disabledInput()),this.disabled=this._disabled.asReadonly()}writeValue(t){Tg(()=>this._value.set(t))}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._disabled.set(t)}setValue(t){this._value.set(t),this.valueChange.emit(t),this.onChange?.(t)}markAsTouched(){this.onTouched?.()}static{this.ɵfac=function(r){return new(r||n)}}static{this.ɵdir=RI({type:n,inputs:{valueInput:[1,`value`,`valueInput`],disabledInput:[1,`disabled`,`disabledInput`]},outputs:{valueChange:`valueChange`},exportAs:[`rdxControlValueAccessor`],features:[Ik([At(n)])]})}}return n})();Nt=`https://radix-ng.com`;Ue=new Set;Ft=[`day`,`month`,`year`],Ke=[`hour`,`minute`,`second`,`dayPeriod`],xt=[`literal`,`timeZoneName`],Ot=[...Ft,...Ke],[...Ke],It=[...Ot,...xt],It.filter(n=>n!==`literal`),Wn=`ArrowDown`,$n=`ArrowLeft`,qn=`ArrowRight`,zn=`ArrowUp`,Yn=`End`,Xn=`Home`,He=new Map,Rt=(()=>{class n{constructor(){this.appId=C(np)}getId(t){let r=this.appId===`ng`?t:t+this.appId,i=He.get(r)??0;return He.set(r,i+1),`${r}${i}`}static{this.ɵfac=function(r){return new(r||n)}}static{this.ɵprov=X({token:n,factory:n.ɵfac,providedIn:`root`})}}return n})();Pt=new M(`RdxFieldValidity`),Kn=(()=>{class n{constructor(){this.invalid=jc(!1,{transform:Dj}),this.pending=jc(!1,{transform:Dj}),this.touched=mj(!1),this.dirty=jc(!1,{transform:Dj}),this.errors=jc([]),this.touch=fj(),this.ngControlState=St(),this.formUi=kt({invalid:this.invalid,pending:this.pending,errors:this.errors,touched:this.touched,touch:this.touch,dirty:this.dirty,ngControlState:this.ngControlState,cva:this.formUiTouchTarget()}),this.validationErrors=this.formUi.errorsState,this.fieldValidity=C(Pt,{optional:!0}),this.displayValid=Ot$1(()=>this.fieldValidity?this.fieldValidity():this.formUi.validState()),rp(()=>{if(this.ngControlState.connected()){this.touched.set(this.ngControlState.touched()),this.ngControlState.dirty()||this.formUi.resetDirtyState?.();return}this.dirty()||this.formUi.resetDirtyState?.()},{debugName:`RdxFormUiControlBase.syncInteractionState`})}formUiTouchTarget(){return null}resetNgControl(t){return this.ngControlState.reset(t)}reset(){this.formUi.resetInteractionState?.()}static{this.ɵfac=function(r){return new(r||n)}}static{this.ɵdir=RI({type:n,inputs:{invalid:[1,`invalid`],pending:[1,`pending`],touched:[1,`touched`],dirty:[1,`dirty`],errors:[1,`errors`]},outputs:{touched:`touchedChange`,touch:`touch`}})}}return n})();jt=`utils/floating-tree`,k=class{constructor(){this._state=wt$1({status:`pending`}),this.status=Ot$1(()=>this._state().status),this.tree=Ot$1(()=>{let e=this._state();return e.status===`registered`?e.tree:null}),this.node=Ot$1(()=>{let e=this._state();return e.status===`registered`?e.node:null})}register(e,t){t.tree!==e&&N(`floating/registration-mismatch`,`register(tree, node): node.tree must equal tree. Node "${t.id}" belongs to a different tree.`,jt),this._state.set({status:`registered`,tree:e,node:t})}markDetached(){this._state.set({status:`detached`})}clear(){this._state.set({status:`pending`})}},Je=new M(`RdxFloatingRegistration`);B=new WeakMap,Qe=Symbol(`RdxFloatingNode`),le=class{constructor(e,t,r,i,o){this.id=t,e!==Qe&&N(`floating/direct-node-construction`,`RdxFloatingNode is created only by RdxFloatingTree.register().`,T),this.tree=r,B.set(this,{parent:i,context:o})}get parent(){return B.get(this).parent}get context(){return B.get(this).context}},T=`utils/floating-tree`;ue=class{constructor(){this.events=Ze(),this.nodeSet=new Set,this.childrenOf=new Map}register(e){this.assertRegisterableParent(e.parent),Ej()&&this.assertContextDocument(e.context,this.nearestContext(e.parent));let t=new le(Qe,e.id,this,e.parent,e.context);return this.nodeSet.add(t),this.addToChildrenOf(e.parent,t),t}unregister(e){Ej()&&this.assertOwnedNode(e),this.nodeSet.delete(e),this.removeFromChildrenOf(e.parent,e)}setContext(e,t){if(this.assertOwnedNode(e),Ej()&&t!==null){this.assertContextDocument(t,this.nearestContext(e.parent));for(let r of this.descendantContexts(e))this.assertContextDocument(t,r)}B.get(e).context=t}setParent(e,t){if(this.assertOwnedNode(e),this.assertRegisterableParent(t),e.parent===t)return;for(let i=t;i!==null&&this.nodeSet.has(i);i=i.parent)i===e&&N(`floating/parent-cycle`,`Reparenting node "${e.id}" under "${t?.id}" creates an ancestry cycle.`,T);Ej()&&this.assertSubtreeDocuments(e,t);let r=e.parent;B.get(e).parent=t,this.removeFromChildrenOf(r,e),this.addToChildrenOf(t,e)}children(e,t={}){Ej()&&this.assertOwnedNode(e);let r=t.onlyOpen??!0,i=[],o=s=>{for(let a of this.directChildren(s))(!r||Bt(a))&&i.push(a),o(a)};return o(e),i}ancestors(e){Ej()&&this.assertOwnedNode(e);let t=[];for(let r=e.parent;r!==null&&this.nodeSet.has(r);r=r.parent)t.push(r);return t}get all(){return[...this.nodeSet]}directChildren(e){return this.childrenOf.get(e)??[]}addToChildrenOf(e,t){let r=this.childrenOf.get(e);r||(r=[],this.childrenOf.set(e,r)),r.push(t)}removeFromChildrenOf(e,t){let r=this.childrenOf.get(e);if(!r)return;let i=r.indexOf(t);i!==-1&&r.splice(i,1),r.length===0&&this.childrenOf.delete(e)}nearestContext(e){for(let t=e;t!==null&&this.nodeSet.has(t);t=t.parent)if(t.context!==null)return t.context;return null}descendantContexts(e){return this.children(e,{onlyOpen:!1}).map(t=>t.context).filter(t=>t!==null)}assertSubtreeDocuments(e,t){let r=this.nearestContext(t);this.assertContextDocument(e.context,r);for(let i of this.descendantContexts(e))this.assertContextDocument(i,r)}isRegistered(e){return this.nodeSet.has(e)}assertOwnedNode(e){(e.tree!==this||!this.nodeSet.has(e))&&N(`floating/foreign-node`,`This node does not belong to this tree (or was already unregistered).`,T)}assertRegisterableParent(e){e!==null&&(e.tree!==this&&N(`floating/cross-tree-parent`,`A floating node parent must belong to the same tree.`,T),this.nodeSet.has(e)||N(`floating/unregistered-parent`,`A floating node parent must be currently registered in the tree.`,T))}assertContextDocument(e,t){e!==null&&t!==null&&e.ownerDocument!==t.ownerDocument&&N(`floating/cross-document-parent`,`A floating node must share the same ownerDocument as its ancestry/subtree.`,T)}},ce=new M(`RdxFloatingTree`);et=new M(`RdxFloatingRootContext`);er=(()=>{class n{constructor(){this.externalTree=jc(null),this.parentOverride=jc({kind:`inherit`}),this.selfReg=C(k),this.parentReg=C(Je,{optional:!0,skipSelf:!0}),this.ambientTree=C(ce,{optional:!0}),this.rootContext=C(et,{optional:!0}),this.nodeId=Tt(`rdx-floating-node-`),this.node=this.selfReg.node,this.status=this.selfReg.status,this.tree=this.selfReg.tree,rp(t=>{let r=this.parentOverride();if(r.kind===`inherit`&&this.parentReg?.status()===`pending`)return;let i=r.kind===`node`?r.parent:r.kind===`root`?null:this.parentReg?.node()??null,o=(r.kind===`node`?r.parent.tree:null)??this.externalTree()??this.parentReg?.tree()??this.ambientTree;if(!o){this.selfReg.markDetached();return}let s=o.register({id:this.nodeId,parent:i,context:this.rootContext});this.selfReg.register(o,s),t(()=>{o.unregister(s),this.selfReg.clear()})})}static{this.ɵfac=function(r){return new(r||n)}}static{this.ɵdir=RI({type:n,selectors:[[``,`rdxFloatingNode`,``]],inputs:{externalTree:[1,`externalTree`],parentOverride:[1,`parentOverride`]},exportAs:[`rdxFloatingNode`],features:[Ik([Lt()])]})}}return n})(),de=class{constructor(){this.elements=new Set}add(e){this.elements.add(e)}delete(e){this.elements.delete(e)}hasElement(e){return e!==null&&this.elements.has(e)}hasMatchingElement(e){if(!e)return!1;for(let t of this.elements)if(t.contains(e))return!0;return!1}contains(e){return this.hasElement(e)?!0:this.hasMatchingElement(Gt(e)?e:null)}};Ut=`utils/floating-tree`,he=class{constructor(e){this.triggers=new de,this.events=Ze(),this.floatingElementRef=null,this.referenceElementRef=null,this.floatingElementsRef=new Set,this.ownerDocument=e.ownerDocument,this.open=e.open??(()=>!1),e.floatingElement!==void 0&&this.setFloatingElement(e.floatingElement),e.referenceElement!==void 0&&this.setReferenceElement(e.referenceElement)}get floatingElement(){return this.floatingElementRef}get referenceElement(){return this.referenceElementRef}get floatingElements(){return this.floatingElementsRef}setFloatingElement(e){this.assertSameDocument(e),this.floatingElementRef&&this.floatingElementsRef.delete(this.floatingElementRef),this.floatingElementRef=e,e&&this.floatingElementsRef.add(e)}addFloatingElement(e){this.assertSameDocument(e),this.floatingElementsRef.add(e)}removeFloatingElement(e){this.floatingElementsRef.delete(e)}setReferenceElement(e){this.assertSameDocument(e),this.referenceElementRef=e}assertSameDocument(e){Ej()&&e!==null&&e.ownerDocument!==this.ownerDocument&&N(`floating/cross-document-element`,`A floating element must share its root context's ownerDocument.`,Ut)}};Ht=`data-rdx-internal-backdrop`;me=$t(qt());zt={ownerForm:()=>null,sync:()=>{},requestSubmit:()=>{}};We=`data-rdx-scroll-locked`;fe=class{constructor(e){this.doc=e,this.lockCount=0,this.restore=null,this.release=()=>{this.lockCount!==0&&(this.lockCount-=1,this.lockCount===0&&this.restore&&(this.restore(),this.restore=null))}}acquire(){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.lock(),this.release}lock(){let e=this.doc.documentElement,t=this.doc.defaultView,r=t?t.getComputedStyle(e).overflowY:``;if(r===`hidden`||r===`clip`)this.restore=()=>{};else{let s=me.os.ios||!Yt(this.doc)?Kt(this.doc):Zt(this.doc);this.restore=s}e.setAttribute(We,``);let i=this.restore;this.restore=()=>{i(),e.removeAttribute(We)}}},$e=new WeakMap;Qt=50});export{qn as C,tr as D,tn as E,zn as O,or as S,sr as T,er as _,Je as a,me as b,Ln as c,Wn as d,Xn as f,en as g,ar as h,Gn as i,Qn as l,Zn as m,Bn as n,Jn as o,Yn as p,Et as r,Kn as s,$n as t,Tt as u,et as v,rr as w,nr as x,ir as y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$t as bj,A as Ib,An as mb,At as W,Bt as Zt,C as Gi$1,Cn as jc,Dn as ke$1,Dt as VE,E as Gu,Et as Ur,F as Jm,Fn as np,Ft as X$1,H as M,I as KC,In as nr,Jn as qy,Jt as aw,Lt as Yw,N as Iw,Nn as ng,Nt as Ws$1,Ot as Vm,Pt as Wt$1,Rn as ob,S as Ge$1,Sr as yc,T as Gn$1,Tr as zs$1,Tt as Un$1,U as Mg,Un as pb,Vn as p,W as Mn$1,Wn as pj,Wt as _k,Xt as bb,Y as Nn$1,Yn as rb,Zt as bc,_ as Eb,_n as hD,_t as Tb,an as dm,ar as ue$1,at as Pk,b as Fs$1,bt as Ti$1,c as Bs$1,cn as fE,ct as Qr$1,d as Cb,er as sw,fn as ge,g as Dj,gn as gn$1,gr as wt$1,h as Db,hn as gl,hr as wj,ht as T,in as df,ir as tp,j as Ij,kt as Vr$1,l as C,lt as RI,mr as wc,mt as Sm,nn as cr,nr as te$1,nt as Ot$1,or as va,ot as Pr,pr as wb,pt as Se$1,qn as qt$1,qt as ap,r as $r$1,s as Br$1,sr as ve$1,tn as br,tr as tb,tt as Or,ut as Re$1,vn as hb,vr as xo$1,w as Gm,wn as k$1,wr as zE,wt as Ue,x as G$1,xr as yb,xt as Tt$1,yt as Tg,z as Kn$1,zn as on,zt as Zo$1}from"./chunk-Bk32Rk5p.js";import{c as Re$2,d as oe,l as T$1,o as Ne,r as Be$1,s as R,t as $,u as ge$1}from"./chunk-FM5_LSb4.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 Yi(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 eo(t){return Qi.replace(yn,t)}function to(t){return Ki.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 mt;var Rt;var vn;var fn;var mn;var pn;var yn;var Fr;var Ki;var Qi;var Zi;var Ji;var Xi;var Sn;var je;var yt;var ke;var St;var Vr=p(()=>{Ne();Qr$1();Qr$1();xe=class{_doc;constructor(r){this._doc=r}manager},mt=(()=>{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)(Re$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 mt));this._plugins=i.slice().reverse();let o=e.find(s=>s instanceof mt);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 k$1(-5101,!1);return this._eventNameToPlugin.set(e,n),n}static ɵfac=function(n){return new(n||t)(Re$1(Rt),Re$1(Se$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,Yi(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)(Re$1(br),Re$1(np),Re$1(aw,8),Re$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%`,Ki=`_nghost-${Fr}`,Qi=`_ngcontent-${Fr}`,Zi=!0,Ji=new M(``,{factory:()=>Zi}),Xi=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 je(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 St?i.applyToHost(e):i instanceof ke&&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 St(a,u,n,this.appId,l,s,c,p,this.cssVarNamespace);break;case Gn$1.ShadowDom:return new yt(a,e,n,s,c,this.nonce,p,this.cssVarNamespace,u);case Gn$1.ExperimentalIsolatedShadowDom:return new yt(a,e,n,s,c,this.nonce,p,this.cssVarNamespace);default:o=new ke(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)(Re$1(vn),Re$1(dm),Re$1(np),Re$1(Ji),Re$1(br),Re$1(Se$1),Re$1(aw),Re$1(Kn$1,8),Re$1(Xi,8))};static ɵprov=X$1({token:t,factory:t.ɵfac})}return t})(),je=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 k$1(-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 k$1(-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$1().getGlobalEventTarget(this.doc,r),!r))throw new k$1(-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()}}};yt=class extends je{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)}},ke=class extends je{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)}},St=class extends ke{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=eo(l),this.hostAttr=to(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 io(){return $e=$e||document.head.querySelector(`base`),$e?$e.getAttribute(`href`):null}function oo(t){return new URL(t,document.baseURI).pathname}async function co(t,r,e){return wj(W({rootComponent:t},uo(r,e)))}function uo(t,r){return{platformRef:r?.platformRef,appProviders:[...go,...t?.providers??[]],platformProviders:po}}function lo(){wt.makeCurrent()}function ho(){return new Ge$1}function fo(){return Yw(document),document}var wt;var $e;var Gr;var so;var ao;var Wr;var po;var go;var Yr=p(()=>{Ne();Qr$1();Qr$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=io();return e==null?null:oo(e)}resetBaseElement(){$e=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return Re$2(document.cookie,r)}},$e=null;Gr=[`alt`,`control`,`meta`,`shift`],so={"\b":`Backspace`," ":`Tab`,"":`Delete`,"\x1B":`Escape`,Del:`Delete`,Esc:`Escape`,Left:`ArrowLeft`,Right:`ArrowRight`,Up:`ArrowUp`,Down:`ArrowDown`,Menu:`ContextMenu`,Scroll:`ScrollLock`,Win:`OS`},ao={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$1().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=so[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=ao[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)(Re$1(br))};static ɵprov=X$1({token:t,factory:t.ɵfac})}return t})();po=[{provide:sw,useValue:Be$1},{provide:tp,useValue:lo,multi:!0},{provide:br,useFactory:fo}],go=[{provide:va,useValue:`root`},{provide:Ge$1,useFactory:ho},{provide:Rt,useClass:mt,multi:!0},{provide:Rt,useClass:Wr,multi:!0},Sn,{provide:dm,useClass:mn},{provide:mn,useExisting:dm},vn,{provide:$r$1,useExisting:Sn},[]]});var Kr;var Qr=p(()=>{Yr();Ne();Qr$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)(Re$1(br))};static ɵprov=X$1({token:t,factory:t.ɵfac,providedIn:`root`})}return t})()});function ue(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 It(t){return new Promise((r,e)=>{t.pipe(bb()).subscribe({next:n=>r(n),error:n=>e(n)})})}function yo(t,r){if(t.length!==r.length)return!1;for(let e=0;e<t.length;++e)if(!G(t[e],r[e]))return!1;return!0}function G(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 So(t){return t.length>0?t[t.length-1]:null}function fe(t){return ob(t)?t:yc(t)?on(Promise.resolve(t)):tb(t)}function oi(t){return ob(t)?It(t):Promise.resolve(t)}function Bn(t,r,e){let n=t instanceof D?t:r.parseUrl(t);return Ot$1(()=>Mn(r.lastSuccessfulNavigation()?.finalUrl??new D,n,W(W({},Se),e)))}function Mn(t,r,e){return Ro[e.paths](t.root,r.root,e.matrixParams)&&si[e.queryParams](t.queryParams,r.queryParams)&&!(e.fragment===`exact`&&t.fragment!==r.fragment)}function wo(t,r){return G(t,r)}function ai(t,r,e){if(!ce(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 Co(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!(!ce(i,e)||r.hasChildren()||!bt(i,e,n))}else if(t.segments.length===e.length){if(!ce(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!ce(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 Eo(t,r){return ce(t,r)&&t.every((e,n)=>G(e.parameters,r[n].parameters))}function ce(t,r){return t.length!==r.length?!1:t.every((e,n)=>e.path===r[n].path)}function bo(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 Be(t,r){if(!t.hasChildren())return Tt(t);if(r){let e=t.children[g]?Be(t.children[g],!1):``,n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==g&&n.push(`${i}:${Be(o,!1)}`)}),n.length>0?`${e}(${n.join(`//`)})`:e}else{let e=bo(t,(n,i)=>i===g?[Be(t.children[g],!1)]:[`${i}:${Be(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 Mo(t){return encodeURI(t)}function In(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`${In(t.path)}${Io(t.parameters)}`}function Io(t){return Object.entries(t).map(([r,e])=>`;${In(r)}=${In(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 No(t){let r=t.match(Do);return r?r[0]:``}function Po(t){let r=t.match(Oo);return r?r[0]:``}function Lo(t){let r=t.match(Uo);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 xo(new m(t.segments,r))}function xo(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 D}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=jo(r);if(s.toRoot())return Cn(o,o,new m([],{}),e,n,i);let c=ko(s,o,t),a=c.processChildren?Fe(c.segmentGroup,c.index,s.commands):yi(c.segmentGroup,c.index,s.commands);return Cn(o,c.segmentGroup,a,e,n,i)}function _t(t){return typeof t==`object`&&t!=null&&!t.outlets&&!t.segmentPath}function Ge(t){return typeof t==`object`&&t!=null&&t.outlets}function Jr(t,r,e){t||=`ɵ`;let n=new D;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 D(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 jo(t){if(typeof t[0]==`string`&&t.length===1&&t[0]===`/`)return new At(!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 At(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=_t(t.commands[0])?0:1;return Ho(e,e.segments.length-1+n,t.numberOfDoubleDots)}function Ho(t,r,e){let n=t,i=r,o=e;for(;o>i;){if(o-=i,n=n.parent,!n)throw new k$1(4005,!1);i=n.segments.length}return new me(n,!1,i-o)}function $o(t){return Ge(t[0])?t[0].outlets:{[g]:t}}function yi(t,r,e){if(t??=new m([],{}),t.segments.length===0&&t.hasChildren())return Fe(t,r,e);let n=Bo(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),Fe(o,0,i)}else return n.match&&i.length===0?new m(t.segments,{}):n.match&&!t.hasChildren()?An(t,r,e):n.match?Fe(t,0,i):An(t,r,e)}function Fe(t,r,e){if(e.length===0)return new m(t.segments,{});{let n=$o(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=Fe(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 Bo(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(Ge(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 An(t,r,e){let n=t.segments.slice(0,r),i=0;for(;i<e.length;){let o=e[i];if(Ge(o)){let a=zo(o.outlets);return new m(n,a)}if(i===0&&_t(e[0])){let a=t.segments[r];n.push(new X(a.path,Xr(e[0]))),i++;continue}let s=Ge(o)?o.outlets[g]:`${o}`,c=i<e.length-1?e[i+1]:null;s&&c&&_t(c)?(n.push(new X(s,Xr(c))),i+=2):(n.push(new X(s,{})),i++)}return new m(n,{})}function zo(t){let r={};return Object.entries(t).forEach(([e,n])=>{typeof n==`string`&&(n=[n]),n!==null&&(r[e]=An(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&&G(r,e.parameters)}function Si(t){return t instanceof k&&(t.code===I.Redirect||t.code===I.SupersededByNewNavigation)}function Fo(t){return!(t instanceof Re)&&!(t instanceof we)&&!(t instanceof Ke)}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=qo(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 Qe(new P(a,[]),e)}function qo(t,r){let s=new Ce([],{},{},``,{},g,t,null,{},r);return new Ze(``,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[et]=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,G(r.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),G(r.params,e.params)||t.paramsSubject.next(e.params),yo(r.url,e.url)||t.urlSubject.next(e.url),G(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=G(t.params,r.params)&&Eo(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$1(W({},t),{children:r}):W({},t);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==g&&(e.component=Vn),e}function Go(t,r,e){let n=new Set,i=Je(t,r._root,e?e._root:void 0,n);return{newlyCreatedRoutes:n,state:new Qe(i,r)}}function Je(t,r,e,n){if(e&&t.shouldReuseRoute(r.value,e.value.snapshot)){let i=e.value;i._setPending(r.value);let o=Wo(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=>Je(t,a,void 0,n)),c}}let i=Yo(r.value);i._setPending(r.value),n.add(i);let o=r.children.map(s=>Je(t,s,void 0,n));return new P(i,o)}}function Wo(t,r,e,n){return r.children.map(i=>{for(let o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return Je(t,i,o,n);return Je(t,i,void 0,n)})}function Yo(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,I.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 Ko(t){return Ii(t)&&te(t.url)}function Ii(t){return!!t&&t[Ti]}function Qo(t,r,e){let n=t._root;return ze(n,r?r._root:null,e,[n.value])}function Zo(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 ze(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ve(r);return t.children.forEach(s=>{Jo(s,o[s.value.outlet],e,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,c])=>Ve(c,e.getContext(s),e,i)),i}function Jo(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=Xo(s,o,o.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new Ft(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?ze(t,r,c?c.children:null,n,i):ze(t,r,e,n,i),a&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new ye(c.outlet.component,s))}else s&&Ve(r,c,e,i),i.canActivateChecks.push(new Ft(n)),o.component?ze(t,null,c?c.children:null,n,i):ze(t,null,e,n,i);return i}function Xo(t,r,e){if(typeof e==`function`)return Zo$1(r._environmentInjector,()=>e(t,r));switch(e){case`pathParamsChange`:return!ce(t.url,r.url);case`pathParamsOrQueryParamsChange`:return!ce(t.url,r.url)||!G(t.queryParams,r.queryParams);case`always`:return!0;case`paramsOrQueryParamsChange`:return!On(t,r)||!G(t.queryParams,r.queryParams);default:return!On(t,r)}}function Ve(t,r,e,n){let i=ve(t),o=t.value;Object.entries(i).forEach(([s,c])=>{o.component?r?Ve(c,r.children.getContext(s),r.children,n):Ve(c,null,null,n):Ve(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 nt(t){return typeof t==`function`}function es(t){return typeof t==`boolean`}function ts(t){return t&&nt(t.canLoad)}function ns(t){return t&&nt(t.canActivate)}function rs(t){return t&&nt(t.canActivateChild)}function is(t){return t&&nt(t.canDeactivate)}function os(t){return t&&nt(t.canMatch)}function _i(t){return t instanceof Zt||t?.name===`EmptyError`}function be(){return Cb(t=>pb(t.map(r=>r.pipe(Bs$1(1),Db(Et)))).pipe(Nn$1(r=>{for(let e of r)if(e!==!0){if(e===Et)return Et;if(e===!1||ss(e))return e}return!0}),zs$1(r=>r!==Et),Bs$1(1)))}function ss(t){return te(t)||t instanceof Ee}function Ai(t){return t.aborted?tb(void 0).pipe(Bs$1(1)):new T(r=>{let e=()=>{r.next(),r.complete()};return t.addEventListener(`abort`,e),()=>t.removeEventListener(`abort`,e)})}function Di(t){return Ib(Ai(t))}function as(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$1(W({},r),{guardsResult:!0})):cs(o,e,n).pipe(Mn$1(s=>s&&es(s)?us(e,i,t):tb(s)),Nn$1(s=>G$1(W({},r),{guardsResult:s})))})}function cs(t,r,e){return on(t).pipe(Mn$1(n=>ps(n.component,n.route,e,r)),bb(n=>n!==!0,!0))}function us(t,r,e){return on(r).pipe(hb(n=>xo$1(ds(n.route.parent,e),ls(n.route,e),fs(t,n.path),hs(t,n.route))),bb(n=>n!==!0,!0))}function ls(t,r){return t!==null&&r&&r(new kt(t)),tb(!0)}function ds(t,r){return t!==null&&r&&r(new xt(t)),tb(!0)}function hs(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 fe(ns(s)?s.canActivate(r,t):Zo$1(o,()=>s(r,t))).pipe(bb())}))).pipe(be())}function fs(t,r){let e=r[r.length-1];return tb(r.slice(0,r.length-1).reverse().map(o=>Zo(o)).filter(o=>o!==null).map(o=>mb(()=>{return tb(o.guards.map(c=>{let a=o.node._environmentInjector,u=Me(c,a);return fe(rs(u)?u.canActivateChild(e,t):Zo$1(a,()=>u(e,t))).pipe(bb())})).pipe(be())}))).pipe(be())}function ps(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 fe(is(a)?a.canDeactivate(t,r,e,n):Zo$1(c,()=>a(t,r,e,n))).pipe(bb())})).pipe(be())}function gs(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=fe(ts(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 vs(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 fe(os(u)?u.canMatch(r,e,i):Zo$1(t,()=>u(r,e,i))).pipe(Di(o))})).pipe(be(),Ni(n))}function ms(t){throw new k$1(4e3,!1)}function ys(t){throw Mi(!1,I.GuardRejected)}function Ss(t,r,e){if(typeof t==`string`)return Promise.resolve(t);let n=t;return It(fe(Zo$1(e,()=>n(r))))}function Rs(t,r){return t.providers&&!t._injector&&(t._injector=bc(t.providers,r,`Route: ${t.path}`)),t._injector??r}function z(t){return t.outlet||g}function ws(t,r){let e=t.filter(n=>z(n)===r);return e.push(...t.filter(n=>z(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 Cs(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=Rs(r,n),vs(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&&Ts(t,e,n,i)?{segmentGroup:new m(r,bs(n,new m(e,t.children))),slicedSegments:[]}:e.length===0&&Ms(t,e,n)?{segmentGroup:new m(t.segments,Es(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new m(t.segments,t.children),slicedSegments:e}}function Es(t,r,e,n){let i={};for(let o of e)if(Vt(t,r,o)&&!n[z(o)]){let s=new m([],{});i[z(o)]=s}return W(W({},n),i)}function bs(t,r){let e={};e[g]=r;for(let n of t)if(n.path===``&&z(n)!==g){let i=new m([],{});e[z(n)]=i}return e}function Ts(t,r,e,n){return e.some(i=>!Vt(t,r,i)||!(z(i)!==g)?!1:!(n!==void 0&&z(i)===n))}function Ms(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 Is(t,r,e){return r.length===0&&!t.children[e]}async function _s(t,r,e,n,i,o,s,c){return new kn(t,r,e,n,i,s,o,c).recognize()}function Ds(t){t.sort((r,e)=>r.value.outlet===g?-1:e.value.outlet===g?1:r.value.outlet.localeCompare(e.value.outlet))}function Ns(t){let r=t.value.routeConfig;return r&&r.path===``}function Ui(t){let r=[],e=new Set;for(let n of t){if(!Ns(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 Os(t){return t.data||{}}function Ps(t){return t.resolve||{}}function Us(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$1(W({},c),{targetSnapshot:a,urlAfterRedirects:u})})}function Ls(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)?xs(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 xs(t,r,e){let n=t.routeConfig,i=t._resolve;return n?.title!==void 0&&!Ci(n)&&(i[et]=n.title),mb(()=>(t.data=zn(t,t.parent,e).resolve,js(i,t,r).pipe(Nn$1(o=>(t._resolvedData=o,t.data=W(W({},t.data),o),null)))))}function js(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=>_i(o)?Wt$1:rb(o)))}function ks(t,r,e){let n=r._environmentInjector,i=Me(t,n);return fe(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 ki(t,r,e,n){let o=await Hi(pj(await oi(Zo$1(e,()=>t.loadChildren())))),s;o instanceof Sm||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(rt,[],{optional:!0,self:!0}).flat()),{routes:a.map(Gn),injector:c,factory:l}}async function Hi(t){return t}function Bs(t){return t!==qe}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(zs$1(e=>e instanceof F||e instanceof k||e instanceof de||e instanceof K),Nn$1(e=>e instanceof F||e instanceof K?0:(e instanceof k?e.code===I.Redirect||e.code===I.SupersededByNewNavigation:!1)?2:1),zs$1(e=>e!==2),Bs$1(1)).subscribe(()=>{r()})}function qs(t){for(let r=0;r<t.length;r++)if(t[r]==null)throw new k$1(4008,!1)}var g;var et;var bn;var Ro;var si;var $n;var Se;var D;var m;var X;var Te;var ee;var To;var Ao;var Do;var Oo;var Uo;var _n;var At;var me;var qe;var b;var U;var le;var F;var I;var We;var k;var K;var de;var Ye;var Dt;var Nt;var Ot;var Pt;var Ut;var Lt;var xt;var jt;var kt;var Ht;var Re;var Ke;var we;var $t;var he;var Bt;var P;var Qe;var Q;var Vo;var Ce;var Ze;var Ei;var qn;var Pn;var tt;var bi;var Vn;var Ee;var Ti;var Un;var Ft;var ye;var Et;var Y;var Xe;var Ln;var xn;var jn;var As;var kn;var Wn;var Yn;var xi;var Ie;var rt;var ji;var Gt;var Hs;var $i;var $s;var Bi;var zi;var qi;var Vi;var qt;var zs;var Wt;var Fs;var pe;var Qn=p(()=>{Ne();Qr$1();Qr$1();Ws$1();ap();Qr();g=`primary`,et=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)}};Ro={exact:ai,subset:ci},si={exact:wo,subset:Co,ignored:()=>!0},$n={paths:`exact`,fragment:`ignored`,matrixParams:`ignored`,queryParams:`exact`},Se={paths:`subset`,fragment:`ignored`,matrixParams:`ignored`,queryParams:`subset`};D=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??=ue(this.queryParams),this._queryParamMap}toString(){return To.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??=ue(this.parameters),this._parameterMap}toString(){return di(this)}};Te=(()=>{class t{static ɵfac=function(n){return new(n||t)};static ɵprov=Or({token:t,factory:()=>new ee})}return t})(),ee=class{parse(r){let e=new _n(r);return new D(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){return`${`/${Be(r.root,!0)}`}${_o(r.queryParams)}${typeof r.fragment==`string`?`#${Mo(r.fragment)}`:``}`}},To=new ee;Ao=/^[^\/()?;#]+/;Do=/^[^\/()?;=#]+/;Oo=/^[^=?&#]+/;Uo=/^[^&#]+/;_n=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 k$1(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 k$1(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=No(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=Po(this.remaining);if(!e)return;this.capture(e);let n=``;if(this.consumeOptional(`=`)){let s=Lo(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 k$1(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 k$1(4011,!1)}};At=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,n){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=n,r&&n.length>0&&_t(n[0]))throw new k$1(4003,!1);let i=n.find(Ge);if(i&&i!==So(n))throw new k$1(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}};qe=`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}},le=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}')`}},F=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}')`}},I=(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})(I||{}),We=(function(t){return t[t.IgnoredSameUrlNavigation=0]=`IgnoredSameUrlNavigation`,t[t.IgnoredByUrlHandlingStrategy=1]=`IgnoredByUrlHandlingStrategy`,t})(We||{}),k=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}},de=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})`}},Ye=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||``}')`}},jt=class{snapshot;type=b.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}},kt=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{},Ke=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 he(this.rootInjector)}resetChildren(){this.children=new he(this.rootInjector)}},he=(()=>{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)(Re$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})`}};Qe=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[et]))??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=>ue(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Nn$1(r=>ue(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}_setPending(r){this._futureSnapshot=r,this.pending?.set(!0)}},Vo=`always`;Ce=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;resources;get title(){return this.data?.[et]}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??=ue(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ue(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join(`/`)}', path:'${this.routeConfig?this.routeConfig.path:``}')`}},Ze=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 Ue;deactivateEvents=new Ue;attachEvents=new Ue;detachEvents=new Ue;routerOutletData=jc();parentContexts=C(he);location=C(Gi$1);changeDetector=C(bj);inputBinder=C(tt,{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 k$1(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new k$1(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new k$1(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 k$1(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=RI({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===he?this.childContexts:r===Ei?this.outletData:this.parent.get(r,e)}},tt=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=pb([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){KC()};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 jt(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)}},Xe=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 ms(`${r.redirectTo}`);i=i.children[g]}}async applyRedirectCommands(r,e,n,i,o){let s=await Ss(e,i,o);if(s instanceof D)throw new Xe(s);let c=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),r,n);if(s[0]===`/`)throw new Xe(c);return c}applyRedirectCreateUrlTree(r,e,n,i){let o=this.createSegmentGroup(r,e.root,n,i);return new D(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 k$1(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:{}};jn=class{};As=31,kn=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 k$1(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 Ze(``,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 Xe)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=ws(e,a),p=await this.processSegmentGroup(r,l,u,a,i);s.push(...p)}let c=Ui(s);return Ds(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||_i(u))continue;throw u}if(Is(n,i,o))return new jn;throw new Y(n)}async processSegmentAgainstRoute(r,e,n,i,o,s,c,a){if(z(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,Os(e),z(e),e.component??e._loadedComponent??null,e,Ps(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 It(Cs(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:_e}=ti(e,h,y,u,o);if(_e.length===0&&ne.hasChildren()){let re=await this.processChildren(l,u,ne,H);return new P(H,re)}if(u.length===0&&_e.length===0)return new P(H,[]);let Kt=z(n)===o,it=await this.processSegment(l,u,ne,_e,Kt?g:o,!0,H);return new P(H,it instanceof P?[it]:[])}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 It(gs(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 ys(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[et]}static ɵfac=function(n){return new(n||t)};static ɵprov=Or({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)(Re$1(Kr))};static ɵprov=X$1({token:t,factory:t.ɵfac,providedIn:`root`})}return t})(),Ie=new M(``,{factory:()=>({})}),rt=new M(``),ji=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=C(_k);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(pj(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 ki(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=Or({token:t,factory:t.ɵfac})}return t})();Gt=(()=>{class t{static ɵfac=function(n){return new(n||t)};static ɵprov=Or({token:t,factory:()=>C(Hs)})}return t})(),Hs=(()=>{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=Or({token:t,factory:t.ɵfac})}return t})(),$i=new M(``),$s=()=>{},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(ji);environmentInjector=C(ue$1);destroyRef=C(ve$1);urlSerializer=C(Te);rootContexts=C(he);location=C(oe);inputBindingEnabled=C(tt,{optional:!0})!==null;titleStrategy=C(Yn);options=C(Ie,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||Vo;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$1(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(zs$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,``,I.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$1(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),``,We.IgnoredSameUrlNavigation)),a.resolve(!1),Wt$1;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return tb(a).pipe(Cb(h=>(this.events.next(new le(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),h.id!==this.navigationId?Wt$1:Promise.resolve(h))),Us(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 Ke)}),Cb(h=>on(n.routesRecognizeHandler.deferredHandle??tb(void 0)).pipe(Nn$1(()=>h))),Eb(()=>{let h=new Ye(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:_e}=a,Kt=new le(h,this.urlSerializer.serialize(y),H,ne);this.events.next(Kt);let it=Ri(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=n=G$1(W({},a),{targetSnapshot:it,urlAfterRedirects:y,extras:G$1(W({},_e),{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),``,We.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$1(W({},a),{guards:Qo(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),n}),as(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,``,I.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(Ls(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,``,I.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}=Go(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=n=a=G$1(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)}),Bs$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=$s,u)),this.lastSuccessfulNavigation.set(Tg(this.currentNavigation)),this.events.next(new F(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0))}),Ib(Ai(s.signal).pipe(zs$1(()=>!o&&i),Eb(()=>{this.cancelNavigationTransition(n,s.signal.reason+``,I.Aborted)}))),Eb({complete:()=>{o=!0}}),Ib(this.transitionAbortWithErrorSubject.pipe(Eb(a=>{throw a}))),yb(()=>{s.abort(),o||this.cancelNavigationTransition(n,``,I.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(Ii(a))this.events.next(new k(n.id,this.urlSerializer.serialize(n.extractedUrl),a.message,a.cancellationCode)),Ko(a)?this.events.next(new we(a.url,a.navigationBehaviorOptions)):n.resolve(!1);else{let u=new de(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 k(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 k(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=Or({token:t,factory:t.ɵfac})}return t})();qi=new M(``),Vi=(()=>{class t{static ɵfac=function(n){return new(n||t)};static ɵprov=Or({token:t,factory:()=>C(zs)})}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}},zs=(()=>{class t extends qt{static ɵfac=function(n){return new(n||t)};static ɵprov=Or({token:t,factory:t.ɵfac})}return t})(),Wt=(()=>{class t{urlSerializer=C(Te);options=C(Ie,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||`replace`;location=C(oe);urlHandlingStrategy=C(Gt);urlUpdateStrategy=this.options.urlUpdateStrategy||`deferred`;currentUrlTree=new D;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 D?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=Or({token:t,factory:()=>C(Fs)})}return t})(),Fs=(()=>{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 le?this.updateStateMemento():e instanceof K?this.commitTransition(n):e instanceof Ye?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 k&&!Si(e)?this.restoreHistory(n):e instanceof de?this.restoreHistory(n,!0):e instanceof F&&(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=Or({token:t,factory:t.ɵfac})}return t})();pe=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=C(fE);stateManager=C(Wt);options=C(Ie,{optional:!0})||{};pendingTasks=C(Un$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(rt,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!C(tt,{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 k&&n.code!==I.Redirect&&n.code!==I.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof F)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`||Bs(i.source)},s);this.scheduleNavigation(c,qe,null,a,i.hasUAVisualTransition,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Fo(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),qe,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$1(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,qe,null,n)}navigate(e,n={skipLocationChange:!1}){return qs(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=Or({token:t,factory:t.ɵfac})}return t})()});function Ys(t){let r=t;return!!(r.paths||r.matrixParams||r.queryParams||r.fragment)}function Qs(t,...r){return cr([{provide:rt,multi:!0,useValue:t},{provide:Q,useFactory:Zs},{provide:Vm,multi:!0,useFactory:Xs},r.map(e=>e.ɵproviders)])}function Zs(){return C(pe).routerState.root}function Js(t,r){return{ɵkind:t,ɵproviders:r}}function Xs(){let t=C(ke$1);return r=>{let e=t.get(Ur);if(r!==e.components[0])return;let n=t.get(pe),i=t.get(ea);t.get(ta)===1&&n.initialNavigation(),t.get(na,null,{optional:!0})?.setUpPreloading(),t.get(Ks,null,{optional:!0})?.init(),n.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}function ra(t={}){return Js(8,[{provide:tt,useFactory:()=>new bi(t,C(Wn,{optional:!0}))}])}var Gs;var Yt;var Ws;var Ks;var ea;var ta;var na;var Gi=p(()=>{Ne();Qr$1();Qr$1();Qn();Ws$1();ap();Gs=(()=>{class t{router=C(pe);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 F&&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 D(n)))}static ɵfac=function(n){return new(n||t)};static ɵprov=Or({token:t,factory:t.ɵfac})}return t})(),Yt=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=C(new Mg(`href`),{optional:!0});reactiveHref=Pk(()=>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(Ie,{optional:!0});reactiveRouterState=C(Gs);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=Ot$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(pe),Vr$1(Q),df(`tabindex`),Vr$1(gl),Vr$1(Pr),Vr$1(R))};static ɵdir=RI({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&&Br$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})(),Ws=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new Ue;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 F&&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):Ys(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(pe),Vr$1(Pr),Vr$1(gl),Vr$1(bj))};static ɵdir=RI({type:t,selectors:[[``,`routerLinkActive`,``]],contentQueries:function(n,i,o){if(n&1&&ng(o,Yt,5),n&2){let s;VE(s=zE())&&(i.links=s)}},inputs:{routerLinkActiveOptions:`routerLinkActiveOptions`,ariaCurrentWhenActive:`ariaCurrentWhenActive`,routerLinkActive:`routerLinkActive`},outputs:{isActiveChange:`isActiveChange`},exportAs:[`routerLinkActive`],features:[Iw]})}return t})();Ks=new M(``);ea=new M(``,{factory:()=>new ge}),ta=new M(``,{factory:()=>1}),na=new M(``)});var ia=p(()=>{Qn();Gi()});var oa;var sa;var aa;var Wi;var ca=p(()=>{Qr$1();Qr$1();oa={success:5e3,error:0},sa=4,aa=200,Wi=class t{items=wt$1([]);counter=0;toasts=this.items.asReadonly();add(r){this.counter+=1;let e=r.type??`success`,n={id:this.counter,title:r.title??null,description:r.description,type:e,timeout:r.timeout??oa[e],closing:!1},i=this.items().filter(o=>!(o.description===n.description&&o.type===n.type));return this.items.set([...i,n].slice(-sa)),n.id}success(r,e){return this.add(W({description:r,type:`success`},e===void 0?{}:{title:e}))}error(r,e){return this.add(W({description:r,type:`error`},e===void 0?{}:{title:e}))}close(r){this.items.update(e=>e.map(n=>n.id===r?G$1(W({},n),{closing:!0}):n)),setTimeout(()=>this.items.update(e=>e.filter(n=>n.id!==r)),aa)}static ɵfac=function(e){return new(e||t)};static ɵprov=X$1({token:t,factory:t.ɵfac,providedIn:`root`})}});export{Ws as a,co as c,qn as d,ra as f,Wi as i,ia as l,Qr as n,Yt as o,Qs as r,ca as s,Q as t,pe as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Cn as jc,Kt as ag,Pn as nk,Vn as p,ct as Qr,mr as wc,nt as Ot,s as Br}from"./chunk-Bk32Rk5p.js";var a;var c;var b=p(()=>{Qr();Qr();a={running:`bg-ok shadow-[0_0_0_3px_color-mix(in_oklab,var(--color-ok)_28%,transparent)]`,paused:`bg-halt`,restarting:`bg-halt`,partial:`bg-halt`,dead:`bg-danger`,created:`border-2 border-ink-400`,removing:`border-2 border-ink-400`,exited:`bg-stopped`,stopped:`bg-stopped`,down:`border-2 border-ink-400`},c=class s{state=jc.required();size=jc(`sm`);look=Ot(()=>this.state()in a?a[this.state()]:a.created);static ɵfac=function(t){return new(t||s)};static ɵcmp=wc({type:s,selectors:[[`app-state-dot`]],hostAttrs:[1,`block`,`shrink-0`,`rounded-full`],hostVars:7,hostBindings:function(t,e){t&2&&(Br(`data-state`,e.state()),nk(e.look()),ag(`size-2`,e.size()===`sm`)(`size-3`,e.size()===`md`))},inputs:{state:[1,`state`],size:[1,`size`]},decls:0,vars:0,template:function(t,e){},encapsulation:2})}});export{c as n,b as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ft as X,Vn as p,ct as Qr,gr as wt,nt as Ot}from"./chunk-Bk32Rk5p.js";var r;var l=p(()=>{Qr();Qr();r=class t{names=wt([]);loaded=!1;all=this.names.asReadonly();set=Ot(()=>new Set(this.names()));load(){this.loaded||(this.loaded=!0,window.electron.settings.get().then(e=>this.apply(e)).catch(()=>{this.loaded=!1}))}has(e){return this.set().has(e)}async mute(e,a){this.apply(await window.electron.settings.muteContainer(e,a))}async clear(){this.apply(await window.electron.settings.update({mutedContainers:[]}))}apply(e){this.names.set(e.mutedContainers)}static ɵfac=function(a){return new(a||t)};static ɵprov=X({token:t,factory:t.ɵfac,providedIn:`root`})}});export{r as n,l as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as Od,Cn as jc,D as HE,F as Jm,G as My,Gn as pk,K as Nc,Kt as ag,Ln as oS,Mn as mj,Pn as nk,Qn as sS,Tn as kE,V as Ld,Vn as p,Vt as _E,Zn as rp,_r as xc,cr as vg,ct as Qr,dt as SE,et as Oi,ft as Sc,gr as wt$1,jt as Wm,kn as lS,l as C,ln as fg,mr as wc,n as $m,nt as Ot$1,on as eH,rn as dS,s as Br,sn as ec,ur as vk,vt as Tc,w as Gm,yn as hg,yt as Tg}from"./chunk-Bk32Rk5p.js";import"./chunk-FM5_LSb4.js";import{i as Wi,l as ia,s as ca,t as Q,u as pe$1}from"./chunk-CgneC1Je.js";import{i as h,n as N,r as d}from"./chunk-FuBWiPKf.js";import{n as w,t as B}from"./chunk-D-daLnRf.js";import{n as o,t as i}from"./chunk-bj_sMiGa.js";import"./chunk-CesW8OnI.js";import"./chunk-Ds9UWi20.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-BsmS2zXP.js";import{n as p$1,t as M}from"./chunk-DwKe2pMP.js";import{n as x,t as u}from"./chunk-D5pKQvyX.js";import{n as P,t as K}from"./chunk-Ba7ROPTT.js";import{n as V,t as G}from"./chunk-CLii2-2s.js";import{n as W,t as J}from"./chunk-idasJ9ng.js";import{i as z,n as oe,r as x$1}from"./chunk-gOjj4-4k.js";import{a as oe$1,i as ie$1,o as ye,r as ae,t as Ce}from"./chunk-BFq6LhBl.js";import{n as m,r as s,t as f}from"./chunk-ux3iG9S52.js";function Qe(o,t){if(o&1){let e=_E();Oi(0,`label`,12)(1,`input`,20),Jm(`change`,function(){let a=Ld(e).$implicit;return Od(HE(2).kind.set(a.kind))}),Nc(),Oi(2,`span`)(3,`span`,21),pk(4),Nc(),Oi(5,`span`,22),pk(6),Nc()()()}if(o&2){let e=t.$implicit,n=HE(2);ec(),Wm(`value`,e.kind)(`checked`,n.kind()===e.kind)(`disabled`,n.busy()),ec(3),fg(e.label),ec(2),fg(e.hint)}}function Ge(o,t){if(o&1){let e=_E();Oi(0,`label`,8)(1,`span`,9),pk(2),Nc(),Oi(3,`input`,23),Jm(`input`,function(a){Ld(e);return Od(HE(2).path.set(a.target.value))}),Nc(),Oi(4,`span`,24),pk(5),Nc()()}if(o&2){let e=HE(2);ec(2),fg(e.t().folderLabel),ec(),nk(e.field),Wm(`value`,e.path())(`disabled`,e.busy()),ec(2),fg(e.t().folderHint)}}function Je(o,t){if(o&1){let e=_E();Oi(0,`label`,8)(1,`span`,9),pk(2),Nc(),Oi(3,`input`,25),Jm(`input`,function(a){Ld(e);return Od(HE(2).server.set(a.target.value))}),Nc()(),Oi(4,`label`,8)(5,`span`,9),pk(6),Nc(),Oi(7,`input`,26),Jm(`input`,function(a){Ld(e);return Od(HE(2).path.set(a.target.value))}),Nc(),Oi(8,`span`,24),pk(9),Nc()()}if(o&2){let e=HE(2);ec(2),fg(e.t().nfsServerLabel),ec(),nk(e.field),Wm(`value`,e.server())(`disabled`,e.busy()),ec(3),fg(e.t().nfsPathLabel),ec(),nk(e.field),Wm(`value`,e.path())(`disabled`,e.busy()),ec(2),fg(e.t().nfsHint)}}function Xe(o,t){if(o&1){let e=_E();Oi(0,`details`,13)(1,`summary`,27),pk(2),Nc(),Oi(3,`label`,28)(4,`span`,9),pk(5),Nc(),Oi(6,`input`,29),Jm(`input`,function(a){Ld(e);return Od(HE(2).driver.set(a.target.value))}),Nc(),Oi(7,`span`,24),pk(8),Nc()()()}if(o&2){let e=HE(2);Wm(`open`,e.driver()!==`local`),ec(2),fg(e.t().advanced),ec(3),fg(e.t().driverLabel),ec(),nk(e.field),Wm(`value`,e.driver())(`disabled`,e.busy()),ec(2),fg(e.t().driverHint)}}function Ye(o,t){o&1&&(Oi(0,`p`,14),pk(1),Nc()),o&2&&(ec(),fg(t))}function Ze(o,t){if(o&1){let e=_E();Gm(0,`div`,2),Oi(1,`div`,3)(2,`div`,4)(3,`h2`,5),pk(4),Nc(),Oi(5,`p`,6),pk(6),Nc(),Oi(7,`form`,7),Jm(`submit`,function(a){Ld(e);return Od(HE().submit(a))}),Oi(8,`label`,8)(9,`span`,9),pk(10),Nc(),Oi(11,`input`,10),Jm(`input`,function(a){Ld(e);return Od(HE().name.set(a.target.value))}),Nc()(),Oi(12,`fieldset`)(13,`legend`,9),pk(14),Nc(),Oi(15,`div`,11),Sc(16,Qe,7,5,`label`,12,qe),Nc()(),kE(18,Ge,6,6,`label`,8)(19,Je,10,11)(20,Xe,9,8,`details`,13),kE(21,Ye,2,1,`p`,14),Oi(22,`div`,15)(23,`button`,16),Gm(24,`app-icon`,17),pk(25),Nc(),Oi(26,`button`,18),Gm(27,`app-icon`,19),pk(28),Nc()()()()()}if(o&2){let e,n,a=HE();ec(4),fg(a.t().title),ec(2),fg(a.t().description),ec(4),fg(a.t().nameLabel),ec(),nk(a.field),Wm(`placeholder`,a.t().namePlaceholder)(`value`,a.name())(`disabled`,a.busy()),ec(3),fg(a.t().storageLabel),ec(2),Tc(a.kinds()),ec(2),SE((e=a.kind())===`folder`?18:e===`nfs`?19:20),ec(3),SE((n=a.problem())?21:-1,n),ec(3),Wm(`size`,14),ec(),xc(` `,a.common().cancel,` `),ec(),Wm(`disabled`,!a.canSubmit()),ec(),Wm(`size`,14),ec(),xc(` `,a.busy()?a.t().creating:a.t().submit,` `)}}var qe;var et;var re;var Me=p(()=>{Qr();Je$1();B();dS();sS();Qr();qe=(o,t)=>t.kind;et=`mx-focus mt-1 w-full rounded-md border border-ink-700 bg-ink-800 px-3 py-1.5 text-[13px] text-ink-100 placeholder:text-ink-500`,re=class o{store=C(w);open=mj(!1);t=Ot$1(()=>oS().volumes.createDialog);common=Ot$1(()=>oS().common);field=et;kinds=Ot$1(()=>{let t=this.t();return[{kind:`docker`,label:t.storage.docker,hint:t.storage.dockerHint},{kind:`folder`,label:t.storage.folder,hint:t.storage.folderHint},{kind:`nfs`,label:t.storage.nfs,hint:t.storage.nfsHint}]});name=wt$1(``);kind=wt$1(`docker`);driver=wt$1(`local`);path=wt$1(``);server=wt$1(``);busy=wt$1(!1);problem=wt$1(null);storage=Ot$1(()=>{let t=this.path().trim();switch(this.kind()){case`docker`:return this.driver().trim()===``?null:{kind:`docker`,driver:this.driver().trim()};case`folder`:return t===``?null:{kind:`folder`,path:t};case`nfs`:return t===``||this.server().trim()===``?null:{kind:`nfs`,server:this.server().trim(),path:t}}});canSubmit=Ot$1(()=>!this.busy()&&this.name().trim()!==``&&this.storage()!==null);constructor(){rp(()=>{this.open()&&Tg(()=>{this.name.set(``),this.kind.set(`docker`),this.driver.set(`local`),this.path.set(``),this.server.set(``),this.problem.set(null)})})}submit(t){t.preventDefault();let e=this.storage();!this.canSubmit()||e===null||(this.busy.set(!0),this.problem.set(null),this.store.create({name:this.name().trim(),storage:e}).then(n=>{this.problem.set(n),n===null&&this.open.set(!1)}).finally(()=>this.busy.set(!1)))}static ɵfac=function(e){return new(e||o)};static ɵcmp=wc({type:o,selectors:[[`app-create-volume-dialog`]],inputs:{open:[1,`open`]},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`,``,1,`w-full`,`max-w-md`,`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`,`space-y-3`,3,`submit`],[1,`block`],[1,`text-[12px]`,`text-ink-400`],[`type`,`text`,`autocomplete`,`off`,`spellcheck`,`false`,3,`input`,`placeholder`,`value`,`disabled`],[1,`mt-1`,`space-y-1`],[1,`flex`,`cursor-pointer`,`items-start`,`gap-2`,`rounded-md`,`px-2`,`py-1.5`,`hover:bg-ink-800`],[1,`text-[12px]`,`text-ink-400`,3,`open`],[`role`,`alert`,1,`text-[13px]`,`text-danger`],[1,`flex`,`justify-end`,`gap-2`,`pt-2`],[`type`,`button`,`rdxDialogClose`,``,1,`mx-btn`,`mx-focus`],[`name`,`close`,3,`size`],[`type`,`submit`,1,`mx-btn`,`mx-focus`,3,`disabled`],[`name`,`plus`,3,`size`],[`type`,`radio`,`name`,`volume-storage`,1,`mt-0.5`,`accent-accent`,3,`change`,`value`,`checked`,`disabled`],[1,`block`,`text-[13px]`,`text-ink-100`],[1,`block`,`text-[12px]`,`text-ink-500`],[`type`,`text`,`placeholder`,`/srv/data`,`autocomplete`,`off`,`spellcheck`,`false`,3,`input`,`value`,`disabled`],[1,`mt-1`,`block`,`text-[12px]`,`text-ink-500`],[`type`,`text`,`placeholder`,`nas.local`,`autocomplete`,`off`,`spellcheck`,`false`,3,`input`,`value`,`disabled`],[`type`,`text`,`placeholder`,`/volume1/data`,`autocomplete`,`off`,`spellcheck`,`false`,3,`input`,`value`,`disabled`],[1,`cursor-pointer`,`select-none`],[1,`mt-2`,`block`],[`type`,`text`,`autocomplete`,`off`,`spellcheck`,`false`,3,`input`,`value`,`disabled`]],template:function(e,n){e&1&&(Oi(0,`div`,0),vg(`openChange`,function(s){return vk(n.open,s)||(n.open=s),s}),$m(1,Ze,29,16,`ng-template`,1),Nc()),e&2&&hg(`open`,n.open)},dependencies:[ie,ln,an,pn,cn,fn,dn,un,My],encapsulation:2})}});function it(o,t){if(o&1&&(Oi(0,`span`,24),pk(1),Nc()),o&2){let e=HE().$implicit;ec(),fg(e.label)}}function ot(o,t){o&1&&(Oi(0,`span`,26),pk(1,`/`),Nc())}function at(o,t){if(o&1){let e=_E();Oi(0,`button`,25),Jm(`click`,function(){Ld(e);let a=HE().$implicit;return Od(HE(2).go(a.path))}),pk(1),Nc(),kE(2,ot,2,0,`span`,26)}if(o&2){let e=HE().$implicit;ec(),xc(` `,e.label,` `),ec(),SE(e.path!==`/`?2:-1)}}function rt(o,t){if(o&1&&kE(0,it,2,1,`span`,24)(1,at,3,2),o&2){let e=t.$index,n=t.$count;SE(e===n-1?0:1)}}function lt(o,t){o&1&&(Oi(0,`p`,18),pk(1),Nc()),o&2&&(ec(),fg(t))}function st(o,t){if(o&1&&(Oi(0,`p`,19),pk(1),Nc()),o&2){let e=HE(2);ec(),fg(e.t().loading)}}function dt(o,t){if(o&1&&(Oi(0,`p`,19),pk(1),Nc()),o&2){let e=HE(2);ec(),fg(e.t().empty)}}function pt(o,t){if(o&1){let e=_E();Oi(0,`button`,35),Jm(`click`,function(){Ld(e);let a=HE().$implicit,s=HE(3);return Od(s.go(s.childOf(a)))}),pk(1),Nc()}if(o&2){let e=HE().$implicit;ec(),xc(` `,e.name,` `)}}function mt(o,t){if(o&1){let e=_E();Oi(0,`button`,30),Jm(`click`,function(){Ld(e);let a=HE(2).$implicit;return Od(HE(3).edit(a))}),Gm(1,`app-icon`,38),Nc()}if(o&2){let e=HE(2).$implicit,n=HE(3);Wm(`disabled`,n.busy()),Br(`aria-label`,n.t().edit(e.name))(`data-testid`,`volume-edit-`+e.name),ec(),Wm(`size`,14)}}function ct(o,t){if(o&1&&(Oi(0,`span`,36),pk(1),Nc(),kE(2,mt,2,4,`button`,37)),o&2){let e=HE().$implicit;ec(),fg(e.name),ec(),SE(e.kind===`file`?2:-1)}}function ut(o,t){if(o&1){let e=_E();Oi(0,`li`,27),Gm(1,`app-icon`,28),kE(2,pt,2,1,`button`,29)(3,ct,3,2),Oi(4,`button`,30),Jm(`click`,function(){let a=Ld(e).$implicit;return Od(HE(3).download(a))}),Gm(5,`app-icon`,31),Nc(),Oi(6,`button`,30),Jm(`click`,function(){let a=Ld(e).$implicit;return Od(HE(3).ops.startRename(a))}),Gm(7,`app-icon`,32),Nc(),Oi(8,`button`,33),Jm(`click`,function(){let a=Ld(e).$implicit;return Od(HE(3).ops.startRemove(a))}),Gm(9,`app-icon`,34),Nc()()}if(o&2){let e=t.$implicit,n=HE(3);ec(),ag(`text-accent`,e.kind===`dir`)(`text-ink-500`,e.kind===`file`),Wm(`name`,e.kind===`dir`?`folder`:`file`)(`size`,15),ec(),SE(e.kind===`dir`?2:3),ec(2),Wm(`disabled`,n.busy()),Br(`aria-label`,e.kind===`dir`?n.fileOps().downloadFolder(e.name):n.fileOps().downloadFile(e.name))(`data-testid`,`volume-download-`+e.name),ec(),Wm(`size`,14),ec(),Wm(`disabled`,n.busy()),Br(`aria-label`,n.fileOps().rename(e.name))(`data-testid`,`volume-rename-`+e.name),ec(),Wm(`size`,14),ec(),Wm(`disabled`,n.busy()),Br(`aria-label`,n.fileOps().removeOf(e.name))(`data-testid`,`volume-remove-`+e.name),ec(),Wm(`size`,14)}}function gt(o,t){if(o&1&&(Oi(0,`ul`,20),Sc(1,ut,10,19,`li`,27,nt),Nc()),o&2){let e=HE(2);ec(),Tc(e.entries())}}function _t(o,t){if(o&1){let e=_E();Gm(0,`div`,3),Oi(1,`div`,4)(2,`div`,5)(3,`h2`,6),pk(4),Nc(),Oi(5,`p`,7),pk(6),Nc(),Oi(7,`div`,8)(8,`button`,9),Jm(`click`,function(){Ld(e);let a=HE();return Od(a.go(a.parentOf(a.path())))}),Gm(9,`app-icon`,10),Nc(),Oi(10,`nav`,11),Sc(11,rt,2,1,null,null,tt),Nc(),Oi(13,`button`,12),Jm(`click`,function(){Ld(e);return Od(HE().chooseAndUpload())}),Gm(14,`app-icon`,13),pk(15),Nc(),Oi(16,`button`,14),Jm(`click`,function(){Ld(e);return Od(HE().ops.startCreate())}),Gm(17,`app-icon`,15),Nc()(),Oi(18,`div`,16),Gm(19,`app-file-ops-bar`,17),Nc(),kE(20,lt,2,1,`p`,18)(21,st,2,1,`p`,19)(22,dt,2,1,`p`,19)(23,gt,3,0,`ul`,20),Oi(24,`div`,21)(25,`button`,22),Gm(26,`app-icon`,23),pk(27),Nc()()()()}if(o&2){let e,n=HE();ec(4),fg(n.t().title(n.volume())),ec(2),fg(n.t().description),ec(2),Wm(`disabled`,n.path()===`/`||n.busy()),Br(`aria-label`,n.t().up),ec(),Wm(`size`,14),ec(),Br(`aria-label`,n.t().path),ec(),Tc(n.crumbs()),ec(2),Wm(`disabled`,n.busy()),ec(),Wm(`size`,14),ec(),xc(` `,n.t().upload,` `),ec(),Wm(`title`,n.fileOps().newFolder)(`disabled`,n.busy()),Br(`aria-label`,n.fileOps().newFolder),ec(),Wm(`size`,14),ec(2),Wm(`ops`,n.ops),ec(),SE((e=n.problem())?20:n.busy()?21:n.entries().length===0?22:23,e),ec(6),Wm(`size`,14),ec(),xc(` `,n.common().close,` `)}}var tt;var nt;var de;var Ie=p(()=>{Qr();Je$1();lS();dS();ca();sS();ye();Ce();Qr();tt=(o,t)=>t.path,nt=(o,t)=>t.name;de=class o{open=mj(!1);volume=jc.required();t=Ot$1(()=>oS().volumes.browse);common=Ot$1(()=>oS().common);toast=C(Wi);fileOps=Ot$1(()=>oS().containers.fileOps);ops=new oe$1(()=>({kind:`volume`,name:this.volume()}),()=>this.path(),this.toast,()=>this.load(this.volume()));editOpen=wt$1(!1);editPath=wt$1(``);editSource=Ot$1(()=>({kind:`volume`,name:this.volume()}));editing=!1;path=wt$1(`/`);entries=wt$1([]);busy=wt$1(!1);problem=wt$1(null);crumbs=Ot$1(()=>{let t=this.path().split(`/`).filter(e=>e!==``);return[{label:`/`,path:`/`},...t.map((e,n)=>({label:e,path:`/${t.slice(0,n+1).join(`/`)}`}))]});constructor(){rp(()=>{let t=this.open(),e=this.volume();Tg(()=>{t?(this.editing?this.editing=!1:this.path.set(`/`),this.load(e)):this.editing||window.electron.volumes.closeBrowser().catch(()=>{})})}),rp(()=>{!this.editOpen()&&this.editing&&Tg(()=>this.open.set(!0))})}edit(t){this.editPath.set(this.childOf(t)),this.editing=!0,this.open.set(!1),this.editOpen.set(!0)}async chooseAndUpload(){let t=this.path();this.busy.set(!0);try{let e=await window.electron.volumes.chooseAndUpload(this.volume(),t);e.ok?e.count>0&&this.toast.success(this.t().uploaded(e.count,t)):this.toast.error(e.problem)}catch(e){this.toast.error(eH(e))}finally{this.busy.set(!1)}await this.load(this.volume())}async download(t){try{let e=await window.electron.volumes.download(this.volume(),this.childOf(t),t.kind);e.ok?e.savedTo!==null&&this.toast.success(oS().containers.files.savedAs(e.savedTo)):this.toast.error(e.problem)}catch(e){this.toast.error(eH(e))}}go(t){this.ops.cancel(),this.path.set(t),this.load(this.volume())}parentOf(t){return`/${t.split(`/`).filter(n=>n!==``).slice(0,-1).join(`/`)}`}childOf(t){let e=this.path();return e.endsWith(`/`)?`${e}${t.name}`:`${e}/${t.name}`}async load(t){this.busy.set(!0);try{let e=await window.electron.volumes.browse(t,this.path());this.path.set(e.path),e.ok?(this.entries.set(e.entries),this.problem.set(null)):(this.entries.set([]),this.problem.set(e.problem))}catch(e){this.entries.set([]),this.problem.set(eH(e))}finally{this.busy.set(!1)}}static ɵfac=function(e){return new(e||o)};static ɵcmp=wc({type:o,selectors:[[`app-volume-browser-dialog`]],inputs:{open:[1,`open`],volume:[1,`volume`]},outputs:{open:`openChange`},decls:3,vars:4,consts:[[`rdxDialogRoot`,``,3,`openChange`,`open`],[`rdxDialogPortal`,``],[3,`openChange`,`open`,`source`,`path`],[`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`,`volume-browser-dialog`,1,`flex`,`max-h-[85vh]`,`w-full`,`max-w-2xl`,`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`,`items-center`,`gap-2`],[`type`,`button`,`data-testid`,`volume-up`,1,`mx-btn`,`mx-focus`,3,`click`,`disabled`],[`name`,`arrow-up`,3,`size`],[1,`flex`,`min-w-0`,`flex-1`,`flex-wrap`,`items-center`,`font-mono`,`text-[12px]`],[`type`,`button`,`data-testid`,`volume-upload`,1,`mx-btn`,`mx-focus`,`shrink-0`,3,`click`,`disabled`],[`name`,`upload`,3,`size`],[`type`,`button`,`data-testid`,`volume-new-folder`,1,`mx-btn`,`mx-focus`,`shrink-0`,3,`click`,`title`,`disabled`],[`name`,`folder-plus`,3,`size`],[1,`mt-3`,`shrink-0`],[3,`ops`],[1,`mt-3`,`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`],[`data-testid`,`volume-list`,1,`mt-3`,`min-h-0`,`flex-1`,`divide-y`,`divide-ink-800`,`overflow-auto`,`text-[13px]`],[1,`mt-4`,`flex`,`justify-end`],[`type`,`button`,`rdxDialogClose`,``,1,`mx-btn`,`mx-focus`],[`name`,`close`,3,`size`],[`aria-current`,`location`,1,`text-ink-100`],[`type`,`button`,1,`mx-focus`,`cursor-pointer`,`text-ink-400`,`hover:text-ink-100`,3,`click`],[1,`px-1`,`text-ink-600`],[1,`group`,`flex`,`items-center`,`gap-2`,`py-1.5`],[3,`name`,`size`],[`type`,`button`,1,`mx-focus`,`min-w-0`,`flex-1`,`cursor-pointer`,`truncate`,`text-left`,`text-ink-100`,`hover:underline`],[`type`,`button`,1,`mx-focus`,`cursor-pointer`,`rounded`,`p-1`,`text-ink-500`,`opacity-0`,`group-hover:opacity-100`,`focus:opacity-100`,`hover:text-ink-100`,3,`click`,`disabled`],[`name`,`download`,3,`size`],[`name`,`rename`,3,`size`],[`type`,`button`,1,`mx-focus`,`cursor-pointer`,`rounded`,`p-1`,`text-ink-500`,`opacity-0`,`group-hover:opacity-100`,`focus:opacity-100`,`hover:text-danger`,3,`click`,`disabled`],[`name`,`trash`,3,`size`],[`type`,`button`,1,`mx-focus`,`min-w-0`,`flex-1`,`cursor-pointer`,`truncate`,`text-left`,`text-ink-100`,`hover:underline`,3,`click`],[1,`min-w-0`,`flex-1`,`truncate`,`text-ink-200`],[`type`,`button`,1,`mx-focus`,`cursor-pointer`,`rounded`,`p-1`,`text-ink-500`,`opacity-0`,`group-hover:opacity-100`,`focus:opacity-100`,`hover:text-ink-100`,3,`disabled`],[`name`,`pencil`,3,`size`]],template:function(e,n){e&1&&(Oi(0,`div`,0),vg(`openChange`,function(s){return vk(n.open,s)||(n.open=s),s}),$m(1,_t,28,17,`ng-template`,1),Nc(),Oi(2,`app-edit-file-dialog`,2),vg(`openChange`,function(s){return vk(n.editOpen,s)||(n.editOpen=s),s}),Nc()),e&2&&(hg(`open`,n.open),ec(2),hg(`open`,n.editOpen),Wm(`source`,n.editSource())(`path`,n.editPath()))},dependencies:[ie,ln,an,pn,cn,fn,dn,ie$1,ae,un,My],encapsulation:2})}});function yt(o,t){if(o&1&&(Oi(0,`p`,10),pk(1),Nc()),o&2){let e=HE(2);ec(),fg(e.t().taken)}}function xt(o,t){if(o&1&&(Oi(0,`p`,11),pk(1),Nc()),o&2){let e=HE(2);ec(),xc(` `,e.t().running(e.running().join(`, `)),` `)}}function ft(o,t){if(o&1&&(Oi(0,`p`,12),pk(1),Nc()),o&2){let e=HE(2);ec(),fg(e.t().stopped(e.users().join(`, `)))}}function bt(o,t){o&1&&(Oi(0,`p`,13),pk(1),Nc()),o&2&&(ec(),fg(t))}function vt(o,t){if(o&1){let e=_E();Gm(0,`div`,2),Oi(1,`div`,3)(2,`div`,4)(3,`h2`,5),pk(4),Nc(),Oi(5,`p`,6),pk(6),Nc(),Oi(7,`label`,7)(8,`span`,8),pk(9),Nc(),Oi(10,`input`,9),Jm(`input`,function(a){Ld(e);return Od(HE().target.set(a.target.value))}),Nc()(),kE(11,yt,2,1,`p`,10),kE(12,xt,2,1,`p`,11)(13,ft,2,1,`p`,12),kE(14,bt,2,1,`p`,13),Oi(15,`div`,14)(16,`button`,15),Gm(17,`app-icon`,16),pk(18),Nc(),Oi(19,`button`,17),Jm(`click`,function(){Ld(e);return Od(HE().copy())}),Gm(20,`app-icon`,18),pk(21),Nc()()()()}if(o&2){let e,n=HE();ec(4),fg(n.t().title(n.volume())),ec(2),fg(n.t().description),ec(3),fg(n.t().name),ec(),nk(n.field+` mt-1.5`),Wm(`value`,n.target()),ec(),SE(n.taken()?11:-1),ec(),SE(n.running().length>0?12:n.users().length>0?13:-1),ec(2),SE((e=n.problem())?14:-1,e),ec(3),Wm(`size`,14),ec(),xc(` `,n.common().close,` `),ec(),Wm(`disabled`,n.copying()||n.taken()||n.target().trim()===``),ec(),Wm(`size`,14),ec(),xc(` `,n.copying()?n.t().copying:n.t().copy,` `)}}var ht;var pe;var Be=p(()=>{Qr();Je$1();lS();B();sS();dS();ca();Qr();ht=`mx-focus w-full rounded-md border border-ink-700 bg-ink-800 px-2.5 py-1.5 font-mono text-[13px] text-ink-100 placeholder:text-ink-500`,pe=class o{open=mj(!1);volume=jc.required();store=C(w);toast=C(Wi);t=Ot$1(()=>oS().volumes.copy);common=Ot$1(()=>oS().common);field=ht;target=wt$1(``);copying=wt$1(!1);problem=wt$1(null);userList=wt$1([]);running=Ot$1(()=>this.userList().filter(t=>t.running).map(t=>t.name));users=Ot$1(()=>this.userList().map(t=>t.name));taken=Ot$1(()=>this.store.volumes().some(t=>t.name===this.target().trim()));constructor(){rp(()=>{if(!this.open())return;let t=this.volume();Tg(()=>{this.target.set(`${t}-kopie`),this.problem.set(null),this.loadUsers(t)})})}async copy(){let t=this.target().trim();this.copying.set(!0),this.problem.set(null);try{let e=await window.electron.volumes.copy(this.volume(),t);e.ok?(this.toast.success(this.t().copied(this.volume(),t)),this.store.refresh(),this.open.set(!1)):this.problem.set(e.problem)}catch(e){this.problem.set(eH(e))}finally{this.copying.set(!1)}}async loadUsers(t){this.userList.set([]);try{this.userList.set(await window.electron.volumes.users(t))}catch{}}static ɵfac=function(e){return new(e||o)};static ɵcmp=wc({type:o,selectors:[[`app-copy-volume-dialog`]],inputs:{open:[1,`open`],volume:[1,`volume`]},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`,`copy-volume-dialog`,1,`w-full`,`max-w-md`,`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`,`block`],[1,`text-[13px]`,`font-medium`,`text-ink-200`],[`type`,`text`,`spellcheck`,`false`,`autocomplete`,`off`,`data-testid`,`copy-volume-name`,3,`input`,`value`],[`data-testid`,`copy-volume-taken`,1,`mt-2`,`text-[12px]`,`text-danger`],[`data-testid`,`copy-volume-running`,1,`mt-3`,`rounded-md`,`border`,`border-warn/40`,`bg-warn/10`,`px-3`,`py-2`,`text-[12px]`,`text-ink-200`],[1,`mt-3`,`text-[12px]`,`text-ink-500`],[`role`,`alert`,1,`mt-3`,`rounded-md`,`border`,`border-danger/40`,`bg-danger/10`,`px-3`,`py-2`,`text-[13px]`,`text-danger`],[1,`mt-5`,`flex`,`items-center`,`justify-end`,`gap-2`],[`type`,`button`,`rdxDialogClose`,``,1,`mx-btn`,`mx-focus`],[`name`,`close`,3,`size`],[`type`,`button`,`data-testid`,`copy-volume-save`,1,`mx-btn`,`mx-focus`,`border-accent`,`text-accent`,3,`click`,`disabled`],[`name`,`copy`,3,`size`]],template:function(e,n){e&1&&(Oi(0,`div`,0),vg(`openChange`,function(s){return vk(n.open,s)||(n.open=s),s}),$m(1,vt,22,14,`ng-template`,1),Nc()),e&2&&hg(`open`,n.open)},dependencies:[ie,ln,an,pn,cn,fn,dn,un,My],encapsulation:2})}});function kt(o,t){if(o&1){let e=_E();Oi(0,`label`,10)(1,`input`,28),Jm(`change`,function(){let a=Ld(e).$implicit;return Od(HE(2).every.set(a.value))}),Nc(),pk(2),Nc()}if(o&2){let e=t.$implicit,n=HE(2);ec(),Wm(`checked`,n.every()===e.value),Br(`data-testid`,`backup-every-`+e.value),ec(),xc(` `,e.label,` `)}}function wt(o,t){if(o&1){let e=_E();Oi(0,`label`,19)(1,`input`,29),Jm(`change`,function(){let a=Ld(e).$implicit;return Od(HE(2).whenInUse.set(a.value))}),Nc(),Oi(2,`span`),pk(3),Oi(4,`span`,30),pk(5),Nc()()()}if(o&2){let e=t.$implicit,n=HE(2);ec(),Wm(`checked`,n.whenInUse()===e.value),Br(`data-testid`,`backup-in-use-`+e.value),ec(2),xc(` `,e.label,` `),ec(2),fg(e.hint)}}function Ct(o,t){if(o&1&&(Oi(0,`p`,31),pk(1),Nc()),o&2){let e=t;nk(e.tone),ec(),fg(e.text)}}function Dt(o,t){o&1&&(Oi(0,`p`,21),pk(1),Nc()),o&2&&(ec(),fg(t))}function Vt(o,t){if(o&1){let e=_E();Oi(0,`button`,32),Jm(`click`,function(){Ld(e);return Od(HE(2).remove())}),Gm(1,`app-icon`,33),pk(2),Nc()}if(o&2){let e=HE(2);Wm(`disabled`,e.busy()),ec(),Wm(`size`,14),ec(),xc(` `,e.t().remove,` `)}}function St(o,t){if(o&1){let e=_E();Gm(0,`div`,2),Oi(1,`div`,3)(2,`div`,4)(3,`h2`,5),pk(4),Nc(),Oi(5,`p`,6),pk(6),Nc(),Oi(7,`fieldset`,7)(8,`legend`,8),pk(9),Nc(),Oi(10,`div`,9),Sc(11,kt,3,3,`label`,10,Ne),Nc()(),Oi(13,`div`,7)(14,`span`,8),pk(15),Nc(),Oi(16,`div`,11)(17,`span`,12),pk(18),Nc(),Oi(19,`button`,13),Jm(`click`,function(){Ld(e);return Od(HE().chooseFolder())}),Gm(20,`app-icon`,14),pk(21),Nc()()(),Oi(22,`label`,15)(23,`span`,16),pk(24),Nc(),Oi(25,`input`,17),Jm(`input`,function(a){Ld(e);return Od(HE().keep.set(+a.target.value))}),Nc()(),Oi(26,`fieldset`,7)(27,`legend`,8),pk(28),Nc(),Oi(29,`div`,18),Sc(30,wt,6,4,`label`,19,Ne),Nc()(),kE(32,Ct,2,3,`p`,20),kE(33,Dt,2,1,`p`,21),Oi(34,`div`,22),kE(35,Vt,3,3,`button`,23),Oi(36,`button`,24),Gm(37,`app-icon`,25),pk(38),Nc(),Oi(39,`button`,26),Jm(`click`,function(){Ld(e);return Od(HE().save())}),Gm(40,`app-icon`,27),pk(41),Nc()()()()}if(o&2){let e,n,a=HE();ec(4),fg(a.t().title(a.volume())),ec(2),fg(a.t().description),ec(3),fg(a.t().every),ec(2),Tc(a.everyOptions()),ec(4),fg(a.t().folder),ec(2),ag(`text-ink-500`,a.folder()===``)(`text-ink-100`,a.folder()!==``),Wm(`title`,a.folder()),ec(),xc(` `,a.folder()===``?a.t().noFolder:a.folder(),` `),ec(2),Wm(`size`,14),ec(),xc(` `,a.t().chooseFolder,` `),ec(3),fg(a.t().keep),ec(),nk(a.field+` w-20`),Wm(`value`,a.keep()),ec(3),fg(a.t().inUse),ec(2),Tc(a.inUseOptions()),ec(2),SE((e=a.outcome())?32:-1,e),ec(),SE((n=a.problem())?33:-1,n),ec(2),SE(a.existing()?35:-1),ec(2),Wm(`size`,14),ec(),xc(` `,a.common().cancel,` `),ec(),Wm(`disabled`,a.busy()||!a.valid()),ec(),Wm(`size`,14),ec(),xc(` `,a.t().save,` `)}}var Ne;var Et;var me;var Pe=p(()=>{Qr();Je$1();lS();m();sS();dS();ca();Qr();Ne=(o,t)=>t.value;Et=`mx-focus rounded-md border border-ink-700 bg-ink-800 px-2.5 py-1.5 font-mono text-[13px] text-ink-100`,me=class o{open=mj(!1);volume=jc.required();store=C(s);toast=C(Wi);t=Ot$1(()=>oS().volumes.schedule);common=Ot$1(()=>oS().common);field=Et;every=wt$1(`day`);folder=wt$1(``);keep=wt$1(7);whenInUse=wt$1(`skip`);busy=wt$1(!1);problem=wt$1(null);users=wt$1([]);existing=Ot$1(()=>this.store.byVolume().get(this.volume())??null);valid=Ot$1(()=>this.folder()!==``&&Number.isInteger(this.keep())&&this.keep()>=1&&this.keep()<=100);everyOptions=Ot$1(()=>[{value:`day`,label:this.t().daily},{value:`week`,label:this.t().weekly}]);inUseOptions=Ot$1(()=>{let t=this.t(),e=this.users().map(n=>n.name);return[{value:`skip`,label:t.skip,hint:t.skipHint},{value:`pause`,label:t.pause,hint:e.length===0?t.pauseHintNone:t.pauseHint(e.join(`, `))}]});outcome=Ot$1(()=>{let t=this.existing()?.lastOutcome??null,e=this.t();if(t===null)return null;let n=f(t.at);return t.kind===`ok`?{text:e.lastOk(n,t.file),tone:`text-ink-400`}:t.kind===`skipped`?{text:e.lastSkipped(n,t.users.join(`, `)),tone:`text-warn`}:{text:e.lastFailed(n,t.problem),tone:`text-danger`}});constructor(){rp(()=>{if(!this.open())return;let t=this.volume();Tg(()=>{let e=this.existing();this.every.set(e?.every??`day`),this.folder.set(e?.folder??``),this.keep.set(e?.keep??7),this.whenInUse.set(e?.whenInUse??`skip`),this.problem.set(null),this.users.set([]),window.electron.volumes.users(t).then(n=>this.users.set(n)).catch(()=>{})})})}async chooseFolder(){try{let t=await window.electron.volumes.chooseBackupFolder();t!==null&&this.folder.set(t)}catch(t){this.problem.set(eH(t))}}async save(){this.busy.set(!0),this.problem.set(null);try{await this.store.set({volume:this.volume(),every:this.every(),folder:this.folder(),keep:this.keep(),whenInUse:this.whenInUse()}),this.toast.success(this.t().saved(this.volume())),this.open.set(!1)}catch(t){this.problem.set(eH(t))}finally{this.busy.set(!1)}}async remove(){this.busy.set(!0),this.problem.set(null);try{await this.store.remove(this.volume()),this.toast.success(this.t().removed(this.volume())),this.open.set(!1)}catch(t){this.problem.set(eH(t))}finally{this.busy.set(!1)}}static ɵfac=function(e){return new(e||o)};static ɵcmp=wc({type:o,selectors:[[`app-backup-schedule-dialog`]],inputs:{open:[1,`open`],volume:[1,`volume`]},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`,`backup-schedule-dialog`,1,`w-full`,`max-w-lg`,`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`],[1,`text-[13px]`,`font-medium`,`text-ink-200`],[1,`mt-1.5`,`flex`,`gap-4`,`text-[13px]`,`text-ink-200`],[1,`flex`,`cursor-pointer`,`items-center`,`gap-2`],[1,`mt-1.5`,`flex`,`items-center`,`gap-2`],[`data-testid`,`backup-folder`,1,`min-w-0`,`flex-1`,`truncate`,`font-mono`,`text-[12px]`,3,`title`],[`type`,`button`,`data-testid`,`backup-choose-folder`,1,`mx-btn`,`mx-focus`,`shrink-0`,3,`click`],[`name`,`folder`,3,`size`],[1,`mt-4`,`flex`,`items-center`,`gap-2`,`text-[13px]`,`text-ink-200`],[1,`font-medium`],[`type`,`number`,`min`,`1`,`max`,`100`,`data-testid`,`backup-keep`,3,`input`,`value`],[1,`mt-1.5`,`space-y-1.5`,`text-[13px]`,`text-ink-200`],[1,`flex`,`cursor-pointer`,`items-start`,`gap-2`],[`data-testid`,`backup-last`,1,`mt-4`,`text-[12px]`,3,`class`],[`role`,`alert`,1,`mt-3`,`rounded-md`,`border`,`border-danger/40`,`bg-danger/10`,`px-3`,`py-2`,`text-[13px]`,`text-danger`],[1,`mt-5`,`flex`,`items-center`,`gap-2`],[`type`,`button`,`data-testid`,`backup-remove-schedule`,1,`mx-btn`,`mx-focus`,`text-danger`,3,`disabled`],[`type`,`button`,`rdxDialogClose`,``,1,`mx-btn`,`mx-focus`,`ml-auto`],[`name`,`close`,3,`size`],[`type`,`button`,`data-testid`,`backup-save-schedule`,1,`mx-btn`,`mx-focus`,`border-accent`,`text-accent`,3,`click`,`disabled`],[`name`,`check`,3,`size`],[`type`,`radio`,`name`,`backup-every`,1,`accent-accent`,3,`change`,`checked`],[`type`,`radio`,`name`,`backup-in-use`,1,`mt-0.5`,`accent-accent`,3,`change`,`checked`],[1,`block`,`text-[12px]`,`text-ink-500`],[`data-testid`,`backup-last`,1,`mt-4`,`text-[12px]`],[`type`,`button`,`data-testid`,`backup-remove-schedule`,1,`mx-btn`,`mx-focus`,`text-danger`,3,`click`,`disabled`],[`name`,`trash`,3,`size`]],template:function(e,n){e&1&&(Oi(0,`div`,0),vg(`openChange`,function(s){return vk(n.open,s)||(n.open=s),s}),$m(1,St,42,25,`ng-template`,1),Nc()),e&2&&hg(`open`,n.open)},dependencies:[ie,ln,an,pn,cn,fn,dn,un,My],encapsulation:2})}});function Tt(o,t){if(o&1&&(Oi(0,`span`,7),pk(1),Nc()),o&2){let e=HE();ec(),xc(`· `,e.t().calculating)}}function Mt(o,t){if(o&1&&(Oi(0,`span`,17),pk(1),Nc()),o&2){let e=HE();ec(),fg(e.t().refreshing)}}function It(o,t){if(o&1){let e=_E();Oi(0,`div`,19)(1,`span`,31),pk(2),Nc(),Oi(3,`button`,32),Jm(`click`,function(){Ld(e);return Od(HE().askRemoveSelected())}),Gm(4,`app-icon`,33),pk(5),Nc()()}if(o&2){let e=HE();ec(2),fg(e.t().selected(e.selected().size)),ec(2),Wm(`size`,14),ec(),xc(` `,e.common().remove,` `)}}function Bt(o,t){if(o&1&&(Oi(0,`span`,38),Gm(1,`app-icon`,39),Nc()),o&2){let e=t;nk(e.tone),Wm(`title`,e.title),Br(`aria-label`,e.title),ec(),Wm(`size`,13)}}function Nt(o,t){if(o&1&&(Oi(0,`div`,37),pk(1),Nc()),o&2){let e=HE().$implicit;ec(),fg(e.composeProject)}}function Pt(o,t){if(o&1&&(Oi(0,`div`,34)(1,`span`,35),pk(2),Nc(),kE(3,Bt,2,5,`span`,36),Nc(),kE(4,Nt,2,1,`div`,37)),o&2){let e,n=t.$implicit,a=HE();ec(),Wm(`title`,n.mountpoint),ec(),fg(n.name),ec(),SE((e=a.scheduleBadge(n))?3:-1,e),ec(),SE(n.composeProject?4:-1)}}function Ot(o,t){if(o&1&&(Oi(0,`span`,40),pk(1),Nc()),o&2){let e=t.$implicit;ec(),fg(e.driver)}}function zt(o,t){if(o&1&&(Oi(0,`span`,41),pk(1),Nc()),o&2){let e=HE().$implicit,n=HE();ec(),fg(n.t().containerCount(e.inUseBy))}}function Rt(o,t){o&1&&(Oi(0,`span`,42),pk(1,`—`),Nc())}function Ft(o,t){if(o&1&&kE(0,zt,2,1,`span`,41)(1,Rt,2,0,`span`,42),o&2){let e=t.$implicit;SE(e.inUseBy>0?0:1)}}function Ut(o,t){if(o&1&&(Oi(0,`span`,43),pk(1),Nc()),o&2){let e=t.$implicit,n=HE();ec(),fg(n.ageOf(e.createdAt))}}function Lt(o,t){if(o&1&&(Oi(0,`span`,44),pk(1),Nc()),o&2){let e=t.$implicit,n=HE();ec(),fg(n.sizeOf(e.sizeBytes))}}function Wt(o,t){if(o&1){let e=_E();Oi(0,`div`,45)(1,`app-action-menu`,46),Jm(`picked`,function(a){let s=Ld(e).$implicit;return Od(HE().onRowMenu(a,s))}),Nc()()}if(o&2){let e=t.$implicit,n=HE();ec(),Wm(`label`,n.t().rowMenu(e.name))(`items`,n.rowMenu(e))}}var Oe;p(()=>{Qr();h();M();B();G();J();oe();K();dS();x();Me();sS();Ie();Be();Pe();m();ia();o();Qr();Oe=class o{store=C(w);preferences=C(p$1);schedules=C(s);t=Ot$1(()=>oS().volumes);common=Ot$1(()=>oS().common);columns=Ot$1(()=>{let t=this.t().columns;return[{key:`name`,label:t.name},{key:`driver`,label:t.driver,width:`100px`},{key:`inUse`,label:t.inUse,width:`110px`},{key:`created`,label:t.created,width:`150px`},{key:`size`,label:t.size,width:`100px`,align:`right`},{key:`actions`,label:t.actions,width:`84px`,align:`right`}]});loading=this.store.loading;loadingSizes=this.store.loadingSizes;problem=this.store.problem;pending=this.store.pending;unusedCount=this.store.unusedCount;search=wt$1(``);zoek=jc(void 0);onlyUnused=this.preferences.flag(`volumes.onlyUnused`);selected=wt$1(new Set);action=wt$1(null);confirmOpen=wt$1(!1);createOpen=wt$1(!1);browseOpen=wt$1(!1);copyOpen=wt$1(!1);copyVolume=wt$1(``);browseVolume=wt$1(``);scheduleOpen=wt$1(!1);scheduleVolume=wt$1(``);rows=Ot$1(()=>{let t=this.search().trim().toLowerCase(),e=this.onlyUnused();return this.store.volumes().filter(n=>e&&n.inUseBy>0?!1:t===``||n.name.toLowerCase().includes(t))});totalSize=Ot$1(()=>d(this.store.totalBytes()));trackKey=t=>t.name;inkijk=jc(void 0);bewaar=jc(void 0);verwijder=jc(void 0);schema=jc(void 0);router=C(pe$1);route=C(Q);constructor(){this.schedules.start(),rp(()=>{let t=this.schema();t!==void 0&&Tg(()=>{this.scheduleVolume.set(t),this.scheduleOpen.set(!0),i(this.router,this.route,`schema`)})}),rp(()=>{let t=this.inkijk();t!==void 0&&Tg(()=>{this.browseVolume.set(t),this.browseOpen.set(!0),i(this.router,this.route,`inkijk`)})}),rp(()=>{let t=this.bewaar(),e=this.store.volumes().find(n=>n.name===t);t!==void 0&&e!==void 0&&Tg(()=>{this.backup(e),i(this.router,this.route,`bewaar`)})}),rp(()=>{let t=this.verwijder(),e=this.store.volumes().find(n=>n.name===t);t!==void 0&&e!==void 0&&Tg(()=>{this.askRemove(e),i(this.router,this.route,`verwijder`)})}),rp(()=>{let t=this.zoek();t!==void 0&&Tg(()=>this.search.set(t))}),this.store.refresh()}sizeOf(t){return t===null?`—`:d(t)}ageOf(t){return t===0?`—`:N(t)}removalReason(t){return t.inUseBy>0?this.t().inUseReason(t.inUseBy):this.common().remove}backup(t){this.store.backup(t.name)}scheduleBadge(t){let e=this.schedules.byVolume().get(t.name),n=this.t().schedule;if(e===void 0)return null;let a=e.every===`day`?n.daily:n.weekly,s=e.lastOutcome;if(s===null)return{tone:`text-ink-400`,title:n.badgeNone(a)};let X=f(s.at);return s.kind===`failed`?{tone:`text-danger`,title:n.badgeFailed(a,X,s.problem)}:s.kind===`skipped`?{tone:`text-warn`,title:n.badgeSkipped(a,X,s.users.join(`, `))}:{tone:`text-ink-400`,title:n.badgeOk(a,X)}}backupTitle(t){return t.inUseBy>0?this.t().backupTitleInUse(t.name):this.t().backupTitle(t.name)}rowMenu(t){let e=this.pending().has(t.name),n=this.t();return[{id:`browse`,label:n.rowBrowse,icon:`folder`,disabled:e},{id:`backup`,label:n.rowBackup,icon:`download`,disabled:e,hint:this.backupTitle(t)},{id:`restore`,label:n.rowRestore,icon:`upload`,disabled:e,hint:n.restoreTitle(t.name)},{id:`copy`,label:n.rowCopy,icon:`copy`,disabled:e},{id:`schedule`,label:n.rowSchedule,icon:`clock`},{id:`remove`,label:this.common().remove,icon:`trash`,disabled:e||t.inUseBy>0,danger:!0,separated:!0,hint:this.removalReason(t)}]}onRowMenu(t,e){t===`browse`?(this.browseVolume.set(e.name),this.browseOpen.set(!0)):t===`backup`?this.backup(e):t===`restore`?this.askRestore(e):t===`copy`?(this.copyVolume.set(e.name),this.copyOpen.set(!0)):t===`schedule`?(this.scheduleVolume.set(e.name),this.scheduleOpen.set(!0)):this.askRemove(e)}askRestore(t){let e=this.t().restore;this.action.set({names:[t.name],title:e.title(t.name),description:e.description(t.inUseBy),confirmLabel:e.confirm,all:!1,restore:!0}),this.confirmOpen.set(!0)}askRemove(t){let e=this.t().remove;this.action.set({names:[t.name],title:e.title,description:e.description(t.name),confirmLabel:this.common().remove,all:!1}),this.confirmOpen.set(!0)}askRemoveSelected(){let t=[...this.selected()],e=this.t().remove;this.action.set({names:t,title:e.manyTitle,description:e.manyDescription(t.length),confirmLabel:this.common().remove,all:!1}),this.confirmOpen.set(!0)}menuItems=Ot$1(()=>[{id:`create`,label:this.t().menu.create,icon:`plus`},{id:`prune-anonymous`,label:this.t().menu.pruneAnonymous,icon:`broom`,separated:!0},{id:`prune-unused`,label:this.t().menu.pruneUnused,icon:`broom`}]);onMenu(t){t===`create`?this.createOpen.set(!0):this.askPrune(t===`prune-unused`)}askPrune(t){let e=this.t().prune;this.action.set({names:[],title:t?e.allTitle:e.anonymousTitle,description:t?e.allDescription:e.anonymousDescription,confirmLabel:e.confirm,all:t}),this.confirmOpen.set(!0)}confirm(){let t=this.action();t!==null&&(t.restore===!0?this.store.restore(t.names[0]):t.names.length===0?this.store.prune(t.all):(this.store.removeMany(t.names,!1),this.selected.set(new Set)),this.action.set(null))}actionTitle(){return this.action()?.title??``}actionDescription(){return this.action()?.description??``}actionConfirmLabel(){return this.action()?.confirmLabel??this.common().remove}actionConfirmIcon(){let t=this.action();return t?.restore===!0?`upload`:t?.names.length===0?`broom`:`trash`}static ɵfac=function(e){return new(e||o)};static ɵcmp=wc({type:o,selectors:[[`app-volumes-page`]],inputs:{zoek:[1,`zoek`],inkijk:[1,`inkijk`],bewaar:[1,`bewaar`],verwijder:[1,`verwijder`],schema:[1,`schema`]},decls:44,vars:34,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-3`,`flex`,`flex-wrap`,`gap-x-10`,`gap-y-2`],[1,`text-[12px]`,`text-ink-400`],[1,`text-[15px]`,`font-medium`,`text-ink-100`],[1,`text-[12px]`,`font-normal`,`text-ink-500`],[1,`ml-auto`],[3,`picked`,`label`,`items`],[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`,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,`onChange`,`label`,`on`],[1,`text-[12px]`,`text-ink-500`],[3,`problem`],[1,`mt-3`,`flex`,`items-center`,`gap-2`,`rounded-md`,`border`,`border-ink-700`,`bg-ink-850`,`px-3`,`py-2`],[1,`min-h-0`,`flex-1`,`overflow-y-auto`,`px-6`,`pb-6`],[3,`selectedChange`,`columns`,`rows`,`trackKey`,`selected`,`emptyMessage`],[`appCell`,`name`],[`appCell`,`driver`],[`appCell`,`inUse`],[`appCell`,`created`],[`appCell`,`size`],[`appCell`,`actions`],[3,`openChange`,`open`],[3,`openChange`,`open`,`volume`],[3,`openChange`,`confirmed`,`open`,`title`,`description`,`confirmLabel`,`confirmIcon`],[1,`text-[13px]`,`text-ink-200`],[`type`,`button`,1,`mx-btn`,`mx-focus`,`ml-auto`,`text-danger`,`hover:text-danger`,3,`click`],[`name`,`trash`,3,`size`],[1,`flex`,`min-w-0`,`items-center`,`gap-1.5`],[1,`truncate`,`text-ink-100`,3,`title`],[`role`,`img`,`data-testid`,`volume-schedule-badge`,1,`shrink-0`,3,`class`,`title`],[1,`truncate`,`text-[11px]`,`text-ink-500`],[`role`,`img`,`data-testid`,`volume-schedule-badge`,1,`shrink-0`,3,`title`],[`name`,`clock`,3,`size`],[1,`text-ink-300`],[1,`text-ink-200`],[1,`text-ink-600`],[1,`text-ink-400`],[1,`tabular-nums`,`text-ink-200`],[1,`flex`,`items-center`,`justify-end`],[`compact`,``,3,`picked`,`label`,`items`]],template:function(e,n){e&1&&(Oi(0,`section`,0)(1,`div`,1)(2,`div`,2)(3,`div`)(4,`h1`,3),pk(5),Nc(),Oi(6,`div`,4)(7,`div`)(8,`div`,5),pk(9),Nc(),Oi(10,`div`,6),pk(11),kE(12,Tt,2,1,`span`,7),Nc()(),Oi(13,`div`)(14,`div`,5),pk(15),Nc(),Oi(16,`div`,6),pk(17),Nc()()()(),Oi(18,`div`,8)(19,`app-action-menu`,9),Jm(`picked`,function(s){return n.onMenu(s)}),Nc()()(),Oi(20,`div`,10)(21,`label`,11)(22,`span`,12),Gm(23,`app-icon`,13),Nc(),Oi(24,`span`,14),pk(25),Nc(),Oi(26,`input`,15),Jm(`input`,function(s){return n.search.set(s.target.value)}),Nc()(),Oi(27,`app-filter-switch`,16),vg(`onChange`,function(s){return vk(n.onlyUnused,s)||(n.onlyUnused=s),s}),Nc(),kE(28,Mt,2,1,`span`,17),Nc(),Gm(29,`app-page-messages`,18),kE(30,It,6,3,`div`,19),Nc(),Oi(31,`div`,20)(32,`app-data-table`,21),vg(`selectedChange`,function(s){return vk(n.selected,s)||(n.selected=s),s}),$m(33,Pt,5,4,`ng-template`,22)(34,Ot,2,1,`ng-template`,23)(35,Ft,2,1,`ng-template`,24)(36,Ut,2,1,`ng-template`,25)(37,Lt,2,1,`ng-template`,26)(38,Wt,2,2,`ng-template`,27),Nc()()(),Oi(39,`app-create-volume-dialog`,28),vg(`openChange`,function(s){return vk(n.createOpen,s)||(n.createOpen=s),s}),Nc(),Oi(40,`app-volume-browser-dialog`,29),vg(`openChange`,function(s){return vk(n.browseOpen,s)||(n.browseOpen=s),s}),Nc(),Oi(41,`app-copy-volume-dialog`,29),vg(`openChange`,function(s){return vk(n.copyOpen,s)||(n.copyOpen=s),s}),Nc(),Oi(42,`app-confirm-dialog`,30),vg(`openChange`,function(s){return vk(n.confirmOpen,s)||(n.confirmOpen=s),s}),Jm(`confirmed`,function(){return n.confirm()}),Nc(),Oi(43,`app-backup-schedule-dialog`,29),vg(`openChange`,function(s){return vk(n.scheduleOpen,s)||(n.scheduleOpen=s),s}),Nc()),e&2&&(ec(5),fg(n.t().title),ec(4),fg(n.t().diskSpace),ec(2),xc(` `,n.totalSize(),` `),ec(),SE(n.loadingSizes()?12:-1),ec(3),fg(n.t().unused),ec(2),fg(n.unusedCount()),ec(2),Wm(`label`,n.t().menuLabel)(`items`,n.menuItems()),ec(4),Wm(`size`,15),ec(2),fg(n.t().searchLabel),ec(),Wm(`placeholder`,n.t().searchLabel)(`value`,n.search()),ec(),Wm(`label`,n.t().onlyUnused),hg(`on`,n.onlyUnused),ec(),SE(n.loading()?28:-1),ec(),Wm(`problem`,n.problem()),ec(),SE(n.selected().size>0?30:-1),ec(2),Wm(`columns`,n.columns())(`rows`,n.rows())(`trackKey`,n.trackKey),hg(`selected`,n.selected),Wm(`emptyMessage`,n.t().empty),ec(7),hg(`open`,n.createOpen),ec(),hg(`open`,n.browseOpen),Wm(`volume`,n.browseVolume()),ec(),hg(`open`,n.copyOpen),Wm(`volume`,n.copyVolume()),ec(),hg(`open`,n.confirmOpen),Wm(`title`,n.actionTitle())(`description`,n.actionDescription())(`confirmLabel`,n.actionConfirmLabel())(`confirmIcon`,n.actionConfirmIcon()),ec(),hg(`open`,n.scheduleOpen),Wm(`volume`,n.scheduleVolume()))},dependencies:[z,x$1,My,W,u,P,V,re,de,pe,me],encapsulation:2})}})();export{Oe as VolumesPage};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{At as W,Ft as X,Ln as oS,Qn as sS,Vn as p,ct as Qr,gr as wt,kn as lS,l as C,nt as Ot,on as eH,sr as ve,x as G}from"./chunk-Bk32Rk5p.js";import{i as Wi,s as ca}from"./chunk-CgneC1Je.js";import{i as h,r as d}from"./chunk-FuBWiPKf.js";var w;var B=p(()=>{Qr();h();lS();ca();sS();Qr();w=class l{toast=C(Wi);items=wt([]);sizeByName=wt({});busy=wt(!1);sizesBusy=wt(!1);loadProblem=wt(null);running=wt(new Set);loading=this.busy.asReadonly();loadingSizes=this.sizesBusy.asReadonly();problem=this.loadProblem.asReadonly();pending=this.running.asReadonly();volumes=Ot(()=>{let s=this.sizeByName();return this.items().map(e=>G(W({},e),{sizeBytes:s[e.name]??null}))});totalBytes=Ot(()=>this.volumes().reduce((s,e)=>s+(e.sizeBytes??0),0));unusedCount=Ot(()=>this.items().filter(s=>s.inUseBy===0).length);constructor(){C(ve).onDestroy(window.electron.events.subscribe(s=>{s.includes(`volume`)&&this.refresh()}))}async refresh(){this.busy.set(!0);try{this.items.set(await window.electron.volumes.list()),this.loadProblem.set(null)}catch(s){this.loadProblem.set(eH(s))}finally{this.busy.set(!1)}this.loadSizes()}async loadSizes(){this.sizesBusy.set(!0);try{this.sizeByName.set(await window.electron.volumes.sizes())}catch{}finally{this.sizesBusy.set(!1)}}async create(s){let e;try{let t=await window.electron.volumes.create(s);e=t.ok?null:t.problem}catch(t){e=eH(t)}return e===null&&(this.toast.success(oS().volumes.created(s.name)),await this.refresh()),e}async remove(s,e){this.running.update(t=>new Set(t).add(s));try{let t=await window.electron.volumes.remove(s,e);t.ok||this.toast.error(t.problem)}finally{this.running.update(t=>{let i=new Set(t);return i.delete(s),i})}await this.refresh()}async removeMany(s,e){await Promise.all(s.map(t=>this.remove(t,e)))}async prune(s){this.busy.set(!0);try{let e=await window.electron.volumes.prune(s);e.ok?this.toast.success(e.removed===0?oS().common.nothingToPrune:oS().volumes.pruned(e.removed,d(e.reclaimedBytes))):this.toast.error(e.problem)}finally{this.busy.set(!1)}await this.refresh()}async backup(s){await this.whilePending(s,async()=>{let e=await window.electron.volumes.backup(s);e.ok?e.savedTo!==null&&this.toast.success(oS().volumes.backedUp(s,e.savedTo)):this.toast.error(e.problem)})}async restore(s){await this.whilePending(s,async()=>{let e=await window.electron.volumes.restore(s);e.ok?e.restoredFrom!==null&&this.toast.success(oS().volumes.restored(e.restoredFrom,s)):this.toast.error(e.problem)}),await this.loadSizes()}async whilePending(s,e){this.running.update(t=>new Set(t).add(s));try{await e()}catch(t){this.toast.error(eH(t))}finally{this.running.update(t=>{let i=new Set(t);return i.delete(s),i})}}static ɵfac=function(e){return new(e||l)};static ɵprov=X({token:l,factory:l.ɵfac,providedIn:`root`})}});export{w as n,B as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Cn as jc,Gn as pk,Kn as qr,Mt as Wr,Tn as kE,Vn as p,_r as xc,ct as Qr,dt as SE,mr as wc,sn as ec}from"./chunk-Bk32Rk5p.js";function y(e,n){e&1&&(qr(0,`p`,0),pk(1),Wr()),e&2&&(ec(),xc(` `,n,` `))}var u;var x=p(()=>{Qr();Qr();u=class e{problem=jc(null);static ɵfac=function(t){return new(t||e)};static ɵcmp=wc({type:e,selectors:[[`app-page-messages`]],inputs:{problem:[1,`problem`]},decls:1,vars:1,consts:[[1,`mt-3`,`rounded-md`,`border`,`border-danger/40`,`bg-danger/10`,`px-3`,`py-2`,`text-[13px]`,`text-danger`]],template:function(t,b){if(t&1&&kE(0,y,2,1,`p`,0),t&2){let a;SE((a=b.problem())?0:-1,a)}},encapsulation:2})}});export{x as n,u as t};
|