docker-client-mx 1.36.0 → 1.37.1

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 (73) hide show
  1. package/dist/docker-desktop-mx/browser/{chunk-KsK8Et8A.js → chunk-A5wKOcG7.js} +1 -1
  2. package/dist/docker-desktop-mx/browser/chunk-ARerY_u8.js +1 -0
  3. package/dist/docker-desktop-mx/browser/chunk-B2cyL9jQ.js +1 -0
  4. package/dist/docker-desktop-mx/browser/chunk-BD9SGPlI.js +1 -0
  5. package/dist/docker-desktop-mx/browser/chunk-BTUpw4iP.js +1 -0
  6. package/dist/docker-desktop-mx/browser/chunk-BU6WXUxF.js +4 -0
  7. package/dist/docker-desktop-mx/browser/chunk-B_LO2qP5.js +1 -0
  8. package/dist/docker-desktop-mx/browser/{chunk-DKcHMtVX.js → chunk-Bd4WPFll.js} +1 -1
  9. package/dist/docker-desktop-mx/browser/{chunk-CLMm_XWR.js → chunk-BiwCCNsK.js} +1 -1
  10. package/dist/docker-desktop-mx/browser/{chunk-CK0MxuKs.js → chunk-BrBZ51IY.js} +1 -1
  11. package/dist/docker-desktop-mx/browser/{chunk-DLUPTp1Q.js → chunk-BrDsQn6L.js} +1 -1
  12. package/dist/docker-desktop-mx/browser/{chunk-6Vhi8rd8.js → chunk-BwYNpJJ1.js} +1 -1
  13. package/dist/docker-desktop-mx/browser/chunk-C0CE-ryM.js +1 -0
  14. package/dist/docker-desktop-mx/browser/chunk-C218KaAr.js +1 -0
  15. package/dist/docker-desktop-mx/browser/chunk-C5GyUjf6.js +1 -0
  16. package/dist/docker-desktop-mx/browser/chunk-CKZAnwkz.js +1 -0
  17. package/dist/docker-desktop-mx/browser/{chunk-B9UcPpda.js → chunk-CN_jXmBu.js} +2 -2
  18. package/dist/docker-desktop-mx/browser/{chunk-BXKHiA8K.js → chunk-CRsWWmSK.js} +1 -1
  19. package/dist/docker-desktop-mx/browser/{chunk-DJK2pDCE.js → chunk-CSf-WGgq.js} +1 -1
  20. package/dist/docker-desktop-mx/browser/{chunk-Dxcj7_8z.js → chunk-CUfTRCjA.js} +1 -1
  21. package/dist/docker-desktop-mx/browser/{chunk-ChzmfIu4.js → chunk-Ce9HPQaw.js} +2 -2
  22. package/dist/docker-desktop-mx/browser/{chunk-VaM0mOqO.js → chunk-CuB3SKfL.js} +1 -1
  23. package/dist/docker-desktop-mx/browser/{chunk-DnMQ5zRD.js → chunk-CzxPdR3J.js} +1 -1
  24. package/dist/docker-desktop-mx/browser/{chunk-Dob_vN7f.js → chunk-D0yJpook.js} +1 -1
  25. package/dist/docker-desktop-mx/browser/chunk-DO0iZtCc.js +1 -0
  26. package/dist/docker-desktop-mx/browser/{chunk-BPHdfnbm.js → chunk-DO4UNcFG.js} +1 -1
  27. package/dist/docker-desktop-mx/browser/{chunk-DSdDrNk7.js → chunk-Dc53d1I5.js} +1 -1
  28. package/dist/docker-desktop-mx/browser/chunk-DmLR4vjP.js +1 -0
  29. package/dist/docker-desktop-mx/browser/{chunk-GnwhPzR0.js → chunk-DoJ0-JEW.js} +1 -1
  30. package/dist/docker-desktop-mx/browser/chunk-DoVE0m-M.js +1 -0
  31. package/dist/docker-desktop-mx/browser/chunk-USWqj2oG.js +1 -0
  32. package/dist/docker-desktop-mx/browser/chunk-ai7J7l7m.js +1 -0
  33. package/dist/docker-desktop-mx/browser/chunk-d2Mr7W8C.js +2 -0
  34. package/dist/docker-desktop-mx/browser/{chunk-Bz_HteBH.js → chunk-d9EuDpHJ.js} +1 -1
  35. package/dist/docker-desktop-mx/browser/{chunk-6px89AQj.js → chunk-sLP6RSjc.js} +1 -1
  36. package/dist/docker-desktop-mx/browser/chunk-wHjVeoVE.js +1 -0
  37. package/dist/docker-desktop-mx/browser/index.html +2 -2
  38. package/dist/docker-desktop-mx/browser/main-QH6OTQO6.js +1 -0
  39. package/dist/docker-desktop-mx/browser/styles-QQZVKMBI.css +1 -0
  40. package/dist-electron/channels.js +3 -0
  41. package/dist-electron/channels.js.map +1 -1
  42. package/dist-electron/ipc.js +10 -0
  43. package/dist-electron/ipc.js.map +1 -1
  44. package/dist-electron/main.js +31 -0
  45. package/dist-electron/main.js.map +1 -1
  46. package/dist-electron/palette-ai.js +143 -0
  47. package/dist-electron/palette-ai.js.map +1 -0
  48. package/dist-electron/preload.js +10 -2
  49. package/dist-electron/preload.js.map +1 -1
  50. package/dist-electron/settings.js +24 -0
  51. package/dist-electron/settings.js.map +1 -1
  52. package/dist-electron/system.js +2 -1
  53. package/dist-electron/system.js.map +1 -1
  54. package/package.json +1 -1
  55. package/dist/docker-desktop-mx/browser/chunk-2Z6qpzJF.js +0 -1
  56. package/dist/docker-desktop-mx/browser/chunk-BK2A0qk2.js +0 -1
  57. package/dist/docker-desktop-mx/browser/chunk-BiLhnMKi.js +0 -1
  58. package/dist/docker-desktop-mx/browser/chunk-By8a25tN.js +0 -1
  59. package/dist/docker-desktop-mx/browser/chunk-CF1AqDMe.js +0 -1
  60. package/dist/docker-desktop-mx/browser/chunk-Chnm8oNy.js +0 -1
  61. package/dist/docker-desktop-mx/browser/chunk-CrwwnTWy.js +0 -1
  62. package/dist/docker-desktop-mx/browser/chunk-CtOi-wU6.js +0 -1
  63. package/dist/docker-desktop-mx/browser/chunk-D2zLXdKA.js +0 -1
  64. package/dist/docker-desktop-mx/browser/chunk-DNBPj_aM.js +0 -2
  65. package/dist/docker-desktop-mx/browser/chunk-DdnN9mbh.js +0 -1
  66. package/dist/docker-desktop-mx/browser/chunk-ExURQ6xP.js +0 -1
  67. package/dist/docker-desktop-mx/browser/chunk-InjvrsZj.js +0 -1
  68. package/dist/docker-desktop-mx/browser/chunk-PPlXONP3.js +0 -4
  69. package/dist/docker-desktop-mx/browser/chunk-TgIBaKIJ.js +0 -1
  70. package/dist/docker-desktop-mx/browser/chunk-ZNZW7U7T.js +0 -1
  71. package/dist/docker-desktop-mx/browser/chunk-p8V0QABx.js +0 -1
  72. package/dist/docker-desktop-mx/browser/main-OGMLFNXA.js +0 -1
  73. package/dist/docker-desktop-mx/browser/styles-MQHK3ARQ.css +0 -1
