@decocms/mesh 2.51.2 → 2.51.4

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 (137) hide show
  1. package/dist/client/assets/{AlertCircle-CGP1h14a.js → AlertCircle-BV-9KV54.js} +1 -1
  2. package/dist/client/assets/{ArrowLeft-CpmrevUA.js → ArrowLeft-DOleepq-.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-CAhT4Vag.js → ArrowUp-CTHR9b9g.js} +1 -1
  4. package/dist/client/assets/{Check-DHrYQOla.js → Check-B_ssGKef.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-BXfKwQXg.js → ChevronDown-D50oUZGv.js} +1 -1
  6. package/dist/client/assets/{Code01-BxSE-cTG.js → Code01-D-02qpMQ.js} +1 -1
  7. package/dist/client/assets/{Copy01-BqHNV9KS.js → Copy01-CKz7ZcT_.js} +1 -1
  8. package/dist/client/assets/{CpuChip02-CJBnmNd-.js → CpuChip02-1S35XCw9.js} +1 -1
  9. package/dist/client/assets/{DotsHorizontal-BJ0nWw_n.js → DotsHorizontal-Bz-Aodex.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-C8_Vocxa.js → DotsVertical-DDPAhmiG.js} +1 -1
  11. package/dist/client/assets/{Download01-DwaP_Z8x.js → Download01-BCqljTfM.js} +1 -1
  12. package/dist/client/assets/{Edit01-0Q09UeyH.js → Edit01-CtmglTd-.js} +1 -1
  13. package/dist/client/assets/{File06-gnwTn_85.js → File06-Byaqp0m7.js} +1 -1
  14. package/dist/client/assets/{FilterLines-B4KQCNKf.js → FilterLines-01VwRFD1.js} +1 -1
  15. package/dist/client/assets/{FlipBackward-BBtJOj6N.js → FlipBackward-CbJCZ2ap.js} +1 -1
  16. package/dist/client/assets/{Grid01-beE2TRSL.js → Grid01-D03UG1C2.js} +1 -1
  17. package/dist/client/assets/{Home02-04BLyxHW.js → Home02-DUJ8vmhz.js} +1 -1
  18. package/dist/client/assets/{Image01-CqBEJ9c0.js → Image01-BxhtArxl.js} +1 -1
  19. package/dist/client/assets/{Inbox01-9sfzjxUE.js → Inbox01-C8eSK0Or.js} +1 -1
  20. package/dist/client/assets/{InfoCircle--Gk6Y4tA.js → InfoCircle-zv4pB6Z2.js} +1 -1
  21. package/dist/client/assets/{Key01-CIomR331.js → Key01-DTD2tv0i.js} +1 -1
  22. package/dist/client/assets/{LinkExternal01-DxcJxnJW.js → LinkExternal01-CFBNM492.js} +1 -1
  23. package/dist/client/assets/{List-D4q8ermq.js → List-fQCNczK3.js} +1 -1
  24. package/dist/client/assets/{Loading01-QioKqjl6.js → Loading01-BlvTBCEj.js} +1 -1
  25. package/dist/client/assets/{Lock01-DW4hlBxJ.js → Lock01-BHYhK1sW.js} +1 -1
  26. package/dist/client/assets/{Pin01-DfrbwmHM.js → Pin01-BRoo4TIE.js} +1 -1
  27. package/dist/client/assets/{Play-Xat2ooOZ.js → Play-Cp4KV1ET.js} +1 -1
  28. package/dist/client/assets/{Plus-ssdLWeI8.js → Plus-DC2VdaI3.js} +1 -1
  29. package/dist/client/assets/{SearchMd-B-MDYOIq.js → SearchMd-CX8E1sol.js} +1 -1
  30. package/dist/client/assets/{Share07-DWfKI3X_.js → Share07-CeyaJ_UG.js} +1 -1
  31. package/dist/client/assets/{Terminal-B7hQNB-9.js → Terminal-BJaxY_i8.js} +1 -1
  32. package/dist/client/assets/{Trash01-GpfPnmmV.js → Trash01-N-KnxBAR.js} +1 -1
  33. package/dist/client/assets/{Upload01-CVe6JP-f.js → Upload01-Bl5_eWqH.js} +1 -1
  34. package/dist/client/assets/{X-D3gEEcBd.js → X-IPns0kiv.js} +1 -1
  35. package/dist/client/assets/{XClose-7-Njencf.js → XClose-_xD_4E96.js} +1 -1
  36. package/dist/client/assets/{agent-detail-iBGUc35B.js → agent-detail-CFHXx5RC.js} +1 -1
  37. package/dist/client/assets/{agents-B8mn5GvC.js → agents-bFzMocMo.js} +1 -1
  38. package/dist/client/assets/{alert-dialog-BYX3XU0x.js → alert-dialog-C-a6ZWhm.js} +1 -1
  39. package/dist/client/assets/{auth-catchall-QtOrkI51.js → auth-catchall-DcgvudJF.js} +1 -1
  40. package/dist/client/assets/{avatar-COVN-fYN.js → avatar-Dyk-b-n3.js} +1 -1
  41. package/dist/client/assets/{badge-ZWFo0qGa.js → badge-JKyboKZ4.js} +1 -1
  42. package/dist/client/assets/{binder-D5Yo0FIA.js → binder-BsKWt4HA.js} +1 -1
  43. package/dist/client/assets/{button-BwMxf9J6.js → button-kOXo0A85.js} +1 -1
  44. package/dist/client/assets/card-BFflu5-1.js +1 -0
  45. package/dist/client/assets/{checkbox-f9zBlxEv.js → checkbox-BNkcLUjt.js} +1 -1
  46. package/dist/client/assets/circle-alert-BJmqXS3V.js +1 -0
  47. package/dist/client/assets/{collection-detail-DWeFfX0m.js → collection-detail-Bn6tisnd.js} +4 -4
  48. package/dist/client/assets/{collection-display-button-Dk_7tCGN.js → collection-display-button-DI-ebzDR.js} +1 -1
  49. package/dist/client/assets/{collection-header-BGRNcmIr.js → collection-header-BwRlr8D_.js} +1 -1
  50. package/dist/client/assets/{collection-page-CmUp8rbg.js → collection-page-varm6OFV.js} +1 -1
  51. package/dist/client/assets/{collection-search-Cw31ncc8.js → collection-search-CvGB-e6t.js} +1 -1
  52. package/dist/client/assets/{collection-tab-CGwCxBxs.js → collection-tab-D8IdcZ7E.js} +1 -1
  53. package/dist/client/assets/{collection-table-wrapper-05Dq-PmH.js → collection-table-wrapper-CxBbzamF.js} +1 -1
  54. package/dist/client/assets/connect-BTKTr797.js +1 -0
  55. package/dist/client/assets/{connection-card-2D8DJHyQ.js → connection-card-DFWlym7J.js} +1 -1
  56. package/dist/client/assets/connection-detail-kcBx0vbd.js +1 -0
  57. package/dist/client/assets/{connections-DAUSeaEc.js → connections-DQNfv12M.js} +1 -1
  58. package/dist/client/assets/constants-36ynutkd.js +1 -0
  59. package/dist/client/assets/{constants-DaEAuvNm.js → constants-vNx5qYr4.js} +1 -1
  60. package/dist/client/assets/{create-organization-dialog-Cc_XYqH6.js → create-organization-dialog-CCqnHWS1.js} +1 -1
  61. package/dist/client/assets/{dialog-6JHIWxB1.js → dialog-BFtfsOxE.js} +1 -1
  62. package/dist/client/assets/{dropdown-menu-ClVp7BVI.js → dropdown-menu-C1zXKmLZ.js} +1 -1
  63. package/dist/client/assets/{dynamic-plugin-layout-DnQCFevi.js → dynamic-plugin-layout-BlEDiG0F.js} +1 -1
  64. package/dist/client/assets/{empty-state-BqZB7ri3.js → empty-state-CkkBSu0h.js} +1 -1
  65. package/dist/client/assets/{empty-state-D4usWvmz.js → empty-state-UbxmZkNp.js} +1 -1
  66. package/dist/client/assets/{env-vars-editor-D5NAu_mP.js → env-vars-editor-DzlFBbyF.js} +1 -1
  67. package/dist/client/assets/{error-boundary-sXeRiEr7.js → error-boundary-COBTKWN-.js} +1 -1
  68. package/dist/client/assets/{extract-connection-data-CcfCh6f7.js → extract-connection-data-aeTi4WXS.js} +1 -1
  69. package/dist/client/assets/{file-browser-HHJSYs-c.js → file-browser-FoQEzkcC.js} +2 -2
  70. package/dist/client/assets/{form-D7SCGNVK.js → form-D5K-mHEp.js} +1 -1
  71. package/dist/client/assets/{grid-view-CuW3QwuQ.js → grid-view-2nNfHEva.js} +1 -1
  72. package/dist/client/assets/{home-BardKBVC.js → home-CySoI98D.js} +1 -1
  73. package/dist/client/assets/{index-DHE3rugI.js → index-BeY7naEd.js} +1 -1
  74. package/dist/client/assets/{index-DOcZKr-9.js → index-BqWAgAnn.js} +2 -2
  75. package/dist/client/assets/{index-CZvP6SmL.js → index-DL2qO0-_.js} +11 -11
  76. package/dist/client/assets/{index-Bi2JhEJc.js → index-DsokbHgu.js} +1 -1
  77. package/dist/client/assets/index-KQ8CyL-e.js +25 -0
  78. package/dist/client/assets/{index-DgXF3qY1.js → index-XZ6br7wV.js} +1 -1
  79. package/dist/client/assets/{infiniteQueryObserver-WblNte-F.js → infiniteQueryObserver-O4XCsEcu.js} +1 -1
  80. package/dist/client/assets/{input-DMB0iMp-.js → input-BWLuHFym.js} +1 -1
  81. package/dist/client/assets/{layout-COIF9hBU.js → layout-DGDO8JsV.js} +1 -1
  82. package/dist/client/assets/{localstorage-keys-C9yqmCkX.js → localstorage-keys-B61c8Nm3.js} +1 -1
  83. package/dist/client/assets/{login-CMj3RuL-.js → login-CD32rXCr.js} +1 -1
  84. package/dist/client/assets/{mcp-oauth-Dj_c8299.js → mcp-oauth-CamgiVLA.js} +1 -1
  85. package/dist/client/assets/{mcp-server-card-C8wN3V2s.js → mcp-server-card-BCvzsEUo.js} +1 -1
  86. package/dist/client/assets/{mcp-server-detail-BYb9bzDh.js → mcp-server-detail-ChBASU1s.js} +2 -2
  87. package/dist/client/assets/{members-hmSHO8JG.js → members-DvUop9zd.js} +1 -1
  88. package/dist/client/assets/{monaco-editor-B4tACOzt.js → monaco-editor-DAw6ySE6.js} +3 -3
  89. package/dist/client/assets/{monitoring-Bo0kqe6D.js → monitoring-CqjU2AnT.js} +1 -1
  90. package/dist/client/assets/{oauth-callback-CHD2Xjfu.js → oauth-callback-DBbQfGHv.js} +1 -1
  91. package/dist/client/assets/{page-BRV-YC6d.js → page-42VrlsaR.js} +1 -1
  92. package/dist/client/assets/{page-C9aoP-fQ.js → page-C9YeHuNE.js} +1 -1
  93. package/dist/client/assets/{pin-to-sidebar-button-oW7kV1a5.js → pin-to-sidebar-button-Dod7ED9w.js} +1 -1
  94. package/dist/client/assets/{plugin-empty-state-B1ecZl1M.js → plugin-empty-state-CRJS-_Mn.js} +1 -1
  95. package/dist/client/assets/{plugin-header-DSx39XZl.js → plugin-header-BSfBq9u4.js} +1 -1
  96. package/dist/client/assets/{plugins-DUGm422i.js → plugins-DqYBdRNa.js} +1 -1
  97. package/dist/client/assets/{popover-kBoMNvtb.js → popover-CjpIDlBK.js} +1 -1
  98. package/dist/client/assets/{registry-utils-Cay66DXx.js → registry-utils-CbJdFKO5.js} +1 -1
  99. package/dist/client/assets/{resizable-Cbv7HFwi.js → resizable-BTuE7JTx.js} +1 -1
  100. package/dist/client/assets/{resource-tabs-Bd5BfKkE.js → resource-tabs-BFmXbLJU.js} +1 -1
  101. package/dist/client/assets/{select-D9FKewR6.js → select-MknfzZ97.js} +1 -1
  102. package/dist/client/assets/{settings-DWV7so73.js → settings-SaznwSMb.js} +1 -1
  103. package/dist/client/assets/{shell-layout-BPJmUU9T.js → shell-layout-D4LShiOG.js} +2 -2
  104. package/dist/client/assets/{spinner-B63zH740.js → spinner-1I7nn8Wp.js} +1 -1
  105. package/dist/client/assets/{switch-QVCUfP0T.js → switch-Chm9w9JU.js} +1 -1
  106. package/dist/client/assets/{textarea-oI39PZ4j.js → textarea-RbtecX7Y.js} +1 -1
  107. package/dist/client/assets/{tool-set-selector-CrxDaSzt.js → tool-set-selector-CkN0nqAn.js} +1 -1
  108. package/dist/client/assets/{tools-list-czdszUUV.js → tools-list-72srl-RI.js} +1 -1
  109. package/dist/client/assets/{tooltip-BeaFHZHO.js → tooltip-C1NZOK0f.js} +1 -1
  110. package/dist/client/assets/{typewriter-title-CwzGiUE8.js → typewriter-title-6ZW5-JJ8.js} +1 -1
  111. package/dist/client/assets/{use-binding-CYKCgkMl.js → use-binding-zAiYN8O2.js} +1 -1
  112. package/dist/client/assets/{use-collections-BGuD4Asz.js → use-collections-VBKxjUv0.js} +1 -1
  113. package/dist/client/assets/{use-connection-CzhWY9E1.js → use-connection-2Fr9IAjt.js} +1 -1
  114. package/dist/client/assets/{use-create-virtual-mcp-U2JDJLU0.js → use-create-virtual-mcp-YsqZHc18.js} +1 -1
  115. package/dist/client/assets/{use-list-state-BDr3eR2Q.js → use-list-state-D3jnRVjn.js} +1 -1
  116. package/dist/client/assets/{use-mcp-prompts-Cr9ZbnL8.js → use-mcp-prompts-B1VV42SE.js} +1 -1
  117. package/dist/client/assets/{use-members-C4nx4yGs.js → use-members-CwzNzeHv.js} +1 -1
  118. package/dist/client/assets/{use-mobile-BcokTJ-3.js → use-mobile-CGRAcCRy.js} +1 -1
  119. package/dist/client/assets/{use-organization-settings-DDgAtCf6.js → use-organization-settings-BLzmckM5.js} +1 -1
  120. package/dist/client/assets/{use-virtual-mcp-CeNgek3n.js → use-virtual-mcp-bFwjwdoF.js} +1 -1
  121. package/dist/client/assets/useInfiniteQuery-B460HLvV.js +1 -0
  122. package/dist/client/assets/{useMutation-BxCryVcg.js → useMutation-DovD4v9N.js} +1 -1
  123. package/dist/client/assets/useQuery-DlNiDu4m.js +1 -0
  124. package/dist/client/assets/{view-mode-toggle-CJjzapvU.js → view-mode-toggle-DvUJ6WYM.js} +1 -1
  125. package/dist/client/assets/{workflow-B4Z5pkBE.js → workflow-DgXQxSf2.js} +1 -1
  126. package/dist/client/index.html +1 -1
  127. package/dist/server/cli.js +242 -241
  128. package/dist/server/migrate.js +223 -221
  129. package/dist/server/server.js +227 -226
  130. package/package.json +8 -2
  131. package/dist/client/assets/card-C8fw2vIu.js +0 -1
  132. package/dist/client/assets/connect-0wOgtuwA.js +0 -1
  133. package/dist/client/assets/connection-detail-7LQsO9wN.js +0 -1
  134. package/dist/client/assets/constants-DIeNizBe.js +0 -1
  135. package/dist/client/assets/index-v5n9Yu7p.js +0 -25
  136. package/dist/client/assets/useInfiniteQuery-DQhhwYgp.js +0 -1
  137. package/dist/client/assets/useQuery-BfZvKTGb.js +0 -1
