docker-client-mx 1.35.1 → 1.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/docker-desktop-mx/browser/{chunk-ltArY2xW.js → chunk-2Z6qpzJF.js} +1 -1
  2. package/dist/docker-desktop-mx/browser/{chunk-Dh7vYMc8.js → chunk-6Vhi8rd8.js} +1 -1
  3. package/dist/docker-desktop-mx/browser/{chunk-DYUws9mp.js → chunk-6px89AQj.js} +1 -1
  4. package/dist/docker-desktop-mx/browser/{chunk-DRT1vtH_.js → chunk-B9UcPpda.js} +2 -2
  5. package/dist/docker-desktop-mx/browser/chunk-BK2A0qk2.js +1 -0
  6. package/dist/docker-desktop-mx/browser/{chunk-oQtDYwMw.js → chunk-BPHdfnbm.js} +1 -1
  7. package/dist/docker-desktop-mx/browser/{chunk-DFUzAyI0.js → chunk-BXKHiA8K.js} +1 -1
  8. package/dist/docker-desktop-mx/browser/{chunk-C38PgGs5.js → chunk-BiLhnMKi.js} +1 -1
  9. package/dist/docker-desktop-mx/browser/{chunk-CSTPKCSb.js → chunk-By8a25tN.js} +1 -1
  10. package/dist/docker-desktop-mx/browser/{chunk-BDeMOmys.js → chunk-Bz_HteBH.js} +1 -1
  11. package/dist/docker-desktop-mx/browser/{chunk-CmXGNv0-.js → chunk-CF1AqDMe.js} +1 -1
  12. package/dist/docker-desktop-mx/browser/chunk-CK0MxuKs.js +1 -0
  13. package/dist/docker-desktop-mx/browser/{chunk-CKI6HOt5.js → chunk-CLMm_XWR.js} +1 -1
  14. package/dist/docker-desktop-mx/browser/{chunk-sKoSitq-.js → chunk-Chnm8oNy.js} +1 -1
  15. package/dist/docker-desktop-mx/browser/{chunk-CfF5fStd.js → chunk-ChzmfIu4.js} +2 -2
  16. package/dist/docker-desktop-mx/browser/chunk-CrwwnTWy.js +1 -0
  17. package/dist/docker-desktop-mx/browser/chunk-CtOi-wU6.js +1 -0
  18. package/dist/docker-desktop-mx/browser/chunk-D2zLXdKA.js +1 -0
  19. package/dist/docker-desktop-mx/browser/{chunk-Dk2BOjJw.js → chunk-DJK2pDCE.js} +1 -1
  20. package/dist/docker-desktop-mx/browser/{chunk-BDwzLH5E.js → chunk-DKcHMtVX.js} +1 -1
  21. package/dist/docker-desktop-mx/browser/{chunk-MHYwHTvv.js → chunk-DLUPTp1Q.js} +1 -1
  22. package/dist/docker-desktop-mx/browser/chunk-DNBPj_aM.js +2 -0
  23. package/dist/docker-desktop-mx/browser/{chunk-Dj0SqC61.js → chunk-DSdDrNk7.js} +1 -1
  24. package/dist/docker-desktop-mx/browser/chunk-DdnN9mbh.js +1 -0
  25. package/dist/docker-desktop-mx/browser/{chunk-C-mSD_ks.js → chunk-DnMQ5zRD.js} +1 -1
  26. package/dist/docker-desktop-mx/browser/{chunk-C7ZKT99Y.js → chunk-Dob_vN7f.js} +1 -1
  27. package/dist/docker-desktop-mx/browser/chunk-Dxcj7_8z.js +1 -0
  28. package/dist/docker-desktop-mx/browser/chunk-ExURQ6xP.js +1 -0
  29. package/dist/docker-desktop-mx/browser/{chunk-Duka1ezn.js → chunk-GnwhPzR0.js} +1 -1
  30. package/dist/docker-desktop-mx/browser/{chunk-Bo4H3_Rk.js → chunk-InjvrsZj.js} +1 -1
  31. package/dist/docker-desktop-mx/browser/{chunk-DSXCkEOA.js → chunk-KsK8Et8A.js} +1 -1
  32. package/dist/docker-desktop-mx/browser/chunk-PPlXONP3.js +4 -0
  33. package/dist/docker-desktop-mx/browser/chunk-TgIBaKIJ.js +1 -0
  34. package/dist/docker-desktop-mx/browser/chunk-VaM0mOqO.js +1 -0
  35. package/dist/docker-desktop-mx/browser/{chunk-tewFiBKE.js → chunk-ZNZW7U7T.js} +1 -1
  36. package/dist/docker-desktop-mx/browser/chunk-p8V0QABx.js +1 -0
  37. package/dist/docker-desktop-mx/browser/index.html +2 -2
  38. package/dist/docker-desktop-mx/browser/main-OGMLFNXA.js +1 -0
  39. package/dist/docker-desktop-mx/browser/styles-MQHK3ARQ.css +1 -0
  40. package/dist-electron/attention.js +4 -1
  41. package/dist-electron/attention.js.map +1 -1
  42. package/dist-electron/channels.js +3 -0
  43. package/dist-electron/channels.js.map +1 -1
  44. package/dist-electron/ipc.js +13 -0
  45. package/dist-electron/ipc.js.map +1 -1
  46. package/dist-electron/log-export.js +83 -0
  47. package/dist-electron/log-export.js.map +1 -0
  48. package/dist-electron/memory-limit.js +58 -0
  49. package/dist-electron/memory-limit.js.map +1 -0
  50. package/dist-electron/preload.js +6 -0
  51. package/dist-electron/preload.js.map +1 -1
  52. package/dist-electron/updates.js +14 -0
  53. package/dist-electron/updates.js.map +1 -1
  54. package/package.json +1 -1
  55. package/dist/docker-desktop-mx/browser/chunk-BIryu19T.js +0 -1
  56. package/dist/docker-desktop-mx/browser/chunk-BgAYDwld.js +0 -1
  57. package/dist/docker-desktop-mx/browser/chunk-BgSpSEgy.js +0 -1
  58. package/dist/docker-desktop-mx/browser/chunk-C5hTG6ZQ.js +0 -1
  59. package/dist/docker-desktop-mx/browser/chunk-CkcMOifC.js +0 -1
  60. package/dist/docker-desktop-mx/browser/chunk-Cs8Jh9po.js +0 -1
  61. package/dist/docker-desktop-mx/browser/chunk-DAJsomrJ.js +0 -1
  62. package/dist/docker-desktop-mx/browser/chunk-DIjFiJIb.js +0 -1
  63. package/dist/docker-desktop-mx/browser/chunk-DOxgdvK8.js +0 -4
  64. package/dist/docker-desktop-mx/browser/chunk-DrmeYv5g.js +0 -1
  65. package/dist/docker-desktop-mx/browser/chunk-GNa4NoSX.js +0 -2
  66. package/dist/docker-desktop-mx/browser/chunk-V8IwFs3U.js +0 -1
  67. package/dist/docker-desktop-mx/browser/chunk-uyqlb3cB.js +0 -1
  68. package/dist/docker-desktop-mx/browser/main-EZ2B2NFK.js +0 -1
  69. package/dist/docker-desktop-mx/browser/styles-JS3HDDI4.css +0 -1