@@ -0,0 +1 @@
1
+ import{A as I,Ct as Tc,Dn as kE,Dt as Ty,F as J0,Ft as Wm,Gn as pg,Gt as _S,H as Li,I as Jm,In as nS,J as My,Jt as ag,Kt as _m,Mn as lk,O as HE,On as kc,Pt as W,R as Kr,S as G,Sn as hg,T as Gm,Tr as zr,V as Ld,Vn as ok,W as Lt,X as Nc,_r as wt,_t as SS,cn as ec,ct as Qm,er as sk,gt as SE,hr as wc,in as dk,ln as f,lr as ve,r as Ac,sn as eH,sr as vS,tt as Od,un as fS,ur as vg,ut as RE,wn as ik,wr as zE}from"./chunk-BU6WXUxF.js";import{n as u,t as f$1}from"./chunk-D0yJpook.js";import"./chunk-CzxPdR3J.js";import{i as p,t as W$1}from"./chunk-Bd4WPFll.js";import{n as x,t as u$1}from"./chunk-CUfTRCjA.js";import{F as tn,u as Me$1}from"./chunk-C0CE-ryM.js";import"./chunk-d9EuDpHJ.js";import"./chunk-CKZAnwkz.js";import{n as W$2,t as J}from"./chunk-USWqj2oG.js";import{n as P,t as K}from"./chunk-DoVE0m-M.js";var se;var le=f(()=>{se=[`claude-opus-5`,`claude-sonnet-5`,`claude-haiku-4-5`]});function Se(a,n){if(a&1&&(Li(0,`span`,34),fS(1),Nc()),a&2){let e=HE(2);ec(),pg(e.t().inUse)}}function Ce(a,n){if(a&1&&(Li(0,`span`,34),fS(1),Nc()),a&2){let e=HE(2);ec(),pg(e.t().cli)}}function ke(a,n){if(a&1&&(Li(0,`div`,36),fS(1),Nc()),a&2){let e=HE().$implicit;ec(),pg(e.description)}}function we(a,n){if(a&1&&(Li(0,`div`,37),fS(1),Nc()),a&2){let e=HE().$implicit;ec(),pg(e.reason)}}function Ee(a,n){a&1&&Qm(0)}function Te(a,n){if(a&1){let e=RE();Li(0,`li`,5)(1,`div`,30)(2,`div`,31)(3,`div`,32)(4,`span`,33),fS(5),Nc(),SE(6,Se,2,1,`span`,34),SE(7,Ce,2,1,`span`,34),Nc(),Li(8,`div`,35),fS(9),Nc(),SE(10,ke,2,1,`div`,36),SE(11,we,2,1,`div`,37),Nc(),Li(12,`button`,38),Jm(`click`,function(){let l=Od(e).$implicit;return Ld(HE().test(l.name,{context:l.name}))}),fS(13),Nc(),Li(14,`button`,39),Jm(`click`,function(){let l=Od(e).$implicit;return Ld(HE().askRemove(l.name))}),Gm(15,`app-icon`,40),Nc()(),_m(16,Ee,1,0,`ng-container`,28),Nc()}if(a&2){let e=n.$implicit,t=HE(),l=zE(48);zr(`data-testid`,`server-`+e.name),ec(5),pg(e.name),ec(),kE(e.active?6:-1),ec(),kE(e.currentInCli?7:-1),ec(2),pg(e.host),ec(),kE(e.description?10:-1),ec(),kE(!e.supported&&e.reason?11:-1),ec(),Wm(`disabled`,!e.supported||t.testing()!==null),ec(),Ac(` `,t.testing()===e.name?t.t().testing:t.t().test,` `),ec(),Wm(`title`,e.active||e.currentInCli?t.t().removeBlocked:t.t().remove)(`disabled`,e.active||e.currentInCli),zr(`aria-label`,t.t().remove),ec(),Wm(`size`,14),ec(),Wm(`ngTemplateOutlet`,l)(`ngTemplateOutletContext`,SS(15,de,e.name))}}function Ie(a,n){if(a&1&&(Li(0,`li`,6),fS(1),Nc()),a&2){let e=HE();ec(),pg(e.t().empty)}}function Pe(a,n){if(a&1){let e=RE();Li(0,`label`,15)(1,`span`,10),fS(2),Nc(),Li(3,`input`,41),Jm(`input`,function(l){Od(e);return Ld(HE().username.set(l.target.value))}),Nc()()}if(a&2){let e=HE();ec(2),pg(e.t().add.username),ec(),nS(e.input),Wm(`placeholder`,e.t().add.usernamePlaceholder)(`value`,e.username())}}function De(a,n){if(a&1&&(Li(0,`p`,22),fS(1),Nc()),a&2){let e=HE();ec(),pg(e.t().add.tcpWarning)}}function Me(a,n){a&1&&(Li(0,`p`,23),fS(1),Nc()),a&2&&(ec(),pg(n))}function Ve(a,n){a&1&&Qm(0)}function Ae(a,n){if(a&1&&(Li(0,`p`,43),fS(1),Nc()),a&2){let e=HE(),t=HE(2);ec(),pg(t.t().connected(e.version,e.os,e.arch))}}function Ne(a,n){if(a&1){let e=RE();Li(0,`p`,45),fS(1),Nc(),Li(2,`div`,46)(3,`code`,47),fS(4),Nc(),Li(5,`button`,48),Jm(`click`,function(){let l=Od(e),s=HE(3).$implicit;return Ld(HE().trust(s,l.name,l.fingerprint))}),fS(6),Nc()()}if(a&2){let e=n,t=HE(4);ec(),pg(t.t().unknownHostKey(e.name,e.type)),ec(3),pg(e.fingerprint),ec(),Wm(`disabled`,t.testing()!==null),ec(),Ac(` `,t.t().trust,` `)}}function Ue(a,n){if(a&1&&(Li(0,`p`,44),fS(1),Nc(),SE(2,Ne,7,4)),a&2){let e,t=HE();ec(),pg(t.problem),ec(),kE((e=t.unknownHostKey)?2:-1,e)}}function Oe(a,n){a&1&&(Li(0,`div`,42),SE(1,Ae,2,1,`p`,43)(2,Ue,3,2),Nc()),a&2&&(ec(),kE(n.ok?1:2))}function Fe(a,n){if(a&1&&SE(0,Oe,3,1,`div`,42),a&2){let e,t=n.$implicit;kE((e=HE().results()[t])?0:-1,e)}}var de;var he;var F;var Le;var L;var pe=f(()=>{Me$1();Kr();W$1();lk();sk();J();dk();f$1();Kr();de=a=>({$implicit:a}),he=(a,n)=>n.name;F=`:form`,Le=`mx-focus mt-1 w-full rounded-md border border-ink-700 bg-ink-800 px-3 py-1.5 text-[13px] text-ink-100 placeholder:text-ink-500`,L=class a{contexts=I(p);toast=I(u);t=Lt(()=>ok().settings.servers);form=F;input=Le;servers=Lt(()=>this.contexts.contexts().filter(n=>n.name!=="default"));name=wt(``);kind=wt(`ssh`);username=wt(``);host=wt(``);port=wt(``);description=wt(``);formProblem=wt(null);saving=wt(!1);testing=wt(null);results=wt({});confirmOpen=wt(!1);removing=wt(null);filledIn=Lt(()=>this.name().trim()!==``&&this.host().trim()!==``);constructor(){this.contexts.load()}async test(n,e){this.testing.set(n);try{let t=await window.electron.contexts.test(e);this.results.update(l=>G(W({},l),{[n]:t}))}catch(t){this.results.update(l=>G(W({},l),{[n]:{ok:!1,problem:eH(t),unknownHostKey:null}}))}finally{this.testing.set(null)}}async testForm(){let n=this.server();n!==null&&(this.formProblem.set(null),await this.test(F,{server:n}))}async trust(n,e,t){try{let s=await window.electron.contexts.trustHostKey(e,t);if(!s.ok){this.results.update(_=>G(W({},_),{[n]:{ok:!1,problem:s.problem,unknownHostKey:null}}));return}}catch(s){this.results.update(_=>G(W({},_),{[n]:{ok:!1,problem:eH(s),unknownHostKey:null}}));return}let l=n===F?this.server():null;await this.test(n,l===null?{context:n}:{server:l})}async add(n){n.preventDefault();let e=this.server();if(!(e===null||this.saving())){this.saving.set(!0);try{let t=await window.electron.contexts.create(e);if(!t.ok){this.formProblem.set(t.problem);return}this.toast.success(this.t().add.added(e.name)),this.reset(),await this.contexts.load()}catch(t){this.formProblem.set(eH(t))}finally{this.saving.set(!1)}}}askRemove(n){this.removing.set(n),this.confirmOpen.set(!0)}async remove(){let n=this.removing();if(n!==null)try{let e=await window.electron.contexts.remove(n);if(!e.ok){this.toast.error(e.problem);return}this.forgetResult(n),await this.contexts.load()}catch(e){this.toast.error(eH(e))}finally{this.removing.set(null)}}server(){let n=this.port().trim(),e=n===``?null:Number(n);if(e!==null&&(!Number.isInteger(e)||e<1||e>65535))return this.formProblem.set(ok().settings.servers.add.port+`: 1–65535`),null;let t=this.username().trim(),l=this.description().trim();return{name:this.name().trim(),description:l===``?null:l,kind:this.kind(),host:this.host().trim(),port:e,username:this.kind()===`ssh`&&t!==``?t:null}}reset(){this.name.set(``),this.username.set(``),this.host.set(``),this.port.set(``),this.description.set(``),this.formProblem.set(null),this.forgetResult(F)}forgetResult(n){this.results.update(e=>Object.fromEntries(Object.entries(e).filter(([t])=>t!==n)))}static ɵfac=function(e){return new(e||a)};static ɵcmp=wc({type:a,selectors:[[`app-servers-settings`]],decls:50,vars:50,consts:[[`outcome`,``],[`data-testid`,`servers-settings`,1,`rounded-lg`,`border`,`border-ink-700`,`bg-ink-850`,`px-4`,`py-3`],[1,`text-[13px]`,`font-medium`,`text-ink-200`],[1,`mt-1`,`text-[12px]`,`text-ink-500`],[1,`mt-3`,`divide-y`,`divide-ink-700`,`border-y`,`border-ink-700`],[1,`py-2.5`],[1,`py-2.5`,`text-[13px]`,`text-ink-400`],[`data-testid`,`server-form`,1,`mt-4`,3,`submit`],[1,`mt-2`,`grid`,`grid-cols-6`,`gap-3`],[1,`col-span-3`,`block`],[1,`text-[12px]`,`text-ink-400`],[`type`,`text`,`data-testid`,`server-name`,`autocomplete`,`off`,`spellcheck`,`false`,3,`input`,`placeholder`,`value`],[`data-testid`,`server-kind`,3,`change`],[`value`,`ssh`,3,`selected`],[`value`,`tcp`,3,`selected`],[1,`col-span-2`,`block`],[1,`block`],[`type`,`text`,`data-testid`,`server-host`,`autocomplete`,`off`,`spellcheck`,`false`,3,`input`,`placeholder`,`value`],[1,`col-span-1`,`block`],[`type`,`text`,`inputmode`,`numeric`,`data-testid`,`server-port`,`autocomplete`,`off`,3,`input`,`placeholder`,`value`],[1,`col-span-6`,`block`],[`type`,`text`,`data-testid`,`server-description`,`autocomplete`,`off`,3,`input`,`placeholder`,`value`],[1,`mt-2`,`text-[12px]`,`text-warn`],[`data-testid`,`server-form-problem`,1,`mt-2`,`text-[12px]`,`text-danger`],[1,`mt-3`,`flex`,`justify-end`,`gap-2`],[`type`,`button`,`data-testid`,`server-form-test`,1,`mx-btn`,`mx-focus`,3,`click`,`disabled`],[`type`,`submit`,`data-testid`,`server-add`,1,`mx-btn`,`mx-focus`,3,`disabled`],[`name`,`plus`,3,`size`],[4,`ngTemplateOutlet`,`ngTemplateOutletContext`],[3,`openChange`,`confirmed`,`open`,`title`,`description`],[1,`flex`,`items-center`,`gap-3`],[1,`min-w-0`,`flex-1`],[1,`flex`,`items-center`,`gap-2`],[1,`text-[13px]`,`text-ink-100`],[1,`rounded`,`bg-ink-700`,`px-1.5`,`text-[11px]`,`text-ink-200`],[1,`truncate`,`font-mono`,`text-[12px]`,`text-ink-400`],[1,`text-[12px]`,`text-ink-500`],[1,`text-[12px]`,`text-danger`],[`type`,`button`,`data-testid`,`server-test`,1,`mx-btn`,`mx-focus`,3,`click`,`disabled`],[`type`,`button`,`data-testid`,`server-remove`,1,`mx-btn`,`mx-focus`,3,`click`,`title`,`disabled`],[`name`,`trash`,3,`size`],[`type`,`text`,`data-testid`,`server-username`,`autocomplete`,`off`,`spellcheck`,`false`,3,`input`,`placeholder`,`value`],[`data-testid`,`server-test-result`,1,`mt-2`,`text-[12px]`],[1,`text-ok`],[1,`text-danger`],[1,`mt-2`,`text-ink-300`],[1,`mt-1`,`flex`,`items-center`,`gap-3`],[`data-testid`,`server-fingerprint`,1,`min-w-0`,`flex-1`,`truncate`,`font-mono`,`text-ink-100`],[`type`,`button`,`data-testid`,`server-trust`,1,`mx-btn`,`mx-focus`,3,`click`,`disabled`]],template:function(e,t){if(e&1){let l=RE();Li(0,`div`,1)(1,`h2`,2),fS(2),Nc(),Li(3,`p`,3),fS(4),Nc(),Li(5,`ul`,4),kc(6,Te,17,17,`li`,5,he,!1,Ie,2,1,`li`,6),Nc(),Li(9,`form`,7),Jm(`submit`,function(_){return t.add(_)}),Li(10,`h3`,2),fS(11),Nc(),Li(12,`div`,8)(13,`label`,9)(14,`span`,10),fS(15),Nc(),Li(16,`input`,11),Jm(`input`,function(_){return t.name.set(_.target.value)}),Nc()(),Li(17,`label`,9)(18,`span`,10),fS(19),Nc(),Li(20,`select`,12),Jm(`change`,function(_){return t.kind.set(_.target.value)}),Li(21,`option`,13),fS(22),Nc(),Li(23,`option`,14),fS(24),Nc()()(),SE(25,Pe,4,5,`label`,15),Li(26,`label`,16)(27,`span`,10),fS(28),Nc(),Li(29,`input`,17),Jm(`input`,function(_){return t.host.set(_.target.value)}),Nc()(),Li(30,`label`,18)(31,`span`,10),fS(32),Nc(),Li(33,`input`,19),Jm(`input`,function(_){return t.port.set(_.target.value)}),Nc()(),Li(34,`label`,20)(35,`span`,10),fS(36),Nc(),Li(37,`input`,21),Jm(`input`,function(_){return t.description.set(_.target.value)}),Nc()()(),SE(38,De,2,1,`p`,22),SE(39,Me,2,1,`p`,23),Li(40,`div`,24)(41,`button`,25),Jm(`click`,function(){return t.testForm()}),fS(42),Nc(),Li(43,`button`,26),Gm(44,`app-icon`,27),fS(45),Nc()(),_m(46,Ve,1,0,`ng-container`,28),Nc()(),_m(47,Fe,1,1,`ng-template`,null,0,_S),Li(49,`app-confirm-dialog`,29),vg(`openChange`,function(_){return Od(l),vS(t.confirmOpen,_)||(t.confirmOpen=_),Ld(_)}),Jm(`confirmed`,function(){return t.remove()}),Nc()}if(e&2){let l,s=zE(48);ec(2),pg(t.t().heading),ec(2),pg(t.t().hint),ec(2),Tc(t.servers()),ec(5),pg(t.t().add.heading),ec(4),pg(t.t().add.name),ec(),nS(t.input),Wm(`placeholder`,t.t().add.namePlaceholder)(`value`,t.name()),ec(3),pg(t.t().add.kind),ec(),nS(t.input),ec(),Wm(`selected`,t.kind()===`ssh`),ec(),pg(t.t().add.ssh),ec(),Wm(`selected`,t.kind()===`tcp`),ec(),pg(t.t().add.tcp),ec(),kE(t.kind()===`ssh`?25:-1),ec(),ag(`col-span-3`,t.kind()===`ssh`)(`col-span-5`,t.kind()===`tcp`),ec(2),pg(t.t().add.host),ec(),nS(t.input),Wm(`placeholder`,t.t().add.hostPlaceholder)(`value`,t.host()),ec(3),pg(t.t().add.port),ec(),nS(t.input),Wm(`placeholder`,t.kind()===`ssh`?`22`:`2375`)(`value`,t.port()),ec(3),pg(t.t().add.description),ec(),nS(t.input),Wm(`placeholder`,t.t().add.descriptionPlaceholder)(`value`,t.description()),ec(),kE(t.kind()===`tcp`?38:-1),ec(),kE((l=t.formProblem())?39:-1,l),ec(2),Wm(`disabled`,!t.filledIn()||t.testing()!==null),ec(),Ac(` `,t.testing()===t.form?t.t().testing:t.t().test,` `),ec(),Wm(`disabled`,!t.filledIn()||t.saving()),ec(),Wm(`size`,14),ec(),Ac(` `,t.t().add.submit,` `),ec(),Wm(`ngTemplateOutlet`,s)(`ngTemplateOutletContext`,SS(48,de,t.form)),ec(3),hg(`open`,t.confirmOpen),Wm(`title`,t.t().removeTitle(t.removing()??``))(`description`,t.t().removeDescription)}},dependencies:[W$2,My,tn],encapsulation:2})}});function Ke(a,n){if(a&1&&(Li(0,`option`,10),fS(1),Nc()),a&2){let e=n.$implicit,t=HE();Wm(`value`,e.value)(`selected`,e.value===t.language),zr(`lang`,e.value),ec(),pg(e.name)}}function Re(a,n){if(a&1&&(Li(0,`p`,17),fS(1),Nc()),a&2){let e=HE(2);ec(),pg(e.t().startup.shortcutTaken)}}function $e(a,n){if(a&1&&(Li(0,`span`,24),fS(1),Nc()),a&2){let e=HE(2);ec(),pg(e.t().update.version(n.current))}}function He(a,n){if(a&1){let e=RE();Li(0,`button`,33),Jm(`click`,function(){Od(e);return Ld(HE(2).install())}),fS(1),Nc()}if(a&2){let e=HE(2);ec(),Ac(` `,e.t().update.install,` `)}}function je(a,n){if(a&1){let e=RE();Li(0,`button`,34),Jm(`click`,function(){Od(e);return Ld(HE(2).check())}),fS(1),Nc()}if(a&2){let e=HE(2);Wm(`disabled`,e.updateState()===`checking`||e.updateState()===`downloading`),ec(),Ac(` `,e.t().update.check,` `)}}function ze(a,n){if(a&1){let e=RE();Li(0,`div`,27)(1,`app-filter-switch`,16),Jm(`onChange`,function(l){Od(e);return Ld(HE(2).update({autoUpdate:l}))}),Nc()()}if(a&2){let e=HE(),t=HE();ec(),Wm(`label`,t.t().update.auto)(`on`,e.autoUpdate)}}function We(a,n){if(a&1&&(Li(0,`option`,10),fS(1),Nc()),a&2){let e=n.$implicit,t=HE();Wm(`value`,e.value)(`selected`,e.value===t.assistantModel),ec(),pg(e.name)}}function Be(a,n){if(a&1){let e=RE();Li(0,`div`,7)(1,`span`,37),fS(2),Nc(),Li(3,`button`,38),Jm(`click`,function(){Od(e);return Ld(HE(3).clearKey())}),Gm(4,`app-icon`,39),fS(5),Nc()()}if(a&2){let e=HE(3);ec(2),pg(e.t().assistant.configured),ec(2),Wm(`size`,14),ec(),Ac(` `,e.t().assistant.clearKey,` `)}}function Ge(a,n){if(a&1){let e=RE();Li(0,`form`,40),Jm(`submit`,function(l){Od(e);return Ld(HE(3).saveKey(l))}),Li(1,`label`,41),fS(2),Nc(),Li(3,`input`,42),Jm(`input`,function(l){Od(e);return Ld(HE(3).keyDraft.set(l.target.value))}),Nc(),Li(4,`button`,43),fS(5),Nc()()}if(a&2){let e=HE(),t=HE(2);ec(2),pg(t.t().assistant.keyLabel),ec(),Wm(`value`,t.keyDraft())(`disabled`,!e.storageAvailable),ec(),Wm(`disabled`,!e.storageAvailable||t.keyDraft().trim()===``),ec(),Ac(` `,t.common().save,` `)}}function qe(a,n){a&1&&(Li(0,`p`,36),fS(1),Nc()),a&2&&(ec(),pg(n))}function Je(a,n){if(a&1&&(SE(0,Be,6,3,`div`,7)(1,Ge,6,5,`form`,35),SE(2,qe,2,1,`p`,36),Li(3,`p`,11),fS(4),Nc()),a&2){let e,t=HE(2);kE(n.configured?0:1),ec(2),kE((e=t.keyProblem())?2:-1,e),ec(2),pg(t.t().assistant.hint)}}function Qe(a,n){if(a&1){let e=RE();Li(0,`div`,3)(1,`div`,4)(2,`div`,5)(3,`h2`,6),fS(4),Nc(),Li(5,`div`,7)(6,`label`,8),fS(7),Nc(),Li(8,`select`,9),Jm(`change`,function(l){Od(e);return Ld(HE().chooseLanguage(l.target.value))}),kc(9,Ke,2,4,`option`,10,ce),Nc()(),Li(11,`p`,11),fS(12),Nc()(),Li(13,`div`,12)(14,`h2`,6),fS(15),Nc(),Li(16,`div`,13)(17,`app-filter-switch`,14),Jm(`onChange`,function(l){Od(e);return Ld(HE().update({startAtLogin:l}))}),Nc()(),Li(18,`p`,11),fS(19),Nc(),Li(20,`div`,15)(21,`app-filter-switch`,16),Jm(`onChange`,function(l){Od(e);return Ld(HE().update({paletteShortcut:l}))}),Nc()(),SE(22,Re,2,1,`p`,17),Nc(),Li(23,`div`,12)(24,`h2`,6),fS(25),Nc(),Li(26,`div`,18)(27,`div`,19)(28,`app-filter-switch`,16),Jm(`onChange`,function(l){Od(e);return Ld(HE().update({notifyCrash:l}))}),Nc()(),Li(29,`div`,20)(30,`app-filter-switch`,16),Jm(`onChange`,function(l){Od(e);return Ld(HE().update({notifyUnhealthy:l}))}),Nc()(),Li(31,`div`,21)(32,`app-filter-switch`,16),Jm(`onChange`,function(l){Od(e);return Ld(HE().update({notifyWiring:l}))}),Nc()()(),Li(33,`p`,11),fS(34),Nc()(),Li(35,`div`,22)(36,`div`,23)(37,`h2`,6),fS(38),Nc(),SE(39,$e,2,1,`span`,24),SE(40,He,2,1,`button`,25)(41,je,2,2,`button`,26),Nc(),SE(42,ze,2,2,`div`,27),Li(43,`p`,28),fS(44),Nc()(),Li(45,`div`,29)(46,`h2`,6),fS(47,`Claude`),Nc(),Li(48,`div`,30)(49,`label`,31),fS(50),Nc(),Li(51,`select`,32),Jm(`change`,function(l){Od(e);return Ld(HE().update({assistantModel:l.target.value}))}),kc(52,We,2,3,`option`,10,ce),Nc()(),Li(54,`p`,11),fS(55),Nc(),SE(56,Je,5,3),Nc()(),Gm(57,`app-servers-settings`),Nc()}if(a&2){let e,t,l=n,s=HE();ec(4),pg(s.t().language.heading),ec(3),pg(s.t().language.label),ec(2),Tc(s.languages),ec(3),pg(s.t().language.hint),ec(3),pg(s.t().startup.heading),ec(2),Wm(`label`,s.t().startup.startAtLogin)(`on`,l.startAtLogin)(`disabled`,!l.startAtLoginAvailable),ec(2),Ac(` `,l.startAtLoginAvailable?s.t().startup.hintAvailable:s.t().startup.hintUnavailable,` `),ec(2),Wm(`label`,s.t().startup.paletteShortcut)(`on`,l.paletteShortcut),ec(),kE(l.paletteShortcut&&!l.paletteShortcutActive?22:-1),ec(3),pg(s.t().notifications.heading),ec(3),Wm(`label`,s.t().notifications.crash)(`on`,l.notifyCrash),ec(2),Wm(`label`,s.t().notifications.unhealthy)(`on`,l.notifyUnhealthy),ec(2),Wm(`label`,s.t().notifications.wiring)(`on`,l.notifyWiring),ec(2),pg(s.t().notifications.hint),ec(4),pg(s.t().update.heading),ec(),kE((e=s.appUpdate())?39:-1,e),ec(),kE(s.updateState()===`ready`?40:s.updateState()!==`unavailable`?41:-1),ec(2),kE(s.updateState()!==`unavailable`?42:-1),ec(2),pg(s.updateText()),ec(6),pg(s.t().assistant.model),ec(2),Tc(s.models),ec(3),pg(s.t().assistant.modelHint),ec(),kE((t=s.assistant())?56:-1,t)}}var ce;var Xe;var me;f(()=>{Kr();le();sk();lk();K();dk();x();pe();Kr();ce=(a,n)=>n.value;Xe={"claude-opus-5":`Opus 5`,"claude-sonnet-5":`Sonnet 5`,"claude-haiku-4-5":`Haiku 4.5`},me=class a{t=Lt(()=>ok().settings);common=Lt(()=>ok().common);languages=Object.keys(J0).map(n=>({value:n,name:J0[n]}));models=se.map(n=>({value:n,name:Xe[n]}));settings=wt(null);problem=wt(null);appUpdate=wt(null);assistant=wt(null);keyDraft=wt(``);keyProblem=wt(null);updateState=Lt(()=>this.appUpdate()?.status.state??`unavailable`);updateText=Lt(()=>{let n=this.appUpdate()?.status??{state:`unavailable`},e=this.t().update;switch(n.state){case`unavailable`:return e.unavailable;case`idle`:return e.idle;case`checking`:return e.checking;case`upToDate`:return e.upToDate(new Date(n.checkedAt).toLocaleTimeString(ik(),{hour:`2-digit`,minute:`2-digit`}));case`downloading`:return e.downloading(n.version,n.percent);case`ready`:return e.ready(n.version);case`error`:return e.error(n.problem)}});constructor(){this.load(),this.loadAppUpdate(),this.loadAssistant();let n=window.electron.appUpdate.onChange(e=>this.appUpdate.set(e));I(ve).onDestroy(n)}async check(){try{this.appUpdate.set(await window.electron.appUpdate.check())}catch(n){this.problem.set(eH(n))}}async install(){try{await window.electron.appUpdate.install()}catch(n){this.problem.set(eH(n))}}async update(n){try{this.settings.set(await window.electron.settings.update(n)),this.problem.set(null)}catch(e){this.problem.set(eH(e)),await this.load()}}async chooseLanguage(n){Ty(n),await this.update({language:n}),Ty(this.settings()?.language??n)}async saveKey(n){n.preventDefault();try{let e=await window.electron.assistant.setKey(this.keyDraft());if(!e.ok){this.keyProblem.set(e.problem);return}this.keyDraft.set(``),this.keyProblem.set(null),await this.loadAssistant()}catch(e){this.keyProblem.set(eH(e))}}async clearKey(){try{this.assistant.set(await window.electron.assistant.clearKey()),this.keyProblem.set(null)}catch(n){this.keyProblem.set(eH(n))}}async loadAssistant(){try{this.assistant.set(await window.electron.assistant.status())}catch(n){this.problem.set(eH(n))}}async loadAppUpdate(){try{this.appUpdate.set(await window.electron.appUpdate.get())}catch(n){this.problem.set(eH(n))}}async load(){try{this.settings.set(await window.electron.settings.get())}catch(n){this.problem.set(eH(n))}}static ɵfac=function(e){return new(e||a)};static ɵcmp=wc({type:a,selectors:[[`app-settings-page`]],decls:5,vars:3,consts:[[1,`h-full`,`overflow-y-auto`,`px-6`,`pt-5`,`pb-8`],[1,`text-xl`,`font-semibold`,`tracking-tight`,`text-ink-100`],[3,`problem`],[1,`mt-4`,`grid`,`max-w-6xl`,`items-start`,`gap-4`,`lg:grid-cols-2`],[1,`space-y-4`],[`data-testid`,`setting-language`,1,`rounded-lg`,`border`,`border-ink-700`,`bg-ink-850`,`px-4`,`py-3`],[1,`text-[13px]`,`font-medium`,`text-ink-200`],[1,`mt-3`,`flex`,`items-center`,`gap-3`],[`for`,`setting-language`,1,`text-[13px]`,`text-ink-300`],[`id`,`setting-language`,1,`mx-focus`,`rounded-md`,`border`,`border-ink-700`,`bg-ink-800`,`px-2.5`,`py-1.5`,`text-[13px]`,`text-ink-100`,3,`change`],[3,`value`,`selected`],[1,`mt-2`,`text-[12px]`,`text-ink-500`],[1,`rounded-lg`,`border`,`border-ink-700`,`bg-ink-850`,`px-4`,`py-3`],[`data-testid`,`setting-start-at-login`,1,`mt-3`],[3,`onChange`,`label`,`on`,`disabled`],[`data-testid`,`setting-palette-shortcut`,1,`mt-3`],[3,`onChange`,`label`,`on`],[`data-testid`,`shortcut-taken`,1,`mt-2`,`text-[12px]`,`text-warn`],[1,`mt-3`,`space-y-2.5`],[`data-testid`,`setting-notify-crash`],[`data-testid`,`setting-notify-unhealthy`],[`data-testid`,`setting-notify-wiring`],[`data-testid`,`app-update`,1,`rounded-lg`,`border`,`border-ink-700`,`bg-ink-850`,`px-4`,`py-3`],[1,`flex`,`items-center`,`gap-3`],[1,`font-mono`,`text-[12px]`,`text-ink-500`],[`type`,`button`,`data-testid`,`app-update-install`,1,`mx-btn`,`mx-focus`,`ml-auto`],[`type`,`button`,`data-testid`,`app-update-check`,1,`mx-btn`,`mx-focus`,`ml-auto`,3,`disabled`],[`data-testid`,`setting-auto-update`,1,`mt-3`],[`data-testid`,`app-update-status`,1,`mt-2`,`text-[12px]`,`text-ink-500`],[`data-testid`,`assistant-settings`,1,`rounded-lg`,`border`,`border-ink-700`,`bg-ink-850`,`px-4`,`py-3`],[`data-testid`,`setting-assistant-model`,1,`mt-3`,`flex`,`items-center`,`gap-3`],[`for`,`setting-assistant-model`,1,`text-[13px]`,`text-ink-300`],[`id`,`setting-assistant-model`,1,`mx-focus`,`rounded-md`,`border`,`border-ink-700`,`bg-ink-800`,`px-2.5`,`py-1.5`,`text-[13px]`,`text-ink-100`,3,`change`],[`type`,`button`,`data-testid`,`app-update-install`,1,`mx-btn`,`mx-focus`,`ml-auto`,3,`click`],[`type`,`button`,`data-testid`,`app-update-check`,1,`mx-btn`,`mx-focus`,`ml-auto`,3,`click`,`disabled`],[1,`mt-3`,`flex`,`gap-2`],[1,`mt-2`,`text-[12px]`,`text-danger`],[1,`text-[13px]`,`text-ink-300`],[`type`,`button`,`data-testid`,`assistant-clear-key`,1,`mx-btn`,`mx-focus`,`ml-auto`,3,`click`],[`name`,`trash`,3,`size`],[1,`mt-3`,`flex`,`gap-2`,3,`submit`],[`for`,`assistant-key`,1,`sr-only`],[`id`,`assistant-key`,`type`,`password`,`placeholder`,`sk-ant-…`,`autocomplete`,`off`,`spellcheck`,`false`,1,`mx-focus`,`min-w-0`,`flex-1`,`rounded-md`,`border`,`border-ink-700`,`bg-ink-800`,`px-3`,`py-1.5`,`font-mono`,`text-[13px]`,`text-ink-100`,`placeholder:text-ink-500`,3,`input`,`value`,`disabled`],[`type`,`submit`,`data-testid`,`assistant-save-key`,1,`mx-btn`,`mx-focus`,3,`disabled`]],template:function(e,t){if(e&1&&(Li(0,`section`,0)(1,`h1`,1),fS(2),Nc(),Gm(3,`app-page-messages`,2),SE(4,Qe,58,27,`div`,3),Nc()),e&2){let l;ec(2),pg(t.t().title),ec(),Wm(`problem`,t.problem()),ec(),kE((l=t.settings())?4:-1,l)}},dependencies:[P,u$1,My,L],encapsulation:2})}})();export{me as SettingsPage};
@@ -1 +1 @@
1
- import{H as Kr,Mn as lk,P as I,Vn as ok,_r as wt,er as sk,ln as f,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{n as y,t as c}from"./chunk-DnMQ5zRD.js";var d;var h=f(()=>{Kr();lk();Kr();d=class a{state=wt(null);busy=wt(!1);startingWsl=wt(!1);wslFailure=wt(null);startedWsl=wt(!1);status=this.state.asReadonly();loading=this.busy.asReadonly();wslStarting=this.startingWsl.asReadonly();wslProblem=this.wslFailure.asReadonly();wslStartedBefore=this.startedWsl.asReadonly();async refresh(){this.busy.set(!0);try{this.state.set(await window.electron.engine.status())}finally{this.busy.set(!1)}}async startWsl(e){return this.start(()=>window.electron.engine.startWsl(e),!0)}async startWslDaemon(e){return this.start(()=>window.electron.engine.startWslDaemon(e),!1)}async start(e,t){this.startingWsl.set(!0),this.wslFailure.set(null);try{let r=await e();return r.ok?this.startedWsl.set(t):this.wslFailure.set(r.problem),await this.refresh(),r.ok}catch(r){return this.wslFailure.set(eH(r)),!1}finally{this.startingWsl.set(!1)}}static ɵfac=function(t){return new(t||a)};static ɵprov=X({token:a,factory:a.ɵfac,providedIn:`root`})}});var p;var W=f(()=>{Kr();y();h();lk();sk();f$1();Kr();p=class a{engine=I(d);compose=I(c);toast=I(u);items=wt([]);busy=wt(!1);failure=wt(null);contexts=this.items.asReadonly();switching=this.busy.asReadonly();problem=this.failure.asReadonly();active=$t(()=>this.items().find(e=>e.active)??null);async load(){try{this.items.set(await window.electron.contexts.list()),this.failure.set(null)}catch(e){this.failure.set(eH(e))}}async use(e){if(!(this.busy()||e===this.active()?.name)){this.busy.set(!0);try{let t=await window.electron.contexts.use(e);if(!t.ok){this.toast.error(t.problem,ok().dashboard.contexts.switchFailed(e));return}await Promise.all([this.load(),this.engine.refresh(),this.compose.loadStatus()])}catch(t){this.toast.error(eH(t),ok().dashboard.contexts.switchFailed(e))}finally{this.busy.set(!1)}}}static ɵfac=function(t){return new(t||a)};static ɵprov=X({token:a,factory:a.ɵfac,providedIn:`root`})}});export{p as i,d as n,h as r,W as t};
1
+ import{A as I,Mn as lk,R as Kr,Vn as ok,W as Lt,_r as wt,er as sk,ln as f,sn as eH,zt as X}from"./chunk-BU6WXUxF.js";import{n as u,t as f$1}from"./chunk-D0yJpook.js";import{n as y,t as c}from"./chunk-CzxPdR3J.js";var d;var h=f(()=>{Kr();lk();Kr();d=class a{state=wt(null);busy=wt(!1);startingWsl=wt(!1);wslFailure=wt(null);startedWsl=wt(!1);status=this.state.asReadonly();loading=this.busy.asReadonly();wslStarting=this.startingWsl.asReadonly();wslProblem=this.wslFailure.asReadonly();wslStartedBefore=this.startedWsl.asReadonly();async refresh(){this.busy.set(!0);try{this.state.set(await window.electron.engine.status())}finally{this.busy.set(!1)}}async startWsl(e){return this.start(()=>window.electron.engine.startWsl(e),!0)}async startWslDaemon(e){return this.start(()=>window.electron.engine.startWslDaemon(e),!1)}async start(e,t){this.startingWsl.set(!0),this.wslFailure.set(null);try{let r=await e();return r.ok?this.startedWsl.set(t):this.wslFailure.set(r.problem),await this.refresh(),r.ok}catch(r){return this.wslFailure.set(eH(r)),!1}finally{this.startingWsl.set(!1)}}static ɵfac=function(t){return new(t||a)};static ɵprov=X({token:a,factory:a.ɵfac,providedIn:`root`})}});var p;var W=f(()=>{Kr();y();h();lk();sk();f$1();Kr();p=class a{engine=I(d);compose=I(c);toast=I(u);items=wt([]);busy=wt(!1);failure=wt(null);contexts=this.items.asReadonly();switching=this.busy.asReadonly();problem=this.failure.asReadonly();active=Lt(()=>this.items().find(e=>e.active)??null);async load(){try{this.items.set(await window.electron.contexts.list()),this.failure.set(null)}catch(e){this.failure.set(eH(e))}}async use(e){if(!(this.busy()||e===this.active()?.name)){this.busy.set(!0);try{let t=await window.electron.contexts.use(e);if(!t.ok){this.toast.error(t.problem,ok().dashboard.contexts.switchFailed(e));return}await Promise.all([this.load(),this.engine.refresh(),this.compose.loadStatus()])}catch(t){this.toast.error(eH(t),ok().dashboard.contexts.switchFailed(e))}finally{this.busy.set(!1)}}}static ɵfac=function(t){return new(t||a)};static ɵprov=X({token:a,factory:a.ɵfac,providedIn:`root`})}});export{p as i,d as n,h as r,W as t};
@@ -1 +1 @@
1
- import{En as jc,H as Kr,In as nS,Jt as ag,Tr as zr,hr as wc,ln as f,o as $t}from"./chunk-PPlXONP3.js";var a;var c;var u=f(()=>{Kr();Kr();a={running:`bg-ok shadow-[0_0_0_3px_color-mix(in_oklab,var(--color-ok)_28%,transparent)]`,paused:`bg-halt`,restarting:`bg-halt`,partial:`bg-halt`,dead:`bg-danger`,created:`border-2 border-ink-400`,removing:`border-2 border-ink-400`,exited:`bg-stopped`,stopped:`bg-stopped`},c=class s{state=jc.required();size=jc(`sm`);look=$t(()=>this.state()in a?a[this.state()]:a.created);static ɵfac=function(e){return new(e||s)};static ɵcmp=wc({type:s,selectors:[[`app-state-dot`]],hostAttrs:[1,`block`,`shrink-0`,`rounded-full`],hostVars:7,hostBindings:function(e,t){e&2&&(zr(`data-state`,t.state()),nS(t.look()),ag(`size-2`,t.size()===`sm`)(`size-3`,t.size()===`md`))},inputs:{state:[1,`state`],size:[1,`size`]},decls:0,vars:0,template:function(e,t){},encapsulation:2})}});export{u as n,c as t};
1
+ import{En as jc,In as nS,Jt as ag,R as Kr,Tr as zr,W as Lt,hr as wc,ln as f}from"./chunk-BU6WXUxF.js";var a;var c;var u=f(()=>{Kr();Kr();a={running:`bg-ok shadow-[0_0_0_3px_color-mix(in_oklab,var(--color-ok)_28%,transparent)]`,paused:`bg-halt`,restarting:`bg-halt`,partial:`bg-halt`,dead:`bg-danger`,created:`border-2 border-ink-400`,removing:`border-2 border-ink-400`,exited:`bg-stopped`,stopped:`bg-stopped`},c=class s{state=jc.required();size=jc(`sm`);look=Lt(()=>this.state()in a?a[this.state()]:a.created);static ɵfac=function(e){return new(e||s)};static ɵcmp=wc({type:s,selectors:[[`app-state-dot`]],hostAttrs:[1,`block`,`shrink-0`,`rounded-full`],hostVars:7,hostBindings:function(e,t){e&2&&(zr(`data-state`,t.state()),nS(t.look()),ag(`size-2`,t.size()===`sm`)(`size-3`,t.size()===`md`))},inputs:{state:[1,`state`],size:[1,`size`]},decls:0,vars:0,template:function(e,t){},encapsulation:2})}});export{u as n,c as t};
@@ -1 +1 @@
1
- import{B as Jm,Ct as Tc,Dn as kC,E as G,En as jc,Fn as mj,Ft as Wm,G as M,Gn as pg,H as Kr,J as My,Kn as pj,L as Ij,M as HC,Mn as lk,On as kc,P as I,Pt as W$1,Tn as jE,Tr as zr,V as Km,Vn as ok,W as Ld,X as Nc,Zn as rf,_r as wt,at as Pr,cn as ec,er as sk,et as OE,g as Cj,gt as SC,hr as wc,i as $i,in as dk,it as PS,k as Gm,ln as f,lr as ve$1,n as $D,o as $t$1,r as $d,s as Ac,sn as eH,un as fS,ut as RC,wn as ik,wt as Tg,x as ES,xt as TC,y as Dj}from"./chunk-PPlXONP3.js";import{D as ko,E as jo,I as ts,L as xo,N as sr,T as jn,a as Go,f as Ro,g as Uo,r as Bo,s as Jo,t as $o,z as zo}from"./chunk-InjvrsZj.js";import{r as g,t as L}from"./chunk-Bz_HteBH.js";function kt(e){let n=I(te);return $t$1(()=>e?.()??n())}var te;var Ft=f(()=>{Kr();te=new M(`RDX_DIRECTION`,{providedIn:`root`,factory:()=>$t$1(()=>`ltr`)})});function St(){return I(Ht,{optional:!0,self:!0})}function Kt(e){return{provide:Ht,useFactory:e}}function jt(e,n){let t=e.compareDocumentPosition(n);return t&Node.DOCUMENT_POSITION_FOLLOWING||t&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:t&Node.DOCUMENT_POSITION_PRECEDING||t&Node.DOCUMENT_POSITION_CONTAINS?1:0}function ae(e){return[...e].filter(n=>n.element.isConnected).sort((n,t)=>jt(n.element,t.element))}function re(e){let n=new Set;for(let t=1;t<e.length;t+=1){let i=de(e[t-1],e[t]);i&&n.add(i)}return n}function de(e,n){let t=e.parentElement;for(;t&&!t.contains(n);)t=t.parentElement;return t}function le(e){let n=new Set;for(let t of e){for(let i=0;i<t.addedNodes.length;i+=1)if(n.has(t.addedNodes[i]))return!0;for(let i=0;i<t.removedNodes.length;i+=1)n.add(t.removedNodes[i])}for(let t of n)if(t.isConnected)return!0;return!1}function ue(e,n){return se.some(t=>!n.includes(t)&&e.getModifierState(t))}function Pt(e){if(!(e instanceof HTMLElement))return!1;if(e.tagName===`TEXTAREA`)return!0;if(e.tagName!==`INPUT`)return!1;try{return e.selectionStart!=null}catch{return!1}}function Wt(e,n){let t=n===`rtl`?Bo:jo,i=n===`rtl`?jo:Bo;return{forwardKeys:e===`horizontal`?[t]:e===`vertical`?[ko]:[t,ko],backwardKeys:e===`horizontal`?[i]:e===`vertical`?[$o]:[i,$o]}}function ce(e,n,t,i){let{forwardKeys:o,backwardKeys:s}=Wt(t,i),a=n.selectionStart,l=n.selectionEnd,r=n.value??``;return!!(a==null||l==null||e.shiftKey||a!==l||!s.includes(e.key)&&a<r.length||!o.includes(e.key)&&a>0)}function At(e,n){return n<0||n>=e.length}function Lt(e,n){return ot(e,{startingIndex:-1,disabledIndices:n})}function he(e,n){return ot(e,{startingIndex:e.length,decrement:!0,disabledIndices:n})}function ot(e,n={}){let{startingIndex:t=-1,decrement:i=!1,disabledIndices:o}=n,s=i?-1:1;for(let a=t+s;a>=0&&a<e.length;a+=s)if(!zt(e,a,o))return a;return-1}function zt(e,n,t){if(t?.includes(n))return!0;let i=e[n];return i?!pe(i)||i.matches(`:disabled`)?!0:t===void 0&&(i.hasAttribute(`disabled`)||i.getAttribute(`aria-disabled`)===`true`):!1}function me(e){return e===null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}function pe(e){if(!e||!e.isConnected)return!1;if(typeof Element<`u`&&!(e instanceof Element))return!0;let n;try{n=getComputedStyle(e)}catch{return!0}return n.visibility!==`hidden`&&n.visibility!==`collapse`}function fe(e,n,t,i){if(!e||!n||typeof e.scrollTo!=`function`)return;let o=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight,a=e.scrollLeft,l=e.scrollTop;if(o&&i!==`vertical`){let r=Vt(e,n,`left`),d=J(e),p=J(n);t===`ltr`&&(r+n.offsetWidth+p.scrollMarginRight>e.scrollLeft+e.clientWidth-d.scrollPaddingRight?a=r+n.offsetWidth+p.scrollMarginRight-e.clientWidth+d.scrollPaddingRight:r-p.scrollMarginLeft<e.scrollLeft+d.scrollPaddingLeft&&(a=r-p.scrollMarginLeft-d.scrollPaddingLeft)),t===`rtl`&&(r-p.scrollMarginRight<e.scrollLeft+d.scrollPaddingLeft?a=r-p.scrollMarginLeft-d.scrollPaddingLeft:r+n.offsetWidth+p.scrollMarginRight>e.scrollLeft+e.clientWidth-d.scrollPaddingRight&&(a=r+n.offsetWidth+p.scrollMarginRight-e.clientWidth+d.scrollPaddingRight))}if(s&&i!==`horizontal`){let r=Vt(e,n,`top`),d=J(e),p=J(n);r-p.scrollMarginTop<e.scrollTop+d.scrollPaddingTop?l=r-p.scrollMarginTop-d.scrollPaddingTop:r+n.offsetHeight+p.scrollMarginBottom>e.scrollTop+e.clientHeight-d.scrollPaddingBottom&&(l=r+n.offsetHeight+p.scrollMarginBottom-e.clientHeight+d.scrollPaddingBottom)}e.scrollTo({left:a,top:l,behavior:`auto`})}function Vt(e,n,t){let i=t===`left`?`offsetLeft`:`offsetTop`,o=0,s=n;for(;s?.offsetParent&&(o+=s[i],s.offsetParent!==e);)s=s.offsetParent;return o}function J(e){let n=getComputedStyle(e);return{scrollMarginTop:parseFloat(n.scrollMarginTop)||0,scrollMarginRight:parseFloat(n.scrollMarginRight)||0,scrollMarginBottom:parseFloat(n.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(n.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(n.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(n.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(n.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(n.scrollPaddingLeft)||0}}var Ht;var ne;var Bt;var oe;var se;var ge;var st;var be;var j;var O;var ve;var at;var xe;var W;var Z;var rt=f(()=>{Kr();Kr();sr();Ft();Ht=new M(`RdxCompositeItemOwner`);ne=`data-composite-item-active`,Bt=new Set([$o,ko,Bo,jo]),oe=new Set([...Bt,Go,Uo]),se=[`Shift`,`Control`,`Alt`,`Meta`];ge=()=>{let e=I(j);return{listElement:e.elementRef.nativeElement,items:e.items,itemMap:e.itemMap,registerItem:n=>e.registerItem(n),indexOf:n=>e.indexOf(n)}},[st,be]=xo(`RdxCompositeListContext`,`utils/composite`),j=(()=>{class e{constructor(){this.elementRef=I(Pr),this.registrations=new Map,this.registrationTick=wt(0),this.reorderTick=wt(0),this.onMapChange=pj(),this.items=$t$1(()=>(this.reorderTick(),this.registrationTick(),ae([...this.registrations.values()]))),this.indexMap=$t$1(()=>{let t=new Map;return this.items().forEach((i,o)=>{t.set(i.element,o)}),t}),this.itemMap=$t$1(()=>{let t=new Map;return this.items().forEach((i,o)=>{t.set(i.element,G(W$1({},i.metadata()??{}),{index:o}))}),t}),rf(()=>{this.onMapChange.emit(this.itemMap())}),this.observeItemReordering()}observeItemReordering(){typeof MutationObserver==`function`&&rf(t=>{let i=this.items().map(a=>a.element);if(i.length<2)return;let o=re(i);if(o.size===0)return;let s=new MutationObserver(a=>{if(!le(a))return;let l=null;for(let r of i)if(r.isConnected){if(l&&jt(l,r)>0){s.disconnect(),this.reorderTick.update(d=>d+1);return}l=r}});o.forEach(a=>s.observe(a,{childList:!0})),t(()=>s.disconnect())})}registerItem(t){return this.registrations.set(t.element,t),this.registrationTick.update(i=>i+1),()=>{this.registrations.get(t.element)===t&&(this.registrations.delete(t.element),this.registrationTick.update(i=>i+1))}}indexOf(t){return this.indexMap().get(t)??-1}elements(){return this.items().map(t=>t.element)}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=OE({type:e,selectors:[[``,`rdxCompositeList`,``]],outputs:{onMapChange:`onMapChange`},exportAs:[`rdxCompositeList`],features:[ES([be(ge)])]})}}return e})(),O=(()=>{class e{constructor(){this.owner=St(),this.injectedListContext=this.owner?null:st(!0),this.elementRef=I(Pr),this.hasRendered=wt(!1),this.listContext=$t$1(()=>this.owner?this.owner.listContext():this.injectedListContext),this.metadataInput=jc(void 0,{alias:`metadata`}),this._metadata=PS(()=>this.metadataInput()),this.index=$t$1(()=>this.listContext()?.indexOf(this.elementRef.nativeElement)??-1),this.inListElement=$t$1(()=>this.isInListElement(this.listContext())),$D(()=>{this.hasRendered.set(!0)}),rf(t=>{let i=this.listContext();if(!i||!this.hasRendered()||!this.isInListElement(i))return;let o=this.elementRef.nativeElement;t(Tg(()=>i.registerItem({element:o,metadata:this._metadata.asReadonly()})))})}setMetadata(t){this._metadata.set(t)}isInListElement(t){return!!t&&t.listElement.contains(this.elementRef.nativeElement)}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=OE({type:e,selectors:[[``,`rdxCompositeListItem`,``]],inputs:{metadataInput:[1,`metadata`,`metadataInput`]},exportAs:[`rdxCompositeListItem`]})}}return e})(),ve=()=>{let e=I(W);return{rootElement:e.elementRef.nativeElement,highlightedIndex:e.highlightedIndex.asReadonly(),highlightItemOnHover:e.highlightItemOnHover,orientation:e.orientation,dir:e.dir,isIndexDisabled:n=>e.isIndexDisabled(n),setHighlightedIndex:(n,t)=>e.setHighlightedIndex(n,t),relayKeyboardEvent:n=>e.relayKeyboardEvent(n)}},[at,xe]=xo(`RdxCompositeRootContext`,`utils/composite`),W=(()=>{class e{constructor(){this.elementRef=I(Pr),this.compositeList=I(j,{self:!0}),this.hasSetInitialIndex=!1,this.orientationInput=jc(`both`,{alias:`orientation`}),this._orientation=PS(()=>this.orientationInput()),this.orientation=this._orientation.asReadonly(),this.dirInput=jc(void 0,{alias:`dir`}),this.effectiveDir=kt(this.dirInput),this._dir=PS(()=>this.effectiveDir()),this.dir=this._dir.asReadonly(),this.loopFocusInput=jc(!0,{alias:`loopFocus`,transform:Dj}),this._loopFocus=PS(()=>this.loopFocusInput()),this.loopFocus=this._loopFocus.asReadonly(),this.enableHomeAndEndKeysInput=jc(!1,{alias:`enableHomeAndEndKeys`,transform:Dj}),this._enableHomeAndEndKeys=PS(()=>this.enableHomeAndEndKeysInput()),this.enableHomeAndEndKeys=this._enableHomeAndEndKeys.asReadonly(),this.disabledIndicesInput=jc(void 0,{alias:`disabledIndices`}),this._disabledIndices=PS(()=>this.disabledIndicesInput()),this.disabledIndices=this._disabledIndices.asReadonly(),this.modifierKeysInput=jc([],{alias:`modifierKeys`}),this._modifierKeys=PS(()=>this.modifierKeysInput()),this.modifierKeys=this._modifierKeys.asReadonly(),this.highlightItemOnHover=jc(!1,{transform:Dj}),this.stopEventPropagation=jc(!0,{transform:Dj}),this.highlightedIndex=mj(0),this.onHighlightedIndexChange=pj(),this.onMapChange=pj(),this.items=this.compositeList.items,this.itemMap=this.compositeList.itemMap,rf(()=>{let t=this.items();if(t.length!==0){if(!this.hasSetInitialIndex){this.hasSetInitialIndex=!0;let i=t.findIndex(o=>o.element.hasAttribute(ne));if(i!==-1){this.setHighlightedIndex(i,!0);return}this.moveHighlightOffDisabledItem();return}this.disabledIndices()!=null&&this.moveHighlightOffDisabledItem()}}),rf(()=>{this.onMapChange.emit(this.itemMap())})}moveHighlightOffDisabledItem(){if(!this.isIndexDisabled(this.highlightedIndex()))return;let t=this.elements(),i=Lt(t,this.disabledIndices());At(t,i)||this.setHighlightedIndex(i)}indexOf(t){return this.compositeList.indexOf(t)}setOrientation(t){this._orientation.set(t)}setLoopFocus(t){this._loopFocus.set(t)}setDir(t){this._dir.set(t)}setEnableHomeAndEndKeys(t){this._enableHomeAndEndKeys.set(t)}setDisabledIndices(t){this._disabledIndices.set(t)}setModifierKeys(t){this._modifierKeys.set(t)}isIndexDisabled(t){return zt(this.elements(),t,this.disabledIndices())}setHighlightedIndex(t,i=!1){this.highlightedIndex()!==t&&(this.highlightedIndex.set(t),this.onHighlightedIndexChange.emit(t)),i&&fe(this.elementRef.nativeElement,this.elements()[t],this.dir(),this.orientation())}relayKeyboardEvent(t){this.handleCompositeKeydown(t,!0)}handleKeydown(t){this.handleCompositeKeydown(t,!1)}handleFocusIn(t){let i=t.target;Pt(i)&&i.setSelectionRange(0,i.value.length)}handleCompositeKeydown(t,i){if(!(this.enableHomeAndEndKeys()?oe:Bt).has(t.key)||ue(t,this.modifierKeys()))return;let s=t.target,a=this.elementRef.nativeElement;if(!i&&s instanceof HTMLElement){let d=s.closest(`[rdxCompositeRoot]`);if(d&&d!==a)return}if(Pt(s)&&!me(s))try{if(ce(t,s,this.orientation(),this.dir()))return}catch{return}let l=this.elements();if(l.length===0)return;let r=this.getNextIndex(t,l);r===this.highlightedIndex()||At(l,r)||(this.stopEventPropagation()&&t.stopPropagation(),t.preventDefault(),this.setHighlightedIndex(r,!0),queueMicrotask(()=>{this.elements()[r]?.focus()}))}getNextIndex(t,i){let o=this.highlightedIndex(),s=Lt(i,this.disabledIndices()),a=he(i,this.disabledIndices());if(this.enableHomeAndEndKeys()){if(t.key===`Home`)return s;if(t.key===`End`)return a}let{forwardKeys:l,backwardKeys:r}=Wt(this.orientation(),this.dir()),d=l.includes(t.key),p=r.includes(t.key);if(!d&&!p)return o;let E=p,Qt=E?s:a,Xt=E?a:s;return this.loopFocus()&&o===Qt?Xt:ot(i,{startingIndex:o,decrement:E,disabledIndices:this.disabledIndices()})}elements(){return this.compositeList.elements()}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=OE({type:e,selectors:[[``,`rdxCompositeRoot`,``]],hostBindings:function(i,o){i&1&&Jm(`keydown`,function(a){return o.handleKeydown(a)})(`focusin`,function(a){return o.handleFocusIn(a)})},inputs:{orientationInput:[1,`orientation`,`orientationInput`],dirInput:[1,`dir`,`dirInput`],loopFocusInput:[1,`loopFocus`,`loopFocusInput`],enableHomeAndEndKeysInput:[1,`enableHomeAndEndKeys`,`enableHomeAndEndKeysInput`],disabledIndicesInput:[1,`disabledIndices`,`disabledIndicesInput`],modifierKeysInput:[1,`modifierKeys`,`modifierKeysInput`],highlightItemOnHover:[1,`highlightItemOnHover`],stopEventPropagation:[1,`stopEventPropagation`],highlightedIndex:[1,`highlightedIndex`]},outputs:{highlightedIndex:`highlightedIndexChange`,onHighlightedIndexChange:`onHighlightedIndexChange`,onMapChange:`onMapChange`},exportAs:[`rdxCompositeRoot`],features:[ES([xe(ve)]),jE([j])]})}}return e})(),Z=(()=>{class e{constructor(){this.owner=St(),this.injectedRootContext=this.owner?null:at(!0),this.listItem=I(O,{self:!0}),this.elementRef=I(Pr),this.rootContext=$t$1(()=>this.owner?this.owner.rootContext():this.injectedRootContext),this.index=this.listItem.index,this.tabIndex=$t$1(()=>{let t=this.rootContext();if(!this.isInRootElement(t))return null;let i=this.index();return i!==-1&&t.highlightedIndex()===i&&!t.isIndexDisabled(i)?0:-1})}setMetadata(t){this.listItem.setMetadata(t)}handleFocus(){let t=this.rootContext(),i=this.index();i!==-1&&this.isInRootElement(t)&&t.setHighlightedIndex(i)}handleMouseMove(t){if(Jo(t))return;let i=this.rootContext(),o=this.index();!this.isInRootElement(i)||o===-1||!i.highlightItemOnHover()||i.highlightedIndex()===o||i.isIndexDisabled(o)||this.elementRef.nativeElement.focus()}isInRootElement(t){return!!t&&t.rootElement.contains(this.elementRef.nativeElement)}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=OE({type:e,selectors:[[``,`rdxCompositeItem`,``]],hostVars:1,hostBindings:function(i,o){i&1&&Jm(`focus`,function(){return o.handleFocus()})(`mousemove`,function(a){return o.handleMouseMove(a)}),i&2&&zr(`tabindex`,o.tabIndex())},exportAs:[`rdxCompositeItem`],features:[jE([{directive:O,inputs:[`metadata`,`metadata`]}])]})}}return e})()});function $t(e,n){return`${e}-tab-${n}`}function qt(e,n){return`${e}-panel-${n}`}function Ce(e){return typeof e.disabled==`boolean`&&typeof e.id==`string`&&Object.prototype.hasOwnProperty.call(e,`value`)}function Ee(e,n){for(let t of e.values())if(t.value===n)return t}function we(e){for(let n of e.values())if(!n.disabled)return n.value}function Te(e,n,t,i){if(e==null||n==null)return`none`;let o=null,s=null,a=-1,l=-1;for(let[p,E]of i.entries())if(E.value===e&&(o=p,a=E.index),E.value===n&&(s=p,l=E.index),o&&s)break;if(!o||!s||a===l)return Ne(e,n,t);let r=o.getBoundingClientRect(),d=s.getBoundingClientRect();return t===`horizontal`?d.left<r.left?`left`:d.left>r.left||l>a?`right`:`left`:d.top<r.top?`up`:d.top>r.top||l>a?`down`:`up`}function Ne(e,n,t){return e!==n&&typeof e==`number`&&typeof n==`number`||e!==n&&typeof e==`string`&&typeof n==`string`?t===`horizontal`?n>e?`right`:`left`:n>e?`down`:`up`:`none`}function Fe(){return Kt(ke)}var tt;var Ie;var mi;var Me;var De;var Re;var _e;var ke;var pi;var Pe=f(()=>{Kr();Kr();sr();rt();rt();g();[tt,Ie]=xo(`RdxTabsRootContext`,`components/tabs`);mi=(()=>{class e{constructor(){this.rootContext=tt(),this.elementRef=I(Pr),this.compositeRoot=I(W,{self:!0}),this.compositeRootContext=at(),this.compositeListContext=st(),this.activateOnFocus=jc(!1,{transform:Dj}),this.loopFocus=jc(!0,{transform:Dj}),this.tabMap=$t$1(()=>{let i=new Map;return this.compositeRoot.itemMap().forEach((o,s)=>{Ce(o)&&i.set(s,o)}),i}),this.tabMetadata=$t$1(()=>Array.from(this.tabMap().values())),this.disabledIndices=$t$1(()=>this.tabMetadata().filter(i=>i.disabled).map(i=>i.index)),this.activeIndex=$t$1(()=>{let i=this.rootContext.value();return this.tabMetadata().find(s=>s.value===i)?.index??-1});let t=this.rootContext.registerTabList(this.elementRef.nativeElement,this.compositeRootContext,this.compositeListContext);I(ve$1).onDestroy(t),this.compositeRoot.setEnableHomeAndEndKeys(!0),this.compositeRoot.setDisabledIndices([]),rf(()=>{this.compositeRoot.setOrientation(this.rootContext.orientation()),this.compositeRoot.setLoopFocus(this.loopFocus())}),rf(()=>{this.rootContext.setTabMap(this.tabMap())}),rf(()=>{let i=this.activeIndex();if(i===-1)return;let o=this.elementRef.nativeElement,s=o.ownerDocument.activeElement;if(!(s&&o.contains(s))){if(this.disabledIndices().includes(i)){let a=this.tabMetadata().find(l=>!l.disabled)?.index;a!==void 0&&this.compositeRoot.setHighlightedIndex(a);return}this.compositeRoot.setHighlightedIndex(i)}}),rf(()=>this.rootContext.setActivateOnFocus(this.activateOnFocus()))}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=OE({type:e,selectors:[[``,`rdxTabsList`,``]],hostAttrs:[`role`,`tablist`],hostVars:3,hostBindings:function(i,o){i&2&&zr(`aria-orientation`,o.rootContext.orientation()===`vertical`?`vertical`:void 0)(`data-orientation`,o.rootContext.orientation())(`data-activation-direction`,o.rootContext.activationDirection())},inputs:{activateOnFocus:[1,`activateOnFocus`],loopFocus:[1,`loopFocus`]},exportAs:[`rdxTabsList`],features:[jE([W])]})}}return e})();Me=()=>({present:I(De).present}),De=(()=>{class e{constructor(){this.elementRef=I(Pr),this.listItem=I(O,{self:!0}),this.rootContext=tt(),this.value=jc.required(),this.keepMounted=jc(!1,{transform:Dj}),this.transition=ts(()=>{}),this.transitionStatus=this.transition.status,this.panelId=$t$1(()=>qt(this.rootContext.baseId,this.value())),this.tabId=$t$1(()=>{let i=this.value();for(let o of this.rootContext.tabMap().values())if(o.value===i)return o.id;return $t(this.rootContext.baseId,i)}),this.active=$t$1(()=>this.rootContext.value()===this.value()),this.hasPresence=wt(!1),this.present=$t$1(()=>this.keepMounted()||this.active()),this.hidden=$t$1(()=>!this.active()&&this.transitionStatus()!==`ending`&&(!this.hasPresence()||this.keepMounted())),this.index=this.listItem.index,this.previousActive=!1,this.isFirstRun=!0;let t=this.transition.registerElement(this.elementRef.nativeElement);I(ve$1).onDestroy(t),rf(()=>{this.listItem.setMetadata({id:this.panelId(),value:this.value()})}),rf(()=>{let i=this.active();if(this.isFirstRun){this.isFirstRun=!1,this.previousActive=i;return}i!==this.previousActive&&(this.previousActive=i,Tg(()=>this.transition.start(i)))})}markHasPresence(){this.hasPresence.set(!0)}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=OE({type:e,selectors:[[``,`rdxTabsPanel`,``]],hostAttrs:[`role`,`tabpanel`],hostVars:10,hostBindings:function(i,o){i&2&&(Km(`hidden`,o.hidden()),zr(`id`,o.panelId())(`tabindex`,o.active()?0:-1)(`aria-labelledby`,o.tabId())(`data-orientation`,o.rootContext.orientation())(`data-activation-direction`,o.rootContext.activationDirection())(`data-index`,o.index())(`data-hidden`,o.active()?void 0:``)(`data-starting-style`,o.transitionStatus()===`starting`?``:void 0)(`data-ending-style`,o.transitionStatus()===`ending`?``:void 0))},inputs:{value:[1,`value`],keepMounted:[1,`keepMounted`]},exportAs:[`rdxTabsPanel`],features:[ES([L(Me)]),jE([O])]})}}return e})(),Re=()=>{let e=I(_e);return{baseId:e.baseId,value:e.value,orientation:e.orientation,activationDirection:e.activationDirection.asReadonly(),activateOnFocus:e.activateOnFocus.asReadonly(),tabListElement:e.tabListElement.asReadonly(),tabMap:e.tabMap.asReadonly(),tabCompositeRoot:e.tabCompositeRoot.asReadonly(),tabCompositeList:e.tabCompositeList.asReadonly(),setValue:(n,t,i)=>e.setValue(n,t,i),setActivateOnFocus:n=>e.activateOnFocus.set(n),registerTabList:(n,t,i)=>e.registerTabList(n,t,i),setTabMap:n=>e.tabMap.set(n)}},_e=(()=>{class e{constructor(){this.baseId=jn(`rdx-tabs-`),this.value=mj(),this.defaultValue=jc(void 0),this.orientation=jc(`horizontal`),this.onValueChange=pj(),this.activateOnFocus=wt(!1),this.tabListElement=wt(null),this.tabMap=wt(new Map),this.tabCompositeRoot=wt(null),this.tabCompositeList=wt(null),this.activationDirection=wt(`none`),this.externallyControlled=wt(!1),this.hasObservedValue=!1,this.internalValueCommit=!1,this.hasAppliedDefaultValue=!1,this.shouldNotifyInitialValueChange=!0,this.shouldHonorDisabledDefaultValue=!1,this.didRegisterTabs=!1,rf(()=>{let t=this.value();if(this.internalValueCommit){this.internalValueCommit=!1,this.hasObservedValue=!0,this.previousObservedValue=t;return}if(!this.hasObservedValue){this.hasObservedValue=!0,this.previousObservedValue=t,t!==void 0&&this.externallyControlled.set(!0);return}t!==this.previousObservedValue&&(this.externallyControlled.set(!0),this.previousObservedValue=t)}),rf(()=>{if(this.hasAppliedDefaultValue||Tg(this.value)!==void 0)return;let t=this.defaultValue(),i=t!==void 0;this.hasAppliedDefaultValue=!0,this.initialDefaultValue=t??0,this.shouldNotifyInitialValueChange=!i,this.shouldHonorDisabledDefaultValue=i,Tg(()=>this.commitValue(this.initialDefaultValue))}),rf(()=>{let t=this.tabMap(),i=this.value();if(this.externallyControlled())return;if(t.size===0){this.didRegisterTabs&&i!==null&&!this.lastKnownTabElement?.isConnected&&Tg(()=>this.commitAutomaticValueChange(null,`missing`));return}this.didRegisterTabs=!0,this.lastKnownTabElement=t.keys().next().value;let o=Ee(t,i),s=we(t),a=o?.disabled,l=o==null&&i!==null;if(!a&&i===this.initialDefaultValue&&(this.shouldHonorDisabledDefaultValue=!1),this.shouldHonorDisabledDefaultValue&&a&&i===this.initialDefaultValue)return;let r=this.shouldNotifyInitialValueChange;if(a||l){let d=s??null;if(i===d){this.shouldNotifyInitialValueChange=!1;return}let p=`missing`;r?p=`initial`:a&&(p=`disabled`),Tg(()=>this.commitAutomaticValueChange(d,p));return}r&&o!=null&&(Tg(()=>this.notifyAutomaticValueChange(i,`initial`)),this.shouldNotifyInitialValueChange=!1)})}setValue(t,i,o=`none`){let s=this.value();if(s===t)return;let a=i?.currentTarget instanceof HTMLElement?i.currentTarget:void 0,{eventDetails:l}=zo(o,i??new Event(`tabs.value-change`),a),r=l,d=Te(s,t,this.orientation(),this.tabMap());r.activationDirection=d,this.onValueChange.emit({value:t,eventDetails:r}),!r.isCanceled()&&(this.activationDirection.set(d),this.commitValue(t))}registerTabList(t,i,o){return this.tabListElement.set(t),this.tabCompositeRoot.set(i),this.tabCompositeList.set(o),()=>{this.tabCompositeRoot()!==i||this.tabCompositeList()!==o||(this.tabListElement.set(null),this.tabCompositeRoot.set(null),this.tabCompositeList.set(null),this.activateOnFocus.set(!1))}}commitValue(t){this.internalValueCommit=!0,this.value.set(t)}commitAutomaticValueChange(t,i){this.activationDirection.set(`none`),this.commitValue(t),this.notifyAutomaticValueChange(t,i),this.shouldNotifyInitialValueChange=!1}notifyAutomaticValueChange(t,i){if(t===void 0)return;let{eventDetails:o}=zo(i,new Event(`tabs.value-change`)),s=o;s.activationDirection=`none`,this.onValueChange.emit({value:t,eventDetails:s})}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=OE({type:e,selectors:[[``,`rdxTabsRoot`,``]],hostVars:2,hostBindings:function(i,o){i&2&&zr(`data-orientation`,o.orientation())(`data-activation-direction`,o.activationDirection())},inputs:{value:[1,`value`],defaultValue:[1,`defaultValue`],orientation:[1,`orientation`]},outputs:{value:`valueChange`,onValueChange:`onValueChange`},exportAs:[`rdxTabsRoot`],features:[ES([Ie(Re)]),jE([j])]})}}return e})();ke=()=>{let e=tt();return{rootContext:e.tabCompositeRoot,listContext:e.tabCompositeList}};pi=(()=>{class e{constructor(){this.rootContext=tt(),this.compositeItem=I(Z,{self:!0}),this.elementRef=I(Pr),this.value=jc.required(),this.disabled=jc(!1,{transform:Dj}),this.nativeButton=jc(!0,{transform:Dj}),this.id=jc(void 0),this.tabId=$t$1(()=>this.id()??$t(this.rootContext.baseId,this.value())),this.panelId=$t$1(()=>qt(this.rootContext.baseId,this.value())),this.active=$t$1(()=>this.rootContext.value()===this.value()),this.isPressing=!1,this.isMainButton=!1,Cj()&&Ij(()=>{let t=this.rootContext.tabCompositeList();t&&!t.listElement.contains(this.elementRef.nativeElement)&&Ro(`tabs/tab-outside-list`,'`rdxTabsTab` is rendered outside its `rdxTabsList`, so it gets no roving tabindex, arrow keys cannot reach it, and its `role="tab"` sits outside the `role="tablist"`. Move the tab inside the list, or project it there with `<ng-content>`.',`components/tabs`)}),rf(()=>{this.compositeItem.setMetadata({disabled:this.disabled(),id:this.tabId(),value:this.value()})})}onClick(t){this.active()||this.disabled()||this.rootContext.setValue(this.value(),t,`none`)}onKeyDown(t){!this.disabled()&&(t.key===` `||t.key===`Enter`)&&this.rootContext.setValue(this.value(),t,`none`)}onPointerDown(t){if(this.active()||this.disabled())return;this.isPressing=!0,this.isMainButton=t.button===0;let i=t.currentTarget instanceof HTMLElement?t.currentTarget.ownerDocument:document;i.addEventListener(`pointerup`,()=>{this.isPressing=!1,this.isMainButton=!1},{once:!0}),i.addEventListener(`pointercancel`,()=>{this.isPressing=!1,this.isMainButton=!1},{once:!0}),i.addEventListener(`blur`,()=>{this.isPressing=!1,this.isMainButton=!1},{once:!0})}onFocus(t){this.active()||this.disabled()||this.rootContext.activateOnFocus()&&(!this.isPressing||this.isMainButton)&&this.rootContext.setValue(this.value(),t,`none`)}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=OE({type:e,selectors:[[``,`rdxTabsTab`,``]],hostAttrs:[`role`,`tab`],hostVars:11,hostBindings:function(i,o){i&1&&Jm(`click`,function(a){return o.onClick(a)})(`keydown`,function(a){return o.onKeyDown(a)})(`pointerdown`,function(a){return o.onPointerDown(a)})(`focus`,function(a){return o.onFocus(a)}),i&2&&zr(`type`,o.nativeButton()?`button`:void 0)(`id`,o.tabId())(`aria-selected`,o.active())(`aria-controls`,o.panelId())(`aria-disabled`,o.disabled()?`true`:void 0)(`disabled`,null)(`data-composite-item-active`,o.active()?``:void 0)(`data-orientation`,o.rootContext.orientation())(`data-activation-direction`,o.rootContext.activationDirection())(`data-active`,o.active()?``:void 0)(`data-disabled`,o.disabled()?``:void 0)},inputs:{value:[1,`value`],disabled:[1,`disabled`],nativeButton:[1,`nativeButton`],id:[1,`id`]},exportAs:[`rdxTabsTab`],features:[ES([Fe()]),jE([Z])]})}}return e})()});function Ae(e,n){if(e&1&&($i(0,`p`,8),fS(1),Nc()),e&2){let t=HC(2);ec(),pg(t.t().introHost)}}function Le(e,n){if(e&1&&($i(0,`p`,8),fS(1),Nc()),e&2){let t=HC(2);ec(),pg(t.t().introContainer)}}function Ve(e,n){if(e&1&&SC(0,Ae,2,1,`p`,8)(1,Le,2,1,`p`,8),e&2)kC(HC().containerId()===null?0:1)}function Oe(e,n){if(e&1&&($i(0,`p`,9),fS(1),Nc()),e&2){let t=HC().$implicit;ec(),pg(t.text)}}function He(e,n){if(e&1&&($i(0,`div`,10),fS(1),Nc()),e&2){let t=HC().$implicit;ec(),pg(t.text)}}function Se(e,n){if(e&1&&($i(0,`p`,11),Gm(1,`app-icon`,15),fS(2),Nc()),e&2){let t=HC().$implicit;ec(),Wm(`size`,12),ec(),Ac(` `,t.label,` `)}}function Ke(e,n){if(e&1&&($i(0,`pre`,17),fS(1),Nc()),e&2){let t=HC(2).$implicit;ec(),pg(t.proposal.command)}}function Be(e,n){if(e&1&&($i(0,`span`,21),fS(1),Nc()),e&2){let t=HC(2).$implicit,i=HC();ec(),pg(t.proposal.kind===`command`?i.t().onPrompt:i.t().done)}}function je(e,n){if(e&1&&($i(0,`span`,22),fS(1),Nc()),e&2){let t=HC(2).$implicit;ec(),pg(t.problem)}}function We(e,n){if(e&1){let t=RC();$i(0,`div`,12)(1,`p`,16),fS(2),Nc(),SC(3,Ke,2,1,`pre`,17),$i(4,`div`,18)(5,`button`,19),Jm(`click`,function(){Ld(t);let o=HC(),s=o.$implicit,a=o.$index;return $d(HC().carryOut(a,s.proposal))}),Gm(6,`app-icon`,20),fS(7),Nc(),SC(8,Be,2,1,`span`,21)(9,je,2,1,`span`,22),Nc()()}if(e&2){let t=HC().$implicit,i=HC();ec(2),pg(t.proposal.reason),ec(),kC(t.proposal.kind===`command`?3:-1),ec(2),Wm(`disabled`,t.state===`busy`||t.state===`done`&&t.proposal.kind!==`command`),ec(),Wm(`name`,i.proposalIcon(t.proposal))(`size`,14),ec(),Ac(` `,i.proposalLabel(t.proposal),` `),ec(),kC(t.state===`done`?8:t.state===`failed`?9:-1)}}function ze(e,n){if(e&1&&($i(0,`p`,13),fS(1),Nc()),e&2){let t=HC().$implicit;ec(),pg(t.text)}}function $e(e,n){if(e&1&&($i(0,`p`,14),fS(1),Nc()),e&2){let t=HC().$implicit;ec(),Ac(` `,t.problem,` `)}}function qe(e,n){if(e&1&&SC(0,Oe,2,1,`p`,9)(1,He,2,1,`div`,10)(2,Se,3,2,`p`,11)(3,We,10,7,`div`,12)(4,ze,2,1,`p`,13)(5,$e,2,1,`p`,14),e&2){let t,i=n.$implicit;kC((t=i.kind)===`question`?0:t===`answer`?1:t===`tool`?2:t===`proposal`?3:t===`usage`?4:t===`error`?5:-1)}}function Ue(e,n){if(e&1&&($i(0,`p`,2),fS(1),Nc()),e&2){let t=HC();ec(),pg(t.t().thinking)}}function dt(e){return e.toLocaleString(ik())}var Ut;var Qe=f(()=>{Kr();lk();dk();sk();Kr();Ut=class e{containerId=jc(null);commandChosen=pj();entries=wt([]);busy=wt(!1);draft=wt(``);t=$t$1(()=>ok().containers.assistant);defaultQuestion=$t$1(()=>this.containerId()===null?this.t().defaultHostQuestion:this.t().defaultQuestion);conversationId=null;unsubscribe=null;destroyed=!1;constructor(){I(ve$1).onDestroy(()=>{this.destroyed=!0,this.unsubscribe?.(),this.conversationId!==null&&window.electron.assistant.close(this.conversationId)})}async submit(n){n.preventDefault();let t=this.draft().trim()||(this.entries().length===0?this.defaultQuestion():``);if(!(t===``||this.busy())){this.draft.set(``),this.busy.set(!0),this.append({kind:`question`,text:t});try{let i=await this.conversation();await window.electron.assistant.ask(i,t)}catch(i){this.append({kind:`error`,problem:eH(i)})}finally{this.busy.set(!1)}}}proposalLabel(n){let t=this.t();return n.kind===`command`?t.putInTerminal:n.kind===`compose`?t.composeUp(n.project):t[n.action](n.containerName)}proposalIcon(n){return n.kind===`command`?`terminal`:n.kind===`compose`?`play`:{start:`play`,stop:`stop`,restart:`refresh`}[n.action]}async carryOut(n,t){if(t.kind===`command`){this.commandChosen.emit(t.command),this.updateProposal(n,{state:`done`});return}this.updateProposal(n,{state:`busy`});try{let i=t.kind===`compose`?await window.electron.compose.up(t.project):await window.electron.containers.action(t.action,t.containerId);this.updateProposal(n,i.ok?{state:`done`}:{state:`failed`,problem:i.problem})}catch(i){this.updateProposal(n,{state:`failed`,problem:eH(i)})}}async conversation(){if(this.conversationId!==null)return this.conversationId;let n=await window.electron.assistant.start(this.containerId());if(this.destroyed)throw window.electron.assistant.close(n),new Error(this.t().panelClosed);return this.conversationId=n,this.unsubscribe=window.electron.assistant.onEvent(n,t=>this.receive(t)),n}receive(n){switch(n.type){case`text`:this.entries.update(t=>{let i=t.at(-1);return i?.kind===`answer`?[...t.slice(0,-1),{kind:`answer`,text:i.text+n.text}]:n.text.trim()===``?t:[...t,{kind:`answer`,text:n.text}]});break;case`tool`:this.append({kind:`tool`,label:n.label});break;case`proposal`:this.append({kind:`proposal`,proposal:n.proposal,state:`open`});break;case`done`:this.append({kind:`usage`,text:this.t().usage(dt(n.inputTokens),dt(n.cachedTokens),dt(n.outputTokens))});break;case`error`:this.append({kind:`error`,problem:n.problem});break}}append(n){this.entries.update(t=>[...t,n])}updateProposal(n,t){this.entries.update(i=>i.map((o,s)=>s===n&&o.kind===`proposal`?W$1(W$1({},o),t):o))}static ɵfac=function(t){return new(t||e)};static ɵcmp=wc({type:e,selectors:[[`app-assistant-view`]],hostAttrs:[1,`flex`,`h-full`,`flex-col`],inputs:{containerId:[1,`containerId`]},outputs:{commandChosen:`commandChosen`},decls:13,vars:9,consts:[[`data-testid`,`assistant-log`,1,`min-h-0`,`flex-1`,`overflow-y-auto`,`px-6`,`py-4`],[1,`max-w-3xl`,`space-y-3`],[1,`text-[12px]`,`text-ink-500`],[1,`flex`,`shrink-0`,`gap-2`,`border-t`,`border-ink-700`,`px-6`,`py-3`,3,`submit`],[`for`,`assistant-question`,1,`sr-only`],[`id`,`assistant-question`,`type`,`text`,`autocomplete`,`off`,1,`mx-focus`,`min-w-0`,`flex-1`,`rounded-md`,`border`,`border-ink-700`,`bg-ink-800`,`px-3`,`py-1.5`,`text-[13px]`,`text-ink-100`,`placeholder:text-ink-500`,3,`input`,`placeholder`,`value`,`disabled`],[`type`,`submit`,`data-testid`,`assistant-ask`,1,`mx-btn`,`mx-focus`,3,`disabled`],[`name`,`sparkle`,3,`size`],[1,`max-w-2xl`,`text-[13px]`,`text-ink-400`],[1,`rounded-md`,`bg-ink-800`,`px-3`,`py-2`,`text-[13px]`,`text-ink-100`],[`data-testid`,`assistant-answer`,1,`text-[13px]`,`leading-relaxed`,`whitespace-pre-wrap`,`text-ink-200`],[`data-testid`,`assistant-tool`,1,`flex`,`items-center`,`gap-1.5`,`text-[12px]`,`text-ink-500`],[`data-testid`,`assistant-proposal`,1,`rounded-md`,`border`,`border-ink-700`,`bg-ink-850`,`px-3`,`py-2`],[`data-testid`,`assistant-usage`,1,`text-[11px]`,`text-ink-600`],[`data-testid`,`assistant-error`,1,`rounded-md`,`border`,`border-danger/40`,`bg-danger/10`,`px-3`,`py-2`,`text-[13px]`,`text-danger`],[`name`,`search`,3,`size`],[1,`text-[12px]`,`text-ink-400`],[1,`mt-2`,`overflow-x-auto`,`rounded`,`bg-ink-900`,`px-2`,`py-1`,`font-mono`,`text-[12px]`,`text-ink-100`],[1,`mt-2`,`flex`,`items-center`,`gap-2`],[`type`,`button`,1,`mx-btn`,`mx-focus`,3,`click`,`disabled`],[3,`name`,`size`],[1,`text-[12px]`,`text-ok`],[1,`text-[12px]`,`text-danger`]],template:function(t,i){t&1&&($i(0,`div`,0),SC(1,Ve,2,1),$i(2,`div`,1),kc(3,qe,6,1,null,null,TC),SC(5,Ue,2,1,`p`,2),Nc()(),$i(6,`form`,3),Jm(`submit`,function(s){return i.submit(s)}),$i(7,`label`,4),fS(8),Nc(),$i(9,`input`,5),Jm(`input`,function(s){return i.draft.set(s.target.value)}),Nc(),$i(10,`button`,6),Gm(11,`app-icon`,7),fS(12),Nc()()),t&2&&(ec(),kC(i.entries().length===0?1:-1),ec(2),Tc(i.entries()),ec(2),kC(i.busy()?5:-1),ec(3),pg(i.t().questionLabel),ec(),Wm(`placeholder`,i.entries().length===0?i.defaultQuestion():i.t().followUp)(`value`,i.draft())(`disabled`,i.busy()),ec(),Wm(`disabled`,i.busy()),ec(),Wm(`size`,14),ec(),Ac(` `,i.t().ask,` `))},dependencies:[My],encapsulation:2})}});export{_e as a,Ut as i,Pe as n,mi as o,Qe as r,pi as s,De as t};
1
+ import{A as I,Ct as Tc,Dn as kE,En as jc,Fn as mj,Ft as Wm,G as M,Gn as pg,H as Li,I as Jm,J as My,Kn as pj,L as Km,Mn as lk,N as Ij,O as HE,On as kc,Pt as W$1,R as Kr,S as G,T as Gm,Tn as jC,Tr as zr,V as Ld,Vn as ok,W as Lt$1,X as Nc,Zn as rf,_ as Dj,_r as wt,at as Pr,b as Ej,cn as ec,d as CS,er as sk,gt as SE,hr as wc,in as dk,it as PS,ln as f,lr as ve$1,r as Ac,sn as eH,t as $C,tt as Od,un as fS,ut as RE,wn as ik,wt as Tg,xt as TE,z as LD}from"./chunk-BU6WXUxF.js";import{D as ko,E as jo,I as ts,L as xo,N as sr,T as jn,a as Go,f as Ro,g as Uo,r as Bo,s as Jo,t as $o,z as zo}from"./chunk-C0CE-ryM.js";import{r as g,t as L}from"./chunk-d9EuDpHJ.js";function kt(e){let n=I(te);return Lt$1(()=>e?.()??n())}var te;var Ft=f(()=>{Kr();te=new M(`RDX_DIRECTION`,{providedIn:`root`,factory:()=>Lt$1(()=>`ltr`)})});function St(){return I(Ht,{optional:!0,self:!0})}function Kt(e){return{provide:Ht,useFactory:e}}function jt(e,n){let t=e.compareDocumentPosition(n);return t&Node.DOCUMENT_POSITION_FOLLOWING||t&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:t&Node.DOCUMENT_POSITION_PRECEDING||t&Node.DOCUMENT_POSITION_CONTAINS?1:0}function ae(e){return[...e].filter(n=>n.element.isConnected).sort((n,t)=>jt(n.element,t.element))}function re(e){let n=new Set;for(let t=1;t<e.length;t+=1){let i=de(e[t-1],e[t]);i&&n.add(i)}return n}function de(e,n){let t=e.parentElement;for(;t&&!t.contains(n);)t=t.parentElement;return t}function le(e){let n=new Set;for(let t of e){for(let i=0;i<t.addedNodes.length;i+=1)if(n.has(t.addedNodes[i]))return!0;for(let i=0;i<t.removedNodes.length;i+=1)n.add(t.removedNodes[i])}for(let t of n)if(t.isConnected)return!0;return!1}function ue(e,n){return se.some(t=>!n.includes(t)&&e.getModifierState(t))}function Pt(e){if(!(e instanceof HTMLElement))return!1;if(e.tagName===`TEXTAREA`)return!0;if(e.tagName!==`INPUT`)return!1;try{return e.selectionStart!=null}catch{return!1}}function Wt(e,n){let t=n===`rtl`?Bo:jo,i=n===`rtl`?jo:Bo;return{forwardKeys:e===`horizontal`?[t]:e===`vertical`?[ko]:[t,ko],backwardKeys:e===`horizontal`?[i]:e===`vertical`?[$o]:[i,$o]}}function ce(e,n,t,i){let{forwardKeys:o,backwardKeys:s}=Wt(t,i),a=n.selectionStart,l=n.selectionEnd,r=n.value??``;return!!(a==null||l==null||e.shiftKey||a!==l||!s.includes(e.key)&&a<r.length||!o.includes(e.key)&&a>0)}function At(e,n){return n<0||n>=e.length}function Lt(e,n){return ot(e,{startingIndex:-1,disabledIndices:n})}function he(e,n){return ot(e,{startingIndex:e.length,decrement:!0,disabledIndices:n})}function ot(e,n={}){let{startingIndex:t=-1,decrement:i=!1,disabledIndices:o}=n,s=i?-1:1;for(let a=t+s;a>=0&&a<e.length;a+=s)if(!zt(e,a,o))return a;return-1}function zt(e,n,t){if(t?.includes(n))return!0;let i=e[n];return i?!pe(i)||i.matches(`:disabled`)?!0:t===void 0&&(i.hasAttribute(`disabled`)||i.getAttribute(`aria-disabled`)===`true`):!1}function me(e){return e===null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}function pe(e){if(!e||!e.isConnected)return!1;if(typeof Element<`u`&&!(e instanceof Element))return!0;let n;try{n=getComputedStyle(e)}catch{return!0}return n.visibility!==`hidden`&&n.visibility!==`collapse`}function fe(e,n,t,i){if(!e||!n||typeof e.scrollTo!=`function`)return;let o=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight,a=e.scrollLeft,l=e.scrollTop;if(o&&i!==`vertical`){let r=Vt(e,n,`left`),d=J(e),p=J(n);t===`ltr`&&(r+n.offsetWidth+p.scrollMarginRight>e.scrollLeft+e.clientWidth-d.scrollPaddingRight?a=r+n.offsetWidth+p.scrollMarginRight-e.clientWidth+d.scrollPaddingRight:r-p.scrollMarginLeft<e.scrollLeft+d.scrollPaddingLeft&&(a=r-p.scrollMarginLeft-d.scrollPaddingLeft)),t===`rtl`&&(r-p.scrollMarginRight<e.scrollLeft+d.scrollPaddingLeft?a=r-p.scrollMarginLeft-d.scrollPaddingLeft:r+n.offsetWidth+p.scrollMarginRight>e.scrollLeft+e.clientWidth-d.scrollPaddingRight&&(a=r+n.offsetWidth+p.scrollMarginRight-e.clientWidth+d.scrollPaddingRight))}if(s&&i!==`horizontal`){let r=Vt(e,n,`top`),d=J(e),p=J(n);r-p.scrollMarginTop<e.scrollTop+d.scrollPaddingTop?l=r-p.scrollMarginTop-d.scrollPaddingTop:r+n.offsetHeight+p.scrollMarginBottom>e.scrollTop+e.clientHeight-d.scrollPaddingBottom&&(l=r+n.offsetHeight+p.scrollMarginBottom-e.clientHeight+d.scrollPaddingBottom)}e.scrollTo({left:a,top:l,behavior:`auto`})}function Vt(e,n,t){let i=t===`left`?`offsetLeft`:`offsetTop`,o=0,s=n;for(;s?.offsetParent&&(o+=s[i],s.offsetParent!==e);)s=s.offsetParent;return o}function J(e){let n=getComputedStyle(e);return{scrollMarginTop:parseFloat(n.scrollMarginTop)||0,scrollMarginRight:parseFloat(n.scrollMarginRight)||0,scrollMarginBottom:parseFloat(n.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(n.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(n.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(n.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(n.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(n.scrollPaddingLeft)||0}}var Ht;var ne;var Bt;var oe;var se;var ge;var st;var be;var j;var O;var ve;var at;var xe;var W;var Z;var rt=f(()=>{Kr();Kr();sr();Ft();Ht=new M(`RdxCompositeItemOwner`);ne=`data-composite-item-active`,Bt=new Set([$o,ko,Bo,jo]),oe=new Set([...Bt,Go,Uo]),se=[`Shift`,`Control`,`Alt`,`Meta`];ge=()=>{let e=I(j);return{listElement:e.elementRef.nativeElement,items:e.items,itemMap:e.itemMap,registerItem:n=>e.registerItem(n),indexOf:n=>e.indexOf(n)}},[st,be]=xo(`RdxCompositeListContext`,`utils/composite`),j=(()=>{class e{constructor(){this.elementRef=I(Pr),this.registrations=new Map,this.registrationTick=wt(0),this.reorderTick=wt(0),this.onMapChange=pj(),this.items=Lt$1(()=>(this.reorderTick(),this.registrationTick(),ae([...this.registrations.values()]))),this.indexMap=Lt$1(()=>{let t=new Map;return this.items().forEach((i,o)=>{t.set(i.element,o)}),t}),this.itemMap=Lt$1(()=>{let t=new Map;return this.items().forEach((i,o)=>{t.set(i.element,G(W$1({},i.metadata()??{}),{index:o}))}),t}),rf(()=>{this.onMapChange.emit(this.itemMap())}),this.observeItemReordering()}observeItemReordering(){typeof MutationObserver==`function`&&rf(t=>{let i=this.items().map(a=>a.element);if(i.length<2)return;let o=re(i);if(o.size===0)return;let s=new MutationObserver(a=>{if(!le(a))return;let l=null;for(let r of i)if(r.isConnected){if(l&&jt(l,r)>0){s.disconnect(),this.reorderTick.update(d=>d+1);return}l=r}});o.forEach(a=>s.observe(a,{childList:!0})),t(()=>s.disconnect())})}registerItem(t){return this.registrations.set(t.element,t),this.registrationTick.update(i=>i+1),()=>{this.registrations.get(t.element)===t&&(this.registrations.delete(t.element),this.registrationTick.update(i=>i+1))}}indexOf(t){return this.indexMap().get(t)??-1}elements(){return this.items().map(t=>t.element)}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=$C({type:e,selectors:[[``,`rdxCompositeList`,``]],outputs:{onMapChange:`onMapChange`},exportAs:[`rdxCompositeList`],features:[CS([be(ge)])]})}}return e})(),O=(()=>{class e{constructor(){this.owner=St(),this.injectedListContext=this.owner?null:st(!0),this.elementRef=I(Pr),this.hasRendered=wt(!1),this.listContext=Lt$1(()=>this.owner?this.owner.listContext():this.injectedListContext),this.metadataInput=jc(void 0,{alias:`metadata`}),this._metadata=PS(()=>this.metadataInput()),this.index=Lt$1(()=>this.listContext()?.indexOf(this.elementRef.nativeElement)??-1),this.inListElement=Lt$1(()=>this.isInListElement(this.listContext())),LD(()=>{this.hasRendered.set(!0)}),rf(t=>{let i=this.listContext();if(!i||!this.hasRendered()||!this.isInListElement(i))return;let o=this.elementRef.nativeElement;t(Tg(()=>i.registerItem({element:o,metadata:this._metadata.asReadonly()})))})}setMetadata(t){this._metadata.set(t)}isInListElement(t){return!!t&&t.listElement.contains(this.elementRef.nativeElement)}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=$C({type:e,selectors:[[``,`rdxCompositeListItem`,``]],inputs:{metadataInput:[1,`metadata`,`metadataInput`]},exportAs:[`rdxCompositeListItem`]})}}return e})(),ve=()=>{let e=I(W);return{rootElement:e.elementRef.nativeElement,highlightedIndex:e.highlightedIndex.asReadonly(),highlightItemOnHover:e.highlightItemOnHover,orientation:e.orientation,dir:e.dir,isIndexDisabled:n=>e.isIndexDisabled(n),setHighlightedIndex:(n,t)=>e.setHighlightedIndex(n,t),relayKeyboardEvent:n=>e.relayKeyboardEvent(n)}},[at,xe]=xo(`RdxCompositeRootContext`,`utils/composite`),W=(()=>{class e{constructor(){this.elementRef=I(Pr),this.compositeList=I(j,{self:!0}),this.hasSetInitialIndex=!1,this.orientationInput=jc(`both`,{alias:`orientation`}),this._orientation=PS(()=>this.orientationInput()),this.orientation=this._orientation.asReadonly(),this.dirInput=jc(void 0,{alias:`dir`}),this.effectiveDir=kt(this.dirInput),this._dir=PS(()=>this.effectiveDir()),this.dir=this._dir.asReadonly(),this.loopFocusInput=jc(!0,{alias:`loopFocus`,transform:Dj}),this._loopFocus=PS(()=>this.loopFocusInput()),this.loopFocus=this._loopFocus.asReadonly(),this.enableHomeAndEndKeysInput=jc(!1,{alias:`enableHomeAndEndKeys`,transform:Dj}),this._enableHomeAndEndKeys=PS(()=>this.enableHomeAndEndKeysInput()),this.enableHomeAndEndKeys=this._enableHomeAndEndKeys.asReadonly(),this.disabledIndicesInput=jc(void 0,{alias:`disabledIndices`}),this._disabledIndices=PS(()=>this.disabledIndicesInput()),this.disabledIndices=this._disabledIndices.asReadonly(),this.modifierKeysInput=jc([],{alias:`modifierKeys`}),this._modifierKeys=PS(()=>this.modifierKeysInput()),this.modifierKeys=this._modifierKeys.asReadonly(),this.highlightItemOnHover=jc(!1,{transform:Dj}),this.stopEventPropagation=jc(!0,{transform:Dj}),this.highlightedIndex=mj(0),this.onHighlightedIndexChange=pj(),this.onMapChange=pj(),this.items=this.compositeList.items,this.itemMap=this.compositeList.itemMap,rf(()=>{let t=this.items();if(t.length!==0){if(!this.hasSetInitialIndex){this.hasSetInitialIndex=!0;let i=t.findIndex(o=>o.element.hasAttribute(ne));if(i!==-1){this.setHighlightedIndex(i,!0);return}this.moveHighlightOffDisabledItem();return}this.disabledIndices()!=null&&this.moveHighlightOffDisabledItem()}}),rf(()=>{this.onMapChange.emit(this.itemMap())})}moveHighlightOffDisabledItem(){if(!this.isIndexDisabled(this.highlightedIndex()))return;let t=this.elements(),i=Lt(t,this.disabledIndices());At(t,i)||this.setHighlightedIndex(i)}indexOf(t){return this.compositeList.indexOf(t)}setOrientation(t){this._orientation.set(t)}setLoopFocus(t){this._loopFocus.set(t)}setDir(t){this._dir.set(t)}setEnableHomeAndEndKeys(t){this._enableHomeAndEndKeys.set(t)}setDisabledIndices(t){this._disabledIndices.set(t)}setModifierKeys(t){this._modifierKeys.set(t)}isIndexDisabled(t){return zt(this.elements(),t,this.disabledIndices())}setHighlightedIndex(t,i=!1){this.highlightedIndex()!==t&&(this.highlightedIndex.set(t),this.onHighlightedIndexChange.emit(t)),i&&fe(this.elementRef.nativeElement,this.elements()[t],this.dir(),this.orientation())}relayKeyboardEvent(t){this.handleCompositeKeydown(t,!0)}handleKeydown(t){this.handleCompositeKeydown(t,!1)}handleFocusIn(t){let i=t.target;Pt(i)&&i.setSelectionRange(0,i.value.length)}handleCompositeKeydown(t,i){if(!(this.enableHomeAndEndKeys()?oe:Bt).has(t.key)||ue(t,this.modifierKeys()))return;let s=t.target,a=this.elementRef.nativeElement;if(!i&&s instanceof HTMLElement){let d=s.closest(`[rdxCompositeRoot]`);if(d&&d!==a)return}if(Pt(s)&&!me(s))try{if(ce(t,s,this.orientation(),this.dir()))return}catch{return}let l=this.elements();if(l.length===0)return;let r=this.getNextIndex(t,l);r===this.highlightedIndex()||At(l,r)||(this.stopEventPropagation()&&t.stopPropagation(),t.preventDefault(),this.setHighlightedIndex(r,!0),queueMicrotask(()=>{this.elements()[r]?.focus()}))}getNextIndex(t,i){let o=this.highlightedIndex(),s=Lt(i,this.disabledIndices()),a=he(i,this.disabledIndices());if(this.enableHomeAndEndKeys()){if(t.key===`Home`)return s;if(t.key===`End`)return a}let{forwardKeys:l,backwardKeys:r}=Wt(this.orientation(),this.dir()),d=l.includes(t.key),p=r.includes(t.key);if(!d&&!p)return o;let E=p,Qt=E?s:a,Xt=E?a:s;return this.loopFocus()&&o===Qt?Xt:ot(i,{startingIndex:o,decrement:E,disabledIndices:this.disabledIndices()})}elements(){return this.compositeList.elements()}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=$C({type:e,selectors:[[``,`rdxCompositeRoot`,``]],hostBindings:function(i,o){i&1&&Jm(`keydown`,function(a){return o.handleKeydown(a)})(`focusin`,function(a){return o.handleFocusIn(a)})},inputs:{orientationInput:[1,`orientation`,`orientationInput`],dirInput:[1,`dir`,`dirInput`],loopFocusInput:[1,`loopFocus`,`loopFocusInput`],enableHomeAndEndKeysInput:[1,`enableHomeAndEndKeys`,`enableHomeAndEndKeysInput`],disabledIndicesInput:[1,`disabledIndices`,`disabledIndicesInput`],modifierKeysInput:[1,`modifierKeys`,`modifierKeysInput`],highlightItemOnHover:[1,`highlightItemOnHover`],stopEventPropagation:[1,`stopEventPropagation`],highlightedIndex:[1,`highlightedIndex`]},outputs:{highlightedIndex:`highlightedIndexChange`,onHighlightedIndexChange:`onHighlightedIndexChange`,onMapChange:`onMapChange`},exportAs:[`rdxCompositeRoot`],features:[CS([xe(ve)]),jC([j])]})}}return e})(),Z=(()=>{class e{constructor(){this.owner=St(),this.injectedRootContext=this.owner?null:at(!0),this.listItem=I(O,{self:!0}),this.elementRef=I(Pr),this.rootContext=Lt$1(()=>this.owner?this.owner.rootContext():this.injectedRootContext),this.index=this.listItem.index,this.tabIndex=Lt$1(()=>{let t=this.rootContext();if(!this.isInRootElement(t))return null;let i=this.index();return i!==-1&&t.highlightedIndex()===i&&!t.isIndexDisabled(i)?0:-1})}setMetadata(t){this.listItem.setMetadata(t)}handleFocus(){let t=this.rootContext(),i=this.index();i!==-1&&this.isInRootElement(t)&&t.setHighlightedIndex(i)}handleMouseMove(t){if(Jo(t))return;let i=this.rootContext(),o=this.index();!this.isInRootElement(i)||o===-1||!i.highlightItemOnHover()||i.highlightedIndex()===o||i.isIndexDisabled(o)||this.elementRef.nativeElement.focus()}isInRootElement(t){return!!t&&t.rootElement.contains(this.elementRef.nativeElement)}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=$C({type:e,selectors:[[``,`rdxCompositeItem`,``]],hostVars:1,hostBindings:function(i,o){i&1&&Jm(`focus`,function(){return o.handleFocus()})(`mousemove`,function(a){return o.handleMouseMove(a)}),i&2&&zr(`tabindex`,o.tabIndex())},exportAs:[`rdxCompositeItem`],features:[jC([{directive:O,inputs:[`metadata`,`metadata`]}])]})}}return e})()});function $t(e,n){return`${e}-tab-${n}`}function qt(e,n){return`${e}-panel-${n}`}function Ce(e){return typeof e.disabled==`boolean`&&typeof e.id==`string`&&Object.prototype.hasOwnProperty.call(e,`value`)}function Ee(e,n){for(let t of e.values())if(t.value===n)return t}function we(e){for(let n of e.values())if(!n.disabled)return n.value}function Te(e,n,t,i){if(e==null||n==null)return`none`;let o=null,s=null,a=-1,l=-1;for(let[p,E]of i.entries())if(E.value===e&&(o=p,a=E.index),E.value===n&&(s=p,l=E.index),o&&s)break;if(!o||!s||a===l)return Ne(e,n,t);let r=o.getBoundingClientRect(),d=s.getBoundingClientRect();return t===`horizontal`?d.left<r.left?`left`:d.left>r.left||l>a?`right`:`left`:d.top<r.top?`up`:d.top>r.top||l>a?`down`:`up`}function Ne(e,n,t){return e!==n&&typeof e==`number`&&typeof n==`number`||e!==n&&typeof e==`string`&&typeof n==`string`?t===`horizontal`?n>e?`right`:`left`:n>e?`down`:`up`:`none`}function Fe(){return Kt(ke)}var tt;var Ie;var mi;var Me;var De;var Re;var _e;var ke;var pi;var Pe=f(()=>{Kr();Kr();sr();rt();rt();g();[tt,Ie]=xo(`RdxTabsRootContext`,`components/tabs`);mi=(()=>{class e{constructor(){this.rootContext=tt(),this.elementRef=I(Pr),this.compositeRoot=I(W,{self:!0}),this.compositeRootContext=at(),this.compositeListContext=st(),this.activateOnFocus=jc(!1,{transform:Dj}),this.loopFocus=jc(!0,{transform:Dj}),this.tabMap=Lt$1(()=>{let i=new Map;return this.compositeRoot.itemMap().forEach((o,s)=>{Ce(o)&&i.set(s,o)}),i}),this.tabMetadata=Lt$1(()=>Array.from(this.tabMap().values())),this.disabledIndices=Lt$1(()=>this.tabMetadata().filter(i=>i.disabled).map(i=>i.index)),this.activeIndex=Lt$1(()=>{let i=this.rootContext.value();return this.tabMetadata().find(s=>s.value===i)?.index??-1});let t=this.rootContext.registerTabList(this.elementRef.nativeElement,this.compositeRootContext,this.compositeListContext);I(ve$1).onDestroy(t),this.compositeRoot.setEnableHomeAndEndKeys(!0),this.compositeRoot.setDisabledIndices([]),rf(()=>{this.compositeRoot.setOrientation(this.rootContext.orientation()),this.compositeRoot.setLoopFocus(this.loopFocus())}),rf(()=>{this.rootContext.setTabMap(this.tabMap())}),rf(()=>{let i=this.activeIndex();if(i===-1)return;let o=this.elementRef.nativeElement,s=o.ownerDocument.activeElement;if(!(s&&o.contains(s))){if(this.disabledIndices().includes(i)){let a=this.tabMetadata().find(l=>!l.disabled)?.index;a!==void 0&&this.compositeRoot.setHighlightedIndex(a);return}this.compositeRoot.setHighlightedIndex(i)}}),rf(()=>this.rootContext.setActivateOnFocus(this.activateOnFocus()))}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=$C({type:e,selectors:[[``,`rdxTabsList`,``]],hostAttrs:[`role`,`tablist`],hostVars:3,hostBindings:function(i,o){i&2&&zr(`aria-orientation`,o.rootContext.orientation()===`vertical`?`vertical`:void 0)(`data-orientation`,o.rootContext.orientation())(`data-activation-direction`,o.rootContext.activationDirection())},inputs:{activateOnFocus:[1,`activateOnFocus`],loopFocus:[1,`loopFocus`]},exportAs:[`rdxTabsList`],features:[jC([W])]})}}return e})();Me=()=>({present:I(De).present}),De=(()=>{class e{constructor(){this.elementRef=I(Pr),this.listItem=I(O,{self:!0}),this.rootContext=tt(),this.value=jc.required(),this.keepMounted=jc(!1,{transform:Dj}),this.transition=ts(()=>{}),this.transitionStatus=this.transition.status,this.panelId=Lt$1(()=>qt(this.rootContext.baseId,this.value())),this.tabId=Lt$1(()=>{let i=this.value();for(let o of this.rootContext.tabMap().values())if(o.value===i)return o.id;return $t(this.rootContext.baseId,i)}),this.active=Lt$1(()=>this.rootContext.value()===this.value()),this.hasPresence=wt(!1),this.present=Lt$1(()=>this.keepMounted()||this.active()),this.hidden=Lt$1(()=>!this.active()&&this.transitionStatus()!==`ending`&&(!this.hasPresence()||this.keepMounted())),this.index=this.listItem.index,this.previousActive=!1,this.isFirstRun=!0;let t=this.transition.registerElement(this.elementRef.nativeElement);I(ve$1).onDestroy(t),rf(()=>{this.listItem.setMetadata({id:this.panelId(),value:this.value()})}),rf(()=>{let i=this.active();if(this.isFirstRun){this.isFirstRun=!1,this.previousActive=i;return}i!==this.previousActive&&(this.previousActive=i,Tg(()=>this.transition.start(i)))})}markHasPresence(){this.hasPresence.set(!0)}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=$C({type:e,selectors:[[``,`rdxTabsPanel`,``]],hostAttrs:[`role`,`tabpanel`],hostVars:10,hostBindings:function(i,o){i&2&&(Km(`hidden`,o.hidden()),zr(`id`,o.panelId())(`tabindex`,o.active()?0:-1)(`aria-labelledby`,o.tabId())(`data-orientation`,o.rootContext.orientation())(`data-activation-direction`,o.rootContext.activationDirection())(`data-index`,o.index())(`data-hidden`,o.active()?void 0:``)(`data-starting-style`,o.transitionStatus()===`starting`?``:void 0)(`data-ending-style`,o.transitionStatus()===`ending`?``:void 0))},inputs:{value:[1,`value`],keepMounted:[1,`keepMounted`]},exportAs:[`rdxTabsPanel`],features:[CS([L(Me)]),jC([O])]})}}return e})(),Re=()=>{let e=I(_e);return{baseId:e.baseId,value:e.value,orientation:e.orientation,activationDirection:e.activationDirection.asReadonly(),activateOnFocus:e.activateOnFocus.asReadonly(),tabListElement:e.tabListElement.asReadonly(),tabMap:e.tabMap.asReadonly(),tabCompositeRoot:e.tabCompositeRoot.asReadonly(),tabCompositeList:e.tabCompositeList.asReadonly(),setValue:(n,t,i)=>e.setValue(n,t,i),setActivateOnFocus:n=>e.activateOnFocus.set(n),registerTabList:(n,t,i)=>e.registerTabList(n,t,i),setTabMap:n=>e.tabMap.set(n)}},_e=(()=>{class e{constructor(){this.baseId=jn(`rdx-tabs-`),this.value=mj(),this.defaultValue=jc(void 0),this.orientation=jc(`horizontal`),this.onValueChange=pj(),this.activateOnFocus=wt(!1),this.tabListElement=wt(null),this.tabMap=wt(new Map),this.tabCompositeRoot=wt(null),this.tabCompositeList=wt(null),this.activationDirection=wt(`none`),this.externallyControlled=wt(!1),this.hasObservedValue=!1,this.internalValueCommit=!1,this.hasAppliedDefaultValue=!1,this.shouldNotifyInitialValueChange=!0,this.shouldHonorDisabledDefaultValue=!1,this.didRegisterTabs=!1,rf(()=>{let t=this.value();if(this.internalValueCommit){this.internalValueCommit=!1,this.hasObservedValue=!0,this.previousObservedValue=t;return}if(!this.hasObservedValue){this.hasObservedValue=!0,this.previousObservedValue=t,t!==void 0&&this.externallyControlled.set(!0);return}t!==this.previousObservedValue&&(this.externallyControlled.set(!0),this.previousObservedValue=t)}),rf(()=>{if(this.hasAppliedDefaultValue||Tg(this.value)!==void 0)return;let t=this.defaultValue(),i=t!==void 0;this.hasAppliedDefaultValue=!0,this.initialDefaultValue=t??0,this.shouldNotifyInitialValueChange=!i,this.shouldHonorDisabledDefaultValue=i,Tg(()=>this.commitValue(this.initialDefaultValue))}),rf(()=>{let t=this.tabMap(),i=this.value();if(this.externallyControlled())return;if(t.size===0){this.didRegisterTabs&&i!==null&&!this.lastKnownTabElement?.isConnected&&Tg(()=>this.commitAutomaticValueChange(null,`missing`));return}this.didRegisterTabs=!0,this.lastKnownTabElement=t.keys().next().value;let o=Ee(t,i),s=we(t),a=o?.disabled,l=o==null&&i!==null;if(!a&&i===this.initialDefaultValue&&(this.shouldHonorDisabledDefaultValue=!1),this.shouldHonorDisabledDefaultValue&&a&&i===this.initialDefaultValue)return;let r=this.shouldNotifyInitialValueChange;if(a||l){let d=s??null;if(i===d){this.shouldNotifyInitialValueChange=!1;return}let p=`missing`;r?p=`initial`:a&&(p=`disabled`),Tg(()=>this.commitAutomaticValueChange(d,p));return}r&&o!=null&&(Tg(()=>this.notifyAutomaticValueChange(i,`initial`)),this.shouldNotifyInitialValueChange=!1)})}setValue(t,i,o=`none`){let s=this.value();if(s===t)return;let a=i?.currentTarget instanceof HTMLElement?i.currentTarget:void 0,{eventDetails:l}=zo(o,i??new Event(`tabs.value-change`),a),r=l,d=Te(s,t,this.orientation(),this.tabMap());r.activationDirection=d,this.onValueChange.emit({value:t,eventDetails:r}),!r.isCanceled()&&(this.activationDirection.set(d),this.commitValue(t))}registerTabList(t,i,o){return this.tabListElement.set(t),this.tabCompositeRoot.set(i),this.tabCompositeList.set(o),()=>{this.tabCompositeRoot()!==i||this.tabCompositeList()!==o||(this.tabListElement.set(null),this.tabCompositeRoot.set(null),this.tabCompositeList.set(null),this.activateOnFocus.set(!1))}}commitValue(t){this.internalValueCommit=!0,this.value.set(t)}commitAutomaticValueChange(t,i){this.activationDirection.set(`none`),this.commitValue(t),this.notifyAutomaticValueChange(t,i),this.shouldNotifyInitialValueChange=!1}notifyAutomaticValueChange(t,i){if(t===void 0)return;let{eventDetails:o}=zo(i,new Event(`tabs.value-change`)),s=o;s.activationDirection=`none`,this.onValueChange.emit({value:t,eventDetails:s})}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=$C({type:e,selectors:[[``,`rdxTabsRoot`,``]],hostVars:2,hostBindings:function(i,o){i&2&&zr(`data-orientation`,o.orientation())(`data-activation-direction`,o.activationDirection())},inputs:{value:[1,`value`],defaultValue:[1,`defaultValue`],orientation:[1,`orientation`]},outputs:{value:`valueChange`,onValueChange:`onValueChange`},exportAs:[`rdxTabsRoot`],features:[CS([Ie(Re)]),jC([j])]})}}return e})();ke=()=>{let e=tt();return{rootContext:e.tabCompositeRoot,listContext:e.tabCompositeList}};pi=(()=>{class e{constructor(){this.rootContext=tt(),this.compositeItem=I(Z,{self:!0}),this.elementRef=I(Pr),this.value=jc.required(),this.disabled=jc(!1,{transform:Dj}),this.nativeButton=jc(!0,{transform:Dj}),this.id=jc(void 0),this.tabId=Lt$1(()=>this.id()??$t(this.rootContext.baseId,this.value())),this.panelId=Lt$1(()=>qt(this.rootContext.baseId,this.value())),this.active=Lt$1(()=>this.rootContext.value()===this.value()),this.isPressing=!1,this.isMainButton=!1,Ej()&&Ij(()=>{let t=this.rootContext.tabCompositeList();t&&!t.listElement.contains(this.elementRef.nativeElement)&&Ro(`tabs/tab-outside-list`,'`rdxTabsTab` is rendered outside its `rdxTabsList`, so it gets no roving tabindex, arrow keys cannot reach it, and its `role="tab"` sits outside the `role="tablist"`. Move the tab inside the list, or project it there with `<ng-content>`.',`components/tabs`)}),rf(()=>{this.compositeItem.setMetadata({disabled:this.disabled(),id:this.tabId(),value:this.value()})})}onClick(t){this.active()||this.disabled()||this.rootContext.setValue(this.value(),t,`none`)}onKeyDown(t){!this.disabled()&&(t.key===` `||t.key===`Enter`)&&this.rootContext.setValue(this.value(),t,`none`)}onPointerDown(t){if(this.active()||this.disabled())return;this.isPressing=!0,this.isMainButton=t.button===0;let i=t.currentTarget instanceof HTMLElement?t.currentTarget.ownerDocument:document;i.addEventListener(`pointerup`,()=>{this.isPressing=!1,this.isMainButton=!1},{once:!0}),i.addEventListener(`pointercancel`,()=>{this.isPressing=!1,this.isMainButton=!1},{once:!0}),i.addEventListener(`blur`,()=>{this.isPressing=!1,this.isMainButton=!1},{once:!0})}onFocus(t){this.active()||this.disabled()||this.rootContext.activateOnFocus()&&(!this.isPressing||this.isMainButton)&&this.rootContext.setValue(this.value(),t,`none`)}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵdir=$C({type:e,selectors:[[``,`rdxTabsTab`,``]],hostAttrs:[`role`,`tab`],hostVars:11,hostBindings:function(i,o){i&1&&Jm(`click`,function(a){return o.onClick(a)})(`keydown`,function(a){return o.onKeyDown(a)})(`pointerdown`,function(a){return o.onPointerDown(a)})(`focus`,function(a){return o.onFocus(a)}),i&2&&zr(`type`,o.nativeButton()?`button`:void 0)(`id`,o.tabId())(`aria-selected`,o.active())(`aria-controls`,o.panelId())(`aria-disabled`,o.disabled()?`true`:void 0)(`disabled`,null)(`data-composite-item-active`,o.active()?``:void 0)(`data-orientation`,o.rootContext.orientation())(`data-activation-direction`,o.rootContext.activationDirection())(`data-active`,o.active()?``:void 0)(`data-disabled`,o.disabled()?``:void 0)},inputs:{value:[1,`value`],disabled:[1,`disabled`],nativeButton:[1,`nativeButton`],id:[1,`id`]},exportAs:[`rdxTabsTab`],features:[CS([Fe()]),jC([Z])]})}}return e})()});function Ae(e,n){if(e&1&&(Li(0,`p`,8),fS(1),Nc()),e&2){let t=HE(2);ec(),pg(t.t().introHost)}}function Le(e,n){if(e&1&&(Li(0,`p`,8),fS(1),Nc()),e&2){let t=HE(2);ec(),pg(t.t().introContainer)}}function Ve(e,n){if(e&1&&SE(0,Ae,2,1,`p`,8)(1,Le,2,1,`p`,8),e&2)kE(HE().containerId()===null?0:1)}function Oe(e,n){if(e&1&&(Li(0,`p`,9),fS(1),Nc()),e&2){let t=HE().$implicit;ec(),pg(t.text)}}function He(e,n){if(e&1&&(Li(0,`div`,10),fS(1),Nc()),e&2){let t=HE().$implicit;ec(),pg(t.text)}}function Se(e,n){if(e&1&&(Li(0,`p`,11),Gm(1,`app-icon`,15),fS(2),Nc()),e&2){let t=HE().$implicit;ec(),Wm(`size`,12),ec(),Ac(` `,t.label,` `)}}function Ke(e,n){if(e&1&&(Li(0,`pre`,17),fS(1),Nc()),e&2){let t=HE(2).$implicit;ec(),pg(t.proposal.command)}}function Be(e,n){if(e&1&&(Li(0,`span`,21),fS(1),Nc()),e&2){let t=HE(2).$implicit,i=HE();ec(),pg(t.proposal.kind===`command`?i.t().onPrompt:i.t().done)}}function je(e,n){if(e&1&&(Li(0,`span`,22),fS(1),Nc()),e&2){let t=HE(2).$implicit;ec(),pg(t.problem)}}function We(e,n){if(e&1){let t=RE();Li(0,`div`,12)(1,`p`,16),fS(2),Nc(),SE(3,Ke,2,1,`pre`,17),Li(4,`div`,18)(5,`button`,19),Jm(`click`,function(){Od(t);let o=HE(),s=o.$implicit,a=o.$index;return Ld(HE().carryOut(a,s.proposal))}),Gm(6,`app-icon`,20),fS(7),Nc(),SE(8,Be,2,1,`span`,21)(9,je,2,1,`span`,22),Nc()()}if(e&2){let t=HE().$implicit,i=HE();ec(2),pg(t.proposal.reason),ec(),kE(t.proposal.kind===`command`?3:-1),ec(2),Wm(`disabled`,t.state===`busy`||t.state===`done`&&t.proposal.kind!==`command`),ec(),Wm(`name`,i.proposalIcon(t.proposal))(`size`,14),ec(),Ac(` `,i.proposalLabel(t.proposal),` `),ec(),kE(t.state===`done`?8:t.state===`failed`?9:-1)}}function ze(e,n){if(e&1&&(Li(0,`p`,13),fS(1),Nc()),e&2){let t=HE().$implicit;ec(),pg(t.text)}}function $e(e,n){if(e&1&&(Li(0,`p`,14),fS(1),Nc()),e&2){let t=HE().$implicit;ec(),Ac(` `,t.problem,` `)}}function qe(e,n){if(e&1&&SE(0,Oe,2,1,`p`,9)(1,He,2,1,`div`,10)(2,Se,3,2,`p`,11)(3,We,10,7,`div`,12)(4,ze,2,1,`p`,13)(5,$e,2,1,`p`,14),e&2){let t,i=n.$implicit;kE((t=i.kind)===`question`?0:t===`answer`?1:t===`tool`?2:t===`proposal`?3:t===`usage`?4:t===`error`?5:-1)}}function Ue(e,n){if(e&1&&(Li(0,`p`,2),fS(1),Nc()),e&2){let t=HE();ec(),pg(t.t().thinking)}}function dt(e){return e.toLocaleString(ik())}var Ut;var Qe=f(()=>{Kr();lk();dk();sk();Kr();Ut=class e{containerId=jc(null);commandChosen=pj();entries=wt([]);busy=wt(!1);draft=wt(``);t=Lt$1(()=>ok().containers.assistant);defaultQuestion=Lt$1(()=>this.containerId()===null?this.t().defaultHostQuestion:this.t().defaultQuestion);conversationId=null;unsubscribe=null;destroyed=!1;constructor(){I(ve$1).onDestroy(()=>{this.destroyed=!0,this.unsubscribe?.(),this.conversationId!==null&&window.electron.assistant.close(this.conversationId)})}async submit(n){n.preventDefault();let t=this.draft().trim()||(this.entries().length===0?this.defaultQuestion():``);if(!(t===``||this.busy())){this.draft.set(``),this.busy.set(!0),this.append({kind:`question`,text:t});try{let i=await this.conversation();await window.electron.assistant.ask(i,t)}catch(i){this.append({kind:`error`,problem:eH(i)})}finally{this.busy.set(!1)}}}proposalLabel(n){let t=this.t();return n.kind===`command`?t.putInTerminal:n.kind===`compose`?t.composeUp(n.project):t[n.action](n.containerName)}proposalIcon(n){return n.kind===`command`?`terminal`:n.kind===`compose`?`play`:{start:`play`,stop:`stop`,restart:`refresh`}[n.action]}async carryOut(n,t){if(t.kind===`command`){this.commandChosen.emit(t.command),this.updateProposal(n,{state:`done`});return}this.updateProposal(n,{state:`busy`});try{let i=t.kind===`compose`?await window.electron.compose.up(t.project):await window.electron.containers.action(t.action,t.containerId);this.updateProposal(n,i.ok?{state:`done`}:{state:`failed`,problem:i.problem})}catch(i){this.updateProposal(n,{state:`failed`,problem:eH(i)})}}async conversation(){if(this.conversationId!==null)return this.conversationId;let n=await window.electron.assistant.start(this.containerId());if(this.destroyed)throw window.electron.assistant.close(n),new Error(this.t().panelClosed);return this.conversationId=n,this.unsubscribe=window.electron.assistant.onEvent(n,t=>this.receive(t)),n}receive(n){switch(n.type){case`text`:this.entries.update(t=>{let i=t.at(-1);return i?.kind===`answer`?[...t.slice(0,-1),{kind:`answer`,text:i.text+n.text}]:n.text.trim()===``?t:[...t,{kind:`answer`,text:n.text}]});break;case`tool`:this.append({kind:`tool`,label:n.label});break;case`proposal`:this.append({kind:`proposal`,proposal:n.proposal,state:`open`});break;case`done`:this.append({kind:`usage`,text:this.t().usage(dt(n.inputTokens),dt(n.cachedTokens),dt(n.outputTokens))});break;case`error`:this.append({kind:`error`,problem:n.problem});break}}append(n){this.entries.update(t=>[...t,n])}updateProposal(n,t){this.entries.update(i=>i.map((o,s)=>s===n&&o.kind===`proposal`?W$1(W$1({},o),t):o))}static ɵfac=function(t){return new(t||e)};static ɵcmp=wc({type:e,selectors:[[`app-assistant-view`]],hostAttrs:[1,`flex`,`h-full`,`flex-col`],inputs:{containerId:[1,`containerId`]},outputs:{commandChosen:`commandChosen`},decls:13,vars:9,consts:[[`data-testid`,`assistant-log`,1,`min-h-0`,`flex-1`,`overflow-y-auto`,`px-6`,`py-4`],[1,`max-w-3xl`,`space-y-3`],[1,`text-[12px]`,`text-ink-500`],[1,`flex`,`shrink-0`,`gap-2`,`border-t`,`border-ink-700`,`px-6`,`py-3`,3,`submit`],[`for`,`assistant-question`,1,`sr-only`],[`id`,`assistant-question`,`type`,`text`,`autocomplete`,`off`,1,`mx-focus`,`min-w-0`,`flex-1`,`rounded-md`,`border`,`border-ink-700`,`bg-ink-800`,`px-3`,`py-1.5`,`text-[13px]`,`text-ink-100`,`placeholder:text-ink-500`,3,`input`,`placeholder`,`value`,`disabled`],[`type`,`submit`,`data-testid`,`assistant-ask`,1,`mx-btn`,`mx-focus`,3,`disabled`],[`name`,`sparkle`,3,`size`],[1,`max-w-2xl`,`text-[13px]`,`text-ink-400`],[1,`rounded-md`,`bg-ink-800`,`px-3`,`py-2`,`text-[13px]`,`text-ink-100`],[`data-testid`,`assistant-answer`,1,`text-[13px]`,`leading-relaxed`,`whitespace-pre-wrap`,`text-ink-200`],[`data-testid`,`assistant-tool`,1,`flex`,`items-center`,`gap-1.5`,`text-[12px]`,`text-ink-500`],[`data-testid`,`assistant-proposal`,1,`rounded-md`,`border`,`border-ink-700`,`bg-ink-850`,`px-3`,`py-2`],[`data-testid`,`assistant-usage`,1,`text-[11px]`,`text-ink-600`],[`data-testid`,`assistant-error`,1,`rounded-md`,`border`,`border-danger/40`,`bg-danger/10`,`px-3`,`py-2`,`text-[13px]`,`text-danger`],[`name`,`search`,3,`size`],[1,`text-[12px]`,`text-ink-400`],[1,`mt-2`,`overflow-x-auto`,`rounded`,`bg-ink-900`,`px-2`,`py-1`,`font-mono`,`text-[12px]`,`text-ink-100`],[1,`mt-2`,`flex`,`items-center`,`gap-2`],[`type`,`button`,1,`mx-btn`,`mx-focus`,3,`click`,`disabled`],[3,`name`,`size`],[1,`text-[12px]`,`text-ok`],[1,`text-[12px]`,`text-danger`]],template:function(t,i){t&1&&(Li(0,`div`,0),SE(1,Ve,2,1),Li(2,`div`,1),kc(3,qe,6,1,null,null,TE),SE(5,Ue,2,1,`p`,2),Nc()(),Li(6,`form`,3),Jm(`submit`,function(s){return i.submit(s)}),Li(7,`label`,4),fS(8),Nc(),Li(9,`input`,5),Jm(`input`,function(s){return i.draft.set(s.target.value)}),Nc(),Li(10,`button`,6),Gm(11,`app-icon`,7),fS(12),Nc()()),t&2&&(ec(),kE(i.entries().length===0?1:-1),ec(2),Tc(i.entries()),ec(2),kE(i.busy()?5:-1),ec(3),pg(i.t().questionLabel),ec(),Wm(`placeholder`,i.entries().length===0?i.defaultQuestion():i.t().followUp)(`value`,i.draft())(`disabled`,i.busy()),ec(),Wm(`disabled`,i.busy()),ec(),Wm(`size`,14),ec(),Ac(` `,i.t().ask,` `))},dependencies:[My],encapsulation:2})}});export{_e as a,Ut as i,Pe as n,mi as o,Qe as r,pi as s,De as t};
@@ -1 +1 @@
1
- import{H as Kr,Mn as lk,P as I,_r as wt,ln as f,lr as ve,o as $t,sn as eH,zt as X}from"./chunk-PPlXONP3.js";import{n as u$1,t as f$1}from"./chunk-Dob_vN7f.js";var u;var v=f(()=>{Kr();lk();f$1();Kr();u=class o{toast=I(u$1);items=wt([]);measurements=wt(new Map);busy=wt(!1);loadProblem=wt(null);running=wt(new Set);containers=this.items.asReadonly();stats=this.measurements.asReadonly();loading=this.busy.asReadonly();problem=this.loadProblem.asReadonly();pending=this.running.asReadonly();runningIds=$t(()=>this.items().filter(e=>e.state===`running`).map(e=>e.id),{equal:(e,n)=>e.length===n.length&&e.every((t,a)=>t===n[a])});constructor(){let e=I(ve);e.onDestroy(window.electron.events.subscribe(n=>{n.includes(`container`)&&this.refresh()})),e.onDestroy(window.electron.containers.onStats(n=>this.applyStats(n)))}async refresh(){this.busy.set(!0);try{this.items.set(await window.electron.containers.list()),this.loadProblem.set(null)}catch(e){this.loadProblem.set(eH(e))}finally{this.busy.set(!1)}}watchStats(e){window.electron.containers.watchStats(e)}async run(e,n){this.running.update(t=>new Set(t).add(n));try{let t=await window.electron.containers.action(e,n);t.ok||this.toast.error(t.problem)}finally{this.running.update(t=>{let a=new Set(t);return a.delete(n),a})}}async runMany(e,n){await Promise.all(n.map(t=>this.run(e,t)))}applyStats(e){let n=new Map(this.measurements());for(let t of e)n.set(t.id,t);this.measurements.set(n)}static ɵfac=function(n){return new(n||o)};static ɵprov=X({token:o,factory:o.ɵfac,providedIn:`root`})}});export{v as n,u as t};
1
+ import{A as I,Mn as lk,R as Kr,W as Lt,_r as wt,ln as f,lr as ve,sn as eH,zt as X}from"./chunk-BU6WXUxF.js";import{n as u$1,t as f$1}from"./chunk-D0yJpook.js";var u;var v=f(()=>{Kr();lk();f$1();Kr();u=class o{toast=I(u$1);items=wt([]);measurements=wt(new Map);busy=wt(!1);loadProblem=wt(null);running=wt(new Set);containers=this.items.asReadonly();stats=this.measurements.asReadonly();loading=this.busy.asReadonly();problem=this.loadProblem.asReadonly();pending=this.running.asReadonly();runningIds=Lt(()=>this.items().filter(e=>e.state===`running`).map(e=>e.id),{equal:(e,n)=>e.length===n.length&&e.every((t,a)=>t===n[a])});constructor(){let e=I(ve);e.onDestroy(window.electron.events.subscribe(n=>{n.includes(`container`)&&this.refresh()})),e.onDestroy(window.electron.containers.onStats(n=>this.applyStats(n)))}async refresh(){this.busy.set(!0);try{this.items.set(await window.electron.containers.list()),this.loadProblem.set(null)}catch(e){this.loadProblem.set(eH(e))}finally{this.busy.set(!1)}}watchStats(e){window.electron.containers.watchStats(e)}async run(e,n){this.running.update(t=>new Set(t).add(n));try{let t=await window.electron.containers.action(e,n);t.ok||this.toast.error(t.problem)}finally{this.running.update(t=>{let a=new Set(t);return a.delete(n),a})}}async runMany(e,n){await Promise.all(n.map(t=>this.run(e,t)))}applyStats(e){let n=new Map(this.measurements());for(let t of e)n.set(t.id,t);this.measurements.set(n)}static ɵfac=function(n){return new(n||o)};static ɵprov=X({token:o,factory:o.ɵfac,providedIn:`root`})}});export{v as n,u as t};
@@ -1 +1 @@
1
- import{ln as f}from"./chunk-PPlXONP3.js";function i(e,r,t){e.navigate([],{relativeTo:r,queryParams:{[t]:null},queryParamsHandling:`merge`,replaceUrl:!0})}var o=f(()=>{});export{o as n,i as t};
1
+ import{ln as f}from"./chunk-BU6WXUxF.js";function i(e,r,t){e.navigate([],{relativeTo:r,queryParams:{[t]:null},queryParamsHandling:`merge`,replaceUrl:!0})}var o=f(()=>{});export{o as n,i as t};
@@ -0,0 +1 @@
1
+ import{A as I,At as Uw,B as LE,Cr as yc,En as jc,Fn as mj,G as M,Hn as on$1,I as Jm,Kn as pj,Ln as nf,Lt as Ws,Nt as Vr,Pt as W,Q as Nn$1,R as Kr,Tr as zr,W as Lt$1,Zn as rf,_ as Dj,_r as wt$1,at as Pr,b as Ej,d as CS,et as OC,ft as Rc,hn as ge,ht as S,it as PS,jn as lf,k as Ho$1,ln as f,lr as ve,m as Cw,mn as gb,n as $e,nn as br,rr as te$1,rt as PE,t as $C,tn as bj,tr as sw,vn as gl,w as Gi,wt as Tg,yr as xm,yt as Se$1,z as LD,zt as X}from"./chunk-BU6WXUxF.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($e(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)($e(ue),$e(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)($e(le))};static ɵprov=X({token:e,factory:()=>jt(),providedIn:`root`})}return e})()});function q(e,n){let t=LE(e),r=t[PE.NumberSymbols][n];if(typeof r>`u`){if(n===F.CurrencyDecimal)return t[PE.NumberSymbols][F.Decimal];if(n===F.CurrencyGroup)return t[PE.NumberSymbols][F.Group]}return r}function lt(e,n){return LE(e)[PE.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=$C({type:e,selectors:[[``,`ngTemplateOutlet`,``]],inputs:{ngTemplateOutletContext:`ngTemplateOutletContext`,ngTemplateOutlet:`ngTemplateOutlet`,ngTemplateOutletInjector:`ngTemplateOutletInjector`},features:[Cw]})}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=OC({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=$C({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=$C({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=$C({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:[CS([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=$C({type:e,features:[Cw]})}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=$C({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:[CS([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=Lt$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=Lt$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){!Ej()||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=Lt$1(()=>{let s=e.errors()??[],a=e.ngControlState?.connected()?e.ngControlState.errors():[];return a.length>0?[...s,...a]:s}),r=Lt$1(()=>e.invalid()||t().length>0||!!(e.ngControlState?.connected()&&e.ngControlState.invalid())),i=Lt$1(()=>(e.pending?.()??!1)||!!(e.ngControlState?.connected()&&e.ngControlState.pending()));return{invalidState:r,pendingState:i,validState:Lt$1(()=>i()?null:r()?!1:e.ngControlState?.connected()&&e.ngControlState.disabled()?null:!0),errorsState:t,touchedState:Lt$1(()=>e.ngControlState?.connected()?e.ngControlState.touched():e.touched()),dirtyState:Lt$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),LD(()=>{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`),LD(()=>{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=$C({type:e,inputs:{valueInput:[1,`value`,`valueInput`],disabledInput:[1,`disabled`,`disabledInput`]},outputs:{valueChange:`valueChange`},exportAs:[`rdxControlValueAccessor`],features:[CS([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=Lt$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=$C({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=Lt$1(()=>this._state().status),this.tree=Lt$1(()=>{let n=this._state();return n.status===`registered`?n.tree:null}),this.node=Lt$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),Ej()&&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){Ej()&&this.assertOwnedNode(n),this.nodeSet.delete(n),this.removeFromChildrenOf(n.parent,n)}setContext(n,t){if(this.assertOwnedNode(n),Ej()&&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);Ej()&&this.assertSubtreeDocuments(n,t);let r=n.parent;te.get(n).parent=t,this.removeFromChildrenOf(r,n),this.addToChildrenOf(t,n)}children(n,t={}){Ej()&&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){Ej()&&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=$C({type:e,selectors:[[``,`rdxFloatingNode`,``]],inputs:{externalTree:[1,`externalTree`],parentOverride:[1,`parentOverride`]},exportAs:[`rdxFloatingNode`],features:[CS([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){Ej()&&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};
@@ -0,0 +1 @@
1
+ import{A as I,Ct as Tc,Dn as kE,En as jc,Fn as mj,Ft as Wm,Gn as pg,H as Li,I as Jm,In as nS,J as My,Jt as ag,Kt as _m,Mn as lk,O as HE,On as kc,R as Kr,Sn as hg,T as Gm,Tr as zr,V as Ld,Vn as ok,W as Lt,X as Nc,Zn as rf,_r as wt,cn as ec,er as sk,gt as SE,hr as wc,in as dk,ln as f,r as Ac,sn as eH,sr as vS,tt as Od,un as fS,ur as vg,ut as RE,wt as Tg}from"./chunk-BU6WXUxF.js";import"./chunk-D0yJpook.js";import{i as h,n as N,r as d}from"./chunk-Dc53d1I5.js";import{n as w,t as B}from"./chunk-CSf-WGgq.js";import{n as p,t as M}from"./chunk-sLP6RSjc.js";import{n as o,t as i}from"./chunk-BwYNpJJ1.js";import{n as x,t as u}from"./chunk-CUfTRCjA.js";import"./chunk-C0CE-ryM.js";import{r as Q$1,s as fe$1,u as ra}from"./chunk-BTUpw4iP.js";import"./chunk-d9EuDpHJ.js";import{_ as pn,d as dn,f as fn,g as ln,l as an,m as ie,r as Je$1,u as cn,v as un}from"./chunk-CKZAnwkz.js";import{n as V,t as G$1}from"./chunk-C5GyUjf6.js";import{n as W,t as J}from"./chunk-USWqj2oG.js";import{i as z,n as oe,r as x$1}from"./chunk-CuB3SKfL.js";import{n as P,t as K}from"./chunk-DoVE0m-M.js";function Be(i,t){if(i&1){let e=RE();Li(0,`label`,12)(1,`input`,20),Jm(`change`,function(){let l=Od(e).$implicit;return Ld(HE(2).kind.set(l.kind))}),Nc(),Li(2,`span`)(3,`span`,21),fS(4),Nc(),Li(5,`span`,22),fS(6),Nc()()()}if(i&2){let e=t.$implicit,n=HE(2);ec(),Wm(`value`,e.kind)(`checked`,n.kind()===e.kind)(`disabled`,n.busy()),ec(3),pg(e.label),ec(2),pg(e.hint)}}function Ne(i,t){if(i&1){let e=RE();Li(0,`label`,8)(1,`span`,9),fS(2),Nc(),Li(3,`input`,23),Jm(`input`,function(l){Od(e);return Ld(HE(2).path.set(l.target.value))}),Nc(),Li(4,`span`,24),fS(5),Nc()()}if(i&2){let e=HE(2);ec(2),pg(e.t().folderLabel),ec(),nS(e.field),Wm(`value`,e.path())(`disabled`,e.busy()),ec(2),pg(e.t().folderHint)}}function ze(i,t){if(i&1){let e=RE();Li(0,`label`,8)(1,`span`,9),fS(2),Nc(),Li(3,`input`,25),Jm(`input`,function(l){Od(e);return Ld(HE(2).server.set(l.target.value))}),Nc()(),Li(4,`label`,8)(5,`span`,9),fS(6),Nc(),Li(7,`input`,26),Jm(`input`,function(l){Od(e);return Ld(HE(2).path.set(l.target.value))}),Nc(),Li(8,`span`,24),fS(9),Nc()()}if(i&2){let e=HE(2);ec(2),pg(e.t().nfsServerLabel),ec(),nS(e.field),Wm(`value`,e.server())(`disabled`,e.busy()),ec(3),pg(e.t().nfsPathLabel),ec(),nS(e.field),Wm(`value`,e.path())(`disabled`,e.busy()),ec(2),pg(e.t().nfsHint)}}function Re(i,t){if(i&1){let e=RE();Li(0,`details`,13)(1,`summary`,27),fS(2),Nc(),Li(3,`label`,28)(4,`span`,9),fS(5),Nc(),Li(6,`input`,29),Jm(`input`,function(l){Od(e);return Ld(HE(2).driver.set(l.target.value))}),Nc(),Li(7,`span`,24),fS(8),Nc()()()}if(i&2){let e=HE(2);Wm(`open`,e.driver()!==`local`),ec(2),pg(e.t().advanced),ec(3),pg(e.t().driverLabel),ec(),nS(e.field),Wm(`value`,e.driver())(`disabled`,e.busy()),ec(2),pg(e.t().driverHint)}}function Oe(i,t){i&1&&(Li(0,`p`,14),fS(1),Nc()),i&2&&(ec(),pg(t))}function Le(i,t){if(i&1){let e=RE();Gm(0,`div`,2),Li(1,`div`,3)(2,`div`,4)(3,`h2`,5),fS(4),Nc(),Li(5,`p`,6),fS(6),Nc(),Li(7,`form`,7),Jm(`submit`,function(l){Od(e);return Ld(HE().submit(l))}),Li(8,`label`,8)(9,`span`,9),fS(10),Nc(),Li(11,`input`,10),Jm(`input`,function(l){Od(e);return Ld(HE().name.set(l.target.value))}),Nc()(),Li(12,`fieldset`)(13,`legend`,9),fS(14),Nc(),Li(15,`div`,11),kc(16,Be,7,5,`label`,12,Pe),Nc()(),SE(18,Ne,6,6,`label`,8)(19,ze,10,11)(20,Re,9,8,`details`,13),SE(21,Oe,2,1,`p`,14),Li(22,`div`,15)(23,`button`,16),Gm(24,`app-icon`,17),fS(25),Nc(),Li(26,`button`,18),Gm(27,`app-icon`,19),fS(28),Nc()()()()()}if(i&2){let e,n,l=HE();ec(4),pg(l.t().title),ec(2),pg(l.t().description),ec(4),pg(l.t().nameLabel),ec(),nS(l.field),Wm(`placeholder`,l.t().namePlaceholder)(`value`,l.name())(`disabled`,l.busy()),ec(3),pg(l.t().storageLabel),ec(2),Tc(l.kinds()),ec(2),kE((e=l.kind())===`folder`?18:e===`nfs`?19:20),ec(3),kE((n=l.problem())?21:-1,n),ec(3),Wm(`size`,14),ec(),Ac(` `,l.common().cancel,` `),ec(),Wm(`disabled`,!l.canSubmit()),ec(),Wm(`size`,14),ec(),Ac(` `,l.busy()?l.t().creating:l.t().submit,` `)}}var Pe;var We;var Q;var fe=f(()=>{Kr();Je$1();B();dk();sk();Kr();Pe=(i,t)=>t.kind;We=`mx-focus mt-1 w-full rounded-md border border-ink-700 bg-ink-800 px-3 py-1.5 text-[13px] text-ink-100 placeholder:text-ink-500`,Q=class i{store=I(w);open=mj(!1);t=Lt(()=>ok().volumes.createDialog);common=Lt(()=>ok().common);field=We;kinds=Lt(()=>{let t=this.t();return[{kind:`docker`,label:t.storage.docker,hint:t.storage.dockerHint},{kind:`folder`,label:t.storage.folder,hint:t.storage.folderHint},{kind:`nfs`,label:t.storage.nfs,hint:t.storage.nfsHint}]});name=wt(``);kind=wt(`docker`);driver=wt(`local`);path=wt(``);server=wt(``);busy=wt(!1);problem=wt(null);storage=Lt(()=>{let t=this.path().trim();switch(this.kind()){case`docker`:return this.driver().trim()===``?null:{kind:`docker`,driver:this.driver().trim()};case`folder`:return t===``?null:{kind:`folder`,path:t};case`nfs`:return t===``||this.server().trim()===``?null:{kind:`nfs`,server:this.server().trim(),path:t}}});canSubmit=Lt(()=>!this.busy()&&this.name().trim()!==``&&this.storage()!==null);constructor(){rf(()=>{this.open()&&Tg(()=>{this.name.set(``),this.kind.set(`docker`),this.driver.set(`local`),this.path.set(``),this.server.set(``),this.problem.set(null)})})}submit(t){t.preventDefault();let e=this.storage();!this.canSubmit()||e===null||(this.busy.set(!0),this.problem.set(null),this.store.create({name:this.name().trim(),storage:e}).then(n=>{this.problem.set(n),n===null&&this.open.set(!1)}).finally(()=>this.busy.set(!1)))}static ɵfac=function(e){return new(e||i)};static ɵcmp=wc({type:i,selectors:[[`app-create-volume-dialog`]],inputs:{open:[1,`open`]},outputs:{open:`openChange`},decls:2,vars:1,consts:[[`rdxDialogRoot`,``,3,`openChange`,`open`],[`rdxDialogPortal`,``],[`rdxDialogBackdrop`,``,1,`fixed`,`inset-0`,`z-40`,`bg-black/50`],[`rdxDialogViewport`,``,1,`fixed`,`inset-0`,`z-50`,`grid`,`place-items-center`,`p-4`],[`rdxDialogPopup`,``,1,`w-full`,`max-w-md`,`rounded-lg`,`border`,`border-ink-700`,`bg-ink-850`,`p-5`,`shadow-2xl`],[`rdxDialogTitle`,``,1,`text-[15px]`,`font-semibold`,`text-ink-100`],[`rdxDialogDescription`,``,1,`mt-1`,`text-[13px]`,`text-ink-400`],[1,`mt-4`,`space-y-3`,3,`submit`],[1,`block`],[1,`text-[12px]`,`text-ink-400`],[`type`,`text`,`autocomplete`,`off`,`spellcheck`,`false`,3,`input`,`placeholder`,`value`,`disabled`],[1,`mt-1`,`space-y-1`],[1,`flex`,`cursor-pointer`,`items-start`,`gap-2`,`rounded-md`,`px-2`,`py-1.5`,`hover:bg-ink-800`],[1,`text-[12px]`,`text-ink-400`,3,`open`],[`role`,`alert`,1,`text-[13px]`,`text-danger`],[1,`flex`,`justify-end`,`gap-2`,`pt-2`],[`type`,`button`,`rdxDialogClose`,``,1,`mx-btn`,`mx-focus`],[`name`,`close`,3,`size`],[`type`,`submit`,1,`mx-btn`,`mx-focus`,3,`disabled`],[`name`,`plus`,3,`size`],[`type`,`radio`,`name`,`volume-storage`,1,`mt-0.5`,`accent-accent`,3,`change`,`value`,`checked`,`disabled`],[1,`block`,`text-[13px]`,`text-ink-100`],[1,`block`,`text-[12px]`,`text-ink-500`],[`type`,`text`,`placeholder`,`/srv/data`,`autocomplete`,`off`,`spellcheck`,`false`,3,`input`,`value`,`disabled`],[1,`mt-1`,`block`,`text-[12px]`,`text-ink-500`],[`type`,`text`,`placeholder`,`nas.local`,`autocomplete`,`off`,`spellcheck`,`false`,3,`input`,`value`,`disabled`],[`type`,`text`,`placeholder`,`/volume1/data`,`autocomplete`,`off`,`spellcheck`,`false`,3,`input`,`value`,`disabled`],[1,`cursor-pointer`,`select-none`],[1,`mt-2`,`block`],[`type`,`text`,`autocomplete`,`off`,`spellcheck`,`false`,3,`input`,`value`,`disabled`]],template:function(e,n){e&1&&(Li(0,`div`,0),vg(`openChange`,function(s){return vS(n.open,s)||(n.open=s),s}),_m(1,Le,29,16,`ng-template`,1),Nc()),e&2&&hg(`open`,n.open)},dependencies:[ie,ln,an,pn,cn,fn,dn,un,My],encapsulation:2})}});function $e(i,t){if(i&1&&(Li(0,`span`,17),fS(1),Nc()),i&2){let e=HE().$implicit;ec(),pg(e.label)}}function je(i,t){i&1&&(Li(0,`span`,19),fS(1,`/`),Nc())}function Ae(i,t){if(i&1){let e=RE();Li(0,`button`,18),Jm(`click`,function(){Od(e);let l=HE().$implicit;return Ld(HE(2).go(l.path))}),fS(1),Nc(),SE(2,je,2,0,`span`,19)}if(i&2){let e=HE().$implicit;ec(),Ac(` `,e.label,` `),ec(),kE(e.path!==`/`?2:-1)}}function He(i,t){if(i&1&&SE(0,$e,2,1,`span`,17)(1,Ae,3,2),i&2){let e=t.$index,n=t.$count;kE(e===n-1?0:1)}}function Ke(i,t){i&1&&(Li(0,`p`,11),fS(1),Nc()),i&2&&(ec(),pg(t))}function qe(i,t){if(i&1&&(Li(0,`p`,12),fS(1),Nc()),i&2){let e=HE(2);ec(),pg(e.t().loading)}}function Qe(i,t){if(i&1&&(Li(0,`p`,12),fS(1),Nc()),i&2){let e=HE(2);ec(),pg(e.t().empty)}}function Ge(i,t){if(i&1){let e=RE();Li(0,`button`,24),Jm(`click`,function(){Od(e);let l=HE().$implicit,s=HE(3);return Ld(s.go(s.childOf(l)))}),fS(1),Nc()}if(i&2){let e=HE().$implicit;ec(),Ac(` `,e.name,` `)}}function Je(i,t){if(i&1&&(Li(0,`span`,23),fS(1),Nc()),i&2){let e=HE().$implicit;ec(),pg(e.name)}}function Xe(i,t){if(i&1&&(Li(0,`li`,20),Gm(1,`app-icon`,21),SE(2,Ge,2,1,`button`,22)(3,Je,2,1,`span`,23),Nc()),i&2){let e=t.$implicit;ec(),ag(`text-accent`,e.kind===`dir`)(`text-ink-500`,e.kind===`file`),Wm(`name`,e.kind===`dir`?`folder`:`file`)(`size`,15),ec(),kE(e.kind===`dir`?2:3)}}function Ye(i,t){if(i&1&&(Li(0,`ul`,13),kc(1,Xe,4,7,`li`,20,Fe),Nc()),i&2){let e=HE(2);ec(),Tc(e.entries())}}function Ze(i,t){if(i&1){let e=RE();Gm(0,`div`,2),Li(1,`div`,3)(2,`div`,4)(3,`h2`,5),fS(4),Nc(),Li(5,`p`,6),fS(6),Nc(),Li(7,`div`,7)(8,`button`,8),Jm(`click`,function(){Od(e);let l=HE();return Ld(l.go(l.parentOf(l.path())))}),Gm(9,`app-icon`,9),Nc(),Li(10,`nav`,10),kc(11,He,2,1,null,null,Ue),Nc()(),SE(13,Ke,2,1,`p`,11)(14,qe,2,1,`p`,12)(15,Qe,2,1,`p`,12)(16,Ye,3,0,`ul`,13),Li(17,`div`,14)(18,`button`,15),Gm(19,`app-icon`,16),fS(20),Nc()()()()}if(i&2){let e,n=HE();ec(4),pg(n.t().title(n.volume())),ec(2),pg(n.t().description),ec(2),Wm(`disabled`,n.path()===`/`||n.busy()),zr(`aria-label`,n.t().up),ec(),Wm(`size`,14),ec(),zr(`aria-label`,n.t().path),ec(),Tc(n.crumbs()),ec(2),kE((e=n.problem())?13:n.busy()?14:n.entries().length===0?15:16,e),ec(6),Wm(`size`,14),ec(),Ac(` `,n.common().close,` `)}}var Ue;var Fe;var G;var be=f(()=>{Kr();Je$1();lk();dk();sk();Kr();Ue=(i,t)=>t.path,Fe=(i,t)=>t.name;G=class i{open=mj(!1);volume=jc.required();t=Lt(()=>ok().volumes.browse);common=Lt(()=>ok().common);path=wt(`/`);entries=wt([]);busy=wt(!1);problem=wt(null);crumbs=Lt(()=>{let t=this.path().split(`/`).filter(e=>e!==``);return[{label:`/`,path:`/`},...t.map((e,n)=>({label:e,path:`/${t.slice(0,n+1).join(`/`)}`}))]});constructor(){rf(()=>{let t=this.open(),e=this.volume();Tg(()=>{t?(this.path.set(`/`),this.load(e)):window.electron.volumes.closeBrowser().catch(()=>{})})})}go(t){this.path.set(t),this.load(this.volume())}parentOf(t){return`/${t.split(`/`).filter(n=>n!==``).slice(0,-1).join(`/`)}`}childOf(t){let e=this.path();return e.endsWith(`/`)?`${e}${t.name}`:`${e}/${t.name}`}async load(t){this.busy.set(!0);try{let e=await window.electron.volumes.browse(t,this.path());this.path.set(e.path),e.ok?(this.entries.set(e.entries),this.problem.set(null)):(this.entries.set([]),this.problem.set(e.problem))}catch(e){this.entries.set([]),this.problem.set(eH(e))}finally{this.busy.set(!1)}}static ɵfac=function(e){return new(e||i)};static ɵcmp=wc({type:i,selectors:[[`app-volume-browser-dialog`]],inputs:{open:[1,`open`],volume:[1,`volume`]},outputs:{open:`openChange`},decls:2,vars:1,consts:[[`rdxDialogRoot`,``,3,`openChange`,`open`],[`rdxDialogPortal`,``],[`rdxDialogBackdrop`,``,1,`fixed`,`inset-0`,`z-40`,`bg-black/50`],[`rdxDialogViewport`,``,1,`fixed`,`inset-0`,`z-50`,`grid`,`place-items-center`,`p-4`],[`rdxDialogPopup`,``,`data-testid`,`volume-browser-dialog`,1,`flex`,`max-h-[85vh]`,`w-full`,`max-w-2xl`,`flex-col`,`rounded-lg`,`border`,`border-ink-700`,`bg-ink-850`,`p-5`,`shadow-2xl`],[`rdxDialogTitle`,``,1,`text-[15px]`,`font-semibold`,`text-ink-100`],[`rdxDialogDescription`,``,1,`mt-1`,`text-[13px]`,`text-ink-400`],[1,`mt-3`,`flex`,`shrink-0`,`items-center`,`gap-2`],[`type`,`button`,`data-testid`,`volume-up`,1,`mx-btn`,`mx-focus`,3,`click`,`disabled`],[`name`,`arrow-up`,3,`size`],[1,`flex`,`min-w-0`,`flex-1`,`flex-wrap`,`items-center`,`font-mono`,`text-[12px]`],[1,`mt-3`,`rounded-md`,`border`,`border-danger/40`,`bg-danger/10`,`px-3`,`py-2`,`text-[13px]`,`text-danger`],[1,`mt-4`,`text-[13px]`,`text-ink-400`],[`data-testid`,`volume-list`,1,`mt-3`,`min-h-0`,`flex-1`,`divide-y`,`divide-ink-800`,`overflow-auto`,`text-[13px]`],[1,`mt-4`,`flex`,`justify-end`],[`type`,`button`,`rdxDialogClose`,``,1,`mx-btn`,`mx-focus`],[`name`,`close`,3,`size`],[`aria-current`,`location`,1,`text-ink-100`],[`type`,`button`,1,`mx-focus`,`cursor-pointer`,`text-ink-400`,`hover:text-ink-100`,3,`click`],[1,`px-1`,`text-ink-600`],[1,`flex`,`items-center`,`gap-2`,`py-1.5`],[3,`name`,`size`],[`type`,`button`,1,`mx-focus`,`min-w-0`,`flex-1`,`cursor-pointer`,`truncate`,`text-left`,`text-ink-100`,`hover:underline`],[1,`min-w-0`,`flex-1`,`truncate`,`text-ink-200`],[`type`,`button`,1,`mx-focus`,`min-w-0`,`flex-1`,`cursor-pointer`,`truncate`,`text-left`,`text-ink-100`,`hover:underline`,3,`click`]],template:function(e,n){e&1&&(Li(0,`div`,0),vg(`openChange`,function(s){return vS(n.open,s)||(n.open=s),s}),_m(1,Ze,21,9,`ng-template`,1),Nc()),e&2&&hg(`open`,n.open)},dependencies:[ie,ln,an,pn,cn,fn,dn,un,My],encapsulation:2})}});function et(i,t){if(i&1&&(Li(0,`span`,7),fS(1),Nc()),i&2){let e=HE();ec(),Ac(`· `,e.t().calculating)}}function tt(i,t){if(i&1&&(Li(0,`span`,17),fS(1),Nc()),i&2){let e=HE();ec(),pg(e.t().refreshing)}}function nt(i,t){if(i&1){let e=RE();Li(0,`div`,19)(1,`span`,31),fS(2),Nc(),Li(3,`button`,32),Jm(`click`,function(){Od(e);return Ld(HE().askRemoveSelected())}),Gm(4,`app-icon`,33),fS(5),Nc()()}if(i&2){let e=HE();ec(2),pg(e.t().selected(e.selected().size)),ec(2),Wm(`size`,14),ec(),Ac(` `,e.common().remove,` `)}}function it(i,t){if(i&1&&(Li(0,`div`,35),fS(1),Nc()),i&2){let e=HE().$implicit;ec(),pg(e.composeProject)}}function ot(i,t){if(i&1&&(Li(0,`div`,34),fS(1),Nc(),SE(2,it,2,1,`div`,35)),i&2){let e=t.$implicit;Wm(`title`,e.mountpoint),ec(),pg(e.name),ec(),kE(e.composeProject?2:-1)}}function at(i,t){if(i&1&&(Li(0,`span`,36),fS(1),Nc()),i&2){let e=t.$implicit;ec(),pg(e.driver)}}function rt(i,t){if(i&1&&(Li(0,`span`,37),fS(1),Nc()),i&2){let e=HE().$implicit,n=HE();ec(),pg(n.t().containerCount(e.inUseBy))}}function lt(i,t){i&1&&(Li(0,`span`,38),fS(1,`—`),Nc())}function st(i,t){if(i&1&&SE(0,rt,2,1,`span`,37)(1,lt,2,0,`span`,38),i&2){let e=t.$implicit;kE(e.inUseBy>0?0:1)}}function mt(i,t){if(i&1&&(Li(0,`span`,39),fS(1),Nc()),i&2){let e=t.$implicit,n=HE();ec(),pg(n.ageOf(e.createdAt))}}function dt(i,t){if(i&1&&(Li(0,`span`,40),fS(1),Nc()),i&2){let e=t.$implicit,n=HE();ec(),pg(n.sizeOf(e.sizeBytes))}}function pt(i,t){if(i&1){let e=RE();Li(0,`div`,41)(1,`app-action-menu`,42),Jm(`picked`,function(l){let s=Od(e).$implicit;return Ld(HE().onRowMenu(l,s))}),Nc()()}if(i&2){let e=t.$implicit,n=HE();ec(),Wm(`label`,n.t().rowMenu(e.name))(`items`,n.rowMenu(e))}}var ve;f(()=>{Kr();h();M();B();G$1();J();oe();K();dk();x();fe();sk();be();ra();o();Kr();ve=class i$1{store=I(w);preferences=I(p);t=Lt(()=>ok().volumes);common=Lt(()=>ok().common);columns=Lt(()=>{let t=this.t().columns;return[{key:`name`,label:t.name},{key:`driver`,label:t.driver,width:`100px`},{key:`inUse`,label:t.inUse,width:`110px`},{key:`created`,label:t.created,width:`150px`},{key:`size`,label:t.size,width:`100px`,align:`right`},{key:`actions`,label:t.actions,width:`84px`,align:`right`}]});loading=this.store.loading;loadingSizes=this.store.loadingSizes;problem=this.store.problem;pending=this.store.pending;unusedCount=this.store.unusedCount;search=wt(``);zoek=jc(void 0);onlyUnused=this.preferences.flag(`volumes.onlyUnused`);selected=wt(new Set);action=wt(null);confirmOpen=wt(!1);createOpen=wt(!1);browseOpen=wt(!1);browseVolume=wt(``);rows=Lt(()=>{let t=this.search().trim().toLowerCase(),e=this.onlyUnused();return this.store.volumes().filter(n=>e&&n.inUseBy>0?!1:t===``||n.name.toLowerCase().includes(t))});totalSize=Lt(()=>d(this.store.totalBytes()));trackKey=t=>t.name;inkijk=jc(void 0);bewaar=jc(void 0);router=I(fe$1);route=I(Q$1);constructor(){rf(()=>{let t=this.inkijk();t!==void 0&&Tg(()=>{this.browseVolume.set(t),this.browseOpen.set(!0),i(this.router,this.route,`inkijk`)})}),rf(()=>{let t=this.bewaar(),e=this.store.volumes().find(n=>n.name===t);t!==void 0&&e!==void 0&&Tg(()=>{this.backup(e),i(this.router,this.route,`bewaar`)})}),rf(()=>{let t=this.zoek();t!==void 0&&Tg(()=>this.search.set(t))}),this.store.refresh()}sizeOf(t){return t===null?`—`:d(t)}ageOf(t){return t===0?`—`:N(t)}removalReason(t){return t.inUseBy>0?this.t().inUseReason(t.inUseBy):this.common().remove}backup(t){this.store.backup(t.name)}backupTitle(t){return t.inUseBy>0?this.t().backupTitleInUse(t.name):this.t().backupTitle(t.name)}rowMenu(t){let e=this.pending().has(t.name),n=this.t();return[{id:`browse`,label:n.rowBrowse,icon:`folder`,disabled:e},{id:`backup`,label:n.rowBackup,icon:`download`,disabled:e,hint:this.backupTitle(t)},{id:`restore`,label:n.rowRestore,icon:`upload`,disabled:e,hint:n.restoreTitle(t.name)},{id:`remove`,label:this.common().remove,icon:`trash`,disabled:e||t.inUseBy>0,danger:!0,separated:!0,hint:this.removalReason(t)}]}onRowMenu(t,e){t===`browse`?(this.browseVolume.set(e.name),this.browseOpen.set(!0)):t===`backup`?this.backup(e):t===`restore`?this.askRestore(e):this.askRemove(e)}askRestore(t){let e=this.t().restore;this.action.set({names:[t.name],title:e.title(t.name),description:e.description(t.inUseBy),confirmLabel:e.confirm,all:!1,restore:!0}),this.confirmOpen.set(!0)}askRemove(t){let e=this.t().remove;this.action.set({names:[t.name],title:e.title,description:e.description(t.name),confirmLabel:this.common().remove,all:!1}),this.confirmOpen.set(!0)}askRemoveSelected(){let t=[...this.selected()],e=this.t().remove;this.action.set({names:t,title:e.manyTitle,description:e.manyDescription(t.length),confirmLabel:this.common().remove,all:!1}),this.confirmOpen.set(!0)}menuItems=Lt(()=>[{id:`create`,label:this.t().menu.create,icon:`plus`},{id:`prune-anonymous`,label:this.t().menu.pruneAnonymous,icon:`broom`,separated:!0},{id:`prune-unused`,label:this.t().menu.pruneUnused,icon:`broom`}]);onMenu(t){t===`create`?this.createOpen.set(!0):this.askPrune(t===`prune-unused`)}askPrune(t){let e=this.t().prune;this.action.set({names:[],title:t?e.allTitle:e.anonymousTitle,description:t?e.allDescription:e.anonymousDescription,confirmLabel:e.confirm,all:t}),this.confirmOpen.set(!0)}confirm(){let t=this.action();t!==null&&(t.restore===!0?this.store.restore(t.names[0]):t.names.length===0?this.store.prune(t.all):(this.store.removeMany(t.names,!1),this.selected.set(new Set)),this.action.set(null))}actionTitle(){return this.action()?.title??``}actionDescription(){return this.action()?.description??``}actionConfirmLabel(){return this.action()?.confirmLabel??this.common().remove}actionConfirmIcon(){let t=this.action();return t?.restore===!0?`upload`:t?.names.length===0?`broom`:`trash`}static ɵfac=function(e){return new(e||i$1)};static ɵcmp=wc({type:i$1,selectors:[[`app-volumes-page`]],inputs:{zoek:[1,`zoek`],inkijk:[1,`inkijk`],bewaar:[1,`bewaar`]},decls:42,vars:30,consts:[[1,`flex`,`h-full`,`flex-col`],[1,`shrink-0`,`px-6`,`pt-5`,`pb-3`],[1,`flex`,`flex-wrap`,`items-start`,`gap-4`],[1,`text-xl`,`font-semibold`,`tracking-tight`,`text-ink-100`],[1,`mt-3`,`flex`,`flex-wrap`,`gap-x-10`,`gap-y-2`],[1,`text-[12px]`,`text-ink-400`],[1,`text-[15px]`,`font-medium`,`text-ink-100`],[1,`text-[12px]`,`font-normal`,`text-ink-500`],[1,`ml-auto`],[3,`picked`,`label`,`items`],[1,`mt-4`,`flex`,`flex-wrap`,`items-center`,`gap-4`],[1,`relative`,`flex`,`items-center`],[1,`pointer-events-none`,`absolute`,`left-2.5`,`text-ink-500`],[`name`,`search`,3,`size`],[1,`sr-only`],[`type`,`search`,1,`mx-focus`,`w-72`,`rounded-md`,`border`,`border-ink-700`,`bg-ink-850`,`py-1.5`,`pr-3`,`pl-8`,`text-[13px]`,`text-ink-100`,`placeholder:text-ink-500`,3,`input`,`placeholder`,`value`],[3,`onChange`,`label`,`on`],[1,`text-[12px]`,`text-ink-500`],[3,`problem`],[1,`mt-3`,`flex`,`items-center`,`gap-2`,`rounded-md`,`border`,`border-ink-700`,`bg-ink-850`,`px-3`,`py-2`],[1,`min-h-0`,`flex-1`,`overflow-y-auto`,`px-6`,`pb-6`],[3,`selectedChange`,`columns`,`rows`,`trackKey`,`selected`,`emptyMessage`],[`appCell`,`name`],[`appCell`,`driver`],[`appCell`,`inUse`],[`appCell`,`created`],[`appCell`,`size`],[`appCell`,`actions`],[3,`openChange`,`open`],[3,`openChange`,`open`,`volume`],[3,`openChange`,`confirmed`,`open`,`title`,`description`,`confirmLabel`,`confirmIcon`],[1,`text-[13px]`,`text-ink-200`],[`type`,`button`,1,`mx-btn`,`mx-focus`,`ml-auto`,`text-danger`,`hover:text-danger`,3,`click`],[`name`,`trash`,3,`size`],[1,`truncate`,`text-ink-100`,3,`title`],[1,`truncate`,`text-[11px]`,`text-ink-500`],[1,`text-ink-300`],[1,`text-ink-200`],[1,`text-ink-600`],[1,`text-ink-400`],[1,`tabular-nums`,`text-ink-200`],[1,`flex`,`items-center`,`justify-end`],[`compact`,``,3,`picked`,`label`,`items`]],template:function(e,n){e&1&&(Li(0,`section`,0)(1,`div`,1)(2,`div`,2)(3,`div`)(4,`h1`,3),fS(5),Nc(),Li(6,`div`,4)(7,`div`)(8,`div`,5),fS(9),Nc(),Li(10,`div`,6),fS(11),SE(12,et,2,1,`span`,7),Nc()(),Li(13,`div`)(14,`div`,5),fS(15),Nc(),Li(16,`div`,6),fS(17),Nc()()()(),Li(18,`div`,8)(19,`app-action-menu`,9),Jm(`picked`,function(s){return n.onMenu(s)}),Nc()()(),Li(20,`div`,10)(21,`label`,11)(22,`span`,12),Gm(23,`app-icon`,13),Nc(),Li(24,`span`,14),fS(25),Nc(),Li(26,`input`,15),Jm(`input`,function(s){return n.search.set(s.target.value)}),Nc()(),Li(27,`app-filter-switch`,16),vg(`onChange`,function(s){return vS(n.onlyUnused,s)||(n.onlyUnused=s),s}),Nc(),SE(28,tt,2,1,`span`,17),Nc(),Gm(29,`app-page-messages`,18),SE(30,nt,6,3,`div`,19),Nc(),Li(31,`div`,20)(32,`app-data-table`,21),vg(`selectedChange`,function(s){return vS(n.selected,s)||(n.selected=s),s}),_m(33,ot,3,3,`ng-template`,22)(34,at,2,1,`ng-template`,23)(35,st,2,1,`ng-template`,24)(36,mt,2,1,`ng-template`,25)(37,dt,2,1,`ng-template`,26)(38,pt,2,2,`ng-template`,27),Nc()()(),Li(39,`app-create-volume-dialog`,28),vg(`openChange`,function(s){return vS(n.createOpen,s)||(n.createOpen=s),s}),Nc(),Li(40,`app-volume-browser-dialog`,29),vg(`openChange`,function(s){return vS(n.browseOpen,s)||(n.browseOpen=s),s}),Nc(),Li(41,`app-confirm-dialog`,30),vg(`openChange`,function(s){return vS(n.confirmOpen,s)||(n.confirmOpen=s),s}),Jm(`confirmed`,function(){return n.confirm()}),Nc()),e&2&&(ec(5),pg(n.t().title),ec(4),pg(n.t().diskSpace),ec(2),Ac(` `,n.totalSize(),` `),ec(),kE(n.loadingSizes()?12:-1),ec(3),pg(n.t().unused),ec(2),pg(n.unusedCount()),ec(2),Wm(`label`,n.t().menuLabel)(`items`,n.menuItems()),ec(4),Wm(`size`,15),ec(2),pg(n.t().searchLabel),ec(),Wm(`placeholder`,n.t().searchLabel)(`value`,n.search()),ec(),Wm(`label`,n.t().onlyUnused),hg(`on`,n.onlyUnused),ec(),kE(n.loading()?28:-1),ec(),Wm(`problem`,n.problem()),ec(),kE(n.selected().size>0?30:-1),ec(2),Wm(`columns`,n.columns())(`rows`,n.rows())(`trackKey`,n.trackKey),hg(`selected`,n.selected),Wm(`emptyMessage`,n.t().empty),ec(7),hg(`open`,n.createOpen),ec(),hg(`open`,n.browseOpen),Wm(`volume`,n.browseVolume()),ec(),hg(`open`,n.confirmOpen),Wm(`title`,n.actionTitle())(`description`,n.actionDescription())(`confirmLabel`,n.actionConfirmLabel())(`confirmIcon`,n.actionConfirmIcon()))},dependencies:[z,x$1,My,W,u,P,V,Q,G],encapsulation:2})}})();export{ve as VolumesPage};
@@ -0,0 +1 @@
1
+ import{A as I,Ct as Tc,Dn as kE,En as jc,Ft as Wm,H as Li,I as Jm,In as nS,J as My,Kn as pj,O as HE,On as kc,Qn as rg,R as Kr,T as Gm,Tr as zr,V as Ld,Vn as ok,W as Lt,X as Nc,_ as Dj,_n as gj,_r as wt,at as Pr,cn as ec,er as sk,gt as SE,hr as wc,in as dk,ln as f,o as BE,pr as wD,r as Ac,tt as Od,un as fS,ut as RE}from"./chunk-BU6WXUxF.js";function $(i,e){i&1&&Gm(0,`li`,6)}function j(i,e){if(i&1){let t=RE();SE(0,$,1,0,`li`,6),Li(1,`li`,7)(2,`button`,8),Jm(`click`,function(){let o=Od(t).$implicit;return Ld(HE(2).pick(o))})(`keydown`,function(o){Od(t);return Ld(HE(2).onItemKey(o))}),Gm(3,`app-icon`,9),fS(4),Nc()()}if(i&2){let t=e.$implicit,n=HE(2);kE(t.separated?0:-1),ec(),zr(`title`,t.hint??null),ec(),nS(t.danger?n.dangerClass:n.normalClass),Wm(`disabled`,t.disabled===!0),zr(`data-testid`,`menu-`+t.id),ec(),Wm(`name`,t.icon)(`size`,14),ec(),Ac(` `,t.label,` `)}}function P(i,e){if(i&1&&(Li(0,`ul`,5),kc(1,j,5,9,null,null,U),Nc()),i&2){let t=HE();nS(t.upward()?`bottom-full mb-1.5`:`top-full mt-1.5`),zr(`aria-label`,t.shownLabel()),ec(),Tc(t.items())}}var Q;var U;var V;var G=f(()=>{Kr();sk();dk();Kr();Q=[`trigger`],U=(i,e)=>e.id;V=class i{items=jc.required();label=jc(null);compact=jc(!1,{transform:Dj});picked=pj();shownLabel=Lt(()=>this.label()??ok().shell.actionMenu.label);host=I(Pr);trigger=gj(`trigger`);open=wt(!1);upward=wt(!1);compactTriggerClass=`mx-focus cursor-pointer rounded p-1 text-ink-400 transition-colors hover:bg-ink-800 hover:text-ink-100`;normalClass=`text-ink-200 hover:bg-ink-750 hover:text-ink-100 focus-visible:bg-ink-750 focus-visible:text-ink-100`;dangerClass=`text-danger hover:bg-danger/15 focus-visible:bg-danger/15`;toggle(){let e=!this.open();e&&this.placeMenu(),this.open.set(e),e&&setTimeout(()=>this.focusItem(0))}onOutside(e){this.open()&&!this.host.nativeElement.contains(e.target)&&this.open.set(!1)}onTriggerKey(e){e.key!==`ArrowDown`&&e.key!==`ArrowUp`||(e.preventDefault(),this.placeMenu(),this.open.set(!0),setTimeout(()=>this.focusItem(e.key===`ArrowUp`?-1:0)))}onItemKey(e){if(e.key===`Escape`||e.key===`Tab`){e.key===`Escape`&&e.preventDefault(),this.close();return}if(e.key!==`ArrowDown`&&e.key!==`ArrowUp`)return;e.preventDefault();let n=this.enabledItems().indexOf(document.activeElement);this.focusItem(n===-1?0:n+(e.key===`ArrowDown`?1:-1))}pick(e){this.close(),this.picked.emit(e.id)}placeMenu(){let e=this.trigger()?.nativeElement;if(e===void 0)return;let t=e.getBoundingClientRect(),n=this.items().length*32+24,o=window.innerHeight-t.bottom;this.upward.set(o<n&&t.top>o)}close(){this.open.set(!1),this.trigger()?.nativeElement.focus()}enabledItems(){return[...this.host.nativeElement.querySelectorAll(`[role="menuitem"]:not(:disabled)`)]}focusItem(e){let t=this.enabledItems();t.length!==0&&t[(e+t.length)%t.length].focus()}static ɵfac=function(t){return new(t||i)};static ɵcmp=wc({type:i,selectors:[[`app-action-menu`]],viewQuery:function(t,n){t&1&&rg(n.trigger,Q,5),t&2&&BE()},hostBindings:function(t,n){t&1&&Jm(`pointerdown`,function(a){return n.onOutside(a)},wD)},inputs:{items:[1,`items`],label:[1,`label`],compact:[1,`compact`]},outputs:{picked:`picked`},decls:5,vars:7,consts:[[`trigger`,``],[1,`relative`],[`type`,`button`,`aria-haspopup`,`menu`,`data-testid`,`action-menu`,3,`click`,`keydown`,`title`],[`name`,`menu`,3,`size`],[`role`,`menu`,1,`absolute`,`right-0`,`z-50`,`w-56`,`rounded-md`,`border`,`border-ink-700`,`bg-panel`,`py-1`,`shadow-2xl`,3,`class`],[`role`,`menu`,1,`absolute`,`right-0`,`z-50`,`w-56`,`rounded-md`,`border`,`border-ink-700`,`bg-panel`,`py-1`,`shadow-2xl`],[`role`,`separator`,1,`my-1`,`border-t`,`border-ink-700`],[`role`,`none`],[`type`,`button`,`role`,`menuitem`,1,`mx-focus`,`flex`,`w-full`,`cursor-pointer`,`items-center`,`gap-2`,`px-3`,`py-1.5`,`text-left`,`text-[13px]`,`transition-colors`,`focus-visible:outline-none`,`disabled:cursor-not-allowed`,`disabled:opacity-40`,`disabled:hover:bg-transparent`,3,`click`,`keydown`,`disabled`],[3,`name`,`size`]],template:function(t,n){t&1&&(Li(0,`div`,1)(1,`button`,2,0),Jm(`click`,function(){return n.toggle()})(`keydown`,function(a){return n.onTriggerKey(a)}),Gm(3,`app-icon`,3),Nc(),SE(4,P,3,3,`ul`,4),Nc()),t&2&&(ec(),nS(n.compact()?n.compactTriggerClass:`mx-btn mx-focus`),Wm(`title`,n.shownLabel()),zr(`aria-expanded`,n.open())(`aria-label`,n.shownLabel()),ec(2),Wm(`size`,n.compact()?15:16),ec(),kE(n.open()?4:-1))},dependencies:[My],encapsulation:2})}});export{V as n,G as t};
@@ -0,0 +1 @@
1
+ import{$n as sg,A as I,En as jc,Fn as mj,G as M,I as Jm,Kn as pj,L as Km,Lt as Ws,P as Ir,Pt as W,R as Kr,Tn as jC,Tr as zr,W as Lt$1,Z as Ng,Zn as rf,_ as Dj,_r as wt,a as Ar,at as Pr,br as yR,bt as T,d as CS,f as Cb,ht as S,it as PS,jn as lf,ln as f,lr as ve$1,nn as br,t as $C,tr as sw,w as Gi,wt as Tg,yt as Se$1,z as LD}from"./chunk-BU6WXUxF.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-C0CE-ryM.js";import{i as v,n as f$1,r as g,t as L$1}from"./chunk-d9EuDpHJ.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=Lt$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}),LD(()=>{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=$C({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:[CS([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=Lt$1(()=>this.enabled()??this.config?.enabled?.()??!0),this.effectiveModal=Lt$1(()=>this.modal()??this.config?.modal?.()??!1),this.effectiveInert=Lt$1(()=>this.inert()??this.config?.inert?.()??this.effectiveModal()),this.effectiveCloseOnFocusOut=Lt$1(()=>this.closeOnFocusOut()??this.config?.closeOnFocusOut?.()??!0),this.effectiveInitialFocus=Lt$1(()=>this.initialFocus()!==void 0?this.initialFocus():this.config?.initialFocus?.()??null),this.effectiveReturnFocus=Lt$1(()=>this.returnFocus()!==void 0?this.returnFocus():this.config?.returnFocus?.()??!0),this.effectiveRestoreFocus=Lt$1(()=>this.restoreFocus()??this.config?.restoreFocus?.()??!1),this.effectivePreviousFocusableElement=Lt$1(()=>this.previousFocusableElement()!==void 0?this.previousFocusableElement():this.config?.previousFocusableElement?.()),this.effectiveNextFocusableElement=Lt$1(()=>this.nextFocusableElement()!==void 0?this.nextFocusableElement():this.config?.nextFocusableElement?.()),this.effectiveBeforeContentFocusGuardRef=Lt$1(()=>this.beforeContentFocusGuardRef()??this.config?.beforeContentFocusGuardRef?.()),this.effectiveExternalTree=Lt$1(()=>this.externalTree()??this.config?.externalTree?.()??null),this.insideElements=Lt$1(()=>((this.getInsideElements()??this.config?.getInsideElements)?.()??[]).filter(n=>n!=null)),this.effectiveOpenInteractionType=Lt$1(()=>this.config?.openInteractionType?.()??this._interactionType()),this.effectiveCloseInteractionType=Lt$1(()=>this.config?.closeInteractionType?.()??this._interactionType()),this.trapped=Lt$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=$C({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:[CS([Un()]),jC([{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(Cb(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=Lt$1(()=>this.contextPresent()||this.keepMounted()),this._computedContainer=PS(this.container),this.elementContainer=Lt$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=$C({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=Lt$1(()=>this.open()||this.preventUnmountOnClose()),this.nested=!!this.parentRoot,this.nestedDialogOpen=Lt$1(()=>this.nestedOpenCount()>0),this.role=this.variant.role,this.effectiveModal=Lt$1(()=>this.variant.forceModal?!0:this.modal()),this.effectiveDisablePointerDismissal=Lt$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=$C({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:[CS([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=$C({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=$C({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=$C({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(Lt$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);LD(()=>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=$C({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:[CS([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()}})]),jC([qo,Te])]})}}return e})(),ln=(()=>{class e{constructor(){this.container=jc()}static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=$C({type:e,selectors:[[`ng-template`,`rdxDialogPortal`,``]],inputs:{container:[1,`container`]},exportAs:[`rdxDialogPortal`],features:[CS([L$1(()=>({present:B().present}))]),jC([{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=$C({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=$C({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=$C({type:e,selectors:[[``,`rdxAlertDialogBackdrop`,``]],exportAs:[`rdxAlertDialogBackdrop`],features:[jC([an])]})}}return e})(),Ri=(()=>{class e{static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=$C({type:e,selectors:[[`button`,`rdxAlertDialogClose`,``]],exportAs:[`rdxAlertDialogClose`],features:[jC([un])]})}}return e})(),Mi=(()=>{class e{static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=$C({type:e,selectors:[[``,`rdxAlertDialogDescription`,``]],exportAs:[`rdxAlertDialogDescription`],features:[jC([dn])]})}}return e})(),Ii=(()=>{class e{static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=$C({type:e,selectors:[[``,`rdxAlertDialogPopup`,``]],exportAs:[`rdxAlertDialogPopup`],features:[jC([{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=$C({type:e,selectors:[[`ng-template`,`rdxAlertDialogPortal`,``]],exportAs:[`rdxAlertDialogPortal`],features:[jC([{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=$C({type:e,selectors:[[``,`rdxAlertDialogRoot`,``]],exportAs:[`rdxAlertDialogRoot`],features:[CS([sn({role:`alertdialog`,forceModal:!0,forcePointerDismissalDisabled:!0})]),jC([{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=$C({type:e,selectors:[[``,`rdxAlertDialogTitle`,``]],exportAs:[`rdxAlertDialogTitle`],features:[jC([fn])]})}}return e})(),ki=(()=>{class e{static{this.ɵfac=function(n){return new(n||e)}}static{this.ɵdir=$C({type:e,selectors:[[``,`rdxAlertDialogViewport`,``]],exportAs:[`rdxAlertDialogViewport`],features:[jC([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};