@decocms/mesh 2.56.0 → 2.57.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/dist/client/assets/{AlertCircle-D0dYVV_C.js → AlertCircle-C8rO0b-G.js} +1 -1
  2. package/dist/client/assets/{ArrowLeft-DaBwGT1h.js → ArrowLeft-vpWbkp4-.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-j0Zx2i-T.js → ArrowUp-agI-7Ntt.js} +1 -1
  4. package/dist/client/assets/{Check-DxEsBW6A.js → Check-bsESkKfK.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-BLLsYwZi.js → ChevronDown-BrpZ0bUP.js} +1 -1
  6. package/dist/client/assets/{Code01-q6RjOjO2.js → Code01-oTyk1HsI.js} +1 -1
  7. package/dist/client/assets/{Copy01-CiRHbRil.js → Copy01-BUXP8R1a.js} +1 -1
  8. package/dist/client/assets/{DotsHorizontal-D_i29myt.js → DotsHorizontal-B4Dbs24g.js} +1 -1
  9. package/dist/client/assets/{DotsVertical-YtFig9Al.js → DotsVertical-0N_Gcgn2.js} +1 -1
  10. package/dist/client/assets/{Download01-ColP9k0s.js → Download01-C42qXmzc.js} +1 -1
  11. package/dist/client/assets/{Edit01-CvwEhkEB.js → Edit01-CK-Jy3GQ.js} +1 -1
  12. package/dist/client/assets/{File06-VVEb2XPf.js → File06-DGGRuK65.js} +1 -1
  13. package/dist/client/assets/{FilterLines-C6u5hl0S.js → FilterLines-BjbUYSYQ.js} +1 -1
  14. package/dist/client/assets/{FlipBackward-Bwy_5A0g.js → FlipBackward-Dor7d84a.js} +1 -1
  15. package/dist/client/assets/{Grid01-C2ELbDxI.js → Grid01-0lEGvhxe.js} +1 -1
  16. package/dist/client/assets/{Home02-D8O3gYg1.js → Home02-uaWRHUbo.js} +1 -1
  17. package/dist/client/assets/{Image01-BV4jTRkm.js → Image01-Da7t4wio.js} +1 -1
  18. package/dist/client/assets/{Inbox01-nY-CiFPV.js → Inbox01-CYTXANsF.js} +1 -1
  19. package/dist/client/assets/{InfoCircle-BMyKDxax.js → InfoCircle-C6HReCuL.js} +1 -1
  20. package/dist/client/assets/{Key01-BdALywUo.js → Key01-ChugVlXz.js} +1 -1
  21. package/dist/client/assets/{LinkExternal01-CNdI9age.js → LinkExternal01-C0CJeznV.js} +1 -1
  22. package/dist/client/assets/{List-DALRRs8f.js → List-1gtHxod5.js} +1 -1
  23. package/dist/client/assets/{Loading01-Ck4DHeCz.js → Loading01-CH0UJYYG.js} +1 -1
  24. package/dist/client/assets/{Lock01-CTXkP_M4.js → Lock01-CG48-_ZX.js} +1 -1
  25. package/dist/client/assets/{Pin01-Dn3xisY_.js → Pin01-GLAYpRsP.js} +1 -1
  26. package/dist/client/assets/{Play-BRWhqcey.js → Play-EKJU7zcf.js} +1 -1
  27. package/dist/client/assets/{Plus-CWYnIbbQ.js → Plus-DJQVkgt_.js} +1 -1
  28. package/dist/client/assets/{SearchMd-BwwEmX02.js → SearchMd-Cz_YV08V.js} +1 -1
  29. package/dist/client/assets/{Share07-BFonVbaA.js → Share07-pR36fyiF.js} +1 -1
  30. package/dist/client/assets/{Terminal-DBu0XX3z.js → Terminal-CVwldn8M.js} +1 -1
  31. package/dist/client/assets/{Trash01-O2qCmwMn.js → Trash01-CmkjDFiw.js} +1 -1
  32. package/dist/client/assets/{Upload01-DI7SlvsT.js → Upload01-ZVXhuS8k.js} +1 -1
  33. package/dist/client/assets/{Users03-BmQGs7qi.js → Users03-DU4-bWO4.js} +1 -1
  34. package/dist/client/assets/{X-DfKEMSAq.js → X-DTfiDKsP.js} +1 -1
  35. package/dist/client/assets/{XClose--VE6Uxj9.js → XClose-DXOCJ4jd.js} +1 -1
  36. package/dist/client/assets/agent-detail-5YwCG3Vp.js +1 -0
  37. package/dist/client/assets/{agents-BrJ8JJdU.js → agents-B65hVwk1.js} +1 -1
  38. package/dist/client/assets/{alert-dialog-BehqkAiu.js → alert-dialog-DSN82CoS.js} +1 -1
  39. package/dist/client/assets/{auth-catchall-D4TSd1Ye.js → auth-catchall-D3VD9fSQ.js} +1 -1
  40. package/dist/client/assets/{avatar-brRXoKvO.js → avatar-hGKwXmmo.js} +1 -1
  41. package/dist/client/assets/{badge-CngTAfQv.js → badge-COYJ-Pmf.js} +1 -1
  42. package/dist/client/assets/{binder-CIKIGv1N.js → binder-Qfx9JiTV.js} +1 -1
  43. package/dist/client/assets/{button-BHD-W54e.js → button-C27O1Tep.js} +1 -1
  44. package/dist/client/assets/{card-CDL86Pnt.js → card-Bh-0IVmq.js} +1 -1
  45. package/dist/client/assets/{checkbox-CCyLipUT.js → checkbox-ByIz1hp1.js} +1 -1
  46. package/dist/client/assets/{circle-alert-DgFpoHtR.js → circle-alert-Bcrtrele.js} +1 -1
  47. package/dist/client/assets/collection-detail-Bw_JnEEW.js +26 -0
  48. package/dist/client/assets/{collection-display-button-D7y47NmT.js → collection-display-button-C5guuNpQ.js} +1 -1
  49. package/dist/client/assets/{collection-header-BH0hMpwH.js → collection-header-DuFFC04Y.js} +1 -1
  50. package/dist/client/assets/{collection-page-D7qrDAdO.js → collection-page-CvjkGAp9.js} +1 -1
  51. package/dist/client/assets/{collection-search-DriJZFj9.js → collection-search-cE-wVILm.js} +1 -1
  52. package/dist/client/assets/{collection-tab-CcL8qVIp.js → collection-tab-DtYAS3be.js} +1 -1
  53. package/dist/client/assets/{collection-table-wrapper-XQuXSlg_.js → collection-table-wrapper-0Bo8TIAS.js} +1 -1
  54. package/dist/client/assets/{connect-BAmGV9_O.js → connect-DsZ06Bb_.js} +1 -1
  55. package/dist/client/assets/{connection-card-DXxyylc0.js → connection-card-BliQqhzM.js} +1 -1
  56. package/dist/client/assets/{connection-detail-D-r8wdLm.js → connection-detail-BgFKGBjf.js} +1 -1
  57. package/dist/client/assets/{connections-u-2LGaVH.js → connections-DN_d5sPG.js} +1 -1
  58. package/dist/client/assets/{constants-B-pBHHtD.js → constants-BhXVXoda.js} +1 -1
  59. package/dist/client/assets/constants-DK8mJXHI.js +1 -0
  60. package/dist/client/assets/{create-organization-dialog-B9AunrOf.js → create-organization-dialog-DyGXl4j0.js} +1 -1
  61. package/dist/client/assets/{dialog-pQaEse5h.js → dialog-2RChHFVc.js} +1 -1
  62. package/dist/client/assets/{dropdown-menu-D88t_1GY.js → dropdown-menu-CvjQt0JX.js} +1 -1
  63. package/dist/client/assets/{dynamic-plugin-layout-D_WzC1mY.js → dynamic-plugin-layout-D3laiYgI.js} +1 -1
  64. package/dist/client/assets/{empty-state-NBwahr1o.js → empty-state-BDPhhANS.js} +1 -1
  65. package/dist/client/assets/{empty-state-eAV0ZWF3.js → empty-state-Cu78wcTh.js} +1 -1
  66. package/dist/client/assets/{env-vars-editor-B0hNi1Xe.js → env-vars-editor-X_CtF2mI.js} +1 -1
  67. package/dist/client/assets/{error-boundary-DVK1pLb7.js → error-boundary-CGthXXIx.js} +1 -1
  68. package/dist/client/assets/{estree-CwOGYdhi.js → estree-BOE5AzoZ.js} +2 -2
  69. package/dist/client/assets/{extract-connection-data-BKsqjhg6.js → extract-connection-data-pGIt-HCV.js} +1 -1
  70. package/dist/client/assets/{file-browser-BAc2Lle0.js → file-browser-BEObwBCu.js} +2 -2
  71. package/dist/client/assets/{form-CilxoLBx.js → form-A9uXvCEC.js} +1 -1
  72. package/dist/client/assets/{grid-view-HgHaVP5u.js → grid-view-BxgPINem.js} +1 -1
  73. package/dist/client/assets/{home-BplrQ6hr.js → home-B0HLf5WC.js} +1 -1
  74. package/dist/client/assets/{index-BuKAiFTQ.js → index-7s6a8H7V.js} +1 -1
  75. package/dist/client/assets/{index-BAsk5kiO.js → index-BFTvKmE8.js} +3 -3
  76. package/dist/client/assets/{index-DAh_kZ0g.js → index-BdwaCz7c.js} +6 -6
  77. package/dist/client/assets/{index-CmaBy21Y.js → index-DHeWc5sz.js} +1 -1
  78. package/dist/client/assets/index-DdXwvhtT.js +25 -0
  79. package/dist/client/assets/{index-BE9VxaVK.js → index-VpvRFsKi.js} +1 -1
  80. package/dist/client/assets/{infiniteQueryObserver-C9HxWVU4.js → infiniteQueryObserver-BpMFJQC9.js} +1 -1
  81. package/dist/client/assets/{input-RCMmufsJ.js → input-B2fcjFgH.js} +1 -1
  82. package/dist/client/assets/{layout-DjRPo0f0.js → layout-V0w1joLG.js} +1 -1
  83. package/dist/client/assets/{localstorage-keys-DYY-WP6R.js → localstorage-keys-BoCVyY3G.js} +1 -1
  84. package/dist/client/assets/{login-B66-dBlb.js → login-CEUn-CbC.js} +1 -1
  85. package/dist/client/assets/mcp-oauth-ZRHNetS-.js +1 -0
  86. package/dist/client/assets/{mcp-server-card-ClUnyTeG.js → mcp-server-card-CDNnOm93.js} +1 -1
  87. package/dist/client/assets/{mcp-server-detail-DjK313CG.js → mcp-server-detail-DqETrep8.js} +2 -2
  88. package/dist/client/assets/{members-BiBJtYHt.js → members--3-zQV-m.js} +1 -1
  89. package/dist/client/assets/{monaco-editor-Vlv3xLsL.js → monaco-editor-bUy3gNfD.js} +2 -2
  90. package/dist/client/assets/{monitoring-CFHx7vto.js → monitoring--Lt0OEis.js} +3 -3
  91. package/dist/client/assets/{oauth-callback-CnDURlld.js → oauth-callback-CWMI_jqz.js} +1 -1
  92. package/dist/client/assets/{page-CuldkWOh.js → page-BMc7AjMv.js} +1 -1
  93. package/dist/client/assets/{page-C-5nFDs7.js → page-DmJBsO35.js} +1 -1
  94. package/dist/client/assets/{pin-to-sidebar-button-BqldlKO8.js → pin-to-sidebar-button-C_ntSSpu.js} +1 -1
  95. package/dist/client/assets/{plugin-empty-state-Cvb8CkFY.js → plugin-empty-state-zpVHwWxb.js} +1 -1
  96. package/dist/client/assets/{plugin-header-CPf3xeql.js → plugin-header-CiGDp9KW.js} +1 -1
  97. package/dist/client/assets/{plugins-CEjaHdFO.js → plugins-Z7IP48vQ.js} +1 -1
  98. package/dist/client/assets/{popover-CuFXrDp7.js → popover-C8uYVooB.js} +1 -1
  99. package/dist/client/assets/{registry-utils-DQ7VA2Vu.js → registry-utils-CB5x8oYd.js} +1 -1
  100. package/dist/client/assets/{resizable-DNHv_vEu.js → resizable-DQZOCv1H.js} +1 -1
  101. package/dist/client/assets/{resource-tabs-B1t9TZZp.js → resource-tabs-CP0lLGDW.js} +1 -1
  102. package/dist/client/assets/{select-C93bGKrw.js → select-BmzAyfSh.js} +1 -1
  103. package/dist/client/assets/{settings-DzBM5dB5.js → settings-JDMz0Z4O.js} +1 -1
  104. package/dist/client/assets/{shell-layout-Du03vu_F.js → shell-layout-Tl_6ulPY.js} +1 -1
  105. package/dist/client/assets/{spinner-ClVwh8PC.js → spinner-DH0n918C.js} +1 -1
  106. package/dist/client/assets/{store-invite-DMm7m90Q.js → store-invite-BCxxdn9a.js} +1 -1
  107. package/dist/client/assets/{switch-CczEwfhr.js → switch-BPW4w7jh.js} +1 -1
  108. package/dist/client/assets/{textarea-DkpJZOQj.js → textarea-Cs9upqtn.js} +1 -1
  109. package/dist/client/assets/{tool-set-selector-BcnjHVtB.js → tool-set-selector-ZwSI3WCu.js} +1 -1
  110. package/dist/client/assets/{tools-list-C2rBUSqb.js → tools-list-D1w1Wvt6.js} +1 -1
  111. package/dist/client/assets/{tooltip-HFuN7GTj.js → tooltip-M_zJvkrH.js} +1 -1
  112. package/dist/client/assets/{typewriter-title-RQ8hypt2.js → typewriter-title-Cloxvukg.js} +1 -1
  113. package/dist/client/assets/{use-binding-EEeU2eYF.js → use-binding-DlyhBSt1.js} +1 -1
  114. package/dist/client/assets/{use-collections-D-6KNpdU.js → use-collections-D2rJigVT.js} +1 -1
  115. package/dist/client/assets/{use-connection-z2hJ-uqu.js → use-connection-Cs8I3Sqh.js} +1 -1
  116. package/dist/client/assets/{use-create-virtual-mcp-0twT7MZg.js → use-create-virtual-mcp-BYgqXltX.js} +1 -1
  117. package/dist/client/assets/{use-list-state-BTo0-e9z.js → use-list-state-Cuf87gC8.js} +1 -1
  118. package/dist/client/assets/{use-mcp-prompts-B8mueLey.js → use-mcp-prompts-BFYoJVx6.js} +1 -1
  119. package/dist/client/assets/{use-members-BEYt2fvB.js → use-members-C6mz3rh9.js} +1 -1
  120. package/dist/client/assets/{use-mobile-DmEMdkp7.js → use-mobile-B6xU0L_K.js} +1 -1
  121. package/dist/client/assets/{use-organization-settings-D0xJfqnQ.js → use-organization-settings-B5ysVx5V.js} +1 -1
  122. package/dist/client/assets/{use-virtual-mcp-BfKCjW0R.js → use-virtual-mcp-D3TmehE_.js} +1 -1
  123. package/dist/client/assets/useInfiniteQuery-C8FPbzAp.js +1 -0
  124. package/dist/client/assets/{useMutation-D2ghwSsm.js → useMutation-DwH4Ggns.js} +1 -1
  125. package/dist/client/assets/useQuery-DttwUpIb.js +1 -0
  126. package/dist/client/assets/{view-mode-toggle-CAFyQEy3.js → view-mode-toggle-CI36GSoa.js} +1 -1
  127. package/dist/client/assets/{workflow-BCWkw-sy.js → workflow-BR3adw-D.js} +1 -1
  128. package/dist/client/index.html +1 -1
  129. package/dist/server/cli.js +163 -163
  130. package/dist/server/migrate.js +149 -149
  131. package/dist/server/server.js +148 -148
  132. package/package.json +1 -1
  133. package/dist/client/assets/agent-detail-z7HVUEos.js +0 -1
  134. package/dist/client/assets/collection-detail-13BCxPKs.js +0 -26
  135. package/dist/client/assets/constants--B4rZxpd.js +0 -1
  136. package/dist/client/assets/index-C1WEmg2h.js +0 -25
  137. package/dist/client/assets/mcp-oauth-BPHDdGDM.js +0 -1
  138. package/dist/client/assets/useInfiniteQuery-Cq-2vEQG.js +0 -1
  139. package/dist/client/assets/useQuery-CiLTpy4Q.js +0 -1
