decocms 2.297.4 → 2.298.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 (276) hide show
  1. package/dist/client/assets/{AlertCircle-CSF_13Dr.js → AlertCircle-1FKO-iwn.js} +1 -1
  2. package/dist/client/assets/{ArrowNarrowLeft-CqQ_AXD-.js → ArrowNarrowLeft-CKZqPsRI.js} +1 -1
  3. package/dist/client/assets/{ArrowUpRight-DdiqR9qA.js → ArrowUpRight-7lMYxGWa.js} +1 -1
  4. package/dist/client/assets/{CheckCircle-DWKK8gJh.js → CheckCircle-Dk81QM9U.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-ypjg4ILM.js → ChevronDown-CHOTJx8l.js} +1 -1
  6. package/dist/client/assets/{ChevronRight-BcI9jZHJ.js → ChevronRight-Dk8qeq6P.js} +1 -1
  7. package/dist/client/assets/{ChevronUp-Dlg42F4S.js → ChevronUp-CTvlJvJZ.js} +1 -1
  8. package/dist/client/assets/{Container-XDYnee_K.js → Container-C3IYo0L9.js} +1 -1
  9. package/dist/client/assets/{DotsVertical-BZ-ro4V4.js → DotsVertical-D4yfeGnN.js} +1 -1
  10. package/dist/client/assets/{LinkExternal01-CVvqJLEj.js → LinkExternal01-x1hnv38P.js} +1 -1
  11. package/dist/client/assets/{Lock01-C5Zr-Ww6.js → Lock01-lZHBNo2C.js} +1 -1
  12. package/dist/client/assets/{Palette-BnVEDgSZ.js → Palette-C9akcBSz.js} +1 -1
  13. package/dist/client/assets/{Play-B-Fd5QKh.js → Play-CdX48V1T.js} +1 -1
  14. package/dist/client/assets/{Plus-BLB9eSSy.js → Plus-DYdqKX5R.js} +1 -1
  15. package/dist/client/assets/{RefreshCcw01-CrxRNYKo.js → RefreshCcw01-HnODDFoT.js} +1 -1
  16. package/dist/client/assets/{SearchMd-BSld7GOF.js → SearchMd-GZRswmV_.js} +1 -1
  17. package/dist/client/assets/{Settings02-CuyH465d.js → Settings02-Dzch4bsp.js} +1 -1
  18. package/dist/client/assets/{Shield01-Bo1gZXJl.js → Shield01-bIZj53hE.js} +1 -1
  19. package/dist/client/assets/{Star01-Dhk1EO9q.js → Star01-DUqgRTj4.js} +1 -1
  20. package/dist/client/assets/{Sun-C8NOGZvD.js → Sun-g7onD0QQ.js} +1 -1
  21. package/dist/client/assets/{Tool01-rxvuOVHx.js → Tool01-Bbs6ipxi.js} +1 -1
  22. package/dist/client/assets/{Trash01-C9fepIhN.js → Trash01-D1T4c6gl.js} +1 -1
  23. package/dist/client/assets/{User01-DZdlYgsF.js → User01-Fk9cKl4i.js} +1 -1
  24. package/dist/client/assets/{Users03-BLPQrcHj.js → Users03-CVNVU6ve.js} +1 -1
  25. package/dist/client/assets/{X-BFGruHRk.js → X-BwEMSUjV.js} +1 -1
  26. package/dist/client/assets/{XCircle-CgmzRFdE.js → XCircle-C0fkjQDC.js} +1 -1
  27. package/dist/client/assets/{XClose-D9JXRvIj.js → XClose-DxHt9zuu.js} +1 -1
  28. package/dist/client/assets/{Zap-Do9G2J5r.js → Zap-BPFq3hVj.js} +1 -1
  29. package/dist/client/assets/{ZapSquare-UyAaRiNn.js → ZapSquare-DGM2fPse.js} +1 -1
  30. package/dist/client/assets/{accordion-cmDkbfBH.js → accordion-Bdek-M8z.js} +1 -1
  31. package/dist/client/assets/{agent-icon-CN5xNSiu.js → agent-icon-DmsooVXW.js} +1 -1
  32. package/dist/client/assets/{agents-list-Bx-2M0dx.js → agents-list-Dj4emYPF.js} +1 -1
  33. package/dist/client/assets/ai-providers-CYFZTFTL.js +1 -0
  34. package/dist/client/assets/{alert-dialog-3Q-TOJHi.js → alert-dialog-CWQoS6wX.js} +1 -1
  35. package/dist/client/assets/{auth-catchall-Bu5jQhAC.js → auth-catchall-CD4rfnTW.js} +1 -1
  36. package/dist/client/assets/{automation-list-row-BVM9yKN5.js → automation-list-row-CLJ3ftyb.js} +1 -1
  37. package/dist/client/assets/{automations-BANsoXxo.js → automations-DcwcFfNp.js} +1 -1
  38. package/dist/client/assets/{avatar-BSKYNdqa.js → avatar-Bu1NzTYg.js} +1 -1
  39. package/dist/client/assets/{badge-BpwMPBRe.js → badge-Ch9BdqT9.js} +1 -1
  40. package/dist/client/assets/{brand-context-CvUPXtOc.js → brand-context-Cdhkr07K.js} +1 -1
  41. package/dist/client/assets/{card-dhYHIFM6.js → card-RSPkY0To.js} +1 -1
  42. package/dist/client/assets/{chat-context-Bv_oa_7h.js → chat-context-DF9UFjVM.js} +1 -1
  43. package/dist/client/assets/{checkbox-B2QOZhNa.js → checkbox-B1Ttfs-h.js} +1 -1
  44. package/dist/client/assets/{collection-detail-BvlusF4T.js → collection-detail-D-3DNG_M.js} +1 -1
  45. package/dist/client/assets/{collection-display-button-ug6rGxEz.js → collection-display-button-D0RK6oeA.js} +1 -1
  46. package/dist/client/assets/{collection-search-BqI5DHBE.js → collection-search-BkYFe6i5.js} +1 -1
  47. package/dist/client/assets/{collection-search-DEMxfDoK.js → collection-search-gyDd3-OR.js} +1 -1
  48. package/dist/client/assets/{collection-table-wrapper-B1peJR0E.js → collection-table-wrapper-BCfFkyA6.js} +1 -1
  49. package/dist/client/assets/{collection-tabs-DBb9ohEX.js → collection-tabs-BywVHkM5.js} +1 -1
  50. package/dist/client/assets/{collections-CHU5RniR.js → collections-B1Vl-dRY.js} +1 -1
  51. package/dist/client/assets/{command-Dm2ByCMz.js → command-CVf7W7do.js} +1 -1
  52. package/dist/client/assets/{connection-card-DBFSL2df.js → connection-card-B_uXifPW.js} +1 -1
  53. package/dist/client/assets/{connection-detail-CIGqgms4.js → connection-detail-Cmgz9yRr.js} +1 -1
  54. package/dist/client/assets/{connection-form-helpers-Sfc0HCZO.js → connection-form-helpers-DELjRDJg.js} +1 -1
  55. package/dist/client/assets/{connections-CUFtJd2B.js → connections-ncYXmxGJ.js} +1 -1
  56. package/dist/client/assets/{constants-Bcmyvnig.js → constants-D7xAST0Q.js} +1 -1
  57. package/dist/client/assets/{constants-DQUM-QTb.js → constants-DivL5teI.js} +1 -1
  58. package/dist/client/assets/{dialog-Ce-S_qMM.js → dialog-C_vmNTRu.js} +1 -1
  59. package/dist/client/assets/{domain-settings-DMTP32Li.js → domain-settings-DXgm_woB.js} +1 -1
  60. package/dist/client/assets/{drawer-DgQ8wUw5.js → drawer-C4a3mc5d.js} +1 -1
  61. package/dist/client/assets/{dropdown-menu-Bltklbi1.js → dropdown-menu-B8_YZGoo.js} +1 -1
  62. package/dist/client/assets/{dynamic-plugin-layout-DofOvgRG.js → dynamic-plugin-layout-Dlh_QnjI.js} +1 -1
  63. package/dist/client/assets/{empty-state-B9-_6_Xj.js → empty-state-DJGg06AT.js} +1 -1
  64. package/dist/client/assets/{empty-state-Dp3JawHN.js → empty-state-DOC09WYz.js} +1 -1
  65. package/dist/client/assets/{extract-connection-data-D8qeaoes.js → extract-connection-data-OOISwrlz.js} +1 -1
  66. package/dist/client/assets/{features-Dj1Ja9zf.js → features-DTyLbScZ.js} +1 -1
  67. package/dist/client/assets/{form-B8FvADu3.js → form-DsyDTBzC.js} +1 -1
  68. package/dist/client/assets/{general-BiVCLvSZ.js → general-7ljwSAxI.js} +1 -1
  69. package/dist/client/assets/{index-DmL34bOB.js → index-70mmoBkB.js} +1 -1
  70. package/dist/client/assets/index-8xDSjspo.js +1 -0
  71. package/dist/client/assets/{index-BCTCfFmx.js → index-B01cqxRa.js} +1 -1
  72. package/dist/client/assets/{index-39kMCf4L.js → index-BEZPSJ65.js} +1 -1
  73. package/dist/client/assets/{index-BgDYzVqv.js → index-BHV6aSRG.js} +1 -1
  74. package/dist/client/assets/{index-CqQUHzq_.js → index-BirIwGZm.js} +1 -1
  75. package/dist/client/assets/{index-Op7eZZdi.js → index-Cfe1XtAV.js} +1 -1
  76. package/dist/client/assets/{index-BMDRqzuB.js → index-D1OGx8P1.js} +2 -2
  77. package/dist/client/assets/{index-B8fZc4My.js → index-DBkKSx96.js} +1 -1
  78. package/dist/client/assets/{index-B1bM0KaJ.js → index-DHuevMFp.js} +1 -1
  79. package/dist/client/assets/{index-BStd3_z4.js → index-DSAQMn6i.js} +1 -1
  80. package/dist/client/assets/{index-j4nSYT2i.js → index-Di0Mb6sO.js} +1 -1
  81. package/dist/client/assets/{index-DjnPWua9.js → index-HZ0ltqWr.js} +1 -1
  82. package/dist/client/assets/{index-BuV1uoum.js → index-LWzmvmvR.js} +1 -1
  83. package/dist/client/assets/{index-DBWzxGIY.js → index-m0seQOic.js} +4 -4
  84. package/dist/client/assets/{index-DhjNZ1rq.js → index-oPPnPtai.js} +1 -1
  85. package/dist/client/assets/{infiniteQueryObserver-CbglmKcR.js → infiniteQueryObserver-Bl2c59an.js} +1 -1
  86. package/dist/client/assets/{input-2L64g1T_.js → input-BzH1Fp78.js} +1 -1
  87. package/dist/client/assets/{integration-icon-PO3TvmaC.js → integration-icon-D_AOqXFj.js} +1 -1
  88. package/dist/client/assets/{label-DWNCCuhf.js → label-CB_XE-e4.js} +1 -1
  89. package/dist/client/assets/{layout-Bcl31qY2.js → layout-CY21UTYW.js} +1 -1
  90. package/dist/client/assets/{lean-canvas-recruit-modal-D1vXDFS8.js → lean-canvas-recruit-modal-BPVxQzta.js} +1 -1
  91. package/dist/client/assets/{login-DIALDSm5.js → login-Bxl4_mYU.js} +1 -1
  92. package/dist/client/assets/{members-CMmMYv-N.js → members-zvpqbNiS.js} +1 -1
  93. package/dist/client/assets/{monaco-editor-Cpm29QPS.js → monaco-editor-DuX4NcOq.js} +1 -1
  94. package/dist/client/assets/{monitoring-stats-row-CseTCiYb.js → monitoring-stats-row-D51EcZe3.js} +1 -1
  95. package/dist/client/assets/{oauth-callback-ai-provider-CHFUhPdk.js → oauth-callback-ai-provider-DfBUG-m3.js} +1 -1
  96. package/dist/client/assets/{oauth-callback-CwJiDNtE.js → oauth-callback-mZUzyh0o.js} +1 -1
  97. package/dist/client/assets/{onboarding-BBIuU5UD.js → onboarding-C5IoSpHh.js} +1 -1
  98. package/dist/client/assets/{org-layout-Bk4Xg7Fr.js → org-layout-CyD6hmWc.js} +1 -1
  99. package/dist/client/assets/{org-plugin-layout-3GybENC2.js → org-plugin-layout-BUW4YpUf.js} +1 -1
  100. package/dist/client/assets/{pair-D1g0yCtI.js → pair-BhjBynHM.js} +1 -1
  101. package/dist/client/assets/{plugin-empty-state-Br_hxiHj.js → plugin-empty-state-dVIN074A.js} +1 -1
  102. package/dist/client/assets/{plugin-header-QuC-CYa0.js → plugin-header-DbdW6vY7.js} +1 -1
  103. package/dist/client/assets/{plugin-layout-CzBticqJ.js → plugin-layout-c0ZCIK90.js} +1 -1
  104. package/dist/client/assets/{popover-DlyfpBTw.js → popover-Ci7fqppX.js} +1 -1
  105. package/dist/client/assets/{profile-C75k6bGK.js → profile-BVqUNHDU.js} +1 -1
  106. package/dist/client/assets/{project-app-view-CKk63Dpd.js → project-app-view-vtZ-_doc.js} +1 -1
  107. package/dist/client/assets/registry-Dgo0smSq.js +2 -0
  108. package/dist/client/assets/{registry-layout-Bkts5YAv.js → registry-layout-CnlyFMkq.js} +1 -1
  109. package/dist/client/assets/{required-auth-layout-h9nzgFi8.js → required-auth-layout-D9iH4JWn.js} +1 -1
  110. package/dist/client/assets/{reset-password-D2aXMop6.js → reset-password-C7rUh7yQ.js} +1 -1
  111. package/dist/client/assets/{roles-Bi1faVdQ.js → roles-C_9lgwGC.js} +1 -1
  112. package/dist/client/assets/{scroll-area-CB49pN6Y.js → scroll-area-DeGma9h8.js} +1 -1
  113. package/dist/client/assets/{search-input-BTEmgZ9w.js → search-input-JxYHORMS.js} +1 -1
  114. package/dist/client/assets/{select-CAYoZd8I.js → select-D5OmQB7Q.js} +1 -1
  115. package/dist/client/assets/{select-model-CRtbsZ0R.js → select-model-BsjLnWhc.js} +1 -1
  116. package/dist/client/assets/{settings-layout-Ec4qkPOV.js → settings-layout-CBdTbv9p.js} +1 -1
  117. package/dist/client/assets/{settings-section-DlDQET7w.js → settings-section-PoWhTqpS.js} +1 -1
  118. package/dist/client/assets/{shell-layout-CbYhZXkk.js → shell-layout-yjk12_bc.js} +1 -1
  119. package/dist/client/assets/{skeleton-BW9knE_n.js → skeleton-C-dyN9od.js} +1 -1
  120. package/dist/client/assets/{sso-Ba2kuqx_.js → sso-CO-nJSkq.js} +1 -1
  121. package/dist/client/assets/{store-CSO-FxwQ.js → store-DO05KZgT.js} +1 -1
  122. package/dist/client/assets/store-registry-DjJ5a3G8.js +2 -0
  123. package/dist/client/assets/{switch-C4zt_EPB.js → switch-CXZ-w0Bq.js} +1 -1
  124. package/dist/client/assets/{table-Cg9qQv2Y.js → table-BpO63Yb0.js} +1 -1
  125. package/dist/client/assets/{tabs-DmHrk6mS.js → tabs-C_g7sXFQ.js} +1 -1
  126. package/dist/client/assets/{task-status-d_h_ry7h.js → task-status-CBFNkFN1.js} +1 -1
  127. package/dist/client/assets/{textarea-BYOMJtyN.js → textarea-BskaK79L.js} +1 -1
  128. package/dist/client/assets/{toggle-group-BXuQuZrD.js → toggle-group-XXqkCq4k.js} +1 -1
  129. package/dist/client/assets/{tools-list-B9QpVEXx.js → tools-list-DMMBZSNS.js} +1 -1
  130. package/dist/client/assets/{tooltip-BofEUPZE.js → tooltip-CPtrqiVf.js} +1 -1
  131. package/dist/client/assets/{types-CIm83jZB.js → types-CZ7C6HNp.js} +1 -1
  132. package/dist/client/assets/{use-ai-providers-SJMZOBYp.js → use-ai-providers-DdI6-E22.js} +1 -1
  133. package/dist/client/assets/{use-collections-BseNLGp4.js → use-collections-DA0dA7NJ.js} +1 -1
  134. package/dist/client/assets/{use-connection-DgkIQeIC.js → use-connection-B6UydpoO.js} +1 -1
  135. package/dist/client/assets/{use-copy-CFQEXY3f.js → use-copy-DXME69Wt.js} +1 -1
  136. package/dist/client/assets/{use-create-virtual-mcp-f8qfStwY.js → use-create-virtual-mcp-o_6Zui3e.js} +1 -1
  137. package/dist/client/assets/{use-decopilot-events-NFvSYLhu.js → use-decopilot-events-dH2aVuqh.js} +1 -1
  138. package/dist/client/assets/{use-delete-connection-kWtvCfIe.js → use-delete-connection-CT0R2aH7.js} +1 -1
  139. package/dist/client/assets/{use-infinite-scroll-5-SPEFAg.js → use-infinite-scroll-BJEaveTj.js} +1 -1
  140. package/dist/client/assets/{use-list-state-DisUc87n.js → use-list-state-17IGcEJ3.js} +1 -1
  141. package/dist/client/assets/{use-mcp-tools-inIxCvzq.js → use-mcp-tools-CyJvV1rx.js} +1 -1
  142. package/dist/client/assets/{use-members-DDimfduX.js → use-members-DaW4TIzB.js} +1 -1
  143. package/dist/client/assets/{use-navigate-to-agent-BLiXnOzm.js → use-navigate-to-agent-CWbTU3Jx.js} +1 -1
  144. package/dist/client/assets/{use-org-auth-client-G_YJ7rUK.js → use-org-auth-client-DUadgGT5.js} +1 -1
  145. package/dist/client/assets/{use-org-sso-DQDEO30q.js → use-org-sso-Drd5l9cJ.js} +1 -1
  146. package/dist/client/assets/{use-organization-roles-DxQncBJ0.js → use-organization-roles-BrKoYq-E.js} +1 -1
  147. package/dist/client/assets/{use-organization-settings-DuXuAzTp.js → use-organization-settings-CLV_ZfNb.js} +1 -1
  148. package/dist/client/assets/{use-registry-connections-B_kcIxyC.js → use-registry-connections-DdiWQ4aw.js} +1 -1
  149. package/dist/client/assets/{use-status-sounds-bbBf7WFs.js → use-status-sounds-C-uFPSCX.js} +1 -1
  150. package/dist/client/assets/{use-tasks-DtSTBHmQ.js → use-tasks-CRniTSla.js} +1 -1
  151. package/dist/client/assets/{use-view-mode-Yi8sPxKB.js → use-view-mode-C-htIWSb.js} +1 -1
  152. package/dist/client/assets/{use-virtual-mcp-BxjgYgTF.js → use-virtual-mcp-Ck38sBYu.js} +1 -1
  153. package/dist/client/assets/useInfiniteQuery-DSaXyBNr.js +1 -0
  154. package/dist/client/assets/useSuspenseInfiniteQuery-BidabhCU.js +1 -0
  155. package/dist/client/assets/{user-D4BWXoop.js → user-0W2qHPIr.js} +1 -1
  156. package/dist/client/assets/{view-mode-toggle-CJedYZZs.js → view-mode-toggle-CsVOHOCK.js} +1 -1
  157. package/dist/client/assets/{workflow-Cr24Zx7K.js → workflow-ICx7IBZn.js} +1 -1
  158. package/dist/client/assets/workflow-detail-CtIO-XFb.js +1 -0
  159. package/dist/client/index.html +7 -5
  160. package/dist/client/manifest.webmanifest +18 -0
  161. package/dist/server/cli.js +2 -2
  162. package/dist/server/node_modules/ansi-regex/index.d.ts +33 -0
  163. package/dist/server/node_modules/ansi-regex/index.js +14 -0
  164. package/dist/server/node_modules/{ansi-styles → ansi-regex}/package.json +20 -13
  165. package/dist/server/node_modules/ansi-regex/readme.md +66 -0
  166. package/dist/server/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  167. package/dist/server/node_modules/emoji-regex/README.md +107 -0
  168. package/dist/server/node_modules/emoji-regex/index.d.ts +3 -0
  169. package/dist/server/node_modules/emoji-regex/index.js +4 -0
  170. package/dist/server/node_modules/emoji-regex/index.mjs +4 -0
  171. package/dist/server/node_modules/emoji-regex/package.json +45 -0
  172. package/dist/server/node_modules/{pg → scheduler}/LICENSE +1 -1
  173. package/dist/server/node_modules/scheduler/README.md +9 -0
  174. package/dist/server/node_modules/scheduler/cjs/scheduler-unstable_mock.development.js +414 -0
  175. package/dist/server/node_modules/scheduler/cjs/scheduler-unstable_mock.production.js +406 -0
  176. package/dist/server/node_modules/scheduler/cjs/scheduler-unstable_post_task.development.js +150 -0
  177. package/dist/server/node_modules/scheduler/cjs/scheduler-unstable_post_task.production.js +140 -0
  178. package/dist/server/node_modules/scheduler/cjs/scheduler.development.js +364 -0
  179. package/dist/server/node_modules/scheduler/cjs/scheduler.native.development.js +350 -0
  180. package/dist/server/node_modules/scheduler/cjs/scheduler.native.production.js +330 -0
  181. package/dist/server/node_modules/scheduler/cjs/scheduler.production.js +340 -0
  182. package/dist/server/node_modules/scheduler/index.js +7 -0
  183. package/dist/server/node_modules/scheduler/index.native.js +7 -0
  184. package/dist/server/node_modules/scheduler/package.json +27 -0
  185. package/dist/server/node_modules/scheduler/unstable_mock.js +7 -0
  186. package/dist/server/node_modules/scheduler/unstable_post_task.js +7 -0
  187. package/dist/server/node_modules/slice-ansi/index.d.ts +19 -0
  188. package/dist/server/node_modules/slice-ansi/index.js +260 -0
  189. package/dist/server/node_modules/{environment → slice-ansi}/license +1 -0
  190. package/dist/server/node_modules/slice-ansi/package.json +59 -0
  191. package/dist/server/node_modules/slice-ansi/readme.md +54 -0
  192. package/dist/server/node_modules/slice-ansi/tokenize-ansi.js +752 -0
  193. package/dist/server/server.js +1 -1
  194. package/package.json +1 -1
  195. package/dist/client/assets/ai-providers-HK6-f1zC.js +0 -1
  196. package/dist/client/assets/index-GcyWPz6h.js +0 -1
  197. package/dist/client/assets/registry--RTDdsXm.js +0 -2
  198. package/dist/client/assets/store-registry-DfXuWLiQ.js +0 -2
  199. package/dist/client/assets/useInfiniteQuery-CXZTtjSi.js +0 -1
  200. package/dist/client/assets/useSuspenseInfiniteQuery-FIBrQjy0.js +0 -1
  201. package/dist/client/assets/workflow-detail-AwMahm0M.js +0 -1
  202. package/dist/server/node_modules/ansi-styles/index.d.ts +0 -236
  203. package/dist/server/node_modules/ansi-styles/index.js +0 -223
  204. package/dist/server/node_modules/ansi-styles/readme.md +0 -173
  205. package/dist/server/node_modules/auto-bind/index.d.ts +0 -50
  206. package/dist/server/node_modules/auto-bind/index.js +0 -41
  207. package/dist/server/node_modules/auto-bind/license +0 -9
  208. package/dist/server/node_modules/auto-bind/package.json +0 -51
  209. package/dist/server/node_modules/auto-bind/react.d.ts +0 -26
  210. package/dist/server/node_modules/auto-bind/react.js +0 -28
  211. package/dist/server/node_modules/auto-bind/readme.md +0 -92
  212. package/dist/server/node_modules/environment/index.d.ts +0 -74
  213. package/dist/server/node_modules/environment/index.js +0 -47
  214. package/dist/server/node_modules/environment/package.json +0 -74
  215. package/dist/server/node_modules/environment/readme.md +0 -94
  216. package/dist/server/node_modules/escape-string-regexp/index.d.ts +0 -18
  217. package/dist/server/node_modules/escape-string-regexp/index.js +0 -11
  218. package/dist/server/node_modules/escape-string-regexp/license +0 -9
  219. package/dist/server/node_modules/escape-string-regexp/package.json +0 -43
  220. package/dist/server/node_modules/escape-string-regexp/readme.md +0 -29
  221. package/dist/server/node_modules/get-east-asian-width/index.d.ts +0 -60
  222. package/dist/server/node_modules/get-east-asian-width/index.js +0 -30
  223. package/dist/server/node_modules/get-east-asian-width/license +0 -9
  224. package/dist/server/node_modules/get-east-asian-width/lookup-data.js +0 -18
  225. package/dist/server/node_modules/get-east-asian-width/lookup.js +0 -135
  226. package/dist/server/node_modules/get-east-asian-width/package.json +0 -71
  227. package/dist/server/node_modules/get-east-asian-width/readme.md +0 -65
  228. package/dist/server/node_modules/get-east-asian-width/utilities.js +0 -24
  229. package/dist/server/node_modules/is-in-ci/cli.js +0 -5
  230. package/dist/server/node_modules/is-in-ci/index.d.ts +0 -15
  231. package/dist/server/node_modules/is-in-ci/index.js +0 -7
  232. package/dist/server/node_modules/is-in-ci/license +0 -9
  233. package/dist/server/node_modules/is-in-ci/package.json +0 -49
  234. package/dist/server/node_modules/is-in-ci/readme.md +0 -44
  235. package/dist/server/node_modules/is-unicode-supported/index.d.ts +0 -12
  236. package/dist/server/node_modules/is-unicode-supported/index.js +0 -21
  237. package/dist/server/node_modules/is-unicode-supported/license +0 -9
  238. package/dist/server/node_modules/is-unicode-supported/package.json +0 -47
  239. package/dist/server/node_modules/is-unicode-supported/readme.md +0 -35
  240. package/dist/server/node_modules/pg/README.md +0 -95
  241. package/dist/server/node_modules/pg/esm/index.mjs +0 -20
  242. package/dist/server/node_modules/pg/lib/client.js +0 -743
  243. package/dist/server/node_modules/pg/lib/connection-parameters.js +0 -171
  244. package/dist/server/node_modules/pg/lib/connection.js +0 -221
  245. package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +0 -122
  246. package/dist/server/node_modules/pg/lib/crypto/sasl.js +0 -212
  247. package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +0 -43
  248. package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +0 -89
  249. package/dist/server/node_modules/pg/lib/crypto/utils.js +0 -9
  250. package/dist/server/node_modules/pg/lib/defaults.js +0 -91
  251. package/dist/server/node_modules/pg/lib/index.js +0 -73
  252. package/dist/server/node_modules/pg/lib/native/client.js +0 -323
  253. package/dist/server/node_modules/pg/lib/native/index.js +0 -2
  254. package/dist/server/node_modules/pg/lib/native/query.js +0 -165
  255. package/dist/server/node_modules/pg/lib/query.js +0 -252
  256. package/dist/server/node_modules/pg/lib/result.js +0 -109
  257. package/dist/server/node_modules/pg/lib/stream.js +0 -83
  258. package/dist/server/node_modules/pg/lib/type-overrides.js +0 -35
  259. package/dist/server/node_modules/pg/lib/utils.js +0 -217
  260. package/dist/server/node_modules/pg/package.json +0 -76
  261. package/dist/server/node_modules/restore-cursor/index.d.ts +0 -11
  262. package/dist/server/node_modules/restore-cursor/index.js +0 -11
  263. package/dist/server/node_modules/restore-cursor/license +0 -9
  264. package/dist/server/node_modules/restore-cursor/package.json +0 -55
  265. package/dist/server/node_modules/restore-cursor/readme.md +0 -31
  266. package/dist/server/node_modules/string-width/index.d.ts +0 -39
  267. package/dist/server/node_modules/string-width/index.js +0 -82
  268. package/dist/server/node_modules/string-width/license +0 -9
  269. package/dist/server/node_modules/string-width/package.json +0 -64
  270. package/dist/server/node_modules/string-width/readme.md +0 -66
  271. package/dist/server/node_modules/terminal-size/index.d.ts +0 -17
  272. package/dist/server/node_modules/terminal-size/index.js +0 -139
  273. package/dist/server/node_modules/terminal-size/license +0 -9
  274. package/dist/server/node_modules/terminal-size/package.json +0 -49
  275. package/dist/server/node_modules/terminal-size/readme.md +0 -32
  276. /package/dist/server/node_modules/{ansi-styles → ansi-regex}/license +0 -0
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/plugin-header-QuC-CYa0.js","assets/ChevronDown-ypjg4ILM.js","assets/login-DIALDSm5.js","assets/input-2L64g1T_.js","assets/reset-password-D2aXMop6.js","assets/shell-layout-CbYhZXkk.js","assets/dialog-Ce-S_qMM.js","assets/X-BFGruHRk.js","assets/required-auth-layout-h9nzgFi8.js","assets/use-tasks-DtSTBHmQ.js","assets/use-collections-BseNLGp4.js","assets/constants-Bcmyvnig.js","assets/use-organization-settings-DuXuAzTp.js","assets/use-org-sso-DQDEO30q.js","assets/Lock01-C5Zr-Ww6.js","assets/onboarding-BBIuU5UD.js","assets/label-DWNCCuhf.js","assets/Users03-BLPQrcHj.js","assets/CheckCircle-DWKK8gJh.js","assets/Palette-BnVEDgSZ.js","assets/index-GcyWPz6h.js","assets/index-DjnPWua9.js","assets/tooltip-BofEUPZE.js","assets/index-BStd3_z4.js","assets/agent-icon-CN5xNSiu.js","assets/AlertCircle-CSF_13Dr.js","assets/Tool01-rxvuOVHx.js","assets/XClose-D9JXRvIj.js","assets/RefreshCcw01-CrxRNYKo.js","assets/ArrowNarrowLeft-CqQ_AXD-.js","assets/XCircle-CgmzRFdE.js","assets/ArrowUpRight-DdiqR9qA.js","assets/ZapSquare-UyAaRiNn.js","assets/ChevronRight-BcI9jZHJ.js","assets/ChevronUp-Dlg42F4S.js","assets/DotsVertical-BZ-ro4V4.js","assets/Container-XDYnee_K.js","assets/Star01-Dhk1EO9q.js","assets/SearchMd-BSld7GOF.js","assets/LinkExternal01-CVvqJLEj.js","assets/Sun-C8NOGZvD.js","assets/Play-B-Fd5QKh.js","assets/Plus-BLB9eSSy.js","assets/Settings02-CuyH465d.js","assets/Shield01-Bo1gZXJl.js","assets/Trash01-C9fepIhN.js","assets/User01-DZdlYgsF.js","assets/Zap-Do9G2J5r.js","assets/pair-D1g0yCtI.js","assets/index-DmL34bOB.js","assets/use-copy-CFQEXY3f.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/content-blocks-o63cs2vh.js","assets/types-CIm83jZB.js","assets/chat-context-Bv_oa_7h.js","assets/use-virtual-mcp-BxjgYgTF.js","assets/use-ai-providers-SJMZOBYp.js","assets/use-decopilot-events-NFvSYLhu.js","assets/create-sse-subscription-CxkOgzKf.js","assets/integration-icon-PO3TvmaC.js","assets/skeleton-BW9knE_n.js","assets/popover-DlyfpBTw.js","assets/drawer-DgQ8wUw5.js","assets/avatar-BSKYNdqa.js","assets/alert-dialog-3Q-TOJHi.js","assets/form-B8FvADu3.js","assets/index-B1bM0KaJ.js","assets/use-mcp-tools-inIxCvzq.js","assets/index-BCTCfFmx.js","assets/switch-C4zt_EPB.js","assets/use-connection-DgkIQeIC.js","assets/lean-canvas-recruit-modal-D1vXDFS8.js","assets/use-navigate-to-agent-BLiXnOzm.js","assets/collection-search-BqI5DHBE.js","assets/checkbox-B2QOZhNa.js","assets/extract-connection-data-D8qeaoes.js","assets/constants-DQUM-QTb.js","assets/collections-CHU5RniR.js","assets/tabs-DmHrk6mS.js","assets/dropdown-menu-Bltklbi1.js","assets/select-CAYoZd8I.js","assets/toggle-group-BXuQuZrD.js","assets/select-model-CRtbsZ0R.js","assets/ai-providers-logos-D6a8kmGH.js","assets/settings-section-DlDQET7w.js","assets/card-dhYHIFM6.js","assets/formatDistanceToNow-Cb2QZZJn.js","assets/unwrap-tool-result-BYXdCQMg.js","assets/index-Op7eZZdi.js","assets/question-004-sINsf4GQ.js","assets/connection-slug-eyAPH6o3.js","assets/connection-card-DBFSL2df.js","assets/use-registry-connections-B_kcIxyC.js","assets/useInfiniteQuery-CXZTtjSi.js","assets/infiniteQueryObserver-CbglmKcR.js","assets/collection-tabs-DBb9ohEX.js","assets/badge-BpwMPBRe.js","assets/textarea-BYOMJtyN.js","assets/connection-form-helpers-Sfc0HCZO.js","assets/use-infinite-scroll-5-SPEFAg.js","assets/useSuspenseInfiniteQuery-FIBrQjy0.js","assets/collection-search-DEMxfDoK.js","assets/use-create-virtual-mcp-f8qfStwY.js","assets/empty-state-Dp3JawHN.js","assets/task-status-d_h_ry7h.js","assets/index-DBWzxGIY.js","assets/command-Dm2ByCMz.js","assets/index-DhjNZ1rq.js","assets/use-status-sounds-bbBf7WFs.js","assets/accordion-cmDkbfBH.js","assets/user-D4BWXoop.js","assets/tools-list-B9QpVEXx.js","assets/scroll-area-CB49pN6Y.js","assets/view-mode-toggle-CJedYZZs.js","assets/automation-list-row-BVM9yKN5.js","assets/search-input-BTEmgZ9w.js","assets/index-DDGTF8rc.css","assets/index-BgDYzVqv.js","assets/settings-layout-Ec4qkPOV.js","assets/connections-CUFtJd2B.js","assets/collection-display-button-ug6rGxEz.js","assets/use-delete-connection-kWtvCfIe.js","assets/use-list-state-DisUc87n.js","assets/use-view-mode-Yi8sPxKB.js","assets/connection-detail-CIGqgms4.js","assets/index-j4nSYT2i.js","assets/index-B8fZc4My.js","assets/index-CqQUHzq_.js","assets/use-members-DDimfduX.js","assets/use-org-auth-client-G_YJ7rUK.js","assets/layout-Bcl31qY2.js","assets/monitoring-stats-row-CseTCiYb.js","assets/collection-detail-BvlusF4T.js","assets/index-39kMCf4L.js","assets/monaco-editor-Cpm29QPS.js","assets/empty-state-B9-_6_Xj.js","assets/index-BuV1uoum.js","assets/table-Cg9qQv2Y.js","assets/general-BiVCLvSZ.js","assets/domain-settings-DMTP32Li.js","assets/features-Dj1Ja9zf.js","assets/brand-context-CvUPXtOc.js","assets/ai-providers-HK6-f1zC.js","assets/members-CMmMYv-N.js","assets/collection-table-wrapper-B1peJR0E.js","assets/use-organization-roles-DxQncBJ0.js","assets/roles-Bi1faVdQ.js","assets/sso-Ba2kuqx_.js","assets/profile-C75k6bGK.js","assets/store-CSO-FxwQ.js","assets/workflow-Cr24Zx7K.js","assets/workflow-detail-AwMahm0M.js","assets/org-plugin-layout-3GybENC2.js","assets/plugin-layout-CzBticqJ.js","assets/agents-list-Bx-2M0dx.js","assets/automations-BANsoXxo.js","assets/dynamic-plugin-layout-DofOvgRG.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/plugin-header-DbdW6vY7.js","assets/ChevronDown-CHOTJx8l.js","assets/login-Bxl4_mYU.js","assets/input-BzH1Fp78.js","assets/reset-password-C7rUh7yQ.js","assets/shell-layout-yjk12_bc.js","assets/dialog-C_vmNTRu.js","assets/X-BwEMSUjV.js","assets/required-auth-layout-D9iH4JWn.js","assets/use-tasks-CRniTSla.js","assets/use-collections-DA0dA7NJ.js","assets/constants-D7xAST0Q.js","assets/use-organization-settings-CLV_ZfNb.js","assets/use-org-sso-Drd5l9cJ.js","assets/Lock01-lZHBNo2C.js","assets/onboarding-C5IoSpHh.js","assets/label-CB_XE-e4.js","assets/Users03-CVNVU6ve.js","assets/CheckCircle-Dk81QM9U.js","assets/Palette-C9akcBSz.js","assets/index-8xDSjspo.js","assets/index-HZ0ltqWr.js","assets/tooltip-CPtrqiVf.js","assets/index-DSAQMn6i.js","assets/agent-icon-DmsooVXW.js","assets/AlertCircle-1FKO-iwn.js","assets/Tool01-Bbs6ipxi.js","assets/XClose-DxHt9zuu.js","assets/RefreshCcw01-HnODDFoT.js","assets/ArrowNarrowLeft-CKZqPsRI.js","assets/XCircle-C0fkjQDC.js","assets/ArrowUpRight-7lMYxGWa.js","assets/ZapSquare-DGM2fPse.js","assets/ChevronRight-Dk8qeq6P.js","assets/ChevronUp-CTvlJvJZ.js","assets/DotsVertical-D4yfeGnN.js","assets/Container-C3IYo0L9.js","assets/Star01-DUqgRTj4.js","assets/SearchMd-GZRswmV_.js","assets/LinkExternal01-x1hnv38P.js","assets/Sun-g7onD0QQ.js","assets/Play-CdX48V1T.js","assets/Plus-DYdqKX5R.js","assets/Settings02-Dzch4bsp.js","assets/Shield01-bIZj53hE.js","assets/Trash01-D1T4c6gl.js","assets/User01-Fk9cKl4i.js","assets/Zap-BPFq3hVj.js","assets/pair-BhjBynHM.js","assets/index-70mmoBkB.js","assets/use-copy-DXME69Wt.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/content-blocks-o63cs2vh.js","assets/types-CZ7C6HNp.js","assets/chat-context-DF9UFjVM.js","assets/use-virtual-mcp-Ck38sBYu.js","assets/use-ai-providers-DdI6-E22.js","assets/use-decopilot-events-dH2aVuqh.js","assets/create-sse-subscription-CxkOgzKf.js","assets/integration-icon-D_AOqXFj.js","assets/skeleton-C-dyN9od.js","assets/popover-Ci7fqppX.js","assets/drawer-C4a3mc5d.js","assets/avatar-Bu1NzTYg.js","assets/alert-dialog-CWQoS6wX.js","assets/form-DsyDTBzC.js","assets/index-DHuevMFp.js","assets/use-mcp-tools-CyJvV1rx.js","assets/index-B01cqxRa.js","assets/switch-CXZ-w0Bq.js","assets/use-connection-B6UydpoO.js","assets/lean-canvas-recruit-modal-BPVxQzta.js","assets/use-navigate-to-agent-CWbTU3Jx.js","assets/collection-search-BkYFe6i5.js","assets/checkbox-B1Ttfs-h.js","assets/extract-connection-data-OOISwrlz.js","assets/constants-DivL5teI.js","assets/collections-B1Vl-dRY.js","assets/tabs-C_g7sXFQ.js","assets/dropdown-menu-B8_YZGoo.js","assets/select-D5OmQB7Q.js","assets/toggle-group-XXqkCq4k.js","assets/select-model-BsjLnWhc.js","assets/ai-providers-logos-D6a8kmGH.js","assets/settings-section-PoWhTqpS.js","assets/card-RSPkY0To.js","assets/formatDistanceToNow-Cb2QZZJn.js","assets/unwrap-tool-result-BYXdCQMg.js","assets/index-Cfe1XtAV.js","assets/question-004-sINsf4GQ.js","assets/connection-slug-eyAPH6o3.js","assets/connection-card-B_uXifPW.js","assets/use-registry-connections-DdiWQ4aw.js","assets/useInfiniteQuery-DSaXyBNr.js","assets/infiniteQueryObserver-Bl2c59an.js","assets/collection-tabs-BywVHkM5.js","assets/badge-Ch9BdqT9.js","assets/textarea-BskaK79L.js","assets/connection-form-helpers-DELjRDJg.js","assets/use-infinite-scroll-BJEaveTj.js","assets/useSuspenseInfiniteQuery-BidabhCU.js","assets/collection-search-gyDd3-OR.js","assets/use-create-virtual-mcp-o_6Zui3e.js","assets/empty-state-DOC09WYz.js","assets/task-status-CBFNkFN1.js","assets/index-m0seQOic.js","assets/command-CVf7W7do.js","assets/index-oPPnPtai.js","assets/use-status-sounds-C-uFPSCX.js","assets/accordion-Bdek-M8z.js","assets/user-0W2qHPIr.js","assets/tools-list-DMMBZSNS.js","assets/scroll-area-DeGma9h8.js","assets/view-mode-toggle-CsVOHOCK.js","assets/automation-list-row-CLJ3ftyb.js","assets/search-input-JxYHORMS.js","assets/index-DDGTF8rc.css","assets/index-BHV6aSRG.js","assets/settings-layout-CBdTbv9p.js","assets/connections-ncYXmxGJ.js","assets/collection-display-button-D0RK6oeA.js","assets/use-delete-connection-CT0R2aH7.js","assets/use-list-state-17IGcEJ3.js","assets/use-view-mode-C-htIWSb.js","assets/connection-detail-Cmgz9yRr.js","assets/index-Di0Mb6sO.js","assets/index-DBkKSx96.js","assets/index-BirIwGZm.js","assets/use-members-DaW4TIzB.js","assets/use-org-auth-client-DUadgGT5.js","assets/layout-CY21UTYW.js","assets/monitoring-stats-row-D51EcZe3.js","assets/collection-detail-D-3DNG_M.js","assets/index-BEZPSJ65.js","assets/monaco-editor-DuX4NcOq.js","assets/empty-state-DJGg06AT.js","assets/index-LWzmvmvR.js","assets/table-BpO63Yb0.js","assets/general-7ljwSAxI.js","assets/domain-settings-DXgm_woB.js","assets/features-DTyLbScZ.js","assets/brand-context-Cdhkr07K.js","assets/ai-providers-CYFZTFTL.js","assets/members-zvpqbNiS.js","assets/collection-table-wrapper-BCfFkyA6.js","assets/use-organization-roles-BrKoYq-E.js","assets/roles-C_9lgwGC.js","assets/sso-CO-nJSkq.js","assets/profile-BVqUNHDU.js","assets/store-DO05KZgT.js","assets/workflow-ICx7IBZn.js","assets/workflow-detail-CtIO-XFb.js","assets/org-plugin-layout-BUW4YpUf.js","assets/plugin-layout-c0ZCIK90.js","assets/agents-list-Dj4emYPF.js","assets/automations-DcwcFfNp.js","assets/dynamic-plugin-layout-Dlh_QnjI.js"])))=>i.map(i=>d[i]);
2
2
  function z$(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();const F$="modulepreload",B$=function(e){return"/"+e},X2={},At=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let l=function(f){return Promise.all(f.map(m=>Promise.resolve(m).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");i=l(n.map(f=>{if(f=B$(f),f in X2)return;X2[f]=!0;const m=f.endsWith(".css"),p=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${p}`))return;const g=document.createElement("link");if(g.rel=m?"stylesheet":F$,m||(g.as="script"),g.crossOrigin="",g.href=f,d&&g.setAttribute("nonce",d),document.head.appendChild(g),m)return new Promise((v,y)=>{g.addEventListener("load",v),g.addEventListener("error",()=>y(Error(`Unable to preload CSS for ${f}`)))})}))}function s(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return i.then(l=>{for(const c of l||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})};var Jae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function la(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var v_={exports:{}},Bu={};var J2;function V$(){if(J2)return Bu;J2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,s){var l=null;if(s!==void 0&&(l=""+s),i.key!==void 0&&(l=""+i.key),"key"in i){s={};for(var c in i)c!=="key"&&(s[c]=i[c])}else s=i;return i=s.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:s}}return Bu.Fragment=t,Bu.jsx=n,Bu.jsxs=n,Bu}var eO;function q$(){return eO||(eO=1,v_.exports=V$()),v_.exports}var T=q$(),__={exports:{}},Vu={},y_={exports:{}},b_={};var tO;function H$(){return tO||(tO=1,(function(e){function t(q,W){var ee=q.length;q.push(W);e:for(;0<ee;){var ae=ee-1>>>1,Q=q[ae];if(0<i(Q,W))q[ae]=W,q[ee]=Q,ee=ae;else break e}}function n(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var W=q[0],ee=q.pop();if(ee!==W){q[0]=ee;e:for(var ae=0,Q=q.length,k=Q>>>1;ae<k;){var K=2*(ae+1)-1,V=q[K],D=K+1,F=q[D];if(0>i(V,ee))D<Q&&0>i(F,V)?(q[ae]=F,q[D]=ee,ae=D):(q[ae]=V,q[K]=ee,ae=K);else if(D<Q&&0>i(F,ee))q[ae]=F,q[D]=ee,ae=D;else break e}}return W}function i(q,W){var ee=q.sortIndex-W.sortIndex;return ee!==0?ee:q.id-W.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var d=[],f=[],m=1,p=null,g=3,v=!1,y=!1,b=!1,x=!1,S=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function C(q){for(var W=n(f);W!==null;){if(W.callback===null)r(f);else if(W.startTime<=q)r(f),W.sortIndex=W.expirationTime,t(d,W);else break;W=n(f)}}function O(q){if(b=!1,C(q),!y)if(n(d)!==null)y=!0,A||(A=!0,B());else{var W=n(f);W!==null&&re(O,W.startTime-q)}}var A=!1,M=-1,P=5,L=-1;function H(){return x?!0:!(e.unstable_now()-L<P)}function j(){if(x=!1,A){var q=e.unstable_now();L=q;var W=!0;try{e:{y=!1,b&&(b=!1,E(M),M=-1),v=!0;var ee=g;try{t:{for(C(q),p=n(d);p!==null&&!(p.expirationTime>q&&H());){var ae=p.callback;if(typeof ae=="function"){p.callback=null,g=p.priorityLevel;var Q=ae(p.expirationTime<=q);if(q=e.unstable_now(),typeof Q=="function"){p.callback=Q,C(q),W=!0;break t}p===n(d)&&r(d),C(q)}else r(d);p=n(d)}if(p!==null)W=!0;else{var k=n(f);k!==null&&re(O,k.startTime-q),W=!1}}break e}finally{p=null,g=ee,v=!1}W=void 0}}finally{W?B():A=!1}}}var B;if(typeof R=="function")B=function(){R(j)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,Z=U.port2;U.port1.onmessage=j,B=function(){Z.postMessage(null)}}else B=function(){S(j,0)};function re(q,W){M=S(function(){q(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(q){q.callback=null},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(q){switch(g){case 1:case 2:case 3:var W=3;break;default:W=g}var ee=g;g=W;try{return q()}finally{g=ee}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(q,W){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ee=g;g=q;try{return W()}finally{g=ee}},e.unstable_scheduleCallback=function(q,W,ee){var ae=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?ae+ee:ae):ee=ae,q){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=ee+Q,q={id:m++,callback:W,priorityLevel:q,startTime:ee,expirationTime:Q,sortIndex:-1},ee>ae?(q.sortIndex=ee,t(f,q),n(d)===null&&q===n(f)&&(b?(E(M),M=-1):b=!0,re(O,ee-ae))):(q.sortIndex=Q,t(d,q),y||v||(y=!0,A||(A=!0,B()))),q},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(q){var W=g;return function(){var ee=g;g=W;try{return q.apply(this,arguments)}finally{g=ee}}}})(b_)),b_}var nO;function G$(){return nO||(nO=1,y_.exports=H$()),y_.exports}var w_={exports:{}},rt={};var rO;function K$(){if(rO)return rt;rO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),g=Symbol.iterator;function v(k){return k===null||typeof k!="object"?null:(k=g&&k[g]||k["@@iterator"],typeof k=="function"?k:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,x={};function S(k,K,V){this.props=k,this.context=K,this.refs=x,this.updater=V||y}S.prototype.isReactComponent={},S.prototype.setState=function(k,K){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,K,"setState")},S.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function E(){}E.prototype=S.prototype;function R(k,K,V){this.props=k,this.context=K,this.refs=x,this.updater=V||y}var C=R.prototype=new E;C.constructor=R,b(C,S.prototype),C.isPureReactComponent=!0;var O=Array.isArray;function A(){}var M={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function L(k,K,V){var D=V.ref;return{$$typeof:e,type:k,key:K,ref:D!==void 0?D:null,props:V}}function H(k,K){return L(k.type,K,k.props)}function j(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function B(k){var K={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(V){return K[V]})}var U=/\/+/g;function Z(k,K){return typeof k=="object"&&k!==null&&k.key!=null?B(""+k.key):K.toString(36)}function re(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(A,A):(k.status="pending",k.then(function(K){k.status==="pending"&&(k.status="fulfilled",k.value=K)},function(K){k.status==="pending"&&(k.status="rejected",k.reason=K)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function q(k,K,V,D,F){var X=typeof k;(X==="undefined"||X==="boolean")&&(k=null);var fe=!1;if(k===null)fe=!0;else switch(X){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(k.$$typeof){case e:case t:fe=!0;break;case m:return fe=k._init,q(fe(k._payload),K,V,D,F)}}if(fe)return F=F(k),fe=D===""?"."+Z(k,0):D,O(F)?(V="",fe!=null&&(V=fe.replace(U,"$&/")+"/"),q(F,K,V,"",function(Ue){return Ue})):F!=null&&(j(F)&&(F=H(F,V+(F.key==null||k&&k.key===F.key?"":(""+F.key).replace(U,"$&/")+"/")+fe)),K.push(F)),1;fe=0;var pe=D===""?".":D+":";if(O(k))for(var xe=0;xe<k.length;xe++)D=k[xe],X=pe+Z(D,xe),fe+=q(D,K,V,X,F);else if(xe=v(k),typeof xe=="function")for(k=xe.call(k),xe=0;!(D=k.next()).done;)D=D.value,X=pe+Z(D,xe++),fe+=q(D,K,V,X,F);else if(X==="object"){if(typeof k.then=="function")return q(re(k),K,V,D,F);throw K=String(k),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return fe}function W(k,K,V){if(k==null)return k;var D=[],F=0;return q(k,D,"","",function(X){return K.call(V,X,F++)}),D}function ee(k){if(k._status===-1){var K=k._result;K=K(),K.then(function(V){(k._status===0||k._status===-1)&&(k._status=1,k._result=V)},function(V){(k._status===0||k._status===-1)&&(k._status=2,k._result=V)}),k._status===-1&&(k._status=0,k._result=K)}if(k._status===1)return k._result.default;throw k._result}var ae=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},Q={map:W,forEach:function(k,K,V){W(k,function(){K.apply(this,arguments)},V)},count:function(k){var K=0;return W(k,function(){K++}),K},toArray:function(k){return W(k,function(K){return K})||[]},only:function(k){if(!j(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return rt.Activity=p,rt.Children=Q,rt.Component=S,rt.Fragment=n,rt.Profiler=i,rt.PureComponent=R,rt.StrictMode=r,rt.Suspense=d,rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,rt.__COMPILER_RUNTIME={__proto__:null,c:function(k){return M.H.useMemoCache(k)}},rt.cache=function(k){return function(){return k.apply(null,arguments)}},rt.cacheSignal=function(){return null},rt.cloneElement=function(k,K,V){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var D=b({},k.props),F=k.key;if(K!=null)for(X in K.key!==void 0&&(F=""+K.key),K)!P.call(K,X)||X==="key"||X==="__self"||X==="__source"||X==="ref"&&K.ref===void 0||(D[X]=K[X]);var X=arguments.length-2;if(X===1)D.children=V;else if(1<X){for(var fe=Array(X),pe=0;pe<X;pe++)fe[pe]=arguments[pe+2];D.children=fe}return L(k.type,F,D)},rt.createContext=function(k){return k={$$typeof:l,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:s,_context:k},k},rt.createElement=function(k,K,V){var D,F={},X=null;if(K!=null)for(D in K.key!==void 0&&(X=""+K.key),K)P.call(K,D)&&D!=="key"&&D!=="__self"&&D!=="__source"&&(F[D]=K[D]);var fe=arguments.length-2;if(fe===1)F.children=V;else if(1<fe){for(var pe=Array(fe),xe=0;xe<fe;xe++)pe[xe]=arguments[xe+2];F.children=pe}if(k&&k.defaultProps)for(D in fe=k.defaultProps,fe)F[D]===void 0&&(F[D]=fe[D]);return L(k,X,F)},rt.createRef=function(){return{current:null}},rt.forwardRef=function(k){return{$$typeof:c,render:k}},rt.isValidElement=j,rt.lazy=function(k){return{$$typeof:m,_payload:{_status:-1,_result:k},_init:ee}},rt.memo=function(k,K){return{$$typeof:f,type:k,compare:K===void 0?null:K}},rt.startTransition=function(k){var K=M.T,V={};M.T=V;try{var D=k(),F=M.S;F!==null&&F(V,D),typeof D=="object"&&D!==null&&typeof D.then=="function"&&D.then(A,ae)}catch(X){ae(X)}finally{K!==null&&V.types!==null&&(K.types=V.types),M.T=K}},rt.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},rt.use=function(k){return M.H.use(k)},rt.useActionState=function(k,K,V){return M.H.useActionState(k,K,V)},rt.useCallback=function(k,K){return M.H.useCallback(k,K)},rt.useContext=function(k){return M.H.useContext(k)},rt.useDebugValue=function(){},rt.useDeferredValue=function(k,K){return M.H.useDeferredValue(k,K)},rt.useEffect=function(k,K){return M.H.useEffect(k,K)},rt.useEffectEvent=function(k){return M.H.useEffectEvent(k)},rt.useId=function(){return M.H.useId()},rt.useImperativeHandle=function(k,K,V){return M.H.useImperativeHandle(k,K,V)},rt.useInsertionEffect=function(k,K){return M.H.useInsertionEffect(k,K)},rt.useLayoutEffect=function(k,K){return M.H.useLayoutEffect(k,K)},rt.useMemo=function(k,K){return M.H.useMemo(k,K)},rt.useOptimistic=function(k,K){return M.H.useOptimistic(k,K)},rt.useReducer=function(k,K,V){return M.H.useReducer(k,K,V)},rt.useRef=function(k){return M.H.useRef(k)},rt.useState=function(k){return M.H.useState(k)},rt.useSyncExternalStore=function(k,K,V){return M.H.useSyncExternalStore(k,K,V)},rt.useTransition=function(){return M.H.useTransition()},rt.version="19.2.5",rt}var iO;function ca(){return iO||(iO=1,w_.exports=K$()),w_.exports}var S_={exports:{}},yr={};var oO;function Z$(){if(oO)return yr;oO=1;var e=ca();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function s(d,f,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:p==null?null:""+p,children:d,containerInfo:f,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return yr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,yr.createPortal=function(d,f){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return s(d,f,null,m)},yr.flushSync=function(d){var f=l.T,m=r.p;try{if(l.T=null,r.p=2,d)return d()}finally{l.T=f,r.p=m,r.d.f()}},yr.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},yr.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},yr.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var m=f.as,p=c(m,f.crossOrigin),g=typeof f.integrity=="string"?f.integrity:void 0,v=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;m==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:p,integrity:g,fetchPriority:v}):m==="script"&&r.d.X(d,{crossOrigin:p,integrity:g,fetchPriority:v,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},yr.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var m=c(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},yr.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var m=f.as,p=c(m,f.crossOrigin);r.d.L(d,m,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},yr.preloadModule=function(d,f){if(typeof d=="string")if(f){var m=c(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},yr.requestFormReset=function(d){r.d.r(d)},yr.unstable_batchedUpdates=function(d,f){return d(f)},yr.useFormState=function(d,f,m){return l.H.useFormState(d,f,m)},yr.useFormStatus=function(){return l.H.useHostTransitionStatus()},yr.version="19.2.5",yr}var sO;function IM(){if(sO)return S_.exports;sO=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),S_.exports=Z$(),S_.exports}var aO;function Y$(){if(aO)return Vu;aO=1;var e=G$(),t=ca(),n=IM();function r(o){var a="https://react.dev/errors/"+o;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+o+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function s(o){var a=o,u=o;if(o.alternate)for(;a.return;)a=a.return;else{o=a;do a=o,(a.flags&4098)!==0&&(u=a.return),o=a.return;while(o)}return a.tag===3?u:null}function l(o){if(o.tag===13){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function c(o){if(o.tag===31){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function d(o){if(s(o)!==o)throw Error(r(188))}function f(o){var a=o.alternate;if(!a){if(a=s(o),a===null)throw Error(r(188));return a!==o?null:o}for(var u=o,h=a;;){var _=u.return;if(_===null)break;var w=_.alternate;if(w===null){if(h=_.return,h!==null){u=h;continue}break}if(_.child===w.child){for(w=_.child;w;){if(w===u)return d(_),o;if(w===h)return d(_),a;w=w.sibling}throw Error(r(188))}if(u.return!==h.return)u=_,h=w;else{for(var N=!1,$=_.child;$;){if($===u){N=!0,u=_,h=w;break}if($===h){N=!0,h=_,u=w;break}$=$.sibling}if(!N){for($=w.child;$;){if($===u){N=!0,u=w,h=_;break}if($===h){N=!0,h=w,u=_;break}$=$.sibling}if(!N)throw Error(r(189))}}if(u.alternate!==h)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?o:a}function m(o){var a=o.tag;if(a===5||a===26||a===27||a===6)return o;for(o=o.child;o!==null;){if(a=m(o),a!==null)return a;o=o.sibling}return null}var p=Object.assign,g=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),R=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),j=Symbol.iterator;function B(o){return o===null||typeof o!="object"?null:(o=j&&o[j]||o["@@iterator"],typeof o=="function"?o:null)}var U=Symbol.for("react.client.reference");function Z(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===U?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case b:return"Fragment";case S:return"Profiler";case x:return"StrictMode";case O:return"Suspense";case A:return"SuspenseList";case L:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case y:return"Portal";case R:return o.displayName||"Context";case E:return(o._context.displayName||"Context")+".Consumer";case C:var a=o.render;return o=o.displayName,o||(o=a.displayName||a.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case M:return a=o.displayName||null,a!==null?a:Z(o.type)||"Memo";case P:a=o._payload,o=o._init;try{return Z(o(a))}catch{}}return null}var re=Array.isArray,q=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},ae=[],Q=-1;function k(o){return{current:o}}function K(o){0>Q||(o.current=ae[Q],ae[Q]=null,Q--)}function V(o,a){Q++,ae[Q]=o.current,o.current=a}var D=k(null),F=k(null),X=k(null),fe=k(null);function pe(o,a){switch(V(X,a),V(F,o),V(D,null),a.nodeType){case 9:case 11:o=(o=a.documentElement)&&(o=o.namespaceURI)?w2(o):0;break;default:if(o=a.tagName,a=a.namespaceURI)a=w2(a),o=S2(a,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}K(D),V(D,o)}function xe(){K(D),K(F),K(X)}function Ue(o){o.memoizedState!==null&&V(fe,o);var a=D.current,u=S2(a,o.type);a!==u&&(V(F,o),V(D,u))}function Y(o){F.current===o&&(K(D),K(F)),fe.current===o&&(K(fe),ju._currentValue=ee)}var te,ve;function se(o){if(te===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);te=a&&a[1]||"",ve=-1<u.stack.indexOf(`
3
3
  at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
4
4
  `+te+o+ve}var we=!1;function Oe(o,a){if(!o||we)return"";we=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(a){var Se=function(){throw Error()};if(Object.defineProperty(Se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Se,[])}catch(ge){var he=ge}Reflect.construct(o,[],Se)}else{try{Se.call()}catch(ge){he=ge}o.call(Se.prototype)}}else{try{throw Error()}catch(ge){he=ge}(Se=o())&&typeof Se.catch=="function"&&Se.catch(function(){})}}catch(ge){if(ge&&he&&typeof ge.stack=="string")return[ge.stack,he.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var _=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");_&&_.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var w=h.DetermineComponentFrameRoot(),N=w[0],$=w[1];if(N&&$){var J=N.split(`
@@ -168,4 +168,4 @@ ${r}
168
168
  ${r}
169
169
  }`)}if(n.length>0){const r=document.createElement("style");r.id="mesh-theme-overrides",r.textContent=n.join(`
170
170
 
171
- `),document.head.appendChild(r)}}function Xse(e){const t=Ro.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:GM.publicConfig(),queryFn:Wse,staleTime:1/0},t[0]=r):r=t[0];const{data:i}=HM(r),[s]=Zse();i.internalUrl&&Use(i.internalUrl);let l,c;t[1]!==i.theme?(l=()=>{Qse(i.theme)},c=[i.theme],t[1]=i.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),I.useLayoutEffect(l,c);let d,f;t[4]!==s.theme?(d=()=>{const p=document.documentElement;if(s.theme==="dark"){p.classList.add("dark");return}if(s.theme==="light"){p.classList.remove("dark");return}const g=window.matchMedia("(prefers-color-scheme: dark)"),v=b=>p.classList.toggle("dark",b);v(g.matches);const y=b=>v(b.matches);return g.addEventListener("change",y),()=>g.removeEventListener("change",y)},f=[s.theme],t[4]=s.theme,t[5]=d,t[6]=f):(d=t[5],f=t[6]),I.useLayoutEffect(d,f);let m;return t[7]!==n?(m=T.jsx(T.Fragment,{children:n}),t[7]=n,t[8]=m):m=t[8],m}const Jse=new bj({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});function eae(e){const t=Ro.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=T.jsx(hH,{}),t[0]=r):r=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx(jD,{}),t[1]=i):i=t[1];let s;return t[2]!==n?(s=T.jsxs(wj,{client:Jse,children:[r,T.jsx(I.Suspense,{fallback:i,children:T.jsx(Xse,{children:T.jsx(Lj,{children:T.jsx(Fee,{children:T.jsx(Wne,{children:n})})})})})]}),t[2]=n,t[3]=s):s=t[3],s}function tae(...e){return BP(hw(e))}const nae=y3("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function Y1(e){const t=Ro.c(14);let n,r,i,s,l;t[0]!==e?({className:n,variant:l,size:i,asChild:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=s,t[5]=l):(n=t[1],r=t[2],i=t[3],s=t[4],l=t[5]);const d=(s===void 0?!1:s)?$w:"button";let f;t[6]!==n||t[7]!==i||t[8]!==l?(f=tae(nae({variant:l,size:i,className:n})),t[6]=n,t[7]=i,t[8]=l,t[9]=f):f=t[9];let m;return t[10]!==d||t[11]!==r||t[12]!==f?(m=T.jsx(d,{"data-slot":"button",className:f,...r}),t[10]=d,t[11]=r,t[12]=f,t[13]=m):m=t[13],m}const CM="__mesh_chunk_reload_ts";function AM(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class rce extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n),kD(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:T.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(PS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(Y1,{variant:"outline",onClick:this.resetError,children:"Try again"})]})}return this.props.children}}class rae extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n);const r=AM(t);if(kD(t,{boundary:"chunk_root",is_chunk_load_error:r,error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!r)return;const i=sessionStorage.getItem(CM),s=Date.now();(!i||s-Number(i)>1e4)&&(sessionStorage.setItem(CM,String(s)),window.location.reload())}render(){return this.state.hasError&&AM(this.state.error)?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:T.jsx($D,{className:"h-6 w-6 text-primary"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"New version available"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:"A new version has been deployed. Refresh to continue."})]}),T.jsx(Y1,{onClick:()=>window.location.reload(),children:"Refresh"})]}):this.state.hasError?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(PS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(Y1,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:"Try again"})]}):this.props.children}}const iae="MCP Workflows",oae="Create workflows using your MCP tools",sae=I.lazy(()=>At(()=>import("./plugin-header-QuC-CYa0.js"),__vite__mapDeps([0,1]))),aae=I.lazy(()=>At(()=>import("./plugin-empty-state-Br_hxiHj.js"),[])),lae={id:iae,description:oae,bindingName:"WORKFLOW",renderHeader:e=>T.jsx(sae,{...e}),renderEmptyState:()=>T.jsx(aae,{}),setup:e=>{e.registerSettingsSidebarItem({key:"workflows",icon:T.jsx(DD,{size:14}),label:"MCP Workflows",to:"/$org/settings/workflows"})}},cae=[lae],ma=t7({component:()=>T.jsx(rae,{children:T.jsx(eae,{children:T.jsx(I.Suspense,{fallback:T.jsx(jD,{}),children:T.jsx(mP,{})})})})}),uae=mt({getParentRoute:()=>ma,path:"/login",component:It(()=>At(()=>import("./login-DIALDSm5.js"),__vite__mapDeps([2,3]))),validateSearch:ul(()=>Ee({next:z().optional(),client_id:z().optional(),redirect_uri:z().optional(),response_type:z().optional(),state:z().optional(),scope:z().optional(),code_challenge:z().optional(),code_challenge_method:z().optional()}))}),dae=mt({getParentRoute:()=>ma,path:"/reset-password",component:It(()=>At(()=>import("./reset-password-D2aXMop6.js"),__vite__mapDeps([4,3]))),validateSearch:ul(()=>Ee({token:z().optional(),error:z().optional()}))}),fae=mt({getParentRoute:()=>ma,path:"/auth/$pathname",component:It(()=>At(()=>import("./auth-catchall-Bu5jQhAC.js"),[]))}),hae=mt({getParentRoute:()=>ma,path:"/oauth/callback",component:It(()=>At(()=>import("./oauth-callback-CwJiDNtE.js"),[]))}),pae=mt({getParentRoute:()=>ma,path:"/oauth/callback/ai-provider",component:It(()=>At(()=>import("./oauth-callback-ai-provider-CHFUhPdk.js"),[]))}),rE=mt({getParentRoute:()=>ma,id:"shell",component:It(()=>At(()=>import("./shell-layout-CbYhZXkk.js").then(e=>e.s),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14])))}),mae=mt({getParentRoute:()=>rE,path:"/",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(!e)return;const t=localStorage.getItem(Rg.lastOrgSlug());if(t){if(e.some(i=>i.slug===t))throw Oc({to:"/$org",params:{org:t}});localStorage.removeItem(Rg.lastOrgSlug())}const n=e[0];throw Oc(n?{to:"/$org",params:{org:n.slug}}:{to:"/onboarding"})}}),gae=mt({getParentRoute:()=>ma,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(e&&e.length>0)throw Oc({to:"/"})},component:It(()=>At(()=>import("./onboarding-BBIuU5UD.js"),__vite__mapDeps([15,8,3,16,17,18,19])))}),iE=mt({getParentRoute:()=>rE,path:"/$org",component:It(()=>At(()=>import("./org-layout-Bk4Xg7Fr.js"),[]))}),oE=mt({getParentRoute:()=>iE,id:"org-shell",component:It(()=>At(()=>import("./index-GcyWPz6h.js"),__vite__mapDeps([20,21,22,7,23,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,39,14,40,41,42,43,44,45,46,47,5,6,8,9,10,11,12,13,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,16,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104])))}),sE=mt({getParentRoute:()=>oE,id:"agent-shell",component:It(()=>At(()=>import("./index-DBWzxGIY.js"),__vite__mapDeps([105,68,6,7,69,3,70,10,11,71,72,55,28,73,38,74,1,14,24,25,26,27,29,30,31,32,17,18,33,34,35,36,37,19,21,22,39,40,41,42,43,44,45,46,47,75,76,77,62,59,67,54,56,57,58,9,12,5,8,13,48,49,50,51,52,53,78,65,16,79,80,81,82,60,83,84,85,63,64,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,106,107,61,23,66,101,102,103,104,108,109,110,111,112,113,114,115,116])))}),vae=Ee({virtualmcpid:z().optional(),tab:z().optional(),main:z().optional(),id:z().optional(),toolName:z().optional(),tasks:St().optional(),mainOpen:St().optional(),chat:St().optional(),autosend:z().optional()}),O6=mt({getParentRoute:()=>sE,path:"/$taskId",validateSearch:vae,component:()=>null}),_ae=mt({getParentRoute:()=>oE,path:"/",component:It(()=>At(()=>import("./index-BgDYzVqv.js"),__vite__mapDeps([117,59,36,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,37,19,38,21,22,7,39,14,40,41,42,43,44,45,46,47,60,11,55,10,12,71,72,6,73,74,70,75,76,77,62,67,68,69,3,54,56,57,58,9,5,8,13,48,49,50,51,52,53,78,65,16,79,80,81,82,83,84,85,63,64,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,102])))}),Pn=mt({getParentRoute:()=>iE,path:"/settings",component:It(()=>At(()=>import("./settings-layout-Ec4qkPOV.js"),__vite__mapDeps([118,21,22,7,29,32,17,33,14,44,46,47,108,89,57,58])))}),yae=mt({getParentRoute:()=>Pn,path:"/",beforeLoad:({params:e})=>{throw Oc({to:"/$org/settings/general",params:{org:e.org}})},component:()=>null}),bae=mt({getParentRoute:()=>Pn,path:"/connections",component:It(()=>At(()=>import("./connections-CUFtJd2B.js"),__vite__mapDeps([119,76,77,120,79,1,33,35,27,22,113,96,115,38,95,91,90,92,70,10,11,12,93,94,75,85,59,36,24,25,26,28,29,30,31,32,17,18,34,37,19,21,7,39,14,40,41,42,43,44,45,46,47,103,121,64,99,122,123,74,6,62,65,16,3,80,97,55,98]))),validateSearch:ul(()=>Ee({action:dn(["create"]).optional(),tab:dn(["all","connected"]).optional()}))}),wae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug",component:It(()=>At(()=>import("./connection-detail-CIGqgms4.js"),__vite__mapDeps([124,76,77,103,98,3,42,45,125,11,67,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,21,22,7,39,14,40,41,43,44,46,47,70,10,126,127,75,92,12,80,107,61,55,102,72,111,96,53,128,129,63,78,59,65,16,121,64,130,131,90,73,85,79]))),validateSearch:ul(()=>Ee({tab:z().optional()}))}),Sae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug/$collectionName/$itemId",component:It(()=>At(()=>import("./collection-detail-BvlusF4T.js"),__vite__mapDeps([132,103,10,11,65,16,3,97,130,21,22,7,133,126,77,127,55,134,49,109,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,39,14,40,41,42,43,44,45,46,47,96,80,113,70,67,6,88,79,59,112,66,135,58,53,125,75,76,92,12,107,61,102,72,90,111,52,54,56,57,9,5,8,13]))),validateSearch:ul(()=>Ee({replayId:z().optional()}))}),Eae=mt({getParentRoute:()=>Pn,path:"/monitor",component:It(()=>At(()=>import("./index-BuV1uoum.js"),__vite__mapDeps([136,115,38,21,22,7,103,96,61,1,30,41,24,25,26,27,28,29,31,32,17,18,33,34,35,36,37,19,39,14,40,42,43,44,45,46,47,134,49,128,129,70,10,11,55,3,74,106,107,80,112,97,95,69,16,59,63,85,131,127,67,90,100,94,137,99,93,48,50,51,6,52,53,54,56,57,58,9,12,5,8,13,104]))),validateSearch:ul(()=>Ee({tab:dn(["overview","audit","threads"]).default("overview"),from:z().default("now-30m"),to:z().default("now"),connectionId:Ie(z()).optional().default([]),virtualMcpId:Ie(z()).optional().default([]),tool:z().default(""),status:dn(["all","success","errors"]).default("all"),search:z().default(""),page:St().optional(),streaming:Pt().default(!0),propertyFilters:z().default(""),hideSystem:Pt().default(!1)}))}),xae=mt({getParentRoute:()=>Pn,path:"/general",component:It(()=>At(()=>import("./general-BiVCLvSZ.js"),__vite__mapDeps([138,21,22,7,129,63,46,3,84,85,31,139,87,11,69,101,38,55,10,61,60,24,25,26,27,28,29,30,32,17,18,1,33,34,35,36,37,19,39,14,40,41,42,43,44,45,47,59,12])))}),Rae=mt({getParentRoute:()=>Pn,path:"/features",component:It(()=>At(()=>import("./features-Dj1Ja9zf.js"),__vite__mapDeps([140,21,22,7,12,11,69,36,84,85,31])))}),Oae=mt({getParentRoute:()=>Pn,path:"/brand-context",component:It(()=>At(()=>import("./brand-context-CvUPXtOc.js"),__vite__mapDeps([141,11,1,33,37,39,42,45,7,47,64,3,97,21,22,87])))}),Tae=mt({getParentRoute:()=>Pn,path:"/ai-providers",component:It(()=>At(()=>import("./ai-providers-HK6-f1zC.js"),__vite__mapDeps([142,82,74,1,3,6,7,62,22,80,34,60,26,28,38,43,56,11,54,55,10,57,58,9,12,83,47,25,18,45,21,84,85,31,69,81,63,46,64,86,51,87])))}),Cae=mt({getParentRoute:()=>Pn,path:"/members",component:It(()=>At(()=>import("./members-CMmMYv-N.js"),__vite__mapDeps([143,120,79,1,33,35,27,22,113,96,115,38,21,7,144,137,103,6,65,16,80,34,97,129,145,128,11,64,63,46,85,44,45,74,106,107,61,42])))}),Aae=mt({getParentRoute:()=>Pn,path:"/roles",component:It(()=>At(()=>import("./roles-Bi1faVdQ.js"),__vite__mapDeps([146,145,129,96,64,79,1,33,35,14,42,45,144,137,27,21,22,7,103,115,38,83,59,36,24,25,26,28,29,30,31,32,17,18,34,37,19,39,40,41,43,44,46,47,99,74,100,94,11,73,128,70,10,56,63,69,84,85]))),validateSearch:ul(()=>Ee({role:z().optional()}))}),Iae=mt({getParentRoute:()=>Pn,path:"/sso",component:It(()=>At(()=>import("./sso-Ba2kuqx_.js"),__vite__mapDeps([147,139,87,11,69,84,85,31,21,22,7,3,13,45])))}),Mae=mt({getParentRoute:()=>Pn,path:"/profile",component:It(()=>At(()=>import("./profile-C75k6bGK.js"),__vite__mapDeps([148,21,22,7,63,46,69,80,1,34,81,3,40,41,89,66,84,85,31])))}),Pae=mt({getParentRoute:()=>Pn,path:"/store",component:It(()=>At(()=>import("./store-CSO-FxwQ.js"),__vite__mapDeps([149,25,33,42,45,3,69,60,63,46,61,70,10,11,21,22,7,92,12,84,85,31])))}),Nae=mt({getParentRoute:()=>Pn,path:"/registry",component:It(()=>At(()=>import("./registry--RTDdsXm.js"),[]))}),kae=mt({getParentRoute:()=>Pn,path:"/store/registry",component:It(()=>At(()=>import("./store-registry-DfXuWLiQ.js"),[]))}),Dae=mt({getParentRoute:()=>Pn,path:"/workflows",component:It(()=>At(()=>import("./workflow-Cr24Zx7K.js"),__vite__mapDeps([150,11,76,77,120,79,1,33,35,27,22,113,96,73,38,85,59,36,24,25,26,28,29,30,31,32,17,18,34,37,19,21,7,39,14,40,41,42,43,44,45,46,47,144,137,135,110,63,103,122,123,90,64,10,70,130])))}),Lae=mt({getParentRoute:()=>Pn,path:"/workflows/$itemId",component:It(()=>At(()=>import("./workflow-detail-AwMahm0M.js"),__vite__mapDeps([151,133,126,11,77,127,55,10,134,49,109,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,21,22,7,39,14,40,41,42,43,44,45,46,47,96,80,113,130,70,67,6,88,79,59,112,66,135,58,3])))}),$ae=mt({getParentRoute:()=>sE,path:"/plugins/$pluginId",component:It(()=>At(()=>import("./org-plugin-layout-3GybENC2.js"),__vite__mapDeps([152,153,70,10,11,43,21,22,7])))}),jae=mt({getParentRoute:()=>Pn,path:"/agents",component:It(()=>At(()=>import("./agents-list-Bx-2M0dx.js"),__vite__mapDeps([154,79,1,33,35,17,71,11,72,55,10,6,7,28,73,38,74,70,14,24,25,26,27,29,30,31,32,18,34,36,37,19,21,22,39,40,41,42,43,44,45,46,47,75,76,77,62,59,67,85,86,51,103,102,64,115])))}),Uae=mt({getParentRoute:()=>Pn,path:"/automations",component:It(()=>At(()=>import("./automations-BANsoXxo.js"),__vite__mapDeps([155,42,47,115,38,21,22,7,103,114,64,79,1,33,35,24,25,26,27,28,29,30,31,32,17,18,34,36,37,19,39,14,40,41,43,44,45,46,55,10,11,72])))}),T6=mt({getParentRoute:()=>O6,path:"/$pluginId",component:It(()=>At(()=>import("./dynamic-plugin-layout-DofOvgRG.js"),__vite__mapDeps([156,153,70,10,11,43,21,22,7])))}),zae=[],Fae=[],Bae=[],C6=[];cae.forEach(e=>{if(!e.setup)return;const t={parentRoute:T6,routing:{createRoute:mt,lazyRouteComponent:It},registerRootSidebarItem:n=>zae.push({pluginId:e.id,...n}),registerSidebarGroup:n=>Fae.push({pluginId:e.id,...n}),registerSettingsSidebarItem:n=>Bae.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{C6.push(...n)}};e.setup(t)});const Vae=T6.addChildren(C6),qae=Pn.addChildren([yae,bae,wae,Sae,jae,Uae,Eae,xae,Rae,Oae,Tae,Cae,Aae,Iae,Mae,Pae,kae,Nae,Dae,Lae]),Hae=O6.addChildren([Vae]),Gae=sE.addChildren([Hae,$ae]),Kae=oE.addChildren([_ae,Gae]),Zae=iE.addChildren([Kae,qae]),Yae=rE.addChildren([mae,Zae]),Wae=ma.addChildren([Yae,gae,uae,dae,fae,hae,pae]),Qae=u7({routeTree:Wae,defaultNotFoundComponent:()=>T.jsx("div",{className:"flex h-full items-center justify-center",children:T.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[T.jsx("h3",{className:"text-lg font-medium text-foreground",children:"Page not found"}),T.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:"The page you are looking for does not exist or has been moved."}),T.jsx("button",{type:"button",onClick:()=>window.history.back(),className:"text-sm text-primary hover:underline",children:"Go back"})]})})}),Xae=document.getElementById("root");Q$.createRoot(Xae).render(T.jsx(I.StrictMode,{children:T.jsx(h7,{router:Qae})}));export{KM as $,Ile as A,Y1 as B,To as C,tG as D,rce as E,Jle as F,tce as G,Ee as H,St as I,z as J,GM as K,dw as L,$D as M,lle as N,mP as O,Zse as P,Hse as Q,Rg as R,jD as S,LJ as T,Yr as U,Xle as V,zae as W,Fae as X,iae as Y,DD as Z,At as _,kj as a,Ye as a$,ole as a0,xo as a1,eee as a2,ht as a3,no as a4,cW as a5,uW as a6,yn as a7,lt as a8,dW as a9,t4 as aA,sY as aB,cY as aC,aY as aD,ZZ as aE,Rle as aF,Bae as aG,ele as aH,Ut as aI,Xt as aJ,Ie as aK,JH as aL,Qle as aM,Wle as aN,qS as aO,vg as aP,DY as aQ,x4 as aR,X3 as aS,lf as aT,ta as aU,kY as aV,ds as aW,y3 as aX,$w as aY,Wr as aZ,Pt as a_,fW as aa,mW as ab,bW as ac,I4 as ad,fl as ae,hW as af,pW as ag,gW as ah,vW as ai,_W as aj,yW as ak,wW as al,EW as am,xW as an,Ig as ao,dn as ap,fC as aq,W1 as ar,iY as as,ro as at,Kd as au,Yw as av,jc as aw,aa as ax,fs as ay,io as az,Mg as b,nZ as b$,RV as b0,BP as b1,hw as b2,Rk as b3,Tk as b4,YW as b5,Wn as b6,wQ as b7,d4 as b8,Q3 as b9,wre as bA,xre as bB,Dre as bC,Zre as bD,Qre as bE,bre as bF,Sre as bG,Rre as bH,Ore as bI,Lre as bJ,qre as bK,Vle as bL,cae as bM,pV as bN,cle as bO,ple as bP,gq as bQ,ul as bR,VN as bS,GN as bT,dle as bU,nce as bV,rG as bW,nG as bX,u3 as bY,pf as bZ,eZ as b_,nae as ba,la as bb,ne as bc,Jae as bd,iZ as be,Dle as bf,uP as bg,ca as bh,as as bi,kle as bj,Lle as bk,rn as bl,ule as bm,qN as bn,zre as bo,Fre as bp,BS as bq,l6 as br,VS as bs,nv as bt,GD as bu,tie as bv,ZD as bw,Wre as bx,cie as by,yre as bz,tae as c,n6 as c$,rZ as c0,af as c1,qM as c2,Aj as c3,S4 as c4,wY as c5,zw as c6,h4 as c7,k3 as c8,Fw as c9,Yle as cA,eoe as cB,pt as cC,Hoe as cD,to as cE,XW as cF,fP as cG,Cle as cH,oZ as cI,sZ as cJ,tZ as cK,aZ as cL,Bz as cM,HD as cN,YD as cO,XD as cP,e6 as cQ,t6 as cR,r6 as cS,Fle as cT,Ble as cU,Ule as cV,zle as cW,Jne as cX,jle as cY,WD as cZ,JD as c_,Gd as ca,R3 as cb,Uw as cc,jw as cd,SY as ce,EY as cf,oQ as cg,sQ as ch,iQ as ci,Or as cj,ale as ck,QH as cl,YH as cm,HH as cn,n3 as co,HV as cp,ww as cq,EV as cr,fle as cs,ZV as ct,Ew as cu,Sw as cv,XV as cw,hle as cx,Zle as cy,_se as cz,uw as d,Hle as d0,QD as d1,Kle as d2,NS as d3,fre as d4,$le as d5,qD as d6,Die as d7,Vre as d8,Gle as d9,Tie as da,Iie as db,die as dc,uie as dd,qle as de,mle as df,BW as dg,VW as dh,GW as di,qW as dj,HW as dk,_le as dl,yle as dm,Ele as dn,xle as dp,Ole as dq,Sle as dr,wle as ds,ble as dt,vle as du,gle as dv,UM as dw,yO as dx,nle as dy,tle as dz,Ro as e,rf as f,cw as g,Mle as h,Ale as i,T as j,Ple as k,LD as l,ece as m,Nj as n,tw as o,PM as p,Zn as q,I as r,Xne as s,Nle as t,sle as u,ile as v,HM as w,RT as x,PS as y,Oo as z};
171
+ `),document.head.appendChild(r)}}function Xse(e){const t=Ro.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:GM.publicConfig(),queryFn:Wse,staleTime:1/0},t[0]=r):r=t[0];const{data:i}=HM(r),[s]=Zse();i.internalUrl&&Use(i.internalUrl);let l,c;t[1]!==i.theme?(l=()=>{Qse(i.theme)},c=[i.theme],t[1]=i.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),I.useLayoutEffect(l,c);let d,f;t[4]!==s.theme?(d=()=>{const p=document.documentElement;if(s.theme==="dark"){p.classList.add("dark");return}if(s.theme==="light"){p.classList.remove("dark");return}const g=window.matchMedia("(prefers-color-scheme: dark)"),v=b=>p.classList.toggle("dark",b);v(g.matches);const y=b=>v(b.matches);return g.addEventListener("change",y),()=>g.removeEventListener("change",y)},f=[s.theme],t[4]=s.theme,t[5]=d,t[6]=f):(d=t[5],f=t[6]),I.useLayoutEffect(d,f);let m;return t[7]!==n?(m=T.jsx(T.Fragment,{children:n}),t[7]=n,t[8]=m):m=t[8],m}const Jse=new bj({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});function eae(e){const t=Ro.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=T.jsx(hH,{}),t[0]=r):r=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx(jD,{}),t[1]=i):i=t[1];let s;return t[2]!==n?(s=T.jsxs(wj,{client:Jse,children:[r,T.jsx(I.Suspense,{fallback:i,children:T.jsx(Xse,{children:T.jsx(Lj,{children:T.jsx(Fee,{children:T.jsx(Wne,{children:n})})})})})]}),t[2]=n,t[3]=s):s=t[3],s}function tae(...e){return BP(hw(e))}const nae=y3("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function Y1(e){const t=Ro.c(14);let n,r,i,s,l;t[0]!==e?({className:n,variant:l,size:i,asChild:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=s,t[5]=l):(n=t[1],r=t[2],i=t[3],s=t[4],l=t[5]);const d=(s===void 0?!1:s)?$w:"button";let f;t[6]!==n||t[7]!==i||t[8]!==l?(f=tae(nae({variant:l,size:i,className:n})),t[6]=n,t[7]=i,t[8]=l,t[9]=f):f=t[9];let m;return t[10]!==d||t[11]!==r||t[12]!==f?(m=T.jsx(d,{"data-slot":"button",className:f,...r}),t[10]=d,t[11]=r,t[12]=f,t[13]=m):m=t[13],m}const CM="__mesh_chunk_reload_ts";function AM(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class rce extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n),kD(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:T.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(PS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(Y1,{variant:"outline",onClick:this.resetError,children:"Try again"})]})}return this.props.children}}class rae extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n);const r=AM(t);if(kD(t,{boundary:"chunk_root",is_chunk_load_error:r,error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!r)return;const i=sessionStorage.getItem(CM),s=Date.now();(!i||s-Number(i)>1e4)&&(sessionStorage.setItem(CM,String(s)),window.location.reload())}render(){return this.state.hasError&&AM(this.state.error)?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:T.jsx($D,{className:"h-6 w-6 text-primary"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"New version available"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:"A new version has been deployed. Refresh to continue."})]}),T.jsx(Y1,{onClick:()=>window.location.reload(),children:"Refresh"})]}):this.state.hasError?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(PS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(Y1,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:"Try again"})]}):this.props.children}}const iae="MCP Workflows",oae="Create workflows using your MCP tools",sae=I.lazy(()=>At(()=>import("./plugin-header-DbdW6vY7.js"),__vite__mapDeps([0,1]))),aae=I.lazy(()=>At(()=>import("./plugin-empty-state-dVIN074A.js"),[])),lae={id:iae,description:oae,bindingName:"WORKFLOW",renderHeader:e=>T.jsx(sae,{...e}),renderEmptyState:()=>T.jsx(aae,{}),setup:e=>{e.registerSettingsSidebarItem({key:"workflows",icon:T.jsx(DD,{size:14}),label:"MCP Workflows",to:"/$org/settings/workflows"})}},cae=[lae],ma=t7({component:()=>T.jsx(rae,{children:T.jsx(eae,{children:T.jsx(I.Suspense,{fallback:T.jsx(jD,{}),children:T.jsx(mP,{})})})})}),uae=mt({getParentRoute:()=>ma,path:"/login",component:It(()=>At(()=>import("./login-Bxl4_mYU.js"),__vite__mapDeps([2,3]))),validateSearch:ul(()=>Ee({next:z().optional(),client_id:z().optional(),redirect_uri:z().optional(),response_type:z().optional(),state:z().optional(),scope:z().optional(),code_challenge:z().optional(),code_challenge_method:z().optional()}))}),dae=mt({getParentRoute:()=>ma,path:"/reset-password",component:It(()=>At(()=>import("./reset-password-C7rUh7yQ.js"),__vite__mapDeps([4,3]))),validateSearch:ul(()=>Ee({token:z().optional(),error:z().optional()}))}),fae=mt({getParentRoute:()=>ma,path:"/auth/$pathname",component:It(()=>At(()=>import("./auth-catchall-CD4rfnTW.js"),[]))}),hae=mt({getParentRoute:()=>ma,path:"/oauth/callback",component:It(()=>At(()=>import("./oauth-callback-mZUzyh0o.js"),[]))}),pae=mt({getParentRoute:()=>ma,path:"/oauth/callback/ai-provider",component:It(()=>At(()=>import("./oauth-callback-ai-provider-DfBUG-m3.js"),[]))}),rE=mt({getParentRoute:()=>ma,id:"shell",component:It(()=>At(()=>import("./shell-layout-yjk12_bc.js").then(e=>e.s),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14])))}),mae=mt({getParentRoute:()=>rE,path:"/",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(!e)return;const t=localStorage.getItem(Rg.lastOrgSlug());if(t){if(e.some(i=>i.slug===t))throw Oc({to:"/$org",params:{org:t}});localStorage.removeItem(Rg.lastOrgSlug())}const n=e[0];throw Oc(n?{to:"/$org",params:{org:n.slug}}:{to:"/onboarding"})}}),gae=mt({getParentRoute:()=>ma,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(e&&e.length>0)throw Oc({to:"/"})},component:It(()=>At(()=>import("./onboarding-C5IoSpHh.js"),__vite__mapDeps([15,8,3,16,17,18,19])))}),iE=mt({getParentRoute:()=>rE,path:"/$org",component:It(()=>At(()=>import("./org-layout-CyD6hmWc.js"),[]))}),oE=mt({getParentRoute:()=>iE,id:"org-shell",component:It(()=>At(()=>import("./index-8xDSjspo.js"),__vite__mapDeps([20,21,22,7,23,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,39,14,40,41,42,43,44,45,46,47,5,6,8,9,10,11,12,13,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,16,3,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104])))}),sE=mt({getParentRoute:()=>oE,id:"agent-shell",component:It(()=>At(()=>import("./index-m0seQOic.js"),__vite__mapDeps([105,68,6,7,69,3,70,10,11,71,72,55,28,73,38,74,1,14,24,25,26,27,29,30,31,32,17,18,33,34,35,36,37,19,21,22,39,40,41,42,43,44,45,46,47,75,76,77,62,59,67,54,56,57,58,9,12,5,8,13,48,49,50,51,52,53,78,65,16,79,80,81,82,60,83,84,85,63,64,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,106,107,61,23,66,101,102,103,104,108,109,110,111,112,113,114,115,116])))}),vae=Ee({virtualmcpid:z().optional(),tab:z().optional(),main:z().optional(),id:z().optional(),toolName:z().optional(),tasks:St().optional(),mainOpen:St().optional(),chat:St().optional(),autosend:z().optional()}),O6=mt({getParentRoute:()=>sE,path:"/$taskId",validateSearch:vae,component:()=>null}),_ae=mt({getParentRoute:()=>oE,path:"/",component:It(()=>At(()=>import("./index-BHV6aSRG.js"),__vite__mapDeps([117,59,36,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,37,19,38,21,22,7,39,14,40,41,42,43,44,45,46,47,60,11,55,10,12,71,72,6,73,74,70,75,76,77,62,67,68,69,3,54,56,57,58,9,5,8,13,48,49,50,51,52,53,78,65,16,79,80,81,82,83,84,85,63,64,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,102])))}),Pn=mt({getParentRoute:()=>iE,path:"/settings",component:It(()=>At(()=>import("./settings-layout-CBdTbv9p.js"),__vite__mapDeps([118,21,22,7,29,32,17,33,14,44,46,47,108,89,57,58])))}),yae=mt({getParentRoute:()=>Pn,path:"/",beforeLoad:({params:e})=>{throw Oc({to:"/$org/settings/general",params:{org:e.org}})},component:()=>null}),bae=mt({getParentRoute:()=>Pn,path:"/connections",component:It(()=>At(()=>import("./connections-ncYXmxGJ.js"),__vite__mapDeps([119,76,77,120,79,1,33,35,27,22,113,96,115,38,95,91,90,92,70,10,11,12,93,94,75,85,59,36,24,25,26,28,29,30,31,32,17,18,34,37,19,21,7,39,14,40,41,42,43,44,45,46,47,103,121,64,99,122,123,74,6,62,65,16,3,80,97,55,98]))),validateSearch:ul(()=>Ee({action:dn(["create"]).optional(),tab:dn(["all","connected"]).optional()}))}),wae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug",component:It(()=>At(()=>import("./connection-detail-Cmgz9yRr.js"),__vite__mapDeps([124,76,77,103,98,3,42,45,125,11,67,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,21,22,7,39,14,40,41,43,44,46,47,70,10,126,127,75,92,12,80,107,61,55,102,72,111,96,53,128,129,63,78,59,65,16,121,64,130,131,90,73,85,79]))),validateSearch:ul(()=>Ee({tab:z().optional()}))}),Sae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug/$collectionName/$itemId",component:It(()=>At(()=>import("./collection-detail-D-3DNG_M.js"),__vite__mapDeps([132,103,10,11,65,16,3,97,130,21,22,7,133,126,77,127,55,134,49,109,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,39,14,40,41,42,43,44,45,46,47,96,80,113,70,67,6,88,79,59,112,66,135,58,53,125,75,76,92,12,107,61,102,72,90,111,52,54,56,57,9,5,8,13]))),validateSearch:ul(()=>Ee({replayId:z().optional()}))}),Eae=mt({getParentRoute:()=>Pn,path:"/monitor",component:It(()=>At(()=>import("./index-LWzmvmvR.js"),__vite__mapDeps([136,115,38,21,22,7,103,96,61,1,30,41,24,25,26,27,28,29,31,32,17,18,33,34,35,36,37,19,39,14,40,42,43,44,45,46,47,134,49,128,129,70,10,11,55,3,74,106,107,80,112,97,95,69,16,59,63,85,131,127,67,90,100,94,137,99,93,48,50,51,6,52,53,54,56,57,58,9,12,5,8,13,104]))),validateSearch:ul(()=>Ee({tab:dn(["overview","audit","threads"]).default("overview"),from:z().default("now-30m"),to:z().default("now"),connectionId:Ie(z()).optional().default([]),virtualMcpId:Ie(z()).optional().default([]),tool:z().default(""),status:dn(["all","success","errors"]).default("all"),search:z().default(""),page:St().optional(),streaming:Pt().default(!0),propertyFilters:z().default(""),hideSystem:Pt().default(!1)}))}),xae=mt({getParentRoute:()=>Pn,path:"/general",component:It(()=>At(()=>import("./general-7ljwSAxI.js"),__vite__mapDeps([138,21,22,7,129,63,46,3,84,85,31,139,87,11,69,101,38,55,10,61,60,24,25,26,27,28,29,30,32,17,18,1,33,34,35,36,37,19,39,14,40,41,42,43,44,45,47,59,12])))}),Rae=mt({getParentRoute:()=>Pn,path:"/features",component:It(()=>At(()=>import("./features-DTyLbScZ.js"),__vite__mapDeps([140,21,22,7,12,11,69,36,84,85,31])))}),Oae=mt({getParentRoute:()=>Pn,path:"/brand-context",component:It(()=>At(()=>import("./brand-context-Cdhkr07K.js"),__vite__mapDeps([141,11,1,33,37,39,42,45,7,47,64,3,97,21,22,87])))}),Tae=mt({getParentRoute:()=>Pn,path:"/ai-providers",component:It(()=>At(()=>import("./ai-providers-CYFZTFTL.js"),__vite__mapDeps([142,82,74,1,3,6,7,62,22,80,34,60,26,28,38,43,56,11,54,55,10,57,58,9,12,83,47,25,18,45,21,84,85,31,69,81,63,46,64,86,51,87])))}),Cae=mt({getParentRoute:()=>Pn,path:"/members",component:It(()=>At(()=>import("./members-zvpqbNiS.js"),__vite__mapDeps([143,120,79,1,33,35,27,22,113,96,115,38,21,7,144,137,103,6,65,16,80,34,97,129,145,128,11,64,63,46,85,44,45,74,106,107,61,42])))}),Aae=mt({getParentRoute:()=>Pn,path:"/roles",component:It(()=>At(()=>import("./roles-C_9lgwGC.js"),__vite__mapDeps([146,145,129,96,64,79,1,33,35,14,42,45,144,137,27,21,22,7,103,115,38,83,59,36,24,25,26,28,29,30,31,32,17,18,34,37,19,39,40,41,43,44,46,47,99,74,100,94,11,73,128,70,10,56,63,69,84,85]))),validateSearch:ul(()=>Ee({role:z().optional()}))}),Iae=mt({getParentRoute:()=>Pn,path:"/sso",component:It(()=>At(()=>import("./sso-CO-nJSkq.js"),__vite__mapDeps([147,139,87,11,69,84,85,31,21,22,7,3,13,45])))}),Mae=mt({getParentRoute:()=>Pn,path:"/profile",component:It(()=>At(()=>import("./profile-BVqUNHDU.js"),__vite__mapDeps([148,21,22,7,63,46,69,80,1,34,81,3,40,41,89,66,84,85,31])))}),Pae=mt({getParentRoute:()=>Pn,path:"/store",component:It(()=>At(()=>import("./store-DO05KZgT.js"),__vite__mapDeps([149,25,33,42,45,3,69,60,63,46,61,70,10,11,21,22,7,92,12,84,85,31])))}),Nae=mt({getParentRoute:()=>Pn,path:"/registry",component:It(()=>At(()=>import("./registry-Dgo0smSq.js"),[]))}),kae=mt({getParentRoute:()=>Pn,path:"/store/registry",component:It(()=>At(()=>import("./store-registry-DjJ5a3G8.js"),[]))}),Dae=mt({getParentRoute:()=>Pn,path:"/workflows",component:It(()=>At(()=>import("./workflow-ICx7IBZn.js"),__vite__mapDeps([150,11,76,77,120,79,1,33,35,27,22,113,96,73,38,85,59,36,24,25,26,28,29,30,31,32,17,18,34,37,19,21,7,39,14,40,41,42,43,44,45,46,47,144,137,135,110,63,103,122,123,90,64,10,70,130])))}),Lae=mt({getParentRoute:()=>Pn,path:"/workflows/$itemId",component:It(()=>At(()=>import("./workflow-detail-CtIO-XFb.js"),__vite__mapDeps([151,133,126,11,77,127,55,10,134,49,109,24,25,26,27,28,29,30,31,32,17,18,1,33,34,35,36,37,19,38,21,22,7,39,14,40,41,42,43,44,45,46,47,96,80,113,130,70,67,6,88,79,59,112,66,135,58,3])))}),$ae=mt({getParentRoute:()=>sE,path:"/plugins/$pluginId",component:It(()=>At(()=>import("./org-plugin-layout-BUW4YpUf.js"),__vite__mapDeps([152,153,70,10,11,43,21,22,7])))}),jae=mt({getParentRoute:()=>Pn,path:"/agents",component:It(()=>At(()=>import("./agents-list-Dj4emYPF.js"),__vite__mapDeps([154,79,1,33,35,17,71,11,72,55,10,6,7,28,73,38,74,70,14,24,25,26,27,29,30,31,32,18,34,36,37,19,21,22,39,40,41,42,43,44,45,46,47,75,76,77,62,59,67,85,86,51,103,102,64,115])))}),Uae=mt({getParentRoute:()=>Pn,path:"/automations",component:It(()=>At(()=>import("./automations-DcwcFfNp.js"),__vite__mapDeps([155,42,47,115,38,21,22,7,103,114,64,79,1,33,35,24,25,26,27,28,29,30,31,32,17,18,34,36,37,19,39,14,40,41,43,44,45,46,55,10,11,72])))}),T6=mt({getParentRoute:()=>O6,path:"/$pluginId",component:It(()=>At(()=>import("./dynamic-plugin-layout-Dlh_QnjI.js"),__vite__mapDeps([156,153,70,10,11,43,21,22,7])))}),zae=[],Fae=[],Bae=[],C6=[];cae.forEach(e=>{if(!e.setup)return;const t={parentRoute:T6,routing:{createRoute:mt,lazyRouteComponent:It},registerRootSidebarItem:n=>zae.push({pluginId:e.id,...n}),registerSidebarGroup:n=>Fae.push({pluginId:e.id,...n}),registerSettingsSidebarItem:n=>Bae.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{C6.push(...n)}};e.setup(t)});const Vae=T6.addChildren(C6),qae=Pn.addChildren([yae,bae,wae,Sae,jae,Uae,Eae,xae,Rae,Oae,Tae,Cae,Aae,Iae,Mae,Pae,kae,Nae,Dae,Lae]),Hae=O6.addChildren([Vae]),Gae=sE.addChildren([Hae,$ae]),Kae=oE.addChildren([_ae,Gae]),Zae=iE.addChildren([Kae,qae]),Yae=rE.addChildren([mae,Zae]),Wae=ma.addChildren([Yae,gae,uae,dae,fae,hae,pae]),Qae=u7({routeTree:Wae,defaultNotFoundComponent:()=>T.jsx("div",{className:"flex h-full items-center justify-center",children:T.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[T.jsx("h3",{className:"text-lg font-medium text-foreground",children:"Page not found"}),T.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:"The page you are looking for does not exist or has been moved."}),T.jsx("button",{type:"button",onClick:()=>window.history.back(),className:"text-sm text-primary hover:underline",children:"Go back"})]})})}),Xae=document.getElementById("root");Q$.createRoot(Xae).render(T.jsx(I.StrictMode,{children:T.jsx(h7,{router:Qae})}));export{KM as $,Ile as A,Y1 as B,To as C,tG as D,rce as E,Jle as F,tce as G,Ee as H,St as I,z as J,GM as K,dw as L,$D as M,lle as N,mP as O,Zse as P,Hse as Q,Rg as R,jD as S,LJ as T,Yr as U,Xle as V,zae as W,Fae as X,iae as Y,DD as Z,At as _,kj as a,Ye as a$,ole as a0,xo as a1,eee as a2,ht as a3,no as a4,cW as a5,uW as a6,yn as a7,lt as a8,dW as a9,t4 as aA,sY as aB,cY as aC,aY as aD,ZZ as aE,Rle as aF,Bae as aG,ele as aH,Ut as aI,Xt as aJ,Ie as aK,JH as aL,Qle as aM,Wle as aN,qS as aO,vg as aP,DY as aQ,x4 as aR,X3 as aS,lf as aT,ta as aU,kY as aV,ds as aW,y3 as aX,$w as aY,Wr as aZ,Pt as a_,fW as aa,mW as ab,bW as ac,I4 as ad,fl as ae,hW as af,pW as ag,gW as ah,vW as ai,_W as aj,yW as ak,wW as al,EW as am,xW as an,Ig as ao,dn as ap,fC as aq,W1 as ar,iY as as,ro as at,Kd as au,Yw as av,jc as aw,aa as ax,fs as ay,io as az,Mg as b,nZ as b$,RV as b0,BP as b1,hw as b2,Rk as b3,Tk as b4,YW as b5,Wn as b6,wQ as b7,d4 as b8,Q3 as b9,wre as bA,xre as bB,Dre as bC,Zre as bD,Qre as bE,bre as bF,Sre as bG,Rre as bH,Ore as bI,Lre as bJ,qre as bK,Vle as bL,cae as bM,pV as bN,cle as bO,ple as bP,gq as bQ,ul as bR,VN as bS,GN as bT,dle as bU,nce as bV,rG as bW,nG as bX,u3 as bY,pf as bZ,eZ as b_,nae as ba,la as bb,ne as bc,Jae as bd,iZ as be,Dle as bf,uP as bg,ca as bh,as as bi,kle as bj,Lle as bk,rn as bl,ule as bm,qN as bn,zre as bo,Fre as bp,BS as bq,l6 as br,VS as bs,nv as bt,GD as bu,tie as bv,ZD as bw,Wre as bx,cie as by,yre as bz,tae as c,n6 as c$,rZ as c0,af as c1,qM as c2,Aj as c3,S4 as c4,wY as c5,zw as c6,h4 as c7,k3 as c8,Fw as c9,Yle as cA,eoe as cB,pt as cC,Hoe as cD,to as cE,XW as cF,fP as cG,Cle as cH,oZ as cI,sZ as cJ,tZ as cK,aZ as cL,Bz as cM,HD as cN,YD as cO,XD as cP,e6 as cQ,t6 as cR,r6 as cS,Fle as cT,Ble as cU,Ule as cV,zle as cW,Jne as cX,jle as cY,WD as cZ,JD as c_,Gd as ca,R3 as cb,Uw as cc,jw as cd,SY as ce,EY as cf,oQ as cg,sQ as ch,iQ as ci,Or as cj,ale as ck,QH as cl,YH as cm,HH as cn,n3 as co,HV as cp,ww as cq,EV as cr,fle as cs,ZV as ct,Ew as cu,Sw as cv,XV as cw,hle as cx,Zle as cy,_se as cz,uw as d,Hle as d0,QD as d1,Kle as d2,NS as d3,fre as d4,$le as d5,qD as d6,Die as d7,Vre as d8,Gle as d9,Tie as da,Iie as db,die as dc,uie as dd,qle as de,mle as df,BW as dg,VW as dh,GW as di,qW as dj,HW as dk,_le as dl,yle as dm,Ele as dn,xle as dp,Ole as dq,Sle as dr,wle as ds,ble as dt,vle as du,gle as dv,UM as dw,yO as dx,nle as dy,tle as dz,Ro as e,rf as f,cw as g,Mle as h,Ale as i,T as j,Ple as k,LD as l,ece as m,Nj as n,tw as o,PM as p,Zn as q,I as r,Xne as s,Nle as t,sle as u,ile as v,HM as w,RT as x,PS as y,Oo as z};
@@ -1,4 +1,4 @@
1
- import{cp as Fe,bn as Os,J as oe,I as ge,a_ as ti,bS as _i,aK as Ie,bl as mt,a$ as qe,ap as mr,cq as rn,H as _e,cr as Ii,cs as ws,ct as ec,bQ as tc,cu as ia,cv as nc,cw as rc,cx as ic,cy as fn,cz as Tr,cA as xs,bL as sa,bD as sc,aJ as ze,bR as oc,aI as On,bb as Ci,cB as ac,r as N,j as w,cC as oa,cD as lc}from"./index-BMDRqzuB.js";import{e as cc,f as uc,n as fc,h as dc,C as hc,A as pc}from"./constants-Bcmyvnig.js";import{B as Ti,c as Pi}from"./collections-CHU5RniR.js";import{R as Es}from"./index-CqQUHzq_.js";var mc=class{apply(e,t){if(!t.type)return;const n=Array.isArray(t.type)?t.type:[t.type],r=new Set(n);if(r.has("string")||(e.string=!1),!r.has("number")&&!r.has("integer")&&(e.number=!1),r.has("boolean")||(e.boolean=!1),r.has("null")||(e.null=!1),r.has("array")||(e.array=!1),r.has("object")||(e.object=!1),r.has("integer")&&e.number!==!1){const i=e.number||ge();i instanceof rn&&(e.number=i.int())}}},yc=class{apply(e,t){if(t.const===void 0)return;const n=t.const;e.string=!1,e.number=!1,e.boolean=!1,e.null=!1,e.array=!1,e.object=!1,typeof n=="string"?e.string=qe(n):typeof n=="number"?e.number=qe(n):typeof n=="boolean"?e.boolean=qe(n):n===null?e.null=_i():Array.isArray(n)?e.array=void 0:typeof n=="object"&&(e.object=void 0)}},gc=class{apply(e,t){if(!t.enum)return;if(t.enum.length===0){t.type||(e.string=!1,e.number=!1,e.boolean=!1,e.null=!1,e.array=!1,e.object=!1);return}const n={string:t.enum.filter(r=>typeof r=="string"),number:t.enum.filter(r=>typeof r=="number"),boolean:t.enum.filter(r=>typeof r=="boolean"),null:t.enum.filter(r=>r===null),array:t.enum.filter(r=>Array.isArray(r)),object:t.enum.filter(r=>typeof r=="object"&&r!==null&&!Array.isArray(r))};e.string=this.createTypeSchema(n.string,"string"),e.number=this.createTypeSchema(n.number,"number"),e.boolean=this.createTypeSchema(n.boolean,"boolean"),e.null=n.null.length>0?_i():!1,e.array=n.array.length>0?void 0:!1,e.object=n.object.length>0?void 0:!1}createTypeSchema(e,t){if(e.length===0)return!1;if(e.length===1)return qe(e[0]);if(t==="string")return mr(e);if(t==="number"){const[n,r,...i]=e;return mt([qe(n),qe(r),...i.map(s=>qe(s))])}return t==="boolean"?mt([qe(!0),qe(!1)]):!1}},bc=class{apply(e,t){const n=t;if(n.type==="string"&&n.format==="binary"&&n.contentEncoding==="binary"){let r=ic();n.minLength!==void 0&&(r=r.min(n.minLength)),n.maxLength!==void 0&&(r=r.max(n.maxLength)),n.contentMediaType!==void 0&&(r=r.mime(n.contentMediaType)),e.file=r,e.string=!1}}},Sc=class{apply(e,t){const n=t;t.type===void 0&&(n.minLength!==void 0||n.maxLength!==void 0||n.pattern!==void 0)&&e.string===void 0&&(e.string=oe())}},vc=class{apply(e,t){const n=t;if(n.minLength!==void 0&&e.string!==!1){const r=e.string||oe();r instanceof Ii&&(e.string=r.refine(i=>Array.from(i).length>=n.minLength,{message:`String must be at least ${n.minLength} characters long`}))}}},Oc=class{apply(e,t){const n=t;if(n.maxLength!==void 0&&e.string!==!1){const r=e.string||oe();r instanceof Ii&&(e.string=r.refine(i=>Array.from(i).length<=n.maxLength,{message:`String must be at most ${n.maxLength} characters long`}))}}},wc=class{apply(e,t){const n=t;if(n.pattern&&e.string!==!1){const r=e.string||oe();if(r instanceof Ii){const i=new RegExp(n.pattern);e.string=r.regex(i)}}}},xc=class{apply(e,t){const n=t;if(n.minimum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(e.number=r.min(n.minimum))}}},Ec=class{apply(e,t){const n=t;if(n.maximum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(e.number=r.max(n.maximum))}}},Ac=class{apply(e,t){const n=t;if(n.exclusiveMinimum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(typeof n.exclusiveMinimum=="number"?e.number=r.gt(n.exclusiveMinimum):e.number=!1)}}},_c=class{apply(e,t){const n=t;if(n.exclusiveMaximum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(typeof n.exclusiveMaximum=="number"?e.number=r.lt(n.exclusiveMaximum):e.number=!1)}}},Ic=class{apply(e,t){const n=t;if(n.multipleOf!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(e.number=r.refine(i=>{if(n.multipleOf===0)return!1;const s=i/n.multipleOf,o=Math.round(s),a=Math.min(Math.abs(i)*Number.EPSILON*10,Math.abs(n.multipleOf)*Number.EPSILON*10);return Math.abs(s-o)<=a/Math.abs(n.multipleOf)},{message:`Must be a multiple of ${n.multipleOf}`}))}}},Cc=class{apply(e,t){const n=t;t.type===void 0&&(n.minItems!==void 0||n.maxItems!==void 0||n.items!==void 0||n.prefixItems!==void 0)&&e.array===void 0&&(e.array=Ie(Fe()))}},Tc=class{apply(e,t){const n=t;n.minItems!==void 0&&e.array!==!1&&(e.array=(e.array||Ie(Fe())).min(n.minItems))}},Pc=class{apply(e,t){const n=t;n.maxItems!==void 0&&e.array!==!1&&(e.array=(e.array||Ie(Fe())).max(n.maxItems))}},Fc=class{apply(e,t){const n=t;if(e.array!==!1)if(Array.isArray(n.items))e.array=e.array||Ie(Fe());else if(n.items&&typeof n.items!="boolean"&&!n.prefixItems){const r=Ae(n.items);let i=Ie(r);if(e.array&&e.array instanceof ec){const s=e.array._def;s.checks&&s.checks.forEach(o=>{if(o._zod&&o._zod.def){const a=o._zod.def;a.check==="min_length"&&a.minimum!==void 0?i=i.min(a.minimum):a.check==="max_length"&&a.maximum!==void 0&&(i=i.max(a.maximum))}})}e.array=i}else typeof n.items=="boolean"&&n.items===!1?n.prefixItems?e.array=e.array||Ie(Fe()):e.array=Ie(Fe()).max(0):typeof n.items=="boolean"&&n.items===!0?e.array=e.array||Ie(Fe()):n.prefixItems&&(e.array=e.array||Ie(Fe()))}},jc=class{apply(e,t){if(t.type!=="array")return;const n=t;if(!Array.isArray(n.items)||e.array===!1)return;const r=n.items.map(s=>Ae(s));let i;r.length===0?i=ws([]):i=ws(r),n.minItems!==void 0&&n.minItems>r.length&&(i=!1),n.maxItems!==void 0&&n.maxItems<r.length&&(i=!1),e.tuple=i,e.array=!1}},$c=class{apply(e,t){const n=t;e.object!==!1&&(n.properties||n.required||n.additionalProperties!==void 0)&&(e.object=e.object||_e({}).passthrough())}},Dc=class{apply(e,t){const n=t;t.type===void 0&&(n.maxProperties!==void 0||n.minProperties!==void 0)&&e.object===void 0&&(e.object=_e({}).passthrough())}},Nc=class{apply(e,t){const n=t;if(n.maxProperties!==void 0&&e.object!==!1){const r=e.object||_e({}).passthrough();e.object=r.refine(i=>Object.keys(i).length<=n.maxProperties,{message:`Object must have at most ${n.maxProperties} properties`})}}},Rc=class{apply(e,t){const n=t;if(n.minProperties!==void 0&&e.object!==!1){const r=e.object||_e({}).passthrough();e.object=r.refine(i=>Object.keys(i).length>=n.minProperties,{message:`Object must have at least ${n.minProperties} properties`})}}};function Tn(e,t){if(e===t)return!0;if(e==null||t==null)return e===t;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t))return e.length!==t.length?!1:e.every((n,r)=>Tn(n,t[r]));if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length?!1:n.every(i=>r.includes(i)&&Tn(e[i],t[i]))}return!1}function Mc(){return e=>{if(!Array.isArray(e))return!0;const t=[];return e.every(n=>t.some(i=>Tn(n,i))?!1:(t.push(n),!0))}}function cr(e,t){return e.safeParse(t).success}var Uc=class{apply(e,t){if(!t.not)return e;const n=Ae(t.not);return e.refine(r=>!cr(n,r),{message:"Value must not match the 'not' schema"})}},kc=class{apply(e,t){return t.uniqueItems!==!0?e:e.refine(Mc(),{message:"Array items must be unique"})}},Lc=class{apply(e,t){return!t.allOf||t.allOf.length===0?e:t.allOf.map(r=>Ae(r)).reduce((r,i)=>ia(r,i),e)}},Bc=class{apply(e,t){if(!t.anyOf||t.anyOf.length===0)return e;const n=t.anyOf.length===1?Ae(t.anyOf[0]):mt([Ae(t.anyOf[0]),Ae(t.anyOf[1]),...t.anyOf.slice(2).map(r=>Ae(r))]);return ia(e,n)}},Wc=class{apply(e,t){if(!t.oneOf||t.oneOf.length===0)return e;const n=t.oneOf.map(r=>Ae(r));return e.refine(r=>{let i=0;for(const s of n)if(s.safeParse(r).success&&(i++,i>1))return!1;return i===1},{message:"Value must match exactly one of the oneOf schemas"})}},qc=class{apply(e,t){const n=t;if(n.prefixItems&&Array.isArray(n.prefixItems)){const i=n.prefixItems.map(s=>Ae(s));return e.refine(s=>{if(!Array.isArray(s))return!0;for(let o=0;o<Math.min(s.length,i.length);o++)if(!cr(i[o],s[o]))return!1;if(s.length>i.length){if(typeof n.items=="boolean"&&n.items===!1)return!1;if(n.items&&typeof n.items=="object"&&!Array.isArray(n.items)){const o=Ae(n.items);for(let a=i.length;a<s.length;a++)if(!cr(o,s[a]))return!1}}return!0},{message:"Array does not match prefixItems schema"})}return e}},Vc=class{apply(e,t){const n=t;if(!n.properties&&!n.required&&n.additionalProperties!==!1)return e;if(e instanceof nc||e instanceof rc){const r={};if(n.properties)for(const[i,s]of Object.entries(n.properties))s!==void 0&&(r[i]=Ae(s));if(n.required&&Array.isArray(n.required)){const i=new Set(n.required);for(const s of Object.keys(r))i.has(s)||(r[s]=r[s].optional())}else for(const i of Object.keys(r))r[i]=r[i].optional();return n.additionalProperties===!1?_e(r):_e(r).passthrough()}return e.refine(r=>{if(typeof r!="object"||r===null||Array.isArray(r))return!0;if(n.properties){for(const[i,s]of Object.entries(n.properties))if(s!==void 0&&Object.getOwnPropertyDescriptor(r,i)!==void 0&&!Ae(s).safeParse(r[i]).success)return!1}if(n.required&&Array.isArray(n.required)){for(const i of n.required)if(!(Object.getOwnPropertyDescriptor(r,i)!==void 0))return!1}if(n.additionalProperties===!1&&n.properties){const i=new Set(Object.keys(n.properties));for(const s in r)if(!i.has(s))return!1}return!0},{message:"Object constraints validation failed"})}},Hc=class{apply(e,t){if(!t.enum||t.enum.length===0)return e;const n=t.enum.filter(r=>Array.isArray(r)||typeof r=="object"&&r!==null);return n.length===0?e:e.refine(r=>typeof r!="object"||r===null?!0:n.some(i=>Tn(r,i)),{message:"Value must match one of the enum values"})}},Kc=class{apply(e,t){if(t.const===void 0)return e;const n=t.const;return typeof n!="object"||n===null?e:e.refine(r=>Tn(r,n),{message:"Value must equal the const value"})}},Gc=class{apply(e,t){return t.description&&(e=e.describe(t.description)),e}},zc=class{apply(e,t){var n;const r=t;return!((n=r.required)!=null&&n.includes("__proto__"))||t.type!==void 0?e:Fe().refine(i=>this.validateRequired(i,r.required),{message:"Missing required properties"})}validateRequired(e,t){return typeof e!="object"||e===null||Array.isArray(e)?!0:t.every(n=>Object.prototype.hasOwnProperty.call(e,n))}},Yc=class{apply(e,t){var n;const r=t;if(r.contains===void 0)return e;const i=Ae(r.contains),s=(n=r.minContains)!=null?n:1,o=r.maxContains;return e.refine(a=>{if(!Array.isArray(a))return!0;let l=0;for(const c of a)cr(i,c)&&l++;return!(l<s||o!==void 0&&l>o)},{message:"Array must contain required items matching the schema"})}},Jc=class{apply(e,t){const{default:n}=t;return n===void 0||!e.safeParse(n).success?e:e.default(n)}},Zc=[new yc,new gc,new mc,new bc,new Sc,new Cc,new Dc,new vc,new Oc,new wc,new xc,new Ec,new Ac,new _c,new Ic,new jc,new Tc,new Pc,new Fc,new Nc,new Rc,new $c],Xc=[new zc,new Hc,new Kc,new Lc,new Bc,new Wc,new qc,new Vc,new Yc,new Uc,new kc,new Jc,new Gc];function Ae(e){if(typeof e=="boolean")return e?Fe():Os();const t={};for(const i of Zc)i.apply(t,e);const n=[];if(t.string!==!1&&n.push(t.string||oe()),t.number!==!1&&n.push(t.number||ge()),t.boolean!==!1&&n.push(t.boolean||ti()),t.null!==!1&&n.push(t.null||_i()),t.array!==!1&&n.push(t.array||Ie(Fe())),t.tuple!==!1&&t.tuple!==void 0&&n.push(t.tuple),t.object!==!1)if(t.object)n.push(t.object);else{const i=tc(s=>typeof s=="object"&&s!==null&&!Array.isArray(s),"Must be an object, not an array");n.push(i)}t.file!==!1&&t.file!==void 0&&n.push(t.file);let r;n.length===0?r=Os():n.length===1?r=n[0]:Object.keys(e).some(s=>s!=="$schema"&&s!=="title"&&s!=="description")?r=mt(n):r=Fe();for(const i of Xc)r=i.apply(r,e);return r}class As extends Event{constructor(t,n){var r,i;super(t),this.code=(r=n?.code)!=null?r:void 0,this.message=(i=n?.message)!=null?i:void 0}[Symbol.for("nodejs.util.inspect.custom")](t,n,r){return r(_s(this),n)}[Symbol.for("Deno.customInspect")](t,n){return t(_s(this),n)}}function Qc(e){const t=globalThis.DOMException;return typeof t=="function"?new t(e,"SyntaxError"):new SyntaxError(e)}function ni(e){return e instanceof Error?"errors"in e&&Array.isArray(e.errors)?e.errors.map(ni).join(", "):"cause"in e&&e.cause instanceof Error?`${e}: ${ni(e.cause)}`:e.message:`${e}`}function _s(e){return{type:e.type,message:e.message,code:e.code,defaultPrevented:e.defaultPrevented,cancelable:e.cancelable,timeStamp:e.timeStamp}}var aa=e=>{throw TypeError(e)},Fi=(e,t,n)=>t.has(e)||aa("Cannot "+n),G=(e,t,n)=>(Fi(e,t,"read from private field"),n?n.call(e):t.get(e)),Se=(e,t,n)=>t.has(e)?aa("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),he=(e,t,n,r)=>(Fi(e,t,"write to private field"),t.set(e,n),n),Qe=(e,t,n)=>(Fi(e,t,"access private method"),n),Ce,Et,kt,Qn,ur,wn,qt,xn,ct,Lt,Gt,Bt,mn,Re,ri,ii,si,Is,oi,ai,yn,li,ci;class er extends EventTarget{constructor(t,n){var r,i;super(),Se(this,Re),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,Se(this,Ce),Se(this,Et),Se(this,kt),Se(this,Qn),Se(this,ur),Se(this,wn),Se(this,qt),Se(this,xn,null),Se(this,ct),Se(this,Lt),Se(this,Gt,null),Se(this,Bt,null),Se(this,mn,null),Se(this,ii,async s=>{var o;G(this,Lt).reset();const{body:a,redirected:l,status:c,headers:u}=s;if(c===204){Qe(this,Re,yn).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(l?he(this,kt,new URL(s.url)):he(this,kt,void 0),c!==200){Qe(this,Re,yn).call(this,`Non-200 status code (${c})`,c);return}if(!(u.get("content-type")||"").startsWith("text/event-stream")){Qe(this,Re,yn).call(this,'Invalid content type, expected "text/event-stream"',c);return}if(G(this,Ce)===this.CLOSED)return;he(this,Ce,this.OPEN);const f=new Event("open");if((o=G(this,mn))==null||o.call(this,f),this.dispatchEvent(f),typeof a!="object"||!a||!("getReader"in a)){Qe(this,Re,yn).call(this,"Invalid response body, expected a web ReadableStream",c),this.close();return}const h=new TextDecoder,m=a.getReader();let d=!0;do{const{done:p,value:y}=await m.read();y&&G(this,Lt).feed(h.decode(y,{stream:!p})),p&&(d=!1,G(this,Lt).reset(),Qe(this,Re,li).call(this))}while(d)}),Se(this,si,s=>{he(this,ct,void 0),!(s.name==="AbortError"||s.type==="aborted")&&Qe(this,Re,li).call(this,ni(s))}),Se(this,oi,s=>{typeof s.id=="string"&&he(this,xn,s.id);const o=new MessageEvent(s.event||"message",{data:s.data,origin:G(this,kt)?G(this,kt).origin:G(this,Et).origin,lastEventId:s.id||""});G(this,Bt)&&(!s.event||s.event==="message")&&G(this,Bt).call(this,o),this.dispatchEvent(o)}),Se(this,ai,s=>{he(this,wn,s)}),Se(this,ci,()=>{he(this,qt,void 0),G(this,Ce)===this.CONNECTING&&Qe(this,Re,ri).call(this)});try{if(t instanceof URL)he(this,Et,t);else if(typeof t=="string")he(this,Et,new URL(t,eu()));else throw new Error("Invalid URL")}catch{throw Qc("An invalid or illegal string was specified")}he(this,Lt,cc({onEvent:G(this,oi),onRetry:G(this,ai)})),he(this,Ce,this.CONNECTING),he(this,wn,3e3),he(this,ur,(r=n?.fetch)!=null?r:globalThis.fetch),he(this,Qn,(i=n?.withCredentials)!=null?i:!1),Qe(this,Re,ri).call(this)}get readyState(){return G(this,Ce)}get url(){return G(this,Et).href}get withCredentials(){return G(this,Qn)}get onerror(){return G(this,Gt)}set onerror(t){he(this,Gt,t)}get onmessage(){return G(this,Bt)}set onmessage(t){he(this,Bt,t)}get onopen(){return G(this,mn)}set onopen(t){he(this,mn,t)}addEventListener(t,n,r){const i=n;super.addEventListener(t,i,r)}removeEventListener(t,n,r){const i=n;super.removeEventListener(t,i,r)}close(){G(this,qt)&&clearTimeout(G(this,qt)),G(this,Ce)!==this.CLOSED&&(G(this,ct)&&G(this,ct).abort(),he(this,Ce,this.CLOSED),he(this,ct,void 0))}}Ce=new WeakMap,Et=new WeakMap,kt=new WeakMap,Qn=new WeakMap,ur=new WeakMap,wn=new WeakMap,qt=new WeakMap,xn=new WeakMap,ct=new WeakMap,Lt=new WeakMap,Gt=new WeakMap,Bt=new WeakMap,mn=new WeakMap,Re=new WeakSet,ri=function(){he(this,Ce,this.CONNECTING),he(this,ct,new AbortController),G(this,ur)(G(this,Et),Qe(this,Re,Is).call(this)).then(G(this,ii)).catch(G(this,si))},ii=new WeakMap,si=new WeakMap,Is=function(){var e;const t={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...G(this,xn)?{"Last-Event-ID":G(this,xn)}:void 0},cache:"no-store",signal:(e=G(this,ct))==null?void 0:e.signal};return"window"in globalThis&&(t.credentials=this.withCredentials?"include":"same-origin"),t},oi=new WeakMap,ai=new WeakMap,yn=function(e,t){var n;G(this,Ce)!==this.CLOSED&&he(this,Ce,this.CLOSED);const r=new As("error",{code:t,message:e});(n=G(this,Gt))==null||n.call(this,r),this.dispatchEvent(r)},li=function(e,t){var n;if(G(this,Ce)===this.CLOSED)return;he(this,Ce,this.CONNECTING);const r=new As("error",{code:t,message:e});(n=G(this,Gt))==null||n.call(this,r),this.dispatchEvent(r),he(this,qt,setTimeout(G(this,ci),G(this,wn)))},ci=new WeakMap,er.CONNECTING=0,er.OPEN=1,er.CLOSED=2;function eu(){const e="document"in globalThis?globalThis.document:void 0;return e&&typeof e=="object"&&"baseURI"in e&&typeof e.baseURI=="string"?e.baseURI:void 0}class tu extends Error{constructor(t,n,r){super(`SSE error: ${n}`),this.code=t,this.event=r}}class nu{constructor(t,n){this._url=t,this._resourceMetadataUrl=void 0,this._scope=void 0,this._eventSourceInit=n?.eventSourceInit,this._requestInit=n?.requestInit,this._authProvider=n?.authProvider,this._fetch=n?.fetch,this._fetchWithInit=uc(n?.fetch,n?.requestInit)}async _authThenStart(){if(!this._authProvider)throw new fn("No auth provider");let t;try{t=await Tr(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(n){throw this.onerror?.(n),n}if(t!=="AUTHORIZED")throw new fn;return await this._startOrAuth()}async _commonHeaders(){const t={};if(this._authProvider){const r=await this._authProvider.tokens();r&&(t.Authorization=`Bearer ${r.access_token}`)}this._protocolVersion&&(t["mcp-protocol-version"]=this._protocolVersion);const n=fc(this._requestInit?.headers);return new Headers({...t,...n})}_startOrAuth(){const t=this?._eventSourceInit?.fetch??this._fetch??fetch;return new Promise((n,r)=>{this._eventSource=new er(this._url.href,{...this._eventSourceInit,fetch:async(i,s)=>{const o=await this._commonHeaders();o.set("Accept","text/event-stream");const a=await t(i,{...s,headers:o});if(a.status===401&&a.headers.has("www-authenticate")){const{resourceMetadataUrl:l,scope:c}=xs(a);this._resourceMetadataUrl=l,this._scope=c}return a}}),this._abortController=new AbortController,this._eventSource.onerror=i=>{if(i.code===401&&this._authProvider){this._authThenStart().then(n,r);return}const s=new tu(i.code,i.message,i);r(s),this.onerror?.(s)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",i=>{const s=i;try{if(this._endpoint=new URL(s.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(o){r(o),this.onerror?.(o),this.close();return}n()}),this._eventSource.onmessage=i=>{const s=i;let o;try{o=sa.parse(JSON.parse(s.data))}catch(a){this.onerror?.(a);return}this.onmessage?.(o)}})}async start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(t){if(!this._authProvider)throw new fn("No auth provider");if(await Tr(this._authProvider,{serverUrl:this._url,authorizationCode:t,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new fn("Failed to authorize")}async close(){this._abortController?.abort(),this._eventSource?.close(),this.onclose?.()}async send(t){if(!this._endpoint)throw new Error("Not connected");try{const n=await this._commonHeaders();n.set("content-type","application/json");const r={...this._requestInit,method:"POST",headers:n,body:JSON.stringify(t),signal:this._abortController?.signal},i=await(this._fetch??fetch)(this._endpoint,r);if(!i.ok){const s=await i.text().catch(()=>null);if(i.status===401&&this._authProvider){const{resourceMetadataUrl:o,scope:a}=xs(i);if(this._resourceMetadataUrl=o,this._scope=a,await Tr(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new fn;return this.send(t)}throw new Error(`Error POSTing to endpoint (HTTP ${i.status}): ${s}`)}await i.body?.cancel()}catch(n){throw this.onerror?.(n),n}}setProtocolVersion(t){this._protocolVersion=t}}const ru="mcp";class iu{constructor(t){this._url=t}start(){if(this._socket)throw new Error("WebSocketClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((t,n)=>{this._socket=new WebSocket(this._url,ru),this._socket.onerror=r=>{const i="error"in r?r.error:new Error(`WebSocket error: ${JSON.stringify(r)}`);n(i),this.onerror?.(i)},this._socket.onopen=()=>{t()},this._socket.onclose=()=>{this.onclose?.()},this._socket.onmessage=r=>{let i;try{i=sa.parse(JSON.parse(r.data))}catch(s){this.onerror?.(s);return}this.onmessage?.(i)}})}async close(){this._socket?.close()}send(t){return new Promise((n,r)=>{if(!this._socket){r(new Error("Not connected"));return}this._socket?.send(JSON.stringify(t)),n()})}}class su extends dc{constructor(t,n){super(t,n)}send(t,n){const r=ou(t);return r?.type==="emit"?(this.onmessage?.(r.message),Promise.resolve()):r?.type==="suppress"?Promise.resolve():super.send(t,n)}}function ou(e){const t=e;if(!t||typeof t!="object"||!("method"in t))return null;switch(t.method){case"initialize":{const n=t?.params?.protocolVersion;return n?{type:"emit",message:{result:{protocolVersion:n,capabilities:{tools:{}},serverInfo:{name:"deco-chat-server",version:"1.0.0"}},jsonrpc:t.jsonrpc??"2.0",id:t.id}}:null}case"notifications/roots/list_changed":case"notifications/initialized":case"notifications/cancelled":case"notifications/progress":return{type:"suppress"};default:return null}}class au extends hc{constructor(t,n){super(t,n)}async listTools(t,n){return await this.request({method:"tools/list",params:t},sc,n)}}const lu=async(e,t,n)=>{const r=cu(e.connection,t,n);if(!r)throw new Error("Unknown MCP connection type");const i=new au({name:e?.name??"MCP Client",version:"1.0.0"});return await i.connect(r),{client:i}},cu=(e,t,n)=>{if(e.type==="Websocket")return new iu(new URL(e.url));if(e.type!=="SSE"&&e.type!=="HTTP")return null;const i={...e.token?{authorization:`Bearer ${e.token}`}:{},...n??{},..."headers"in e?e.headers||{}:{}};if(e.type==="SSE"){const s={requestInit:{headers:i,signal:t}};return e.token&&(s.eventSourceInit={fetch:(o,a)=>fetch(o,{...a,headers:{...i,Accept:"text/event-stream"},signal:t})}),new nu(new URL(e.url),s)}return new su(new URL(e.url),{requestInit:{headers:i,signal:t,credentials:"include"}})},Cs=e=>{try{return JSON.parse(e)}catch{return e}},zn=new Map,Ts=(e,t)=>({...e,id:e.name,inputSchema:e.inputSchema?Ae(e.inputSchema):void 0,outputSchema:e.outputSchema?Ae(e.outputSchema):void 0,execute:n=>t(n.context,e.name)});function uu(e){const t=n=>"connection"in e?lu({connection:e.connection},void 0,n):e.client;return new Proxy({},{get(n,r){if(r==="toJSON")return null;if(typeof r!="string")throw new Error("Name must be a string");if(r==="listTools")return a;async function i(l,c=r){const u=e?.debugId?.(),f=u?{"x-trace-debug-id":u}:void 0,{client:h}=await t(f),{structuredContent:m,isError:d,content:p}=await h.callTool({name:String(c),arguments:l});if(d){const S=p?.[0]?.text,O=typeof S=="string"?Cs(S):null,E=O?.code&&typeof e?.getErrorByStatusCode=="function"?e.getErrorByStatusCode(O.code,O.message,O.traceId):null;throw E||new Error(`Tool ${String(c)} returned an error: ${JSON.stringify(m??p)}`)}if(m!==void 0)return m;const y=p?.[0]?.text;return typeof y=="string"?Cs(y):void 0}async function s(){const{client:l}=await t(),{tools:c}=await l.listTools();return c}async function o(){if(!("connection"in e))return s();const l=e.connection,c=JSON.stringify(l);try{return zn.has(c)||zn.set(c,s()),await zn.get(c)}catch(u){console.error("Failed to list tools",u),zn.delete(c);return}}async function a(){return(await o()??[]).map(c=>Ts(c,i))}return i.asTool=async()=>{const c=(await o()??[]).find(u=>u.name===r);if(!c)throw new Error(`Tool ${r} not found`);return Ts(c,i)},i}})}new Proxy({},{get(e,t){return t==="toJSON"?null:t==="forConnection"?n=>fu({connection:n}):global[t]}});function fu(e){return uu(e)}const du=_e({toolName:oe().describe("Name of the tool to invoke on that connection"),transformCode:oe().optional().describe("Pure TypeScript function for data transformation of the tool call result. Must be a TypeScript file that declares the Output interface and exports a default function: `interface Output { ... } export default async function(stepInput): Output { ... }`\n The stepInput will match with the tool call outputSchema. If transformCode is not provided, the tool call result will be used as the step output.\n Providing an transformCode is recommended because it both allows you to transform the data and validate it against a JSON Schema - tools are ephemeral and may return unexpected data.")}),hu=_e({code:oe().describe(`Pure TypeScript function for data transformation. Useful to merge data from multiple steps and transform it. Must be a TypeScript file that declares the Output interface and exports a default function: \`interface Output { ... } export default async function(stepInput): Output { ... }\`
1
+ import{cp as Fe,bn as Os,J as oe,I as ge,a_ as ti,bS as _i,aK as Ie,bl as mt,a$ as qe,ap as mr,cq as rn,H as _e,cr as Ii,cs as ws,ct as ec,bQ as tc,cu as ia,cv as nc,cw as rc,cx as ic,cy as fn,cz as Tr,cA as xs,bL as sa,bD as sc,aJ as ze,bR as oc,aI as On,bb as Ci,cB as ac,r as N,j as w,cC as oa,cD as lc}from"./index-D1OGx8P1.js";import{e as cc,f as uc,n as fc,h as dc,C as hc,A as pc}from"./constants-D7xAST0Q.js";import{B as Ti,c as Pi}from"./collections-B1Vl-dRY.js";import{R as Es}from"./index-BirIwGZm.js";var mc=class{apply(e,t){if(!t.type)return;const n=Array.isArray(t.type)?t.type:[t.type],r=new Set(n);if(r.has("string")||(e.string=!1),!r.has("number")&&!r.has("integer")&&(e.number=!1),r.has("boolean")||(e.boolean=!1),r.has("null")||(e.null=!1),r.has("array")||(e.array=!1),r.has("object")||(e.object=!1),r.has("integer")&&e.number!==!1){const i=e.number||ge();i instanceof rn&&(e.number=i.int())}}},yc=class{apply(e,t){if(t.const===void 0)return;const n=t.const;e.string=!1,e.number=!1,e.boolean=!1,e.null=!1,e.array=!1,e.object=!1,typeof n=="string"?e.string=qe(n):typeof n=="number"?e.number=qe(n):typeof n=="boolean"?e.boolean=qe(n):n===null?e.null=_i():Array.isArray(n)?e.array=void 0:typeof n=="object"&&(e.object=void 0)}},gc=class{apply(e,t){if(!t.enum)return;if(t.enum.length===0){t.type||(e.string=!1,e.number=!1,e.boolean=!1,e.null=!1,e.array=!1,e.object=!1);return}const n={string:t.enum.filter(r=>typeof r=="string"),number:t.enum.filter(r=>typeof r=="number"),boolean:t.enum.filter(r=>typeof r=="boolean"),null:t.enum.filter(r=>r===null),array:t.enum.filter(r=>Array.isArray(r)),object:t.enum.filter(r=>typeof r=="object"&&r!==null&&!Array.isArray(r))};e.string=this.createTypeSchema(n.string,"string"),e.number=this.createTypeSchema(n.number,"number"),e.boolean=this.createTypeSchema(n.boolean,"boolean"),e.null=n.null.length>0?_i():!1,e.array=n.array.length>0?void 0:!1,e.object=n.object.length>0?void 0:!1}createTypeSchema(e,t){if(e.length===0)return!1;if(e.length===1)return qe(e[0]);if(t==="string")return mr(e);if(t==="number"){const[n,r,...i]=e;return mt([qe(n),qe(r),...i.map(s=>qe(s))])}return t==="boolean"?mt([qe(!0),qe(!1)]):!1}},bc=class{apply(e,t){const n=t;if(n.type==="string"&&n.format==="binary"&&n.contentEncoding==="binary"){let r=ic();n.minLength!==void 0&&(r=r.min(n.minLength)),n.maxLength!==void 0&&(r=r.max(n.maxLength)),n.contentMediaType!==void 0&&(r=r.mime(n.contentMediaType)),e.file=r,e.string=!1}}},Sc=class{apply(e,t){const n=t;t.type===void 0&&(n.minLength!==void 0||n.maxLength!==void 0||n.pattern!==void 0)&&e.string===void 0&&(e.string=oe())}},vc=class{apply(e,t){const n=t;if(n.minLength!==void 0&&e.string!==!1){const r=e.string||oe();r instanceof Ii&&(e.string=r.refine(i=>Array.from(i).length>=n.minLength,{message:`String must be at least ${n.minLength} characters long`}))}}},Oc=class{apply(e,t){const n=t;if(n.maxLength!==void 0&&e.string!==!1){const r=e.string||oe();r instanceof Ii&&(e.string=r.refine(i=>Array.from(i).length<=n.maxLength,{message:`String must be at most ${n.maxLength} characters long`}))}}},wc=class{apply(e,t){const n=t;if(n.pattern&&e.string!==!1){const r=e.string||oe();if(r instanceof Ii){const i=new RegExp(n.pattern);e.string=r.regex(i)}}}},xc=class{apply(e,t){const n=t;if(n.minimum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(e.number=r.min(n.minimum))}}},Ec=class{apply(e,t){const n=t;if(n.maximum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(e.number=r.max(n.maximum))}}},Ac=class{apply(e,t){const n=t;if(n.exclusiveMinimum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(typeof n.exclusiveMinimum=="number"?e.number=r.gt(n.exclusiveMinimum):e.number=!1)}}},_c=class{apply(e,t){const n=t;if(n.exclusiveMaximum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(typeof n.exclusiveMaximum=="number"?e.number=r.lt(n.exclusiveMaximum):e.number=!1)}}},Ic=class{apply(e,t){const n=t;if(n.multipleOf!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(e.number=r.refine(i=>{if(n.multipleOf===0)return!1;const s=i/n.multipleOf,o=Math.round(s),a=Math.min(Math.abs(i)*Number.EPSILON*10,Math.abs(n.multipleOf)*Number.EPSILON*10);return Math.abs(s-o)<=a/Math.abs(n.multipleOf)},{message:`Must be a multiple of ${n.multipleOf}`}))}}},Cc=class{apply(e,t){const n=t;t.type===void 0&&(n.minItems!==void 0||n.maxItems!==void 0||n.items!==void 0||n.prefixItems!==void 0)&&e.array===void 0&&(e.array=Ie(Fe()))}},Tc=class{apply(e,t){const n=t;n.minItems!==void 0&&e.array!==!1&&(e.array=(e.array||Ie(Fe())).min(n.minItems))}},Pc=class{apply(e,t){const n=t;n.maxItems!==void 0&&e.array!==!1&&(e.array=(e.array||Ie(Fe())).max(n.maxItems))}},Fc=class{apply(e,t){const n=t;if(e.array!==!1)if(Array.isArray(n.items))e.array=e.array||Ie(Fe());else if(n.items&&typeof n.items!="boolean"&&!n.prefixItems){const r=Ae(n.items);let i=Ie(r);if(e.array&&e.array instanceof ec){const s=e.array._def;s.checks&&s.checks.forEach(o=>{if(o._zod&&o._zod.def){const a=o._zod.def;a.check==="min_length"&&a.minimum!==void 0?i=i.min(a.minimum):a.check==="max_length"&&a.maximum!==void 0&&(i=i.max(a.maximum))}})}e.array=i}else typeof n.items=="boolean"&&n.items===!1?n.prefixItems?e.array=e.array||Ie(Fe()):e.array=Ie(Fe()).max(0):typeof n.items=="boolean"&&n.items===!0?e.array=e.array||Ie(Fe()):n.prefixItems&&(e.array=e.array||Ie(Fe()))}},jc=class{apply(e,t){if(t.type!=="array")return;const n=t;if(!Array.isArray(n.items)||e.array===!1)return;const r=n.items.map(s=>Ae(s));let i;r.length===0?i=ws([]):i=ws(r),n.minItems!==void 0&&n.minItems>r.length&&(i=!1),n.maxItems!==void 0&&n.maxItems<r.length&&(i=!1),e.tuple=i,e.array=!1}},$c=class{apply(e,t){const n=t;e.object!==!1&&(n.properties||n.required||n.additionalProperties!==void 0)&&(e.object=e.object||_e({}).passthrough())}},Dc=class{apply(e,t){const n=t;t.type===void 0&&(n.maxProperties!==void 0||n.minProperties!==void 0)&&e.object===void 0&&(e.object=_e({}).passthrough())}},Nc=class{apply(e,t){const n=t;if(n.maxProperties!==void 0&&e.object!==!1){const r=e.object||_e({}).passthrough();e.object=r.refine(i=>Object.keys(i).length<=n.maxProperties,{message:`Object must have at most ${n.maxProperties} properties`})}}},Rc=class{apply(e,t){const n=t;if(n.minProperties!==void 0&&e.object!==!1){const r=e.object||_e({}).passthrough();e.object=r.refine(i=>Object.keys(i).length>=n.minProperties,{message:`Object must have at least ${n.minProperties} properties`})}}};function Tn(e,t){if(e===t)return!0;if(e==null||t==null)return e===t;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t))return e.length!==t.length?!1:e.every((n,r)=>Tn(n,t[r]));if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length?!1:n.every(i=>r.includes(i)&&Tn(e[i],t[i]))}return!1}function Mc(){return e=>{if(!Array.isArray(e))return!0;const t=[];return e.every(n=>t.some(i=>Tn(n,i))?!1:(t.push(n),!0))}}function cr(e,t){return e.safeParse(t).success}var Uc=class{apply(e,t){if(!t.not)return e;const n=Ae(t.not);return e.refine(r=>!cr(n,r),{message:"Value must not match the 'not' schema"})}},kc=class{apply(e,t){return t.uniqueItems!==!0?e:e.refine(Mc(),{message:"Array items must be unique"})}},Lc=class{apply(e,t){return!t.allOf||t.allOf.length===0?e:t.allOf.map(r=>Ae(r)).reduce((r,i)=>ia(r,i),e)}},Bc=class{apply(e,t){if(!t.anyOf||t.anyOf.length===0)return e;const n=t.anyOf.length===1?Ae(t.anyOf[0]):mt([Ae(t.anyOf[0]),Ae(t.anyOf[1]),...t.anyOf.slice(2).map(r=>Ae(r))]);return ia(e,n)}},Wc=class{apply(e,t){if(!t.oneOf||t.oneOf.length===0)return e;const n=t.oneOf.map(r=>Ae(r));return e.refine(r=>{let i=0;for(const s of n)if(s.safeParse(r).success&&(i++,i>1))return!1;return i===1},{message:"Value must match exactly one of the oneOf schemas"})}},qc=class{apply(e,t){const n=t;if(n.prefixItems&&Array.isArray(n.prefixItems)){const i=n.prefixItems.map(s=>Ae(s));return e.refine(s=>{if(!Array.isArray(s))return!0;for(let o=0;o<Math.min(s.length,i.length);o++)if(!cr(i[o],s[o]))return!1;if(s.length>i.length){if(typeof n.items=="boolean"&&n.items===!1)return!1;if(n.items&&typeof n.items=="object"&&!Array.isArray(n.items)){const o=Ae(n.items);for(let a=i.length;a<s.length;a++)if(!cr(o,s[a]))return!1}}return!0},{message:"Array does not match prefixItems schema"})}return e}},Vc=class{apply(e,t){const n=t;if(!n.properties&&!n.required&&n.additionalProperties!==!1)return e;if(e instanceof nc||e instanceof rc){const r={};if(n.properties)for(const[i,s]of Object.entries(n.properties))s!==void 0&&(r[i]=Ae(s));if(n.required&&Array.isArray(n.required)){const i=new Set(n.required);for(const s of Object.keys(r))i.has(s)||(r[s]=r[s].optional())}else for(const i of Object.keys(r))r[i]=r[i].optional();return n.additionalProperties===!1?_e(r):_e(r).passthrough()}return e.refine(r=>{if(typeof r!="object"||r===null||Array.isArray(r))return!0;if(n.properties){for(const[i,s]of Object.entries(n.properties))if(s!==void 0&&Object.getOwnPropertyDescriptor(r,i)!==void 0&&!Ae(s).safeParse(r[i]).success)return!1}if(n.required&&Array.isArray(n.required)){for(const i of n.required)if(!(Object.getOwnPropertyDescriptor(r,i)!==void 0))return!1}if(n.additionalProperties===!1&&n.properties){const i=new Set(Object.keys(n.properties));for(const s in r)if(!i.has(s))return!1}return!0},{message:"Object constraints validation failed"})}},Hc=class{apply(e,t){if(!t.enum||t.enum.length===0)return e;const n=t.enum.filter(r=>Array.isArray(r)||typeof r=="object"&&r!==null);return n.length===0?e:e.refine(r=>typeof r!="object"||r===null?!0:n.some(i=>Tn(r,i)),{message:"Value must match one of the enum values"})}},Kc=class{apply(e,t){if(t.const===void 0)return e;const n=t.const;return typeof n!="object"||n===null?e:e.refine(r=>Tn(r,n),{message:"Value must equal the const value"})}},Gc=class{apply(e,t){return t.description&&(e=e.describe(t.description)),e}},zc=class{apply(e,t){var n;const r=t;return!((n=r.required)!=null&&n.includes("__proto__"))||t.type!==void 0?e:Fe().refine(i=>this.validateRequired(i,r.required),{message:"Missing required properties"})}validateRequired(e,t){return typeof e!="object"||e===null||Array.isArray(e)?!0:t.every(n=>Object.prototype.hasOwnProperty.call(e,n))}},Yc=class{apply(e,t){var n;const r=t;if(r.contains===void 0)return e;const i=Ae(r.contains),s=(n=r.minContains)!=null?n:1,o=r.maxContains;return e.refine(a=>{if(!Array.isArray(a))return!0;let l=0;for(const c of a)cr(i,c)&&l++;return!(l<s||o!==void 0&&l>o)},{message:"Array must contain required items matching the schema"})}},Jc=class{apply(e,t){const{default:n}=t;return n===void 0||!e.safeParse(n).success?e:e.default(n)}},Zc=[new yc,new gc,new mc,new bc,new Sc,new Cc,new Dc,new vc,new Oc,new wc,new xc,new Ec,new Ac,new _c,new Ic,new jc,new Tc,new Pc,new Fc,new Nc,new Rc,new $c],Xc=[new zc,new Hc,new Kc,new Lc,new Bc,new Wc,new qc,new Vc,new Yc,new Uc,new kc,new Jc,new Gc];function Ae(e){if(typeof e=="boolean")return e?Fe():Os();const t={};for(const i of Zc)i.apply(t,e);const n=[];if(t.string!==!1&&n.push(t.string||oe()),t.number!==!1&&n.push(t.number||ge()),t.boolean!==!1&&n.push(t.boolean||ti()),t.null!==!1&&n.push(t.null||_i()),t.array!==!1&&n.push(t.array||Ie(Fe())),t.tuple!==!1&&t.tuple!==void 0&&n.push(t.tuple),t.object!==!1)if(t.object)n.push(t.object);else{const i=tc(s=>typeof s=="object"&&s!==null&&!Array.isArray(s),"Must be an object, not an array");n.push(i)}t.file!==!1&&t.file!==void 0&&n.push(t.file);let r;n.length===0?r=Os():n.length===1?r=n[0]:Object.keys(e).some(s=>s!=="$schema"&&s!=="title"&&s!=="description")?r=mt(n):r=Fe();for(const i of Xc)r=i.apply(r,e);return r}class As extends Event{constructor(t,n){var r,i;super(t),this.code=(r=n?.code)!=null?r:void 0,this.message=(i=n?.message)!=null?i:void 0}[Symbol.for("nodejs.util.inspect.custom")](t,n,r){return r(_s(this),n)}[Symbol.for("Deno.customInspect")](t,n){return t(_s(this),n)}}function Qc(e){const t=globalThis.DOMException;return typeof t=="function"?new t(e,"SyntaxError"):new SyntaxError(e)}function ni(e){return e instanceof Error?"errors"in e&&Array.isArray(e.errors)?e.errors.map(ni).join(", "):"cause"in e&&e.cause instanceof Error?`${e}: ${ni(e.cause)}`:e.message:`${e}`}function _s(e){return{type:e.type,message:e.message,code:e.code,defaultPrevented:e.defaultPrevented,cancelable:e.cancelable,timeStamp:e.timeStamp}}var aa=e=>{throw TypeError(e)},Fi=(e,t,n)=>t.has(e)||aa("Cannot "+n),G=(e,t,n)=>(Fi(e,t,"read from private field"),n?n.call(e):t.get(e)),Se=(e,t,n)=>t.has(e)?aa("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),he=(e,t,n,r)=>(Fi(e,t,"write to private field"),t.set(e,n),n),Qe=(e,t,n)=>(Fi(e,t,"access private method"),n),Ce,Et,kt,Qn,ur,wn,qt,xn,ct,Lt,Gt,Bt,mn,Re,ri,ii,si,Is,oi,ai,yn,li,ci;class er extends EventTarget{constructor(t,n){var r,i;super(),Se(this,Re),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,Se(this,Ce),Se(this,Et),Se(this,kt),Se(this,Qn),Se(this,ur),Se(this,wn),Se(this,qt),Se(this,xn,null),Se(this,ct),Se(this,Lt),Se(this,Gt,null),Se(this,Bt,null),Se(this,mn,null),Se(this,ii,async s=>{var o;G(this,Lt).reset();const{body:a,redirected:l,status:c,headers:u}=s;if(c===204){Qe(this,Re,yn).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(l?he(this,kt,new URL(s.url)):he(this,kt,void 0),c!==200){Qe(this,Re,yn).call(this,`Non-200 status code (${c})`,c);return}if(!(u.get("content-type")||"").startsWith("text/event-stream")){Qe(this,Re,yn).call(this,'Invalid content type, expected "text/event-stream"',c);return}if(G(this,Ce)===this.CLOSED)return;he(this,Ce,this.OPEN);const f=new Event("open");if((o=G(this,mn))==null||o.call(this,f),this.dispatchEvent(f),typeof a!="object"||!a||!("getReader"in a)){Qe(this,Re,yn).call(this,"Invalid response body, expected a web ReadableStream",c),this.close();return}const h=new TextDecoder,m=a.getReader();let d=!0;do{const{done:p,value:y}=await m.read();y&&G(this,Lt).feed(h.decode(y,{stream:!p})),p&&(d=!1,G(this,Lt).reset(),Qe(this,Re,li).call(this))}while(d)}),Se(this,si,s=>{he(this,ct,void 0),!(s.name==="AbortError"||s.type==="aborted")&&Qe(this,Re,li).call(this,ni(s))}),Se(this,oi,s=>{typeof s.id=="string"&&he(this,xn,s.id);const o=new MessageEvent(s.event||"message",{data:s.data,origin:G(this,kt)?G(this,kt).origin:G(this,Et).origin,lastEventId:s.id||""});G(this,Bt)&&(!s.event||s.event==="message")&&G(this,Bt).call(this,o),this.dispatchEvent(o)}),Se(this,ai,s=>{he(this,wn,s)}),Se(this,ci,()=>{he(this,qt,void 0),G(this,Ce)===this.CONNECTING&&Qe(this,Re,ri).call(this)});try{if(t instanceof URL)he(this,Et,t);else if(typeof t=="string")he(this,Et,new URL(t,eu()));else throw new Error("Invalid URL")}catch{throw Qc("An invalid or illegal string was specified")}he(this,Lt,cc({onEvent:G(this,oi),onRetry:G(this,ai)})),he(this,Ce,this.CONNECTING),he(this,wn,3e3),he(this,ur,(r=n?.fetch)!=null?r:globalThis.fetch),he(this,Qn,(i=n?.withCredentials)!=null?i:!1),Qe(this,Re,ri).call(this)}get readyState(){return G(this,Ce)}get url(){return G(this,Et).href}get withCredentials(){return G(this,Qn)}get onerror(){return G(this,Gt)}set onerror(t){he(this,Gt,t)}get onmessage(){return G(this,Bt)}set onmessage(t){he(this,Bt,t)}get onopen(){return G(this,mn)}set onopen(t){he(this,mn,t)}addEventListener(t,n,r){const i=n;super.addEventListener(t,i,r)}removeEventListener(t,n,r){const i=n;super.removeEventListener(t,i,r)}close(){G(this,qt)&&clearTimeout(G(this,qt)),G(this,Ce)!==this.CLOSED&&(G(this,ct)&&G(this,ct).abort(),he(this,Ce,this.CLOSED),he(this,ct,void 0))}}Ce=new WeakMap,Et=new WeakMap,kt=new WeakMap,Qn=new WeakMap,ur=new WeakMap,wn=new WeakMap,qt=new WeakMap,xn=new WeakMap,ct=new WeakMap,Lt=new WeakMap,Gt=new WeakMap,Bt=new WeakMap,mn=new WeakMap,Re=new WeakSet,ri=function(){he(this,Ce,this.CONNECTING),he(this,ct,new AbortController),G(this,ur)(G(this,Et),Qe(this,Re,Is).call(this)).then(G(this,ii)).catch(G(this,si))},ii=new WeakMap,si=new WeakMap,Is=function(){var e;const t={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...G(this,xn)?{"Last-Event-ID":G(this,xn)}:void 0},cache:"no-store",signal:(e=G(this,ct))==null?void 0:e.signal};return"window"in globalThis&&(t.credentials=this.withCredentials?"include":"same-origin"),t},oi=new WeakMap,ai=new WeakMap,yn=function(e,t){var n;G(this,Ce)!==this.CLOSED&&he(this,Ce,this.CLOSED);const r=new As("error",{code:t,message:e});(n=G(this,Gt))==null||n.call(this,r),this.dispatchEvent(r)},li=function(e,t){var n;if(G(this,Ce)===this.CLOSED)return;he(this,Ce,this.CONNECTING);const r=new As("error",{code:t,message:e});(n=G(this,Gt))==null||n.call(this,r),this.dispatchEvent(r),he(this,qt,setTimeout(G(this,ci),G(this,wn)))},ci=new WeakMap,er.CONNECTING=0,er.OPEN=1,er.CLOSED=2;function eu(){const e="document"in globalThis?globalThis.document:void 0;return e&&typeof e=="object"&&"baseURI"in e&&typeof e.baseURI=="string"?e.baseURI:void 0}class tu extends Error{constructor(t,n,r){super(`SSE error: ${n}`),this.code=t,this.event=r}}class nu{constructor(t,n){this._url=t,this._resourceMetadataUrl=void 0,this._scope=void 0,this._eventSourceInit=n?.eventSourceInit,this._requestInit=n?.requestInit,this._authProvider=n?.authProvider,this._fetch=n?.fetch,this._fetchWithInit=uc(n?.fetch,n?.requestInit)}async _authThenStart(){if(!this._authProvider)throw new fn("No auth provider");let t;try{t=await Tr(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(n){throw this.onerror?.(n),n}if(t!=="AUTHORIZED")throw new fn;return await this._startOrAuth()}async _commonHeaders(){const t={};if(this._authProvider){const r=await this._authProvider.tokens();r&&(t.Authorization=`Bearer ${r.access_token}`)}this._protocolVersion&&(t["mcp-protocol-version"]=this._protocolVersion);const n=fc(this._requestInit?.headers);return new Headers({...t,...n})}_startOrAuth(){const t=this?._eventSourceInit?.fetch??this._fetch??fetch;return new Promise((n,r)=>{this._eventSource=new er(this._url.href,{...this._eventSourceInit,fetch:async(i,s)=>{const o=await this._commonHeaders();o.set("Accept","text/event-stream");const a=await t(i,{...s,headers:o});if(a.status===401&&a.headers.has("www-authenticate")){const{resourceMetadataUrl:l,scope:c}=xs(a);this._resourceMetadataUrl=l,this._scope=c}return a}}),this._abortController=new AbortController,this._eventSource.onerror=i=>{if(i.code===401&&this._authProvider){this._authThenStart().then(n,r);return}const s=new tu(i.code,i.message,i);r(s),this.onerror?.(s)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",i=>{const s=i;try{if(this._endpoint=new URL(s.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(o){r(o),this.onerror?.(o),this.close();return}n()}),this._eventSource.onmessage=i=>{const s=i;let o;try{o=sa.parse(JSON.parse(s.data))}catch(a){this.onerror?.(a);return}this.onmessage?.(o)}})}async start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(t){if(!this._authProvider)throw new fn("No auth provider");if(await Tr(this._authProvider,{serverUrl:this._url,authorizationCode:t,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new fn("Failed to authorize")}async close(){this._abortController?.abort(),this._eventSource?.close(),this.onclose?.()}async send(t){if(!this._endpoint)throw new Error("Not connected");try{const n=await this._commonHeaders();n.set("content-type","application/json");const r={...this._requestInit,method:"POST",headers:n,body:JSON.stringify(t),signal:this._abortController?.signal},i=await(this._fetch??fetch)(this._endpoint,r);if(!i.ok){const s=await i.text().catch(()=>null);if(i.status===401&&this._authProvider){const{resourceMetadataUrl:o,scope:a}=xs(i);if(this._resourceMetadataUrl=o,this._scope=a,await Tr(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new fn;return this.send(t)}throw new Error(`Error POSTing to endpoint (HTTP ${i.status}): ${s}`)}await i.body?.cancel()}catch(n){throw this.onerror?.(n),n}}setProtocolVersion(t){this._protocolVersion=t}}const ru="mcp";class iu{constructor(t){this._url=t}start(){if(this._socket)throw new Error("WebSocketClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((t,n)=>{this._socket=new WebSocket(this._url,ru),this._socket.onerror=r=>{const i="error"in r?r.error:new Error(`WebSocket error: ${JSON.stringify(r)}`);n(i),this.onerror?.(i)},this._socket.onopen=()=>{t()},this._socket.onclose=()=>{this.onclose?.()},this._socket.onmessage=r=>{let i;try{i=sa.parse(JSON.parse(r.data))}catch(s){this.onerror?.(s);return}this.onmessage?.(i)}})}async close(){this._socket?.close()}send(t){return new Promise((n,r)=>{if(!this._socket){r(new Error("Not connected"));return}this._socket?.send(JSON.stringify(t)),n()})}}class su extends dc{constructor(t,n){super(t,n)}send(t,n){const r=ou(t);return r?.type==="emit"?(this.onmessage?.(r.message),Promise.resolve()):r?.type==="suppress"?Promise.resolve():super.send(t,n)}}function ou(e){const t=e;if(!t||typeof t!="object"||!("method"in t))return null;switch(t.method){case"initialize":{const n=t?.params?.protocolVersion;return n?{type:"emit",message:{result:{protocolVersion:n,capabilities:{tools:{}},serverInfo:{name:"deco-chat-server",version:"1.0.0"}},jsonrpc:t.jsonrpc??"2.0",id:t.id}}:null}case"notifications/roots/list_changed":case"notifications/initialized":case"notifications/cancelled":case"notifications/progress":return{type:"suppress"};default:return null}}class au extends hc{constructor(t,n){super(t,n)}async listTools(t,n){return await this.request({method:"tools/list",params:t},sc,n)}}const lu=async(e,t,n)=>{const r=cu(e.connection,t,n);if(!r)throw new Error("Unknown MCP connection type");const i=new au({name:e?.name??"MCP Client",version:"1.0.0"});return await i.connect(r),{client:i}},cu=(e,t,n)=>{if(e.type==="Websocket")return new iu(new URL(e.url));if(e.type!=="SSE"&&e.type!=="HTTP")return null;const i={...e.token?{authorization:`Bearer ${e.token}`}:{},...n??{},..."headers"in e?e.headers||{}:{}};if(e.type==="SSE"){const s={requestInit:{headers:i,signal:t}};return e.token&&(s.eventSourceInit={fetch:(o,a)=>fetch(o,{...a,headers:{...i,Accept:"text/event-stream"},signal:t})}),new nu(new URL(e.url),s)}return new su(new URL(e.url),{requestInit:{headers:i,signal:t,credentials:"include"}})},Cs=e=>{try{return JSON.parse(e)}catch{return e}},zn=new Map,Ts=(e,t)=>({...e,id:e.name,inputSchema:e.inputSchema?Ae(e.inputSchema):void 0,outputSchema:e.outputSchema?Ae(e.outputSchema):void 0,execute:n=>t(n.context,e.name)});function uu(e){const t=n=>"connection"in e?lu({connection:e.connection},void 0,n):e.client;return new Proxy({},{get(n,r){if(r==="toJSON")return null;if(typeof r!="string")throw new Error("Name must be a string");if(r==="listTools")return a;async function i(l,c=r){const u=e?.debugId?.(),f=u?{"x-trace-debug-id":u}:void 0,{client:h}=await t(f),{structuredContent:m,isError:d,content:p}=await h.callTool({name:String(c),arguments:l});if(d){const S=p?.[0]?.text,O=typeof S=="string"?Cs(S):null,E=O?.code&&typeof e?.getErrorByStatusCode=="function"?e.getErrorByStatusCode(O.code,O.message,O.traceId):null;throw E||new Error(`Tool ${String(c)} returned an error: ${JSON.stringify(m??p)}`)}if(m!==void 0)return m;const y=p?.[0]?.text;return typeof y=="string"?Cs(y):void 0}async function s(){const{client:l}=await t(),{tools:c}=await l.listTools();return c}async function o(){if(!("connection"in e))return s();const l=e.connection,c=JSON.stringify(l);try{return zn.has(c)||zn.set(c,s()),await zn.get(c)}catch(u){console.error("Failed to list tools",u),zn.delete(c);return}}async function a(){return(await o()??[]).map(c=>Ts(c,i))}return i.asTool=async()=>{const c=(await o()??[]).find(u=>u.name===r);if(!c)throw new Error(`Tool ${r} not found`);return Ts(c,i)},i}})}new Proxy({},{get(e,t){return t==="toJSON"?null:t==="forConnection"?n=>fu({connection:n}):global[t]}});function fu(e){return uu(e)}const du=_e({toolName:oe().describe("Name of the tool to invoke on that connection"),transformCode:oe().optional().describe("Pure TypeScript function for data transformation of the tool call result. Must be a TypeScript file that declares the Output interface and exports a default function: `interface Output { ... } export default async function(stepInput): Output { ... }`\n The stepInput will match with the tool call outputSchema. If transformCode is not provided, the tool call result will be used as the step output.\n Providing an transformCode is recommended because it both allows you to transform the data and validate it against a JSON Schema - tools are ephemeral and may return unexpected data.")}),hu=_e({code:oe().describe(`Pure TypeScript function for data transformation. Useful to merge data from multiple steps and transform it. Must be a TypeScript file that declares the Output interface and exports a default function: \`interface Output { ... } export default async function(stepInput): Output { ... }\`
2
2
  The stepInput is the resolved value of the references in the input field. Example:
3
3
  {
4
4
  "input": {
@@ -1 +1 @@
1
- import{r as h}from"./index-BMDRqzuB.js";var w=(o,i,l,s,c,t,m,d)=>{let r=document.documentElement,u=["light","dark"];function n(e){(Array.isArray(o)?o:[o]).forEach(a=>{let p=a==="class",S=p&&t?c.map(f=>t[f]||f):c;p?(r.classList.remove(...S),r.classList.add(t&&t[e]?t[e]:e)):r.setAttribute(a,e)}),y(e)}function y(e){d&&u.includes(e)&&(r.style.colorScheme=e)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)n(s);else try{let e=localStorage.getItem(i)||l,a=m&&e==="system"?g():e;n(a)}catch{}};h.createContext(void 0);h.memo(({forcedTheme:o,storageKey:i,attribute:l,enableSystem:s,enableColorScheme:c,defaultTheme:t,value:m,themes:d,nonce:r,scriptProps:u})=>{let n=JSON.stringify([l,i,t,o,d,m,s,c]).slice(1,-1);return h.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?r:"",dangerouslySetInnerHTML:{__html:`(${w.toString()})(${n})`}})});
1
+ import{r as h}from"./index-D1OGx8P1.js";var w=(o,i,l,s,c,t,m,d)=>{let r=document.documentElement,u=["light","dark"];function n(e){(Array.isArray(o)?o:[o]).forEach(a=>{let p=a==="class",S=p&&t?c.map(f=>t[f]||f):c;p?(r.classList.remove(...S),r.classList.add(t&&t[e]?t[e]:e)):r.setAttribute(a,e)}),y(e)}function y(e){d&&u.includes(e)&&(r.style.colorScheme=e)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)n(s);else try{let e=localStorage.getItem(i)||l,a=m&&e==="system"?g():e;n(a)}catch{}};h.createContext(void 0);h.memo(({forcedTheme:o,storageKey:i,attribute:l,enableSystem:s,enableColorScheme:c,defaultTheme:t,value:m,themes:d,nonce:r,scriptProps:u})=>{let n=JSON.stringify([l,i,t,o,d,m,s,c]).slice(1,-1);return h.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?r:"",dangerouslySetInnerHTML:{__html:`(${w.toString()})(${n})`}})});