@stigmer/server-slim 3.13.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 (738) hide show
  1. package/README.md +3 -0
  2. package/console/404.html +1 -0
  3. package/console/Icon-bw.svg +10 -0
  4. package/console/Icon-light.svg +10 -0
  5. package/console/__next.__PAGE__.txt +5 -0
  6. package/console/__next._full.txt +28 -0
  7. package/console/__next._head.txt +6 -0
  8. package/console/__next._index.txt +17 -0
  9. package/console/__next._tree.txt +5 -0
  10. package/console/_next/static/XrBnttPHHP5Wmi7mT4uLM/_buildManifest.js +11 -0
  11. package/console/_next/static/XrBnttPHHP5Wmi7mT4uLM/_clientMiddlewareManifest.js +1 -0
  12. package/console/_next/static/XrBnttPHHP5Wmi7mT4uLM/_ssgManifest.js +1 -0
  13. package/console/_next/static/chunks/0-6znc4v4kg4~.js +1 -0
  14. package/console/_next/static/chunks/0-73gkqs33_.~.js +1 -0
  15. package/console/_next/static/chunks/0-l4jzu40dd8w.js +1 -0
  16. package/console/_next/static/chunks/0-z-fnjdx4ulh.js +1 -0
  17. package/console/_next/static/chunks/0-zcgxw8vt51~.js +1 -0
  18. package/console/_next/static/chunks/0.f-b71h~m9l_.js +1 -0
  19. package/console/_next/static/chunks/0.p57pbuzo8j7.js +90 -0
  20. package/console/_next/static/chunks/0.qu8zg6yocro.js +1 -0
  21. package/console/_next/static/chunks/00-fpv~l3r27l.js +1 -0
  22. package/console/_next/static/chunks/005ctashl3n1r.js +1 -0
  23. package/console/_next/static/chunks/0068d1zb538z~.js +1 -0
  24. package/console/_next/static/chunks/008b.zzs.t4bw.js +139 -0
  25. package/console/_next/static/chunks/00d~s.n2ue-_h.js +1 -0
  26. package/console/_next/static/chunks/00o8ud2dmna2j.js +1 -0
  27. package/console/_next/static/chunks/00r~itj4ekq5y.js +1 -0
  28. package/console/_next/static/chunks/01.9x7hzkgv7j.js +1 -0
  29. package/console/_next/static/chunks/016uwj-o-jqap.js +1 -0
  30. package/console/_next/static/chunks/01f1gh.2dzexy.js +1 -0
  31. package/console/_next/static/chunks/01ontipw7_pn-.js +1 -0
  32. package/console/_next/static/chunks/02fsq8lsaeu8j.js +1 -0
  33. package/console/_next/static/chunks/02qsbdquvk64o.js +1 -0
  34. package/console/_next/static/chunks/03.b9z-1o34dx.js +1 -0
  35. package/console/_next/static/chunks/038jxymv2x4u-.js +148 -0
  36. package/console/_next/static/chunks/03f2f6enzzhsy.js +1 -0
  37. package/console/_next/static/chunks/03l_lqxocp3uj.js +1 -0
  38. package/console/_next/static/chunks/03lth2le32c6r.js +201 -0
  39. package/console/_next/static/chunks/03v0v690_bw8u.js +62 -0
  40. package/console/_next/static/chunks/03yru4-m-450t.js +1 -0
  41. package/console/_next/static/chunks/03~yq9q893hmn.js +1 -0
  42. package/console/_next/static/chunks/04nu-nyhd8yfk.js +18 -0
  43. package/console/_next/static/chunks/04uzf6wcrofgt.js +1 -0
  44. package/console/_next/static/chunks/056bfxvkb8fd~.js +1 -0
  45. package/console/_next/static/chunks/06huuay3x3z07.js +1 -0
  46. package/console/_next/static/chunks/06o.rsm2b~dht.js +60 -0
  47. package/console/_next/static/chunks/07.l7154cu7z-.js +1 -0
  48. package/console/_next/static/chunks/07wnm1~gr1rx~.js +1 -0
  49. package/console/_next/static/chunks/08.rk-nar1l2t.js +25 -0
  50. package/console/_next/static/chunks/08iibm2~7e.mj.js +1 -0
  51. package/console/_next/static/chunks/08o5wsrurx9ux.js +5 -0
  52. package/console/_next/static/chunks/09~n7y-jkmjlj.js +152 -0
  53. package/console/_next/static/chunks/0_mhv9_2_g.-d.js +119 -0
  54. package/console/_next/static/chunks/0af53k.rxu1kn.js +1 -0
  55. package/console/_next/static/chunks/0amugang-25bm.js +1 -0
  56. package/console/_next/static/chunks/0awsj.h.eiuen.js +1 -0
  57. package/console/_next/static/chunks/0axtn1ln1j35_.js +79 -0
  58. package/console/_next/static/chunks/0c5xj4q0jmdu0.js +1 -0
  59. package/console/_next/static/chunks/0c7llz2igr3w7.js +1 -0
  60. package/console/_next/static/chunks/0cgp87bgoglgv.js +1 -0
  61. package/console/_next/static/chunks/0co3~00k0sae5.js +1 -0
  62. package/console/_next/static/chunks/0cq0zrqlu~xa7.js +1 -0
  63. package/console/_next/static/chunks/0cs_h74-ljzlt.js +77 -0
  64. package/console/_next/static/chunks/0cu8k_dz43e4y.js +1 -0
  65. package/console/_next/static/chunks/0d05q_m7mqj4o.js +1 -0
  66. package/console/_next/static/chunks/0dsde0n1co0l..js +1 -0
  67. package/console/_next/static/chunks/0e4xdug~7dxzk.js +1 -0
  68. package/console/_next/static/chunks/0e7hldxv930hc.js +12 -0
  69. package/console/_next/static/chunks/0ed3hfv95qark.js +10 -0
  70. package/console/_next/static/chunks/0f1nokqa6poai.js +1 -0
  71. package/console/_next/static/chunks/0f8bbcvfh6x_j.js +64 -0
  72. package/console/_next/static/chunks/0fy2-q-5a0j3r.js +1 -0
  73. package/console/_next/static/chunks/0g-98wql22rf4.css +1 -0
  74. package/console/_next/static/chunks/0g167wye7-x6z.js +1 -0
  75. package/console/_next/static/chunks/0g4_345f39a55.js +1 -0
  76. package/console/_next/static/chunks/0ge0mq0ea60lx.js +1 -0
  77. package/console/_next/static/chunks/0gepanyj709pr.js +1 -0
  78. package/console/_next/static/chunks/0glne1asott9e.js +2 -0
  79. package/console/_next/static/chunks/0hb.-vcj2w6kf.js +1 -0
  80. package/console/_next/static/chunks/0hdh_2akzrlxi.js +287 -0
  81. package/console/_next/static/chunks/0hhe78mplcj67.js +1 -0
  82. package/console/_next/static/chunks/0hori02zn~h3o.js +1 -0
  83. package/console/_next/static/chunks/0hq~c-~dp2g~1.js +1 -0
  84. package/console/_next/static/chunks/0i.l9589uvx0j.js +1 -0
  85. package/console/_next/static/chunks/0i8pgzf~hu-3m.js +24 -0
  86. package/console/_next/static/chunks/0icpvuwlmnlty.js +43 -0
  87. package/console/_next/static/chunks/0icsogze8wb_v.js +3 -0
  88. package/console/_next/static/chunks/0ij17mw0v0qd-.js +1 -0
  89. package/console/_next/static/chunks/0io-wgdji~5d0.js +1 -0
  90. package/console/_next/static/chunks/0ipk1er3w80bj.js +24 -0
  91. package/console/_next/static/chunks/0irq1yd9ix16u.js +1 -0
  92. package/console/_next/static/chunks/0iwpyv2wbln6f.js +1 -0
  93. package/console/_next/static/chunks/0ixo5_jc~m0~2.js +1 -0
  94. package/console/_next/static/chunks/0jxlubusvmdjm.js +1 -0
  95. package/console/_next/static/chunks/0j~3z.dgn_8ff.css +6 -0
  96. package/console/_next/static/chunks/0k9_1v72yx36d.js +226 -0
  97. package/console/_next/static/chunks/0ka-.7dww7nze.js +101 -0
  98. package/console/_next/static/chunks/0kt3942_0py-t.js +1 -0
  99. package/console/_next/static/chunks/0l3uvjh3oslhq.js +1 -0
  100. package/console/_next/static/chunks/0lp.du_t-~cqs.js +2 -0
  101. package/console/_next/static/chunks/0lq22-4n7_uyt.js +34 -0
  102. package/console/_next/static/chunks/0lypu-.xpph9..js +15 -0
  103. package/console/_next/static/chunks/0mb.pnhflhw95.js +1 -0
  104. package/console/_next/static/chunks/0mcz_room09fj.js +1 -0
  105. package/console/_next/static/chunks/0mo3-obfy2_6v.js +15 -0
  106. package/console/_next/static/chunks/0mtfbfe5xd3.6.js +1 -0
  107. package/console/_next/static/chunks/0mvcspqlkvjri.js +1 -0
  108. package/console/_next/static/chunks/0n2qydw3oc1oj.js +1 -0
  109. package/console/_next/static/chunks/0nnkdto25tilf.js +1 -0
  110. package/console/_next/static/chunks/0npm9l63~4j0v.js +1 -0
  111. package/console/_next/static/chunks/0nu6llqvg4741.js +1 -0
  112. package/console/_next/static/chunks/0n~glqz40m6gv.js +1 -0
  113. package/console/_next/static/chunks/0o-.19qua6web.js +5 -0
  114. package/console/_next/static/chunks/0omq5mq8dkd24.js +1 -0
  115. package/console/_next/static/chunks/0oprw5m.lmqln.js +1 -0
  116. package/console/_next/static/chunks/0ortphe030oky.js +1 -0
  117. package/console/_next/static/chunks/0oufb2b491l23.js +153 -0
  118. package/console/_next/static/chunks/0owq59irnycu5.js +1 -0
  119. package/console/_next/static/chunks/0ptwwlt0l20~o.js +1 -0
  120. package/console/_next/static/chunks/0q2tc-vqxe1_n.js +1 -0
  121. package/console/_next/static/chunks/0qfu4h5g.k-yt.js +1 -0
  122. package/console/_next/static/chunks/0qji_.pm~u8x3.js +1 -0
  123. package/console/_next/static/chunks/0qm2930z0c.8m.js +80 -0
  124. package/console/_next/static/chunks/0q~1rz_i~v0vs.js +1 -0
  125. package/console/_next/static/chunks/0r4lipg4xb6fx.js +1 -0
  126. package/console/_next/static/chunks/0rhvismtjivza.js +104 -0
  127. package/console/_next/static/chunks/0rmt10l3458p_.js +93 -0
  128. package/console/_next/static/chunks/0rob~86j~8vge.js +1 -0
  129. package/console/_next/static/chunks/0r~zu0c3j_b7p.js +1 -0
  130. package/console/_next/static/chunks/0s0v8xobo-2ok.js +34 -0
  131. package/console/_next/static/chunks/0s8nwq43gep9_.js +15 -0
  132. package/console/_next/static/chunks/0spswjguxbqfn.js +1 -0
  133. package/console/_next/static/chunks/0t6aq14rpn1.w.js +1 -0
  134. package/console/_next/static/chunks/0taiwi2j.k7mm.js +1 -0
  135. package/console/_next/static/chunks/0tj3k0t29gpn7.js +1 -0
  136. package/console/_next/static/chunks/0tq77.56bu2eu.js +1 -0
  137. package/console/_next/static/chunks/0ulcdeu8yx-cn.js +1 -0
  138. package/console/_next/static/chunks/0uvbqsa~x3_x6.js +1 -0
  139. package/console/_next/static/chunks/0uw8zy_zoej6s.js +1 -0
  140. package/console/_next/static/chunks/0uz5-~rqk9vr..js +1 -0
  141. package/console/_next/static/chunks/0w3ug0~zih~j2.js +1 -0
  142. package/console/_next/static/chunks/0wfrz3x.bxehc.js +1 -0
  143. package/console/_next/static/chunks/0wyb4nqlt6his.js +1 -0
  144. package/console/_next/static/chunks/0x.4919xjicc5.js +75 -0
  145. package/console/_next/static/chunks/0xr1dk~mec2dn.js +1 -0
  146. package/console/_next/static/chunks/0xxouzzjw_a6q.js +115 -0
  147. package/console/_next/static/chunks/0y0u4wm.3~_ac.js +1 -0
  148. package/console/_next/static/chunks/0y4vop46pw7ip.js +2 -0
  149. package/console/_next/static/chunks/0y5z3t-z1c8ks.js.map +5 -0
  150. package/console/_next/static/chunks/0y99xmlf_e2si.js +1 -0
  151. package/console/_next/static/chunks/0ydl92ezt_ppz.js +1 -0
  152. package/console/_next/static/chunks/0ywlzawl2ml3h.js +1 -0
  153. package/console/_next/static/chunks/0yysdfbgz-l8n.js +1 -0
  154. package/console/_next/static/chunks/0zjs5hlwbvch9.js +4 -0
  155. package/console/_next/static/chunks/0zsntdh42--v1.js +1 -0
  156. package/console/_next/static/chunks/104yvyc1ce3q5.js +1 -0
  157. package/console/_next/static/chunks/1051z1rwyse00.js +1 -0
  158. package/console/_next/static/chunks/10h6g4u9i~5h8.js +1 -0
  159. package/console/_next/static/chunks/10isn5~-bj4w5.js +4 -0
  160. package/console/_next/static/chunks/10ymqudg~95gr.js +1 -0
  161. package/console/_next/static/chunks/111eimn8nia.7.js +1 -0
  162. package/console/_next/static/chunks/1155_-gh-rcvi.js +1 -0
  163. package/console/_next/static/chunks/117cg_x8i7.ol.js +1 -0
  164. package/console/_next/static/chunks/11_7qxlc92f5s.js +1 -0
  165. package/console/_next/static/chunks/11h85j-8~tny3.js +36 -0
  166. package/console/_next/static/chunks/11t~35bechtea.js +1 -0
  167. package/console/_next/static/chunks/11uh-ttx4zin-.js +9 -0
  168. package/console/_next/static/chunks/11xfx57fbi3md.js +2 -0
  169. package/console/_next/static/chunks/12329wyw7127c.js +1 -0
  170. package/console/_next/static/chunks/123jshjvn0ocr.js +31 -0
  171. package/console/_next/static/chunks/128ahbvhdeeq-.js +1 -0
  172. package/console/_next/static/chunks/13hl4dngamd3l.js +127 -0
  173. package/console/_next/static/chunks/14.38bpm-d3-l.js +1 -0
  174. package/console/_next/static/chunks/14i46k409qlt0.js +1 -0
  175. package/console/_next/static/chunks/14j238ax8coge.js +29 -0
  176. package/console/_next/static/chunks/159151ghv9-cc.js +1 -0
  177. package/console/_next/static/chunks/15hlb71q~xfev.js +1 -0
  178. package/console/_next/static/chunks/15r_pfbdb2jhp.js +23 -0
  179. package/console/_next/static/chunks/15wc.2zpsy4wc.js +4 -0
  180. package/console/_next/static/chunks/16pzrphqjtyli.js +1 -0
  181. package/console/_next/static/chunks/16ukgtm3fhab~.js +1071 -0
  182. package/console/_next/static/chunks/170p3g7_6_620.js +2 -0
  183. package/console/_next/static/chunks/175hd_pl41_vh.js +15 -0
  184. package/console/_next/static/chunks/17glhyaxi4vs-.js +1 -0
  185. package/console/_next/static/chunks/17jhgtykn778_.js +1 -0
  186. package/console/_next/static/chunks/17v4twif7y~.b.js +1 -0
  187. package/console/_next/static/chunks/182b_f_n0-cdr.js +1 -0
  188. package/console/_next/static/chunks/187v8dzyf1l-f.js +80 -0
  189. package/console/_next/static/chunks/turbopack-0cvnq9zq1g68-.js +1 -0
  190. package/console/_next/static/chunks/turbopack-172c~.rma.yso.js +1 -0
  191. package/console/_next/static/chunks/turbopack-worker-0sjn--fhq~1cg.js +1 -0
  192. package/console/_next/static/media/02263ebadd758ea4-s.0qg7j5o.yrclm.woff2 +0 -0
  193. package/console/_next/static/media/03fc1b4a8d284b5e-s.09.f.n_ccld80.woff2 +0 -0
  194. package/console/_next/static/media/07454f8ad8aaac57-s.0tqkxa-w3pk~c.woff2 +0 -0
  195. package/console/_next/static/media/1bcd0e671759a44c-s.0vnh8.d8wxa2x.woff2 +0 -0
  196. package/console/_next/static/media/1bffadaabf893a1e-s.16ipb6fqu393i.woff2 +0 -0
  197. package/console/_next/static/media/224e262ef877bfa4-s.0mo8vqgr8yagc.woff2 +0 -0
  198. package/console/_next/static/media/2bbe8d2671613f1f-s.067x_6k0k23tk.woff2 +0 -0
  199. package/console/_next/static/media/2c55a0e60120577a-s.0bjc5tiuqdqro.woff2 +0 -0
  200. package/console/_next/static/media/2fe89d53234c61d4-s.0k_.i63k_i_qa.woff2 +0 -0
  201. package/console/_next/static/media/4fa387ec64143e14-s.0wkzw~je483f-.woff2 +0 -0
  202. package/console/_next/static/media/53b9e256198e5412-s.0-wfv7uh4i7h9.woff2 +0 -0
  203. package/console/_next/static/media/5476f68d60460930-s.0wxq9webf.ew4.woff2 +0 -0
  204. package/console/_next/static/media/57215795b8570f5c-s.0vwgtotjdgnhr.woff2 +0 -0
  205. package/console/_next/static/media/59b15b4bcd7b1eb5-s.0x08jh8vondwt.woff2 +0 -0
  206. package/console/_next/static/media/5ce348bf30bf5439-s.0zgw-jeven.3w.woff2 +0 -0
  207. package/console/_next/static/media/5e05ae5b48faa55e-s.0m9hhkgdlzukj.woff2 +0 -0
  208. package/console/_next/static/media/6306c77e7c8268e4-s.0rhz0arwfsn~5.woff2 +0 -0
  209. package/console/_next/static/media/68757d6cddeff913-s.0hkrq11n-dhos.woff2 +0 -0
  210. package/console/_next/static/media/7178b3e590c64307-s.0nx0ww8fni_q3.woff2 +0 -0
  211. package/console/_next/static/media/797e433ab948586e-s.p.08e28id.o-okb.woff2 +0 -0
  212. package/console/_next/static/media/7d817b4c03b0c5f1-s.0l76wvqk9d84w.woff2 +0 -0
  213. package/console/_next/static/media/7f11d98043fdedc9-s.0r4w1y.tjq0ay.woff2 +0 -0
  214. package/console/_next/static/media/7fea77d1d19108bf-s.0xyeb7czu1stb.woff2 +0 -0
  215. package/console/_next/static/media/83afe278b6a6bb3c-s.0q-301v4kxxnr.woff2 +0 -0
  216. package/console/_next/static/media/8a480f0b521d4e75-s.0jzbimsg8vl84.woff2 +0 -0
  217. package/console/_next/static/media/90c51ce8fb754fe8-s.00z~hoalba5dm.woff2 +0 -0
  218. package/console/_next/static/media/99e609270109b47d-s.16-z~2sp29ex6.woff2 +0 -0
  219. package/console/_next/static/media/9c72aa0f40e4eef8-s.0m6w47a4e5dy9.woff2 +0 -0
  220. package/console/_next/static/media/a7afbb44bec2bb18-s.0juuwbcf7uz~t.woff2 +0 -0
  221. package/console/_next/static/media/ad66f9afd8947f86-s.11u06r12fd6v_.woff2 +0 -0
  222. package/console/_next/static/media/bbc41e54d2fcbd21-s.0k4k9394f2q-k.woff2 +0 -0
  223. package/console/_next/static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2 +0 -0
  224. package/console/_next/static/media/d8cb5ab3660140cd-s.0ri_id_kcagyz.woff2 +0 -0
  225. package/console/_next/static/media/e15f58668ad64cb8-s.0~.8lt~vdqmc3.woff2 +0 -0
  226. package/console/_next/static/media/e390973e931a41c5-s.08hd0g.321csk.woff2 +0 -0
  227. package/console/_next/static/media/e532fa1b9921e1cd-s.0~wrfy7sm-h4g.woff2 +0 -0
  228. package/console/_next/static/media/e6d00ff86ef9e699-s.0lcb62h0-.jh3.woff2 +0 -0
  229. package/console/_next/static/media/effe91970fc4db64-s.07ig5l8azj~hy.woff2 +0 -0
  230. package/console/_next/static/media/elk-worker.min.13hrbirt7_.ef.js +6401 -0
  231. package/console/_next/static/media/favicon.0x3dzn~oxb6tn.ico +0 -0
  232. package/console/_next/static/media/fef07dbb0973bf53-s.12tyk43_3sh9u.woff2 +0 -0
  233. package/console/_not-found/__next._full.txt +29 -0
  234. package/console/_not-found/__next._head.txt +6 -0
  235. package/console/_not-found/__next._index.txt +17 -0
  236. package/console/_not-found/__next._not-found.__PAGE__.txt +6 -0
  237. package/console/_not-found/__next._not-found.txt +5 -0
  238. package/console/_not-found/__next._tree.txt +3 -0
  239. package/console/_not-found.html +1 -0
  240. package/console/_not-found.txt +29 -0
  241. package/console/apple-touch-icon-dark.png +0 -0
  242. package/console/apple-touch-icon-light.png +0 -0
  243. package/console/auth/callback/__next._full.txt +36 -0
  244. package/console/auth/callback/__next._head.txt +6 -0
  245. package/console/auth/callback/__next._index.txt +17 -0
  246. package/console/auth/callback/__next._tree.txt +5 -0
  247. package/console/auth/callback/__next.auth.callback.__PAGE__.txt +9 -0
  248. package/console/auth/callback/__next.auth.callback.txt +5 -0
  249. package/console/auth/callback/__next.auth.txt +5 -0
  250. package/console/auth/callback.html +1 -0
  251. package/console/auth/callback.txt +36 -0
  252. package/console/auth/github/callback/__next._full.txt +37 -0
  253. package/console/auth/github/callback/__next._head.txt +6 -0
  254. package/console/auth/github/callback/__next._index.txt +17 -0
  255. package/console/auth/github/callback/__next._tree.txt +5 -0
  256. package/console/auth/github/callback/__next.auth.github.callback.__PAGE__.txt +9 -0
  257. package/console/auth/github/callback/__next.auth.github.callback.txt +5 -0
  258. package/console/auth/github/callback/__next.auth.github.txt +5 -0
  259. package/console/auth/github/callback/__next.auth.txt +5 -0
  260. package/console/auth/github/callback.html +1 -0
  261. package/console/auth/github/callback.txt +37 -0
  262. package/console/auth/oauth/callback/__next._full.txt +37 -0
  263. package/console/auth/oauth/callback/__next._head.txt +6 -0
  264. package/console/auth/oauth/callback/__next._index.txt +17 -0
  265. package/console/auth/oauth/callback/__next._tree.txt +5 -0
  266. package/console/auth/oauth/callback/__next.auth.oauth.callback.__PAGE__.txt +9 -0
  267. package/console/auth/oauth/callback/__next.auth.oauth.callback.txt +5 -0
  268. package/console/auth/oauth/callback/__next.auth.oauth.txt +5 -0
  269. package/console/auth/oauth/callback/__next.auth.txt +5 -0
  270. package/console/auth/oauth/callback.html +1 -0
  271. package/console/auth/oauth/callback.txt +37 -0
  272. package/console/chat/__placeholder__/__placeholder__/__next._full.txt +35 -0
  273. package/console/chat/__placeholder__/__placeholder__/__next._head.txt +6 -0
  274. package/console/chat/__placeholder__/__placeholder__/__next._index.txt +17 -0
  275. package/console/chat/__placeholder__/__placeholder__/__next._tree.txt +5 -0
  276. package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.$d$slug.__PAGE__.txt +6 -0
  277. package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.$d$slug.txt +5 -0
  278. package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.txt +5 -0
  279. package/console/chat/__placeholder__/__placeholder__/__next.chat.txt +5 -0
  280. package/console/chat/__placeholder__/__placeholder__.html +1 -0
  281. package/console/chat/__placeholder__/__placeholder__.txt +35 -0
  282. package/console/conversations/__next._full.txt +32 -0
  283. package/console/conversations/__next._head.txt +6 -0
  284. package/console/conversations/__next._index.txt +17 -0
  285. package/console/conversations/__next._tree.txt +5 -0
  286. package/console/conversations/__next.conversations.__PAGE__.txt +6 -0
  287. package/console/conversations/__next.conversations.txt +5 -0
  288. package/console/conversations/__placeholder__/__placeholder__/__next._full.txt +35 -0
  289. package/console/conversations/__placeholder__/__placeholder__/__next._head.txt +6 -0
  290. package/console/conversations/__placeholder__/__placeholder__/__next._index.txt +17 -0
  291. package/console/conversations/__placeholder__/__placeholder__/__next._tree.txt +5 -0
  292. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.$d$key.__PAGE__.txt +6 -0
  293. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.$d$key.txt +5 -0
  294. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.txt +5 -0
  295. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.txt +5 -0
  296. package/console/conversations/__placeholder__/__placeholder__.html +1 -0
  297. package/console/conversations/__placeholder__/__placeholder__.txt +35 -0
  298. package/console/conversations.html +1 -0
  299. package/console/conversations.txt +32 -0
  300. package/console/dashboard/__next._full.txt +32 -0
  301. package/console/dashboard/__next._head.txt +6 -0
  302. package/console/dashboard/__next._index.txt +17 -0
  303. package/console/dashboard/__next._tree.txt +5 -0
  304. package/console/dashboard/__next.dashboard.__PAGE__.txt +6 -0
  305. package/console/dashboard/__next.dashboard.txt +5 -0
  306. package/console/dashboard.html +1 -0
  307. package/console/dashboard.txt +32 -0
  308. package/console/embed.js +1 -0
  309. package/console/executions/__placeholder__/__next._full.txt +32 -0
  310. package/console/executions/__placeholder__/__next._head.txt +6 -0
  311. package/console/executions/__placeholder__/__next._index.txt +17 -0
  312. package/console/executions/__placeholder__/__next._tree.txt +5 -0
  313. package/console/executions/__placeholder__/__next.executions.$d$id.__PAGE__.txt +5 -0
  314. package/console/executions/__placeholder__/__next.executions.$d$id.txt +5 -0
  315. package/console/executions/__placeholder__/__next.executions.txt +5 -0
  316. package/console/executions/__placeholder__.html +1 -0
  317. package/console/executions/__placeholder__.txt +32 -0
  318. package/console/favicon-dark-16x16.png +0 -0
  319. package/console/favicon-dark-32x32.png +0 -0
  320. package/console/favicon-dark.ico +0 -0
  321. package/console/favicon-dark.svg +11 -0
  322. package/console/favicon-light-16x16.png +0 -0
  323. package/console/favicon-light-32x32.png +0 -0
  324. package/console/favicon-light.ico +0 -0
  325. package/console/favicon-light.svg +11 -0
  326. package/console/favicon.ico +0 -0
  327. package/console/index.html +1 -0
  328. package/console/index.txt +28 -0
  329. package/console/invite/__placeholder__/__next._full.txt +33 -0
  330. package/console/invite/__placeholder__/__next._head.txt +6 -0
  331. package/console/invite/__placeholder__/__next._index.txt +17 -0
  332. package/console/invite/__placeholder__/__next._tree.txt +5 -0
  333. package/console/invite/__placeholder__/__next.invite.$d$token.__PAGE__.txt +6 -0
  334. package/console/invite/__placeholder__/__next.invite.$d$token.txt +5 -0
  335. package/console/invite/__placeholder__/__next.invite.txt +5 -0
  336. package/console/invite/__placeholder__.html +1 -0
  337. package/console/invite/__placeholder__.txt +33 -0
  338. package/console/library/__next._full.txt +33 -0
  339. package/console/library/__next._head.txt +6 -0
  340. package/console/library/__next._index.txt +17 -0
  341. package/console/library/__next._tree.txt +5 -0
  342. package/console/library/__next.library.__PAGE__.txt +6 -0
  343. package/console/library/__next.library.txt +7 -0
  344. package/console/library/agents/__next._full.txt +36 -0
  345. package/console/library/agents/__next._head.txt +6 -0
  346. package/console/library/agents/__next._index.txt +17 -0
  347. package/console/library/agents/__next._tree.txt +5 -0
  348. package/console/library/agents/__next.library.agents.__PAGE__.txt +6 -0
  349. package/console/library/agents/__next.library.agents.txt +5 -0
  350. package/console/library/agents/__next.library.txt +7 -0
  351. package/console/library/agents/__placeholder__/__placeholder__/__next._full.txt +39 -0
  352. package/console/library/agents/__placeholder__/__placeholder__/__next._head.txt +6 -0
  353. package/console/library/agents/__placeholder__/__placeholder__/__next._index.txt +17 -0
  354. package/console/library/agents/__placeholder__/__placeholder__/__next._tree.txt +5 -0
  355. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.$d$slug.__PAGE__.txt +6 -0
  356. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.$d$slug.txt +5 -0
  357. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.txt +5 -0
  358. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.txt +5 -0
  359. package/console/library/agents/__placeholder__/__placeholder__/__next.library.txt +7 -0
  360. package/console/library/agents/__placeholder__/__placeholder__.html +1 -0
  361. package/console/library/agents/__placeholder__/__placeholder__.txt +39 -0
  362. package/console/library/agents/new/__next._full.txt +40 -0
  363. package/console/library/agents/new/__next._head.txt +6 -0
  364. package/console/library/agents/new/__next._index.txt +17 -0
  365. package/console/library/agents/new/__next._tree.txt +5 -0
  366. package/console/library/agents/new/__next.library.agents.new.__PAGE__.txt +9 -0
  367. package/console/library/agents/new/__next.library.agents.new.txt +5 -0
  368. package/console/library/agents/new/__next.library.agents.txt +5 -0
  369. package/console/library/agents/new/__next.library.txt +7 -0
  370. package/console/library/agents/new.html +1 -0
  371. package/console/library/agents/new.txt +40 -0
  372. package/console/library/agents.html +1 -0
  373. package/console/library/agents.txt +36 -0
  374. package/console/library/mcp-servers/__next._full.txt +36 -0
  375. package/console/library/mcp-servers/__next._head.txt +6 -0
  376. package/console/library/mcp-servers/__next._index.txt +17 -0
  377. package/console/library/mcp-servers/__next._tree.txt +5 -0
  378. package/console/library/mcp-servers/__next.library.mcp-servers.__PAGE__.txt +6 -0
  379. package/console/library/mcp-servers/__next.library.mcp-servers.txt +5 -0
  380. package/console/library/mcp-servers/__next.library.txt +7 -0
  381. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._full.txt +39 -0
  382. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._head.txt +6 -0
  383. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._index.txt +17 -0
  384. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._tree.txt +5 -0
  385. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.$d$slug.__PAGE__.txt +6 -0
  386. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.$d$slug.txt +5 -0
  387. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.txt +5 -0
  388. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.txt +5 -0
  389. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.txt +7 -0
  390. package/console/library/mcp-servers/__placeholder__/__placeholder__.html +1 -0
  391. package/console/library/mcp-servers/__placeholder__/__placeholder__.txt +39 -0
  392. package/console/library/mcp-servers/new/__next._full.txt +40 -0
  393. package/console/library/mcp-servers/new/__next._head.txt +6 -0
  394. package/console/library/mcp-servers/new/__next._index.txt +17 -0
  395. package/console/library/mcp-servers/new/__next._tree.txt +5 -0
  396. package/console/library/mcp-servers/new/__next.library.mcp-servers.new.__PAGE__.txt +9 -0
  397. package/console/library/mcp-servers/new/__next.library.mcp-servers.new.txt +5 -0
  398. package/console/library/mcp-servers/new/__next.library.mcp-servers.txt +5 -0
  399. package/console/library/mcp-servers/new/__next.library.txt +7 -0
  400. package/console/library/mcp-servers/new.html +1 -0
  401. package/console/library/mcp-servers/new.txt +40 -0
  402. package/console/library/mcp-servers.html +1 -0
  403. package/console/library/mcp-servers.txt +36 -0
  404. package/console/library/schedules/__next._full.txt +36 -0
  405. package/console/library/schedules/__next._head.txt +6 -0
  406. package/console/library/schedules/__next._index.txt +17 -0
  407. package/console/library/schedules/__next._tree.txt +5 -0
  408. package/console/library/schedules/__next.library.schedules.__PAGE__.txt +6 -0
  409. package/console/library/schedules/__next.library.schedules.txt +5 -0
  410. package/console/library/schedules/__next.library.txt +7 -0
  411. package/console/library/schedules/__placeholder__/__placeholder__/__next._full.txt +39 -0
  412. package/console/library/schedules/__placeholder__/__placeholder__/__next._head.txt +6 -0
  413. package/console/library/schedules/__placeholder__/__placeholder__/__next._index.txt +17 -0
  414. package/console/library/schedules/__placeholder__/__placeholder__/__next._tree.txt +5 -0
  415. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.$d$slug.__PAGE__.txt +6 -0
  416. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.$d$slug.txt +5 -0
  417. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.txt +5 -0
  418. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.txt +5 -0
  419. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.txt +7 -0
  420. package/console/library/schedules/__placeholder__/__placeholder__.html +1 -0
  421. package/console/library/schedules/__placeholder__/__placeholder__.txt +39 -0
  422. package/console/library/schedules/new/__next._full.txt +40 -0
  423. package/console/library/schedules/new/__next._head.txt +6 -0
  424. package/console/library/schedules/new/__next._index.txt +17 -0
  425. package/console/library/schedules/new/__next._tree.txt +5 -0
  426. package/console/library/schedules/new/__next.library.schedules.new.__PAGE__.txt +9 -0
  427. package/console/library/schedules/new/__next.library.schedules.new.txt +5 -0
  428. package/console/library/schedules/new/__next.library.schedules.txt +5 -0
  429. package/console/library/schedules/new/__next.library.txt +7 -0
  430. package/console/library/schedules/new.html +1 -0
  431. package/console/library/schedules/new.txt +40 -0
  432. package/console/library/schedules.html +1 -0
  433. package/console/library/schedules.txt +36 -0
  434. package/console/library/skills/__next._full.txt +36 -0
  435. package/console/library/skills/__next._head.txt +6 -0
  436. package/console/library/skills/__next._index.txt +17 -0
  437. package/console/library/skills/__next._tree.txt +5 -0
  438. package/console/library/skills/__next.library.skills.__PAGE__.txt +6 -0
  439. package/console/library/skills/__next.library.skills.txt +5 -0
  440. package/console/library/skills/__next.library.txt +7 -0
  441. package/console/library/skills/__placeholder__/__placeholder__/__next._full.txt +39 -0
  442. package/console/library/skills/__placeholder__/__placeholder__/__next._head.txt +6 -0
  443. package/console/library/skills/__placeholder__/__placeholder__/__next._index.txt +17 -0
  444. package/console/library/skills/__placeholder__/__placeholder__/__next._tree.txt +5 -0
  445. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.$d$slug.__PAGE__.txt +6 -0
  446. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.$d$slug.txt +5 -0
  447. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.txt +5 -0
  448. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.txt +5 -0
  449. package/console/library/skills/__placeholder__/__placeholder__/__next.library.txt +7 -0
  450. package/console/library/skills/__placeholder__/__placeholder__.html +1 -0
  451. package/console/library/skills/__placeholder__/__placeholder__.txt +39 -0
  452. package/console/library/skills/new/__next._full.txt +40 -0
  453. package/console/library/skills/new/__next._head.txt +6 -0
  454. package/console/library/skills/new/__next._index.txt +17 -0
  455. package/console/library/skills/new/__next._tree.txt +5 -0
  456. package/console/library/skills/new/__next.library.skills.new.__PAGE__.txt +9 -0
  457. package/console/library/skills/new/__next.library.skills.new.txt +5 -0
  458. package/console/library/skills/new/__next.library.skills.txt +5 -0
  459. package/console/library/skills/new/__next.library.txt +7 -0
  460. package/console/library/skills/new.html +1 -0
  461. package/console/library/skills/new.txt +40 -0
  462. package/console/library/skills.html +1 -0
  463. package/console/library/skills.txt +36 -0
  464. package/console/library/workflows/__next._full.txt +36 -0
  465. package/console/library/workflows/__next._head.txt +6 -0
  466. package/console/library/workflows/__next._index.txt +17 -0
  467. package/console/library/workflows/__next._tree.txt +5 -0
  468. package/console/library/workflows/__next.library.txt +7 -0
  469. package/console/library/workflows/__next.library.workflows.__PAGE__.txt +6 -0
  470. package/console/library/workflows/__next.library.workflows.txt +5 -0
  471. package/console/library/workflows/__placeholder__/__placeholder__/__next._full.txt +39 -0
  472. package/console/library/workflows/__placeholder__/__placeholder__/__next._head.txt +6 -0
  473. package/console/library/workflows/__placeholder__/__placeholder__/__next._index.txt +17 -0
  474. package/console/library/workflows/__placeholder__/__placeholder__/__next._tree.txt +5 -0
  475. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.txt +7 -0
  476. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.$d$slug.__PAGE__.txt +6 -0
  477. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.$d$slug.txt +5 -0
  478. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.txt +5 -0
  479. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.txt +5 -0
  480. package/console/library/workflows/__placeholder__/__placeholder__.html +1 -0
  481. package/console/library/workflows/__placeholder__/__placeholder__.txt +39 -0
  482. package/console/library/workflows/executions/__next._full.txt +37 -0
  483. package/console/library/workflows/executions/__next._head.txt +6 -0
  484. package/console/library/workflows/executions/__next._index.txt +17 -0
  485. package/console/library/workflows/executions/__next._tree.txt +5 -0
  486. package/console/library/workflows/executions/__next.library.txt +7 -0
  487. package/console/library/workflows/executions/__next.library.workflows.executions.__PAGE__.txt +6 -0
  488. package/console/library/workflows/executions/__next.library.workflows.executions.txt +5 -0
  489. package/console/library/workflows/executions/__next.library.workflows.txt +5 -0
  490. package/console/library/workflows/executions.html +1 -0
  491. package/console/library/workflows/executions.txt +37 -0
  492. package/console/library/workflows/new/__next._full.txt +40 -0
  493. package/console/library/workflows/new/__next._head.txt +6 -0
  494. package/console/library/workflows/new/__next._index.txt +17 -0
  495. package/console/library/workflows/new/__next._tree.txt +5 -0
  496. package/console/library/workflows/new/__next.library.txt +7 -0
  497. package/console/library/workflows/new/__next.library.workflows.new.__PAGE__.txt +9 -0
  498. package/console/library/workflows/new/__next.library.workflows.new.txt +5 -0
  499. package/console/library/workflows/new/__next.library.workflows.txt +5 -0
  500. package/console/library/workflows/new.html +1 -0
  501. package/console/library/workflows/new.txt +40 -0
  502. package/console/library/workflows.html +1 -0
  503. package/console/library/workflows.txt +36 -0
  504. package/console/library.html +1 -0
  505. package/console/library.txt +33 -0
  506. package/console/login/__next._full.txt +35 -0
  507. package/console/login/__next._head.txt +6 -0
  508. package/console/login/__next._index.txt +17 -0
  509. package/console/login/__next._tree.txt +5 -0
  510. package/console/login/__next.login.__PAGE__.txt +9 -0
  511. package/console/login/__next.login.txt +5 -0
  512. package/console/login.html +1 -0
  513. package/console/login.txt +35 -0
  514. package/console/logo.svg +1 -0
  515. package/console/oauth/slack/callback/__next._full.txt +37 -0
  516. package/console/oauth/slack/callback/__next._head.txt +6 -0
  517. package/console/oauth/slack/callback/__next._index.txt +17 -0
  518. package/console/oauth/slack/callback/__next._tree.txt +5 -0
  519. package/console/oauth/slack/callback/__next.oauth.slack.callback.__PAGE__.txt +9 -0
  520. package/console/oauth/slack/callback/__next.oauth.slack.callback.txt +5 -0
  521. package/console/oauth/slack/callback/__next.oauth.slack.txt +5 -0
  522. package/console/oauth/slack/callback/__next.oauth.txt +5 -0
  523. package/console/oauth/slack/callback.html +1 -0
  524. package/console/oauth/slack/callback.txt +37 -0
  525. package/console/sessions/__placeholder__/__next._full.txt +32 -0
  526. package/console/sessions/__placeholder__/__next._head.txt +6 -0
  527. package/console/sessions/__placeholder__/__next._index.txt +17 -0
  528. package/console/sessions/__placeholder__/__next._tree.txt +5 -0
  529. package/console/sessions/__placeholder__/__next.sessions.$d$id.__PAGE__.txt +5 -0
  530. package/console/sessions/__placeholder__/__next.sessions.$d$id.txt +5 -0
  531. package/console/sessions/__placeholder__/__next.sessions.txt +5 -0
  532. package/console/sessions/__placeholder__.html +1 -0
  533. package/console/sessions/__placeholder__.txt +32 -0
  534. package/console/settings/__next._full.txt +35 -0
  535. package/console/settings/__next._head.txt +6 -0
  536. package/console/settings/__next._index.txt +17 -0
  537. package/console/settings/__next._tree.txt +5 -0
  538. package/console/settings/__next.settings.__PAGE__.txt +9 -0
  539. package/console/settings/__next.settings.txt +6 -0
  540. package/console/settings/account-preferences/__next._full.txt +35 -0
  541. package/console/settings/account-preferences/__next._head.txt +6 -0
  542. package/console/settings/account-preferences/__next._index.txt +17 -0
  543. package/console/settings/account-preferences/__next._tree.txt +5 -0
  544. package/console/settings/account-preferences/__next.settings.account-preferences.__PAGE__.txt +6 -0
  545. package/console/settings/account-preferences/__next.settings.account-preferences.txt +5 -0
  546. package/console/settings/account-preferences/__next.settings.txt +6 -0
  547. package/console/settings/account-preferences.html +1 -0
  548. package/console/settings/account-preferences.txt +35 -0
  549. package/console/settings/api-keys/__next._full.txt +35 -0
  550. package/console/settings/api-keys/__next._head.txt +6 -0
  551. package/console/settings/api-keys/__next._index.txt +17 -0
  552. package/console/settings/api-keys/__next._tree.txt +5 -0
  553. package/console/settings/api-keys/__next.settings.api-keys.__PAGE__.txt +6 -0
  554. package/console/settings/api-keys/__next.settings.api-keys.txt +5 -0
  555. package/console/settings/api-keys/__next.settings.txt +6 -0
  556. package/console/settings/api-keys.html +1 -0
  557. package/console/settings/api-keys.txt +35 -0
  558. package/console/settings/billing/__next._full.txt +38 -0
  559. package/console/settings/billing/__next._head.txt +6 -0
  560. package/console/settings/billing/__next._index.txt +17 -0
  561. package/console/settings/billing/__next._tree.txt +5 -0
  562. package/console/settings/billing/__next.settings.billing.__PAGE__.txt +9 -0
  563. package/console/settings/billing/__next.settings.billing.txt +5 -0
  564. package/console/settings/billing/__next.settings.txt +6 -0
  565. package/console/settings/billing.html +1 -0
  566. package/console/settings/billing.txt +38 -0
  567. package/console/settings/channel-apps/__next._full.txt +35 -0
  568. package/console/settings/channel-apps/__next._head.txt +6 -0
  569. package/console/settings/channel-apps/__next._index.txt +17 -0
  570. package/console/settings/channel-apps/__next._tree.txt +5 -0
  571. package/console/settings/channel-apps/__next.settings.channel-apps.__PAGE__.txt +6 -0
  572. package/console/settings/channel-apps/__next.settings.channel-apps.txt +5 -0
  573. package/console/settings/channel-apps/__next.settings.txt +6 -0
  574. package/console/settings/channel-apps.html +1 -0
  575. package/console/settings/channel-apps.txt +35 -0
  576. package/console/settings/cursor-accounts/__next._full.txt +38 -0
  577. package/console/settings/cursor-accounts/__next._head.txt +6 -0
  578. package/console/settings/cursor-accounts/__next._index.txt +17 -0
  579. package/console/settings/cursor-accounts/__next._tree.txt +5 -0
  580. package/console/settings/cursor-accounts/__next.settings.cursor-accounts.__PAGE__.txt +9 -0
  581. package/console/settings/cursor-accounts/__next.settings.cursor-accounts.txt +5 -0
  582. package/console/settings/cursor-accounts/__next.settings.txt +6 -0
  583. package/console/settings/cursor-accounts.html +1 -0
  584. package/console/settings/cursor-accounts.txt +38 -0
  585. package/console/settings/environments/__next._full.txt +35 -0
  586. package/console/settings/environments/__next._head.txt +6 -0
  587. package/console/settings/environments/__next._index.txt +17 -0
  588. package/console/settings/environments/__next._tree.txt +5 -0
  589. package/console/settings/environments/__next.settings.environments.__PAGE__.txt +6 -0
  590. package/console/settings/environments/__next.settings.environments.txt +5 -0
  591. package/console/settings/environments/__next.settings.txt +6 -0
  592. package/console/settings/environments.html +1 -0
  593. package/console/settings/environments.txt +35 -0
  594. package/console/settings/identity-providers/__next._full.txt +35 -0
  595. package/console/settings/identity-providers/__next._head.txt +6 -0
  596. package/console/settings/identity-providers/__next._index.txt +17 -0
  597. package/console/settings/identity-providers/__next._tree.txt +5 -0
  598. package/console/settings/identity-providers/__next.settings.identity-providers.__PAGE__.txt +6 -0
  599. package/console/settings/identity-providers/__next.settings.identity-providers.txt +5 -0
  600. package/console/settings/identity-providers/__next.settings.txt +6 -0
  601. package/console/settings/identity-providers.html +1 -0
  602. package/console/settings/identity-providers.txt +35 -0
  603. package/console/settings/invitations/__next._full.txt +35 -0
  604. package/console/settings/invitations/__next._head.txt +6 -0
  605. package/console/settings/invitations/__next._index.txt +17 -0
  606. package/console/settings/invitations/__next._tree.txt +5 -0
  607. package/console/settings/invitations/__next.settings.invitations.__PAGE__.txt +6 -0
  608. package/console/settings/invitations/__next.settings.invitations.txt +5 -0
  609. package/console/settings/invitations/__next.settings.txt +6 -0
  610. package/console/settings/invitations.html +1 -0
  611. package/console/settings/invitations.txt +35 -0
  612. package/console/settings/members/__next._full.txt +35 -0
  613. package/console/settings/members/__next._head.txt +6 -0
  614. package/console/settings/members/__next._index.txt +17 -0
  615. package/console/settings/members/__next._tree.txt +5 -0
  616. package/console/settings/members/__next.settings.members.__PAGE__.txt +6 -0
  617. package/console/settings/members/__next.settings.members.txt +5 -0
  618. package/console/settings/members/__next.settings.txt +6 -0
  619. package/console/settings/members.html +1 -0
  620. package/console/settings/members.txt +35 -0
  621. package/console/settings/memory/__next._full.txt +35 -0
  622. package/console/settings/memory/__next._head.txt +6 -0
  623. package/console/settings/memory/__next._index.txt +17 -0
  624. package/console/settings/memory/__next._tree.txt +5 -0
  625. package/console/settings/memory/__next.settings.memory.__PAGE__.txt +6 -0
  626. package/console/settings/memory/__next.settings.memory.txt +5 -0
  627. package/console/settings/memory/__next.settings.txt +6 -0
  628. package/console/settings/memory.html +1 -0
  629. package/console/settings/memory.txt +35 -0
  630. package/console/settings/oauth-apps/__next._full.txt +35 -0
  631. package/console/settings/oauth-apps/__next._head.txt +6 -0
  632. package/console/settings/oauth-apps/__next._index.txt +17 -0
  633. package/console/settings/oauth-apps/__next._tree.txt +5 -0
  634. package/console/settings/oauth-apps/__next.settings.oauth-apps.__PAGE__.txt +6 -0
  635. package/console/settings/oauth-apps/__next.settings.oauth-apps.txt +5 -0
  636. package/console/settings/oauth-apps/__next.settings.txt +6 -0
  637. package/console/settings/oauth-apps.html +1 -0
  638. package/console/settings/oauth-apps.txt +35 -0
  639. package/console/settings/org-preferences/__next._full.txt +35 -0
  640. package/console/settings/org-preferences/__next._head.txt +6 -0
  641. package/console/settings/org-preferences/__next._index.txt +17 -0
  642. package/console/settings/org-preferences/__next._tree.txt +5 -0
  643. package/console/settings/org-preferences/__next.settings.org-preferences.__PAGE__.txt +6 -0
  644. package/console/settings/org-preferences/__next.settings.org-preferences.txt +5 -0
  645. package/console/settings/org-preferences/__next.settings.txt +6 -0
  646. package/console/settings/org-preferences.html +1 -0
  647. package/console/settings/org-preferences.txt +35 -0
  648. package/console/settings/org-profile/__next._full.txt +35 -0
  649. package/console/settings/org-profile/__next._head.txt +6 -0
  650. package/console/settings/org-profile/__next._index.txt +17 -0
  651. package/console/settings/org-profile/__next._tree.txt +5 -0
  652. package/console/settings/org-profile/__next.settings.org-profile.__PAGE__.txt +6 -0
  653. package/console/settings/org-profile/__next.settings.org-profile.txt +5 -0
  654. package/console/settings/org-profile/__next.settings.txt +6 -0
  655. package/console/settings/org-profile.html +1 -0
  656. package/console/settings/org-profile.txt +35 -0
  657. package/console/settings/platform-clients/__next._full.txt +35 -0
  658. package/console/settings/platform-clients/__next._head.txt +6 -0
  659. package/console/settings/platform-clients/__next._index.txt +17 -0
  660. package/console/settings/platform-clients/__next._tree.txt +5 -0
  661. package/console/settings/platform-clients/__next.settings.platform-clients.__PAGE__.txt +6 -0
  662. package/console/settings/platform-clients/__next.settings.platform-clients.txt +5 -0
  663. package/console/settings/platform-clients/__next.settings.txt +6 -0
  664. package/console/settings/platform-clients.html +1 -0
  665. package/console/settings/platform-clients.txt +35 -0
  666. package/console/settings/pricing-governance/__next._full.txt +38 -0
  667. package/console/settings/pricing-governance/__next._head.txt +6 -0
  668. package/console/settings/pricing-governance/__next._index.txt +17 -0
  669. package/console/settings/pricing-governance/__next._tree.txt +5 -0
  670. package/console/settings/pricing-governance/__next.settings.pricing-governance.__PAGE__.txt +9 -0
  671. package/console/settings/pricing-governance/__next.settings.pricing-governance.txt +5 -0
  672. package/console/settings/pricing-governance/__next.settings.txt +6 -0
  673. package/console/settings/pricing-governance.html +1 -0
  674. package/console/settings/pricing-governance.txt +38 -0
  675. package/console/settings/provider-standing/__next._full.txt +38 -0
  676. package/console/settings/provider-standing/__next._head.txt +6 -0
  677. package/console/settings/provider-standing/__next._index.txt +17 -0
  678. package/console/settings/provider-standing/__next._tree.txt +5 -0
  679. package/console/settings/provider-standing/__next.settings.provider-standing.__PAGE__.txt +9 -0
  680. package/console/settings/provider-standing/__next.settings.provider-standing.txt +5 -0
  681. package/console/settings/provider-standing/__next.settings.txt +6 -0
  682. package/console/settings/provider-standing.html +1 -0
  683. package/console/settings/provider-standing.txt +38 -0
  684. package/console/settings/usage/__next._full.txt +35 -0
  685. package/console/settings/usage/__next._head.txt +6 -0
  686. package/console/settings/usage/__next._index.txt +17 -0
  687. package/console/settings/usage/__next._tree.txt +5 -0
  688. package/console/settings/usage/__next.settings.txt +6 -0
  689. package/console/settings/usage/__next.settings.usage.__PAGE__.txt +6 -0
  690. package/console/settings/usage/__next.settings.usage.txt +5 -0
  691. package/console/settings/usage.html +1 -0
  692. package/console/settings/usage.txt +35 -0
  693. package/console/settings.html +1 -0
  694. package/console/settings.txt +35 -0
  695. package/console/workflows/__next._full.txt +32 -0
  696. package/console/workflows/__next._head.txt +6 -0
  697. package/console/workflows/__next._index.txt +17 -0
  698. package/console/workflows/__next._tree.txt +5 -0
  699. package/console/workflows/__next.workflows.__PAGE__.txt +6 -0
  700. package/console/workflows/__next.workflows.txt +5 -0
  701. package/console/workflows/__placeholder__/__placeholder__/__next._full.txt +35 -0
  702. package/console/workflows/__placeholder__/__placeholder__/__next._head.txt +6 -0
  703. package/console/workflows/__placeholder__/__placeholder__/__next._index.txt +17 -0
  704. package/console/workflows/__placeholder__/__placeholder__/__next._tree.txt +5 -0
  705. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.$d$slug.__PAGE__.txt +6 -0
  706. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.$d$slug.txt +5 -0
  707. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.txt +5 -0
  708. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.txt +5 -0
  709. package/console/workflows/__placeholder__/__placeholder__.html +1 -0
  710. package/console/workflows/__placeholder__/__placeholder__.txt +35 -0
  711. package/console/workflows/executions/__next._full.txt +33 -0
  712. package/console/workflows/executions/__next._head.txt +6 -0
  713. package/console/workflows/executions/__next._index.txt +17 -0
  714. package/console/workflows/executions/__next._tree.txt +5 -0
  715. package/console/workflows/executions/__next.workflows.executions.__PAGE__.txt +6 -0
  716. package/console/workflows/executions/__next.workflows.executions.txt +5 -0
  717. package/console/workflows/executions/__next.workflows.txt +5 -0
  718. package/console/workflows/executions/__placeholder__/__next._full.txt +34 -0
  719. package/console/workflows/executions/__placeholder__/__next._head.txt +6 -0
  720. package/console/workflows/executions/__placeholder__/__next._index.txt +17 -0
  721. package/console/workflows/executions/__placeholder__/__next._tree.txt +5 -0
  722. package/console/workflows/executions/__placeholder__/__next.workflows.executions.$d$id.__PAGE__.txt +6 -0
  723. package/console/workflows/executions/__placeholder__/__next.workflows.executions.$d$id.txt +5 -0
  724. package/console/workflows/executions/__placeholder__/__next.workflows.executions.txt +5 -0
  725. package/console/workflows/executions/__placeholder__/__next.workflows.txt +5 -0
  726. package/console/workflows/executions/__placeholder__.html +1 -0
  727. package/console/workflows/executions/__placeholder__.txt +34 -0
  728. package/console/workflows/executions.html +1 -0
  729. package/console/workflows/executions.txt +33 -0
  730. package/console/workflows.html +1 -0
  731. package/console/workflows.txt +32 -0
  732. package/main.js +1138 -0
  733. package/mappings.wasm +0 -0
  734. package/package.json +25 -0
  735. package/workflow-bundle-agent-execution.js +31729 -0
  736. package/workflow-bundle-schedule.js +11315 -0
  737. package/workflow-bundle-workflow-execution.js +29297 -0
  738. package/workflow-worker-thread.cjs +111 -0
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,658653,t=>{"use strict";var e=t.i(843476),s=t.i(271645),r=t.i(893976),n=t.i(468806),i=t.i(869803),o=t.i(846696),g=t.i(774079),a=t.i(901501),l=t.i(864652),d=t.i(586108),c=t.i(326283);let u=(0,s.lazy)(()=>t.A(573374).then(t=>({default:t.YamlEditor})));function p(){return(0,e.jsx)("div",{className:"stg:flex stg:h-56 stg:items-center stg:justify-center stg:rounded-md stg:border stg:border-border stg:bg-muted stg:text-sm stg:text-muted-foreground",children:"Loading editor…"})}function m({entry:t}){return(0,e.jsxs)("li",{className:"stg:rounded-md stg:border stg:border-border stg:bg-card stg:px-3 stg:py-2",children:[(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,e.jsx)("span",{className:"stg:inline-flex stg:rounded stg:bg-muted stg:px-1.5 stg:py-0.5 stg:text-xs stg:font-medium stg:text-muted-foreground",children:t.document.handler.displayName}),(0,e.jsx)("span",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:t.document.name}),(0,e.jsx)(x,{entry:t}),(0,e.jsx)("span",{className:"stg:ml-auto stg:text-xs stg:text-muted-foreground",children:t.document.org})]}),t.document.warning&&(0,e.jsx)("p",{className:"stg:mt-1 stg:text-xs stg:text-muted-foreground",children:t.document.warning}),"failed"===t.status&&t.errorMessage&&(0,e.jsx)("p",{role:"alert",className:"stg:mt-1 stg:text-xs stg:text-destructive",children:t.errorMessage})]})}function x({entry:t}){let s=function(t){switch(t.status){case"applying":return"Applying…";case"applied":return"Applied";case"failed":return"Failed";case"skipped":return"Skipped";case"pending":switch(t.action){case"create":return"Will create";case"update":return"Will update";case"unknown":return"Create or update"}}}(t);return(0,e.jsx)("span",{className:(0,r.cn)("stg:inline-flex stg:rounded stg:px-1.5 stg:py-0.5 stg:text-xs stg:font-medium","failed"===t.status?"stg:bg-card stg:text-destructive stg:border stg:border-destructive":"stg:bg-muted stg:text-muted-foreground"),children:s})}t.s(["ApplyManifestDialog",0,function({open:t,onOpenChange:x,org:h,onApplied:f}){var b;let v=(0,s.useRef)(null),y=function(t){let e=(0,d.useStigmer)(),[r,n]=(0,s.useState)(""),[i,o]=(0,s.useState)(null),[g,u]=(0,s.useState)(null),[p,m]=(0,s.useState)(!1),[x,h]=(0,s.useState)(!1),f=(0,s.useRef)(t);f.current=t;let b=(0,s.useCallback)(t=>{n(t)},[]),v=(0,s.useCallback)(async t=>{let e;try{e=await t.text()}catch{n(""),o(null),u(`Failed to read ${t.name}.`);return}n(e)},[]),y=(0,s.useCallback)(()=>{n(""),o(null),u(null),m(!1),h(!1)},[]),j=(0,s.useRef)(0);(0,s.useEffect)(()=>{if(x)return;let t=++j.current;if(!r.trim()){o(null),u(null),m(!1);return}m(!0);let s=setTimeout(async()=>{let s;try{s=(0,l.parseManifest)(r,{org:f.current})}catch(e){j.current===t&&(o(null),u((0,c.toError)(e).message),m(!1));return}let n=await Promise.all(s.map(async t=>{let s;try{let r=await e.manifest.getByReference(t.handler.yamlKind,t.org,t.slug);s=null!==r?"update":"create"}catch{s="unknown"}return{document:t,action:s,status:"pending"}}));j.current===t&&(o(n),u(null),m(!1))},500);return()=>clearTimeout(s)},[r,e,x]);let N=(0,s.useCallback)(async()=>{if(!i||0===i.length)return[];j.current++,h(!0);let t=i.map(t=>({...t,status:"pending"})),s=()=>o([...t]),r=!1;for(let n=0;n<t.length;n++){if(r){t[n]={...t[n],status:"skipped"};continue}t[n]={...t[n],status:"applying"},s();try{let s=await e.manifest.apply(t[n].document);t[n]={...t[n],status:"applied",result:s}}catch(e){t[n]={...t[n],status:"failed",errorMessage:(0,c.toError)(e).message},r=!0}s()}return s(),h(!1),t},[i,e]),k=(0,s.useMemo)(()=>(0,a.containsRedactedSecrets)(r),[r]);return(0,s.useMemo)(()=>({content:r,setContent:b,readFile:v,entries:i,validationError:g,isValidating:p,hasRedactedSecrets:k,applyAll:N,isApplying:x,reset:y}),[r,b,v,i,g,p,k,N,x,y])}(h),{reset:j}=y;(0,s.useEffect)(()=>{t&&(j(),v.current&&(v.current.value=""))},[t,j]);let N=(0,s.useCallback)(()=>{x(!1);let t=(y.entries??[]).filter(t=>"applied"===t.status);t.length>0&&f?.(t)},[x,y.entries,f]),k=(0,s.useCallback)(t=>{t||N()},[N]),C=(0,s.useCallback)(t=>{let e=t.target.files?.[0];e&&y.readFile(e)},[y]),w=(0,s.useCallback)(async()=>{let t=await y.applyAll(),e=t.filter(t=>"applied"===t.status);t.length>0&&e.length===t.length&&(o.toast.success(1===e.length?"Resource applied":`${e.length} resources applied`),x(!1),f?.(e))},[y,x,f]),S=null!==y.entries&&y.entries.length>0&&!y.isValidating&&!y.isApplying;return(0,e.jsx)(n.DialogShell,{open:t,onOpenChange:k,width:"3xl","aria-label":"Apply YAML",children:(0,e.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-4 stg:p-6",children:[(0,e.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-1",children:[(0,e.jsx)("h3",{className:"stg:text-base stg:font-semibold stg:text-foreground",children:"Apply YAML"}),(0,e.jsx)("p",{className:"stg:text-sm stg:text-muted-foreground",children:"Paste a resource manifest or upload a file. Resources are created when new and updated when they already exist."})]}),(0,e.jsx)("input",{ref:v,type:"file",accept:".yaml,.yml,.json",onChange:C,className:(0,r.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-3 stg:py-2 stg:text-sm stg:text-foreground","stg:file:mr-3 stg:file:rounded-md stg:file:border-0 stg:file:bg-primary stg:file:px-2.5 stg:file:py-1 stg:file:text-xs stg:file:font-medium stg:file:text-primary-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),"aria-label":"Select manifest file"}),(0,e.jsx)(s.Suspense,{fallback:(0,e.jsx)(p,{}),children:(0,e.jsx)(u,{value:y.content,onChange:y.setContent,className:"stg:h-56"})}),y.hasRedactedSecrets&&(0,e.jsx)(g.RedactedSecretsNotice,{}),y.validationError&&(0,e.jsx)("div",{role:"alert",className:"stg:rounded-md stg:border stg:border-destructive stg:bg-card stg:px-3 stg:py-2.5 stg:text-sm stg:text-destructive",children:y.validationError}),y.entries&&y.entries.length>0&&(0,e.jsx)("ul",{className:(0,r.cn)(i.UNSTYLED_LIST,"stg:flex stg:max-h-48 stg:flex-col stg:gap-2 stg:overflow-y-auto"),"aria-label":"Resources to apply",children:y.entries.map((t,s)=>(0,e.jsx)(m,{entry:t},`${t.document.handler.yamlKind}/${t.document.org}/${t.document.slug}/${s}`))}),(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between stg:gap-3",children:[(0,e.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground","aria-live":"polite",children:y.isValidating?"Validating…":""}),(0,e.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,e.jsx)("button",{type:"button",onClick:N,disabled:y.isApplying,className:(0,r.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:border stg:border-input stg:bg-background stg:text-foreground","stg:hover:bg-accent stg:hover:text-accent-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:"Cancel"}),(0,e.jsx)("button",{type:"button",onClick:w,disabled:!S,className:(0,r.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:y.isApplying?"Applying…":(b=y.entries?.length??0)<=1?"Apply":`Apply ${b} resources`})]})]})]})})}],658653)},855862,t=>{"use strict";t.s(["TEMPLATE_CATEGORY_LABELS",0,{"customer-support":"Customer Support","code-review":"Code Review","data-analysis":"Data Analysis",devops:"DevOps",content:"Content",integration:"Integration",general:"General"}])},938107,t=>{"use strict";var e=t.i(271645);t.s(["useTemplateFilter",0,function(t){let{templates:s}=t,[r,n]=(0,e.useState)(""),[i,o]=(0,e.useState)(null),g=(0,e.useCallback)(t=>{n(t)},[]),a=(0,e.useMemo)(()=>{let t=new Set;for(let e of s)t.add(e.category);return[...t].sort()},[s]),l=(0,e.useMemo)(()=>{let t=s;i&&(t=t.filter(t=>t.category===i));let e=r.trim().toLowerCase();return e&&(t=t.filter(t=>[t.name,t.description,...t.tags??[]].join(" ").toLowerCase().includes(e))),t},[s,i,r]);return(0,e.useMemo)(()=>({filtered:l,query:r,setQuery:g,activeCategory:i,setActiveCategory:o,availableCategories:a}),[l,r,g,i,o,a])}])},379711,982438,385332,t=>{"use strict";var e=t.i(271645);t.s(["useWizardState",0,function(t){let{steps:s,initialData:r}=t,n=(0,e.useMemo)(()=>function(t,e){switch(e.type){case"GO_NEXT":{let e=s[t.currentStepIndex],r=e?.validate?.(t.data)??null;if(r)return{...t,validationError:r};let n=Math.min(t.currentStepIndex+1,s.length-1);return{...t,currentStepIndex:n,validationError:null}}case"GO_BACK":{let e=Math.max(t.currentStepIndex-1,0);return{...t,currentStepIndex:e,validationError:null}}case"GO_TO_STEP":if(e.index<0||e.index>=s.length||e.index>=t.currentStepIndex)return t;return{...t,currentStepIndex:e.index,validationError:null};case"UPDATE_DATA":return{...t,data:{...t.data,...e.partial},validationError:null};case"SET_VALIDATION_ERROR":return{...t,validationError:e.error};default:return t}},[s]),[i,o]=(0,e.useReducer)(n,{currentStepIndex:0,data:r,validationError:null}),g=s[i.currentStepIndex],a=0===i.currentStepIndex,l=i.currentStepIndex===s.length-1,d=(0,e.useMemo)(()=>null===(g.validate?.(i.data)??null),[g,i.data]),c=!a,u=(0,e.useCallback)(()=>{o({type:"GO_NEXT"})},[]),p=(0,e.useCallback)(()=>{o({type:"GO_BACK"})},[]),m=(0,e.useCallback)(t=>{o({type:"GO_TO_STEP",index:t})},[]),x=(0,e.useCallback)(t=>{o({type:"UPDATE_DATA",partial:t})},[]);return(0,e.useMemo)(()=>({currentStepIndex:i.currentStepIndex,currentStep:g,data:i.data,updateData:x,canGoNext:d,canGoBack:c,goNext:u,goBack:p,goToStep:m,validationError:i.validationError,isFirstStep:a,isLastStep:l}),[i.currentStepIndex,i.data,i.validationError,g,d,c,a,l,x,u,p,m])}],379711);var s=t.i(843476),r=t.i(893976),n=t.i(869803);function i({steps:t,currentStepIndex:e,onStepClick:g,className:a}){return(0,s.jsx)("nav",{"aria-label":"Wizard progress",className:(0,r.cn)("stg:flex stg:flex-col stg:gap-1",a),children:(0,s.jsx)("ol",{className:(0,r.cn)(n.UNSTYLED_LIST,"stg:flex stg:flex-col stg:gap-1"),role:"list",children:t.map((n,i)=>{var a,l;let d=(a=i)<(l=e)?"completed":a===l?"active":"pending",c="completed"===d&&null!=g,u=(0,s.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-3",children:[(0,s.jsx)(o,{index:i,state:d}),(0,s.jsx)("span",{className:(0,r.cn)("stg:text-sm stg:font-medium stg:transition-colors","active"===d&&"stg:text-foreground","completed"===d&&"stg:text-foreground","pending"===d&&"stg:text-muted-foreground"),children:n.label})]});return(0,s.jsxs)("li",{children:[c?(0,s.jsx)("button",{type:"button",onClick:()=>g(i),className:(0,r.cn)("stg:w-full stg:rounded-md stg:px-2 stg:py-2 stg:text-left stg:transition-colors","stg:hover:bg-accent-hover","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-inset stg:focus-visible:ring-ring"),"aria-label":`Go back to step ${i+1}: ${n.label}`,"aria-current":void 0,children:u}):(0,s.jsx)("div",{className:"stg:px-2 stg:py-2","aria-current":"active"===d?"step":void 0,children:u}),i<t.length-1&&(0,s.jsx)("div",{className:"stg:ml-[18px] stg:h-4 stg:w-px stg:bg-border","aria-hidden":"true"})]},n.id)})})})}function o({index:t,state:e}){return(0,s.jsx)("div",{className:(0,r.cn)("stg:flex stg:size-7 stg:shrink-0 stg:items-center stg:justify-center stg:rounded-full stg:text-xs stg:font-medium stg:transition-colors","completed"===e&&"stg:bg-primary stg:text-primary-foreground","active"===e&&"stg:border-2 stg:border-primary stg:text-primary","pending"===e&&"stg:border stg:border-border stg:text-muted-foreground"),"aria-hidden":"true",children:"completed"===e?(0,s.jsx)(g,{className:"stg:size-3.5"}):(0,s.jsx)("span",{children:t+1})})}function g({className:t}){return(0,s.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,s.jsx)("path",{d:"m3 8.5 3.5 3.5 6.5-8"})})}var a=t.i(379410);function l({showBack:t,nextLabel:e,nextDisabled:n,isSubmitting:i,onBack:o,onNext:g,onCancel:u,className:p}){return(0,s.jsxs)("div",{className:(0,r.cn)("stg:flex stg:items-center stg:justify-between stg:border-t stg:border-border stg:px-6 stg:py-4",p),children:[(0,s.jsx)("div",{className:"stg:flex stg:items-center stg:gap-2",children:u&&(0,s.jsx)("button",{type:"button",onClick:u,disabled:i,className:(0,r.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm","stg:text-muted-foreground stg:transition-colors","stg:hover:text-foreground stg:hover:bg-accent-hover","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:"Cancel"})}),(0,s.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[t&&(0,s.jsxs)("button",{type:"button",onClick:o,disabled:i,className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:text-foreground stg:transition-colors","stg:hover:bg-accent-hover","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:[(0,s.jsx)(d,{className:"stg:size-3.5"}),"Back"]}),(0,s.jsxs)("button",{type:"button",onClick:g,disabled:n||i,"data-cursor-target":"wizard-next",className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:bg-primary stg:px-4 stg:py-1.5 stg:text-sm stg:font-medium stg:text-primary-foreground stg:transition-colors","stg:hover:bg-primary-hover","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-40"),children:[i&&(0,s.jsx)(a.SpinnerIcon,{size:14}),e,!i&&(0,s.jsx)(c,{className:"stg:size-3.5"})]})]})]})}function d({className:t}){return(0,s.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M10 3 5 8l5 5"})})}function c({className:t}){return(0,s.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,s.jsx)("path",{d:"m6 3 5 5-5 5"})})}function u({current:t,total:e}){return(0,s.jsxs)("span",{className:"stg:inline-flex stg:items-center stg:justify-center stg:rounded-full stg:bg-primary stg:px-2 stg:py-0.5 stg:text-[10px] stg:font-semibold stg:text-primary-foreground",children:[t,"/",e]})}t.s(["WizardShell",0,function({steps:t,currentStepIndex:e,children:n,submitLabel:o,isSubmitting:g,canGoNext:a=!0,canGoBack:d=!1,onNext:c,onBack:p,onGoToStep:m,onCancel:x,className:h}){let f=e===t.length-1;return(0,s.jsxs)("div",{className:(0,r.cn)("stg:flex stg:min-h-0 stg:flex-col stg:overflow-hidden stg:rounded-lg stg:border stg:border-border stg:bg-background",h),children:[(0,s.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2 stg:border-b stg:border-border stg:px-4 stg:py-3 stg:sm:hidden",children:[(0,s.jsx)(u,{current:e+1,total:t.length}),(0,s.jsx)("span",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:t[e]?.label})]}),(0,s.jsxs)("div",{className:"stg:flex stg:min-h-0 stg:flex-1",children:[(0,s.jsx)("aside",{className:"stg:hidden stg:w-52 stg:shrink-0 stg:border-r stg:border-border stg:bg-muted-faint stg:px-3 stg:py-6 stg:sm:block",children:(0,s.jsx)(i,{steps:t,currentStepIndex:e,onStepClick:m})}),(0,s.jsx)("main",{className:"stg:flex-1 stg:overflow-y-auto stg:px-6 stg:py-6 stg:sm:px-8",children:n})]}),(0,s.jsx)(l,{showBack:d,nextLabel:f?o:"Next",nextDisabled:!a,isSubmitting:g,onBack:p,onNext:c,onCancel:x})]})}],982438);var p=t.i(855862),m=t.i(938107);let x={"customer-support":"stg:bg-blue-500/10 stg:text-blue-700 stg:dark:text-blue-400","code-review":"stg:bg-violet-500/10 stg:text-violet-700 stg:dark:text-violet-400","data-analysis":"stg:bg-amber-500/10 stg:text-amber-700 stg:dark:text-amber-400",devops:"stg:bg-emerald-500/10 stg:text-emerald-700 stg:dark:text-emerald-400",content:"stg:bg-pink-500/10 stg:text-pink-700 stg:dark:text-pink-400",integration:"stg:bg-cyan-500/10 stg:text-cyan-700 stg:dark:text-cyan-400",general:"stg:bg-muted stg:text-muted-foreground"},h=["stg:bg-blue-500/15 stg:text-blue-700 stg:dark:text-blue-400","stg:bg-violet-500/15 stg:text-violet-700 stg:dark:text-violet-400","stg:bg-emerald-500/15 stg:text-emerald-700 stg:dark:text-emerald-400","stg:bg-amber-500/15 stg:text-amber-700 stg:dark:text-amber-400","stg:bg-pink-500/15 stg:text-pink-700 stg:dark:text-pink-400","stg:bg-cyan-500/15 stg:text-cyan-700 stg:dark:text-cyan-400","stg:bg-rose-500/15 stg:text-rose-700 stg:dark:text-rose-400"];function f({template:t,onSelect:n,className:i}){let o=(0,e.useCallback)(()=>{n(t)},[n,t]),g=(0,e.useCallback)(e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),n(t))},[n,t]),a=function(t){let e=0;for(let s=0;s<t.length;s++)e=(e<<5)-e+t.charCodeAt(s)|0;return Math.abs(e)}(t.id)%h.length,l=h[a],d=t.name.charAt(0).toUpperCase(),c=p.TEMPLATE_CATEGORY_LABELS[t.category]??t.category;return(0,s.jsxs)("div",{role:"button",tabIndex:0,onClick:o,onKeyDown:g,"aria-label":`Use ${t.name} template`,className:(0,r.cn)("stg:group stg:flex stg:cursor-pointer stg:flex-col stg:gap-3 stg:rounded-lg stg:border stg:border-border stg:bg-card stg:p-4","stg:transition-colors stg:hover:border-primary stg:hover:bg-accent","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring",i),children:[(0,s.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-3",children:[(0,s.jsx)("span",{className:(0,r.cn)("stg:inline-flex stg:size-9 stg:shrink-0 stg:items-center stg:justify-center stg:rounded-md stg:text-sm stg:font-semibold",l),"aria-hidden":"true",children:d}),(0,s.jsxs)("div",{className:"stg:min-w-0 stg:flex-1",children:[(0,s.jsx)("p",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:t.name}),(0,s.jsx)("span",{className:(0,r.cn)("stg:mt-1 stg:inline-block stg:rounded-full stg:px-2 stg:py-0.5 stg:text-[10px] stg:font-medium",x[t.category]??x.general),children:c})]})]}),(0,s.jsx)("p",{className:"stg:line-clamp-2 stg:text-xs stg:leading-relaxed stg:text-muted-foreground",children:t.description})]})}function b({templates:t,onSelect:n,emptyContent:i,className:o}){let{filtered:g,query:a,setQuery:l,activeCategory:d,setActiveCategory:c,availableCategories:u}=(0,m.useTemplateFilter)({templates:t}),x=(0,e.useRef)(null),h=(0,e.useCallback)(t=>{let e=x.current?.querySelectorAll('[role="tab"]');if(!e?.length)return;let s=Array.from(e).findIndex(t=>t===document.activeElement);if(-1===s)return;let r=null;"ArrowRight"===t.key?r=(s+1)%e.length:"ArrowLeft"===t.key?r=(s-1+e.length)%e.length:"Home"===t.key?r=0:"End"===t.key&&(r=e.length-1),null!==r&&(t.preventDefault(),e[r].focus(),e[r].click())},[]);return(0,s.jsxs)("div",{className:(0,r.cn)("stg:flex stg:flex-col stg:gap-4",o),children:[(0,s.jsxs)("div",{className:"stg:relative",children:[(0,s.jsx)(y,{}),(0,s.jsx)("input",{type:"search",value:a,onChange:t=>l(t.target.value),placeholder:"Search templates…","aria-label":"Search templates",className:(0,r.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-input-bg stg:py-2 stg:pl-9 stg:pr-3 stg:text-sm stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring")})]}),u.length>1&&(0,s.jsxs)("div",{ref:x,role:"tablist","aria-label":"Template categories",onKeyDown:h,className:"stg:flex stg:flex-wrap stg:gap-1",children:[(0,s.jsx)(v,{label:"All",isActive:null===d,onClick:()=>c(null)}),u.map(t=>(0,s.jsx)(v,{label:p.TEMPLATE_CATEGORY_LABELS[t]??t,isActive:d===t,onClick:()=>c(t)},t))]}),g.length>0?(0,s.jsx)("div",{role:"list","aria-label":"Templates",className:"stg:grid stg:grid-cols-1 stg:gap-3 stg:sm:grid-cols-2 stg:lg:grid-cols-3",children:g.map(t=>(0,s.jsx)("div",{role:"listitem",children:(0,s.jsx)(f,{template:t,onSelect:n})},t.id))}):i??(0,s.jsx)("div",{className:"stg:py-8 stg:text-center stg:text-sm stg:text-muted-foreground",children:"No templates match your search."})]})}function v({label:t,isActive:e,onClick:n}){return(0,s.jsx)("button",{type:"button",role:"tab","aria-selected":e,tabIndex:e?0:-1,onClick:n,className:(0,r.cn)("stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring",e?"stg:bg-primary stg:text-primary-foreground":"stg:bg-muted stg:text-muted-foreground stg:hover:bg-accent stg:hover:text-accent-foreground"),children:t})}function y(){return(0,s.jsxs)("svg",{className:"stg:pointer-events-none stg:absolute stg:left-3 stg:top-1/2 stg:size-4 stg:-translate-y-1/2 stg:text-muted-foreground",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("circle",{cx:11,cy:11,r:8}),(0,s.jsx)("path",{d:"m21 21-4.3-4.3"})]})}function j({title:t,description:e,icon:n,onClick:i,badge:o,cursorTarget:g}){return(0,s.jsxs)("button",{type:"button",onClick:i,"data-cursor-target":g,className:(0,r.cn)("stg:group stg:flex stg:flex-col stg:items-center stg:gap-3 stg:rounded-lg stg:border stg:border-border stg:bg-card stg:p-6 stg:text-center","stg:transition-colors stg:hover:border-primary stg:hover:bg-accent","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:[(0,s.jsx)("span",{className:"stg:text-muted-foreground stg:transition-colors stg:group-hover:text-foreground",children:n}),(0,s.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-1",children:[(0,s.jsx)("span",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:t}),(0,s.jsx)("span",{className:"stg:text-xs stg:text-muted-foreground",children:e})]}),o&&(0,s.jsx)("span",{className:"stg:rounded-full stg:bg-muted stg:px-2 stg:py-0.5 stg:text-[10px] stg:font-medium stg:text-muted-foreground",children:o})]})}function N(){return(0,s.jsxs)("svg",{className:"stg:size-8",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"}),(0,s.jsx)("polyline",{points:"14 2 14 8 20 8"})]})}function k(){return(0,s.jsxs)("svg",{className:"stg:size-8",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("rect",{width:"7",height:"7",x:"3",y:"3",rx:"1"}),(0,s.jsx)("rect",{width:"7",height:"7",x:"14",y:"3",rx:"1"}),(0,s.jsx)("rect",{width:"7",height:"7",x:"14",y:"14",rx:"1"}),(0,s.jsx)("rect",{width:"7",height:"7",x:"3",y:"14",rx:"1"})]})}function C(){return(0,s.jsxs)("svg",{className:"stg:size-8",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,s.jsx)("polyline",{points:"17 8 12 3 7 8"}),(0,s.jsx)("line",{x1:"12",x2:"12",y1:"3",y2:"15"})]})}function w(){return(0,s.jsxs)("svg",{className:"stg:size-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"m12 19-7-7 7-7"}),(0,s.jsx)("path",{d:"M19 12H5"})]})}t.s(["CreationPicker",0,function({resourceLabel:t,templates:n,onSelect:i,className:o}){let[g,a]=(0,e.useState)("options"),l=(0,e.useCallback)(t=>{i({kind:"template",data:t.data})},[i]),d=(0,e.useCallback)(()=>{a("options")},[]);return"gallery"===g?(0,s.jsxs)("div",{className:(0,r.cn)("stg:flex stg:flex-col stg:gap-4",o),children:[(0,s.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,s.jsx)("button",{type:"button",onClick:d,"aria-label":"Back to creation options",className:(0,r.cn)("stg:inline-flex stg:items-center stg:justify-center stg:rounded-md stg:p-1.5","stg:text-muted-foreground stg:transition-colors","stg:hover:bg-accent stg:hover:text-accent-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:(0,s.jsx)(w,{})}),(0,s.jsx)("h2",{className:"stg:text-base stg:font-semibold stg:text-foreground",children:"Choose a template"})]}),(0,s.jsx)(b,{templates:n,onSelect:l})]}):(0,s.jsxs)("div",{className:(0,r.cn)("stg:flex stg:flex-col stg:gap-6",o),children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("h2",{className:"stg:text-lg stg:font-semibold stg:text-foreground",children:["Create a new ",t]}),(0,s.jsx)("p",{className:"stg:mt-1 stg:text-sm stg:text-muted-foreground",children:"Choose how you'd like to get started."})]}),(0,s.jsxs)("div",{className:"stg:grid stg:grid-cols-1 stg:gap-3 stg:sm:grid-cols-3",children:[(0,s.jsx)(j,{title:"Start from scratch",description:`Create a blank ${t} and configure it step by step.`,icon:(0,s.jsx)(N,{}),onClick:()=>i({kind:"scratch"}),cursorTarget:"creation-path-scratch"}),n.length>0&&(0,s.jsx)(j,{title:"Browse templates",description:`Start with a pre-built ${t} configuration.`,icon:(0,s.jsx)(k,{}),onClick:()=>a("gallery"),badge:`${n.length} available`,cursorTarget:"creation-path-template"}),(0,s.jsx)(j,{title:"Import from file",description:"Upload a YAML or JSON configuration file.",icon:(0,s.jsx)(C,{}),onClick:()=>i({kind:"import"}),cursorTarget:"creation-path-import"})]})]})}],385332)},468099,t=>{"use strict";var e=t.i(843476),s=t.i(271645),r=t.i(618566),n=t.i(379711),i=t.i(982438),o=t.i(586108),g=t.i(326283),a=t.i(893976),l=t.i(869803),d=t.i(367539);let c=/^[a-z0-9]+(-[a-z0-9]+)*$/;function u({data:t,updateData:r,validationError:n}){let i=(0,s.useId)(),o=(0,s.useCallback)(e=>{t.slugTouched?r({name:e}):r({name:e,slug:(0,d.generateSlug)(e)})},[t.slugTouched,r]),g=(0,s.useCallback)(t=>{r({slug:t,slugTouched:!0})},[r]),x=t.slug.length>0&&!c.test(t.slug)?"Slug must be lowercase letters, numbers, and hyphens only":null;return(0,e.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-6",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("h2",{className:"stg:text-lg stg:font-semibold stg:text-foreground",children:"Identity & Transport"}),(0,e.jsx)("p",{className:"stg:mt-1 stg:text-sm stg:text-muted-foreground",children:"Define the MCP server and how to connect to it."})]}),n&&(0,e.jsx)("p",{className:"stg:text-sm stg:text-destructive",role:"alert",children:n}),(0,e.jsxs)("div",{className:"stg:grid stg:gap-4 stg:sm:grid-cols-2",children:[(0,e.jsxs)("div",{className:"stg:space-y-1.5",children:[(0,e.jsxs)("label",{htmlFor:`${i}-name`,className:"stg:text-sm stg:font-medium stg:text-foreground",children:["Name ",(0,e.jsx)("span",{className:"stg:text-destructive",children:"*"})]}),(0,e.jsx)("input",{id:`${i}-name`,type:"text",value:t.name,onChange:t=>o(t.target.value),placeholder:"e.g. GitHub",autoFocus:!0,className:(0,a.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-input-bg stg:px-3 stg:py-2 stg:text-sm stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring")})]}),(0,e.jsxs)("div",{className:"stg:space-y-1.5",children:[(0,e.jsx)("label",{htmlFor:`${i}-slug`,className:"stg:text-sm stg:font-medium stg:text-foreground",children:"Slug"}),(0,e.jsx)("input",{id:`${i}-slug`,type:"text",value:t.slug,onChange:t=>g(t.target.value),placeholder:"auto-generated",className:(0,a.cn)("stg:w-full stg:rounded-md stg:border stg:px-3 stg:py-2 stg:font-mono stg:text-sm stg:text-foreground",x?"stg:border-destructive stg:bg-input-bg":"stg:border-input stg:bg-input-bg","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring")}),x&&(0,e.jsx)("p",{className:"stg:text-xs stg:text-destructive",children:x}),!x&&t.slug&&(0,e.jsxs)("p",{className:"stg:text-xs stg:text-muted-foreground",children:["Referenced as ",(0,e.jsx)("code",{className:"stg:font-mono",children:t.slug})]})]})]}),(0,e.jsxs)("div",{className:"stg:space-y-1.5",children:[(0,e.jsx)("label",{htmlFor:`${i}-description`,className:"stg:text-sm stg:font-medium stg:text-foreground",children:"Description"}),(0,e.jsx)("input",{id:`${i}-description`,type:"text",value:t.description,onChange:t=>r({description:t.target.value}),placeholder:"A brief description of this MCP server",maxLength:200,className:(0,a.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-input-bg stg:px-3 stg:py-2 stg:text-sm stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring")})]}),(0,e.jsxs)("div",{className:"stg:grid stg:gap-4 stg:sm:grid-cols-2",children:[(0,e.jsxs)("div",{className:"stg:space-y-1.5",children:[(0,e.jsx)("label",{htmlFor:`${i}-icon`,className:"stg:text-sm stg:font-medium stg:text-foreground",children:"Icon URL"}),(0,e.jsx)("input",{id:`${i}-icon`,type:"url",value:t.iconUrl,onChange:t=>r({iconUrl:t.target.value}),placeholder:"https://example.com/icon.png",className:(0,a.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-input-bg stg:px-3 stg:py-2 stg:text-sm stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring")})]}),(0,e.jsxs)("fieldset",{className:(0,a.cn)(l.UNSTYLED_FIELDSET,"stg:space-y-1.5"),children:[(0,e.jsx)("legend",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:"Visibility"}),(0,e.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,e.jsx)(p,{name:`${i}-visibility`,value:"private",label:"Private",checked:"private"===t.visibility,onChange:()=>r({visibility:"private"})}),(0,e.jsx)(p,{name:`${i}-visibility`,value:"public",label:"Public",checked:"public"===t.visibility,onChange:()=>r({visibility:"public"})})]})]})]}),(0,e.jsxs)("fieldset",{className:(0,a.cn)(l.UNSTYLED_FIELDSET,"stg:space-y-3"),"data-scroll-target":"mcp-transport",children:[(0,e.jsxs)("legend",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:["Transport ",(0,e.jsx)("span",{className:"stg:text-destructive",children:"*"})]}),(0,e.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,e.jsx)(p,{name:`${i}-transport`,value:"http",label:"HTTP (Streamable HTTP / SSE)",checked:"http"===t.transportType,onChange:()=>r({transportType:"http"})}),(0,e.jsx)(p,{name:`${i}-transport`,value:"stdio",label:"Stdio (local process)",checked:"stdio"===t.transportType,onChange:()=>r({transportType:"stdio"})})]}),"stdio"===t.transportType&&(0,e.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground",children:"Stdio servers run only on local runners (desktop app or CLI). Sessions on Stigmer-managed cloud compute require a remote (HTTP) server."}),"http"===t.transportType&&(0,e.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-4 stg:rounded-lg stg:border stg:border-border stg:p-4",children:[(0,e.jsxs)("div",{className:"stg:space-y-1.5",children:[(0,e.jsxs)("label",{htmlFor:`${i}-http-url`,className:"stg:text-sm stg:font-medium stg:text-foreground",children:["URL ",(0,e.jsx)("span",{className:"stg:text-destructive",children:"*"})]}),(0,e.jsx)("input",{id:`${i}-http-url`,type:"url",value:t.httpUrl,onChange:t=>r({httpUrl:t.target.value}),placeholder:"https://mcp.example.com/sse",className:(0,a.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-input-bg stg:px-3 stg:py-2 stg:font-mono stg:text-sm stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring")})]}),(0,e.jsxs)("div",{className:"stg:space-y-1.5",children:[(0,e.jsx)("label",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:"Headers"}),(0,e.jsxs)("p",{className:"stg:text-xs stg:text-muted-foreground",children:["Custom HTTP headers sent with every request. Values may use"," ",(0,e.jsx)("code",{className:"stg:font-mono stg:text-[11px]",children:"${VAR}"})," ","placeholders."]}),(0,e.jsx)(m,{entries:t.httpHeaders,onChange:t=>r({httpHeaders:t}),keyPlaceholder:"Header-Name",valuePlaceholder:"value"})]}),(0,e.jsxs)("div",{className:"stg:space-y-1.5",children:[(0,e.jsx)("label",{htmlFor:`${i}-http-timeout`,className:"stg:text-sm stg:font-medium stg:text-foreground",children:"Timeout (seconds)"}),(0,e.jsx)("input",{id:`${i}-http-timeout`,type:"number",min:0,step:1,value:t.httpTimeoutSeconds||"",onChange:t=>r({httpTimeoutSeconds:t.target.value?parseInt(t.target.value,10):0}),placeholder:"Default",className:(0,a.cn)("stg:w-32 stg:rounded-md stg:border stg:border-input stg:bg-input-bg stg:px-3 stg:py-2 stg:text-sm stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring")})]})]}),"stdio"===t.transportType&&(0,e.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-4 stg:rounded-lg stg:border stg:border-border stg:p-4",children:[(0,e.jsxs)("div",{className:"stg:space-y-1.5",children:[(0,e.jsxs)("label",{htmlFor:`${i}-stdio-command`,className:"stg:text-sm stg:font-medium stg:text-foreground",children:["Command ",(0,e.jsx)("span",{className:"stg:text-destructive",children:"*"})]}),(0,e.jsx)("input",{id:`${i}-stdio-command`,type:"text",value:t.stdioCommand,onChange:t=>r({stdioCommand:t.target.value}),placeholder:"e.g. npx, python, node",className:(0,a.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-input-bg stg:px-3 stg:py-2 stg:font-mono stg:text-sm stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring")})]}),(0,e.jsxs)("div",{className:"stg:space-y-1.5",children:[(0,e.jsx)("label",{htmlFor:`${i}-stdio-args`,className:"stg:text-sm stg:font-medium stg:text-foreground",children:"Arguments"}),(0,e.jsx)("input",{id:`${i}-stdio-args`,type:"text",value:t.stdioArgs,onChange:t=>r({stdioArgs:t.target.value}),placeholder:"e.g. -y @modelcontextprotocol/server-github",className:(0,a.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-input-bg stg:px-3 stg:py-2 stg:font-mono stg:text-sm stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring")}),(0,e.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground",children:"Space-separated arguments passed to the command."})]}),(0,e.jsxs)("div",{className:"stg:space-y-1.5",children:[(0,e.jsx)("label",{htmlFor:`${i}-stdio-workdir`,className:"stg:text-sm stg:font-medium stg:text-foreground",children:"Working Directory"}),(0,e.jsx)("input",{id:`${i}-stdio-workdir`,type:"text",value:t.stdioWorkingDir,onChange:t=>r({stdioWorkingDir:t.target.value}),placeholder:"/path/to/working/directory",className:(0,a.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-input-bg stg:px-3 stg:py-2 stg:font-mono stg:text-sm stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring")})]})]})]})]})}function p({name:t,value:s,label:r,checked:n,onChange:i}){return(0,e.jsxs)("label",{className:(0,a.cn)("stg:inline-flex stg:cursor-pointer stg:items-center stg:rounded-md stg:border stg:px-3 stg:py-1.5 stg:text-sm stg:transition-colors",n?"stg:border-primary stg:bg-primary-subtle stg:text-primary stg:font-medium":"stg:border-input stg:bg-input-bg stg:text-muted-foreground stg:hover:border-border stg:hover:text-foreground"),children:[(0,e.jsx)("input",{type:"radio",name:t,value:s,checked:n,onChange:i,className:"stg:sr-only"}),r]})}function m({entries:t,onChange:s,keyPlaceholder:r,valuePlaceholder:n}){let i=(e,r)=>{s(t.map((t,s)=>s===e?{...t,...r}:t))};return(0,e.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-2",children:[t.map((o,g)=>(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,e.jsx)("input",{type:"text",value:o.key,onChange:t=>i(g,{key:t.target.value}),placeholder:r,"aria-label":`Header key ${g+1}`,className:(0,a.cn)("stg:flex-1 stg:rounded-md stg:border stg:border-input stg:bg-input-bg stg:px-2.5 stg:py-1.5 stg:font-mono stg:text-xs stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring")}),(0,e.jsx)("input",{type:"text",value:o.value,onChange:t=>i(g,{value:t.target.value}),placeholder:n,"aria-label":`Header value ${g+1}`,className:(0,a.cn)("stg:flex-1 stg:rounded-md stg:border stg:border-input stg:bg-input-bg stg:px-2.5 stg:py-1.5 stg:font-mono stg:text-xs stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring")}),(0,e.jsx)("button",{type:"button",onClick:()=>{s(t.filter((t,e)=>e!==g))},"aria-label":`Remove header ${o.key||g+1}`,className:(0,a.cn)("stg:rounded stg:p-1 stg:text-muted-foreground stg:transition-colors","stg:hover:bg-accent-hover stg:hover:text-destructive","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:(0,e.jsx)(h,{className:"stg:size-3.5"})})]},g)),(0,e.jsxs)("button",{type:"button",onClick:()=>{s([...t,{key:"",value:""}])},className:(0,a.cn)("stg:inline-flex stg:w-fit stg:items-center stg:gap-1.5 stg:rounded-md stg:border stg:border-dashed stg:border-input stg:px-3 stg:py-1.5 stg:text-xs stg:font-medium stg:text-muted-foreground stg:transition-colors","stg:hover:border-border stg:hover:text-foreground stg:hover:bg-accent-hover","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:[(0,e.jsx)(x,{className:"stg:size-3"}),"Add header"]})]})}function x({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M8 3v10M3 8h10"})})}function h({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M4 4l8 8M12 4l-8 8"})})}function f({data:t,updateData:r}){let n=(0,s.useId)(),[i,o]=(0,s.useState)(t.env.length>0);return(0,e.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-6",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("h2",{className:"stg:text-lg stg:font-semibold stg:text-foreground",children:"Environment & Auth"}),(0,e.jsx)("p",{className:"stg:mt-1 stg:text-sm stg:text-muted-foreground",children:"Declare environment variables and configure authentication. Both sections are optional."})]}),(0,e.jsx)(b,{title:"Environment Variables",subtitle:"Secrets and configuration the server requires at runtime",count:t.env.length,expanded:i,onToggle:()=>o(t=>!t),children:(0,e.jsx)(v,{entries:t.env,onChange:t=>r({env:t})})}),(0,e.jsx)(b,{title:"OAuth Authentication",subtitle:"Configure OAuth for servers that require user authorization",expanded:t.authEnabled,onToggle:()=>r({authEnabled:!t.authEnabled}),children:(0,e.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-4",children:[(0,e.jsxs)("div",{className:"stg:grid stg:gap-4 stg:sm:grid-cols-2",children:[(0,e.jsxs)("div",{className:"stg:space-y-1.5",children:[(0,e.jsx)("label",{htmlFor:`${n}-app-org`,className:"stg:text-sm stg:font-medium stg:text-foreground",children:"OAuth App Organization"}),(0,e.jsx)("input",{id:`${n}-app-org`,type:"text",value:t.authOAuthAppOrg,onChange:t=>r({authOAuthAppOrg:t.target.value}),placeholder:"e.g. stigmer",className:(0,a.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-input-bg stg:px-3 stg:py-2 stg:font-mono stg:text-sm stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring")})]}),(0,e.jsxs)("div",{className:"stg:space-y-1.5",children:[(0,e.jsx)("label",{htmlFor:`${n}-app-slug`,className:"stg:text-sm stg:font-medium stg:text-foreground",children:"OAuth App Slug"}),(0,e.jsx)("input",{id:`${n}-app-slug`,type:"text",value:t.authOAuthAppSlug,onChange:t=>r({authOAuthAppSlug:t.target.value}),placeholder:"e.g. github-oauth",className:(0,a.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-input-bg stg:px-3 stg:py-2 stg:font-mono stg:text-sm stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring")})]})]}),(0,e.jsxs)("div",{className:"stg:space-y-1.5",children:[(0,e.jsx)("label",{htmlFor:`${n}-target-var`,className:"stg:text-sm stg:font-medium stg:text-foreground",children:"Target Environment Variable"}),(0,e.jsx)("input",{id:`${n}-target-var`,type:"text",value:t.authTargetEnvVar,onChange:t=>r({authTargetEnvVar:t.target.value.toUpperCase().replace(/[^A-Z0-9_]/g,"")}),placeholder:"e.g. GITHUB_TOKEN",className:(0,a.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-input-bg stg:px-3 stg:py-2 stg:font-mono stg:text-sm stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring")}),(0,e.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground",children:"The env var that receives the OAuth access token."})]}),(0,e.jsxs)("div",{className:"stg:grid stg:gap-4 stg:sm:grid-cols-2",children:[(0,e.jsxs)("div",{className:"stg:space-y-1.5",children:[(0,e.jsx)("label",{htmlFor:`${n}-lifetime`,className:"stg:text-sm stg:font-medium stg:text-foreground",children:"Token Lifetime Hint"}),(0,e.jsx)("input",{id:`${n}-lifetime`,type:"text",value:t.authTokenLifetimeHint,onChange:t=>r({authTokenLifetimeHint:t.target.value}),placeholder:"e.g. 1h, 8h, never",className:(0,a.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-input-bg stg:px-3 stg:py-2 stg:text-sm stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring")})]}),(0,e.jsxs)("div",{className:"stg:space-y-1.5",children:[(0,e.jsx)("label",{htmlFor:`${n}-scopes`,className:"stg:text-sm stg:font-medium stg:text-foreground",children:"Scope Hints"}),(0,e.jsx)("input",{id:`${n}-scopes`,type:"text",value:t.authScopeHints,onChange:t=>r({authScopeHints:t.target.value}),placeholder:"e.g. repo, read:org",className:(0,a.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-input-bg stg:px-3 stg:py-2 stg:text-sm stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring")}),(0,e.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground",children:"Comma-separated OAuth scopes."})]})]}),(0,e.jsxs)("div",{className:"stg:space-y-1.5",children:[(0,e.jsx)("label",{htmlFor:`${n}-discovery`,className:"stg:text-sm stg:font-medium stg:text-foreground",children:"Discovery URL"}),(0,e.jsx)("input",{id:`${n}-discovery`,type:"url",value:t.authDiscoveryUrl,onChange:t=>r({authDiscoveryUrl:t.target.value}),placeholder:"https://provider.com/.well-known/openid-configuration",className:(0,a.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-input-bg stg:px-3 stg:py-2 stg:font-mono stg:text-sm stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring")})]})]})})]})}function b({title:t,subtitle:r,count:n,expanded:i,onToggle:o,children:g}){let l=(0,s.useId)();return(0,e.jsxs)("div",{className:"stg:overflow-hidden stg:rounded-lg stg:border stg:border-border",children:[(0,e.jsxs)("button",{type:"button",onClick:o,"aria-expanded":i,"aria-controls":l,className:(0,a.cn)("stg:flex stg:w-full stg:items-center stg:justify-between stg:px-4 stg:py-3 stg:text-left stg:transition-colors","stg:hover:bg-accent-hover","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-inset stg:focus-visible:ring-ring"),children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("span",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:t}),null!=n&&n>0&&(0,e.jsx)("span",{className:"stg:ml-2 stg:inline-flex stg:items-center stg:justify-center stg:rounded-full stg:bg-primary stg:px-1.5 stg:py-0.5 stg:text-[10px] stg:font-medium stg:text-primary-foreground",children:n}),(0,e.jsx)("p",{className:"stg:mt-0.5 stg:text-xs stg:text-muted-foreground",children:r})]}),(0,e.jsx)(y,{className:(0,a.cn)("stg:size-4 stg:shrink-0 stg:text-muted-foreground stg:transition-transform",i&&"stg:rotate-180")})]}),i&&(0,e.jsx)("div",{id:l,className:"stg:border-t stg:border-border stg:px-4 stg:py-4",children:g})]})}function v({entries:t,onChange:r}){let n=(0,s.useCallback)(()=>{r([...t,{key:"",description:"",isSecret:!0,optional:!1}])},[t,r]),i=(0,s.useCallback)((e,s)=>{r(t.map((t,r)=>r===e?{...t,...s}:t))},[t,r]),o=(0,s.useCallback)(e=>{r(t.filter((t,s)=>s!==e))},[t,r]);return(0,e.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-3",children:[t.map((t,s)=>(0,e.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-2 stg:rounded-md stg:border stg:border-border stg:p-3",children:[(0,e.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-2",children:[(0,e.jsxs)("div",{className:"stg:flex-1 stg:space-y-1.5",children:[(0,e.jsx)("input",{type:"text",value:t.key,onChange:t=>i(s,{key:t.target.value.toUpperCase().replace(/[^A-Z0-9_]/g,"")}),placeholder:"VARIABLE_NAME","aria-label":`Environment variable name ${s+1}`,className:(0,a.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-input-bg stg:px-2.5 stg:py-1.5 stg:font-mono stg:text-xs stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring")}),(0,e.jsx)("input",{type:"text",value:t.description,onChange:t=>i(s,{description:t.target.value}),placeholder:"Description (optional)","aria-label":`Description for ${t.key||`variable ${s+1}`}`,className:(0,a.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-input-bg stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring")})]}),(0,e.jsx)("button",{type:"button",onClick:()=>o(s),"aria-label":`Remove ${t.key||"variable"}`,className:(0,a.cn)("stg:mt-1 stg:rounded stg:p-1 stg:text-muted-foreground stg:transition-colors","stg:hover:bg-accent-hover stg:hover:text-destructive","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:(0,e.jsx)(N,{className:"stg:size-3.5"})})]}),(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-4",children:[(0,e.jsxs)("label",{className:"stg:flex stg:items-center stg:gap-1.5 stg:text-xs stg:text-muted-foreground",children:[(0,e.jsx)("input",{type:"checkbox",checked:t.isSecret,onChange:t=>i(s,{isSecret:t.target.checked}),className:"stg:size-3.5 stg:rounded stg:border-input"}),"Secret"]}),(0,e.jsxs)("label",{className:"stg:flex stg:items-center stg:gap-1.5 stg:text-xs stg:text-muted-foreground",children:[(0,e.jsx)("input",{type:"checkbox",checked:t.optional,onChange:t=>i(s,{optional:t.target.checked}),className:"stg:size-3.5 stg:rounded stg:border-input"}),"Optional"]})]})]},s)),(0,e.jsxs)("button",{type:"button",onClick:n,className:(0,a.cn)("stg:inline-flex stg:w-fit stg:items-center stg:gap-1.5 stg:rounded-md stg:border stg:border-dashed stg:border-input stg:px-3 stg:py-1.5 stg:text-xs stg:font-medium stg:text-muted-foreground stg:transition-colors","stg:hover:border-border stg:hover:text-foreground stg:hover:bg-accent-hover","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:[(0,e.jsx)(j,{className:"stg:size-3"}),"Add variable"]})]})}function y({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"m4 6 4 4 4-4"})})}function j({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M8 3v10M3 8h10"})})}function N({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M4 4l8 8M12 4l-8 8"})})}var k=t.i(78946),C=t.i(610595),w=t.i(590745);function S({org:t,data:r,isCreating:n,error:i}){let o=(0,s.useRef)(null);(0,s.useEffect)(()=>{i&&o.current?.scrollIntoView({block:"nearest"})},[i]);let g=(0,s.useMemo)(()=>T(t,r),[t,r]),a=(0,s.useMemo)(()=>(0,w.serializeManifest)((0,k.buildMcpServerProto)(g)),[g]),l="http"===r.transportType?r.httpUrl||"(no URL)":`${r.stdioCommand}${r.stdioArgs?` ${r.stdioArgs}`:""}`||"(no command)";return(0,e.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-6",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("h2",{className:"stg:text-lg stg:font-semibold stg:text-foreground",children:"Review & Create"}),(0,e.jsx)("p",{className:"stg:mt-1 stg:text-sm stg:text-muted-foreground",children:"Review the MCP server configuration below, then create it."})]}),(0,e.jsx)("div",{className:"stg:rounded-lg stg:border stg:border-border stg:p-4",children:(0,e.jsxs)("dl",{className:"stg:grid stg:gap-x-6 stg:gap-y-3 stg:text-sm stg:sm:grid-cols-2",children:[(0,e.jsx)(A,{label:"Name",value:r.name}),(0,e.jsx)(A,{label:"Slug",value:r.slug,mono:!0}),(0,e.jsx)(A,{label:"Organization",value:t,mono:!0}),(0,e.jsx)(A,{label:"Visibility",value:"public"===r.visibility?"Public":"Private"}),(0,e.jsx)(A,{label:"Transport",value:"http"===r.transportType?"HTTP":"Stdio"}),(0,e.jsx)(A,{label:"http"===r.transportType?"URL":"Command",value:l,mono:!0}),r.description&&(0,e.jsx)(A,{label:"Description",value:r.description,className:"stg:sm:col-span-2"}),r.env.length>0&&(0,e.jsx)(A,{label:"Env Variables",value:`${r.env.length} declared`}),r.authEnabled&&r.authOAuthAppSlug&&(0,e.jsx)(A,{label:"OAuth",value:r.authOAuthAppOrg?`${r.authOAuthAppOrg}/${r.authOAuthAppSlug}`:r.authOAuthAppSlug,mono:!0})]})}),(0,e.jsxs)("div",{className:"stg:space-y-2",children:[(0,e.jsx)("h3",{className:"stg:text-xs stg:font-medium stg:uppercase stg:tracking-wider stg:text-muted-foreground",children:"YAML Preview"}),(0,e.jsx)("div",{className:"stg:max-h-80 stg:overflow-auto stg:rounded-lg stg:border stg:border-border stg:bg-muted-faint",children:(0,e.jsx)("pre",{className:"stg:p-4 stg:font-mono stg:text-xs stg:leading-relaxed stg:text-foreground",children:a})})]}),i&&(0,e.jsxs)("div",{ref:o,className:"stg:rounded-md stg:border stg:border-destructive stg:bg-muted-faint stg:px-4 stg:py-3",role:"alert",children:[(0,e.jsx)("p",{className:"stg:text-sm stg:font-medium stg:text-destructive",children:"Failed to create MCP server"}),(0,e.jsx)("p",{className:"stg:mt-1 stg:text-xs stg:text-muted-foreground",children:(0,C.getUserMessage)(i)})]}),n&&(0,e.jsx)("p",{className:"stg:text-sm stg:text-muted-foreground","aria-live":"polite",children:"Creating MCP server…"})]})}function A({label:t,value:s,mono:r,className:n}){return(0,e.jsxs)("div",{className:n,children:[(0,e.jsx)("dt",{className:"stg:text-xs stg:text-muted-foreground",children:t}),(0,e.jsx)("dd",{className:(0,a.cn)("stg:mt-0.5 stg:text-sm stg:text-foreground",r&&"stg:font-mono"),children:s})]})}function T(t,e){let s={name:e.name.trim(),org:t,...e.slug&&{slug:e.slug},...e.description&&{description:e.description.trim()},...e.iconUrl&&{iconUrl:e.iconUrl.trim()}};if("http"===e.transportType&&e.httpUrl){let t={url:e.httpUrl.trim()},r=function(t){let e={};for(let s of t)s.key.trim()&&(e[s.key.trim()]=s.value);return Object.keys(e).length>0?e:void 0}(e.httpHeaders);r&&(t.headers=r),e.httpTimeoutSeconds>0&&(t.timeoutSeconds=e.httpTimeoutSeconds),s.http=t}if("stdio"===e.transportType&&e.stdioCommand){let t={command:e.stdioCommand.trim()},r=e.stdioArgs.trim().split(/\s+/).filter(Boolean);r.length>0&&(t.args=r),e.stdioWorkingDir.trim()&&(t.workingDir=e.stdioWorkingDir.trim()),s.stdio=t}if(e.env.length>0){let t={};for(let s of e.env)s.key&&(t[s.key]={...s.isSecret&&{isSecret:!0},...s.description&&{description:s.description},...s.optional&&{optional:!0}});Object.keys(t).length>0&&(s.env=t)}if(e.authEnabled){let t={};e.authOAuthAppSlug&&(t.oauthAppRef={org:e.authOAuthAppOrg,slug:e.authOAuthAppSlug}),e.authTargetEnvVar&&(t.targetEnvVar=e.authTargetEnvVar),e.authTokenLifetimeHint&&(t.tokenLifetimeHint=e.authTokenLifetimeHint);let r=e.authScopeHints.split(",").map(t=>t.trim()).filter(Boolean);r.length>0&&(t.scopeHints=r),e.authDiscoveryUrl&&(t.discoveryUrl=e.authDiscoveryUrl),Object.keys(t).length>0&&(s.auth=t)}return s}let E=[{id:"identity-transport",label:"Identity & Transport",validate:t=>t.name.trim()?"http"!==t.transportType||t.httpUrl.trim()?"stdio"!==t.transportType||t.stdioCommand.trim()?null:"Stdio command is required":"HTTP URL is required":"Name is required"},{id:"environment-auth",label:"Environment & Auth"},{id:"review",label:"Review & Create"}];function L({org:t,initialData:r,onComplete:a,onCancel:l,className:d}){let c=(0,s.useMemo)(()=>({name:"",slug:"",slugTouched:!1,description:"",iconUrl:"",visibility:"private",transportType:"http",httpUrl:"",httpHeaders:[],httpTimeoutSeconds:0,stdioCommand:"",stdioArgs:"",stdioWorkingDir:"",env:[],authEnabled:!1,authOAuthAppOrg:"",authOAuthAppSlug:"",authTargetEnvVar:"",authTokenLifetimeHint:"",authScopeHints:"",authDiscoveryUrl:"",...r}),[r]),p=(0,n.useWizardState)({steps:E,initialData:c}),{create:m,isCreating:x,error:h,clearError:b}=function(){let t=(0,o.useStigmer)(),[e,r]=(0,s.useState)(!1),[n,i]=(0,s.useState)(null),a=(0,s.useCallback)(()=>i(null),[]);return{create:(0,s.useCallback)(async e=>{r(!0),i(null);try{return await t.mcpServer.apply(e)}catch(t){throw i((0,g.toError)(t)),t}finally{r(!1)}},[t]),isCreating:e,error:n,clearError:a}}(),v=(0,s.useCallback)(()=>{p.isLastStep?y():(b(),p.goNext())},[p.isLastStep,p.goNext,b]),y=(0,s.useCallback)(async()=>{b();let e=T(t,p.data);try{let s=await m(e);a({org:s.metadata?.org??t,slug:s.metadata?.slug??e.slug??e.name,name:s.metadata?.name??e.name})}catch{}},[t,p.data,m,b,a]),j=(0,s.useMemo)(()=>{switch(p.currentStep.id){case"identity-transport":return(0,e.jsx)(u,{data:p.data,updateData:p.updateData,validationError:p.validationError});case"environment-auth":return(0,e.jsx)(f,{data:p.data,updateData:p.updateData});case"review":return(0,e.jsx)(S,{org:t,data:p.data,isCreating:x,error:h});default:return null}},[p.currentStep.id,p.data,p.updateData,p.validationError,t,x,h]);return(0,e.jsx)(i.WizardShell,{steps:E,currentStepIndex:p.currentStepIndex,submitLabel:"Create MCP server",isSubmitting:x,canGoNext:p.canGoNext,canGoBack:p.canGoBack,onNext:v,onBack:p.goBack,onGoToStep:p.goToStep,onCancel:l,className:d,children:j})}var $=t.i(385332),O=t.i(658653);let M=[{id:"github",name:"GitHub",description:"Connect to the GitHub API for repository management, issue tracking, pull requests, and code search.",category:"integration",tags:["github","git","repository","api","code"],data:{name:"GitHub",description:"GitHub API integration for repository management, issues, pull requests, and code search.",transportType:"http",httpUrl:"https://api.githubcopilot.com",env:[{key:"GITHUB_TOKEN",description:"GitHub personal access token with appropriate scopes.",isSecret:!0,optional:!1}]}},{id:"slack",name:"Slack",description:"Connect to the Slack API for sending messages, managing channels, and reading conversation history.",category:"integration",tags:["slack","messaging","chat","communication"],data:{name:"Slack",description:"Slack API integration for messaging, channel management, and conversation history.",transportType:"http",httpUrl:"https://slack.com/api/mcp",env:[{key:"SLACK_BOT_TOKEN",description:"Slack Bot User OAuth token (xoxb-...).",isSecret:!0,optional:!1}]}},{id:"neon",name:"Neon",description:"Connect to Neon's hosted MCP endpoint for serverless PostgreSQL — querying, schema inspection, and branch management.",category:"integration",tags:["neon","postgres","postgresql","database","sql","data"],data:{name:"Neon",description:"Neon serverless PostgreSQL — querying, schema inspection, database provisioning, and branch management.",transportType:"http",httpUrl:"https://mcp.neon.tech/mcp",env:[{key:"NEON_API_KEY",description:"Neon API key (generate at console.neon.tech/app/settings/api-keys).",isSecret:!0,optional:!1}]}},{id:"filesystem",name:"Filesystem (local runners)",description:"Provide read and write access to a local directory for file management and content operations. Runs on local runners only.",category:"general",tags:["filesystem","files","local","directory"],data:{name:"Filesystem",description:"Local filesystem access for reading, writing, and managing files within a directory. Stdio transport — runs on local runners only.",transportType:"stdio",stdioCommand:"npx",stdioArgs:"-y @modelcontextprotocol/server-filesystem /path/to/directory"}}];var D=t.i(297629),I=t.i(310057);t.s(["McpServerNewPage",0,function(){let t=(0,D.useActiveOrgSlug)(),n=(0,r.useRouter)(),{setLabel:i}=(0,I.useBreadcrumbOverride)(),[o,g]=(0,s.useState)({phase:"picking"}),[a,l]=(0,s.useState)(!1);(0,s.useEffect)(()=>{i("New MCP server")},[i]);let d=(0,s.useCallback)(t=>{switch(t.kind){case"scratch":g({phase:"wizard"});break;case"template":g({phase:"wizard",initialData:t.data});break;case"import":l(!0)}},[]),c=(0,s.useCallback)(t=>{n.push(`/library/mcp-servers/${t.org}/${t.slug}`)},[n]),u=(0,s.useCallback)(()=>{"wizard"===o.phase?g({phase:"picking"}):n.push("/library/mcp-servers")},[o.phase,n]);return t?(0,e.jsxs)(e.Fragment,{children:["picking"===o.phase?(0,e.jsx)($.CreationPicker,{resourceLabel:"MCP server",templates:M,onSelect:d}):(0,e.jsx)(L,{org:t,initialData:o.initialData,onComplete:c,onCancel:u,className:"min-h-[480px]"}),(0,e.jsx)(O.ApplyManifestDialog,{open:a,onOpenChange:l,org:t,onApplied:()=>n.push("/library/mcp-servers")})]}):null}],468099)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,347442,e=>{"use strict";var t=e.i(857844),s=e.i(271645),i=e.i(843476);e.s(["HighlightedCodeBlockBody",0,({code:e,language:a,raw:l,className:u,startLine:r,lineNumbers:o,...c})=>{let{shikiTheme:n}=(0,s.useContext)(t.A),g=(0,t.f)(),[h,d]=(0,s.useState)(l);return(0,s.useEffect)(()=>{if(!g)return void d(l);let t=g.highlight({code:e,language:a,themes:n},e=>{d(e)});t&&d(t)},[e,a,n,g,l]),(0,i.jsx)(t.c,{className:u,language:a,lineNumbers:o,result:h,startLine:r,...c})}])}]);
@@ -0,0 +1,60 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,864421,440524,e=>{"use strict";var t=e.i(669587),n=e.i(908381),r=e.i(171206);let l=Object.freeze({left:0,top:0,width:16,height:16}),s=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),i=Object.freeze({...l,...s}),a=Object.freeze({...i,body:"",hidden:!1});function o(e,t){let n,r,l=(n={},!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0),(r=((e.rotate||0)+(t.rotate||0))%4)&&(n.rotate=r),n);for(let n in a)n in s?n in e&&!(n in l)&&(l[n]=s[n]):n in t?l[n]=t[n]:n in e&&(l[n]=e[n]);return l}function c(e,t,n){let r=e.icons,l=e.aliases||Object.create(null),s={};function i(e){s=o(r[e]||l[e],s)}return i(t),n.forEach(i),o(e,s)}let p=Object.freeze({...Object.freeze({width:null,height:null}),...s}),h=/(-?[0-9.]*[0-9]+[0-9.]*)/g,u=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function g(e,t,n){if(1===t)return e;if(n=n||100,"number"==typeof e)return Math.ceil(e*t*n)/n;if("string"!=typeof e)return e;let r=e.split(h);if(null===r||!r.length)return e;let l=[],s=r.shift(),i=u.test(s);for(;;){if(i){let e=parseFloat(s);isNaN(e)?l.push(s):l.push(Math.ceil(e*t*n)/n)}else l.push(s);if(void 0===(s=r.shift()))return l.join("");i=!i}}let f=/\sid="(\S+)"/g,d=new Map,k=(e,t)=>!!e&&!!((t&&""===e.prefix||e.prefix)&&e.name);e.i(947716);var x=e.i(723685);function m(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var b=m(),w={exec:()=>null};function y(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let l="string"==typeof t?t:t.source;return l=l.replace(S.caret,"$1"),n=n.replace(e,l),r},getRegex:()=>new RegExp(n,t)};return r}var $=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),S={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},R=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,T=/(?:[*+-]|\d{1,9}[.)])/,_=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,z=y(_).replace(/bull/g,T).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),A=y(_).replace(/bull/g,T).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),v=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,E=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,I=y(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",E).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),P=y(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,T).getRegex(),L="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",B=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,C=y("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",B).replace("tag",L).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),j=y(v).replace("hr",R).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",L).getRegex(),M={blockquote:y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",j).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:I,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:R,html:C,lheading:z,list:P,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:j,table:w,text:/^[^\n]+/},q=y("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",R).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",L).getRegex(),O={...M,lheading:A,table:q,paragraph:y(v).replace("hr",R).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",q).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",L).getRegex()},Z={...M,html:y("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",B).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:w,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:y(v).replace("hr",R).replace("heading",` *#{1,6} *[^
2
+ ]`).replace("lheading",z).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},F=/^( {2,}|\\)\n(?!\s*$)/,D=/[\p{P}\p{S}]/u,H=/[\s\p{P}\p{S}]/u,N=/[^\s\p{P}\p{S}]/u,W=y(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,H).getRegex(),Q=/(?!~)[\p{P}\p{S}]/u,G=y(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",$?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),U=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,K=y(U,"u").replace(/punct/g,D).getRegex(),X=y(U,"u").replace(/punct/g,Q).getRegex(),V="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Y=y(V,"gu").replace(/notPunctSpace/g,N).replace(/punctSpace/g,H).replace(/punct/g,D).getRegex(),J=y(V,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,Q).getRegex(),ee=y("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,N).replace(/punctSpace/g,H).replace(/punct/g,D).getRegex(),et=y(/\\(punct)/,"gu").replace(/punct/g,D).getRegex(),en=y(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),er=y(B).replace("(?:-->|$)","-->").getRegex(),el=y("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",er).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),es=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,ei=y(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",es).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ea=y(/^!?\[(label)\]\[(ref)\]/).replace("label",es).replace("ref",E).getRegex(),eo=y(/^!?\[(ref)\](?:\[\])?/).replace("ref",E).getRegex(),ec=y("reflink|nolink(?!\\()","g").replace("reflink",ea).replace("nolink",eo).getRegex(),ep=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,eh={_backpedal:w,anyPunctuation:et,autolink:en,blockSkip:G,br:F,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:w,emStrongLDelim:K,emStrongRDelimAst:Y,emStrongRDelimUnd:ee,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:ei,nolink:eo,punctuation:W,reflink:ea,reflinkSearch:ec,tag:el,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:w},eu={...eh,link:y(/^!?\[(label)\]\((.*?)\)/).replace("label",es).getRegex(),reflink:y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",es).getRegex()},eg={...eh,emStrongRDelimAst:J,emStrongLDelim:X,url:y(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ep).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:y(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ep).getRegex()},ef={...eg,br:y(F).replace("{2,}","*").getRegex(),text:y(eg.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ed={normal:M,gfm:O,pedantic:Z},ek={normal:eh,gfm:eg,breaks:ef,pedantic:eu},ex={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},em=e=>ex[e];function eb(e,t){if(t){if(S.escapeTest.test(e))return e.replace(S.escapeReplace,em)}else if(S.escapeTestNoEncode.test(e))return e.replace(S.escapeReplaceNoEncode,em);return e}function ew(e){try{e=encodeURI(e).replace(S.percentDecode,"%")}catch{return null}return e}function ey(e,t){let n=e.replace(S.findPipe,(e,t,n)=>{let r=!1,l=t;for(;--l>=0&&"\\"===n[l];)r=!r;return r?"|":" |"}).split(S.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(S.slashPipe,"|");return n}function e$(e,t,n){let r=e.length;if(0===r)return"";let l=0;for(;l<r;){let s=e.charAt(r-l-1);if(s!==t||n)if(s!==t&&n)l++;else break;else l++}return e.slice(0,r-l)}function eS(e,t,n,r,l){let s=t.href,i=t.title||null,a=e[1].replace(l.other.outputLinkReplace,"$1");r.state.inLink=!0;let o={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:s,title:i,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,o}var eR=class{options;rules;lexer;constructor(e){this.options=e||b}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:e$(e,`
3
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let l=r[1];return t.split(`
4
+ `).map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=l.length?e.slice(l.length):e}).join(`
5
+ `)}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=e$(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:e$(t[0],`
6
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=e$(t[0],`
7
+ `).split(`
8
+ `),n="",r="",l=[];for(;e.length>0;){let t=!1,s=[],i;for(i=0;i<e.length;i++)if(this.rules.other.blockquoteStart.test(e[i]))s.push(e[i]),t=!0;else if(t)break;else s.push(e[i]);e=e.slice(i);let a=s.join(`
9
+ `),o=a.replace(this.rules.other.blockquoteSetextReplace,`
10
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
11
+ ${a}`:a,r=r?`${r}
12
+ ${o}`:o;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(o,l,!0),this.lexer.state.top=c,0===e.length)break;let p=l.at(-1);if(p?.type==="code")break;if(p?.type==="blockquote"){let t=p.raw+`
13
+ `+e.join(`
14
+ `),s=this.blockquote(t);l[l.length-1]=s,n=n.substring(0,n.length-p.raw.length)+s.raw,r=r.substring(0,r.length-p.text.length)+s.text;break}if(p?.type==="list"){let t=p.raw+`
15
+ `+e.join(`
16
+ `),s=this.list(t);l[l.length-1]=s,n=n.substring(0,n.length-p.raw.length)+s.raw,r=r.substring(0,r.length-p.raw.length)+s.raw,e=t.substring(l.at(-1).raw.length).split(`
17
+ `);continue}}return{type:"blockquote",raw:n,tokens:l,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,l={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let s=this.rules.other.listItemRegex(n),i=!1;for(;e;){let n=!1,r="",a="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let o=t[2].split(`
18
+ `,1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split(`
19
+ `,1)[0],p=!o.trim(),h=0;if(this.options.pedantic?(h=2,a=o.trimStart()):p?h=t[1].length+1:(h=(h=t[2].search(this.rules.other.nonSpaceChar))>4?1:h,a=o.slice(h),h+=t[1].length),p&&this.rules.other.blankLine.test(c)&&(r+=c+`
20
+ `,e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(h),n=this.rules.other.hrRegex(h),l=this.rules.other.fencesBeginRegex(h),s=this.rules.other.headingBeginRegex(h),i=this.rules.other.htmlBeginRegex(h);for(;e;){let u=e.split(`
21
+ `,1)[0],g;if(c=u,g=this.options.pedantic?c=c.replace(this.rules.other.listReplaceNesting," "):c.replace(this.rules.other.tabCharGlobal," "),l.test(c)||s.test(c)||i.test(c)||t.test(c)||n.test(c))break;if(g.search(this.rules.other.nonSpaceChar)>=h||!c.trim())a+=`
22
+ `+g.slice(h);else{if(p||o.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||l.test(o)||s.test(o)||n.test(o))break;a+=`
23
+ `+c}p||c.trim()||(p=!0),r+=u+`
24
+ `,e=e.substring(u.length+1),o=g.slice(h)}}l.loose||(i?l.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(i=!0));let u=null,g;this.options.gfm&&(u=this.rules.other.listIsTask.exec(a))&&(g="[ ] "!==u[0],a=a.replace(this.rules.other.listReplaceTask,"")),l.items.push({type:"list_item",raw:r,task:!!u,checked:g,loose:!1,text:a,tokens:[]}),l.raw+=r}let a=l.items.at(-1);if(!a)return;a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd(),l.raw=l.raw.trimEnd();for(let e=0;e<l.items.length;e++)if(this.lexer.state.top=!1,l.items[e].tokens=this.lexer.blockTokens(l.items[e].text,[]),!l.loose){let t=l.items[e].tokens.filter(e=>"space"===e.type);l.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}if(l.loose)for(let e=0;e<l.items.length;e++)l.items[e].loose=!0;return l}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=ey(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),l=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
25
+ `):[],s={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?s.align.push("right"):this.rules.other.tableAlignCenter.test(e)?s.align.push("center"):this.rules.other.tableAlignLeft.test(e)?s.align.push("left"):s.align.push(null);for(let e=0;e<n.length;e++)s.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:s.align[e]});for(let e of l)s.rows.push(ey(e,s.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:s.align[t]})));return s}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
26
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=e$(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e){if(-1===e.indexOf(")"))return -1;let t=0;for(let n=0;n<e.length;n++)if("\\"===e[n])n++;else if("("===e[n])t++;else if(")"===e[n]&&--t<0)return n;return t>0?-2:-1}(t[2]);if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),eS(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return eS(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,l,s,i=n,a=0,o="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(o.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=o.exec(t));){if(!(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(s=[...l].length,r[3]||r[4]){i+=s;continue}if((r[5]||r[6])&&n%3&&!((n+s)%3)){a+=s;continue}if((i-=s)>0)continue;s=Math.min(s,s+i+a);let t=[...r[0]][0].length,o=e.slice(0,n+r.index+t+s);if(Math.min(n,s)%2){let e=o.slice(1,-1);return{type:"em",raw:o,text:e,tokens:this.lexer.inlineTokens(e)}}let c=o.slice(2,-2);return{type:"strong",raw:o,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return n="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])n="mailto:"+(e=t[0]);else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0])e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},eT=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||b,this.options.tokenizer=this.options.tokenizer||new eR,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:S,block:ed.normal,inline:ek.normal};this.options.pedantic?(t.block=ed.pedantic,t.inline=ek.pedantic):this.options.gfm&&(t.block=ed.gfm,this.options.breaks?t.inline=ek.breaks:t.inline=ek.gfm),this.tokenizer.rules=t}static get rules(){return{block:ed,inline:ek}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(S.carriageReturn,`
27
+ `),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(S.tabCharGlobal," ").replace(S.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+=`
28
+ `:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`
29
+ `)?"":`
30
+ `)+r.raw,n.text+=`
31
+ `+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if((r=this.tokenizer.fences(e))||(r=this.tokenizer.heading(e))||(r=this.tokenizer.hr(e))||(r=this.tokenizer.blockquote(e))||(r=this.tokenizer.list(e))||(r=this.tokenizer.html(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`
32
+ `)?"":`
33
+ `)+r.raw,n.text+=`
34
+ `+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if((r=this.tokenizer.table(e))||(r=this.tokenizer.lheading(e))){e=e.substring(r.raw.length),t.push(r);continue}let l=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(l=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(l))){let s=t.at(-1);n&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(`
35
+ `)?"":`
36
+ `)+r.raw,s.text+=`
37
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):t.push(r),n=l.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="text"?(n.raw+=(n.raw.endsWith(`
38
+ `)?"":`
39
+ `)+r.raw,n.text+=`
40
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r=e,l=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(l=this.tokenizer.rules.inline.reflinkSearch.exec(r));)e.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(l=this.tokenizer.rules.inline.anyPunctuation.exec(r));)r=r.slice(0,l.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(l=this.tokenizer.rules.inline.blockSkip.exec(r));)n=l[2]?l[2].length:0,r=r.slice(0,l.index+n)+"["+"a".repeat(l[0].length-n-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let s=!1,i="";for(;e;){let n;if(s||(i=""),s=!1,this.options.extensions?.inline?.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if((n=this.tokenizer.escape(e))||(n=this.tokenizer.tag(e))||(n=this.tokenizer.link(e))){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===n.type&&r?.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if((n=this.tokenizer.emStrong(e,r,i))||(n=this.tokenizer.codespan(e))||(n=this.tokenizer.br(e))||(n=this.tokenizer.del(e))||(n=this.tokenizer.autolink(e))||!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let l=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(l=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(l)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(i=n.raw.slice(-1)),s=!0;let r=t.at(-1);r?.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},e_=class{options;parser;constructor(e){this.options=e||b}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(S.notSpaceStart)?.[0],l=e.replace(S.endingNewline,"")+`
41
+ `;return r?'<pre><code class="language-'+eb(r)+'">'+(n?l:eb(l,!0))+`</code></pre>
42
+ `:"<pre><code>"+(n?l:eb(l,!0))+`</code></pre>
43
+ `}blockquote({tokens:e}){return`<blockquote>
44
+ ${this.parser.parse(e)}</blockquote>
45
+ `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
46
+ `}hr(e){return`<hr>
47
+ `}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let l=t?"ol":"ul";return"<"+l+(t&&1!==n?' start="'+n+'"':"")+`>
48
+ `+r+"</"+l+`>
49
+ `}listitem(e){let t="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+eb(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
50
+ `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
51
+ `}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let l=e.rows[t];n="";for(let e=0;e<l.length;e++)n+=this.tablecell(l[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
52
+ <thead>
53
+ `+t+`</thead>
54
+ `+r+`</table>
55
+ `}tablerow({text:e}){return`<tr>
56
+ ${e}</tr>
57
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
58
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${eb(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),l=ew(e);if(null===l)return r;let s='<a href="'+(e=l)+'"';return t&&(s+=' title="'+eb(t)+'"'),s+=">"+r+"</a>"}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let l=ew(e);if(null===l)return eb(n);e=l;let s=`<img src="${e}" alt="${n}"`;return t&&(s+=` title="${eb(t)}"`),s+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:eb(e.text)}},ez=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},eA=class e{options;renderer;textRenderer;constructor(e){this.options=e||b,this.options.renderer=this.options.renderer||new e_,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ez}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n="";for(let r=0;r<e.length;r++){let l=e[r];if(this.options.extensions?.renderers?.[l.type]){let e=this.options.extensions.renderers[l.type].call({parser:this},l);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){n+=e||"";continue}}switch(l.type){case"space":n+=this.renderer.space(l);continue;case"hr":n+=this.renderer.hr(l);continue;case"heading":n+=this.renderer.heading(l);continue;case"code":n+=this.renderer.code(l);continue;case"table":n+=this.renderer.table(l);continue;case"blockquote":n+=this.renderer.blockquote(l);continue;case"list":n+=this.renderer.list(l);continue;case"html":n+=this.renderer.html(l);continue;case"def":n+=this.renderer.def(l);continue;case"paragraph":n+=this.renderer.paragraph(l);continue;case"text":{let s=l,i=this.renderer.text(s);for(;r+1<e.length&&"text"===e[r+1].type;)s=e[++r],i+=`
59
+ `+this.renderer.text(s);t?n+=this.renderer.paragraph({type:"paragraph",raw:i,text:i,tokens:[{type:"text",raw:i,text:i,escaped:!0}]}):n+=i;continue}default:{let e='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}parseInline(e,t=this.renderer){let n="";for(let r=0;r<e.length;r++){let l=e[r];if(this.options.extensions?.renderers?.[l.type]){let e=this.options.extensions.renderers[l.type].call({parser:this},l);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){n+=e||"";continue}}switch(l.type){case"escape":case"text":n+=t.text(l);break;case"html":n+=t.html(l);break;case"link":n+=t.link(l);break;case"image":n+=t.image(l);break;case"strong":n+=t.strong(l);break;case"em":n+=t.em(l);break;case"codespan":n+=t.codespan(l);break;case"br":n+=t.br(l);break;case"del":n+=t.del(l);break;default:{let e='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}},ev=class{options;block;constructor(e){this.options=e||b}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?eT.lex:eT.lexInline}provideParser(){return this.block?eA.parse:eA.parseInline}},eE=new class{defaults=m();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=eA;Renderer=e_;TextRenderer=ez;Lexer=eT;Tokenizer=eR;Hooks=ev;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":for(let e of r.header)n=n.concat(this.walkTokens(e.tokens,t));for(let e of r.rows)for(let r of e)n=n.concat(this.walkTokens(r.tokens,t));break;case"list":n=n.concat(this.walkTokens(r.items,t));break;default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let l=e[r].flat(1/0);n=n.concat(this.walkTokens(l,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new e_(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=e.renderer[n],l=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=l.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new eR(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=e.tokenizer[n],l=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=l.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new ev;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=e.hooks[n],l=t[n];ev.passThroughHooks.has(n)?t[n]=e=>{if(this.defaults.async&&ev.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await r.call(t,e);return l.call(t,n)})();let s=r.call(t,e);return l.call(t,s)}:t[n]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await r.apply(t,e);return!1===n&&(n=await l.apply(t,e)),n})();let n=r.apply(t,e);return!1===n&&(n=l.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return eT.lex(e,t??this.defaults)}parser(e,t){return eA.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},l={...this.defaults,...r},s=this.onError(!!l.silent,!!l.async);if(!0===this.defaults.async&&!1===r.async)return s(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return s(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return s(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(l.hooks&&(l.hooks.options=l,l.hooks.block=e),l.async)return(async()=>{let n=l.hooks?await l.hooks.preprocess(t):t,r=await (l.hooks?await l.hooks.provideLexer():e?eT.lex:eT.lexInline)(n,l),s=l.hooks?await l.hooks.processAllTokens(r):r;l.walkTokens&&await Promise.all(this.walkTokens(s,l.walkTokens));let i=await (l.hooks?await l.hooks.provideParser():e?eA.parse:eA.parseInline)(s,l);return l.hooks?await l.hooks.postprocess(i):i})().catch(s);try{l.hooks&&(t=l.hooks.preprocess(t));let n=(l.hooks?l.hooks.provideLexer():e?eT.lex:eT.lexInline)(t,l);l.hooks&&(n=l.hooks.processAllTokens(n)),l.walkTokens&&this.walkTokens(n,l.walkTokens);let r=(l.hooks?l.hooks.provideParser():e?eA.parse:eA.parseInline)(n,l);return l.hooks&&(r=l.hooks.postprocess(r)),r}catch(e){return s(e)}}}onError(e,t){return n=>{if(n.message+=`
60
+ Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+eb(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function eI(e,t){return eE.parse(e,t)}function eP(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.from("string"==typeof e?[e]:e);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var l=r.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){var t,n;return null!=(n=null==(t=e.match(/[\t ]/g))?void 0:t.length)?n:0})):e},[]);if(l.length){var s=RegExp("\n[ ]{"+Math.min.apply(Math,l)+"}","g");r=r.map(function(e){return e.replace(s,"\n")})}r[0]=r[0].replace(/^\r?\n/,"");var i=r[0];return t.forEach(function(e,t){var n=i.match(/(?:^|\n)( *)$/),l=n?n[1]:"",s=e;"string"==typeof e&&e.includes("\n")&&(s=String(e).split("\n").map(function(e,t){return 0===t?e:""+l+e}).join("\n")),i+=s+r[t+1]}),i}eI.options=eI.setOptions=function(e){return eE.setOptions(e),eI.defaults=eE.defaults,b=eI.defaults,eI},eI.getDefaults=m,eI.defaults=b,eI.use=function(...e){return eE.use(...e),eI.defaults=eE.defaults,b=eI.defaults,eI},eI.walkTokens=function(e,t){return eE.walkTokens(e,t)},eI.parseInline=eE.parseInline,eI.Parser=eA,eI.parser=eA.parse,eI.Renderer=e_,eI.TextRenderer=ez,eI.Lexer=eT,eI.lexer=eT.lex,eI.Tokenizer=eR,eI.Hooks=ev,eI.parse=eI,eI.options,eI.setOptions,eI.use,eI.walkTokens,eI.parseInline,eA.parse,eT.lex,e.s(["dedent",0,eP],440524);var eL={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},eB=new Map,eC=new Map,ej=(0,r.__name)(e=>{for(let t of e){if(!t.name)throw Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(r.log.debug("Registering icon pack:",t.name),"loader"in t)eC.set(t.name,t.loader);else if("icons"in t)eB.set(t.name,t.icons);else throw r.log.error("Invalid icon loader:",t),Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),eM=(0,r.__name)(async(e,t)=>{let n=((e,t,n,r="")=>{let l=e.split(":");if("@"===e.slice(0,1)){if(l.length<2||l.length>3)return null;r=l.shift().slice(1)}if(l.length>3||!l.length)return null;if(l.length>1){let e=l.pop(),n=l.pop(),s={provider:l.length>0?l[0]:r,prefix:n,name:e};return t&&!k(s)?null:s}let s=l[0],i=s.split("-");if(i.length>1){let e={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!k(e)?null:e}if(n&&""===r){let e={provider:r,prefix:"",name:s};return t&&!k(e,n)?null:e}return null})(e,!0,void 0!==t);if(!n)throw Error(`Invalid icon name: ${e}`);let l=n.prefix||t;if(!l)throw Error(`Icon name must contain a prefix: ${e}`);let s=eB.get(l);if(!s){let e=eC.get(l);if(!e)throw Error(`Icon set not found: ${n.prefix}`);try{s={...await e(),prefix:l},eB.set(l,s)}catch(e){throw r.log.error(e),Error(`Failed to load icon set: ${n.prefix}`)}}let i=function(e,t){var n;let r,l,s;if(e.icons[t])return c(e,t,[]);let i=(n=[t],r=e.icons,l=e.aliases||Object.create(null),s=Object.create(null),(n||Object.keys(r).concat(Object.keys(l))).forEach(function e(t){if(r[t])return s[t]=[];if(!(t in s)){s[t]=null;let n=l[t]&&l[t].parent,r=n&&e(n);r&&(s[t]=[n].concat(r))}return s[t]}),s)[t];return i?c(e,t,i):null}(s,n.name);if(!i)throw Error(`Icon not found: ${e}`);return i},"getRegisteredIconData"),eq=(0,r.__name)(async e=>{try{return await eM(e),!0}catch{return!1}},"isIconAvailable"),eO=(0,r.__name)(async(e,t,l)=>{var s;let a,o,c,h,u,k,x,m,b,w,y,$,S,R;try{a=await eM(e,t?.fallbackPrefix)}catch(e){r.log.error(e),a=eL}let T=(s=a,h={...i,...s},u={...p,...t},k={left:h.left,top:h.top,width:h.width,height:h.height},x=h.body,[h,u].forEach(e=>{var t,n,r,l;let s,i,a=[],o=e.hFlip,c=e.vFlip,p=e.rotate;switch(o?c?p+=2:(a.push("translate("+(k.width+k.left).toString()+" "+(0-k.top).toString()+")"),a.push("scale(-1 1)"),k.top=k.left=0):c&&(a.push("translate("+(0-k.left).toString()+" "+(k.height+k.top).toString()+")"),a.push("scale(1 -1)"),k.top=k.left=0),p<0&&(p-=4*Math.floor(p/4)),p%=4){case 1:a.unshift("rotate(90 "+(s=k.height/2+k.top).toString()+" "+s.toString()+")");break;case 2:a.unshift("rotate(180 "+(k.width/2+k.left).toString()+" "+(k.height/2+k.top).toString()+")");break;case 3:a.unshift("rotate(-90 "+(s=k.width/2+k.left).toString()+" "+s.toString()+")")}p%2==1&&(k.left!==k.top&&(s=k.left,k.left=k.top,k.top=s),k.width!==k.height&&(s=k.width,k.width=k.height,k.height=s)),a.length&&(t=x,n='<g transform="'+a.join(" ")+'">',r=(i=function(e,t="defs"){let n="",r=e.indexOf("<"+t);for(;r>=0;){let l=e.indexOf(">",r),s=e.indexOf("</"+t);if(-1===l||-1===s)break;let i=e.indexOf(">",s);if(-1===i)break;n+=e.slice(l+1,s).trim(),e=e.slice(0,r).trim()+e.slice(i+1)}return{defs:n,content:e}}(t)).defs,l=n+i.content+"</g>",x=r?"<defs>"+r+"</defs>"+l:l)}),m=u.width,b=u.height,w=k.width,y=k.height,null===m?o=g(c=null===b?"1em":"auto"===b?y:b,w/y):(o="auto"===m?w:m,c=null===b?g(o,y/w):"auto"===b?y:b),$={},(S=(e,t)=>{"unset"!==t&&"undefined"!==t&&"none"!==t&&($[e]=t.toString())})("width",o),S("height",c),$.viewBox=(R=[k.left,k.top,w,y]).join(" "),{attributes:$,viewBox:R,body:x}),_=function(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let e in t)n+=" "+e+'="'+t[e]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}(function(e){let t,n=[];for(;t=f.exec(e);)n.push(t[1]);if(!n.length)return e;let r="suffix"+(0x1000000*Math.random()|Date.now()).toString(16);return n.forEach(t=>{var n;let l,s=(n=(n=t).replace(/[0-9]+$/,"")||"a",l=d.get(n)||0,d.set(n,l+1),l?`${n}${l}`:n),i=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+s+r+"$3")}),e=e.replace(RegExp(r,"g"),"")}(T.body),{...T.attributes,...l});return(0,n.sanitizeText)(_,(0,n.getConfig)())},"getIconSVG");function eZ(e,{markdownAutoWrap:t}){return eP(e.replace(/<br\/>/g,"\n").replace(/\n{2,}/g,"\n"))}function eF(e){return e.split(/\\n|\n|<br\s*\/?>/gi).map(e=>e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(e=>({content:e,type:"normal"}))??[])}function eD(e,t={}){let n=eZ(e,t),l=eI.lexer(n),s=[[]],i=0;function a(e,t="normal"){"text"===e.type?e.text.split("\n").forEach((e,n)=>{0!==n&&(i++,s.push([])),e.split(" ").forEach(e=>{(e=e.replace(/&#39;/g,"'"))&&s[i].push({content:e,type:t})})}):"strong"===e.type||"em"===e.type?e.tokens.forEach(t=>{a(t,e.type)}):"html"===e.type&&s[i].push({content:e.text,type:"normal"})}return(0,r.__name)(a,"processNode"),l.forEach(e=>{"paragraph"===e.type?e.tokens?.forEach(e=>{a(e)}):"html"===e.type?s[i].push({content:e.text,type:"normal"}):s[i].push({content:e.raw,type:"normal"})}),s}function eH(e){return e?`<p>${e.replace(/\\n|\n/g,"<br />")}</p>`:""}function eN(e,{markdownAutoWrap:t}={}){let n=eI.lexer(e);function l(e){if("text"===e.type)return!1===t?e.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):e.text.replace(/\n */g,"<br/>");if("strong"===e.type)return`<strong>${e.tokens?.map(l).join("")}</strong>`;if("em"===e.type)return`<em>${e.tokens?.map(l).join("")}</em>`;if("paragraph"===e.type)return`<p>${e.tokens?.map(l).join("")}</p>`;if("space"===e.type)return"";else if("html"===e.type)return`${e.text}`;else if("escape"===e.type)return e.text;return r.log.warn(`Unsupported markdown: ${e.type}`),e.raw}return(0,r.__name)(l,"output"),n.map(l).join("")}function eW(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(e=>e.segment):[...e]}function eQ(e,t){return eG(e,[],eW(t.content),t.type)}function eG(e,t,n,r){if(0===n.length)return[{content:t.join(""),type:r},{content:"",type:r}];let[l,...s]=n,i=[...t,l];return e([{content:i.join(""),type:r}])?eG(e,i,s,r):(0===t.length&&l&&(t.push(l),n.shift()),[{content:t.join(""),type:r},{content:n.join(""),type:r}])}function eU(e,t){if(e.some(({content:e})=>e.includes("\n")))throw Error("splitLineToFitWidth does not support newlines in the line");return eK(e,t)}function eK(e,t,n=[],r=[]){if(0===e.length)return r.length>0&&n.push(r),n.length>0?n:[];let l="";" "===e[0].content&&(l=" ",e.shift());let s=e.shift()??{content:" ",type:"normal"},i=[...r];if(""!==l&&i.push({content:l,type:"normal"}),i.push(s),t(i))return eK(e,t,n,i);if(r.length>0)n.push(r),e.unshift(s);else if(s.content){let[r,l]=eQ(t,s);n.push([r]),l.content&&e.unshift(l)}return eK(e,t,n)}function eX(e,t){t&&e.attr("style",t)}async function eV(e,t,r,l,s=!1,i=(0,n.getConfig)()){let a=e.append("foreignObject");a.attr("width",`${Math.min(10*r,16384)}px`),a.attr("height",`${Math.min(10*r,16384)}px`);let o=a.append("xhtml:div"),c=(0,n.hasKatex)(t.label)?await (0,n.renderKatexSanitized)(t.label.replace(n.common_default.lineBreakRegex,"\n"),i):(0,n.sanitizeText)(t.label,i),p=t.isNode?"nodeLabel":"edgeLabel",h=o.append("span");h.html(c),eX(h,t.labelStyle),h.attr("class",`${p} ${l}`),eX(o,t.labelStyle),o.style("display","table-cell"),o.style("white-space","nowrap"),o.style("line-height","1.5"),r!==1/0&&(o.style("max-width",r+"px"),o.style("text-align","center")),o.attr("xmlns","http://www.w3.org/1999/xhtml"),s&&o.attr("class","labelBkg");let u=o.node().getBoundingClientRect();return u.width===r&&(o.style("display","table"),o.style("white-space","break-spaces"),o.style("width",r+"px"),u=o.node().getBoundingClientRect()),a.node()}function eY(e,t,n,r=!1){let l=e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*n-.1+"em").attr("dy",n+"em");return r&&l.attr("text-anchor","middle"),l}function eJ(e,t,n){let r=e.append("text"),l=eY(r,1,t);e2(l,n);let s=l.node().getComputedTextLength();return r.remove(),s}function e0(e,t,n){let r=e.append("text"),l=eY(r,1,t);e2(l,[{content:n,type:"normal"}]);let s=l.node()?.getBoundingClientRect();return s&&r.remove(),s}function e1(e,t,n,l=!1,s=!1){let i=t.append("g"),a=i.insert("rect").attr("class","background").attr("style","stroke: none"),o=i.append("text").attr("y","-10.1");s&&o.attr("text-anchor","middle");let c=0;for(let t of n){let n=(0,r.__name)(t=>eJ(i,1.1,t)<=e,"checkWidth");for(let e of n(t)?[t]:eU(t,n))e2(eY(o,c,1.1,s),e),c++}if(!l)return o.node();{let e=o.node().getBBox();return a.attr("x",e.x-2).attr("y",e.y-2).attr("width",e.width+4).attr("height",e.height+4),i.node()}}function e3(e){return e.replace(/&(amp|lt|gt);/g,(e,t)=>{switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return e}})}function e2(e,t){e.text(""),t.forEach((t,n)=>{let r=e.append("tspan").attr("font-style","em"===t.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===t.type?"bold":"normal");0===n?r.text(e3(t.content)):r.text(" "+e3(t.content))})}async function e9(e,t={}){let r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(e,l,s)=>(r.push((async()=>{let r=`${l}:${s}`;return await eq(r)?await eO(r,void 0,{class:"label-icon"}):`<i class='${(0,n.sanitizeText)(e,t).replace(":"," ")}'></i>`})()),e));let l=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>l.shift()??"")}(0,r.__name)(eZ,"preprocessMarkdown"),(0,r.__name)(eF,"nonMarkdownToLines"),(0,r.__name)(eD,"markdownToLines"),(0,r.__name)(eH,"nonMarkdownToHTML"),(0,r.__name)(eN,"markdownToHTML"),(0,r.__name)(eW,"splitTextToChars"),(0,r.__name)(eQ,"splitWordToFitWidth"),(0,r.__name)(eG,"splitWordToFitWidthRecursion"),(0,r.__name)(eU,"splitLineToFitWidth"),(0,r.__name)(eK,"splitLineToFitWidthRecursion"),(0,r.__name)(eX,"applyStyle"),(0,r.__name)(eV,"addHtmlSpan"),(0,r.__name)(eY,"createTspan"),(0,r.__name)(eJ,"computeWidthOfText"),(0,r.__name)(e0,"computeDimensionOfText"),(0,r.__name)(e1,"createFormattedText"),(0,r.__name)(e3,"decodeHTMLEntities"),(0,r.__name)(e2,"updateTextContentAndStyles"),(0,r.__name)(e9,"replaceIconSubstring");var e4=(0,r.__name)(async(e,l="",{style:s="",isTitle:i=!1,classes:a="",useHtmlLabels:o=!0,markdown:c=!0,isNode:p=!0,width:h=200,addSvgBackground:u=!1}={},g)=>{if(r.log.debug("XYZ createText",l,s,i,a,o,p,"addSvgBackground: ",u),o){let r=c?eN(l,g):eH(l),i=await e9((0,t.decodeEntities)(r),g),o=l.replace(/\\\\/g,"\\"),f={isNode:p,label:(0,n.hasKatex)(l)?o:i,labelStyle:s.replace("fill:","color:")};return await eV(e,f,h,a,u,g)}{let n=(0,t.decodeEntities)(l.replace(/<br\s*\/?>/g,"<br/>")),r=e1(h,e,c?eD(n.replace("<br>","<br/>"),g):eF(n),!!l&&u,!p);if(p){/stroke:/.exec(s)&&(s=s.replace("stroke:","lineColor:"));let e=s.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,x.select)(r).attr("style",e)}else{let e=s.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");(0,x.select)(r).select("rect").attr("style",e.replace(/background:/g,"fill:"));let t=s.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,x.select)(r).select("text").attr("style",t)}return i?(0,x.select)(r).selectAll("tspan.text-outer-tspan").classed("title-row",!0):(0,x.select)(r).selectAll("tspan.text-outer-tspan").classed("row",!0),r}},"createText");e.s(["computeDimensionOfText",0,e0,"createText",0,e4,"getIconSVG",0,eO,"registerIconPacks",0,ej,"unknownIcon",0,eL],864421)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,313488,333259,e=>{"use strict";var t=e.i(586108),s=e.i(583093);e.s(["useOrganization",0,function(e){let n=(0,t.useStigmer)(),{data:r,isLoading:a,isRefetching:i,error:o,refetch:g}=(0,s.useFetch)(e?()=>n.organization.get(e):null,[e,n],null);return{organization:r,isLoading:a,isRefetching:i,error:o,refetch:g}}],313488);var n=e.i(271645),r=e.i(326283);e.s(["useUpdateOrganization",0,function(){let e=(0,t.useStigmer)(),[s,a]=(0,n.useState)(!1),[i,o]=(0,n.useState)(null),g=(0,n.useCallback)(()=>o(null),[]);return{update:(0,n.useCallback)(async t=>{a(!0),o(null);try{return await e.organization.update(t)}catch(e){throw o((0,r.toError)(e)),e}finally{a(!1)}},[e]),isUpdating:s,error:i,clearError:g}}],333259)},154330,121680,e=>{"use strict";var t=e.i(843476),s=e.i(610595),n=e.i(934197),r=e.i(379410);e.s(["MemoryEnabledRow",0,function({id:e,checked:a,onToggle:i,saving:o,readOnly:g=!1,error:d,helperText:l}){let c=`${e}-title`,u=`${e}-description`;return(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-start stg:justify-between stg:gap-3",children:[(0,t.jsxs)("div",{className:"stg:min-w-0 stg:flex-1",children:[(0,t.jsx)("span",{id:c,className:"stg:block stg:text-xs stg:font-medium stg:text-foreground",children:"Memory"}),(0,t.jsx)("p",{id:u,className:"stg:text-[0.65rem] stg:leading-snug stg:text-muted-foreground",children:l})]}),(0,t.jsxs)("span",{className:"stg:flex stg:shrink-0 stg:items-center stg:gap-1.5",children:[o&&(0,t.jsx)(r.SpinnerIcon,{size:12}),(0,t.jsx)(n.Switch,{id:e,checked:a,onCheckedChange:i,disabled:o||g,"aria-labelledby":c,"aria-describedby":u})]})]}),d&&(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-destructive",role:"alert",children:(0,s.getUserMessage)(d)})]})}],154330);var a=e.i(893976);e.s(["StandingContextField",0,function({id:e,value:s,onChange:n,disabled:r,readOnly:i,placeholder:o,helperText:g}){let d=2e3-s.length;return(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsx)("label",{htmlFor:e,className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Standing context"}),(0,t.jsx)("textarea",{id:e,value:s,onChange:e=>n(e.target.value),maxLength:2e3,rows:6,disabled:r,readOnly:i,placeholder:i?void 0:o,className:(0,a.cn)("stg:w-full stg:resize-y stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50",i&&"stg:bg-muted-subtle stg:text-muted-foreground")}),g&&(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:g}),!i&&d<=200&&(0,t.jsxs)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:[d," characters left"]})]})}],121680)},560555,e=>{"use strict";var t=e.i(843476),s=e.i(271645),n=e.i(893976),r=e.i(610595),a=e.i(785767),i=e.i(313488),o=e.i(333259),g=e.i(981922),d=e.i(154330),l=e.i(121680),c=e.i(379410);function u({orgId:e,onUpdated:m,className:x}){let p=(0,s.useId)(),{organization:h,isLoading:b,error:f,refetch:y}=(0,i.useOrganization)(e||null),{update:v,isUpdating:j,error:N,clearError:w}=(0,o.useUpdateOrganization)(),{update:z,isUpdating:C,error:S}=(0,o.useUpdateOrganization)(),{allowed:k}=(0,g.useCheckPermission)(e?{kind:"organization",id:e}:null,"can_edit"),[O,U]=(0,s.useState)(""),T=h?.spec?.preferences?.standingContext??"";(0,s.useEffect)(()=>{h&&U(h.spec?.preferences?.standingContext??"")},[h]);let E=(0,s.useMemo)(()=>O.trim()!==T,[O,T]),I=k&&E&&!j,M=(0,s.useCallback)(()=>{U(T),w()},[T,w]),P=(0,s.useCallback)(async e=>{if(e.preventDefault(),I&&h){w();try{let e=(0,a.toOrganizationUpdateInput)(h),t=await v({...e,preferences:{...e.preferences,standingContext:O.trim()||void 0}});y(),m?.(t)}catch{}}},[I,h,O,v,w,y,m]),R=(0,s.useCallback)(async e=>{if(h)try{let t=(0,a.toOrganizationUpdateInput)(h),s=await z({...t,preferences:{...t.preferences,memoryEnabled:e||void 0}});y(),m?.(s)}catch{}},[h,z,y,m]);return b&&!h?(0,t.jsxs)("div",{className:(0,n.cn)("stg:space-y-4",x),"aria-busy":"true","aria-label":"Loading organization preferences",children:[(0,t.jsx)("div",{className:"stg:bg-muted-subtle stg:h-28 stg:animate-pulse stg:rounded"}),(0,t.jsx)("div",{className:"stg:bg-muted-subtle stg:h-8 stg:w-32 stg:animate-pulse stg:rounded"})]}):f?(0,t.jsxs)("div",{className:(0,n.cn)("stg:space-y-3",x),role:"alert",children:[(0,t.jsx)("p",{className:"stg:text-destructive stg:text-sm",children:(0,r.getUserMessage)(f)}),(0,t.jsx)("button",{type:"button",onClick:y,className:(0,n.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-xs stg:font-medium","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover"),children:"Retry"})]}):h?(0,t.jsxs)("form",{onSubmit:P,className:(0,n.cn)("stg:space-y-4",x),children:[(0,t.jsx)(l.StandingContextField,{id:`${p}-standing-context`,value:O,onChange:U,disabled:j,readOnly:!k,placeholder:"e.g. We deploy to us-east-1. Our stack is Go and TypeScript. Prefer concise answers.",helperText:"Shared with agents as background context — not instructions. Applies to executions started by signed-in members of this organization and is visible on their execution records."}),(0,t.jsx)(d.MemoryEnabledRow,{id:`${p}-memory-enabled`,checked:h.spec?.preferences?.memoryEnabled??!1,onToggle:e=>void R(e),saving:C,readOnly:!k,error:S,helperText:"Allow agents to remember confirmed facts about members of this organization. Each member must also turn memory on in their own account preferences; once a member has many memories, each conversation recalls their most relevant ones, shown on the execution. Changes apply immediately."}),!k&&(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:"Only organization admins can edit these preferences."}),N&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-[0.65rem]",role:"alert",children:(0,r.getUserMessage)(N)}),k&&(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsxs)("button",{type:"submit",disabled:!I,className:(0,n.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:px-3 stg:py-1.5 stg:text-xs stg:font-medium","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:pointer-events-none stg:disabled:opacity-40"),children:[j&&(0,t.jsx)(c.SpinnerIcon,{size:12}),"Save changes"]}),E&&!j&&(0,t.jsx)("button",{type:"button",onClick:M,className:(0,n.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-xs","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover"),children:"Discard"})]})]}):null}var m=e.i(297629);e.s(["OrgPreferencesSection",0,function(){let e=(0,s.useId)(),{activeOrg:n}=(0,m.useOrg)(),r=n?.metadata?.id??"";return(0,t.jsxs)("section",{"aria-labelledby":e,children:[(0,t.jsx)("h2",{id:e,className:"stg:text-foreground stg:mb-1 stg:text-sm stg:font-semibold",children:"Organization Preferences"}),(0,t.jsx)("p",{className:"stg:text-muted-foreground stg:mb-6 stg:text-xs",children:"Standing context shared with agents on every execution run by this organization's members."}),r?(0,t.jsx)(u,{orgId:r}):(0,t.jsx)("p",{className:"stg:text-muted-foreground stg:py-4 stg:text-center stg:text-xs",children:"Select an organization to view its preferences."})]})}],560555)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,774079,901501,t=>{"use strict";var e=t.i(843476),s=t.i(893976);t.s(["RedactedSecretsNotice",0,function({className:t}){return(0,e.jsxs)("p",{className:(0,s.cn)("stg:rounded-md stg:border stg:border-border stg:bg-muted stg:px-3 stg:py-2 stg:text-xs stg:text-muted-foreground",t),children:["Secret values are shown as ",(0,e.jsx)("code",{className:"stg:font-mono",children:"***REDACTED***"}),". Applying keeps the stored secrets; replace a marker to set a new value."]})}],774079),t.s(["containsRedactedSecrets",0,function(t){return t.includes("***REDACTED***")}],901501)},616629,t=>{"use strict";var e=t.i(843476),s=t.i(271645),r=t.i(893976),n=t.i(468806),i=t.i(610595),a=t.i(846696),g=t.i(774079),l=t.i(901501),o=t.i(864652),c=t.i(590745),d=t.i(586108),u=t.i(326283);let x=(0,s.lazy)(()=>t.A(573374).then(t=>({default:t.YamlEditor})));function m({label:t="Loading editor…"}){return(0,e.jsx)("div",{className:"stg:flex stg:h-80 stg:items-center stg:justify-center stg:rounded-md stg:border stg:border-border stg:bg-muted stg:text-sm stg:text-muted-foreground",children:t})}t.s(["EditResourceYamlDialog",0,function({open:t,onOpenChange:f,resource:p,onApplied:b}){let h=function({resource:t}){let e=(0,d.useStigmer)(),r=(0,s.useMemo)(()=>t?(0,c.serializeManifest)(t):"",[t]),[n,i]=(0,s.useState)(r),[a,g]=(0,s.useState)(!1),[x,m]=(0,s.useState)(!1),[f,p]=(0,s.useState)(null),[b,h]=(0,s.useState)(null);(0,s.useEffect)(()=>{a||i(r)},[r,a]);let v=(0,s.useCallback)(t=>{i(t),g(t!==r)},[r]),j=(0,s.useCallback)(()=>{i(r),g(!1),p(null)},[r]),y=(0,s.useCallback)(()=>p(null),[]),k=(0,s.useMemo)(()=>t&&r?(0,o.parseManifest)(r)[0].handler.yamlKind:null,[t,r]),N=(0,s.useMemo)(()=>{let t;if(!n.trim())return{status:"empty"};try{t=(0,o.parseManifest)(n)}catch(t){return{status:"invalid",message:(0,u.toError)(t).message}}if(t.length>1)return{status:"invalid",message:"This editor applies a single resource. Remove the extra documents, or use Apply YAML in the Library for multi-document manifests."};let e=t[0];return null!==k&&e.handler.yamlKind!==k?{status:"invalid",message:`The document's kind changed from ${k} to ${e.handler.yamlKind}. To apply a different resource kind, use Apply YAML in the Library instead.`}:{status:"valid",document:e}},[n,k]),C=(0,s.useRef)(0);(0,s.useEffect)(()=>{if("valid"!==N.status)return void h(null);let{document:t}=N,s=++C.current;h(null);let r=setTimeout(async()=>{let r;try{let s=await e.manifest.getByReference(t.handler.yamlKind,t.org,t.slug);r=null!==s?"update":"create"}catch{r="unknown"}C.current===s&&h({action:r,slug:t.slug})},400);return()=>clearTimeout(r)},[N,e]);let w=(0,s.useCallback)(async()=>{if("valid"!==N.status)return null;m(!0),p(null);try{let t=await e.manifest.apply(N.document);return g(!1),t}catch(t){throw p((0,u.toError)(t)),t}finally{m(!1)}},[N,e]),M=(0,s.useMemo)(()=>(0,l.containsRedactedSecrets)(n),[n]);return(0,s.useMemo)(()=>({yaml:n,setYaml:v,isDirty:a,validation:N,target:b,hasRedactedSecrets:M,apply:w,isApplying:x,error:f,clearError:y,reset:j}),[n,v,a,N,b,M,w,x,f,y,j])}({resource:p}),{reset:v}=h;(0,s.useEffect)(()=>{t&&v()},[t,v]);let j=(0,s.useCallback)(async()=>{try{let t=await h.apply();if(!t)return;a.toast.success(`${t.displayName} "${t.name}" applied`),f(!1),b?.(t)}catch{}},[h,f,b]),y="valid"===h.validation.status&&h.isDirty&&!h.isApplying;return(0,e.jsx)(n.DialogShell,{open:t,onOpenChange:f,width:"3xl","aria-label":"Edit YAML",children:(0,e.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-4 stg:p-6",children:[(0,e.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-1",children:[(0,e.jsx)("h3",{className:"stg:text-base stg:font-semibold stg:text-foreground",children:"Edit YAML"}),(0,e.jsx)("p",{className:"stg:text-sm stg:text-muted-foreground",children:"Edit the resource definition and apply. Changes are validated against the resource schema as you type."})]}),p?(0,e.jsx)(s.Suspense,{fallback:(0,e.jsx)(m,{}),children:(0,e.jsx)(x,{value:h.yaml,onChange:h.setYaml,className:"stg:h-80"})}):(0,e.jsx)(m,{label:"Loading resource…"}),h.hasRedactedSecrets&&(0,e.jsx)(g.RedactedSecretsNotice,{}),"invalid"===h.validation.status&&(0,e.jsx)("div",{role:"alert",className:"stg:rounded-md stg:border stg:border-destructive stg:bg-card stg:px-3 stg:py-2.5 stg:text-sm stg:text-destructive",children:h.validation.message}),h.error&&(0,e.jsxs)("div",{role:"alert",className:"stg:flex stg:items-start stg:gap-3 stg:rounded-md stg:border stg:border-destructive stg:bg-card stg:px-3 stg:py-2.5",children:[(0,e.jsx)("p",{className:"stg:flex-1 stg:text-sm stg:text-destructive",children:(0,i.getUserMessage)(h.error)}),(0,e.jsxs)("div",{className:"stg:flex stg:shrink-0 stg:items-center stg:gap-2",children:[(0,e.jsx)("button",{type:"button",onClick:j,disabled:"valid"!==h.validation.status||h.isApplying,className:(0,r.cn)("stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2 stg:py-1 stg:text-xs stg:font-medium stg:text-foreground","stg:hover:bg-accent stg:hover:text-accent-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:"Try again"}),(0,e.jsx)("button",{type:"button",onClick:h.clearError,"aria-label":"Dismiss error",className:(0,r.cn)("stg:rounded-md stg:px-2 stg:py-1 stg:text-xs stg:font-medium stg:text-muted-foreground","stg:hover:bg-accent stg:hover:text-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring"),children:"Dismiss"})]})]}),(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between stg:gap-3",children:[(0,e.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground","aria-live":"polite",children:function(t,e,s){if("valid"!==t)return"";if(!e)return"No changes yet.";if(null===s)return"Checking what applying will do…";switch(s.action){case"update":return`Applying will update ${s.slug}.`;case"create":return`Applying will create ${s.slug} — the name or slug changed.`;case"unknown":return`Applying will create or update ${s.slug}.`}}(h.validation.status,h.isDirty,h.target)}),(0,e.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,e.jsx)("button",{type:"button",onClick:()=>f(!1),disabled:h.isApplying,className:(0,r.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:border stg:border-input stg:bg-background stg:text-foreground","stg:hover:bg-accent stg:hover:text-accent-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:"Cancel"}),(0,e.jsx)("button",{type:"button",onClick:j,disabled:!y,className:(0,r.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:h.isApplying?"Applying…":"Apply changes"})]})]})]})})}],616629)},476007,t=>{"use strict";var e=t.i(843476),s=t.i(271645),r=t.i(610595),n=t.i(893976);let i={auth:"Authentication required",permission:"Access denied","not-found":"Not found",validation:"Invalid request",server:"Server error",unavailable:"Service unavailable",cancelled:"Request cancelled",unknown:"Something went wrong"};function a({className:t}){return(0,e.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:[(0,e.jsx)("path",{d:"M7.13 2.5a1 1 0 0 1 1.74 0l5.5 9.5A1 1 0 0 1 13.5 13.5h-11a1 1 0 0 1-.87-1.5l5.5-9.5z"}),(0,e.jsx)("path",{d:"M8 6v3"}),(0,e.jsx)("circle",{cx:"8",cy:"11",r:"0.5",fill:"currentColor",stroke:"none"})]})}function g({className:t}){return(0,e.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:[(0,e.jsx)("path",{d:"M8 1.5l5 2v4c0 3.5-2.5 5.5-5 6.5-2.5-1-5-3-5-6.5v-4l5-2z"}),(0,e.jsx)("path",{d:"M6 6.5l4 4M10 6.5l-4 4"})]})}function l({className:t}){return(0,e.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:(0,e.jsx)("path",{d:"M4 6l4 4 4-4"})})}function o({className:t}){return(0,e.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:[(0,e.jsx)("path",{d:"M2 6.5h4v-4"}),(0,e.jsx)("path",{d:"M3.5 11.5a5.5 5.5 0 1 0 .5-6l-2 1"})]})}t.s(["ErrorMessage",0,function({error:t,title:c,retry:d,className:u}){let[x,m]=(0,s.useState)(!1);if(!t)return null;let f=(0,r.classifyError)(t),p=(0,r.getUserMessage)(t),b=(0,r.getRpcMetadata)(t),h=(0,r.isRetryableError)(t);return(0,e.jsx)("div",{role:"alert",className:(0,n.cn)("stg:bg-destructive-subtle stg:border-destructive/20 stg:text-destructive stg:rounded-lg stg:border stg:p-4",u),children:(0,e.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-3",children:["auth"===f||"permission"===f?(0,e.jsx)(g,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}):(0,e.jsx)(a,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}),(0,e.jsxs)("div",{className:"stg:min-w-0 stg:flex-1 stg:space-y-1",children:[(0,e.jsx)("p",{className:"stg:text-sm stg:font-medium",children:c??i[f]}),(0,e.jsx)("p",{className:"stg:text-destructive-muted stg:text-sm",children:p}),b&&(0,e.jsxs)("div",{className:"stg:pt-1",children:[(0,e.jsxs)("button",{type:"button",onClick:()=>m(t=>!t),className:"stg:text-destructive-muted stg:hover:text-destructive-muted stg:inline-flex stg:items-center stg:gap-1 stg:text-xs stg:transition-colors",children:[(0,e.jsx)(l,{className:(0,n.cn)("stg:size-3 stg:transition-transform",x&&"stg:rotate-180")}),"Technical details"]}),x&&(0,e.jsxs)("dl",{className:"stg:text-destructive-muted stg:mt-1.5 stg:space-y-0.5 stg:font-mono stg:text-xs",children:[(0,e.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,e.jsx)("dt",{className:"stg:shrink-0",children:"Method:"}),(0,e.jsx)("dd",{className:"stg:truncate",children:b.method})]}),(0,e.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,e.jsx)("dt",{className:"stg:shrink-0",children:"Path:"}),(0,e.jsx)("dd",{className:"stg:truncate",children:b.path})]})]})]})]}),d&&h&&(0,e.jsxs)("button",{type:"button",onClick:d,className:(0,n.cn)("stg:inline-flex stg:shrink-0 stg:items-center stg:gap-1.5 stg:rounded-md stg:border stg:px-2.5 stg:py-1.5 stg:text-xs stg:font-medium","stg:border-destructive/20 stg:text-destructive stg:hover:bg-destructive-subtle","stg:transition-colors"),children:[(0,e.jsx)(o,{className:"stg:size-3"}),"Retry"]})]})})}])},310057,t=>{"use strict";var e=t.i(843476),s=t.i(271645);let r=(0,s.createContext)(null);t.s(["LibraryBreadcrumbProvider",0,function({children:t}){let[n,i]=(0,s.useState)(null),a=(0,s.useCallback)(t=>i(t),[]),g=(0,s.useMemo)(()=>({label:n,setLabel:a}),[n,a]);return(0,e.jsx)(r.Provider,{value:g,children:t})},"useBreadcrumbLabel",0,function(){return(0,s.useContext)(r)?.label??null},"useBreadcrumbOverride",0,function(){let t=(0,s.useContext)(r),e=(0,s.useCallback)(t=>{},[]);return{setLabel:t?.setLabel??e}}])},927056,t=>{"use strict";var e=t.i(843476),s=t.i(271645),r=t.i(893976);t.s(["Tabs",0,function({tabs:t,activeTab:n,onTabChange:i,children:a,"aria-label":g,className:l}){let o=(0,s.useId)(),c=(0,s.useRef)(new Map),d=t=>`${o}-tab-${t}`,u=t=>`${o}-panel-${t}`,x=(0,s.useCallback)(t=>{c.current.get(t)?.focus(),i(t)},[i]),m=(0,s.useCallback)(e=>{let s=t.findIndex(t=>t.id===n);if(-1===s)return;let r=null;switch(e.key){case"ArrowRight":r=(s+1)%t.length;break;case"ArrowLeft":r=(s-1+t.length)%t.length;break;case"Home":r=0;break;case"End":r=t.length-1;break;default:return}e.preventDefault(),x(t[r].id)},[t,n,x]);return(0,e.jsxs)("div",{className:(0,r.cn)("stg:flex stg:flex-col",l),children:[(0,e.jsx)("div",{role:"tablist","aria-label":g,onKeyDown:m,className:"stg:flex stg:border-b stg:border-border",children:t.map(t=>{let s=t.id===n;return(0,e.jsxs)("button",{ref:e=>{e?c.current.set(t.id,e):c.current.delete(t.id)},id:d(t.id),role:"tab",type:"button","aria-selected":s,"aria-controls":u(t.id),tabIndex:s?0:-1,onClick:()=>i(t.id),"data-cursor-target":`tab-${t.id}`,className:(0,r.cn)("stg:relative stg:inline-flex stg:items-center stg:gap-1.5 stg:px-3 stg:py-2 stg:text-xs stg:font-medium stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:focus-visible:ring-offset-1",s?"stg:text-foreground":"stg:text-muted-foreground stg:hover:text-foreground"),children:[t.icon,t.label,null!=t.badge&&t.badge>0&&(0,e.jsx)("span",{"aria-hidden":"true",className:(0,r.cn)("stg:inline-flex stg:min-w-[1.25rem] stg:items-center stg:justify-center stg:rounded-full stg:px-1 stg:py-px stg:text-[10px] stg:font-medium stg:leading-none",s?"stg:bg-primary-subtle stg:text-primary":"stg:bg-muted stg:text-muted-foreground"),children:t.badge}),s&&(0,e.jsx)("span",{className:"stg:absolute stg:inset-x-0 stg:-bottom-px stg:h-0.5 stg:bg-primary","aria-hidden":"true"})]},t.id)})}),(0,e.jsx)("div",{id:u(n),role:"tabpanel","aria-labelledby":d(n),tabIndex:0,className:"stg:min-h-0 stg:flex-1 stg:pt-4 stg:focus-visible:outline-none",children:a})]})}])},266442,t=>{"use strict";var e=t.i(843476),s=t.i(893976),r=t.i(188482);let n={ready:"Ready",running:"Running",pending:"Pending",degraded:"Degraded",failed:"Failed",disabled:"Disabled",draft:"Draft"};t.s(["StatusBadge",0,function({phase:t,label:i,tooltip:a,className:g}){let l=i??n[t],o=(0,e.jsxs)("span",{className:(0,s.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-full stg:px-2 stg:py-0.5 stg:text-[11px] stg:font-medium stg:leading-none",function(t){switch(t){case"ready":return"stg:bg-[var(--stgm-status-ready-subtle)] stg:text-[var(--stgm-status-ready)]";case"running":return"stg:bg-[var(--stgm-status-running-subtle)] stg:text-[var(--stgm-status-running)]";case"pending":return"stg:bg-[var(--stgm-status-pending-subtle)] stg:text-[var(--stgm-status-pending)]";case"degraded":return"stg:bg-[var(--stgm-status-degraded-subtle)] stg:text-[var(--stgm-status-degraded)]";case"failed":return"stg:bg-[var(--stgm-status-failed-subtle)] stg:text-[var(--stgm-status-failed)]";case"disabled":return"stg:bg-[var(--stgm-status-disabled-subtle)] stg:text-[var(--stgm-status-disabled)]";case"draft":return"stg:bg-[var(--stgm-status-draft-subtle)] stg:text-[var(--stgm-status-draft)]"}}(t),g),children:[(0,e.jsx)("span",{className:(0,s.cn)("stg:size-1.5 stg:shrink-0 stg:rounded-full",function(t){switch(t){case"ready":return"stg:bg-[var(--stgm-status-ready)]";case"running":return"stg:bg-[var(--stgm-status-running)]";case"pending":return"stg:bg-[var(--stgm-status-pending)]";case"degraded":return"stg:bg-[var(--stgm-status-degraded)]";case"failed":return"stg:bg-[var(--stgm-status-failed)]";case"disabled":return"stg:bg-[var(--stgm-status-disabled)]";case"draft":return"stg:bg-[var(--stgm-status-draft)]"}}(t)),"aria-hidden":"true"}),l]});return a?(0,e.jsxs)(r.Tooltip,{children:[(0,e.jsx)(r.TooltipTrigger,{render:(0,e.jsx)("span",{className:"stg:inline-flex"}),children:o}),(0,e.jsx)(r.TooltipContent,{side:"top",children:a})]}):o}])},154752,t=>{"use strict";var e=t.i(271645),s=t.i(846696),r=t.i(193799);t.s(["useCopyResource",0,function(){let{copy:t}=(0,r.useCopyFeedback)(),n=(0,e.useCallback)(async(e,r)=>{await t(e)?s.toast.success(`${r} copied`):s.toast.error(`Couldn't copy ${r}`)},[t]),i=(0,e.useCallback)(t=>n(t,"ID"),[n]),a=(0,e.useCallback)(t=>n(t,"Slug"),[n]),g=(0,e.useCallback)((t,e)=>n(`${t}/${e}`,"Qualified slug"),[n]);return(0,e.useMemo)(()=>({copy:n,copyId:i,copySlug:a,copyQualifiedSlug:g}),[n,i,a,g])}])},668093,652337,t=>{"use strict";var e=t.i(843476),s=t.i(893976),r=t.i(266442),n=t.i(927056),i=t.i(271645),a=t.i(845132);function g({primaryAction:t,actions:r,className:n}){let i=null!=r&&r.length>0;return t||i?(0,e.jsxs)("div",{className:(0,s.cn)("stg:flex stg:items-center stg:gap-2",n),children:[t&&(0,e.jsxs)("button",{type:"button",onClick:t.onAction,disabled:t.disabled,className:(0,s.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:[t.icon,t.label]}),i&&(0,e.jsx)(l,{actions:r})]}):null}function l({actions:t}){var s;let r=(s=t,(0,i.useMemo)(()=>{let t=new Map;for(let e of s){let s=e.group??"__default",r=t.get(s);r?r.push(e):t.set(s,[e])}return Array.from(t.entries()).map(([t,e])=>({key:t,items:e}))},[s]));return(0,e.jsxs)(a.ActionMenu,{children:[(0,e.jsx)(a.ActionMenu.Trigger,{"aria-label":"More actions",children:(0,e.jsx)(o,{className:"stg:size-4"})}),(0,e.jsx)(a.ActionMenu.Content,{children:r.map((t,s)=>(0,e.jsxs)(a.ActionMenu.Group,{children:[s>0&&(0,e.jsx)(a.ActionMenu.Separator,{}),t.items.map(t=>(0,e.jsx)(a.ActionMenu.Item,{icon:t.icon,shortcut:t.shortcut,variant:t.variant,disabled:t.disabled,onSelect:t.onAction,children:t.label},t.id))]},t.key))})]})}function o({className:t}){return(0,e.jsxs)("svg",{className:t,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:[(0,e.jsx)("circle",{cx:"8",cy:"3",r:"1.25"}),(0,e.jsx)("circle",{cx:"8",cy:"8",r:"1.25"}),(0,e.jsx)("circle",{cx:"8",cy:"13",r:"1.25"})]})}function c({header:t,visibilityControl:s,metaExtra:n}){let{name:i,nameElement:a,org:g,slug:l,qualifiedSlug:o,description:x,iconUrl:m,icon:f,createdAt:p,updatedAt:b,status:h,statusLabel:v}=t,j=l&&l!==i&&!o;return(0,e.jsxs)("div",{className:"stg:flex stg:min-w-0 stg:items-start stg:gap-3",children:[m?(0,e.jsx)("img",{src:m,alt:"",className:"stg:mt-0.5 stg:size-8 stg:shrink-0 stg:rounded stg:object-cover"}):f?(0,e.jsx)("span",{className:"stg:mt-1 stg:shrink-0",children:f}):null,(0,e.jsxs)("div",{className:"stg:min-w-0 stg:flex-1",children:[(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[a??(0,e.jsx)("h2",{className:"stg:truncate stg:text-lg stg:font-semibold stg:text-foreground",children:i}),j&&(0,e.jsx)("code",{className:"stg:shrink-0 stg:rounded stg:bg-muted stg:px-1.5 stg:py-0.5 stg:text-xs stg:font-medium stg:text-muted-foreground",children:l}),h&&(0,e.jsx)(r.StatusBadge,{phase:h,label:v}),s]}),o&&(0,e.jsx)("span",{className:"stg:mt-0.5 stg:block stg:truncate stg:font-mono stg:text-xs stg:text-muted-foreground",children:o}),(0,e.jsxs)("div",{className:"stg:mt-0.5 stg:flex stg:flex-wrap stg:items-center stg:gap-x-1.5 stg:text-xs stg:text-muted-foreground",children:[g&&(0,e.jsx)("span",{children:g}),n,p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{}),(0,e.jsxs)("span",{children:["Created ",u(p)]})]}),b&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{}),(0,e.jsxs)("span",{children:["Updated ",u(b)]})]})]}),x&&(0,e.jsx)("p",{className:"stg:mt-2 stg:text-sm stg:text-muted-foreground",children:x})]})]})}function d(){return(0,e.jsx)("span",{className:"stg:shrink-0","aria-hidden":"true",children:"·"})}function u(t){return t.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function x({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M11.5 1.5a2.121 2.121 0 0 1 3 3L5 14l-4 1 1-4Z"})})}t.s(["ResourceDetailShell",0,function({header:t,visibilityControl:r,headerMetaExtra:i,headerBanner:a,primaryAction:l,actions:o,tabs:d,activeTab:u,onTabChange:x,tabsAriaLabel:m,children:f,className:p}){let b=null!=d&&d.length>0;return(0,e.jsxs)("div",{className:(0,s.cn)("stg:flex stg:flex-col stg:gap-6",p),children:[a,(0,e.jsxs)("div",{className:"stg:flex stg:items-start stg:justify-between stg:gap-4",children:[(0,e.jsx)(c,{header:t,visibilityControl:r,metaExtra:i}),(0,e.jsx)(g,{primaryAction:l,actions:o,className:"stg:shrink-0"})]}),b&&u&&x?(0,e.jsx)(n.Tabs,{tabs:d,activeTab:u,onTabChange:x,"aria-label":m,children:f}):f]})}],668093),t.s(["Section",0,function({title:t,count:r,headerActions:n,onEdit:i,scrollTarget:a,children:g,className:l}){return(0,e.jsxs)("section",{className:l,"data-scroll-target":a,children:[(0,e.jsxs)("div",{className:"stg:mb-2 stg:flex stg:items-center stg:gap-2",children:[(0,e.jsx)("h3",{className:"stg:text-xs stg:font-medium stg:uppercase stg:tracking-wider stg:text-muted-foreground",children:t}),null!=r&&r>0&&(0,e.jsx)("span",{className:"stg:inline-flex stg:size-5 stg:items-center stg:justify-center stg:rounded-full stg:bg-muted stg:text-[10px] stg:font-semibold stg:text-muted-foreground",children:r}),(n||i)&&(0,e.jsxs)("div",{className:"stg:ml-auto stg:flex stg:items-center stg:gap-1",children:[n,i&&(0,e.jsx)("button",{type:"button",onClick:i,"aria-label":`Edit ${t.toLowerCase()}`,className:(0,s.cn)("stg:inline-flex stg:size-6 stg:items-center stg:justify-center stg:rounded-md stg:text-muted-foreground","stg:hover:bg-accent-hover stg:hover:text-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:transition-colors"),children:(0,e.jsx)(x,{className:"stg:size-3.5"})})]})]}),(0,e.jsx)("div",{className:"stg:overflow-hidden stg:rounded-lg stg:border stg:border-border",children:g})]})}],652337)},261722,t=>{"use strict";var e=t.i(843476),s=t.i(271645),r=t.i(893976);function n({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M11.5 1.5a2.121 2.121 0 0 1 3 3L5 14l-4 1 1-4Z"})})}function i(){return(0,e.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:"stg:animate-spin","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M8 2a6 6 0 1 0 6 6"})})}t.s(["InlineEditTextarea",0,function({value:t,onSave:a,placeholder:g="Click to edit",validate:l,minRows:o=3,disabled:c,isSaving:d,error:u,className:x}){let[m,f]=(0,s.useState)(!1),[p,b]=(0,s.useState)(t),[h,v]=(0,s.useState)(null),j=(0,s.useRef)(null);(0,s.useEffect)(()=>{m&&(b(t),v(null),requestAnimationFrame(()=>{let t=j.current;t&&(t.focus(),t.selectionStart=t.value.length)}))},[m,t]),(0,s.useEffect)(()=>{let t=j.current;t&&(t.style.height="auto",t.style.height=`${t.scrollHeight}px`)},[p,m]);let y=(0,s.useCallback)(async()=>{if(p===t)return void f(!1);if(l){let t=l(p);if(t)return void v(t)}await a(p)&&f(!1)},[p,t,l,a]),k=(0,s.useCallback)(()=>{f(!1),b(t),v(null)},[t]),N=(0,s.useCallback)(t=>{"Enter"===t.key&&(t.ctrlKey||t.metaKey)?(t.preventDefault(),y()):"Escape"===t.key&&k()},[y,k]),C=h||u;return c||!m?(0,e.jsx)("div",{className:(0,r.cn)("stg:group/inline-edit",x),children:(0,e.jsx)("button",{type:"button",onClick:()=>{c||f(!0)},disabled:c,className:(0,r.cn)("stg:w-full stg:rounded-md stg:px-2 stg:py-1.5 stg:text-left stg:transition-colors",!c&&"stg:hover:bg-accent-hover stg:cursor-pointer",c&&"stg:cursor-default","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-inset stg:focus-visible:ring-ring"),children:(0,e.jsxs)("div",{className:"stg:flex stg:items-start stg:justify-between stg:gap-2",children:[(0,e.jsx)("pre",{className:(0,r.cn)("stg:min-w-0 stg:whitespace-pre-wrap stg:break-words stg:font-mono stg:text-sm stg:text-foreground",!t&&"stg:text-muted-foreground stg:italic stg:font-sans"),children:t||g}),!c&&(0,e.jsx)(n,{className:"stg:mt-0.5 stg:size-3 stg:shrink-0 stg:text-muted-foreground stg:opacity-0 stg:transition-opacity stg:group-hover/inline-edit:opacity-100"})]})})}):(0,e.jsxs)("div",{className:(0,r.cn)("stg:flex stg:flex-col stg:gap-1.5",x),children:[(0,e.jsx)("textarea",{ref:j,value:p,onChange:t=>{b(t.target.value),v(null)},onKeyDown:N,disabled:d,placeholder:g,rows:o,className:(0,r.cn)("stg:w-full stg:resize-y stg:rounded-md stg:border stg:border-border stg:bg-input-bg stg:px-3 stg:py-2 stg:font-mono stg:text-sm stg:text-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring","stg:disabled:opacity-50",C&&"stg:border-destructive")}),(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between",children:[(0,e.jsx)("span",{className:"stg:text-[10px] stg:text-muted-foreground",children:d?"Saving...":"Ctrl+Enter to save, Escape to cancel"}),(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-1.5",children:[(0,e.jsx)("button",{type:"button",onClick:k,disabled:d,className:(0,r.cn)("stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium","stg:border stg:border-border stg:bg-background stg:text-foreground stg:hover:bg-accent stg:hover:text-accent-foreground","stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:"Cancel"}),(0,e.jsxs)("button",{type:"button",onClick:y,disabled:d,className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1 stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:[d&&(0,e.jsx)(i,{}),"Save"]})]})]}),C&&(0,e.jsx)("p",{className:"stg:px-1 stg:text-xs stg:text-destructive",role:"alert",children:C})]})}])},582321,t=>{"use strict";var e=t.i(271645),s=t.i(586108),r=t.i(326283),n=t.i(846696);function i(t){switch(t){case"agent":return"agent";case"skill":return"skill";case"mcpServer":return"MCP server";case"workflow":return"workflow";case"schedule":return"schedule"}}t.s(["useDeleteResource",0,function(t,a,g){let l=(0,s.useStigmer)(),[o,c]=(0,e.useState)(!1),[d,u]=(0,e.useState)(null),x=(0,e.useCallback)(async()=>{if(a){c(!0),u(null);try{switch(t){case"agent":await l.agent.delete(a);break;case"skill":await l.skill.delete(a);break;case"mcpServer":await l.mcpServer.delete({resourceId:a});break;case"workflow":await l.workflow.delete(a);break;case"schedule":await l.schedule.delete(a)}n.toast.success(g?`${g} deleted`:`${i(t)} deleted`)}catch(s){let e=(0,r.toError)(s);throw u(e),n.toast.error(`Failed to delete ${i(t)}`),e}finally{c(!1)}}},[l,t,a,g]);return(0,e.useMemo)(()=>({deleteResource:x,isDeleting:o,error:d}),[x,o,d])}])},484763,t=>{"use strict";var e=t.i(843476),s=t.i(271645),r=t.i(981922),n=t.i(213149);t.s(["useManageAccess",0,function({resource:t,visibility:i,extraSection:a,label:g="Manage access"}){let[l,o]=(0,s.useState)(!1),{allowed:c}=(0,r.useCheckPermission)(t?{kind:t.kindString,id:t.id}:null,"can_view_access"),d=(0,s.useCallback)(()=>o(!0),[]);return{action:t&&c?{id:"manage-access",label:g,group:"sharing",onAction:d}:null,dialog:t?(0,e.jsx)(n.ManageAccessDialog,{open:l,onOpenChange:o,resource:t,visibility:i,extraSection:a}):null,open:d,isOpen:l}}])},352371,t=>{"use strict";var e=t.i(271645);t.i(222258);var s=t.i(967785),r=t.i(590745),n=t.i(846696),i=t.i(745176),a=t.i(193799),g=t.i(926059);t.s(["useExportResource",0,function({kind:t,resource:l}){let o=(0,e.useMemo)(()=>l?"Workflow"===t?(0,g.serializeWorkflowYaml)(l):(0,r.serializeManifest)(l):null,[t,l]),c=(0,e.useMemo)(()=>o?JSON.stringify((0,s.parse)(o),null,2):null,[o]),d=(0,e.useMemo)(()=>l&&(l.metadata?.slug||l.metadata?.name)||"resource",[l]),{copy:u}=(0,a.useCopyFeedback)(),x=(0,e.useCallback)(async()=>{o&&(await u(o)?n.toast.success("YAML copied to clipboard"):n.toast.error("Couldn't copy YAML"))},[u,o]),m=(0,e.useCallback)(async()=>{c&&(await u(c)?n.toast.success("JSON copied to clipboard"):n.toast.error("Couldn't copy JSON"))},[u,c]),f=(0,e.useCallback)(()=>{o&&(0,i.downloadTextFile)(o,`${d}.yaml`,"text/yaml")},[o,d]),p=(0,e.useCallback)(()=>{c&&(0,i.downloadTextFile)(c,`${d}.json`,"application/json")},[c,d]);return(0,e.useMemo)(()=>({copyYaml:x,copyJson:m,downloadYaml:f,downloadJson:p,yaml:o,json:c}),[x,m,f,p,o,c])}])},52595,t=>{"use strict";var e=t.i(843476),s=t.i(271645),r=t.i(893976);function n({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M8 3v10M3 8h10"})})}function i({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M2 4h12M5.333 4V2.667a1.333 1.333 0 0 1 1.334-1.334h2.666a1.333 1.333 0 0 1 1.334 1.334V4M12.667 4v9.333a1.333 1.333 0 0 1-1.334 1.334H4.667a1.333 1.333 0 0 1-1.334-1.334V4"})})}function a(){return(0,e.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:"stg:animate-spin","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M8 2a6 6 0 1 0 6 6"})})}t.s(["InlineEditKeyValue",0,function({value:t,onSave:g,keyLabel:l="Key",showValue:o=!1,valueLabel:c="Value",showSecretToggle:d=!1,showOptionalToggle:u=!1,showDescription:x=!1,editing:m,onEditingChange:f,disabled:p,isSaving:b,error:h,className:v}){let[j,y]=(0,s.useState)(!1),k=m??j,N=(0,s.useCallback)(t=>{y(t),f?.(t)},[f]);(0,s.useEffect)(()=>{void 0!==m&&y(m)},[m]);let[C,w]=(0,s.useState)([...t]);(0,s.useCallback)(()=>{w([...t]),N(!0)},[t,N]);let M=(0,s.useCallback)(()=>{N(!1),w([...t])},[t,N]),S=(0,s.useCallback)(async()=>{let t=C.filter(t=>t.key.trim());await g(t)&&N(!1)},[C,g,N]),L=(0,s.useCallback)((t,e)=>{w(s=>s.map((s,r)=>r===t?{...s,...e}:s))},[]),A=(0,s.useCallback)(t=>{w(e=>e.filter((e,s)=>s!==t))},[]),E=(0,s.useCallback)(()=>{w(t=>[...t,{key:"",value:"",isSecret:!1,description:""}])},[]);return p||!k?(0,e.jsx)("div",{className:(0,r.cn)("stg:flex stg:flex-col",v),children:t.length>0?(0,e.jsx)("div",{className:"stg:flex stg:flex-col stg:divide-y stg:divide-border",children:t.map(t=>(0,e.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-3 stg:px-3 stg:py-2.5",children:[(0,e.jsx)("code",{className:"stg:shrink-0 stg:font-mono stg:text-sm stg:font-medium stg:text-foreground",children:t.key}),o&&(0,e.jsx)("span",{className:"stg:min-w-0 stg:break-all stg:font-mono stg:text-xs stg:text-muted-foreground",children:t.value}),d&&(0,e.jsx)("span",{className:"stg:shrink-0 stg:rounded stg:bg-muted stg:px-1.5 stg:py-0.5 stg:text-[10px] stg:font-medium stg:text-muted-foreground",children:t.isSecret?"secret":"config"}),u&&t.optional&&(0,e.jsx)("span",{className:"stg:shrink-0 stg:rounded stg:bg-muted stg:px-1.5 stg:py-0.5 stg:text-[10px] stg:font-medium stg:text-muted-foreground-subtle",children:"optional"}),t.description&&(0,e.jsx)("span",{className:"stg:text-xs stg:text-muted-foreground",children:t.description})]},t.key))}):(0,e.jsx)("p",{className:"stg:px-3 stg:py-3 stg:text-xs stg:text-muted-foreground stg:italic",children:"No entries"})}):(0,e.jsxs)("div",{className:(0,r.cn)("stg:flex stg:flex-col stg:gap-3",v),children:[C.map((t,s)=>(0,e.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-2 stg:rounded-md stg:border stg:border-border stg:bg-muted-faint stg:p-2.5",children:[(0,e.jsxs)("div",{className:"stg:flex stg:flex-1 stg:flex-col stg:gap-1.5",children:[(0,e.jsx)("input",{type:"text",value:t.key,onChange:t=>L(s,{key:t.target.value}),placeholder:l,className:(0,r.cn)("stg:rounded-md stg:border stg:border-border stg:bg-input-bg stg:px-2 stg:py-1 stg:font-mono stg:text-sm stg:text-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring")}),o&&(0,e.jsx)("input",{type:"text",value:t.value,onChange:t=>L(s,{value:t.target.value}),placeholder:c,className:(0,r.cn)("stg:rounded-md stg:border stg:border-border stg:bg-input-bg stg:px-2 stg:py-1 stg:font-mono stg:text-sm stg:text-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring")}),x&&(0,e.jsx)("input",{type:"text",value:t.description??"",onChange:t=>L(s,{description:t.target.value}),placeholder:"Description",className:(0,r.cn)("stg:rounded-md stg:border stg:border-border stg:bg-input-bg stg:px-2 stg:py-1 stg:text-xs stg:text-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring")}),(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-3",children:[d&&(0,e.jsxs)("label",{className:"stg:inline-flex stg:items-center stg:gap-1.5 stg:text-xs stg:text-muted-foreground stg:cursor-pointer",children:[(0,e.jsx)("input",{type:"checkbox",checked:t.isSecret??!1,onChange:t=>L(s,{isSecret:t.target.checked}),className:"stg:size-3.5 stg:rounded stg:border-border"}),"Secret"]}),u&&(0,e.jsxs)("label",{className:"stg:inline-flex stg:items-center stg:gap-1.5 stg:text-xs stg:text-muted-foreground stg:cursor-pointer",children:[(0,e.jsx)("input",{type:"checkbox",checked:t.optional??!1,onChange:t=>L(s,{optional:t.target.checked}),className:"stg:size-3.5 stg:rounded stg:border-border"}),"Optional"]})]})]}),(0,e.jsx)("button",{type:"button",onClick:()=>A(s),"aria-label":`Remove ${t.key||"entry"}`,className:(0,r.cn)("stg:mt-1 stg:inline-flex stg:size-6 stg:items-center stg:justify-center stg:rounded-md stg:text-muted-foreground","stg:hover:bg-destructive-subtle stg:hover:text-destructive","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:(0,e.jsx)(i,{className:"stg:size-3.5"})})]},s)),(0,e.jsxs)("button",{type:"button",onClick:E,className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1 stg:rounded-md stg:px-2.5 stg:py-1.5 stg:text-xs stg:font-medium","stg:border stg:border-dashed stg:border-border stg:text-muted-foreground","stg:hover:border-muted-foreground stg:hover:text-foreground stg:hover:bg-muted-subtle","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:transition-colors"),children:[(0,e.jsx)(n,{className:"stg:size-3"}),"Add entry"]}),(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-end stg:gap-1.5",children:[(0,e.jsx)("button",{type:"button",onClick:M,disabled:b,className:(0,r.cn)("stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium","stg:border stg:border-border stg:bg-background stg:text-foreground stg:hover:bg-accent","stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:"Cancel"}),(0,e.jsxs)("button",{type:"button",onClick:S,disabled:b,className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1 stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:[b&&(0,e.jsx)(a,{}),"Save changes"]})]}),h&&(0,e.jsx)("p",{className:"stg:px-1 stg:text-xs stg:text-destructive",role:"alert",children:h})]})}])},81346,t=>{"use strict";var e=t.i(843476),s=t.i(271645),r=t.i(893976);function n({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M11.5 1.5a2.121 2.121 0 0 1 3 3L5 14l-4 1 1-4Z"})})}function i({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"m3 8.5 3.5 3.5 6.5-8"})})}function a({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"m4 4 8 8M12 4l-8 8"})})}function g({className:t}){return(0,e.jsxs)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,e.jsx)("rect",{x:"2",y:"2",width:"12",height:"12",rx:"1.5"}),(0,e.jsx)("circle",{cx:"5.5",cy:"5.5",r:"1"}),(0,e.jsx)("path",{d:"m14 10.5-3-3L4 14"})]})}function l(){return(0,e.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:"stg:animate-spin","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M8 2a6 6 0 1 0 6 6"})})}t.s(["InlineEditImage",0,function({value:t,onSave:o,fallback:c,size:d="md",disabled:u,isSaving:x,error:m,className:f}){let[p,b]=(0,s.useState)(!1),[h,v]=(0,s.useState)(t),[j,y]=(0,s.useState)(null),k=(0,s.useRef)(null);(0,s.useEffect)(()=>{p&&(v(t),y(null),requestAnimationFrame(()=>k.current?.focus()))},[p,t]);let N=(0,s.useCallback)(async()=>{let e=h.trim();e===t?b(!1):e&&!function(t){try{return new URL(t),!0}catch{return!1}}(e)?y("Enter a valid URL"):await o(e)&&b(!1)},[h,t,o]),C=(0,s.useCallback)(()=>{b(!1),v(t),y(null)},[t]),w=(0,s.useCallback)(t=>{"Enter"===t.key?(t.preventDefault(),N()):"Escape"===t.key&&C()},[N,C]),M="sm"===d?"stg:size-6":"stg:size-8",S=j||m;return u||!p?(0,e.jsx)("div",{className:(0,r.cn)("stg:group/inline-edit stg:inline-flex",f),children:(0,e.jsxs)("button",{type:"button",onClick:()=>{u||b(!0)},disabled:u,className:(0,r.cn)("stg:relative stg:rounded-md stg:p-0.5 stg:transition-colors",!u&&"stg:hover:bg-accent-hover stg:cursor-pointer","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),"aria-label":"Change icon",children:[t?(0,e.jsx)("img",{src:t,alt:"",className:(0,r.cn)(M,"stg:shrink-0 stg:rounded stg:object-cover")}):c??(0,e.jsx)(g,{className:(0,r.cn)(M,"stg:text-muted-foreground")}),!u&&(0,e.jsx)("span",{className:"stg:absolute stg:-bottom-0.5 stg:-right-0.5 stg:flex stg:size-4 stg:items-center stg:justify-center stg:rounded-full stg:bg-muted stg:text-muted-foreground stg:opacity-0 stg:transition-opacity stg:group-hover/inline-edit:opacity-100",children:(0,e.jsx)(n,{className:"stg:size-2.5"})})]})}):(0,e.jsxs)("div",{className:(0,r.cn)("stg:flex stg:flex-col stg:gap-1",f),children:[(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-1.5",children:[(0,e.jsx)("input",{ref:k,type:"url",value:h,onChange:t=>{v(t.target.value),y(null)},onKeyDown:w,disabled:x,placeholder:"https://example.com/icon.png",className:(0,r.cn)("stg:flex-1 stg:rounded-md stg:border stg:border-border stg:bg-input-bg stg:px-2 stg:py-1 stg:text-sm stg:text-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring","stg:disabled:opacity-50",S&&"stg:border-destructive")}),(0,e.jsx)("button",{type:"button",onClick:N,disabled:x,"aria-label":"Save",className:(0,r.cn)("stg:inline-flex stg:size-7 stg:items-center stg:justify-center stg:rounded-md","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:x?(0,e.jsx)(l,{}):(0,e.jsx)(i,{className:"stg:size-3.5"})}),(0,e.jsx)("button",{type:"button",onClick:C,disabled:x,"aria-label":"Cancel",className:(0,r.cn)("stg:inline-flex stg:size-7 stg:items-center stg:justify-center stg:rounded-md","stg:border stg:border-border stg:bg-background stg:text-foreground stg:hover:bg-accent stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:(0,e.jsx)(a,{className:"stg:size-3.5"})}),h&&(0,e.jsx)("button",{type:"button",onClick:()=>v(""),disabled:x,"aria-label":"Clear",className:"stg:text-xs stg:text-muted-foreground stg:underline stg:decoration-muted-foreground/40 stg:underline-offset-2 stg:hover:text-foreground",children:"Clear"})]}),S&&(0,e.jsx)("p",{className:"stg:px-1 stg:text-xs stg:text-destructive",role:"alert",children:S})]})}])}]);