@@ -0,0 +1 @@
1
+ import{$n as sg,B as Jm,En as jc,Fn as mj,G as M,H as Kr,Kn as pj,Lt as Ws,O as Gi,P as I,Pt as W,R as Ir,S as Eb,Tn as jE,Tr as zr,V as Km,Z as Ng,Zn as rf,_r as wt,at as Pr,br as yR,bt as T,et as OE,ht as S,it as PS,jn as lf,l as Ar,ln as f,lr as ve$1,n as $D,nn as br,o as $t$1,tr as sw,wt as Tg,x as ES,y as Dj,yt as Se$1}from"./chunk-PPlXONP3.js";import{I as ts,L as xo,N as sr,R as xt,T as jn$1,b as Yo,c as Ko,h as Tt,j as qo,n as Be$1,p as Se$2,u as Me,v as Wo,w as es,x as Zo,y as Xo,z as zo}from"./chunk-InjvrsZj.js";import{i as v,n as f$1,r as g,t as L$1}from"./chunk-Bz_HteBH.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=Xo(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=Xo(n);for(let s of e)if(x(s,{select:o}),Xo(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=Xo((`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,``),Be$1.screenReader.voiceOver&&Be$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;rf(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=f(()=>{Kr();Kr();sr();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]=xo(`FocusScope Context`,`utils/focus-scope`),Vn=()=>{let e=I(V);return{loop:e.loop,trapped:e.isTrapped}},V=(()=>{class e{constructor(){this.injector=I(Se$1),this.destroyRef=I(ve$1),this.elementRef=I(Pr),this.config=I(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=$t$1(()=>this.trapped()??this.config.trapped()),this.mountAutoFocus=pj(),this.unmountAutoFocus=pj(),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}),$D(()=>{rf(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}),rf(async t=>{let n=this.elementRef.nativeElement;if(await Promise.resolve(),!n||!this.alive)return;this.focusScopesStack.add(this.focusScope);let i=Xo(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}),Xo(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=Xo(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=Xo(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=OE({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:[ES([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=f(()=>{Me();Kr();Kr();sr();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=pj(),this.config=I($t,{optional:!0}),this.effectiveEnabled=$t$1(()=>this.enabled()??this.config?.enabled?.()??!0),this.effectiveModal=$t$1(()=>this.modal()??this.config?.modal?.()??!1),this.effectiveInert=$t$1(()=>this.inert()??this.config?.inert?.()??this.effectiveModal()),this.effectiveCloseOnFocusOut=$t$1(()=>this.closeOnFocusOut()??this.config?.closeOnFocusOut?.()??!0),this.effectiveInitialFocus=$t$1(()=>this.initialFocus()!==void 0?this.initialFocus():this.config?.initialFocus?.()??null),this.effectiveReturnFocus=$t$1(()=>this.returnFocus()!==void 0?this.returnFocus():this.config?.returnFocus?.()??!0),this.effectiveRestoreFocus=$t$1(()=>this.restoreFocus()??this.config?.restoreFocus?.()??!1),this.effectivePreviousFocusableElement=$t$1(()=>this.previousFocusableElement()!==void 0?this.previousFocusableElement():this.config?.previousFocusableElement?.()),this.effectiveNextFocusableElement=$t$1(()=>this.nextFocusableElement()!==void 0?this.nextFocusableElement():this.config?.nextFocusableElement?.()),this.effectiveBeforeContentFocusGuardRef=$t$1(()=>this.beforeContentFocusGuardRef()??this.config?.beforeContentFocusGuardRef?.()),this.effectiveExternalTree=$t$1(()=>this.externalTree()??this.config?.externalTree?.()??null),this.insideElements=$t$1(()=>((this.getInsideElements()??this.config?.getInsideElements)?.()??[]).filter(n=>n!=null)),this.effectiveOpenInteractionType=$t$1(()=>this.config?.openInteractionType?.()??this._interactionType()),this.effectiveCloseInteractionType=$t$1(()=>this.config?.closeInteractionType?.()??this._interactionType()),this.trapped=$t$1(()=>this.effectiveEnabled()&&this.effectiveModal()),this.focusScopeConfig=I(De),this.host=I(Pr).nativeElement,this.isBrowser=Se$2(I(sw)),this.rootContext=I(xt,{optional:!0}),this.registration=I(Tt,{optional:!0}),this._interactionType=wt(``),this.interactionType=this._interactionType.asReadonly(),rf(()=>this.focusScopeConfig.trapped.set(this.trapped())),this.focusScopeConfig.returnFocus=()=>this.resolveReturnFocusTarget(),this.isBrowser&&(rf(t=>{!this.effectiveEnabled()||!this.isFloatingOpen()||t(qt(this.avoidElements(),{ariaHidden:!1,mark:!0}))}),rf(t=>{!this.effectiveEnabled()||!this.isFloatingOpen()||!this.effectiveInert()||t(qt(this.avoidElements(),{inert:!0,mark:!1}))}),rf(()=>{if(!Be$1.engine.webkit||this.isFloatingOpen())return;let t=this.rootContext?.floatingElement??this.host;if(!t)return;let n=Xo(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),I(ve$1).onDestroy(()=>{t.removeEventListener(`pointerdown`,n,!0),t.removeEventListener(`keydown`,i,!0)})}wireFocusOrchestration(){I(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(){rf(()=>{!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),I(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),I(ve$1).onDestroy(()=>t.removeEventListener(`focusout`,n,!0))}wirePortalFocusBridge(){rf(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=OE({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:[ES([Un()]),jE([{directive:V,inputs:[`loop`,`loop`]}])]})}}return e})()});function qn(e){e||(e=I(ve$1));let o=new T(t=>{if(e.destroyed){t.next();return}return e.onDestroy(t.next.bind(t))});return t=>t.pipe(Eb(o))}function Xe(e,o){return new Ue(e)}function qe(e){let o=yR(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=f(()=>{Ws();lf();Ir();Ng();Ue=class{source;destroyed=!1;destroyRef=I(ve$1);constructor(o){this.source=o,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}subscribe(o){if(this.destroyed)throw new S(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=f(()=>{Me();Kr();sr();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=I(ve$1);if(E.onDestroy(()=>Ye.delete(this.context)),!Se$2(I(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},Be$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=f(()=>{Me();Kr();Kr();g();en=(()=>{class e{constructor(){this.viewContainerRef=I(Gi),this.templateRef=I(Ar),this.document=I(br,{optional:!0}),this.isBrowser=Se$2(I(sw)),this.container=jc(),this.keepMounted=jc(!1,{transform:Dj}),this.contextPresent=I(v).present,this.present=$t$1(()=>this.contextPresent()||this.keepMounted()),this._computedContainer=PS(this.container),this.elementContainer=$t$1(()=>no(this._computedContainer(),this.document)??this.document?.body??null),this.mountedNodes=wt([]),this.viewRef=null;let t=new f$1({present:this.present,isBrowser:this.isBrowser,injector:I(Se$1),mountView:()=>this.mountView(),destroyView:()=>this.destroyView()});rf(()=>{let n=this.elementContainer(),i=this.mountedNodes();if(!(!this.isBrowser||!n))for(let s of i)n.appendChild(s)}),I(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=OE({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=f(()=>{Kr();Kr();sr();sr();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(I(ie)),[B,co]=xo(`RdxDialogRootContext`,`components/dialog`),ie=(()=>{class e{constructor(){this.destroyRef=I(ve$1),this.parentRoot=I(e,{optional:!0,skipSelf:!0}),this.variant=I(on),this.hasAppliedDefaultOpen=!1,this.hasAppliedDefaultTriggerId=!1,this.registeredTriggers=new Map,this.transition=ts(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=pj(),this.onOpenChangeComplete=pj(),this.contentId=jn$1(`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=$t$1(()=>this.open()||this.preventUnmountOnClose()),this.nested=!!this.parentRoot,this.nestedDialogOpen=$t$1(()=>this.nestedOpenCount()>0),this.role=this.variant.role,this.effectiveModal=$t$1(()=>this.variant.forceModal?!0:this.modal()),this.effectiveDisablePointerDismissal=$t$1(()=>this.disablePointerDismissal()||this.variant.forcePointerDismissalDisabled),this.floatingContext=Zo({ownerDocument:I(Pr).nativeElement.ownerDocument,open:()=>this.open()}),rf(()=>this.floatingContext.setReferenceElement(this.trigger()??null)),rf(()=>{this.open()&&this.preventUnmountOnClose()&&this.preventUnmountOnClose.set(!1)});let t=this.open();rf(()=>{let n=this.defaultOpen();!this.hasAppliedDefaultOpen&&n&&(this.hasAppliedDefaultOpen=!0,this.open.set(n))}),rf(()=>{let n=this.defaultTriggerId();!this.hasAppliedDefaultTriggerId&&n!==null&&(this.hasAppliedDefaultTriggerId=!0,this.triggerId.set(n))}),rf(()=>{let n=this.triggerId();Tg(()=>this.syncTriggerId(n))}),rf(()=>{let n=this.open();n!==t&&(t=n,Tg(()=>this.transition.start(n)))}),rf(n=>{this.open()&&this.parentRoot&&n(Tg(()=>this.parentRoot.openNestedChild()))}),rf(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=zo(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=OE({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:[ES([co(uo),Wo(),Yo(()=>I(e).floatingContext)])]})}}return e})();an=(()=>{class e{constructor(){this.rootContext=B(),this.forceRender=jc(!1,{transform:Dj});let t=I(xt,{optional:!0});if(t){let n=I(Pr).nativeElement;t.addFloatingElement(n),I(ve$1).onDestroy(()=>t.removeFloatingElement(n))}}static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=OE({type:e,selectors:[[``,`rdxDialogBackdrop`,``]],hostAttrs:[`role`,`presentation`],hostVars:7,hostBindings:function(n,i){n&2&&(Km(`hidden`,i.rootContext.nested&&!i.forceRender()),zr(`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=OE({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=jn$1(`rdx-dialog-description-`),this.rootContext.setDescriptionId(this.id),I(ve$1).onDestroy(()=>this.rootContext.setDescriptionId(void 0))}static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=OE({type:e,selectors:[[``,`rdxDialogDescription`,``]],hostVars:1,hostBindings:function(n,i){n&2&&Km(`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=I(Pr).nativeElement,this.floatingContext=I(xt),this.registration=I(Tt,{optional:!0}),this.focusManager=I(Te),this.focusScope=I(V),this.escapeKeyDown=pj(),this.pointerDownOutside=pj(),this.focusOutside=pj(),this.interactOutside=pj(),this.openAutoFocus=Xe(qe(this.focusScope.mountAutoFocus)),this.closeAutoFocus=Xe(qe(this.focusScope.unmountAutoFocus)),this.floatingContext.setFloatingElement(this.host),es($t$1(()=>this.rootContext.modal()===!0&&this.rootContext.isOpen()),{referenceElement:()=>this.host});let t=this.rootContext.registerTransitionElement(this.host);I(ve$1).onDestroy(t);let n=I(Se$1);$D(()=>Ko(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=OE({type:e,selectors:[[``,`rdxDialogPopup`,``]],hostVars:13,hostBindings:function(n,i){n&1&&Jm(`keydown`,function(r){return i.onKeyDown(r)}),n&2&&(Km(`id`,i.rootContext.contentId),zr(`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:[ES([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()}})]),jE([qo,Te])]})}}return e})(),ln=(()=>{class e{constructor(){this.container=jc()}static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=OE({type:e,selectors:[[`ng-template`,`rdxDialogPortal`,``]],inputs:{container:[1,`container`]},exportAs:[`rdxDialogPortal`],features:[ES([L$1(()=>({present:B().present}))]),jE([{directive:en,inputs:[`container`,`container`]}])]})}}return e})(),fn=(()=>{class e{constructor(){this.rootContext=B(),this.id=jn$1(`rdx-dialog-title-`),this.rootContext.setTitleId(this.id),I(ve$1).onDestroy(()=>this.rootContext.setTitleId(void 0))}static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=OE({type:e,selectors:[[``,`rdxDialogTitle`,``]],hostVars:1,hostBindings:function(n,i){n&2&&Km(`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=OE({type:e,selectors:[[``,`rdxDialogViewport`,``]],hostAttrs:[`role`,`presentation`],hostVars:8,hostBindings:function(n,i){n&2&&(zr(`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=f(()=>{Kr();Kr();Je();Je();Oi=(()=>{class e{static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=OE({type:e,selectors:[[``,`rdxAlertDialogBackdrop`,``]],exportAs:[`rdxAlertDialogBackdrop`],features:[jE([an])]})}}return e})(),Ri=(()=>{class e{static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=OE({type:e,selectors:[[`button`,`rdxAlertDialogClose`,``]],exportAs:[`rdxAlertDialogClose`],features:[jE([un])]})}}return e})(),Mi=(()=>{class e{static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=OE({type:e,selectors:[[``,`rdxAlertDialogDescription`,``]],exportAs:[`rdxAlertDialogDescription`],features:[jE([dn])]})}}return e})(),Ii=(()=>{class e{static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=OE({type:e,selectors:[[``,`rdxAlertDialogPopup`,``]],exportAs:[`rdxAlertDialogPopup`],features:[jE([{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=OE({type:e,selectors:[[`ng-template`,`rdxAlertDialogPortal`,``]],exportAs:[`rdxAlertDialogPortal`],features:[jE([{directive:ln,inputs:[`container`,`container`]}])]})}}return e})(),Ni=(()=>{class e{constructor(){this.dialog=I(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=OE({type:e,selectors:[[``,`rdxAlertDialogRoot`,``]],exportAs:[`rdxAlertDialogRoot`],features:[ES([sn({role:`alertdialog`,forceModal:!0,forcePointerDismissalDisabled:!0})]),jE([{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=OE({type:e,selectors:[[``,`rdxAlertDialogTitle`,``]],exportAs:[`rdxAlertDialogTitle`],features:[jE([fn])]})}}return e})(),ki=(()=>{class e{static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=OE({type:e,selectors:[[``,`rdxAlertDialogViewport`,``]],exportAs:[`rdxAlertDialogViewport`],features:[jE([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 +1 @@
1
- import{$n as sT,Bn as oT,H as Kr,P as I,Pt as X,_r as wt,an as f}from"./chunk-DOxgdvK8.js";import{n as u,t as f$1}from"./chunk-C7ZKT99Y.js";var c;var y=f(()=>{Kr();sT();f$1();Kr();c=class s{toast=I(u);cliStatus=wt(null);running=wt(new Set);status=this.cliStatus.asReadonly();pending=this.running.asReadonly();async loadStatus(){this.cliStatus.set(await window.electron.compose.status())}async up(t){await this.run(t,`up`)}async down(t){await this.run(t,`down`)}async recreate(t,n){this.running.update(e=>new Set(e).add(t));try{let e=await window.electron.compose.recreate(t,n);return e.ok?this.toast.success(oT().compose.recreateDone(n)):this.toast.error(e.problem),e.ok}finally{this.release(t)}}async run(t,n){this.running.update(e=>new Set(e).add(t));try{let e=await(n===`up`?window.electron.compose.up(t):window.electron.compose.down(t));if(e.ok){let r=oT().compose;this.toast.success(n===`up`?r.upDone(t):r.downDone(t))}else this.toast.error(e.problem)}finally{this.release(t)}}release(t){this.running.update(n=>{let e=new Set(n);return e.delete(t),e})}static ɵfac=function(n){return new(n||s)};static ɵprov=X({token:s,factory:s.ɵfac,providedIn:`root`})}});export{y as n,c as t};
1
+ import{H as Kr,P as I,Vn as ok,_r as wt,er as sk,ln as f,zt as X}from"./chunk-PPlXONP3.js";import{n as u,t as f$1}from"./chunk-Dob_vN7f.js";var c;var y=f(()=>{Kr();sk();f$1();Kr();c=class s{toast=I(u);cliStatus=wt(null);running=wt(new Set);status=this.cliStatus.asReadonly();pending=this.running.asReadonly();async loadStatus(){this.cliStatus.set(await window.electron.compose.status())}async up(t){await this.run(t,`up`)}async down(t){await this.run(t,`down`)}async recreate(t,n){this.running.update(e=>new Set(e).add(t));try{let e=await window.electron.compose.recreate(t,n);return e.ok?this.toast.success(ok().compose.recreateDone(n)):this.toast.error(e.problem),e.ok}finally{this.release(t)}}async run(t,n){this.running.update(e=>new Set(e).add(t));try{let e=await(n===`up`?window.electron.compose.up(t):window.electron.compose.down(t));if(e.ok){let r=ok().compose;this.toast.success(n===`up`?r.upDone(t):r.downDone(t))}else this.toast.error(e.problem)}finally{this.release(t)}}release(t){this.running.update(n=>{let e=new Set(n);return e.delete(t),e})}static ɵfac=function(n){return new(n||s)};static ɵprov=X({token:s,factory:s.ɵfac,providedIn:`root`})}});export{y as n,c as t};
@@ -1 +1 @@
1
- import{E as G,H as Kr,Pt as X,_r as wt,an as f$1,kt as W}from"./chunk-DOxgdvK8.js";var y;var m;var T;var u;var f=f$1(()=>{Kr();Kr();y={success:5e3,error:0},m=4,T=200,u=class o{items=wt([]);counter=0;toasts=this.items.asReadonly();add(t){this.counter+=1;let e=t.type??`success`,r={id:this.counter,title:t.title??null,description:t.description,type:e,timeout:t.timeout??y[e],closing:!1},l=this.items().filter(n=>!(n.description===r.description&&n.type===r.type));return this.items.set([...l,r].slice(-m)),r.id}success(t,e){return this.add(W({description:t,type:`success`},e===void 0?{}:{title:e}))}error(t,e){return this.add(W({description:t,type:`error`},e===void 0?{}:{title:e}))}close(t){this.items.update(e=>e.map(r=>r.id===t?G(W({},r),{closing:!0}):r)),setTimeout(()=>this.items.update(e=>e.filter(r=>r.id!==t)),T)}static ɵfac=function(e){return new(e||o)};static ɵprov=X({token:o,factory:o.ɵfac,providedIn:`root`})}});export{u as n,f as t};
1
+ import{E as G,H as Kr,Pt as W,_r as wt,ln as f$1,zt as X}from"./chunk-PPlXONP3.js";var y;var m;var T;var u;var f=f$1(()=>{Kr();Kr();y={success:5e3,error:0},m=4,T=200,u=class o{items=wt([]);counter=0;toasts=this.items.asReadonly();add(t){this.counter+=1;let e=t.type??`success`,r={id:this.counter,title:t.title??null,description:t.description,type:e,timeout:t.timeout??y[e],closing:!1},l=this.items().filter(n=>!(n.description===r.description&&n.type===r.type));return this.items.set([...l,r].slice(-m)),r.id}success(t,e){return this.add(W({description:t,type:`success`},e===void 0?{}:{title:e}))}error(t,e){return this.add(W({description:t,type:`error`},e===void 0?{}:{title:e}))}close(t){this.items.update(e=>e.map(r=>r.id===t?G(W({},r),{closing:!0}):r)),setTimeout(()=>this.items.update(e=>e.filter(r=>r.id!==t)),T)}static ɵfac=function(e){return new(e||o)};static ɵprov=X({token:o,factory:o.ɵfac,providedIn:`root`})}});export{u as n,f as t};
@@ -0,0 +1 @@
1
+ import{Dn as kC,En as jc,H as Kr,It as Wr,cn as ec,gt as SC,hr as wc,ln as f,qn as qr,s as Ac,un as fS}from"./chunk-PPlXONP3.js";function y(e,n){e&1&&(qr(0,`p`,0),fS(1),Wr()),e&2&&(ec(),Ac(` `,n,` `))}var u;var x=f(()=>{Kr();Kr();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&&SC(0,y,2,1,`p`,0),t&2){let a;kC((a=b.problem())?0:-1,a)}},encapsulation:2})}});export{x as n,u as t};
@@ -0,0 +1 @@
1
+ import{B as Jm,Ct as Tc,Dn as kC,Ft as Wm,Gn as pg,H as Kr,J as My,M as HC,On as kc,Qn as rg,Sn as hg,Tr as zr,Vn as ok,W as Ld,X as Nc,Zn as rf,_ as DC,_n as gj,_r as wt,b as EC,cn as ec,er as sk,gt as SC,hr as wc,i as $i,in as dk,k as Gm,ln as f,o as $t,pt as Rm,r as $d,s as Ac,sr as vS,u as BC,un as fS,ur as vg,ut as RC,vt as Sc}from"./chunk-PPlXONP3.js";import"./chunk-GnwhPzR0.js";import"./chunk-InjvrsZj.js";import"./chunk-Bz_HteBH.js";import{n as ro,t as Ql}from"./chunk-ChzmfIu4.js";import{a as _e,i as Ut,n as Pe,o as mi,r as Qe,s as pi,t as De}from"./chunk-CK0MxuKs.js";function te(n,a){if(n&1&&($i(0,`button`,7),Gm(1,`app-icon`,10),fS(2),Nc()),n&2){let e=a.$implicit,t=HC();Wm(`value`,e),ec(),Wm(`name`,t.tabIcons[e])(`size`,14),ec(),Ac(``,t.tabLabel(e),` `)}}function ae(n,a){if(n&1&&Gm(0,`app-terminal-view`,11),n&2)Wm(`active`,HC().tab()===`terminal`)}function ne(n,a){if(n&1&&($i(0,`p`,12),fS(1),Nc()),n&2){let e=HC();ec(),pg(e.t().loading)}}function ie(n,a){if(n&1){let e=RC();$i(0,`div`,9)(1,`app-assistant-view`,13),Jm(`commandChosen`,function(g){Ld(e);return $d(HC().insertCommand(g))}),Nc()()}}var ee;var J;f(()=>{Kr();Pe();dk();Qe();Ql();sk();Kr();ee=()=>[ro];J=class n{terminal=gj(ro);t=$t(()=>ok().terminal);tabIcons={terminal:`terminal`,assistant:`sparkle`};assistantConfigured=wt(!1);tabNames=$t(()=>this.assistantConfigured()?[`terminal`,`assistant`]:[`terminal`]);tab=wt(`terminal`);visited=wt(new Set([`terminal`]));constructor(){rf(()=>{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,ro,5),e&2&&BC()},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&&($i(0,`section`,0)(1,`div`,1)(2,`h1`,2),fS(3),Nc(),$i(4,`p`,3),fS(5),$i(6,`code`),fS(7,`docker`),Nc(),fS(8),$i(9,`strong`,4),fS(10,`root`),Nc(),fS(11),$i(12,`code`),fS(13,`alpine`),Nc(),fS(14),Nc()(),$i(15,`div`,5),vg(`valueChange`,function(l){return vS(t.tab,l)||(t.tab=l),l}),$i(16,`div`,6),kc(17,te,3,4,`button`,7,Sc),Nc(),$i(19,`div`,8),Rm(20,ae,1,1)(21,ne,2,1),DC(22,20,ee,21),EC(),Nc(),SC(24,ie,2,0,`div`,9),Nc()()),e&2&&(ec(3),pg(t.t().title),ec(2),Ac(` `,t.t().intro.start,` `),ec(3),pg(t.t().intro.afterDocker),ec(3),pg(t.t().intro.afterRoot),ec(3),Ac(``,t.t().intro.afterAlpine,` `),ec(),hg(`value`,t.tab),ec(),zr(`aria-label`,t.t().tabsLabel),ec(),Tc(t.tabNames()),ec(7),kC(t.assistantConfigured()&&t.visited().has(`assistant`)?24:-1))},dependencies:[_e,mi,pi,De,My,Ut],encapsulation:2})}})();export{J as TerminalPage};
@@ -1 +1 @@
1
- import{H as Kr,Pt as X,_r as wt,an as f}from"./chunk-DOxgdvK8.js";function m(e){document.documentElement.dataset.theme=e}function h(){try{let e=localStorage.getItem(c);return e===`light`||e===`dark`?e:null}catch{return null}}function s(){try{return matchMedia(`(prefers-color-scheme: dark)`).matches}catch{return!1}}function d(){return h()??(s()?`dark`:`light`)}var c;var a;var u=f(()=>{Kr();Kr();c=`mx.theme`;a=class e{current=wt(d());theme=this.current.asReadonly();toggle(){let t=this.current()===`dark`?`light`:`dark`;this.current.set(t),m(t);try{localStorage.setItem(c,t)}catch{}}static ɵfac=function(i){return new(i||e)};static ɵprov=X({token:e,factory:e.ɵfac,providedIn:`root`})}});export{u as i,d as n,m as r,a as t};
1
+ import{H as Kr,_r as wt,ln as f,zt as X}from"./chunk-PPlXONP3.js";function m(e){document.documentElement.dataset.theme=e}function h(){try{let e=localStorage.getItem(c);return e===`light`||e===`dark`?e:null}catch{return null}}function s(){try{return matchMedia(`(prefers-color-scheme: dark)`).matches}catch{return!1}}function d(){return h()??(s()?`dark`:`light`)}var c;var a;var u=f(()=>{Kr();Kr();c=`mx.theme`;a=class e{current=wt(d());theme=this.current.asReadonly();toggle(){let t=this.current()===`dark`?`light`:`dark`;this.current.set(t),m(t);try{localStorage.setItem(c,t)}catch{}}static ɵfac=function(i){return new(i||e)};static ɵprov=X({token:e,factory:e.ɵfac,providedIn:`root`})}});export{u as i,d as n,m as r,a as t};
@@ -1 +1 @@
1
- import{B as Jm,Cr as yc,Dn as kg,Fn as mj,G as M,H as Kr,Hn as on$1,Kn as pj,Ln as nf,Mn as lf,Mt as Ws,N as Ho$1,O as Gi,Ot as Vr,P as I,Pt as X,Q as Nn$1,Qt as br,Sn as jc,Tr as zr,Tt as Uw,U as LE,Zn as rf,Zt as bj,_r as wt$1,an as f,at as Pr,dn as ge,dt as Rc,et as OE,g as Cj,it as PS,kt as W,lr as ve,mn as gl,mt as S,n as $D,nt as PC,o as $t$1,rr as te$1,t as $C,tr as sw,tt as Oe$1,un as gb,vt as Se$1,w as Ew,x as ES,y as Dj,yr as xm}from"./chunk-DOxgdvK8.js";function G(){return tt}function Lt(e){tt??=e}var tt;var be;var ue;var nt;var Ee=f(()=>{Kr();Kr();tt=null;be=class{},ue=(()=>{class e{historyGo(t){throw new Error(``)}static ɵfac=function(r){return new(r||e)};static ɵprov=X({token:e,factory:()=>I(nt),providedIn:`platform`})}return e})(),nt=(()=>{class e extends ue{_location;_history;_doc=I(br);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return G().getBaseHref(this._doc)}onPopState(t){let r=G().getGlobalEventTarget(this._doc,`window`);return r.addEventListener(`popstate`,t,!1),()=>r.removeEventListener(`popstate`,t)}onHashChange(t){let r=G().getGlobalEventTarget(this._doc,`window`);return r.addEventListener(`hashchange`,t,!1),()=>r.removeEventListener(`hashchange`,t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,r,i){this._history.pushState(t,r,i)}replaceState(t,r,i){this._history.replaceState(t,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static ɵfac=function(r){return new(r||e)};static ɵprov=X({token:e,factory:()=>new e,providedIn:`platform`})}return e})()});function ot(e,n){return e?n?e.endsWith(`/`)?n.startsWith(`/`)?e+n.slice(1):e+n:n.startsWith(`/`)?e+n:`${e}/${n}`:e:n}function rt(e){let n=e.search(/#|\?|$/);return e[n-1]===`/`?e.slice(0,n-1)+e.slice(n):e}function L(e){return e&&e[0]!==`?`?`?${e}`:e}function jt(){return new st(Oe$1(le))}function $t(e,n){if(!e||!n.startsWith(e))return n;let t=n.substring(e.length);return t===``||[`/`,`;`,`?`,`#`].includes(t[0])?t:n}function it(e){return e.replace(/\/index\.html$/,``)}function Ut(e){if(new RegExp(`^(https?:)?//`).test(e)){let[,t]=e.split(/\/\/[^\/]+/);return t}return e}var le;var kt;var Bt;var st;var at=f(()=>{Kr();Kr();Ws();Ee();le=(()=>{class e{historyGo(t){throw new Error(``)}static ɵfac=function(r){return new(r||e)};static ɵprov=X({token:e,factory:()=>I(Bt),providedIn:`root`})}return e})(),kt=new M(``),Bt=(()=>{class e extends le{_platformLocation;_baseHref;_removeListenerFns=[];constructor(t,r){super(),this._platformLocation=t,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??I(br).location?.origin??``}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return ot(this._baseHref,t)}path(t=!1){let r=this._platformLocation.pathname+L(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${r}${i}`:r}pushState(t,r,i,o){let s=this.prepareExternalUrl(i+L(o));this._platformLocation.pushState(t,r,s)}replaceState(t,r,i,o){let s=this.prepareExternalUrl(i+L(o));this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static ɵfac=function(r){return new(r||e)(Oe$1(ue),Oe$1(kt,8))};static ɵprov=X({token:e,factory:e.ɵfac,providedIn:`root`})}return e})(),st=(()=>{class e{_subject=new ge;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(t){this._locationStrategy=t;let r=this._locationStrategy.getBaseHref();this._basePath=Ut(rt(it(r))),this._locationStrategy.onPopState(i=>{let o={url:this.path(!0),pop:!0,state:i.state,type:i.type};i.hasUAVisualTransition&&(o.hasUAVisualTransition=!0),this._subject.next(o)})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=``){return this.path()==this.normalize(t+L(r))}normalize(t){return e.stripTrailingSlash($t(this._basePath,it(t)))}prepareExternalUrl(t){return t&&t[0]!==`/`&&(t=`/`+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r=``,i=null){this._locationStrategy.pushState(i,``,t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+L(r)),i)}replaceState(t,r=``,i=null){this._locationStrategy.replaceState(i,``,t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+L(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t=``,r){this._urlChangeListeners.forEach(i=>i(t,r))}subscribe(t,r,i){return this._subject.subscribe({next:t,error:r??void 0,complete:i??void 0})}static normalizeQueryParams=L;static joinWithSlash=ot;static stripTrailingSlash=rt;static ɵfac=function(r){return new(r||e)(Oe$1(le))};static ɵprov=X({token:e,factory:()=>jt(),providedIn:`root`})}return e})()});function q(e,n){let t=$C(e),r=t[PC.NumberSymbols][n];if(typeof r>`u`){if(n===F.CurrencyDecimal)return t[PC.NumberSymbols][F.Decimal];if(n===F.CurrencyGroup)return t[PC.NumberSymbols][F.Group]}return r}function lt(e,n){return $C(e)[PC.NumberFormats][n]}function Kt(e,n,t,r,i,o,s=!1){let a=``,g=!1;if(!isFinite(e))a=q(t,Number.isNaN(e)?F.NaN:F.Infinity);else{let c=Qt(e);s&&(c=Jt(c));let f=n.minInt,u=n.minFrac,d=n.maxFrac;if(o){let p=o.match(Yt);if(p===null)throw new S(2306,!1);let M=p[1],D=p[3],v=p[5];M!=null&&(f=Ae(M)),D!=null&&(u=Ae(D)),v!=null?d=Ae(v):D!=null&&u>d&&(d=u);let H=100;if(f>H||u>H||d>H)throw new S(2306,!1)}en(c,u,d);let l=c.digits,m=c.integerLen,y=c.exponent,S$1=[];for(g=l.every(p=>!p);m<f;m++)l.unshift(0);for(;m<0;m++)l.unshift(0);m>0?S$1=l.splice(m,l.length):(S$1=l,l=[0]);let C=[];for(l.length>=n.lgSize&&C.unshift(l.splice(-n.lgSize,l.length).join(``));l.length>n.gSize;)C.unshift(l.splice(-n.gSize,l.length).join(``));l.length&&C.unshift(l.join(``)),a=C.join(q(t,r)),S$1.length&&(a+=q(t,i)+S$1.join(``)),y&&(a+=q(t,F.Exponential)+`+`+y)}return e<0&&!g?a=n.negPre+a+n.negSuf:a=n.posPre+a+n.posSuf,a}function ct(e,n,t){return Kt(e,Xt(lt(n,Fe.Decimal),q(n,F.MinusSign)),n,F.Group,F.Decimal,t)}function Xt(e,n=`-`){let t={minInt:1,minFrac:0,maxFrac:0,posPre:``,posSuf:``,negPre:``,negSuf:``,gSize:0,lgSize:0},r=e.split(qt),i=r[0],o=r[1],s=i.indexOf(ce)!==-1?i.split(ce):[i.substring(0,i.lastIndexOf(ee)+1),i.substring(i.lastIndexOf(ee)+1)],a=s[0],g=s[1]||``;t.posPre=a.substring(0,a.indexOf(we));for(let f=0;f<g.length;f++){let u=g.charAt(f);u===ee?t.minFrac=t.maxFrac=f+1:u===we?t.maxFrac=f+1:t.posSuf+=u}let c=a.split(Zt);if(t.gSize=c[1]?c[1].length:0,t.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,o){let f=i.length-t.posPre.length-t.posSuf.length,u=o.indexOf(we);t.negPre=o.substring(0,u).replace(/'/g,``),t.negSuf=o.slice(u+f).replace(/'/g,``)}else t.negPre=n+t.posPre,t.negSuf=t.posSuf;return t}function Jt(e){if(e.digits[0]===0)return e;let n=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(n===0?e.digits.push(0,0):n===1&&e.digits.push(0),e.integerLen+=2),e}function Qt(e){let n=Math.abs(e)+``,t=0,r,i,o,s,a;for((i=n.indexOf(ce))>-1&&(n=n.replace(ce,``)),(o=n.search(/e/i))>0?(i<0&&(i=o),i+=+n.slice(o+1),n=n.substring(0,o)):i<0&&(i=n.length),o=0;n.charAt(o)===ee;o++);if(o===(a=n.length))r=[0],i=1;else{for(a--;n.charAt(a)===ee;)a--;for(i-=o,r=[],s=0;o<=a;o++,s++)r[s]=Number(n.charAt(o))}return i>ut&&(r=r.splice(0,ut-1),t=i-1,i=1),{digits:r,exponent:t,integerLen:i}}function en(e,n,t){if(n>t)throw new S(2307,!1);let r=e.digits,i=r.length-e.integerLen,o=Math.min(Math.max(n,i),t),s=o+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let u=s;u<r.length;u++)r[u]=0}else{i=Math.max(0,i),e.integerLen=1,r.length=Math.max(1,s=o+1),r[0]=0;for(let u=1;u<s;u++)r[u]=0}if(a>=5)if(s-1<0){for(let u=0;u>s;u--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[s-1]++;for(;i<Math.max(0,o);i++)r.push(0);let g=o!==0,c=n+e.integerLen,f=r.reduceRight(function(u,d,l,m){return d=d+u,m[l]=d<10?d:d-10,g&&(m[l]===0&&l>=c?m.pop():g=!1),d>=10?1:0},0);f&&(r.unshift(f),e.integerLen++)}function Ae(e){let n=parseInt(e);if(isNaN(n))throw new S(2305,!1);return n}function nn(e,n){return new S(2100,!1)}function on(e){return!(e==null||e===``||e!==e)}function sn(e){if(typeof e==`string`&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!=`number`)throw new S(2309,!1);return e}var Fe;var F;var Yt;var ut;var ce;var ee;var qt;var Zt;var we;var tn;var rn;var dt=f(()=>{Kr();Kr();Fe=(function(e){return e[e.Decimal=0]=`Decimal`,e[e.Percent=1]=`Percent`,e[e.Currency=2]=`Currency`,e[e.Scientific=3]=`Scientific`,e})(Fe||{}),F={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};Yt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,ut=22,ce=`.`,ee=`0`,qt=`;`,Zt=`,`,we=`#`;tn=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=I(Se$1);constructor(t){this._viewContainerRef=t}ngOnChanges(t){if(this._shouldRecreateView(t)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this._getInjector()})}}_getInjector(){return this.ngTemplateOutletInjector===`outlet`?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,r,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,i):!1,get:(t,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static ɵfac=function(r){return new(r||e)(Vr(Gi))};static ɵdir=OE({type:e,selectors:[[``,`ngTemplateOutlet`,``]],inputs:{ngTemplateOutletContext:`ngTemplateOutletContext`,ngTemplateOutlet:`ngTemplateOutlet`,ngTemplateOutletInjector:`ngTemplateOutletInjector`},features:[Ew]})}return e})();rn=(()=>{class e{_locale;constructor(t){this._locale=t}transform(t,r,i){if(!on(t))return null;i||=this._locale;try{return ct(sn(t),i,r)}catch(o){throw nn(e,o.message)}}static ɵfac=function(r){return new(r||e)(Vr(Rc,16))};static ɵpipe=LE({name:`number`,type:e,pure:!0})}return e})()});function an(e,n){n=encodeURIComponent(n);for(let t of e.split(`;`)){let r=t.indexOf(`=`),[i,o]=r==-1?[t,``]:[t.slice(0,r),t.slice(r+1)];if(i.trim()!==n)continue;let s=o;try{s=decodeURIComponent(o)}catch{}return s.length>1&&s[0]===`"`&&s[s.length-1]===`"`&&(s=s.slice(1,-1)),s}return null}var ft=f(()=>{});function Se(e){return e===ln}var ln;var Me=f(()=>{at();dt();Ee();Kr();ft();ln=`browser`});function fn(){let e=G()?G().getUserAgent():``;return/android (\d+)/.test(e.toLowerCase())}function gn(e){return e==null||mn(e)===0}function mn(e){return e==null?null:Array.isArray(e)||typeof e==`string`?e.length:e instanceof Set?e.size:null}function yn(e){return gn(e.value)?{required:!0}:null}function gt(e){return null}function yt(e){return e!=null}function Dn(e){return yc(e)?on$1(e):e}function Dt(e){let n={};return e.forEach(t=>{n=t!=null?W(W({},n),t):n}),Object.keys(n).length===0?null:n}function vt(e,n){return n.map(t=>t(e))}function vn(e){return!e.validate}function Ct(e){return e.map(n=>vn(n)?n:t=>n.validate(t))}function Cn(e){if(!e)return null;let n=e.filter(yt);return n.length==0?null:function(t){return Dt(vt(t,n))}}function _n(e){return e!=null?Cn(Ct(e)):null}function bn(e){if(!e)return null;let n=e.filter(yt);return n.length==0?null:function(t){return gb(vt(t,n).map(Dn)).pipe(Nn$1(Dt))}}function En(e){return e!=null?bn(Ct(e)):null}function wn(e){return e.tagName===`INPUT`||e.tagName===`SELECT`||e.tagName===`TEXTAREA`}function An(e,n,t,r){switch(t){case`name`:e.setAttribute(n,t,r);break;case`disabled`:case`readonly`:case`required`:r?e.setAttribute(n,t,``):e.removeAttribute(n,t);break;case`max`:case`min`:case`minLength`:case`maxLength`:r!==void 0?e.setAttribute(n,t,r.toString()):e.removeAttribute(n,t);break}}function Mn(e){return Object.getPrototypeOf(e.constructor)===cn}function In(e,n){if(!n)return null;let t,r,i;return n.forEach(o=>{o.constructor===pt?t=o:Mn(o)?r=o:i=o}),i||r||t||null}var mt;var cn;var Oe;var dn;var hn;var pt;var pn;var Ie;var Ne;var de;var Ve;var Fn;var Sn;var _t;var fe;var bt=f(()=>{Kr();Kr();Ws();lf();Me();mt=(()=>{class e{_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||e)(Vr(gl),Vr(Pr))};static ɵdir=OE({type:e})}return e})(),cn=(()=>{class e extends mt{static ɵfac=(()=>{let t;return function(i){return(t||(t=Uw(e)))(i||e)}})();static ɵdir=OE({type:e,features:[xm]})}return e})(),Oe=new M(``),dn={provide:Oe,useExisting:Ho$1(()=>pt),multi:!0};hn=new M(``),pt=(()=>{class e extends mt{_compositionMode;_composing=!1;constructor(t,r,i){super(t,r),this._compositionMode=i,this._compositionMode??=!fn()}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||e)(Vr(gl),Vr(Pr),Vr(hn,8))};static ɵdir=OE({type:e,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:[ES([dn]),xm]})}return e})();pn=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(n){this._rawValidators=n||[],this._composedValidatorFn=_n(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=En(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control?.reset(n)}hasError(n,t){return this.control?this.control.hasError(n,t):!1}getError(n,t){return this.control?this.control.getError(n,t):null}},Ne=class{},de=class extends Ne{source;constructor(n){super(),this.source=n}};Ve=class{kind;context;control;message;constructor({kind:n,context:t,control:r}){this.kind=n,this.context=t,this.control=r}},Fn=(()=>{class e{_validator=gt;_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):gt,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||e)};static ɵdir=OE({type:e,features:[Ew]})}return e})(),Sn={provide:pn,useExisting:Ho$1(()=>_t),multi:!0},_t=(()=>{class e extends Fn{required;inputName=`required`;normalizeInput=Dj;createValidator=t=>yn;enabled(t){return t}static ɵfac=(()=>{let t;return function(i){return(t||(t=Uw(e)))(i||e)}})();static ɵdir=OE({type:e,selectors:[[``,`required`,``,`formControlName`,``,3,`type`,`checkbox`],[``,`required`,``,`formControl`,``,3,`type`,`checkbox`],[``,`required`,``,`ngModel`,``,3,`type`,`checkbox`]],hostVars:1,hostBindings:function(r,i){r&2&&zr(`required`,i._enabled?``:null)},inputs:{required:`required`},standalone:!1,features:[ES([Sn]),xm]})}return e})();fe=class extends Ie{_parent=null;name=null;valueAccessor=null;isCustomControlBased=!1;userOnReset;resetSubscription;set onReset(n){this.userOnReset=n,this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.control&&(this.resetSubscription=this.control.events.subscribe(t=>{t instanceof de&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription?.add(this.resetSubscription))}isNativeFormElement=!1;rawValueAccessors;_selectedValueAccessor=null;get selectedValueAccessor(){return this._selectedValueAccessor??=In(this,this.rawValueAccessors)}parseErrorsValidator=null;renderer;injector;requiredValidatorViaDi;subscription;customControlBindings=null;constructor(n,t,r){super(),this.injector=n,this.renderer=t,this.rawValueAccessors=r,this.injector?.get(ve)?.onDestroy(()=>{this.removeParseErrorsValidator(this.control),this.subscription?.unsubscribe()})}setupCustomControl(){this.subscription?.unsubscribe();let n=this.injector?.get(bj);if(!this.control||!n)return;let t=n.markForCheck.bind(n);this.subscription=new te$1,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 de&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription.add(this.resetSubscription)),this.parseErrorsValidator&&this.control.addValidators(this.parseErrorsValidator)}ngControlCreate(n){!n.nativeElement.hasAttribute?.(`ngNoCva`)&&(this.rawValueAccessors&&this.rawValueAccessors.length>0||this.valueAccessor!==null)||!n.customControl||(this.isCustomControlBased=!0,n.listenToCustomControlModel(i=>{this.control?.markAsDirty(),this.control?.setValue(i,{emitModelToViewChange:!1}),this.viewToModelUpdate(i)}),n.listenToCustomControlOutput(`touch`,()=>{this.control?.markAsTouched()}),this.customControlBindings={},this.isNativeFormElement=wn(n.nativeElement),this.requiredValidatorViaDi=this._rawValidators.find(i=>i instanceof _t))}ngControlUpdate(n,t){if(!this.isCustomControlBased)return;let r=this.control,i=this.customControlBindings;Object.is(i.value,r.value)||(i.value=r.value,n.setCustomControlModelInput(r.value)),this.bindControlProperty(n,i,`touched`,r.touched),this.bindControlProperty(n,i,`dirty`,r.dirty),this.bindControlProperty(n,i,`valid`,r.valid),this.bindControlProperty(n,i,`invalid`,r.invalid),this.bindControlProperty(n,i,`pending`,r.pending),this.bindControlProperty(n,i,`disabled`,r.disabled),this.shouldBindRequired&&this.bindControlProperty(n,i,`required`,this.isRequired);let o=r.errors;if(i.errors!==o){i.errors=o;let s=this._convertErrors(o);n.setInputOnDirectives(`errors`,s)}}get isRequired(){return(this.requiredValidatorViaDi?._enabled||this.control?._hasRequired())??!1}get shouldBindRequired(){return!0}bindControlProperty(n,t,r,i){if(t[r]===i)return;t[r]=i;let o=n.setInputOnDirectives(r,i);this.isNativeFormElement&&!o&&(r===`disabled`||r===`required`)&&this.renderer&&An(this.renderer,n.nativeElement,r,i)}_convertErrors(n){if(n===null)return[];let t=this.control;return Object.entries(n).map(([r,i])=>new Ve({context:i,kind:r,control:t}))}setParseErrorSource(n){if(n===void 0)return;let t=null,r=$t$1(()=>{let i=n();return i.length===0?null:i.reduce((o,s)=>(o[s.kind]=s,o),{})});this.parseErrorsValidator=(()=>t).bind(this),rf(()=>{t=r(),this.control?.updateValueAndValidity({emitEvent:!1})},{injector:this.injector})}removeParseErrorsValidator(n){this.parseErrorsValidator&&(n?.removeValidators(this.parseErrorsValidator),n?.updateValueAndValidity({emitEvent:!1}))}}});function Nn(e){return{provide:Oe,useExisting:Ho$1(()=>e),multi:!0}}function To(){return I(Vn)}function On(e){return e?Object.entries(e).map(([n,t])=>{let r=typeof t==`string`?t:t&&typeof t==`object`&&typeof t.message==`string`?t.message:void 0;return r===void 0?{kind:n}:{kind:n,message:r}}):[]}function Tn(){let e=I(Se$1),n=I(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`}),g=wt$1(!1,{debugName:`RdxNgControlState.disabled`}),c=wt$1(null,{debugName:`RdxNgControlState.rawErrors`}),f=$t$1(()=>On(c()),{debugName:`RdxNgControlState.errors`}),u=wt$1(!1,{debugName:`RdxNgControlState.dirty`}),d=wt$1(!1,{debugName:`RdxNgControlState.touched`}),l=!1,m,y;return queueMicrotask(()=>{if(l)return;let C=e.get(fe,null,{self:!0,optional:!0}),p=C?.control;if(!p||typeof p.events?.subscribe!=`function`)return;y=v=>p.reset(v);let M=()=>{r.set(C.name==null?void 0:String(C.name)),i.set(p.value),o.set(p.valid),s.set(p.invalid),a.set(p.pending),g.set(p.disabled),c.set(p.errors),u.set(p.dirty),d.set(p.touched)};M();let D=p.events.subscribe(M);m=()=>D.unsubscribe(),t.set(!0)}),n.onDestroy(()=>{l=!0,m?.()}),{connected:t.asReadonly(),name:r.asReadonly(),value:i.asReadonly(),valid:o.asReadonly(),invalid:s.asReadonly(),pending:a.asReadonly(),disabled:g.asReadonly(),errors:f,dirty:u.asReadonly(),touched:d.asReadonly(),reset:C=>y?(y(C),!0):!1}}function It(e){return`${Rn}/${e}.md`}function Nt(e,n,t){return`[rdx:${e}] ${n}${t?` See ${It(t)}`:``}`}function Ro(e,n,t){!Cj()||Et.has(e)||(Et.add(e),console.warn(Nt(e,n,t)))}function k(e,n,t){throw new Error(Nt(e,n,t))}function xo(e,n){let t=`${e.replace(/\s*Context$/,``)}Context`,r=new M(t);return[(s=!1)=>{let a=I(r,{optional:!0});if(a==null&&!s){let g=n?` See ${It(n)} 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).${g}`)}return a},s=>({provide:r,useFactory:s})]}function jn(e){return I(Bn).getId(e)}function $n(e){let n=wt$1(!1),t=$t$1(()=>{let s=e.errors()??[],a=e.ngControlState?.connected()?e.ngControlState.errors():[];return a.length>0?[...s,...a]:s}),r=$t$1(()=>e.invalid()||t().length>0||!!(e.ngControlState?.connected()&&e.ngControlState.invalid())),i=$t$1(()=>(e.pending?.()??!1)||!!(e.ngControlState?.connected()&&e.ngControlState.pending()));return{invalidState:r,pendingState:i,validState:$t$1(()=>i()?null:r()?!1:e.ngControlState?.connected()&&e.ngControlState.disabled()?null:!0),errorsState:t,touchedState:$t$1(()=>e.ngControlState?.connected()?e.ngControlState.touched():e.touched()),dirtyState:$t$1(()=>e.ngControlState?.connected()?e.ngControlState.dirty():e.dirty()||n()),markDirty:()=>n.set(!0),markAsTouched:()=>{e.cva?.markAsTouched(),e.touched.set(!0),e.touch.emit()},resetInteractionState:()=>{e.touched.set(!1),n.set(!1)},resetDirtyState:()=>n.set(!1)}}function zo(e,n,t){let r=!1,i=!1,o=!1;return{eventDetails:{reason:e,event:n,trigger:t,cancel:()=>{r=!0},isCanceled:()=>r,allowPropagation:()=>{i=!0},get isPropagationAllowed(){return i},preventUnmountOnClose:()=>{o=!0}},shouldPreventUnmountOnClose:()=>o}}function Ot(){let e=new Map;return{emit(n,t){let r=e.get(n);if(r)for(let i of[...r])i(t)},on(n,t){let r=e.get(n);r||(r=new Set,e.set(n,r)),r.add(t)},off(n,t){e.get(n)?.delete(t)}}}function Hn(){return[{provide:K,useFactory:()=>new K},{provide:Tt,useExisting:K}]}function zn(e){return e.context?.open()??!1}function Wo(){return{provide:xe,useFactory:()=>I(xe,{optional:!0,skipSelf:!0})??new Re}}function Yo(e){return{provide:xt,useFactory:e}}function Wn(e){return e!==null&&typeof e.nodeType==`number`}function Zo(e){return new Le(e)}function Zn(e){return`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}function Ko(e,n,t){let r=e.ownerDocument,i=t.marker??qn,o=null,s=()=>{o?.remove(),o=null},a=rf(()=>{let g=t.isOpen(),c=t.shouldRender();if(c&&!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 f=t.cutout?.()??null;f&&(o.style.clipPath=Zn(f.getBoundingClientRect())),e.parentElement?.insertBefore(o,e)}else c||s();o&&(o.style.pointerEvents=t.passThrough?.()?`none`:``,g?o.removeAttribute(`inert`):o.setAttribute(`inert`,``))},{injector:n});n.get(ve).onDestroy(()=>{a.destroy(),s()})}function Kn(e){let{maxTouchPoints:n,webkitBackdropFilter:t}=e,r=e.userAgent.toLowerCase(),i=e.platform.toLowerCase(),o=t,s=!o&&r.includes(`firefox`),a=!o&&r.includes(`chrom`),g=/^i(os$|p)/.test(i)||i===`macintel`&&n>1||/ip(ad|hone|od)/.test(r),c=i===`android`||r.includes(`android`),f=!g&&i.startsWith(`mac`),u=i.startsWith(`win`),d=!c&&/^(linux|chrome os)/.test(i),l=f||g;return{engine:{webkit:o,gecko:s,blink:a},os:{ios:g,android:c,mac:f,windows:u,linux:d,apple:l},screenReader:{voiceOver:l},env:{jsdom:/jsdom|happydom/.test(r)}}}function Xn(){let e=typeof navigator>`u`?void 0:navigator;return{userAgent:e?.userAgent??``,platform:e?.platform??``,maxTouchPoints:e?.maxTouchPoints??0,webkitBackdropFilter:typeof CSS<`u`&&CSS.supports?.(`-webkit-backdrop-filter:none`)===!0}}function Xo(e=document){let n=e.activeElement;if(n==null)return null;for(;n!=null&&n.shadowRoot!=null&&n.shadowRoot.activeElement!=null;)n=n.shadowRoot.activeElement;return n}function Jo(e){return Be.engine.webkit&&e.movementX===0&&e.movementY===0}function Qo(e){let n=I(Pr).nativeElement,t=n.ownerDocument,r=I(ve);if(!t||!Se(I(sw)))return Jn;let i=[],o,s=[],a=!1,g=!0,c=!1,f=()=>{let l=e.form(),m=l?t.getElementById(l):typeof n.closest==`function`?n.closest(`form`):n.parentElement?.closest(`form`);return m?.localName===`form`?m:null},u=()=>{e.syncNativeControl?.();let l=e.name(),m=e.form(),y=e.disabled(),S=e.hasNativeControl?.()??!1,C=e.value&&e.serialize?e.serialize(e.value()):[];if(!c)return;let M=!!(l&&e.serialize&&!S)?C.length:0;for(;i.length>M;)i.pop()?.remove();for(;i.length<M;){let D=t.createElement(`input`);D.type=`hidden`;let v=i.at(-1);n.parentNode?.insertBefore(D,v?v.nextSibling:n.nextSibling),i.push(D)}for(let D=0;D<i.length;D++){let v=i[D];v.name=l,v.value=C[D],v.disabled=y,m?v.setAttribute(`form`,m):v.removeAttribute(`form`),v.hasAttribute(`data-rdx-native-form-control`)||(v.defaultValue=s[D]??C[D],v.setAttribute(`data-rdx-native-form-control`,``))}};rf(()=>{!a&&e.defaultValue&&(o=e.defaultValue(),s=e.serialize?e.serialize(o):[],a=!0)}),rf(u),$D(()=>{c=!0,kg(u)});let d=l=>{l.target!==f()||!e.onReset||!a||queueMicrotask(()=>{g&&!l.defaultPrevented&&kg(()=>e.onReset(o))})};return t.addEventListener(`reset`,d,!0),r.onDestroy(()=>{g=!1,t.removeEventListener(`reset`,d,!0);for(let l of i)l.remove()}),{ownerForm:f,sync:u,requestSubmit:()=>{kg(u),f()?.requestSubmit()}}}function je(e){let n=e.ownerDocument.defaultView;if(!n)return!1;let{overflow:t,overflowX:r,overflowY:i,display:o}=n.getComputedStyle(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&![`inline`,`contents`].includes(o)}function Qn(e){let n=e.defaultView;return n?n.innerWidth-e.documentElement.clientWidth>0:!1}function er(e){if(!e.defaultView||typeof CSS>`u`||!CSS.supports||!CSS.supports(`scrollbar-gutter`,`stable`))return!1;let t=e.documentElement,r=je(t)?t:e.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 tr(e){let n=e.documentElement,t=je(n)?n:e.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 nr(e){let n=e.documentElement,t=e.body,r=e.defaultView;if(!r)return()=>{};if(Be.engine.webkit&&(r.visualViewport?.scale??1)!==1)return()=>{};let i=0,o=0,s=!1,a={},g={},c=``,f=0,u=()=>{let m=r.getComputedStyle(n),y=r.getComputedStyle(t),C=(m.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;i=n.scrollTop,o=n.scrollLeft,a={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},c=n.style.scrollBehavior,g={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=n.scrollHeight>n.clientHeight,M=n.scrollWidth>n.clientWidth,D=m.overflowY===`scroll`||y.overflowY===`scroll`,v=m.overflowX===`scroll`||y.overflowX===`scroll`,H=Math.max(0,r.innerWidth-t.clientWidth),$e=Math.max(0,r.innerHeight-t.clientHeight),Ue=(parseFloat(y.marginTop)||0)+(parseFloat(y.marginBottom)||0),Ge=(parseFloat(y.marginLeft)||0)+(parseFloat(y.marginRight)||0),He=je(n)?n:t;if(s=er(e),s){n.style.scrollbarGutter=C,He.style.overflowY=`hidden`,He.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:C,overflowY:`hidden`,overflowX:`hidden`}),(p||D)&&(n.style.overflowY=`scroll`),(M||v)&&(n.style.overflowX=`scroll`),Object.assign(t.style,{position:`relative`,height:Ue||$e?`calc(100dvh - ${Ue+$e}px)`:`100dvh`,width:Ge||H?`calc(100vw - ${Ge+H}px)`:`100vw`,boxSizing:`border-box`,overflowY:`hidden`,overflowX:`hidden`,scrollBehavior:`unset`}),t.scrollTop=i,t.scrollLeft=o,n.style.scrollBehavior=`unset`},d=()=>{Object.assign(n.style,a),Object.assign(t.style,g),s||(n.scrollTop=i,n.scrollLeft=o,n.style.scrollBehavior=c)},l=()=>{d(),f=r.requestAnimationFrame(u)};return u(),r.addEventListener(`resize`,l),()=>{f&&r.cancelAnimationFrame(f),d(),r.removeEventListener(`resize`,l)}}function rr(e){let n=Ft.get(e);return n||(n=new ke(e),Ft.set(e,n)),n}function es(e,n={}){let t=I(br),r=Se(I(sw)),i=null,o=null,s=()=>{i?.(),i=null,o=null};rf(()=>{if(!r)return;let a=n.referenceElement?.()?.ownerDocument??t;e()?(!i||o!==a)&&(s(),i=rr(a).acquire(),o=a):i&&s()}),r&&I(ve).onDestroy(s)}function ts(e){let n=I(Se$1),t=I(ve),r=wt$1(void 0),i,o,s,a=0,g=()=>{s!==void 0&&(cancelAnimationFrame(s),s=void 0),o!==void 0&&(clearTimeout(o),o=void 0)},c=(u,d)=>{d===a&&(g(),r.set(void 0),t.destroyed||e(u))},f=(u,d)=>{let l=i,m=l?or(l):0;if(!l||m===0){c(u,d);return}let y=typeof l.getAnimations==`function`?l.getAnimations():[];o=setTimeout(()=>c(u,d),m+ir),y.length!==0&&Promise.all(y.map(S=>S.finished.catch(()=>{}))).then(()=>c(u,d))};return t.onDestroy(g),{status:r.asReadonly(),registerElement:u=>(i=u,()=>{i===u&&(i=void 0)}),start:u=>{let d=++a;g(),r.set(u?`starting`:`ending`),$D(()=>{t.destroyed||d!==a||(u?s=requestAnimationFrame(()=>{s=void 0,!(t.destroyed||d!==a)&&(r.set(void 0),f(u,d))}):f(u,d))},{injector:n})}}}function or(e){let n=getComputedStyle(e);return Math.max(St(n.transitionDuration,n.transitionDelay),St(n.animationDuration,n.animationDelay))}function St(e,n){let t=e.split(`,`).map(Mt),r=n.split(`,`).map(Mt);return t.reduce((i,o,s)=>Math.max(i,o+r[s%r.length]),0)}function Mt(e){let n=e.trim(),t=Number.parseFloat(n);return Number.isFinite(t)?n.endsWith(`ms`)?t:t*1e3:0}var Vn;var Rn;var Et;var xn;var Vt;var Pn;var Ln;var kn;var ko;var Bo;var jo;var $o;var Uo;var Go;var wt;var Bn;var Un;var Ho;var Gn;var K;var Tt;var te;var Rt;var Te;var Z;var Re;var xe;var xt;var qo;var Pe;var Yn;var Le;var qn;var Be;var Jn;var At;var ke;var Ft;var ir;var sr=f(()=>{Kr();Kr();bt();Me();Vn=(()=>{class e{constructor(){this.valueInput=jc(void 0,{alias:`value`}),this.disabledInput=jc(!1,{alias:`disabled`,transform:Dj}),this.valueChange=pj(),this._value=PS(()=>this.valueInput()),this.value=this._value.asReadonly(),this._disabled=PS(()=>this.disabledInput()),this.disabled=this._disabled.asReadonly()}writeValue(t){kg(()=>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||e)}}static{this.ɵdir=OE({type:e,inputs:{valueInput:[1,`value`,`valueInput`],disabledInput:[1,`disabled`,`disabledInput`]},outputs:{valueChange:`valueChange`},exportAs:[`rdxControlValueAccessor`],features:[ES([Nn(e)])]})}}return e})();Rn=`https://radix-ng.com`;Et=new Set;xn=[`day`,`month`,`year`],Vt=[`hour`,`minute`,`second`,`dayPeriod`],Pn=[`literal`,`timeZoneName`],Ln=[...xn,...Vt],[...Vt],kn=[...Ln,...Pn],kn.filter(e=>e!==`literal`),ko=`ArrowDown`,Bo=`ArrowLeft`,jo=`ArrowRight`,$o=`ArrowUp`,Uo=`End`,Go=`Home`,wt=new Map,Bn=(()=>{class e{constructor(){this.appId=I(nf)}getId(t){let r=this.appId===`ng`?t:t+this.appId,i=wt.get(r)??0;return wt.set(r,i+1),`${r}${i}`}static{this.ɵfac=function(r){return new(r||e)}}static{this.ɵprov=X({token:e,factory:e.ɵfac,providedIn:`root`})}}return e})();Un=new M(`RdxFieldValidity`),Ho=(()=>{class e{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=pj(),this.ngControlState=Tn(),this.formUi=$n({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=I(Un,{optional:!0}),this.displayValid=$t$1(()=>this.fieldValidity?this.fieldValidity():this.formUi.validState()),rf(()=>{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||e)}}static{this.ɵdir=OE({type:e,inputs:{invalid:[1,`invalid`],pending:[1,`pending`],touched:[1,`touched`],dirty:[1,`dirty`],errors:[1,`errors`]},outputs:{touched:`touchedChange`,touch:`touch`}})}}return e})();Gn=`utils/floating-tree`,K=class{constructor(){this._state=wt$1({status:`pending`}),this.status=$t$1(()=>this._state().status),this.tree=$t$1(()=>{let n=this._state();return n.status===`registered`?n.tree:null}),this.node=$t$1(()=>{let n=this._state();return n.status===`registered`?n.node:null})}register(n,t){t.tree!==n&&k(`floating/registration-mismatch`,`register(tree, node): node.tree must equal tree. Node "${t.id}" belongs to a different tree.`,Gn),this._state.set({status:`registered`,tree:n,node:t})}markDetached(){this._state.set({status:`detached`})}clear(){this._state.set({status:`pending`})}},Tt=new M(`RdxFloatingRegistration`);te=new WeakMap,Rt=Symbol(`RdxFloatingNode`),Te=class{constructor(n,t,r,i,o){this.id=t,n!==Rt&&k(`floating/direct-node-construction`,`RdxFloatingNode is created only by RdxFloatingTree.register().`,Z),this.tree=r,te.set(this,{parent:i,context:o})}get parent(){return te.get(this).parent}get context(){return te.get(this).context}},Z=`utils/floating-tree`;Re=class{constructor(){this.events=Ot(),this.nodeSet=new Set,this.childrenOf=new Map}register(n){this.assertRegisterableParent(n.parent),Cj()&&this.assertContextDocument(n.context,this.nearestContext(n.parent));let t=new Te(Rt,n.id,this,n.parent,n.context);return this.nodeSet.add(t),this.addToChildrenOf(n.parent,t),t}unregister(n){Cj()&&this.assertOwnedNode(n),this.nodeSet.delete(n),this.removeFromChildrenOf(n.parent,n)}setContext(n,t){if(this.assertOwnedNode(n),Cj()&&t!==null){this.assertContextDocument(t,this.nearestContext(n.parent));for(let r of this.descendantContexts(n))this.assertContextDocument(t,r)}te.get(n).context=t}setParent(n,t){if(this.assertOwnedNode(n),this.assertRegisterableParent(t),n.parent===t)return;for(let i=t;i!==null&&this.nodeSet.has(i);i=i.parent)i===n&&k(`floating/parent-cycle`,`Reparenting node "${n.id}" under "${t?.id}" creates an ancestry cycle.`,Z);Cj()&&this.assertSubtreeDocuments(n,t);let r=n.parent;te.get(n).parent=t,this.removeFromChildrenOf(r,n),this.addToChildrenOf(t,n)}children(n,t={}){Cj()&&this.assertOwnedNode(n);let r=t.onlyOpen??!0,i=[],o=s=>{for(let a of this.directChildren(s))(!r||zn(a))&&i.push(a),o(a)};return o(n),i}ancestors(n){Cj()&&this.assertOwnedNode(n);let t=[];for(let r=n.parent;r!==null&&this.nodeSet.has(r);r=r.parent)t.push(r);return t}get all(){return[...this.nodeSet]}directChildren(n){return this.childrenOf.get(n)??[]}addToChildrenOf(n,t){let r=this.childrenOf.get(n);r||(r=[],this.childrenOf.set(n,r)),r.push(t)}removeFromChildrenOf(n,t){let r=this.childrenOf.get(n);if(!r)return;let i=r.indexOf(t);i!==-1&&r.splice(i,1),r.length===0&&this.childrenOf.delete(n)}nearestContext(n){for(let t=n;t!==null&&this.nodeSet.has(t);t=t.parent)if(t.context!==null)return t.context;return null}descendantContexts(n){return this.children(n,{onlyOpen:!1}).map(t=>t.context).filter(t=>t!==null)}assertSubtreeDocuments(n,t){let r=this.nearestContext(t);this.assertContextDocument(n.context,r);for(let i of this.descendantContexts(n))this.assertContextDocument(i,r)}isRegistered(n){return this.nodeSet.has(n)}assertOwnedNode(n){(n.tree!==this||!this.nodeSet.has(n))&&k(`floating/foreign-node`,`This node does not belong to this tree (or was already unregistered).`,Z)}assertRegisterableParent(n){n!==null&&(n.tree!==this&&k(`floating/cross-tree-parent`,`A floating node parent must belong to the same tree.`,Z),this.nodeSet.has(n)||k(`floating/unregistered-parent`,`A floating node parent must be currently registered in the tree.`,Z))}assertContextDocument(n,t){n!==null&&t!==null&&n.ownerDocument!==t.ownerDocument&&k(`floating/cross-document-parent`,`A floating node must share the same ownerDocument as its ancestry/subtree.`,Z)}},xe=new M(`RdxFloatingTree`);xt=new M(`RdxFloatingRootContext`);qo=(()=>{class e{constructor(){this.externalTree=jc(null),this.parentOverride=jc({kind:`inherit`}),this.selfReg=I(K),this.parentReg=I(Tt,{optional:!0,skipSelf:!0}),this.ambientTree=I(xe,{optional:!0}),this.rootContext=I(xt,{optional:!0}),this.nodeId=jn(`rdx-floating-node-`),this.node=this.selfReg.node,this.status=this.selfReg.status,this.tree=this.selfReg.tree,rf(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||e)}}static{this.ɵdir=OE({type:e,selectors:[[``,`rdxFloatingNode`,``]],inputs:{externalTree:[1,`externalTree`],parentOverride:[1,`parentOverride`]},exportAs:[`rdxFloatingNode`],features:[ES([Hn()])]})}}return e})(),Pe=class{constructor(){this.elements=new Set}add(n){this.elements.add(n)}delete(n){this.elements.delete(n)}hasElement(n){return n!==null&&this.elements.has(n)}hasMatchingElement(n){if(!n)return!1;for(let t of this.elements)if(t.contains(n))return!0;return!1}contains(n){return this.hasElement(n)?!0:this.hasMatchingElement(Wn(n)?n:null)}};Yn=`utils/floating-tree`,Le=class{constructor(n){this.triggers=new Pe,this.events=Ot(),this.floatingElementRef=null,this.referenceElementRef=null,this.floatingElementsRef=new Set,this.ownerDocument=n.ownerDocument,this.open=n.open??(()=>!1),n.floatingElement!==void 0&&this.setFloatingElement(n.floatingElement),n.referenceElement!==void 0&&this.setReferenceElement(n.referenceElement)}get floatingElement(){return this.floatingElementRef}get referenceElement(){return this.referenceElementRef}get floatingElements(){return this.floatingElementsRef}setFloatingElement(n){this.assertSameDocument(n),this.floatingElementRef&&this.floatingElementsRef.delete(this.floatingElementRef),this.floatingElementRef=n,n&&this.floatingElementsRef.add(n)}addFloatingElement(n){this.assertSameDocument(n),this.floatingElementsRef.add(n)}removeFloatingElement(n){this.floatingElementsRef.delete(n)}setReferenceElement(n){this.assertSameDocument(n),this.referenceElementRef=n}assertSameDocument(n){Cj()&&n!==null&&n.ownerDocument!==this.ownerDocument&&k(`floating/cross-document-element`,`A floating element must share its root context's ownerDocument.`,Yn)}};qn=`data-rdx-internal-backdrop`;Be=Kn(Xn());Jn={ownerForm:()=>null,sync:()=>{},requestSubmit:()=>{}};At=`data-rdx-scroll-locked`;ke=class{constructor(n){this.doc=n,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 n=this.doc.documentElement,t=this.doc.defaultView,r=t?t.getComputedStyle(n).overflowY:``;if(r===`hidden`||r===`clip`)this.restore=()=>{};else{let s=Be.os.ios||!Qn(this.doc)?tr(this.doc):nr(this.doc);this.restore=s}n.setAttribute(At,``);let i=this.restore;this.restore=()=>{i(),n.removeAttribute(At)}}},Ft=new WeakMap;ir=50});export{or as A,be as C,ko as D,jo as E,tn as F,ts as I,xo as L,rn as M,sr as N,le as O,st as P,xt as R,an as S,jn as T,Vn as _,Go as a,Yo as b,Ko as c,Qo as d,Ro as f,Uo as g,Tt as h,G as i,qo as j,ln as k,Lt as l,To as m,Be as n,Ho as o,Se as p,Bo as r,Jo as s,$o as t,Me as u,Wo as v,es as w,Zo as x,Xo as y,zo as z};
1
+ import{At as Uw,B as Jm,Cr as yc,En as jc,Fn as mj,G as M,H as Kr,Hn as on$1,Kn as pj,Ln as nf,Lt as Ws,N as Ho$1,Nt as Vr,O as Gi,P as I,Pt as W,Q as Nn$1,Tr as zr,U as LE,Zn as rf,_r as wt$1,at as Pr,et as OE,ft as Rc,g as Cj,hn as ge,ht as S,it as PS,jn as lf,ln as f,lr as ve,mn as gb,n as $D,nn as br,nt as PC,o as $t$1,rr as te$1,t as $C,tn as bj,tr as sw,tt as Oe$1,vn as gl,w as Ew,wt as Tg,x as ES,y as Dj,yr as xm,yt as Se$1,zt as X}from"./chunk-PPlXONP3.js";function G(){return tt}function Lt(e){tt??=e}var tt;var be;var ue;var nt;var Ee=f(()=>{Kr();Kr();tt=null;be=class{},ue=(()=>{class e{historyGo(t){throw new Error(``)}static ɵfac=function(r){return new(r||e)};static ɵprov=X({token:e,factory:()=>I(nt),providedIn:`platform`})}return e})(),nt=(()=>{class e extends ue{_location;_history;_doc=I(br);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return G().getBaseHref(this._doc)}onPopState(t){let r=G().getGlobalEventTarget(this._doc,`window`);return r.addEventListener(`popstate`,t,!1),()=>r.removeEventListener(`popstate`,t)}onHashChange(t){let r=G().getGlobalEventTarget(this._doc,`window`);return r.addEventListener(`hashchange`,t,!1),()=>r.removeEventListener(`hashchange`,t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,r,i){this._history.pushState(t,r,i)}replaceState(t,r,i){this._history.replaceState(t,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static ɵfac=function(r){return new(r||e)};static ɵprov=X({token:e,factory:()=>new e,providedIn:`platform`})}return e})()});function ot(e,n){return e?n?e.endsWith(`/`)?n.startsWith(`/`)?e+n.slice(1):e+n:n.startsWith(`/`)?e+n:`${e}/${n}`:e:n}function rt(e){let n=e.search(/#|\?|$/);return e[n-1]===`/`?e.slice(0,n-1)+e.slice(n):e}function L(e){return e&&e[0]!==`?`?`?${e}`:e}function jt(){return new st(Oe$1(le))}function $t(e,n){if(!e||!n.startsWith(e))return n;let t=n.substring(e.length);return t===``||[`/`,`;`,`?`,`#`].includes(t[0])?t:n}function it(e){return e.replace(/\/index\.html$/,``)}function Ut(e){if(new RegExp(`^(https?:)?//`).test(e)){let[,t]=e.split(/\/\/[^\/]+/);return t}return e}var le;var kt;var Bt;var st;var at=f(()=>{Kr();Kr();Ws();Ee();le=(()=>{class e{historyGo(t){throw new Error(``)}static ɵfac=function(r){return new(r||e)};static ɵprov=X({token:e,factory:()=>I(Bt),providedIn:`root`})}return e})(),kt=new M(``),Bt=(()=>{class e extends le{_platformLocation;_baseHref;_removeListenerFns=[];constructor(t,r){super(),this._platformLocation=t,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??I(br).location?.origin??``}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return ot(this._baseHref,t)}path(t=!1){let r=this._platformLocation.pathname+L(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${r}${i}`:r}pushState(t,r,i,o){let s=this.prepareExternalUrl(i+L(o));this._platformLocation.pushState(t,r,s)}replaceState(t,r,i,o){let s=this.prepareExternalUrl(i+L(o));this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static ɵfac=function(r){return new(r||e)(Oe$1(ue),Oe$1(kt,8))};static ɵprov=X({token:e,factory:e.ɵfac,providedIn:`root`})}return e})(),st=(()=>{class e{_subject=new ge;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(t){this._locationStrategy=t;let r=this._locationStrategy.getBaseHref();this._basePath=Ut(rt(it(r))),this._locationStrategy.onPopState(i=>{let o={url:this.path(!0),pop:!0,state:i.state,type:i.type};i.hasUAVisualTransition&&(o.hasUAVisualTransition=!0),this._subject.next(o)})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=``){return this.path()==this.normalize(t+L(r))}normalize(t){return e.stripTrailingSlash($t(this._basePath,it(t)))}prepareExternalUrl(t){return t&&t[0]!==`/`&&(t=`/`+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r=``,i=null){this._locationStrategy.pushState(i,``,t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+L(r)),i)}replaceState(t,r=``,i=null){this._locationStrategy.replaceState(i,``,t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+L(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t=``,r){this._urlChangeListeners.forEach(i=>i(t,r))}subscribe(t,r,i){return this._subject.subscribe({next:t,error:r??void 0,complete:i??void 0})}static normalizeQueryParams=L;static joinWithSlash=ot;static stripTrailingSlash=rt;static ɵfac=function(r){return new(r||e)(Oe$1(le))};static ɵprov=X({token:e,factory:()=>jt(),providedIn:`root`})}return e})()});function q(e,n){let t=$C(e),r=t[PC.NumberSymbols][n];if(typeof r>`u`){if(n===F.CurrencyDecimal)return t[PC.NumberSymbols][F.Decimal];if(n===F.CurrencyGroup)return t[PC.NumberSymbols][F.Group]}return r}function lt(e,n){return $C(e)[PC.NumberFormats][n]}function Kt(e,n,t,r,i,o,s=!1){let a=``,g=!1;if(!isFinite(e))a=q(t,Number.isNaN(e)?F.NaN:F.Infinity);else{let c=Qt(e);s&&(c=Jt(c));let f=n.minInt,u=n.minFrac,d=n.maxFrac;if(o){let p=o.match(Yt);if(p===null)throw new S(2306,!1);let M=p[1],D=p[3],v=p[5];M!=null&&(f=Ae(M)),D!=null&&(u=Ae(D)),v!=null?d=Ae(v):D!=null&&u>d&&(d=u);let H=100;if(f>H||u>H||d>H)throw new S(2306,!1)}en(c,u,d);let l=c.digits,m=c.integerLen,y=c.exponent,S$1=[];for(g=l.every(p=>!p);m<f;m++)l.unshift(0);for(;m<0;m++)l.unshift(0);m>0?S$1=l.splice(m,l.length):(S$1=l,l=[0]);let C=[];for(l.length>=n.lgSize&&C.unshift(l.splice(-n.lgSize,l.length).join(``));l.length>n.gSize;)C.unshift(l.splice(-n.gSize,l.length).join(``));l.length&&C.unshift(l.join(``)),a=C.join(q(t,r)),S$1.length&&(a+=q(t,i)+S$1.join(``)),y&&(a+=q(t,F.Exponential)+`+`+y)}return e<0&&!g?a=n.negPre+a+n.negSuf:a=n.posPre+a+n.posSuf,a}function ct(e,n,t){return Kt(e,Xt(lt(n,Fe.Decimal),q(n,F.MinusSign)),n,F.Group,F.Decimal,t)}function Xt(e,n=`-`){let t={minInt:1,minFrac:0,maxFrac:0,posPre:``,posSuf:``,negPre:``,negSuf:``,gSize:0,lgSize:0},r=e.split(qt),i=r[0],o=r[1],s=i.indexOf(ce)!==-1?i.split(ce):[i.substring(0,i.lastIndexOf(ee)+1),i.substring(i.lastIndexOf(ee)+1)],a=s[0],g=s[1]||``;t.posPre=a.substring(0,a.indexOf(we));for(let f=0;f<g.length;f++){let u=g.charAt(f);u===ee?t.minFrac=t.maxFrac=f+1:u===we?t.maxFrac=f+1:t.posSuf+=u}let c=a.split(Zt);if(t.gSize=c[1]?c[1].length:0,t.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,o){let f=i.length-t.posPre.length-t.posSuf.length,u=o.indexOf(we);t.negPre=o.substring(0,u).replace(/'/g,``),t.negSuf=o.slice(u+f).replace(/'/g,``)}else t.negPre=n+t.posPre,t.negSuf=t.posSuf;return t}function Jt(e){if(e.digits[0]===0)return e;let n=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(n===0?e.digits.push(0,0):n===1&&e.digits.push(0),e.integerLen+=2),e}function Qt(e){let n=Math.abs(e)+``,t=0,r,i,o,s,a;for((i=n.indexOf(ce))>-1&&(n=n.replace(ce,``)),(o=n.search(/e/i))>0?(i<0&&(i=o),i+=+n.slice(o+1),n=n.substring(0,o)):i<0&&(i=n.length),o=0;n.charAt(o)===ee;o++);if(o===(a=n.length))r=[0],i=1;else{for(a--;n.charAt(a)===ee;)a--;for(i-=o,r=[],s=0;o<=a;o++,s++)r[s]=Number(n.charAt(o))}return i>ut&&(r=r.splice(0,ut-1),t=i-1,i=1),{digits:r,exponent:t,integerLen:i}}function en(e,n,t){if(n>t)throw new S(2307,!1);let r=e.digits,i=r.length-e.integerLen,o=Math.min(Math.max(n,i),t),s=o+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let u=s;u<r.length;u++)r[u]=0}else{i=Math.max(0,i),e.integerLen=1,r.length=Math.max(1,s=o+1),r[0]=0;for(let u=1;u<s;u++)r[u]=0}if(a>=5)if(s-1<0){for(let u=0;u>s;u--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[s-1]++;for(;i<Math.max(0,o);i++)r.push(0);let g=o!==0,c=n+e.integerLen,f=r.reduceRight(function(u,d,l,m){return d=d+u,m[l]=d<10?d:d-10,g&&(m[l]===0&&l>=c?m.pop():g=!1),d>=10?1:0},0);f&&(r.unshift(f),e.integerLen++)}function Ae(e){let n=parseInt(e);if(isNaN(n))throw new S(2305,!1);return n}function nn(e,n){return new S(2100,!1)}function on(e){return!(e==null||e===``||e!==e)}function sn(e){if(typeof e==`string`&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!=`number`)throw new S(2309,!1);return e}var Fe;var F;var Yt;var ut;var ce;var ee;var qt;var Zt;var we;var tn;var rn;var dt=f(()=>{Kr();Kr();Fe=(function(e){return e[e.Decimal=0]=`Decimal`,e[e.Percent=1]=`Percent`,e[e.Currency=2]=`Currency`,e[e.Scientific=3]=`Scientific`,e})(Fe||{}),F={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};Yt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,ut=22,ce=`.`,ee=`0`,qt=`;`,Zt=`,`,we=`#`;tn=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=I(Se$1);constructor(t){this._viewContainerRef=t}ngOnChanges(t){if(this._shouldRecreateView(t)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this._getInjector()})}}_getInjector(){return this.ngTemplateOutletInjector===`outlet`?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,r,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,i):!1,get:(t,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static ɵfac=function(r){return new(r||e)(Vr(Gi))};static ɵdir=OE({type:e,selectors:[[``,`ngTemplateOutlet`,``]],inputs:{ngTemplateOutletContext:`ngTemplateOutletContext`,ngTemplateOutlet:`ngTemplateOutlet`,ngTemplateOutletInjector:`ngTemplateOutletInjector`},features:[Ew]})}return e})();rn=(()=>{class e{_locale;constructor(t){this._locale=t}transform(t,r,i){if(!on(t))return null;i||=this._locale;try{return ct(sn(t),i,r)}catch(o){throw nn(e,o.message)}}static ɵfac=function(r){return new(r||e)(Vr(Rc,16))};static ɵpipe=LE({name:`number`,type:e,pure:!0})}return e})()});function an(e,n){n=encodeURIComponent(n);for(let t of e.split(`;`)){let r=t.indexOf(`=`),[i,o]=r==-1?[t,``]:[t.slice(0,r),t.slice(r+1)];if(i.trim()!==n)continue;let s=o;try{s=decodeURIComponent(o)}catch{}return s.length>1&&s[0]===`"`&&s[s.length-1]===`"`&&(s=s.slice(1,-1)),s}return null}var ft=f(()=>{});function Se(e){return e===ln}var ln;var Me=f(()=>{at();dt();Ee();Kr();ft();ln=`browser`});function fn(){let e=G()?G().getUserAgent():``;return/android (\d+)/.test(e.toLowerCase())}function gn(e){return e==null||mn(e)===0}function mn(e){return e==null?null:Array.isArray(e)||typeof e==`string`?e.length:e instanceof Set?e.size:null}function yn(e){return gn(e.value)?{required:!0}:null}function gt(e){return null}function yt(e){return e!=null}function Dn(e){return yc(e)?on$1(e):e}function Dt(e){let n={};return e.forEach(t=>{n=t!=null?W(W({},n),t):n}),Object.keys(n).length===0?null:n}function vt(e,n){return n.map(t=>t(e))}function vn(e){return!e.validate}function Ct(e){return e.map(n=>vn(n)?n:t=>n.validate(t))}function Cn(e){if(!e)return null;let n=e.filter(yt);return n.length==0?null:function(t){return Dt(vt(t,n))}}function _n(e){return e!=null?Cn(Ct(e)):null}function bn(e){if(!e)return null;let n=e.filter(yt);return n.length==0?null:function(t){return gb(vt(t,n).map(Dn)).pipe(Nn$1(Dt))}}function En(e){return e!=null?bn(Ct(e)):null}function wn(e){return e.tagName===`INPUT`||e.tagName===`SELECT`||e.tagName===`TEXTAREA`}function An(e,n,t,r){switch(t){case`name`:e.setAttribute(n,t,r);break;case`disabled`:case`readonly`:case`required`:r?e.setAttribute(n,t,``):e.removeAttribute(n,t);break;case`max`:case`min`:case`minLength`:case`maxLength`:r!==void 0?e.setAttribute(n,t,r.toString()):e.removeAttribute(n,t);break}}function Mn(e){return Object.getPrototypeOf(e.constructor)===cn}function In(e,n){if(!n)return null;let t,r,i;return n.forEach(o=>{o.constructor===pt?t=o:Mn(o)?r=o:i=o}),i||r||t||null}var mt;var cn;var Oe;var dn;var hn;var pt;var pn;var Ie;var Ne;var de;var Ve;var Fn;var Sn;var _t;var fe;var bt=f(()=>{Kr();Kr();Ws();lf();Me();mt=(()=>{class e{_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||e)(Vr(gl),Vr(Pr))};static ɵdir=OE({type:e})}return e})(),cn=(()=>{class e extends mt{static ɵfac=(()=>{let t;return function(i){return(t||(t=Uw(e)))(i||e)}})();static ɵdir=OE({type:e,features:[xm]})}return e})(),Oe=new M(``),dn={provide:Oe,useExisting:Ho$1(()=>pt),multi:!0};hn=new M(``),pt=(()=>{class e extends mt{_compositionMode;_composing=!1;constructor(t,r,i){super(t,r),this._compositionMode=i,this._compositionMode??=!fn()}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||e)(Vr(gl),Vr(Pr),Vr(hn,8))};static ɵdir=OE({type:e,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:[ES([dn]),xm]})}return e})();pn=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(n){this._rawValidators=n||[],this._composedValidatorFn=_n(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=En(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control?.reset(n)}hasError(n,t){return this.control?this.control.hasError(n,t):!1}getError(n,t){return this.control?this.control.getError(n,t):null}},Ne=class{},de=class extends Ne{source;constructor(n){super(),this.source=n}};Ve=class{kind;context;control;message;constructor({kind:n,context:t,control:r}){this.kind=n,this.context=t,this.control=r}},Fn=(()=>{class e{_validator=gt;_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):gt,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||e)};static ɵdir=OE({type:e,features:[Ew]})}return e})(),Sn={provide:pn,useExisting:Ho$1(()=>_t),multi:!0},_t=(()=>{class e extends Fn{required;inputName=`required`;normalizeInput=Dj;createValidator=t=>yn;enabled(t){return t}static ɵfac=(()=>{let t;return function(i){return(t||(t=Uw(e)))(i||e)}})();static ɵdir=OE({type:e,selectors:[[``,`required`,``,`formControlName`,``,3,`type`,`checkbox`],[``,`required`,``,`formControl`,``,3,`type`,`checkbox`],[``,`required`,``,`ngModel`,``,3,`type`,`checkbox`]],hostVars:1,hostBindings:function(r,i){r&2&&zr(`required`,i._enabled?``:null)},inputs:{required:`required`},standalone:!1,features:[ES([Sn]),xm]})}return e})();fe=class extends Ie{_parent=null;name=null;valueAccessor=null;isCustomControlBased=!1;userOnReset;resetSubscription;set onReset(n){this.userOnReset=n,this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.control&&(this.resetSubscription=this.control.events.subscribe(t=>{t instanceof de&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription?.add(this.resetSubscription))}isNativeFormElement=!1;rawValueAccessors;_selectedValueAccessor=null;get selectedValueAccessor(){return this._selectedValueAccessor??=In(this,this.rawValueAccessors)}parseErrorsValidator=null;renderer;injector;requiredValidatorViaDi;subscription;customControlBindings=null;constructor(n,t,r){super(),this.injector=n,this.renderer=t,this.rawValueAccessors=r,this.injector?.get(ve)?.onDestroy(()=>{this.removeParseErrorsValidator(this.control),this.subscription?.unsubscribe()})}setupCustomControl(){this.subscription?.unsubscribe();let n=this.injector?.get(bj);if(!this.control||!n)return;let t=n.markForCheck.bind(n);this.subscription=new te$1,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 de&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription.add(this.resetSubscription)),this.parseErrorsValidator&&this.control.addValidators(this.parseErrorsValidator)}ngControlCreate(n){!n.nativeElement.hasAttribute?.(`ngNoCva`)&&(this.rawValueAccessors&&this.rawValueAccessors.length>0||this.valueAccessor!==null)||!n.customControl||(this.isCustomControlBased=!0,n.listenToCustomControlModel(i=>{this.control?.markAsDirty(),this.control?.setValue(i,{emitModelToViewChange:!1}),this.viewToModelUpdate(i)}),n.listenToCustomControlOutput(`touch`,()=>{this.control?.markAsTouched()}),this.customControlBindings={},this.isNativeFormElement=wn(n.nativeElement),this.requiredValidatorViaDi=this._rawValidators.find(i=>i instanceof _t))}ngControlUpdate(n,t){if(!this.isCustomControlBased)return;let r=this.control,i=this.customControlBindings;Object.is(i.value,r.value)||(i.value=r.value,n.setCustomControlModelInput(r.value)),this.bindControlProperty(n,i,`touched`,r.touched),this.bindControlProperty(n,i,`dirty`,r.dirty),this.bindControlProperty(n,i,`valid`,r.valid),this.bindControlProperty(n,i,`invalid`,r.invalid),this.bindControlProperty(n,i,`pending`,r.pending),this.bindControlProperty(n,i,`disabled`,r.disabled),this.shouldBindRequired&&this.bindControlProperty(n,i,`required`,this.isRequired);let o=r.errors;if(i.errors!==o){i.errors=o;let s=this._convertErrors(o);n.setInputOnDirectives(`errors`,s)}}get isRequired(){return(this.requiredValidatorViaDi?._enabled||this.control?._hasRequired())??!1}get shouldBindRequired(){return!0}bindControlProperty(n,t,r,i){if(t[r]===i)return;t[r]=i;let o=n.setInputOnDirectives(r,i);this.isNativeFormElement&&!o&&(r===`disabled`||r===`required`)&&this.renderer&&An(this.renderer,n.nativeElement,r,i)}_convertErrors(n){if(n===null)return[];let t=this.control;return Object.entries(n).map(([r,i])=>new Ve({context:i,kind:r,control:t}))}setParseErrorSource(n){if(n===void 0)return;let t=null,r=$t$1(()=>{let i=n();return i.length===0?null:i.reduce((o,s)=>(o[s.kind]=s,o),{})});this.parseErrorsValidator=(()=>t).bind(this),rf(()=>{t=r(),this.control?.updateValueAndValidity({emitEvent:!1})},{injector:this.injector})}removeParseErrorsValidator(n){this.parseErrorsValidator&&(n?.removeValidators(this.parseErrorsValidator),n?.updateValueAndValidity({emitEvent:!1}))}}});function Nn(e){return{provide:Oe,useExisting:Ho$1(()=>e),multi:!0}}function To(){return I(Vn)}function On(e){return e?Object.entries(e).map(([n,t])=>{let r=typeof t==`string`?t:t&&typeof t==`object`&&typeof t.message==`string`?t.message:void 0;return r===void 0?{kind:n}:{kind:n,message:r}}):[]}function Tn(){let e=I(Se$1),n=I(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`}),g=wt$1(!1,{debugName:`RdxNgControlState.disabled`}),c=wt$1(null,{debugName:`RdxNgControlState.rawErrors`}),f=$t$1(()=>On(c()),{debugName:`RdxNgControlState.errors`}),u=wt$1(!1,{debugName:`RdxNgControlState.dirty`}),d=wt$1(!1,{debugName:`RdxNgControlState.touched`}),l=!1,m,y;return queueMicrotask(()=>{if(l)return;let C=e.get(fe,null,{self:!0,optional:!0}),p=C?.control;if(!p||typeof p.events?.subscribe!=`function`)return;y=v=>p.reset(v);let M=()=>{r.set(C.name==null?void 0:String(C.name)),i.set(p.value),o.set(p.valid),s.set(p.invalid),a.set(p.pending),g.set(p.disabled),c.set(p.errors),u.set(p.dirty),d.set(p.touched)};M();let D=p.events.subscribe(M);m=()=>D.unsubscribe(),t.set(!0)}),n.onDestroy(()=>{l=!0,m?.()}),{connected:t.asReadonly(),name:r.asReadonly(),value:i.asReadonly(),valid:o.asReadonly(),invalid:s.asReadonly(),pending:a.asReadonly(),disabled:g.asReadonly(),errors:f,dirty:u.asReadonly(),touched:d.asReadonly(),reset:C=>y?(y(C),!0):!1}}function It(e){return`${Rn}/${e}.md`}function Nt(e,n,t){return`[rdx:${e}] ${n}${t?` See ${It(t)}`:``}`}function Ro(e,n,t){!Cj()||Et.has(e)||(Et.add(e),console.warn(Nt(e,n,t)))}function k(e,n,t){throw new Error(Nt(e,n,t))}function xo(e,n){let t=`${e.replace(/\s*Context$/,``)}Context`,r=new M(t);return[(s=!1)=>{let a=I(r,{optional:!0});if(a==null&&!s){let g=n?` See ${It(n)} 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).${g}`)}return a},s=>({provide:r,useFactory:s})]}function jn(e){return I(Bn).getId(e)}function $n(e){let n=wt$1(!1),t=$t$1(()=>{let s=e.errors()??[],a=e.ngControlState?.connected()?e.ngControlState.errors():[];return a.length>0?[...s,...a]:s}),r=$t$1(()=>e.invalid()||t().length>0||!!(e.ngControlState?.connected()&&e.ngControlState.invalid())),i=$t$1(()=>(e.pending?.()??!1)||!!(e.ngControlState?.connected()&&e.ngControlState.pending()));return{invalidState:r,pendingState:i,validState:$t$1(()=>i()?null:r()?!1:e.ngControlState?.connected()&&e.ngControlState.disabled()?null:!0),errorsState:t,touchedState:$t$1(()=>e.ngControlState?.connected()?e.ngControlState.touched():e.touched()),dirtyState:$t$1(()=>e.ngControlState?.connected()?e.ngControlState.dirty():e.dirty()||n()),markDirty:()=>n.set(!0),markAsTouched:()=>{e.cva?.markAsTouched(),e.touched.set(!0),e.touch.emit()},resetInteractionState:()=>{e.touched.set(!1),n.set(!1)},resetDirtyState:()=>n.set(!1)}}function zo(e,n,t){let r=!1,i=!1,o=!1;return{eventDetails:{reason:e,event:n,trigger:t,cancel:()=>{r=!0},isCanceled:()=>r,allowPropagation:()=>{i=!0},get isPropagationAllowed(){return i},preventUnmountOnClose:()=>{o=!0}},shouldPreventUnmountOnClose:()=>o}}function Ot(){let e=new Map;return{emit(n,t){let r=e.get(n);if(r)for(let i of[...r])i(t)},on(n,t){let r=e.get(n);r||(r=new Set,e.set(n,r)),r.add(t)},off(n,t){e.get(n)?.delete(t)}}}function Hn(){return[{provide:K,useFactory:()=>new K},{provide:Tt,useExisting:K}]}function zn(e){return e.context?.open()??!1}function Wo(){return{provide:xe,useFactory:()=>I(xe,{optional:!0,skipSelf:!0})??new Re}}function Yo(e){return{provide:xt,useFactory:e}}function Wn(e){return e!==null&&typeof e.nodeType==`number`}function Zo(e){return new Le(e)}function Zn(e){return`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}function Ko(e,n,t){let r=e.ownerDocument,i=t.marker??qn,o=null,s=()=>{o?.remove(),o=null},a=rf(()=>{let g=t.isOpen(),c=t.shouldRender();if(c&&!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 f=t.cutout?.()??null;f&&(o.style.clipPath=Zn(f.getBoundingClientRect())),e.parentElement?.insertBefore(o,e)}else c||s();o&&(o.style.pointerEvents=t.passThrough?.()?`none`:``,g?o.removeAttribute(`inert`):o.setAttribute(`inert`,``))},{injector:n});n.get(ve).onDestroy(()=>{a.destroy(),s()})}function Kn(e){let{maxTouchPoints:n,webkitBackdropFilter:t}=e,r=e.userAgent.toLowerCase(),i=e.platform.toLowerCase(),o=t,s=!o&&r.includes(`firefox`),a=!o&&r.includes(`chrom`),g=/^i(os$|p)/.test(i)||i===`macintel`&&n>1||/ip(ad|hone|od)/.test(r),c=i===`android`||r.includes(`android`),f=!g&&i.startsWith(`mac`),u=i.startsWith(`win`),d=!c&&/^(linux|chrome os)/.test(i),l=f||g;return{engine:{webkit:o,gecko:s,blink:a},os:{ios:g,android:c,mac:f,windows:u,linux:d,apple:l},screenReader:{voiceOver:l},env:{jsdom:/jsdom|happydom/.test(r)}}}function Xn(){let e=typeof navigator>`u`?void 0:navigator;return{userAgent:e?.userAgent??``,platform:e?.platform??``,maxTouchPoints:e?.maxTouchPoints??0,webkitBackdropFilter:typeof CSS<`u`&&CSS.supports?.(`-webkit-backdrop-filter:none`)===!0}}function Xo(e=document){let n=e.activeElement;if(n==null)return null;for(;n!=null&&n.shadowRoot!=null&&n.shadowRoot.activeElement!=null;)n=n.shadowRoot.activeElement;return n}function Jo(e){return Be.engine.webkit&&e.movementX===0&&e.movementY===0}function Qo(e){let n=I(Pr).nativeElement,t=n.ownerDocument,r=I(ve);if(!t||!Se(I(sw)))return Jn;let i=[],o,s=[],a=!1,g=!0,c=!1,f=()=>{let l=e.form(),m=l?t.getElementById(l):typeof n.closest==`function`?n.closest(`form`):n.parentElement?.closest(`form`);return m?.localName===`form`?m:null},u=()=>{e.syncNativeControl?.();let l=e.name(),m=e.form(),y=e.disabled(),S=e.hasNativeControl?.()??!1,C=e.value&&e.serialize?e.serialize(e.value()):[];if(!c)return;let M=!!(l&&e.serialize&&!S)?C.length:0;for(;i.length>M;)i.pop()?.remove();for(;i.length<M;){let D=t.createElement(`input`);D.type=`hidden`;let v=i.at(-1);n.parentNode?.insertBefore(D,v?v.nextSibling:n.nextSibling),i.push(D)}for(let D=0;D<i.length;D++){let v=i[D];v.name=l,v.value=C[D],v.disabled=y,m?v.setAttribute(`form`,m):v.removeAttribute(`form`),v.hasAttribute(`data-rdx-native-form-control`)||(v.defaultValue=s[D]??C[D],v.setAttribute(`data-rdx-native-form-control`,``))}};rf(()=>{!a&&e.defaultValue&&(o=e.defaultValue(),s=e.serialize?e.serialize(o):[],a=!0)}),rf(u),$D(()=>{c=!0,Tg(u)});let d=l=>{l.target!==f()||!e.onReset||!a||queueMicrotask(()=>{g&&!l.defaultPrevented&&Tg(()=>e.onReset(o))})};return t.addEventListener(`reset`,d,!0),r.onDestroy(()=>{g=!1,t.removeEventListener(`reset`,d,!0);for(let l of i)l.remove()}),{ownerForm:f,sync:u,requestSubmit:()=>{Tg(u),f()?.requestSubmit()}}}function je(e){let n=e.ownerDocument.defaultView;if(!n)return!1;let{overflow:t,overflowX:r,overflowY:i,display:o}=n.getComputedStyle(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&![`inline`,`contents`].includes(o)}function Qn(e){let n=e.defaultView;return n?n.innerWidth-e.documentElement.clientWidth>0:!1}function er(e){if(!e.defaultView||typeof CSS>`u`||!CSS.supports||!CSS.supports(`scrollbar-gutter`,`stable`))return!1;let t=e.documentElement,r=je(t)?t:e.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 tr(e){let n=e.documentElement,t=je(n)?n:e.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 nr(e){let n=e.documentElement,t=e.body,r=e.defaultView;if(!r)return()=>{};if(Be.engine.webkit&&(r.visualViewport?.scale??1)!==1)return()=>{};let i=0,o=0,s=!1,a={},g={},c=``,f=0,u=()=>{let m=r.getComputedStyle(n),y=r.getComputedStyle(t),C=(m.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;i=n.scrollTop,o=n.scrollLeft,a={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},c=n.style.scrollBehavior,g={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=n.scrollHeight>n.clientHeight,M=n.scrollWidth>n.clientWidth,D=m.overflowY===`scroll`||y.overflowY===`scroll`,v=m.overflowX===`scroll`||y.overflowX===`scroll`,H=Math.max(0,r.innerWidth-t.clientWidth),$e=Math.max(0,r.innerHeight-t.clientHeight),Ue=(parseFloat(y.marginTop)||0)+(parseFloat(y.marginBottom)||0),Ge=(parseFloat(y.marginLeft)||0)+(parseFloat(y.marginRight)||0),He=je(n)?n:t;if(s=er(e),s){n.style.scrollbarGutter=C,He.style.overflowY=`hidden`,He.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:C,overflowY:`hidden`,overflowX:`hidden`}),(p||D)&&(n.style.overflowY=`scroll`),(M||v)&&(n.style.overflowX=`scroll`),Object.assign(t.style,{position:`relative`,height:Ue||$e?`calc(100dvh - ${Ue+$e}px)`:`100dvh`,width:Ge||H?`calc(100vw - ${Ge+H}px)`:`100vw`,boxSizing:`border-box`,overflowY:`hidden`,overflowX:`hidden`,scrollBehavior:`unset`}),t.scrollTop=i,t.scrollLeft=o,n.style.scrollBehavior=`unset`},d=()=>{Object.assign(n.style,a),Object.assign(t.style,g),s||(n.scrollTop=i,n.scrollLeft=o,n.style.scrollBehavior=c)},l=()=>{d(),f=r.requestAnimationFrame(u)};return u(),r.addEventListener(`resize`,l),()=>{f&&r.cancelAnimationFrame(f),d(),r.removeEventListener(`resize`,l)}}function rr(e){let n=Ft.get(e);return n||(n=new ke(e),Ft.set(e,n)),n}function es(e,n={}){let t=I(br),r=Se(I(sw)),i=null,o=null,s=()=>{i?.(),i=null,o=null};rf(()=>{if(!r)return;let a=n.referenceElement?.()?.ownerDocument??t;e()?(!i||o!==a)&&(s(),i=rr(a).acquire(),o=a):i&&s()}),r&&I(ve).onDestroy(s)}function ts(e){let n=I(Se$1),t=I(ve),r=wt$1(void 0),i,o,s,a=0,g=()=>{s!==void 0&&(cancelAnimationFrame(s),s=void 0),o!==void 0&&(clearTimeout(o),o=void 0)},c=(u,d)=>{d===a&&(g(),r.set(void 0),t.destroyed||e(u))},f=(u,d)=>{let l=i,m=l?or(l):0;if(!l||m===0){c(u,d);return}let y=typeof l.getAnimations==`function`?l.getAnimations():[];o=setTimeout(()=>c(u,d),m+ir),y.length!==0&&Promise.all(y.map(S=>S.finished.catch(()=>{}))).then(()=>c(u,d))};return t.onDestroy(g),{status:r.asReadonly(),registerElement:u=>(i=u,()=>{i===u&&(i=void 0)}),start:u=>{let d=++a;g(),r.set(u?`starting`:`ending`),$D(()=>{t.destroyed||d!==a||(u?s=requestAnimationFrame(()=>{s=void 0,!(t.destroyed||d!==a)&&(r.set(void 0),f(u,d))}):f(u,d))},{injector:n})}}}function or(e){let n=getComputedStyle(e);return Math.max(St(n.transitionDuration,n.transitionDelay),St(n.animationDuration,n.animationDelay))}function St(e,n){let t=e.split(`,`).map(Mt),r=n.split(`,`).map(Mt);return t.reduce((i,o,s)=>Math.max(i,o+r[s%r.length]),0)}function Mt(e){let n=e.trim(),t=Number.parseFloat(n);return Number.isFinite(t)?n.endsWith(`ms`)?t:t*1e3:0}var Vn;var Rn;var Et;var xn;var Vt;var Pn;var Ln;var kn;var ko;var Bo;var jo;var $o;var Uo;var Go;var wt;var Bn;var Un;var Ho;var Gn;var K;var Tt;var te;var Rt;var Te;var Z;var Re;var xe;var xt;var qo;var Pe;var Yn;var Le;var qn;var Be;var Jn;var At;var ke;var Ft;var ir;var sr=f(()=>{Kr();Kr();bt();Me();Vn=(()=>{class e{constructor(){this.valueInput=jc(void 0,{alias:`value`}),this.disabledInput=jc(!1,{alias:`disabled`,transform:Dj}),this.valueChange=pj(),this._value=PS(()=>this.valueInput()),this.value=this._value.asReadonly(),this._disabled=PS(()=>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||e)}}static{this.ɵdir=OE({type:e,inputs:{valueInput:[1,`value`,`valueInput`],disabledInput:[1,`disabled`,`disabledInput`]},outputs:{valueChange:`valueChange`},exportAs:[`rdxControlValueAccessor`],features:[ES([Nn(e)])]})}}return e})();Rn=`https://radix-ng.com`;Et=new Set;xn=[`day`,`month`,`year`],Vt=[`hour`,`minute`,`second`,`dayPeriod`],Pn=[`literal`,`timeZoneName`],Ln=[...xn,...Vt],[...Vt],kn=[...Ln,...Pn],kn.filter(e=>e!==`literal`),ko=`ArrowDown`,Bo=`ArrowLeft`,jo=`ArrowRight`,$o=`ArrowUp`,Uo=`End`,Go=`Home`,wt=new Map,Bn=(()=>{class e{constructor(){this.appId=I(nf)}getId(t){let r=this.appId===`ng`?t:t+this.appId,i=wt.get(r)??0;return wt.set(r,i+1),`${r}${i}`}static{this.ɵfac=function(r){return new(r||e)}}static{this.ɵprov=X({token:e,factory:e.ɵfac,providedIn:`root`})}}return e})();Un=new M(`RdxFieldValidity`),Ho=(()=>{class e{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=pj(),this.ngControlState=Tn(),this.formUi=$n({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=I(Un,{optional:!0}),this.displayValid=$t$1(()=>this.fieldValidity?this.fieldValidity():this.formUi.validState()),rf(()=>{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||e)}}static{this.ɵdir=OE({type:e,inputs:{invalid:[1,`invalid`],pending:[1,`pending`],touched:[1,`touched`],dirty:[1,`dirty`],errors:[1,`errors`]},outputs:{touched:`touchedChange`,touch:`touch`}})}}return e})();Gn=`utils/floating-tree`,K=class{constructor(){this._state=wt$1({status:`pending`}),this.status=$t$1(()=>this._state().status),this.tree=$t$1(()=>{let n=this._state();return n.status===`registered`?n.tree:null}),this.node=$t$1(()=>{let n=this._state();return n.status===`registered`?n.node:null})}register(n,t){t.tree!==n&&k(`floating/registration-mismatch`,`register(tree, node): node.tree must equal tree. Node "${t.id}" belongs to a different tree.`,Gn),this._state.set({status:`registered`,tree:n,node:t})}markDetached(){this._state.set({status:`detached`})}clear(){this._state.set({status:`pending`})}},Tt=new M(`RdxFloatingRegistration`);te=new WeakMap,Rt=Symbol(`RdxFloatingNode`),Te=class{constructor(n,t,r,i,o){this.id=t,n!==Rt&&k(`floating/direct-node-construction`,`RdxFloatingNode is created only by RdxFloatingTree.register().`,Z),this.tree=r,te.set(this,{parent:i,context:o})}get parent(){return te.get(this).parent}get context(){return te.get(this).context}},Z=`utils/floating-tree`;Re=class{constructor(){this.events=Ot(),this.nodeSet=new Set,this.childrenOf=new Map}register(n){this.assertRegisterableParent(n.parent),Cj()&&this.assertContextDocument(n.context,this.nearestContext(n.parent));let t=new Te(Rt,n.id,this,n.parent,n.context);return this.nodeSet.add(t),this.addToChildrenOf(n.parent,t),t}unregister(n){Cj()&&this.assertOwnedNode(n),this.nodeSet.delete(n),this.removeFromChildrenOf(n.parent,n)}setContext(n,t){if(this.assertOwnedNode(n),Cj()&&t!==null){this.assertContextDocument(t,this.nearestContext(n.parent));for(let r of this.descendantContexts(n))this.assertContextDocument(t,r)}te.get(n).context=t}setParent(n,t){if(this.assertOwnedNode(n),this.assertRegisterableParent(t),n.parent===t)return;for(let i=t;i!==null&&this.nodeSet.has(i);i=i.parent)i===n&&k(`floating/parent-cycle`,`Reparenting node "${n.id}" under "${t?.id}" creates an ancestry cycle.`,Z);Cj()&&this.assertSubtreeDocuments(n,t);let r=n.parent;te.get(n).parent=t,this.removeFromChildrenOf(r,n),this.addToChildrenOf(t,n)}children(n,t={}){Cj()&&this.assertOwnedNode(n);let r=t.onlyOpen??!0,i=[],o=s=>{for(let a of this.directChildren(s))(!r||zn(a))&&i.push(a),o(a)};return o(n),i}ancestors(n){Cj()&&this.assertOwnedNode(n);let t=[];for(let r=n.parent;r!==null&&this.nodeSet.has(r);r=r.parent)t.push(r);return t}get all(){return[...this.nodeSet]}directChildren(n){return this.childrenOf.get(n)??[]}addToChildrenOf(n,t){let r=this.childrenOf.get(n);r||(r=[],this.childrenOf.set(n,r)),r.push(t)}removeFromChildrenOf(n,t){let r=this.childrenOf.get(n);if(!r)return;let i=r.indexOf(t);i!==-1&&r.splice(i,1),r.length===0&&this.childrenOf.delete(n)}nearestContext(n){for(let t=n;t!==null&&this.nodeSet.has(t);t=t.parent)if(t.context!==null)return t.context;return null}descendantContexts(n){return this.children(n,{onlyOpen:!1}).map(t=>t.context).filter(t=>t!==null)}assertSubtreeDocuments(n,t){let r=this.nearestContext(t);this.assertContextDocument(n.context,r);for(let i of this.descendantContexts(n))this.assertContextDocument(i,r)}isRegistered(n){return this.nodeSet.has(n)}assertOwnedNode(n){(n.tree!==this||!this.nodeSet.has(n))&&k(`floating/foreign-node`,`This node does not belong to this tree (or was already unregistered).`,Z)}assertRegisterableParent(n){n!==null&&(n.tree!==this&&k(`floating/cross-tree-parent`,`A floating node parent must belong to the same tree.`,Z),this.nodeSet.has(n)||k(`floating/unregistered-parent`,`A floating node parent must be currently registered in the tree.`,Z))}assertContextDocument(n,t){n!==null&&t!==null&&n.ownerDocument!==t.ownerDocument&&k(`floating/cross-document-parent`,`A floating node must share the same ownerDocument as its ancestry/subtree.`,Z)}},xe=new M(`RdxFloatingTree`);xt=new M(`RdxFloatingRootContext`);qo=(()=>{class e{constructor(){this.externalTree=jc(null),this.parentOverride=jc({kind:`inherit`}),this.selfReg=I(K),this.parentReg=I(Tt,{optional:!0,skipSelf:!0}),this.ambientTree=I(xe,{optional:!0}),this.rootContext=I(xt,{optional:!0}),this.nodeId=jn(`rdx-floating-node-`),this.node=this.selfReg.node,this.status=this.selfReg.status,this.tree=this.selfReg.tree,rf(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||e)}}static{this.ɵdir=OE({type:e,selectors:[[``,`rdxFloatingNode`,``]],inputs:{externalTree:[1,`externalTree`],parentOverride:[1,`parentOverride`]},exportAs:[`rdxFloatingNode`],features:[ES([Hn()])]})}}return e})(),Pe=class{constructor(){this.elements=new Set}add(n){this.elements.add(n)}delete(n){this.elements.delete(n)}hasElement(n){return n!==null&&this.elements.has(n)}hasMatchingElement(n){if(!n)return!1;for(let t of this.elements)if(t.contains(n))return!0;return!1}contains(n){return this.hasElement(n)?!0:this.hasMatchingElement(Wn(n)?n:null)}};Yn=`utils/floating-tree`,Le=class{constructor(n){this.triggers=new Pe,this.events=Ot(),this.floatingElementRef=null,this.referenceElementRef=null,this.floatingElementsRef=new Set,this.ownerDocument=n.ownerDocument,this.open=n.open??(()=>!1),n.floatingElement!==void 0&&this.setFloatingElement(n.floatingElement),n.referenceElement!==void 0&&this.setReferenceElement(n.referenceElement)}get floatingElement(){return this.floatingElementRef}get referenceElement(){return this.referenceElementRef}get floatingElements(){return this.floatingElementsRef}setFloatingElement(n){this.assertSameDocument(n),this.floatingElementRef&&this.floatingElementsRef.delete(this.floatingElementRef),this.floatingElementRef=n,n&&this.floatingElementsRef.add(n)}addFloatingElement(n){this.assertSameDocument(n),this.floatingElementsRef.add(n)}removeFloatingElement(n){this.floatingElementsRef.delete(n)}setReferenceElement(n){this.assertSameDocument(n),this.referenceElementRef=n}assertSameDocument(n){Cj()&&n!==null&&n.ownerDocument!==this.ownerDocument&&k(`floating/cross-document-element`,`A floating element must share its root context's ownerDocument.`,Yn)}};qn=`data-rdx-internal-backdrop`;Be=Kn(Xn());Jn={ownerForm:()=>null,sync:()=>{},requestSubmit:()=>{}};At=`data-rdx-scroll-locked`;ke=class{constructor(n){this.doc=n,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 n=this.doc.documentElement,t=this.doc.defaultView,r=t?t.getComputedStyle(n).overflowY:``;if(r===`hidden`||r===`clip`)this.restore=()=>{};else{let s=Be.os.ios||!Qn(this.doc)?tr(this.doc):nr(this.doc);this.restore=s}n.setAttribute(At,``);let i=this.restore;this.restore=()=>{i(),n.removeAttribute(At)}}},Ft=new WeakMap;ir=50});export{or as A,be as C,ko as D,jo as E,tn as F,ts as I,xo as L,rn as M,sr as N,le as O,st as P,xt as R,an as S,jn as T,Vn as _,Go as a,Yo as b,Ko as c,Qo as d,Ro as f,Uo as g,Tt as h,G as i,qo as j,ln as k,Lt as l,To as m,Be as n,Ho as o,Se as p,Bo as r,Jo as s,$o as t,Me as u,Wo as v,es as w,Zo as x,Xo as y,zo as z};
@@ -1 +1 @@
1
- import{$n as sT,Bn as oT,H as Kr,P as I,Pt as X,_r as wt,an as f,jn as lT,lr as ve,o as $t,rn as eH}from"./chunk-DOxgdvK8.js";import{n as u,t as f$1}from"./chunk-C7ZKT99Y.js";import{i as h$1,r as d}from"./chunk-Dj0SqC61.js";function M(n){let e=oT().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=f(()=>{Kr();h$1();lT();f$1();sT();Kr();h=class n{toast=I(u);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=$t(()=>[...new Map(this.items().map(e=>[e.id,e.sizeBytes]))].reduce((e,[,t])=>e+t,0));unusedCount=$t(()=>this.items().filter(e=>e.inUseBy===0).length);constructor(){I(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?oT().common.nothingToPrune:oT().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
+ import{H as Kr,Mn as lk,P as I,Vn as ok,_r as wt,er as sk,ln as f,lr as ve,o as $t,sn as eH,zt as X}from"./chunk-PPlXONP3.js";import{n as u,t as f$1}from"./chunk-Dob_vN7f.js";import{i as h$1,r as d}from"./chunk-DSdDrNk7.js";function M(n){let e=ok().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=f(()=>{Kr();h$1();lk();f$1();sk();Kr();h=class n{toast=I(u);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=$t(()=>[...new Map(this.items().map(e=>[e.id,e.sizeBytes]))].reduce((e,[,t])=>e+t,0));unusedCount=$t(()=>this.items().filter(e=>e.inUseBy===0).length);constructor(){I(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?ok().common.nothingToPrune:ok().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};