@@ -1 +1 @@
1
- import{aP as K,aT as C,aQ as V,aY as z,X as _,N as W,aZ as X,a_ as Y,r as h,a$ as Z,b0 as $,b1 as J,aU as ee,b2 as k,b3 as P,b4 as se,b5 as te,b6 as re,ae as oe,j as m,b7 as ne,ai as g,ah as O,b8 as ae,aj as w,b9 as A,al as ie,aq as Q,ax as ue,ay as ce}from"./index-CZvP6SmL.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,v=l?!0:n.some((i,d)=>{const b=this.#e[d];return!b||!V(i,b)});!l&&!v||(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=>{Z(u),$(u,n)}),J(n);const[c]=h.useState(()=>new le(o,a,s)),[l,v,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 v(i())}var S="Radio",[he,j]=Q(S),[pe,fe]=he(S),G=h.forwardRef((r,s)=>{const{__scopeRadio:t,name:o,checked:e=!1,required:n,disabled:a,value:c="on",onCheck:l,form:v,...i}=r,[d,b]=h.useState(null),p=O(s,f=>b(f)),R=h.useRef(!1),u=d?v||!!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:v,style:{transform:"translateX(-100%)"}})]})});G.displayName=S;var M="RadioIndicator",N=h.forwardRef((r,s)=>{const{__scopeRadio:t,forceMount:o,...e}=r,n=fe(M,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=M;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),v=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,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});q.displayName=Re;function D(r){return r?"checked":"unchecked"}var ve=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],E="RadioGroup",[be]=Q(E,[A,j]),L=A(),B=j(),[me,ye]=be(E),T=h.forwardRef((r,s)=>{const{__scopeRadioGroup:t,name:o,defaultValue:e,value:n,required:a=!1,disabled:c=!1,orientation:l,dir:v,loop:i=!0,onValueChange:d,...b}=r,p=L(t),R=re(v),[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,...b,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),v=h.useRef(null),i=O(s,v),d=n.value===e.value,b=h.useRef(!1);return h.useEffect(()=>{const p=u=>{ve.includes(u.key)&&(b.current=!0)},R=()=>b.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(G,{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,()=>{b.current&&v.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{aP as K,aT as C,aQ as V,aY as z,X as _,N as W,aZ as X,a_ as Y,r as h,a$ as Z,b0 as $,b1 as J,aU as ee,b2 as k,b3 as P,b4 as se,b5 as te,b6 as re,ae as oe,j as m,b7 as ne,ai as g,ah as O,b8 as ae,aj as w,b9 as A,al as ie,aq as Q,ax as ue,ay as ce}from"./index-DL2qO0-_.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,v=l?!0:n.some((i,d)=>{const b=this.#e[d];return!b||!V(i,b)});!l&&!v||(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=>{Z(u),$(u,n)}),J(n);const[c]=h.useState(()=>new le(o,a,s)),[l,v,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 v(i())}var S="Radio",[he,j]=Q(S),[pe,fe]=he(S),G=h.forwardRef((r,s)=>{const{__scopeRadio:t,name:o,checked:e=!1,required:n,disabled:a,value:c="on",onCheck:l,form:v,...i}=r,[d,b]=h.useState(null),p=O(s,f=>b(f)),R=h.useRef(!1),u=d?v||!!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:v,style:{transform:"translateX(-100%)"}})]})});G.displayName=S;var M="RadioIndicator",N=h.forwardRef((r,s)=>{const{__scopeRadio:t,forceMount:o,...e}=r,n=fe(M,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=M;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),v=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,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});q.displayName=Re;function D(r){return r?"checked":"unchecked"}var ve=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],E="RadioGroup",[be]=Q(E,[A,j]),L=A(),B=j(),[me,ye]=be(E),T=h.forwardRef((r,s)=>{const{__scopeRadioGroup:t,name:o,defaultValue:e,value:n,required:a=!1,disabled:c=!1,orientation:l,dir:v,loop:i=!0,onValueChange:d,...b}=r,p=L(t),R=re(v),[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,...b,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),v=h.useRef(null),i=O(s,v),d=n.value===e.value,b=h.useRef(!1);return h.useEffect(()=>{const p=u=>{ve.includes(u.key)&&(b.current=!0)},R=()=>b.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(G,{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,()=>{b.current&&v.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};