@@ -1 +1 @@
1
- import{aS as K,aW as C,aT as V,a$ as z,a1 as _,Y as W,b0 as X,b1 as Y,r as h,b2 as $,b3 as J,b4 as Z,aX as ee,b5 as k,b6 as P,b7 as se,b8 as te,b9 as re,ah as oe,j as m,ba as ne,al as g,ak as O,bb as ae,am as w,bc as A,ao as ie,at as Q,aA as ue,aB as ce}from"./index-DAh_kZ0g.js";function I(r,s){const t=new Set(s);return r.filter(o=>!t.has(o))}function de(r,s,t){const o=r.slice(0);return o[s]=t,o}var le=class extends K{#r;#e;#o;#n;#s;#t;#a;#i;#u=[];constructor(r,s,t){super(),this.#r=r,this.#n=t,this.#o=[],this.#s=[],this.#e=[],this.setQueries(s)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(r=>{r.subscribe(s=>{this.#h(r,s)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(r=>{r.destroy()})}setQueries(r,s){this.#o=r,this.#n=s,C.batch(()=>{const t=this.#s,o=this.#l(this.#o);this.#u=o,o.forEach(i=>i.observer.setOptions(i.defaultedQueryOptions));const e=o.map(i=>i.observer),n=e.map(i=>i.getCurrentResult()),a=t.length!==e.length,c=e.some((i,d)=>i!==t[d]),l=a||c,b=l?!0:n.some((i,d)=>{const v=this.#e[d];return!v||!V(i,v)});!l&&!b||(l&&(this.#s=e),this.#e=n,this.hasListeners()&&(l&&(I(t,e).forEach(i=>{i.destroy()}),I(e,t).forEach(i=>{i.subscribe(d=>{this.#h(i,d)})})),this.#p()))})}getCurrentResult(){return this.#e}getQueries(){return this.#s.map(r=>r.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(r,s){const t=this.#l(r),o=t.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions));return[o,e=>this.#d(e??o,s),()=>this.#c(o,t)]}#c(r,s){return s.map((t,o)=>{const e=r[o];return t.defaultedQueryOptions.notifyOnChangeProps?e:t.observer.trackResult(e,n=>{s.forEach(a=>{a.observer.trackProp(n)})})})}#d(r,s){return s?((!this.#t||this.#e!==this.#i||s!==this.#a)&&(this.#a=s,this.#i=this.#e,this.#t=z(this.#t,s(r))),this.#t):r}#l(r){const s=new Map;this.#s.forEach(o=>{const e=o.options.queryHash;if(!e)return;const n=s.get(e);n?n.push(o):s.set(e,[o])});const t=[];return r.forEach(o=>{const e=this.#r.defaultQueryOptions(o),a=s.get(e.queryHash)?.shift()??new _(this.#r,e);t.push({defaultedQueryOptions:e,observer:a})}),t}#h(r,s){const t=this.#s.indexOf(r);t!==-1&&(this.#e=de(this.#e,t,s),this.#p())}#p(){if(this.hasListeners()){const r=this.#t,s=this.#c(this.#e,this.#u),t=this.#d(s,this.#n?.combine);r!==t&&C.batch(()=>{this.listeners.forEach(o=>{o(this.#e)})})}}};function Ce({queries:r,...s},t){const o=W(t),e=X(),n=Y(),a=h.useMemo(()=>r.map(u=>{const f=o.defaultQueryOptions(u);return f._optimisticResults=e?"isRestoring":"optimistic",f}),[r,o,e]);a.forEach(u=>{$(u),J(u,n)}),Z(n);const[c]=h.useState(()=>new le(o,a,s)),[l,b,i]=c.getOptimisticResult(a,s.combine),d=!e&&s.subscribed!==!1;h.useSyncExternalStore(h.useCallback(u=>d?c.subscribe(C.batchCalls(u)):ee,[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),h.useEffect(()=>{c.setQueries(a,s)},[a,s,c]);const p=l.some((u,f)=>k(a[f],u))?l.flatMap((u,f)=>{const y=a[f];if(y){const x=new _(o,y);if(k(y,u))return P(y,x,n);se(u,e)&&P(y,x,n)}return[]}):[];if(p.length>0)throw Promise.all(p);const R=l.find((u,f)=>{const y=a[f];return y&&te({result:u,errorResetBoundary:n,throwOnError:y.throwOnError,query:o.getQueryCache().get(y.queryHash),suspense:y.suspense})});if(R?.error)throw R.error;return b(i())}var S="Radio",[he,G]=Q(S),[pe,fe]=he(S),M=h.forwardRef((r,s)=>{const{__scopeRadio:t,name:o,checked:e=!1,required:n,disabled:a,value:c="on",onCheck:l,form:b,...i}=r,[d,v]=h.useState(null),p=O(s,f=>v(f)),R=h.useRef(!1),u=d?b||!!d.closest("form"):!0;return m.jsxs(pe,{scope:t,checked:e,disabled:a,children:[m.jsx(g.button,{type:"button",role:"radio","aria-checked":e,"data-state":D(e),"data-disabled":a?"":void 0,disabled:a,value:c,...i,ref:p,onClick:w(r.onClick,f=>{e||l?.(),u&&(R.current=f.isPropagationStopped(),R.current||f.stopPropagation())})}),u&&m.jsx(q,{control:d,bubbles:!R.current,name:o,value:c,checked:e,required:n,disabled:a,form:b,style:{transform:"translateX(-100%)"}})]})});M.displayName=S;var j="RadioIndicator",N=h.forwardRef((r,s)=>{const{__scopeRadio:t,forceMount:o,...e}=r,n=fe(j,t);return m.jsx(ie,{present:o||n.checked,children:m.jsx(g.span,{"data-state":D(n.checked),"data-disabled":n.disabled?"":void 0,...e,ref:s})})});N.displayName=j;var Re="RadioBubbleInput",q=h.forwardRef(({__scopeRadio:r,control:s,checked:t,bubbles:o=!0,...e},n)=>{const a=h.useRef(null),c=O(a,n),l=ue(t),b=ce(s);return h.useEffect(()=>{const i=a.current;if(!i)return;const d=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==t&&p){const R=new Event("click",{bubbles:o});p.call(i,t),i.dispatchEvent(R)}},[l,t,o]),m.jsx(g.input,{type:"radio","aria-hidden":!0,defaultChecked:t,...e,tabIndex:-1,ref:c,style:{...e.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});q.displayName=Re;function D(r){return r?"checked":"unchecked"}var be=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],E="RadioGroup",[ve]=Q(E,[A,G]),L=A(),B=G(),[me,ye]=ve(E),T=h.forwardRef((r,s)=>{const{__scopeRadioGroup:t,name:o,defaultValue:e,value:n,required:a=!1,disabled:c=!1,orientation:l,dir:b,loop:i=!0,onValueChange:d,...v}=r,p=L(t),R=re(b),[u,f]=oe({prop:n,defaultProp:e??null,onChange:d,caller:E});return m.jsx(me,{scope:t,name:o,required:a,disabled:c,value:u,onValueChange:f,children:m.jsx(ne,{asChild:!0,...p,orientation:l,dir:R,loop:i,children:m.jsx(g.div,{role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":c?"":void 0,dir:R,...v,ref:s})})})});T.displayName=E;var F="RadioGroupItem",U=h.forwardRef((r,s)=>{const{__scopeRadioGroup:t,disabled:o,...e}=r,n=ye(F,t),a=n.disabled||o,c=L(t),l=B(t),b=h.useRef(null),i=O(s,b),d=n.value===e.value,v=h.useRef(!1);return h.useEffect(()=>{const p=u=>{be.includes(u.key)&&(v.current=!0)},R=()=>v.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",R),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",R)}},[]),m.jsx(ae,{asChild:!0,...c,focusable:!a,active:d,children:m.jsx(M,{disabled:a,required:n.required,checked:d,...l,...e,name:n.name,ref:i,onCheck:()=>n.onValueChange(e.value),onKeyDown:w(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:w(e.onFocus,()=>{v.current&&b.current?.click()})})})});U.displayName=F;var ge="RadioGroupIndicator",H=h.forwardRef((r,s)=>{const{__scopeRadioGroup:t,...o}=r,e=B(t);return m.jsx(N,{...e,...o,ref:s})});H.displayName=ge;var we=T,Oe=U,Se=H;export{Oe as I,we as R,Se as a,Ce as u};
1
+ import{aS as K,aW as C,aT as V,a$ as z,a1 as _,Y as W,b0 as X,b1 as Y,r as h,b2 as $,b3 as J,b4 as Z,aX as ee,b5 as k,b6 as P,b7 as se,b8 as te,b9 as re,ah as oe,j as m,ba as ne,al as g,ak as O,bb as ae,am as w,bc as A,ao as ie,at as Q,aA as ue,aB as ce}from"./index-BdwaCz7c.js";function I(r,s){const t=new Set(s);return r.filter(o=>!t.has(o))}function de(r,s,t){const o=r.slice(0);return o[s]=t,o}var le=class extends K{#r;#e;#o;#n;#s;#t;#a;#i;#u=[];constructor(r,s,t){super(),this.#r=r,this.#n=t,this.#o=[],this.#s=[],this.#e=[],this.setQueries(s)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(r=>{r.subscribe(s=>{this.#h(r,s)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(r=>{r.destroy()})}setQueries(r,s){this.#o=r,this.#n=s,C.batch(()=>{const t=this.#s,o=this.#l(this.#o);this.#u=o,o.forEach(i=>i.observer.setOptions(i.defaultedQueryOptions));const e=o.map(i=>i.observer),n=e.map(i=>i.getCurrentResult()),a=t.length!==e.length,c=e.some((i,d)=>i!==t[d]),l=a||c,b=l?!0:n.some((i,d)=>{const v=this.#e[d];return!v||!V(i,v)});!l&&!b||(l&&(this.#s=e),this.#e=n,this.hasListeners()&&(l&&(I(t,e).forEach(i=>{i.destroy()}),I(e,t).forEach(i=>{i.subscribe(d=>{this.#h(i,d)})})),this.#p()))})}getCurrentResult(){return this.#e}getQueries(){return this.#s.map(r=>r.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(r,s){const t=this.#l(r),o=t.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions));return[o,e=>this.#d(e??o,s),()=>this.#c(o,t)]}#c(r,s){return s.map((t,o)=>{const e=r[o];return t.defaultedQueryOptions.notifyOnChangeProps?e:t.observer.trackResult(e,n=>{s.forEach(a=>{a.observer.trackProp(n)})})})}#d(r,s){return s?((!this.#t||this.#e!==this.#i||s!==this.#a)&&(this.#a=s,this.#i=this.#e,this.#t=z(this.#t,s(r))),this.#t):r}#l(r){const s=new Map;this.#s.forEach(o=>{const e=o.options.queryHash;if(!e)return;const n=s.get(e);n?n.push(o):s.set(e,[o])});const t=[];return r.forEach(o=>{const e=this.#r.defaultQueryOptions(o),a=s.get(e.queryHash)?.shift()??new _(this.#r,e);t.push({defaultedQueryOptions:e,observer:a})}),t}#h(r,s){const t=this.#s.indexOf(r);t!==-1&&(this.#e=de(this.#e,t,s),this.#p())}#p(){if(this.hasListeners()){const r=this.#t,s=this.#c(this.#e,this.#u),t=this.#d(s,this.#n?.combine);r!==t&&C.batch(()=>{this.listeners.forEach(o=>{o(this.#e)})})}}};function Ce({queries:r,...s},t){const o=W(t),e=X(),n=Y(),a=h.useMemo(()=>r.map(u=>{const f=o.defaultQueryOptions(u);return f._optimisticResults=e?"isRestoring":"optimistic",f}),[r,o,e]);a.forEach(u=>{$(u),J(u,n)}),Z(n);const[c]=h.useState(()=>new le(o,a,s)),[l,b,i]=c.getOptimisticResult(a,s.combine),d=!e&&s.subscribed!==!1;h.useSyncExternalStore(h.useCallback(u=>d?c.subscribe(C.batchCalls(u)):ee,[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),h.useEffect(()=>{c.setQueries(a,s)},[a,s,c]);const p=l.some((u,f)=>k(a[f],u))?l.flatMap((u,f)=>{const y=a[f];if(y){const x=new _(o,y);if(k(y,u))return P(y,x,n);se(u,e)&&P(y,x,n)}return[]}):[];if(p.length>0)throw Promise.all(p);const R=l.find((u,f)=>{const y=a[f];return y&&te({result:u,errorResetBoundary:n,throwOnError:y.throwOnError,query:o.getQueryCache().get(y.queryHash),suspense:y.suspense})});if(R?.error)throw R.error;return b(i())}var S="Radio",[he,G]=Q(S),[pe,fe]=he(S),M=h.forwardRef((r,s)=>{const{__scopeRadio:t,name:o,checked:e=!1,required:n,disabled:a,value:c="on",onCheck:l,form:b,...i}=r,[d,v]=h.useState(null),p=O(s,f=>v(f)),R=h.useRef(!1),u=d?b||!!d.closest("form"):!0;return m.jsxs(pe,{scope:t,checked:e,disabled:a,children:[m.jsx(g.button,{type:"button",role:"radio","aria-checked":e,"data-state":D(e),"data-disabled":a?"":void 0,disabled:a,value:c,...i,ref:p,onClick:w(r.onClick,f=>{e||l?.(),u&&(R.current=f.isPropagationStopped(),R.current||f.stopPropagation())})}),u&&m.jsx(q,{control:d,bubbles:!R.current,name:o,value:c,checked:e,required:n,disabled:a,form:b,style:{transform:"translateX(-100%)"}})]})});M.displayName=S;var j="RadioIndicator",N=h.forwardRef((r,s)=>{const{__scopeRadio:t,forceMount:o,...e}=r,n=fe(j,t);return m.jsx(ie,{present:o||n.checked,children:m.jsx(g.span,{"data-state":D(n.checked),"data-disabled":n.disabled?"":void 0,...e,ref:s})})});N.displayName=j;var Re="RadioBubbleInput",q=h.forwardRef(({__scopeRadio:r,control:s,checked:t,bubbles:o=!0,...e},n)=>{const a=h.useRef(null),c=O(a,n),l=ue(t),b=ce(s);return h.useEffect(()=>{const i=a.current;if(!i)return;const d=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==t&&p){const R=new Event("click",{bubbles:o});p.call(i,t),i.dispatchEvent(R)}},[l,t,o]),m.jsx(g.input,{type:"radio","aria-hidden":!0,defaultChecked:t,...e,tabIndex:-1,ref:c,style:{...e.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});q.displayName=Re;function D(r){return r?"checked":"unchecked"}var be=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],E="RadioGroup",[ve]=Q(E,[A,G]),L=A(),B=G(),[me,ye]=ve(E),T=h.forwardRef((r,s)=>{const{__scopeRadioGroup:t,name:o,defaultValue:e,value:n,required:a=!1,disabled:c=!1,orientation:l,dir:b,loop:i=!0,onValueChange:d,...v}=r,p=L(t),R=re(b),[u,f]=oe({prop:n,defaultProp:e??null,onChange:d,caller:E});return m.jsx(me,{scope:t,name:o,required:a,disabled:c,value:u,onValueChange:f,children:m.jsx(ne,{asChild:!0,...p,orientation:l,dir:R,loop:i,children:m.jsx(g.div,{role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":c?"":void 0,dir:R,...v,ref:s})})})});T.displayName=E;var F="RadioGroupItem",U=h.forwardRef((r,s)=>{const{__scopeRadioGroup:t,disabled:o,...e}=r,n=ye(F,t),a=n.disabled||o,c=L(t),l=B(t),b=h.useRef(null),i=O(s,b),d=n.value===e.value,v=h.useRef(!1);return h.useEffect(()=>{const p=u=>{be.includes(u.key)&&(v.current=!0)},R=()=>v.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",R),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",R)}},[]),m.jsx(ae,{asChild:!0,...c,focusable:!a,active:d,children:m.jsx(M,{disabled:a,required:n.required,checked:d,...l,...e,name:n.name,ref:i,onCheck:()=>n.onValueChange(e.value),onKeyDown:w(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:w(e.onFocus,()=>{v.current&&b.current?.click()})})})});U.displayName=F;var ge="RadioGroupIndicator",H=h.forwardRef((r,s)=>{const{__scopeRadioGroup:t,...o}=r,e=B(t);return m.jsx(N,{...e,...o,ref:s})});H.displayName=ge;var we=T,Oe=U,Se=H;export{Oe as I,we as R,Se as a,Ce as u};