@claudiolabs/claudio 0.1.9 → 0.1.11

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 (814) hide show
  1. package/bin/claudio +50 -1
  2. package/dist/chunks/AgentTool-0.1.11-m06x003m.mjs +1 -0
  3. package/dist/chunks/App-0.1.11-z60c27dk.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-0.1.11-dpm879x7.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-0.1.11-kb5jvw8n.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-0.1.11-dnqj2p8g.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-0.1.11-h71pmj5p.mjs +1 -0
  8. package/dist/chunks/ClaudeInChromeOnboarding-0.1.11-vjwzqejw.mjs +1 -0
  9. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.11-0wpjjdn9.mjs +1 -0
  10. package/dist/chunks/ConsoleOAuthFlow-0.1.11-xzbcx3cw.mjs +1 -0
  11. package/dist/chunks/DiffDialog-0.1.11-k3zsm9tz.mjs +3 -0
  12. package/dist/chunks/Doctor-0.1.11-958cxvhj.mjs +1 -0
  13. package/dist/chunks/Grove-0.1.11-93bnbcec.mjs +1 -0
  14. package/dist/chunks/ITermBackend-0.1.11-xbxm144g.mjs +1 -0
  15. package/dist/chunks/InProcessTransport-0.1.11-xecmx0sw.mjs +1 -0
  16. package/dist/chunks/InvalidConfigDialog-0.1.11-vbeef1wb.mjs +1 -0
  17. package/dist/chunks/InvalidSettingsDialog-0.1.11-5bct7bny.mjs +1 -0
  18. package/dist/chunks/MigrationDialog-0.1.11-13kfzmtt.mjs +1 -0
  19. package/dist/chunks/Onboarding-0.1.11-kz5hnpx3.mjs +1 -0
  20. package/dist/chunks/ProviderManager-0.1.11-nggswmdv.mjs +1 -0
  21. package/dist/chunks/REPL-0.1.11-ctxx4039.mjs +1 -0
  22. package/dist/chunks/ResumeConversation-0.1.11-gwxzn4yg.mjs +1 -0
  23. package/dist/chunks/SnapshotUpdateDialog-0.1.11-h881m192.mjs +1 -0
  24. package/dist/chunks/TeleportProgress-0.1.11-z1ez7pce.mjs +1 -0
  25. package/dist/chunks/TeleportRepoMismatchDialog-0.1.11-pjt2g9ss.mjs +1 -0
  26. package/dist/chunks/TeleportResumeWrapper-0.1.11-9y29zset.mjs +1 -0
  27. package/dist/chunks/TmuxBackend-0.1.11-5a4ddj92.mjs +9 -0
  28. package/dist/chunks/ToolSearchTool-0.1.11-w3cgae0s.mjs +1 -0
  29. package/dist/chunks/TrustDialog-0.1.11-3dsrj239.mjs +1 -0
  30. package/dist/chunks/activeProvider-0.1.11-qrn947by.mjs +1 -0
  31. package/dist/chunks/add-dir-0.1.11-9j7tq9gk.mjs +1 -0
  32. package/dist/chunks/agents-0.1.11-26pbss9x.mjs +3 -0
  33. package/dist/chunks/agents-0.1.11-m56gfjmy.mjs +111 -0
  34. package/dist/chunks/api-0.1.11-5ygenb1h.mjs +1 -0
  35. package/dist/chunks/asciicast-0.1.11-7mkaazy8.mjs +1 -0
  36. package/dist/chunks/assistant-0.1.11-5xbar4vv.mjs +1 -0
  37. package/dist/chunks/auth-0.1.11-2363mst5.mjs +1 -0
  38. package/dist/chunks/auth-0.1.11-p47wajra.mjs +1 -0
  39. package/dist/chunks/autoMode-0.1.11-nv8vsag0.mjs +48 -0
  40. package/dist/chunks/backgroundHousekeeping-0.1.11-fy6tykxe.mjs +1 -0
  41. package/dist/chunks/branch-0.1.11-aqhrj1x2.mjs +4 -0
  42. package/dist/chunks/bridgePointer-0.1.11-wr8dfs91.mjs +1 -0
  43. package/dist/chunks/btw-0.1.11-2kks7dfd.mjs +1 -0
  44. package/dist/chunks/buddy-0.1.11-gsj76spy.mjs +3 -0
  45. package/dist/chunks/cacache-0.1.11-wtz0ca19.mjs +1 -0
  46. package/dist/chunks/cache-probe-0.1.11-pgsemwpr.mjs +21 -0
  47. package/dist/chunks/cacheStats-0.1.11-1zqq6pm7.mjs +4 -0
  48. package/dist/chunks/caches-0.1.11-vewfnrya.mjs +1 -0
  49. package/dist/chunks/chrome-0.1.11-0g5459b5.mjs +1 -0
  50. package/dist/chunks/chromeNativeHost-0.1.11-m5kskzjw.mjs +2 -0
  51. package/dist/chunks/claude-for-chrome-mcp-0.1.11-h99xhv8j.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-0.1.11-zpdtj6k8.mjs +1 -0
  53. package/dist/chunks/claudemd-0.1.11-qrr22x5b.mjs +1 -0
  54. package/dist/chunks/clear-0.1.11-c93nbam7.mjs +1 -0
  55. package/dist/chunks/clearTerminal-0.1.11-pdrc3735.mjs +1 -0
  56. package/dist/chunks/cli-0.1.11-036me3yr.mjs +2 -0
  57. package/dist/chunks/cli-0.1.11-05g86mrk.mjs +2 -0
  58. package/dist/chunks/cli-0.1.11-05ngjm8p.mjs +2 -0
  59. package/dist/chunks/cli-0.1.11-0fshz0ak.mjs +2 -0
  60. package/dist/chunks/cli-0.1.11-0n77qn68.mjs +2 -0
  61. package/dist/chunks/cli-0.1.11-0qwee9gy.mjs +2 -0
  62. package/dist/chunks/cli-0.1.11-0tge574q.mjs +2 -0
  63. package/dist/chunks/cli-0.1.11-10nmrfsz.mjs +8 -0
  64. package/dist/chunks/cli-0.1.11-16086k9e.mjs +2 -0
  65. package/dist/chunks/cli-0.1.11-1b48xqbe.mjs +2 -0
  66. package/dist/chunks/cli-0.1.11-1bmswdg3.mjs +2 -0
  67. package/dist/chunks/cli-0.1.11-1bryv90w.mjs +2 -0
  68. package/dist/chunks/cli-0.1.11-1bxwxewq.mjs +833 -0
  69. package/dist/chunks/cli-0.1.11-1e6fgnts.mjs +3 -0
  70. package/dist/chunks/cli-0.1.11-1xr9et85.mjs +2 -0
  71. package/dist/chunks/cli-0.1.11-21epc92q.mjs +2 -0
  72. package/dist/chunks/cli-0.1.11-23qqxmk4.mjs +2 -0
  73. package/dist/chunks/cli-0.1.11-2w8d5vqb.mjs +2 -0
  74. package/dist/chunks/cli-0.1.11-2xf0g9qc.mjs +45 -0
  75. package/dist/chunks/cli-0.1.11-3f5dv6mt.mjs +2 -0
  76. package/dist/chunks/cli-0.1.11-3p2f194m.mjs +2 -0
  77. package/dist/chunks/cli-0.1.11-3tqzgd9f.mjs +2 -0
  78. package/dist/chunks/cli-0.1.11-424zgj5k.mjs +4 -0
  79. package/dist/chunks/cli-0.1.11-4bn5ap1n.mjs +2 -0
  80. package/dist/chunks/cli-0.1.11-4cdyzvxv.mjs +3 -0
  81. package/dist/chunks/cli-0.1.11-4ggr81tw.mjs +2 -0
  82. package/dist/chunks/cli-0.1.11-4px8nt5r.mjs +2 -0
  83. package/dist/chunks/cli-0.1.11-4xsg15d1.mjs +2 -0
  84. package/dist/chunks/cli-0.1.11-50naxqgt.mjs +2 -0
  85. package/dist/chunks/cli-0.1.11-56bdg2vw.mjs +3 -0
  86. package/dist/chunks/cli-0.1.11-56p41bk3.mjs +2 -0
  87. package/dist/chunks/cli-0.1.11-5e45zda5.mjs +2 -0
  88. package/dist/chunks/cli-0.1.11-5hrysrcd.mjs +2 -0
  89. package/dist/chunks/cli-0.1.11-5hs4xyjq.mjs +2 -0
  90. package/dist/chunks/cli-0.1.11-5vqj6k7m.mjs +2 -0
  91. package/dist/chunks/cli-0.1.11-5zqfr92n.mjs +2 -0
  92. package/dist/chunks/cli-0.1.11-6r97rwda.mjs +2 -0
  93. package/dist/chunks/cli-0.1.11-6vqzqsdj.mjs +3 -0
  94. package/dist/chunks/cli-0.1.11-6zkfmcxp.mjs +2 -0
  95. package/dist/chunks/cli-0.1.11-70f778wy.mjs +2 -0
  96. package/dist/chunks/cli-0.1.11-71ewwy7m.mjs +50 -0
  97. package/dist/chunks/cli-0.1.11-7238rfy8.mjs +2 -0
  98. package/dist/chunks/cli-0.1.11-7mmhsc3x.mjs +2 -0
  99. package/dist/chunks/cli-0.1.11-7qpnfx56.mjs +2 -0
  100. package/dist/chunks/cli-0.1.11-7t04gqx2.mjs +3 -0
  101. package/dist/chunks/cli-0.1.11-7tybqg56.mjs +2 -0
  102. package/dist/chunks/cli-0.1.11-7vz357wm.mjs +58 -0
  103. package/dist/chunks/cli-0.1.11-7xr2ermy.mjs +2 -0
  104. package/dist/chunks/cli-0.1.11-84j34n0s.mjs +2 -0
  105. package/dist/chunks/cli-0.1.11-852v06g0.mjs +2 -0
  106. package/dist/chunks/cli-0.1.11-8qrhqvh5.mjs +2 -0
  107. package/dist/chunks/cli-0.1.11-91mf8dfr.mjs +2 -0
  108. package/dist/chunks/cli-0.1.11-96y2d09c.mjs +2 -0
  109. package/dist/chunks/cli-0.1.11-98zcwng9.mjs +2 -0
  110. package/dist/chunks/cli-0.1.11-anegs86e.mjs +7 -0
  111. package/dist/chunks/cli-0.1.11-anvzywg4.mjs +5 -0
  112. package/dist/chunks/cli-0.1.11-at3c85af.mjs +2 -0
  113. package/dist/chunks/cli-0.1.11-b0jasw23.mjs +9 -0
  114. package/dist/chunks/cli-0.1.11-bbx2h4x9.mjs +2 -0
  115. package/dist/chunks/cli-0.1.11-be28ty4m.mjs +2 -0
  116. package/dist/chunks/cli-0.1.11-bhqwqe2w.mjs +2 -0
  117. package/dist/chunks/cli-0.1.11-bqpcwywz.mjs +4 -0
  118. package/dist/chunks/cli-0.1.11-btayz9zj.mjs +2 -0
  119. package/dist/chunks/cli-0.1.11-bvd2r7an.mjs +252 -0
  120. package/dist/chunks/cli-0.1.11-bwn9ehxv.mjs +2 -0
  121. package/dist/chunks/cli-0.1.11-bwpemkht.mjs +2 -0
  122. package/dist/chunks/cli-0.1.11-cdpswj0n.mjs +2 -0
  123. package/dist/chunks/cli-0.1.11-cezypfbt.mjs +2 -0
  124. package/dist/chunks/cli-0.1.11-cf049e4w.mjs +134 -0
  125. package/dist/chunks/cli-0.1.11-chnrb9xx.mjs +10 -0
  126. package/dist/chunks/cli-0.1.11-ctjvkg5k.mjs +2 -0
  127. package/dist/chunks/cli-0.1.11-cw0ss3jw.mjs +4 -0
  128. package/dist/chunks/cli-0.1.11-cwptjaf7.mjs +12 -0
  129. package/dist/chunks/cli-0.1.11-d10nfa6g.mjs +11 -0
  130. package/dist/chunks/cli-0.1.11-d3exw047.mjs +2 -0
  131. package/dist/chunks/cli-0.1.11-d4ahh3jz.mjs +2 -0
  132. package/dist/chunks/cli-0.1.11-da6szcvw.mjs +2 -0
  133. package/dist/chunks/cli-0.1.11-dcswnc8x.mjs +24 -0
  134. package/dist/chunks/cli-0.1.11-dpfxvfty.mjs +2 -0
  135. package/dist/chunks/cli-0.1.11-e5ecf583.mjs +2 -0
  136. package/dist/chunks/cli-0.1.11-e66dak4h.mjs +4 -0
  137. package/dist/chunks/cli-0.1.11-e7gjxknm.mjs +16 -0
  138. package/dist/chunks/cli-0.1.11-egck69w4.mjs +2 -0
  139. package/dist/chunks/cli-0.1.11-eh7tjdab.mjs +18 -0
  140. package/dist/chunks/cli-0.1.11-ek6mck0j.mjs +2 -0
  141. package/dist/chunks/cli-0.1.11-emw2wfff.mjs +3 -0
  142. package/dist/chunks/cli-0.1.11-fag2wtke.mjs +2 -0
  143. package/dist/chunks/cli-0.1.11-fptq9w4t.mjs +2 -0
  144. package/dist/chunks/cli-0.1.11-fs3d0ajf.mjs +2 -0
  145. package/dist/chunks/cli-0.1.11-fstfs72j.mjs +2 -0
  146. package/dist/chunks/cli-0.1.11-ft47r1wq.mjs +2 -0
  147. package/dist/chunks/cli-0.1.11-fveg0t77.mjs +22 -0
  148. package/dist/chunks/cli-0.1.11-fx6ztxrs.mjs +5 -0
  149. package/dist/chunks/cli-0.1.11-g2202evh.mjs +2 -0
  150. package/dist/chunks/cli-0.1.11-g33qp0jz.mjs +2 -0
  151. package/dist/chunks/cli-0.1.11-gc069ne7.mjs +2 -0
  152. package/dist/chunks/cli-0.1.11-gdcvfp9f.mjs +2 -0
  153. package/dist/chunks/cli-0.1.11-ggrme14p.mjs +2 -0
  154. package/dist/chunks/cli-0.1.11-h02tyg8p.mjs +2 -0
  155. package/dist/chunks/cli-0.1.11-h2hxx8ma.mjs +12 -0
  156. package/dist/chunks/cli-0.1.11-h3jatwe1.mjs +2 -0
  157. package/dist/chunks/cli-0.1.11-h762f6hr.mjs +2 -0
  158. package/dist/chunks/cli-0.1.11-h7e4rkwk.mjs +31 -0
  159. package/dist/chunks/cli-0.1.11-h7phna9g.mjs +2 -0
  160. package/dist/chunks/cli-0.1.11-hgsa4nnp.mjs +2 -0
  161. package/dist/chunks/cli-0.1.11-hhs8ke9g.mjs +2 -0
  162. package/dist/chunks/cli-0.1.11-hmfevmz1.mjs +4 -0
  163. package/dist/chunks/cli-0.1.11-hrn726gf.mjs +2 -0
  164. package/dist/chunks/cli-0.1.11-hzezqkew.mjs +2 -0
  165. package/dist/chunks/cli-0.1.11-jj3s3dxd.mjs +15 -0
  166. package/dist/chunks/cli-0.1.11-jjgjkqqv.mjs +2 -0
  167. package/dist/chunks/cli-0.1.11-jkrt4znb.mjs +11 -0
  168. package/dist/chunks/cli-0.1.11-jne21ka1.mjs +2 -0
  169. package/dist/chunks/cli-0.1.11-jr50ahcv.mjs +3 -0
  170. package/dist/chunks/cli-0.1.11-jye250b3.mjs +2 -0
  171. package/dist/chunks/cli-0.1.11-kghg51gb.mjs +6 -0
  172. package/dist/chunks/cli-0.1.11-kk0qqs5v.mjs +7 -0
  173. package/dist/chunks/cli-0.1.11-kndj4a86.mjs +2 -0
  174. package/dist/chunks/cli-0.1.11-kthpxpj3.mjs +24 -0
  175. package/dist/chunks/cli-0.1.11-ktwtyqmp.mjs +2 -0
  176. package/dist/chunks/cli-0.1.11-m0aaey0g.mjs +4 -0
  177. package/dist/chunks/cli-0.1.11-m1dpnkp0.mjs +2 -0
  178. package/dist/chunks/cli-0.1.11-mj78w4sp.mjs +2 -0
  179. package/dist/chunks/cli-0.1.11-mr356stf.mjs +2 -0
  180. package/dist/chunks/cli-0.1.11-mstxxz33.mjs +2 -0
  181. package/dist/chunks/cli-0.1.11-n23d2wej.mjs +2 -0
  182. package/dist/chunks/cli-0.1.11-n24p2y0p.mjs +2 -0
  183. package/dist/chunks/cli-0.1.11-na9tsy21.mjs +2 -0
  184. package/dist/chunks/cli-0.1.11-nesh7dep.mjs +2 -0
  185. package/dist/chunks/cli-0.1.11-nhjbgc7t.mjs +2 -0
  186. package/dist/chunks/cli-0.1.11-nhwmv5g6.mjs +4 -0
  187. package/dist/chunks/cli-0.1.11-nx8a99hz.mjs +4 -0
  188. package/dist/chunks/cli-0.1.11-p22bdjhv.mjs +2 -0
  189. package/dist/chunks/cli-0.1.11-p4eeg584.mjs +5 -0
  190. package/dist/chunks/cli-0.1.11-pfgwwtw9.mjs +2 -0
  191. package/dist/chunks/cli-0.1.11-pr9jdfxt.mjs +3 -0
  192. package/dist/chunks/cli-0.1.11-q58q9jqr.mjs +2 -0
  193. package/dist/chunks/cli-0.1.11-q89t0xzx.mjs +2 -0
  194. package/dist/chunks/cli-0.1.11-qbcfg80y.mjs +16 -0
  195. package/dist/chunks/cli-0.1.11-qheffjft.mjs +2 -0
  196. package/dist/chunks/cli-0.1.11-qpzn4q17.mjs +15 -0
  197. package/dist/chunks/cli-0.1.11-qrq0sw0h.mjs +2 -0
  198. package/dist/chunks/cli-0.1.11-r990p54m.mjs +100 -0
  199. package/dist/chunks/cli-0.1.11-rj68n2kw.mjs +2 -0
  200. package/dist/chunks/cli-0.1.11-rj9ea3zn.mjs +2 -0
  201. package/dist/chunks/cli-0.1.11-rmyvg4yw.mjs +2 -0
  202. package/dist/chunks/cli-0.1.11-rrnr3ab1.mjs +2 -0
  203. package/dist/chunks/cli-0.1.11-rvk3t45h.mjs +2 -0
  204. package/dist/chunks/cli-0.1.11-s6yfjcm5.mjs +6 -0
  205. package/dist/chunks/cli-0.1.11-s8ygndzf.mjs +5036 -0
  206. package/dist/chunks/cli-0.1.11-sma2xhvv.mjs +2 -0
  207. package/dist/chunks/cli-0.1.11-sqqzwx4h.mjs +132 -0
  208. package/dist/chunks/cli-0.1.11-t07hba0z.mjs +2 -0
  209. package/dist/chunks/cli-0.1.11-t7dc7fbj.mjs +2 -0
  210. package/dist/chunks/cli-0.1.11-ta77hm2b.mjs +2 -0
  211. package/dist/chunks/cli-0.1.11-trcf78n1.mjs +2 -0
  212. package/dist/chunks/cli-0.1.11-tvfkn5mh.mjs +2 -0
  213. package/dist/chunks/cli-0.1.11-tyh8gms9.mjs +2 -0
  214. package/dist/chunks/cli-0.1.11-v2s8ey1n.mjs +12 -0
  215. package/dist/chunks/cli-0.1.11-v6kwgrqc.mjs +2 -0
  216. package/dist/chunks/cli-0.1.11-v7bwjqf0.mjs +192 -0
  217. package/dist/chunks/cli-0.1.11-v8j5bkfs.mjs +2 -0
  218. package/dist/chunks/cli-0.1.11-vb5f7c3a.mjs +2 -0
  219. package/dist/chunks/cli-0.1.11-vch8cn95.mjs +2 -0
  220. package/dist/chunks/cli-0.1.11-vq5fvf9m.mjs +44 -0
  221. package/dist/chunks/cli-0.1.11-vzet5m4y.mjs +2 -0
  222. package/dist/chunks/cli-0.1.11-w3fp9par.mjs +39 -0
  223. package/dist/chunks/cli-0.1.11-w3trj52p.mjs +21 -0
  224. package/dist/chunks/cli-0.1.11-w3ydpv9v.mjs +2 -0
  225. package/dist/chunks/cli-0.1.11-wc9bay3d.mjs +34 -0
  226. package/dist/chunks/cli-0.1.11-weav8142.mjs +2 -0
  227. package/dist/chunks/cli-0.1.11-wjxhn7j5.mjs +2 -0
  228. package/dist/chunks/cli-0.1.11-x37jysc0.mjs +14 -0
  229. package/dist/chunks/cli-0.1.11-x5nvafch.mjs +2 -0
  230. package/dist/chunks/cli-0.1.11-xhrk5hr0.mjs +2 -0
  231. package/dist/chunks/cli-0.1.11-xp93fxnp.mjs +2 -0
  232. package/dist/chunks/cli-0.1.11-xwj7cmkj.mjs +2 -0
  233. package/dist/chunks/cli-0.1.11-y4c6y87y.mjs +2 -0
  234. package/dist/chunks/cli-0.1.11-y909w8bb.mjs +2 -0
  235. package/dist/chunks/cli-0.1.11-yd6f29v2.mjs +2 -0
  236. package/dist/chunks/cli-0.1.11-yhk2y3c0.mjs +2 -0
  237. package/dist/chunks/cli-0.1.11-yrfxpjhr.mjs +2 -0
  238. package/dist/chunks/cli-0.1.11-yv5pfq6n.mjs +2 -0
  239. package/dist/chunks/cli-0.1.11-yvnhbsfn.mjs +3 -0
  240. package/dist/chunks/cli-0.1.11-z0thk4h0.mjs +2 -0
  241. package/dist/chunks/cli-0.1.11-z4hb2mcd.mjs +2 -0
  242. package/dist/chunks/cli-0.1.11-z62s8qx1.mjs +2 -0
  243. package/dist/chunks/cli-0.1.11-zb2sa3e2.mjs +13 -0
  244. package/dist/chunks/cli-0.1.11-zdyddegg.mjs +2 -0
  245. package/dist/chunks/cli-0.1.11-zfnmx1ny.mjs +2 -0
  246. package/dist/chunks/cli-0.1.11-zwkjaj0d.mjs +2 -0
  247. package/dist/chunks/client-0.1.11-h38k7vkj.mjs +1 -0
  248. package/dist/chunks/color-0.1.11-b7favzc8.mjs +1 -0
  249. package/dist/chunks/compact-0.1.11-damm234b.mjs +3 -0
  250. package/dist/chunks/config-0.1.11-bb6v0pwv.mjs +1 -0
  251. package/dist/chunks/config-0.1.11-cqy7fnab.mjs +1 -0
  252. package/dist/chunks/context-0.1.11-e2s56h3b.mjs +1 -0
  253. package/dist/chunks/context-noninteractive-0.1.11-s6b9q91h.mjs +1 -0
  254. package/dist/chunks/conversation-0.1.11-d8ejy4b9.mjs +1 -0
  255. package/dist/chunks/copy-0.1.11-aq32vn1b.mjs +9 -0
  256. package/dist/chunks/cost-0.1.11-3z9y6a5a.mjs +1 -0
  257. package/dist/chunks/createSession-0.1.11-rgaw7n2v.mjs +1 -0
  258. package/dist/chunks/desktop-0.1.11-k8ac4bfx.mjs +1 -0
  259. package/dist/chunks/detectRepository-0.1.11-m3chgqa1.mjs +1 -0
  260. package/dist/chunks/detection-0.1.11-aa9k5rxv.mjs +1 -0
  261. package/dist/chunks/devtools-0.1.11-fkz4akhx.mjs +1 -0
  262. package/dist/chunks/diff-0.1.11-tcqh42f6.mjs +1 -0
  263. package/dist/chunks/doctor-0.1.11-6fwwz8hp.mjs +1 -0
  264. package/dist/chunks/earlyInput-0.1.11-94asnfvh.mjs +1 -0
  265. package/dist/chunks/effort-0.1.11-zcxskzrb.mjs +8 -0
  266. package/dist/chunks/environmentSelection-0.1.11-6ngvrt1m.mjs +1 -0
  267. package/dist/chunks/environments-0.1.11-pdsv6dgq.mjs +1 -0
  268. package/dist/chunks/exit-0.1.11-2jab9tfm.mjs +1 -0
  269. package/dist/chunks/export-0.1.11-wv5bd05w.mjs +2 -0
  270. package/dist/chunks/extra-usage-0.1.11-f5rm0265.mjs +1 -0
  271. package/dist/chunks/extra-usage-noninteractive-0.1.11-dt7znwbn.mjs +1 -0
  272. package/dist/chunks/fast-0.1.11-a665n9kz.mjs +1 -0
  273. package/dist/chunks/feedback-0.1.11-q77qty87.mjs +14 -0
  274. package/dist/chunks/firstPartyEventLogger-0.1.11-y7qkhdj6.mjs +1 -0
  275. package/dist/chunks/git-0.1.11-g77ppr52.mjs +1 -0
  276. package/dist/chunks/githubModelsCredentials-0.1.11-9vhs3xqj.mjs +1 -0
  277. package/dist/chunks/growthbook-0.1.11-2w2b1mzd.mjs +1 -0
  278. package/dist/chunks/heapdump-0.1.11-b216wzt7.mjs +6 -0
  279. package/dist/chunks/help-0.1.11-byp88gen.mjs +1 -0
  280. package/dist/chunks/hookChains-0.1.11-jp8f82q7.mjs +3 -0
  281. package/dist/chunks/hooks-0.1.11-v9jan2ss.mjs +1 -0
  282. package/dist/chunks/hooks-0.1.11-vf6vcsgg.mjs +79 -0
  283. package/dist/chunks/ide-0.1.11-7nxbd03r.mjs +3 -0
  284. package/dist/chunks/image-processor-napi-0.1.11-dpg3ygnw.mjs +1 -0
  285. package/dist/chunks/index-0.1.11-3dfjfmc6.mjs +1 -0
  286. package/dist/chunks/index-0.1.11-82wnmfq3.mjs +9 -0
  287. package/dist/chunks/index-0.1.11-8gtaa17w.mjs +1 -0
  288. package/dist/chunks/index-0.1.11-ajdpkanw.mjs +1 -0
  289. package/dist/chunks/index-0.1.11-b2q967nq.mjs +30 -0
  290. package/dist/chunks/index-0.1.11-bhrstsgc.mjs +1 -0
  291. package/dist/chunks/index-0.1.11-d6qbzwah.mjs +1 -0
  292. package/dist/chunks/index-0.1.11-d9ft1b0s.mjs +1 -0
  293. package/dist/chunks/index-0.1.11-e52dzxjz.mjs +5 -0
  294. package/dist/chunks/index-0.1.11-gb3saayk.mjs +2 -0
  295. package/dist/chunks/index-0.1.11-kksxmkwe.mjs +1 -0
  296. package/dist/chunks/index-0.1.11-n564rmwy.mjs +1 -0
  297. package/dist/chunks/index-0.1.11-n90nxjqp.mjs +1 -0
  298. package/dist/chunks/index-0.1.11-p0j3w83p.mjs +1 -0
  299. package/dist/chunks/index-0.1.11-pmkgntay.mjs +7 -0
  300. package/dist/chunks/index-0.1.11-qspcw49p.mjs +1 -0
  301. package/dist/chunks/index-0.1.11-r6p77pf7.mjs +1 -0
  302. package/dist/chunks/index-0.1.11-s0w8xy7q.mjs +9 -0
  303. package/dist/chunks/index-0.1.11-wbhj1ny7.mjs +1 -0
  304. package/dist/chunks/index-0.1.11-wze82293.mjs +1 -0
  305. package/dist/chunks/index-0.1.11-xs4mng75.mjs +1 -0
  306. package/dist/chunks/index-0.1.11-yej3awws.mjs +2 -0
  307. package/dist/chunks/initReplBridge-0.1.11-71963wyw.mjs +1 -0
  308. package/dist/chunks/ink-0.1.11-tzp2q9bd.mjs +1 -0
  309. package/dist/chunks/insights-0.1.11-4yjg2bxs.mjs +870 -0
  310. package/dist/chunks/install-0.1.11-4zfvr6pk.mjs +1 -0
  311. package/dist/chunks/install-github-app-0.1.11-frqzdwsz.mjs +149 -0
  312. package/dist/chunks/install-slack-app-0.1.11-0yyjjvrw.mjs +1 -0
  313. package/dist/chunks/instrumentation-0.1.11-zyp2r390.mjs +12 -0
  314. package/dist/chunks/interactiveHelpers-0.1.11-chnsxp26.mjs +1 -0
  315. package/dist/chunks/keybindings-0.1.11-r2jke9h5.mjs +2 -0
  316. package/dist/chunks/knowledge-0.1.11-wpjw8ybd.mjs +2 -0
  317. package/dist/chunks/loadAgentsDir-0.1.11-bwymseqa.mjs +1 -0
  318. package/dist/chunks/loadPluginHooks-0.1.11-npf49gc4.mjs +1 -0
  319. package/dist/chunks/logout-0.1.11-48ynp610.mjs +1 -0
  320. package/dist/chunks/lsp-0.1.11-e4z6m5t5.mjs +1 -0
  321. package/dist/chunks/main-0.1.11-6sh6xycv.mjs +1 -0
  322. package/dist/chunks/managedEnv-0.1.11-6bnnpsm0.mjs +1 -0
  323. package/dist/chunks/mcp-0.1.11-vjjx8eer.mjs +17 -0
  324. package/dist/chunks/mcp-0.1.11-zf74a6am.mjs +4 -0
  325. package/dist/chunks/mcp-0.1.11-zw22jjqc.mjs +1 -0
  326. package/dist/chunks/mcpServer-0.1.11-czg51mvy.mjs +1 -0
  327. package/dist/chunks/mcpb-0.1.11-czkze48a.mjs +1 -0
  328. package/dist/chunks/memory-0.1.11-k7y98zqn.mjs +3 -0
  329. package/dist/chunks/mobile-0.1.11-2w5py2cb.mjs +2 -0
  330. package/dist/chunks/model-0.1.11-4v166f98.mjs +2 -0
  331. package/dist/chunks/model-0.1.11-qekc9c4w.mjs +1 -0
  332. package/dist/chunks/oauth-0.1.11-jkkd9wzq.mjs +1 -0
  333. package/dist/chunks/openaiShim-0.1.11-b9yqnc9c.mjs +14 -0
  334. package/dist/chunks/output-style-0.1.11-zwxn1knb.mjs +1 -0
  335. package/dist/chunks/package-HMBVQOZ4-0.1.11-n77wqhxr.mjs +1 -0
  336. package/dist/chunks/parser-0.1.11-vvhz2p5h.mjs +1 -0
  337. package/dist/chunks/passes-0.1.11-dgshr9c4.mjs +1 -0
  338. package/dist/chunks/permissions-0.1.11-71fn7rsk.mjs +3 -0
  339. package/dist/chunks/plan-0.1.11-1xyzxjgr.mjs +1 -0
  340. package/dist/chunks/plist-0.1.11-0sn6nqv3.mjs +1 -0
  341. package/dist/chunks/plugin-0.1.11-menj210d.mjs +29 -0
  342. package/dist/chunks/pluginStartupCheck-0.1.11-ytjn1kxg.mjs +1 -0
  343. package/dist/chunks/plugins-0.1.11-t3pgcpcj.mjs +9 -0
  344. package/dist/chunks/print-0.1.11-y9vz77h9.mjs +57 -0
  345. package/dist/chunks/privacy-settings-0.1.11-3ah0v02p.mjs +1 -0
  346. package/dist/chunks/process-0.1.11-s6jnx5xw.mjs +1 -0
  347. package/dist/chunks/processBashCommand-0.1.11-txp79ekj.mjs +1 -0
  348. package/dist/chunks/processSlashCommand-0.1.11-fdvs7etd.mjs +9 -0
  349. package/dist/chunks/prompt-0.1.11-4f7rsvd2.mjs +1 -0
  350. package/dist/chunks/prompt-0.1.11-bzkv3rsd.mjs +1 -0
  351. package/dist/chunks/prompts-0.1.11-xczb1nwa.mjs +1 -0
  352. package/dist/chunks/provider-0.1.11-cqeqqqbt.mjs +2 -0
  353. package/dist/chunks/providerProfiles-0.1.11-ewn8w0f1.mjs +1 -0
  354. package/dist/chunks/rate-limit-options-0.1.11-6bca3g5n.mjs +1 -0
  355. package/dist/chunks/registry-0.1.11-wjnpx9yf.mjs +1 -0
  356. package/dist/chunks/release-notes-0.1.11-dhe37z3c.mjs +5 -0
  357. package/dist/chunks/reload-plugins-0.1.11-gzep3pg3.mjs +2 -0
  358. package/dist/chunks/remote-env-0.1.11-yday97nq.mjs +1 -0
  359. package/dist/chunks/remoteBridgeCore-0.1.11-hn821p07.mjs +1 -0
  360. package/dist/chunks/remoteSession-0.1.11-g3h440pv.mjs +1 -0
  361. package/dist/chunks/rename-0.1.11-ke9btph2.mjs +1 -0
  362. package/dist/chunks/replBridgeHandle-0.1.11-t5njc196.mjs +1 -0
  363. package/dist/chunks/resume-0.1.11-d4bbgty9.mjs +2 -0
  364. package/dist/chunks/rewind-0.1.11-t4mfk815.mjs +1 -0
  365. package/dist/chunks/sandbox-adapter-0.1.11-3czn1nws.mjs +1 -0
  366. package/dist/chunks/sandbox-toggle-0.1.11-qxv2w9n1.mjs +1 -0
  367. package/dist/chunks/session-0.1.11-2z972raf.mjs +2 -0
  368. package/dist/chunks/sessionFileAccessHooks-0.1.11-f3exnspr.mjs +1 -0
  369. package/dist/chunks/sessionStorage-0.1.11-aa2ftdjn.mjs +1 -0
  370. package/dist/chunks/setup-0.1.11-epmpszzf.mjs +5 -0
  371. package/dist/chunks/sinks-0.1.11-q3zcj5me.mjs +1 -0
  372. package/dist/chunks/skills-0.1.11-9xbyp1p5.mjs +1 -0
  373. package/dist/chunks/startupProfiler-0.1.11-5s07826j.mjs +1 -0
  374. package/dist/chunks/state-0.1.11-3fjxywyv.mjs +1 -0
  375. package/dist/chunks/stats-0.1.11-hxzms6gg.mjs +6 -0
  376. package/dist/chunks/status-0.1.11-drvp15n8.mjs +1 -0
  377. package/dist/chunks/stickers-0.1.11-44f4tawn.mjs +1 -0
  378. package/dist/chunks/subprocessEnv-0.1.11-5w00fpez.mjs +1 -0
  379. package/dist/chunks/tasks-0.1.11-dn8h18fk.mjs +1 -0
  380. package/dist/chunks/teamHelpers-0.1.11-ca7kref8.mjs +1 -0
  381. package/dist/chunks/teammateModeSnapshot-0.1.11-an88rdgv.mjs +1 -0
  382. package/dist/chunks/teleport-0.1.11-8e3k0ex6.mjs +1 -0
  383. package/dist/chunks/terminalSetup-0.1.11-gtdwp0an.mjs +1 -0
  384. package/dist/chunks/theme-0.1.11-p447kczd.mjs +1 -0
  385. package/dist/chunks/thinkback-0.1.11-3f1xvkt5.mjs +1 -0
  386. package/dist/chunks/thinkback-play-0.1.11-0ax4h089.mjs +1 -0
  387. package/dist/chunks/toolPool-0.1.11-xrywy61j.mjs +1 -0
  388. package/dist/chunks/toolSearch-0.1.11-7yjvjxhp.mjs +1 -0
  389. package/dist/chunks/trustedDevice-0.1.11-070f1wch.mjs +1 -0
  390. package/dist/chunks/turndown.cjs-0.1.11-brwqmyse.mjs +69 -0
  391. package/dist/chunks/ultrareviewCommand-0.1.11-0m9b3kr5.mjs +4 -0
  392. package/dist/chunks/update-0.1.11-p33kxpg4.mjs +94 -0
  393. package/dist/chunks/upgrade-0.1.11-1aj14cqt.mjs +1 -0
  394. package/dist/chunks/upstreamproxy-0.1.11-vk16qw88.mjs +14 -0
  395. package/dist/chunks/usage-0.1.11-hch4v5jb.mjs +1 -0
  396. package/dist/chunks/util-0.1.11-sjkxad5k.mjs +1 -0
  397. package/dist/chunks/utils-0.1.11-2bk8zn4g.mjs +1 -0
  398. package/dist/chunks/vim-0.1.11-v1rz1d56.mjs +1 -0
  399. package/dist/chunks/watcher-0.1.11-v8mkv1xy.mjs +1 -0
  400. package/dist/chunks/wiki-0.1.11-v0twhcnn.mjs +132 -0
  401. package/dist/chunks/worktree-0.1.11-d7chpamf.mjs +1 -0
  402. package/dist/chunks/worktreeModeEnabled-0.1.11-tsxv6h6g.mjs +1 -0
  403. package/dist/chunks/wrapper-0.1.11-rt9xsnjh.mjs +7 -0
  404. package/dist/claudio-vscode.vsix +0 -0
  405. package/dist/cli.mjs +6 -6
  406. package/package.json +1 -1
  407. package/dist/chunks/AgentTool-0.1.9-e26h2f7z.mjs +0 -1
  408. package/dist/chunks/App-0.1.9-7ttp2eny.mjs +0 -1
  409. package/dist/chunks/ApproveApiKey-0.1.9-pz0jzna9.mjs +0 -1
  410. package/dist/chunks/AssistantSessionChooser-0.1.9-r5wg1yfv.mjs +0 -1
  411. package/dist/chunks/AutoModeOptInDialog-0.1.9-nbnjg2tp.mjs +0 -1
  412. package/dist/chunks/BypassPermissionsModeDialog-0.1.9-wjg6qps3.mjs +0 -1
  413. package/dist/chunks/ClaudeInChromeOnboarding-0.1.9-h46b49p8.mjs +0 -1
  414. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.9-b8em430v.mjs +0 -1
  415. package/dist/chunks/ConsoleOAuthFlow-0.1.9-zb1h6dvy.mjs +0 -1
  416. package/dist/chunks/DiffDialog-0.1.9-09s28v8e.mjs +0 -3
  417. package/dist/chunks/Doctor-0.1.9-9ak6wqtr.mjs +0 -1
  418. package/dist/chunks/Grove-0.1.9-rbrf13rd.mjs +0 -1
  419. package/dist/chunks/ITermBackend-0.1.9-8dgw249h.mjs +0 -1
  420. package/dist/chunks/InProcessTransport-0.1.9-5cp1e7x7.mjs +0 -1
  421. package/dist/chunks/InvalidConfigDialog-0.1.9-6mv9wgt8.mjs +0 -1
  422. package/dist/chunks/InvalidSettingsDialog-0.1.9-d5kkd4yd.mjs +0 -1
  423. package/dist/chunks/MigrationDialog-0.1.9-56807wps.mjs +0 -1
  424. package/dist/chunks/Onboarding-0.1.9-g5nqdh1r.mjs +0 -1
  425. package/dist/chunks/ProviderManager-0.1.9-kj6t8003.mjs +0 -1
  426. package/dist/chunks/REPL-0.1.9-3h2fc9z7.mjs +0 -1
  427. package/dist/chunks/ResumeConversation-0.1.9-k4gv6dx4.mjs +0 -1
  428. package/dist/chunks/SnapshotUpdateDialog-0.1.9-v3h7drc0.mjs +0 -1
  429. package/dist/chunks/StartupScreen-0.1.9-jgk08xvj.mjs +0 -1
  430. package/dist/chunks/TeleportProgress-0.1.9-pnqkmgap.mjs +0 -1
  431. package/dist/chunks/TeleportRepoMismatchDialog-0.1.9-ddtmy43v.mjs +0 -1
  432. package/dist/chunks/TeleportResumeWrapper-0.1.9-vhnyx04e.mjs +0 -1
  433. package/dist/chunks/TmuxBackend-0.1.9-nb2ks1np.mjs +0 -9
  434. package/dist/chunks/ToolSearchTool-0.1.9-n40whaty.mjs +0 -1
  435. package/dist/chunks/TrustDialog-0.1.9-dm2wppgy.mjs +0 -1
  436. package/dist/chunks/activeProvider-0.1.9-kbwwatt3.mjs +0 -1
  437. package/dist/chunks/add-dir-0.1.9-ed53zp9j.mjs +0 -1
  438. package/dist/chunks/agents-0.1.9-4gwb1qtc.mjs +0 -111
  439. package/dist/chunks/agents-0.1.9-yr85gwa8.mjs +0 -3
  440. package/dist/chunks/api-0.1.9-kqwfw6wj.mjs +0 -1
  441. package/dist/chunks/asciicast-0.1.9-ekvsjx76.mjs +0 -1
  442. package/dist/chunks/assistant-0.1.9-h4rgf0xq.mjs +0 -1
  443. package/dist/chunks/auth-0.1.9-1c12xrxs.mjs +0 -1
  444. package/dist/chunks/auth-0.1.9-rqfx3vqa.mjs +0 -1
  445. package/dist/chunks/autoMode-0.1.9-s92asycq.mjs +0 -48
  446. package/dist/chunks/backgroundHousekeeping-0.1.9-jjbqckpm.mjs +0 -1
  447. package/dist/chunks/branch-0.1.9-m7j2aerq.mjs +0 -4
  448. package/dist/chunks/bridgePointer-0.1.9-rv3aq23v.mjs +0 -1
  449. package/dist/chunks/btw-0.1.9-g55x31zp.mjs +0 -1
  450. package/dist/chunks/buddy-0.1.9-fqmk7e4y.mjs +0 -3
  451. package/dist/chunks/cacache-0.1.9-dr1vt8s1.mjs +0 -1
  452. package/dist/chunks/cache-probe-0.1.9-ydmjrch4.mjs +0 -21
  453. package/dist/chunks/cacheStats-0.1.9-pkarrnw9.mjs +0 -4
  454. package/dist/chunks/caches-0.1.9-d6cndrra.mjs +0 -1
  455. package/dist/chunks/chrome-0.1.9-bvwzw157.mjs +0 -1
  456. package/dist/chunks/chromeNativeHost-0.1.9-8a20nscz.mjs +0 -2
  457. package/dist/chunks/claude-for-chrome-mcp-0.1.9-ndknjd3g.mjs +0 -1
  458. package/dist/chunks/claudeDesktop-0.1.9-7xprztbk.mjs +0 -1
  459. package/dist/chunks/claudemd-0.1.9-dqyhgy2v.mjs +0 -1
  460. package/dist/chunks/clear-0.1.9-tb8x7676.mjs +0 -1
  461. package/dist/chunks/cli-0.1.9-001s9kxw.mjs +0 -24
  462. package/dist/chunks/cli-0.1.9-03e1d9dw.mjs +0 -39
  463. package/dist/chunks/cli-0.1.9-04ez73f7.mjs +0 -5084
  464. package/dist/chunks/cli-0.1.9-0dtdhejj.mjs +0 -31
  465. package/dist/chunks/cli-0.1.9-0e6nsh68.mjs +0 -3
  466. package/dist/chunks/cli-0.1.9-0j8n671q.mjs +0 -2
  467. package/dist/chunks/cli-0.1.9-15y0qt1z.mjs +0 -2
  468. package/dist/chunks/cli-0.1.9-1c3qpbdh.mjs +0 -2
  469. package/dist/chunks/cli-0.1.9-1f5gmndb.mjs +0 -2
  470. package/dist/chunks/cli-0.1.9-1ghbcafn.mjs +0 -2
  471. package/dist/chunks/cli-0.1.9-1kaj4v6k.mjs +0 -2
  472. package/dist/chunks/cli-0.1.9-1xmdqqzd.mjs +0 -3
  473. package/dist/chunks/cli-0.1.9-263y2rkc.mjs +0 -3
  474. package/dist/chunks/cli-0.1.9-2dd7h0hn.mjs +0 -15
  475. package/dist/chunks/cli-0.1.9-2prq7peb.mjs +0 -2
  476. package/dist/chunks/cli-0.1.9-2tc83tsz.mjs +0 -2
  477. package/dist/chunks/cli-0.1.9-2thp2z73.mjs +0 -2
  478. package/dist/chunks/cli-0.1.9-2v0y90vz.mjs +0 -2
  479. package/dist/chunks/cli-0.1.9-2v4s8yf9.mjs +0 -7
  480. package/dist/chunks/cli-0.1.9-2x18rhq6.mjs +0 -6
  481. package/dist/chunks/cli-0.1.9-38zb09vp.mjs +0 -2
  482. package/dist/chunks/cli-0.1.9-3g3er8j1.mjs +0 -15
  483. package/dist/chunks/cli-0.1.9-3h4serkj.mjs +0 -58
  484. package/dist/chunks/cli-0.1.9-3rhe87kw.mjs +0 -2
  485. package/dist/chunks/cli-0.1.9-3vfq7jja.mjs +0 -34
  486. package/dist/chunks/cli-0.1.9-3wmbdmrp.mjs +0 -2
  487. package/dist/chunks/cli-0.1.9-3y36913h.mjs +0 -10
  488. package/dist/chunks/cli-0.1.9-3yscrq86.mjs +0 -833
  489. package/dist/chunks/cli-0.1.9-45ggwszg.mjs +0 -2
  490. package/dist/chunks/cli-0.1.9-4a9qwf11.mjs +0 -2
  491. package/dist/chunks/cli-0.1.9-4bg6jxs8.mjs +0 -2
  492. package/dist/chunks/cli-0.1.9-4kk9fmg2.mjs +0 -2
  493. package/dist/chunks/cli-0.1.9-4n4dqg6k.mjs +0 -2
  494. package/dist/chunks/cli-0.1.9-4sqfjw8t.mjs +0 -16
  495. package/dist/chunks/cli-0.1.9-4vmbyj20.mjs +0 -2
  496. package/dist/chunks/cli-0.1.9-4vt296k0.mjs +0 -18
  497. package/dist/chunks/cli-0.1.9-5ryrgdzg.mjs +0 -2
  498. package/dist/chunks/cli-0.1.9-5vgk7wf7.mjs +0 -2
  499. package/dist/chunks/cli-0.1.9-5ygmjsje.mjs +0 -2
  500. package/dist/chunks/cli-0.1.9-5ypg3t0t.mjs +0 -2
  501. package/dist/chunks/cli-0.1.9-5zhhyq4q.mjs +0 -2
  502. package/dist/chunks/cli-0.1.9-61ywjha3.mjs +0 -2
  503. package/dist/chunks/cli-0.1.9-68vwvmkw.mjs +0 -2
  504. package/dist/chunks/cli-0.1.9-6c7qrr4p.mjs +0 -16
  505. package/dist/chunks/cli-0.1.9-6gk46nr9.mjs +0 -2
  506. package/dist/chunks/cli-0.1.9-6j5gxw5r.mjs +0 -5
  507. package/dist/chunks/cli-0.1.9-6ne451jc.mjs +0 -2
  508. package/dist/chunks/cli-0.1.9-6p67vwxh.mjs +0 -2
  509. package/dist/chunks/cli-0.1.9-6pcahrj9.mjs +0 -2
  510. package/dist/chunks/cli-0.1.9-7047sjwh.mjs +0 -2
  511. package/dist/chunks/cli-0.1.9-7bakxr5q.mjs +0 -3
  512. package/dist/chunks/cli-0.1.9-7bthhhpf.mjs +0 -2
  513. package/dist/chunks/cli-0.1.9-7fp0smtp.mjs +0 -2
  514. package/dist/chunks/cli-0.1.9-7ftnjyps.mjs +0 -2
  515. package/dist/chunks/cli-0.1.9-7h5my4fb.mjs +0 -2
  516. package/dist/chunks/cli-0.1.9-7kcaaxvq.mjs +0 -12
  517. package/dist/chunks/cli-0.1.9-7q9461ka.mjs +0 -2
  518. package/dist/chunks/cli-0.1.9-7qhatm3v.mjs +0 -2
  519. package/dist/chunks/cli-0.1.9-86kws2c7.mjs +0 -192
  520. package/dist/chunks/cli-0.1.9-8egwvs85.mjs +0 -2
  521. package/dist/chunks/cli-0.1.9-90h21nv5.mjs +0 -2
  522. package/dist/chunks/cli-0.1.9-9d4sp76k.mjs +0 -2
  523. package/dist/chunks/cli-0.1.9-9hc8gyb7.mjs +0 -2
  524. package/dist/chunks/cli-0.1.9-9nhh15bp.mjs +0 -2
  525. package/dist/chunks/cli-0.1.9-9vab0er5.mjs +0 -2
  526. package/dist/chunks/cli-0.1.9-9vn4ys3c.mjs +0 -22
  527. package/dist/chunks/cli-0.1.9-a1gtww1d.mjs +0 -2
  528. package/dist/chunks/cli-0.1.9-a7zy4vqn.mjs +0 -134
  529. package/dist/chunks/cli-0.1.9-a95nqhbd.mjs +0 -4
  530. package/dist/chunks/cli-0.1.9-ag6a8kqj.mjs +0 -2
  531. package/dist/chunks/cli-0.1.9-ak0b9xfs.mjs +0 -100
  532. package/dist/chunks/cli-0.1.9-aqd7czgr.mjs +0 -3
  533. package/dist/chunks/cli-0.1.9-axg1kbe4.mjs +0 -2
  534. package/dist/chunks/cli-0.1.9-aype6q4y.mjs +0 -2
  535. package/dist/chunks/cli-0.1.9-b3031hmy.mjs +0 -2
  536. package/dist/chunks/cli-0.1.9-b6zp931m.mjs +0 -11
  537. package/dist/chunks/cli-0.1.9-b73n8vzm.mjs +0 -2
  538. package/dist/chunks/cli-0.1.9-b9kbpf6n.mjs +0 -2
  539. package/dist/chunks/cli-0.1.9-bg9xvmav.mjs +0 -2
  540. package/dist/chunks/cli-0.1.9-bn43vpc0.mjs +0 -2
  541. package/dist/chunks/cli-0.1.9-br9jzagb.mjs +0 -2
  542. package/dist/chunks/cli-0.1.9-c2fjeq7k.mjs +0 -2
  543. package/dist/chunks/cli-0.1.9-c38eyh49.mjs +0 -2
  544. package/dist/chunks/cli-0.1.9-cfzmq9k6.mjs +0 -2
  545. package/dist/chunks/cli-0.1.9-cvnkghgh.mjs +0 -3
  546. package/dist/chunks/cli-0.1.9-dmcbsmj4.mjs +0 -2
  547. package/dist/chunks/cli-0.1.9-dsx18zt1.mjs +0 -2
  548. package/dist/chunks/cli-0.1.9-dt31fs16.mjs +0 -2
  549. package/dist/chunks/cli-0.1.9-dzz1me99.mjs +0 -2
  550. package/dist/chunks/cli-0.1.9-e7ewtpew.mjs +0 -2
  551. package/dist/chunks/cli-0.1.9-e96x59hw.mjs +0 -2
  552. package/dist/chunks/cli-0.1.9-ehhkqhbv.mjs +0 -2
  553. package/dist/chunks/cli-0.1.9-eqxc9zxm.mjs +0 -12
  554. package/dist/chunks/cli-0.1.9-ewq9k9mr.mjs +0 -2
  555. package/dist/chunks/cli-0.1.9-ewwxqbvt.mjs +0 -2
  556. package/dist/chunks/cli-0.1.9-f4v4pahc.mjs +0 -4
  557. package/dist/chunks/cli-0.1.9-f643fvt4.mjs +0 -2
  558. package/dist/chunks/cli-0.1.9-f8ga1n8r.mjs +0 -6
  559. package/dist/chunks/cli-0.1.9-fcf313e7.mjs +0 -2
  560. package/dist/chunks/cli-0.1.9-fh5enjw8.mjs +0 -5
  561. package/dist/chunks/cli-0.1.9-fm2yycpj.mjs +0 -2
  562. package/dist/chunks/cli-0.1.9-fwqwgjwb.mjs +0 -2
  563. package/dist/chunks/cli-0.1.9-gandxpzf.mjs +0 -2
  564. package/dist/chunks/cli-0.1.9-gasw7sr9.mjs +0 -2
  565. package/dist/chunks/cli-0.1.9-gdymcvby.mjs +0 -2
  566. package/dist/chunks/cli-0.1.9-gpd1bhnf.mjs +0 -2
  567. package/dist/chunks/cli-0.1.9-gsc0t4gy.mjs +0 -2
  568. package/dist/chunks/cli-0.1.9-gvrtqwe3.mjs +0 -2
  569. package/dist/chunks/cli-0.1.9-h8xne7z8.mjs +0 -2
  570. package/dist/chunks/cli-0.1.9-hjcv9wr7.mjs +0 -50
  571. package/dist/chunks/cli-0.1.9-hva25eg3.mjs +0 -4
  572. package/dist/chunks/cli-0.1.9-hy4peemf.mjs +0 -3
  573. package/dist/chunks/cli-0.1.9-hy9s1fnj.mjs +0 -14
  574. package/dist/chunks/cli-0.1.9-hz8rssz0.mjs +0 -2
  575. package/dist/chunks/cli-0.1.9-j5zz6gbq.mjs +0 -4
  576. package/dist/chunks/cli-0.1.9-jb6af8n8.mjs +0 -2
  577. package/dist/chunks/cli-0.1.9-jchn9hyn.mjs +0 -2
  578. package/dist/chunks/cli-0.1.9-jdpz959j.mjs +0 -2
  579. package/dist/chunks/cli-0.1.9-jv2z42gk.mjs +0 -2
  580. package/dist/chunks/cli-0.1.9-kbrf27z8.mjs +0 -2
  581. package/dist/chunks/cli-0.1.9-krv35v3v.mjs +0 -2
  582. package/dist/chunks/cli-0.1.9-ksv4ntar.mjs +0 -2
  583. package/dist/chunks/cli-0.1.9-kt9xw7bn.mjs +0 -2
  584. package/dist/chunks/cli-0.1.9-m7shtst2.mjs +0 -2
  585. package/dist/chunks/cli-0.1.9-mfyd9h50.mjs +0 -2
  586. package/dist/chunks/cli-0.1.9-mj88t3jf.mjs +0 -2
  587. package/dist/chunks/cli-0.1.9-mjkhzp2c.mjs +0 -3
  588. package/dist/chunks/cli-0.1.9-mkfnnvz7.mjs +0 -4
  589. package/dist/chunks/cli-0.1.9-mme2x7fq.mjs +0 -2
  590. package/dist/chunks/cli-0.1.9-mnegaqr7.mjs +0 -2
  591. package/dist/chunks/cli-0.1.9-mx4ekht0.mjs +0 -2
  592. package/dist/chunks/cli-0.1.9-mz3mbxwb.mjs +0 -12
  593. package/dist/chunks/cli-0.1.9-n445yk6z.mjs +0 -2
  594. package/dist/chunks/cli-0.1.9-n54k4qt3.mjs +0 -2
  595. package/dist/chunks/cli-0.1.9-n8tc0gpm.mjs +0 -2
  596. package/dist/chunks/cli-0.1.9-nsgdz4rd.mjs +0 -2
  597. package/dist/chunks/cli-0.1.9-nw3rpxdd.mjs +0 -252
  598. package/dist/chunks/cli-0.1.9-nz8phj17.mjs +0 -2
  599. package/dist/chunks/cli-0.1.9-p1kdk178.mjs +0 -2
  600. package/dist/chunks/cli-0.1.9-p58rgwkr.mjs +0 -4
  601. package/dist/chunks/cli-0.1.9-p5scdysw.mjs +0 -2
  602. package/dist/chunks/cli-0.1.9-pdbfg3vh.mjs +0 -2
  603. package/dist/chunks/cli-0.1.9-pgwsmwz1.mjs +0 -2
  604. package/dist/chunks/cli-0.1.9-ph3w8t78.mjs +0 -2
  605. package/dist/chunks/cli-0.1.9-psx0e36a.mjs +0 -2
  606. package/dist/chunks/cli-0.1.9-q3e2h88a.mjs +0 -2
  607. package/dist/chunks/cli-0.1.9-q7hve442.mjs +0 -2
  608. package/dist/chunks/cli-0.1.9-qqjp7mpj.mjs +0 -2
  609. package/dist/chunks/cli-0.1.9-qydwhycw.mjs +0 -2
  610. package/dist/chunks/cli-0.1.9-r3ha1332.mjs +0 -7
  611. package/dist/chunks/cli-0.1.9-r7rcv2wm.mjs +0 -8
  612. package/dist/chunks/cli-0.1.9-rd0jctgk.mjs +0 -21
  613. package/dist/chunks/cli-0.1.9-rerthk1j.mjs +0 -2
  614. package/dist/chunks/cli-0.1.9-rft22htm.mjs +0 -2
  615. package/dist/chunks/cli-0.1.9-rp31nc37.mjs +0 -2
  616. package/dist/chunks/cli-0.1.9-rw09xkh7.mjs +0 -2
  617. package/dist/chunks/cli-0.1.9-s0w3y07w.mjs +0 -2
  618. package/dist/chunks/cli-0.1.9-s45y2ndk.mjs +0 -2
  619. package/dist/chunks/cli-0.1.9-s6bk4fbn.mjs +0 -2
  620. package/dist/chunks/cli-0.1.9-scpj6tps.mjs +0 -3
  621. package/dist/chunks/cli-0.1.9-sqja68fn.mjs +0 -2
  622. package/dist/chunks/cli-0.1.9-sv3awdsv.mjs +0 -2
  623. package/dist/chunks/cli-0.1.9-t24n24mw.mjs +0 -2
  624. package/dist/chunks/cli-0.1.9-teaymnrz.mjs +0 -2
  625. package/dist/chunks/cli-0.1.9-tq9z3reg.mjs +0 -2
  626. package/dist/chunks/cli-0.1.9-v32f99vc.mjs +0 -11
  627. package/dist/chunks/cli-0.1.9-v6x9pr1t.mjs +0 -2
  628. package/dist/chunks/cli-0.1.9-v7ajk1nz.mjs +0 -2
  629. package/dist/chunks/cli-0.1.9-vdw09f8y.mjs +0 -44
  630. package/dist/chunks/cli-0.1.9-vm7cggd9.mjs +0 -45
  631. package/dist/chunks/cli-0.1.9-vp3dtntc.mjs +0 -2
  632. package/dist/chunks/cli-0.1.9-vwv31syx.mjs +0 -2
  633. package/dist/chunks/cli-0.1.9-w692zn5c.mjs +0 -2
  634. package/dist/chunks/cli-0.1.9-wn39cz20.mjs +0 -2
  635. package/dist/chunks/cli-0.1.9-wpvrabrk.mjs +0 -2
  636. package/dist/chunks/cli-0.1.9-x0xxr5dh.mjs +0 -13
  637. package/dist/chunks/cli-0.1.9-x13p19zq.mjs +0 -2
  638. package/dist/chunks/cli-0.1.9-x257hapj.mjs +0 -9
  639. package/dist/chunks/cli-0.1.9-x7qrvj9f.mjs +0 -2
  640. package/dist/chunks/cli-0.1.9-xvn37fkk.mjs +0 -2
  641. package/dist/chunks/cli-0.1.9-xvvq2rcd.mjs +0 -4
  642. package/dist/chunks/cli-0.1.9-xws3mhz4.mjs +0 -2
  643. package/dist/chunks/cli-0.1.9-y8n4w5nn.mjs +0 -5
  644. package/dist/chunks/cli-0.1.9-ycvkz1gf.mjs +0 -4
  645. package/dist/chunks/cli-0.1.9-yddanjg2.mjs +0 -132
  646. package/dist/chunks/cli-0.1.9-ymsq31jx.mjs +0 -2
  647. package/dist/chunks/cli-0.1.9-ywf6743k.mjs +0 -2
  648. package/dist/chunks/cli-0.1.9-z5mm21jw.mjs +0 -24
  649. package/dist/chunks/cli-0.1.9-zae1me3j.mjs +0 -2
  650. package/dist/chunks/cli-0.1.9-zck4s4sh.mjs +0 -2
  651. package/dist/chunks/cli-0.1.9-zehsa1kq.mjs +0 -2
  652. package/dist/chunks/cli-0.1.9-zqyxbf50.mjs +0 -2
  653. package/dist/chunks/cli-0.1.9-zstpbdrf.mjs +0 -2
  654. package/dist/chunks/cli-0.1.9-zzp8m503.mjs +0 -3
  655. package/dist/chunks/cliArgs-0.1.9-kckasx4h.mjs +0 -1
  656. package/dist/chunks/client-0.1.9-ys52xz2v.mjs +0 -1
  657. package/dist/chunks/color-0.1.9-nmnytefc.mjs +0 -1
  658. package/dist/chunks/compact-0.1.9-qw915ckh.mjs +0 -3
  659. package/dist/chunks/config-0.1.9-1m69edch.mjs +0 -1
  660. package/dist/chunks/config-0.1.9-6knxc8a2.mjs +0 -1
  661. package/dist/chunks/context-0.1.9-47a3xmqq.mjs +0 -1
  662. package/dist/chunks/context-noninteractive-0.1.9-6s9bm74v.mjs +0 -1
  663. package/dist/chunks/conversation-0.1.9-vebter8y.mjs +0 -1
  664. package/dist/chunks/copy-0.1.9-ae06p3e2.mjs +0 -9
  665. package/dist/chunks/cost-0.1.9-x5zee0z9.mjs +0 -1
  666. package/dist/chunks/createSession-0.1.9-djn7xdsv.mjs +0 -1
  667. package/dist/chunks/desktop-0.1.9-xaecrssd.mjs +0 -1
  668. package/dist/chunks/detectRepository-0.1.9-qqzcce45.mjs +0 -1
  669. package/dist/chunks/detection-0.1.9-ry1q2ym2.mjs +0 -1
  670. package/dist/chunks/devtools-0.1.9-kzs9wq2w.mjs +0 -1
  671. package/dist/chunks/diff-0.1.9-af5n5bzh.mjs +0 -1
  672. package/dist/chunks/doctor-0.1.9-9f6fz2h0.mjs +0 -1
  673. package/dist/chunks/earlyInput-0.1.9-h7yskwvf.mjs +0 -1
  674. package/dist/chunks/effort-0.1.9-spz96zzr.mjs +0 -8
  675. package/dist/chunks/environmentSelection-0.1.9-0va5g53h.mjs +0 -1
  676. package/dist/chunks/environments-0.1.9-2hka6k26.mjs +0 -1
  677. package/dist/chunks/exit-0.1.9-rvk04qa2.mjs +0 -1
  678. package/dist/chunks/export-0.1.9-c3pqjktx.mjs +0 -2
  679. package/dist/chunks/extra-usage-0.1.9-92jjke47.mjs +0 -1
  680. package/dist/chunks/extra-usage-noninteractive-0.1.9-27zjp5q7.mjs +0 -1
  681. package/dist/chunks/fast-0.1.9-60sqqvgd.mjs +0 -1
  682. package/dist/chunks/feedback-0.1.9-anraj53n.mjs +0 -14
  683. package/dist/chunks/firstPartyEventLogger-0.1.9-y55fqx1x.mjs +0 -1
  684. package/dist/chunks/fullscreen-0.1.9-xy9bnpe3.mjs +0 -1
  685. package/dist/chunks/git-0.1.9-09pdaxwd.mjs +0 -1
  686. package/dist/chunks/githubModelsCredentials-0.1.9-bzx6c3bd.mjs +0 -1
  687. package/dist/chunks/growthbook-0.1.9-rqhcy76z.mjs +0 -1
  688. package/dist/chunks/heapdump-0.1.9-qrfce4dp.mjs +0 -6
  689. package/dist/chunks/help-0.1.9-sfn2ed9n.mjs +0 -1
  690. package/dist/chunks/hookChains-0.1.9-5t2mrtyc.mjs +0 -3
  691. package/dist/chunks/hooks-0.1.9-4cebdztn.mjs +0 -1
  692. package/dist/chunks/hooks-0.1.9-y0vtx23k.mjs +0 -79
  693. package/dist/chunks/ide-0.1.9-yxzacgd5.mjs +0 -3
  694. package/dist/chunks/image-processor-napi-0.1.9-fwc1ge47.mjs +0 -1
  695. package/dist/chunks/index-0.1.9-2gv7a7tq.mjs +0 -2
  696. package/dist/chunks/index-0.1.9-31vnb803.mjs +0 -1
  697. package/dist/chunks/index-0.1.9-68aa3hmw.mjs +0 -1
  698. package/dist/chunks/index-0.1.9-7ktx5gez.mjs +0 -1
  699. package/dist/chunks/index-0.1.9-8feamw1f.mjs +0 -1
  700. package/dist/chunks/index-0.1.9-8hzceckr.mjs +0 -5
  701. package/dist/chunks/index-0.1.9-96thm65j.mjs +0 -1
  702. package/dist/chunks/index-0.1.9-c7sexk3f.mjs +0 -2
  703. package/dist/chunks/index-0.1.9-fvtq6thw.mjs +0 -1
  704. package/dist/chunks/index-0.1.9-g2ngvhaf.mjs +0 -1
  705. package/dist/chunks/index-0.1.9-gtn0qcv2.mjs +0 -7
  706. package/dist/chunks/index-0.1.9-h548q4km.mjs +0 -1
  707. package/dist/chunks/index-0.1.9-j6ac60hq.mjs +0 -1
  708. package/dist/chunks/index-0.1.9-jxdymwv4.mjs +0 -1
  709. package/dist/chunks/index-0.1.9-kgdkzpmr.mjs +0 -1
  710. package/dist/chunks/index-0.1.9-mt2y3wyw.mjs +0 -9
  711. package/dist/chunks/index-0.1.9-smem7egb.mjs +0 -30
  712. package/dist/chunks/index-0.1.9-snmdvw2f.mjs +0 -1
  713. package/dist/chunks/index-0.1.9-vwevfx80.mjs +0 -1
  714. package/dist/chunks/index-0.1.9-w21jc8bp.mjs +0 -1
  715. package/dist/chunks/index-0.1.9-wpqaqk4y.mjs +0 -1
  716. package/dist/chunks/index-0.1.9-yjp28h60.mjs +0 -9
  717. package/dist/chunks/initReplBridge-0.1.9-dag95hyf.mjs +0 -1
  718. package/dist/chunks/ink-0.1.9-4n2nvw5p.mjs +0 -1
  719. package/dist/chunks/insights-0.1.9-9hr8tshw.mjs +0 -870
  720. package/dist/chunks/install-0.1.9-km91vvgf.mjs +0 -1
  721. package/dist/chunks/install-github-app-0.1.9-874a2dgj.mjs +0 -149
  722. package/dist/chunks/install-slack-app-0.1.9-q5yyb8vs.mjs +0 -1
  723. package/dist/chunks/instrumentation-0.1.9-raz129aj.mjs +0 -12
  724. package/dist/chunks/interactiveHelpers-0.1.9-21a8r4rv.mjs +0 -1
  725. package/dist/chunks/keybindings-0.1.9-nm8s4x8m.mjs +0 -2
  726. package/dist/chunks/knowledge-0.1.9-zhr6zq80.mjs +0 -2
  727. package/dist/chunks/loadAgentsDir-0.1.9-3m0mzw84.mjs +0 -1
  728. package/dist/chunks/loadPluginHooks-0.1.9-y46g5zj0.mjs +0 -1
  729. package/dist/chunks/logout-0.1.9-hb89bxj8.mjs +0 -1
  730. package/dist/chunks/lsp-0.1.9-2j3y8eqc.mjs +0 -1
  731. package/dist/chunks/main-0.1.9-7cnyr288.mjs +0 -1
  732. package/dist/chunks/managedEnv-0.1.9-y8wax2wz.mjs +0 -1
  733. package/dist/chunks/mcp-0.1.9-14beee71.mjs +0 -17
  734. package/dist/chunks/mcp-0.1.9-qw1n3pzx.mjs +0 -4
  735. package/dist/chunks/mcp-0.1.9-zd92e41j.mjs +0 -1
  736. package/dist/chunks/mcpServer-0.1.9-5p48a2y0.mjs +0 -1
  737. package/dist/chunks/mcpb-0.1.9-t8x1bjwv.mjs +0 -1
  738. package/dist/chunks/memory-0.1.9-mxz6vgsy.mjs +0 -3
  739. package/dist/chunks/mobile-0.1.9-144nwr03.mjs +0 -2
  740. package/dist/chunks/model-0.1.9-ghswdzx2.mjs +0 -1
  741. package/dist/chunks/model-0.1.9-j4vhm4vm.mjs +0 -2
  742. package/dist/chunks/oauth-0.1.9-a7p9ezjx.mjs +0 -1
  743. package/dist/chunks/openaiShim-0.1.9-5bn57rv6.mjs +0 -14
  744. package/dist/chunks/output-style-0.1.9-y8t5c5v3.mjs +0 -1
  745. package/dist/chunks/package-HMBVQOZ4-0.1.9-mbvqe0av.mjs +0 -1
  746. package/dist/chunks/parser-0.1.9-d7vc9q1w.mjs +0 -1
  747. package/dist/chunks/passes-0.1.9-84vsp058.mjs +0 -1
  748. package/dist/chunks/permissions-0.1.9-h0a2312z.mjs +0 -3
  749. package/dist/chunks/plan-0.1.9-k9dx9nwc.mjs +0 -1
  750. package/dist/chunks/plist-0.1.9-f3c6hvca.mjs +0 -1
  751. package/dist/chunks/plugin-0.1.9-z3nwra38.mjs +0 -29
  752. package/dist/chunks/pluginStartupCheck-0.1.9-p68xwmv4.mjs +0 -1
  753. package/dist/chunks/plugins-0.1.9-grc1bgmj.mjs +0 -9
  754. package/dist/chunks/print-0.1.9-z151tvas.mjs +0 -57
  755. package/dist/chunks/privacy-settings-0.1.9-m7xpxtd8.mjs +0 -1
  756. package/dist/chunks/process-0.1.9-anx0dq1a.mjs +0 -1
  757. package/dist/chunks/processBashCommand-0.1.9-bchtybqh.mjs +0 -1
  758. package/dist/chunks/processSlashCommand-0.1.9-ebvc859m.mjs +0 -9
  759. package/dist/chunks/prompt-0.1.9-08fnpwfx.mjs +0 -1
  760. package/dist/chunks/prompt-0.1.9-whqkx3td.mjs +0 -1
  761. package/dist/chunks/prompts-0.1.9-psek69yr.mjs +0 -1
  762. package/dist/chunks/provider-0.1.9-xwmdqr38.mjs +0 -2
  763. package/dist/chunks/providerProfiles-0.1.9-myc8zcfy.mjs +0 -1
  764. package/dist/chunks/rate-limit-options-0.1.9-06twart5.mjs +0 -1
  765. package/dist/chunks/registry-0.1.9-xxrsbce3.mjs +0 -1
  766. package/dist/chunks/release-notes-0.1.9-4r396x7z.mjs +0 -5
  767. package/dist/chunks/reload-plugins-0.1.9-hm09ekrf.mjs +0 -2
  768. package/dist/chunks/remote-env-0.1.9-0peng4np.mjs +0 -1
  769. package/dist/chunks/remoteBridgeCore-0.1.9-4eg0bkck.mjs +0 -1
  770. package/dist/chunks/remoteSession-0.1.9-7jagnaes.mjs +0 -1
  771. package/dist/chunks/rename-0.1.9-3r8bqa1y.mjs +0 -1
  772. package/dist/chunks/replBridgeHandle-0.1.9-1y32h5jq.mjs +0 -1
  773. package/dist/chunks/resume-0.1.9-gayv56qp.mjs +0 -2
  774. package/dist/chunks/rewind-0.1.9-krxjbzeg.mjs +0 -1
  775. package/dist/chunks/sandbox-adapter-0.1.9-b4ze2ex2.mjs +0 -1
  776. package/dist/chunks/sandbox-toggle-0.1.9-6vctxbed.mjs +0 -1
  777. package/dist/chunks/session-0.1.9-jtrr3jje.mjs +0 -2
  778. package/dist/chunks/sessionFileAccessHooks-0.1.9-wpgdva8t.mjs +0 -1
  779. package/dist/chunks/sessionStorage-0.1.9-1v6wyqzw.mjs +0 -1
  780. package/dist/chunks/setup-0.1.9-jc5w6v5s.mjs +0 -5
  781. package/dist/chunks/sinks-0.1.9-49ereb4y.mjs +0 -1
  782. package/dist/chunks/skills-0.1.9-d63w5m27.mjs +0 -1
  783. package/dist/chunks/startupProfiler-0.1.9-gmke65dk.mjs +0 -1
  784. package/dist/chunks/state-0.1.9-m8x0v07d.mjs +0 -1
  785. package/dist/chunks/stats-0.1.9-yvya6xg6.mjs +0 -6
  786. package/dist/chunks/status-0.1.9-sapnwz4b.mjs +0 -1
  787. package/dist/chunks/stickers-0.1.9-ewdagtd4.mjs +0 -1
  788. package/dist/chunks/subprocessEnv-0.1.9-2dqzh55d.mjs +0 -1
  789. package/dist/chunks/tasks-0.1.9-qgqwhse9.mjs +0 -1
  790. package/dist/chunks/teamHelpers-0.1.9-r474ar76.mjs +0 -1
  791. package/dist/chunks/teammateModeSnapshot-0.1.9-nwc11b9m.mjs +0 -1
  792. package/dist/chunks/teleport-0.1.9-xaj204my.mjs +0 -1
  793. package/dist/chunks/terminalSetup-0.1.9-xd5rhh32.mjs +0 -1
  794. package/dist/chunks/theme-0.1.9-f6jzdysz.mjs +0 -1
  795. package/dist/chunks/thinkback-0.1.9-8j25tex7.mjs +0 -1
  796. package/dist/chunks/thinkback-play-0.1.9-tzs2w3mj.mjs +0 -1
  797. package/dist/chunks/toolPool-0.1.9-6b4938vh.mjs +0 -1
  798. package/dist/chunks/toolSearch-0.1.9-7ych6nv7.mjs +0 -1
  799. package/dist/chunks/trustedDevice-0.1.9-xqxt3kmz.mjs +0 -1
  800. package/dist/chunks/turndown.cjs-0.1.9-m1wesrr4.mjs +0 -69
  801. package/dist/chunks/ultrareviewCommand-0.1.9-x09n5pvc.mjs +0 -4
  802. package/dist/chunks/update-0.1.9-8dntd8kh.mjs +0 -94
  803. package/dist/chunks/upgrade-0.1.9-eja31dgt.mjs +0 -1
  804. package/dist/chunks/upstreamproxy-0.1.9-pv2yqh11.mjs +0 -14
  805. package/dist/chunks/usage-0.1.9-neje6dea.mjs +0 -1
  806. package/dist/chunks/util-0.1.9-kdhggd68.mjs +0 -1
  807. package/dist/chunks/utils-0.1.9-bqw30f8b.mjs +0 -1
  808. package/dist/chunks/vim-0.1.9-w4d1qz6f.mjs +0 -1
  809. package/dist/chunks/watcher-0.1.9-ty2r0yxd.mjs +0 -1
  810. package/dist/chunks/wiki-0.1.9-ah646x2k.mjs +0 -132
  811. package/dist/chunks/worktree-0.1.9-d3fbxjwd.mjs +0 -1
  812. package/dist/chunks/worktreeModeEnabled-0.1.9-qbn6b5fs.mjs +0 -1
  813. package/dist/chunks/wrapper-0.1.9-eh46qafm.mjs +0 -7
  814. /package/dist/chunks/{cli-0.1.9-zrdz7st3.mjs → cli-0.1.11-x3q39kf7.mjs} +0 -0
@@ -1,18 +0,0 @@
1
- import{Xd as WZ,Yd as mQ}from"./cli-0.1.9-aype6q4y.mjs";import{Zd as sZ,de as WX}from"./cli-0.1.9-7qhatm3v.mjs";import{As as VZ,HJ as RJ,Hl as r0,IJ as CQ,Il as iJ,JC as t0,KJ as mX,LC as MZ,MH as KZ,Nr as vZ,Or as tQ,Pk as hZ,SB as MQ,Sk as eQ,Sn as b0,TB as uX,Wp as iZ,Xp as fX,Yt as FJ,Zt as VX,ao as dQ,cD as yQ,cv as UQ,dH as yZ,eu as $Z,fD as dX,fi as OQ,fu as GX,fv as cX,fy as wQ,gH as nZ,gi as hX,hD as KQ,iv as p0,ix as UZ,jN as fQ,jv as NX,jx as wZ,kD as EX,kH as aZ,kx as XJ,kz as oZ,ly as TX,mN as AX,mx as IJ,nN as xJ,ni as s0,nz as oJ,oN as BQ,oz as fZ,pi as OZ,py as w0,pz as KJ,qi as AJ,qy as e0,qz as UJ,rz as qZ,sz as GZ,tp as l0,tz as NZ,vj as yJ,vp as EQ,vs as LZ,vu as jX,vz as $0,wj as uQ,wq as LQ,ws as sQ,wu as _X,wz as D0,xz as CJ,yq as gX,zs as QJ}from"./cli-0.1.9-04ez73f7.mjs";import{nP as PQ,oP as vX,pP as i,qP as V0,tP as f0,uP as j0,xP as Z0,yP as _0}from"./cli-0.1.9-ak0b9xfs.mjs";import{fS as GJ,gS as QQ,uS as F0,vS as E0}from"./cli-0.1.9-gpd1bhnf.mjs";import{DU as IZ,FS as U0,OS as a0,UU as R0,nU as A,pU as G,tU as fJ}from"./cli-0.1.9-nw3rpxdd.mjs";import{jX as dJ,qX as SX}from"./cli-0.1.9-e7ewtpew.mjs";import{zX as J0}from"./cli-0.1.9-2v4s8yf9.mjs";import{AX as JJ}from"./cli-0.1.9-hy9s1fnj.mjs";import{OX as $J,YX as hQ}from"./cli-0.1.9-mme2x7fq.mjs";import{$X as qX,_X as TJ}from"./cli-0.1.9-v6x9pr1t.mjs";import{A3 as IQ,O0 as zZ,P0 as TQ,z3 as LJ}from"./cli-0.1.9-4sqfjw8t.mjs";import{B$ as cJ,P8 as HQ,Q8 as B0,S8 as SJ,a7 as YZ,f7 as cQ,g7 as YJ,h7 as xZ,h_ as W0,i_ as A0,n_ as i0,t$ as q0}from"./cli-0.1.9-86kws2c7.mjs";import{kea as rZ,lea as lZ,nea as zX}from"./cli-0.1.9-45ggwszg.mjs";import{Jea as _Q,xea as QZ}from"./cli-0.1.9-wpvrabrk.mjs";import{$ea as zJ,Uea as I0,Xea as S0,Zea as ZQ,afa as n0,hfa as d0}from"./cli-0.1.9-mkfnnvz7.mjs";import{Afa as DJ,zfa as z0}from"./cli-0.1.9-5ryrgdzg.mjs";import{Aga as lJ,Zfa as u0,dga as XZ,pga as JQ,rga as MX,xga as T0}from"./cli-0.1.9-vdw09f8y.mjs";import{hna as l,ina as MJ,kna as tJ,lna as Q0}from"./cli-0.1.9-kbrf27z8.mjs";function x0(Q){return typeof Q==="object"&&Q!==null&&"type"in Q&&Q.type==="local_agent"}function HJ(Q){return{...Q,retain:!1,messages:void 0,diskLoaded:!1,evictAfter:xJ(Q.status)?Date.now()+AQ:void 0}}function OJ(Q,J){z0("tengu_transcript_view_enter",{}),J((Z)=>{let X=Z.tasks[Q],z=Z.viewingAgentTaskId,Y=z!==void 0?Z.tasks[z]:void 0,q=z!==void 0&&z!==Q&&x0(Y)&&Y.retain,f=x0(X)&&(!X.retain||X.evictAfter!==void 0),W=Z.viewingAgentTaskId!==Q||Z.viewSelectionMode!=="viewing-agent";if(!f&&!W&&!q)return Z;let R=Z.tasks;if(q||f){if(R={...Z.tasks},q)R[z]=HJ(Y);if(f)R[Q]={...X,retain:!0,evictAfter:void 0}}return{...Z,viewingAgentTaskId:Q,viewSelectionMode:"viewing-agent",tasks:R}})}function PJ(Q){z0("tengu_transcript_view_exit",{}),Q((J)=>{let Z=J.viewingAgentTaskId,X={...J,viewingAgentTaskId:void 0,viewSelectionMode:"none"};if(Z===void 0)return J.viewSelectionMode==="none"?J:X;let z=J.tasks[Z];if(!x0(z)||!z.retain)return X;return{...X,tasks:{...J.tasks,[Z]:HJ(z)}}})}function aX(Q,J){J((Z)=>{let X=Z.tasks[Q];if(!x0(X))return Z;if(X.status==="running")return X.abortController?.abort(),Z;if(X.evictAfter===0)return Z;let z=Z.viewingAgentTaskId===Q;return{...Z,tasks:{...Z.tasks,[Q]:{...HJ(X),evictAfter:0}},...z&&{viewingAgentTaskId:void 0,viewSelectionMode:"none"}}})}var AQ=30000;var kJ=Q0(()=>{DJ();BQ()});class nJ{exitPlanCalls=[];results=new Map;rejectedIds=new Set;terminated=null;rescanAfterRejection=!1;everSeenPending=!1;get rejectCount(){return this.rejectedIds.size}get hasPendingPlan(){let Q=this.exitPlanCalls.findLast((J)=>!this.rejectedIds.has(J));return Q!==void 0&&!this.results.has(Q)}ingest(Q){for(let X of Q)if(X.type==="assistant")for(let z of X.message.content){if(z.type!=="tool_use")continue;let Y=z;if(Y.name===r0)this.exitPlanCalls.push(Y.id)}else if(X.type==="user"){let z=X.message.content;if(!Array.isArray(z))continue;for(let Y of z)if(Y.type==="tool_result")this.results.set(Y.tool_use_id,Y)}else if(X.type==="result"&&X.subtype!=="success")this.terminated={subtype:X.subtype};let J=Q.length>0||this.rescanAfterRejection;this.rescanAfterRejection=!1;let Z=null;if(J){for(let X=this.exitPlanCalls.length-1;X>=0;X--){let z=this.exitPlanCalls[X];if(this.rejectedIds.has(z))continue;let Y=this.results.get(z);if(!Y)Z={kind:"pending"};else if(Y.is_error===!0){let q=SQ(Y.content);Z=q!==null?{kind:"teleport",plan:q}:{kind:"rejected",id:z}}else Z={kind:"approved",plan:VQ(Y.content)};break}if(Z?.kind==="approved"||Z?.kind==="teleport")return Z}if(Z?.kind==="rejected")this.rejectedIds.add(Z.id),this.rescanAfterRejection=!0;if(this.terminated)return{kind:"terminated",subtype:this.terminated.subtype};if(Z?.kind==="rejected")return Z;if(Z?.kind==="pending")return this.everSeenPending=!0,Z;return{kind:"unchanged"}}}async function aJ(Q,J,Z,X){let z=Date.now()+J,Y=new nJ,q=null,f=0,W="running";while(Date.now()<z){if(X?.())throw new L0("poll stopped by caller","stopped",Y.rejectCount);let R,H;try{let P=await oJ(Q,q);R=P.newEvents,q=P.lastEventId,H=P.sessionStatus,f=0}catch(P){if(!$J(P)||++f>=vQ)throw new L0(P instanceof Error?P.message:String(P),"network_or_unknown",Y.rejectCount,{cause:P});await LJ(rJ);continue}let F;try{F=Y.ingest(R)}catch(P){throw new L0(P instanceof Error?P.message:String(P),"extract_marker_missing",Y.rejectCount)}if(F.kind==="approved")return{plan:F.plan,rejectCount:Y.rejectCount,executionTarget:"remote"};if(F.kind==="teleport")return{plan:F.plan,rejectCount:Y.rejectCount,executionTarget:"local"};if(F.kind==="terminated")throw new L0(`remote session ended (${F.subtype}) before plan approval`,"terminated",Y.rejectCount);let O=(H==="idle"||H==="requires_action")&&R.length===0,w=Y.hasPendingPlan?"plan_ready":O?"needs_input":"running";if(w!==W)T0(`[ultraplan] phase ${W} → ${w}`),W=w,Z?.(w);await LJ(rJ)}throw new L0(Y.everSeenPending?`no approval after ${J/1000}s`:`ExitPlanMode never reached after ${J/1000}s (the remote container failed to start, or session ID mismatch?)`,Y.everSeenPending?"timeout_pending":"timeout_no_plan",Y.rejectCount)}function sJ(Q){return typeof Q==="string"?Q:Array.isArray(Q)?Q.map((J)=>("text"in J)?J.text:"").join(""):""}function SQ(Q){let J=sJ(Q),Z=`${gQ}
2
- `,X=J.indexOf(Z);if(X===-1)return null;return J.slice(X+Z.length).trimEnd()}function VQ(Q){let J=sJ(Q),Z=[`## Approved Plan (edited by user):
3
- `,`## Approved Plan:
4
- `];for(let X of Z){let z=J.indexOf(X);if(z!==-1)return J.slice(z+X.length).trimEnd()}throw Error(`ExitPlanMode approved but tool_result has no "## Approved Plan:" marker — remote may have hit the empty-plan or isAgent branch. Content preview: ${J.slice(0,200)}`)}var rJ=3000,vQ=5,L0,gQ="__ULTRAPLAN_TELEPORT_LOCAL__";var eJ=Q0(()=>{iJ();lJ();IQ();hQ();UJ();L0=class L0 extends Error{reason;rejectCount;constructor(Q,J,Z,X){super(Q,X);this.reason=J;this.rejectCount=Z;this.name="UltraplanPollError"}}});var JZ={};tJ(JZ,{default:()=>jQ});var jQ=`This is a planning prompt stub.
5
- `;var ZZ=()=>{};function DQ(){return QZ("tengu_ultraplan_model",zZ.opus46.firstParty)}function rQ(Q,J){let Z=[];if(J)Z.push("Here is a draft plan to refine:","",J,"");if(Z.push(xQ),Q)Z.push("",Q);return Z.join(`
6
- `)}function lQ(Q,J,Z,X,z){let Y=Date.now(),q=!1;(async()=>{try{let{plan:f,rejectCount:W,executionTarget:R}=await aJ(J,pQ,(H)=>{if(H==="needs_input")z0("tengu_ultraplan_awaiting_input",{});l0(Q,z,(F)=>{if(F.status!=="running")return F;let O=H==="running"?void 0:H;return F.ultraplanPhase===O?F:{...F,ultraplanPhase:O}})},()=>X().tasks?.[Q]?.status!=="running");if(z0("tengu_ultraplan_approved",{duration_ms:Date.now()-Y,plan_length:f.length,reject_count:W,execution_target:R}),R==="remote"){if(X().tasks?.[Q]?.status!=="running")return;l0(Q,z,(F)=>F.status!=="running"?F:{...F,status:"completed",endTime:Date.now()}),z((F)=>F.ultraplanSessionUrl===Z?{...F,ultraplanSessionUrl:void 0}:F),b0({value:[`Ultraplan approved — executing in Claude Code on the web. Follow along at: ${Z}`,"","Results will land as a pull request when the remote session finishes. There is nothing to do here."].join(`
7
- `),mode:"task-notification"})}else z((H)=>{let F=H.tasks?.[Q];if(!F||F.status!=="running")return H;return{...H,ultraplanPendingChoice:{plan:f,sessionId:J,taskId:Q}}})}catch(f){if(X().tasks?.[Q]?.status!=="running")return;q=!0,z0("tengu_ultraplan_failed",{duration_ms:Date.now()-Y,reason:f instanceof L0?f.reason:"network_or_unknown",reject_count:f instanceof L0?f.rejectCount:void 0}),b0({value:`Ultraplan failed: ${u0(f)}
8
-
9
- Session: ${Z}`,mode:"task-notification"}),KJ(J).catch((R)=>T0(`ultraplan archive failed: ${String(R)}`)),z((R)=>R.ultraplanSessionUrl===Z?{...R,ultraplanSessionUrl:void 0}:R)}finally{if(q)l0(Q,z,(f)=>f.status!=="running"?f:{...f,status:"failed",endTime:Date.now()})}})()}function iQ(Q){let J=Q?`${WZ} `:"";return`${W0} ultraplan
10
- ${J}Starting Claude Code on the web…`}function $Q(Q){return`${W0} ultraplan · Monitor progress in Claude Code on the web ${Q}
11
- You can continue working — when the ${W0} fills, press ↓ to view results`}function FZ(Q){return Q?`ultraplan: already polling. Open ${Q} to check status, or wait for the plan to land here.`:"ultraplan: already launching. Please wait for the session to start."}async function bJ(Q,J,Z){await $0.kill(Q,Z),Z((z)=>z.ultraplanSessionUrl||z.ultraplanPendingChoice||z.ultraplanLaunching?{...z,ultraplanSessionUrl:void 0,ultraplanPendingChoice:void 0,ultraplanLaunching:void 0}:z);let X=yJ(J,process.env.SESSION_INGRESS_URL);b0({value:`Ultraplan stopped.
12
-
13
- Session: ${X}`,mode:"task-notification"}),b0({value:"The user stopped the ultraplan session above. Do not respond to the stop notification — wait for their next message.",mode:"task-notification",isMeta:!0})}async function oQ(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,disconnectedBridge:q,onSessionReady:f}=Q,{ultraplanSessionUrl:W,ultraplanLaunching:R}=X();if(W||R)return z0("tengu_ultraplan_create_failed",{reason:W?"already_polling":"already_launching"}),FZ(W);if(!J&&!Z)return['Usage: /ultraplan \\<prompt\\>, or include "ultraplan" anywhere',"in your prompt","","Advanced multi-agent plan mode with our most powerful model","(Opus). Runs in Claude Code on the web. When the plan is ready,","you can execute it in the web session or send it back here.","Terminal stays free while the remote plans.","Requires /login.","",`Terms: ${RZ}`].join(`
14
- `);return z((H)=>H.ultraplanLaunching?H:{...H,ultraplanLaunching:!0}),nQ({blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,onSessionReady:f}),iQ(q)}async function nQ(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,onSessionReady:q}=Q,f;try{let W=DQ(),R=await qZ();if(!R.eligible){z0("tengu_ultraplan_create_failed",{reason:"precondition",precondition_errors:R.errors.map((b)=>b.type).join(",")});let L=R.errors.map(GZ).join(`
15
- `);b0({value:`ultraplan: cannot launch remote session —
16
- ${L}`,mode:"task-notification"});return}let H=rQ(J,Z),F,O=await fZ({initialMessage:H,description:J||"Refine local plan",model:W,permissionMode:"plan",ultraplan:!0,signal:Y,useDefaultEnvironment:!0,onBundleFail:(L)=>{F=L}});if(!O){z0("tengu_ultraplan_create_failed",{reason:F?"bundle_fail":"teleport_null"}),b0({value:`ultraplan: session creation failed${F?` — ${F}`:""}. See --debug for details.`,mode:"task-notification"});return}f=O.id;let w=yJ(O.id,process.env.SESSION_INGRESS_URL);z((L)=>({...L,ultraplanSessionUrl:w,ultraplanLaunching:void 0})),q?.($Q(w)),z0("tengu_ultraplan_launched",{has_seed_plan:Boolean(Z),model:W});let{taskId:P}=NZ({remoteTaskType:"ultraplan",session:{id:O.id,title:J||"Ultraplan"},command:J,context:{abortController:new AbortController,getAppState:X,setAppState:z},isUltraplan:!0});lQ(P,O.id,w,X,z)}catch(W){if(YZ(W),z0("tengu_ultraplan_create_failed",{reason:"unexpected_error"}),b0({value:`ultraplan: unexpected error — ${u0(W)}`,mode:"task-notification"}),f)KJ(f).catch((R)=>T0("ultraplan: failed to archive orphaned session",R)),z((R)=>R.ultraplanSessionUrl?{...R,ultraplanSessionUrl:void 0}:R)}finally{z((W)=>W.ultraplanLaunching?{...W,ultraplanLaunching:void 0}:W)}}var pQ=1800000,RZ="https://code.claude.com/docs/en/claude-code-on-the-web",wJ,kQ,xQ,aQ=async(Q,J,Z)=>{let X=Z.trim();if(!X){let q=await oQ({blurb:X,getAppState:J.getAppState,setAppState:J.setAppState,signal:J.abortController.signal});return Q(q,{display:"system"}),null}let{ultraplanSessionUrl:z,ultraplanLaunching:Y}=J.getAppState();if(z||Y)return z0("tengu_ultraplan_create_failed",{reason:z?"already_polling":"already_launching"}),Q(FZ(z),{display:"system"}),null;return J.setAppState((q)=>({...q,ultraplanLaunchPending:{blurb:X}})),Q(void 0,{display:"skip"}),null},wY;var HZ=Q0(()=>{mQ();i0();uQ();_Q();DJ();CJ();lJ();XZ();cQ();dQ();TQ();EQ();UJ();eJ();wJ=(ZZ(),MJ(JZ)),kQ=(typeof wJ==="string"?wJ:wJ.default).trimEnd(),xQ=kQ;wY={type:"local-jsx",name:"ultraplan",description:`~10–30 min · Claude Code on the web drafts an advanced plan you can edit and approve. See ${RZ}`,argumentHint:"<prompt>",isEnabled:()=>!1,load:()=>Promise.resolve({call:aQ})}});function o0(Q,J,Z){let X=OZ(J,Q.toolName);if(!X)return Q.toolName;try{let z=X.inputSchema.safeParse(Q.input),Y=z.success?z.data:{},q=X.userFacingName(Y);if(!q)return Q.toolName;let f=X.renderToolUseMessage(Y,{theme:Z,verbose:!1});if(f)return PZ.jsxDEV(G,{children:[q,"(",f,")"]},void 0,!0,void 0,this);return q}catch{return Q.toolName}}var PZ;var BJ=Q0(()=>{R0();AJ();PZ=l(J0(),1)});function bZ(Q){let J=CZ.c(54),{agent:Z,onDone:X,onKillAgent:z,onBack:Y}=Q,[q]=a0(),f;if(J[0]===Symbol.for("react.memo_cache_sentinel"))f=t0(s0()),J[0]=f;else f=J[0];let W=f,R=w0(Z.startTime,Z.status==="running",1000,Z.totalPausedMs??0),H;if(J[1]!==X)H={"confirm:yes":X},J[1]=X,J[2]=H;else H=J[2];let F;if(J[3]===Symbol.for("react.memo_cache_sentinel"))F={context:"Confirmation"},J[3]=F;else F=J[3];F0(H,F);let O;if(J[4]!==Z.status||J[5]!==Y||J[6]!==X||J[7]!==z)O=(j)=>{if(j.key===" ")j.preventDefault(),X();else if(j.key==="left"&&Y)j.preventDefault(),Y();else if(j.key==="x"&&Z.status==="running"&&z)j.preventDefault(),z()},J[4]=Z.status,J[5]=Y,J[6]=X,J[7]=z,J[8]=O;else O=J[8];let w=O,P;if(J[9]!==Z.prompt)P=yZ(Z.prompt,"plan"),J[9]=Z.prompt,J[10]=P;else P=J[10];let L=P,b=Z.prompt.length>300?Z.prompt.substring(0,297)+"…":Z.prompt,C=Z.result?.totalTokens??Z.progress?.tokenCount,I=Z.result?.totalToolUseCount??Z.progress?.toolUseCount,S=Z.selectedAgent?.agentType??"agent",g=Z.description||"Async agent",v;if(J[11]!==S||J[12]!==g)v=o.jsxDEV(G,{children:[S," ›"," ",g]},void 0,!0,void 0,this),J[11]=S,J[12]=g,J[13]=v;else v=J[13];let K=v,h;if(J[14]!==Z.status)h=Z.status!=="running"&&o.jsxDEV(G,{color:wZ(Z.status),children:[UZ(Z.status)," ",Z.status==="completed"?"Completed":Z.status==="failed"?"Failed":"Stopped"," · "]},void 0,!0,void 0,this),J[14]=Z.status,J[15]=h;else h=J[15];let p;if(J[16]!==C)p=C!==void 0&&C>0&&o.jsxDEV(o.Fragment,{children:[" · ",n0(C)," tokens"]},void 0,!0,void 0,this),J[16]=C,J[17]=p;else p=J[17];let E;if(J[18]!==I)E=I!==void 0&&I>0&&o.jsxDEV(o.Fragment,{children:[" ","· ",I," ",I===1?"tool":"tools"]},void 0,!0,void 0,this),J[18]=I,J[19]=E;else E=J[19];let _;if(J[20]!==R||J[21]!==p||J[22]!==E)_=o.jsxDEV(G,{dimColor:!0,children:[R,p,E]},void 0,!0,void 0,this),J[20]=R,J[21]=p,J[22]=E,J[23]=_;else _=J[23];let x;if(J[24]!==_||J[25]!==h)x=o.jsxDEV(G,{children:[h,_]},void 0,!0,void 0,this),J[24]=_,J[25]=h,J[26]=x;else x=J[26];let m=x,V;if(J[27]!==Z.status||J[28]!==Y||J[29]!==z)V=(j)=>j.pending?o.jsxDEV(G,{children:["Press ",j.keyName," again to exit"]},void 0,!0,void 0,this):o.jsxDEV(f0,{children:[Y&&o.jsxDEV(i,{shortcut:"←",action:"go back"},void 0,!1,void 0,this),o.jsxDEV(i,{shortcut:"Esc/Enter/Space",action:"close"},void 0,!1,void 0,this),Z.status==="running"&&z&&o.jsxDEV(i,{shortcut:"x",action:"stop"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J[27]=Z.status,J[28]=Y,J[29]=z,J[30]=V;else V=J[30];let B;if(J[31]!==Z.progress||J[32]!==Z.status||J[33]!==q)B=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&o.jsxDEV(A,{flexDirection:"column",children:[o.jsxDEV(G,{bold:!0,dimColor:!0,children:"Progress"},void 0,!1,void 0,this),Z.progress.recentActivities.map((j,k)=>o.jsxDEV(G,{dimColor:k<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[k===Z.progress.recentActivities.length-1?"› ":" ",o0(j,W,q)]},k,!0,void 0,this))]},void 0,!0,void 0,this),J[31]=Z.progress,J[32]=Z.status,J[33]=q,J[34]=B;else B=J[34];let D;if(J[35]!==b||J[36]!==L)D=L?o.jsxDEV(A,{marginTop:1,children:o.jsxDEV(LZ,{addMargin:!1,planContent:L},void 0,!1,void 0,this)},void 0,!1,void 0,this):o.jsxDEV(A,{flexDirection:"column",marginTop:1,children:[o.jsxDEV(G,{bold:!0,dimColor:!0,children:"Prompt"},void 0,!1,void 0,this),o.jsxDEV(G,{wrap:"wrap",children:b},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J[35]=b,J[36]=L,J[37]=D;else D=J[37];let u;if(J[38]!==Z.error||J[39]!==Z.status)u=Z.status==="failed"&&Z.error&&o.jsxDEV(A,{flexDirection:"column",marginTop:1,children:[o.jsxDEV(G,{bold:!0,color:"error",children:"Error"},void 0,!1,void 0,this),o.jsxDEV(G,{color:"error",wrap:"wrap",children:Z.error},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J[38]=Z.error,J[39]=Z.status,J[40]=u;else u=J[40];let T;if(J[41]!==B||J[42]!==D||J[43]!==u)T=o.jsxDEV(A,{flexDirection:"column",children:[B,D,u]},void 0,!0,void 0,this),J[41]=B,J[42]=D,J[43]=u,J[44]=T;else T=J[44];let c;if(J[45]!==X||J[46]!==m||J[47]!==V||J[48]!==T||J[49]!==K)c=o.jsxDEV(Z0,{title:K,subtitle:m,onCancel:X,color:"background",inputGuide:V,children:T},void 0,!1,void 0,this),J[45]=X,J[46]=m,J[47]=V,J[48]=T,J[49]=K,J[50]=c;else c=J[50];let d;if(J[51]!==w||J[52]!==c)d=o.jsxDEV(A,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:w,children:c},void 0,!1,void 0,this),J[51]=w,J[52]=c,J[53]=d;else d=J[53];return d}var CZ,o;var AZ=Q0(()=>{e0();R0();E0();AJ();MZ();d0();KZ();j0();_0();V0();sQ();BJ();IJ();CZ=l(U0(),1),o=l(J0(),1)});function VJ(Q,J,Z,X){if(!Q)return`${J} found · ${Z} verified`;if(Q==="synthesizing"){let z=[`${Z} verified`];if(X>0)z.push(`${X} refuted`);return z.push("deduping"),z.join(" · ")}if(Q==="verifying"){let z=[`${J} found`,`${Z} verified`];if(X>0)z.push(`${X} refuted`);return z.join(" · ")}return J>0?`${J} found`:"finding"}function hJ(Q){let J=ZJ.c(5),{text:Z,phase:X}=Q,z=X===void 0?0:X,Y;if(J[0]!==Z)Y=[...Z],J[0]=Z,J[1]=Y;else Y=J[1];let q;if(J[2]!==z||J[3]!==Y)q=a.jsxDEV(a.Fragment,{children:Y.map((f,W)=>a.jsxDEV(G,{color:hZ(W+z),children:f},W,!1,void 0,this))},void 0,!1,void 0,this),J[2]=z,J[3]=Y,J[4]=q;else q=J[4];return q}function vJ(Q,J,Z){let X=gJ.useRef(Q),z=gJ.useRef(J);if(Z||Q<X.current)X.current=Q;else if(Q>X.current&&J!==z.current)X.current+=1,z.current=J;return X.current}function JX(Q){let J=ZJ.c(15),{session:Z}=Q,z=vZ().prefersReducedMotion??!1,Y=Z.reviewProgress,q=Z.status==="running",[,f]=IZ(q&&!z?BZ:null),W=Y?.bugsFound??0,R=Y?.bugsVerified??0,H=Y?.bugsRefuted??0,F=z||!q,O=vJ(W,f,F),w=vJ(R,f,F),P=vJ(H,f,F),L=Math.floor(f/(BZ*3))%7;if(Z.status==="completed"){let h;if(J[0]===Symbol.for("react.memo_cache_sentinel"))h=a.jsxDEV(a.Fragment,{children:[a.jsxDEV(G,{color:"background",children:[A0," "]},void 0,!0,void 0,this),a.jsxDEV(hJ,{text:"ultrareview",phase:0},void 0,!1,void 0,this),a.jsxDEV(G,{dimColor:!0,children:" ready · shift+↓ to view"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J[0]=h;else h=J[0];return h}if(Z.status==="failed"){let h;if(J[1]===Symbol.for("react.memo_cache_sentinel"))h=a.jsxDEV(a.Fragment,{children:[a.jsxDEV(G,{color:"background",children:[A0," "]},void 0,!0,void 0,this),a.jsxDEV(hJ,{text:"ultrareview",phase:0},void 0,!1,void 0,this),a.jsxDEV(G,{color:"error",dimColor:!0,children:[" · ","error"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),J[1]=h;else h=J[1];return h}let b;if(J[2]!==O||J[3]!==Y||J[4]!==P||J[5]!==w)b=!Y?"setting up":VJ(Y.stage,O,w,P),J[2]=O,J[3]=Y,J[4]=P,J[5]=w,J[6]=b;else b=J[6];let C=b,I;if(J[7]===Symbol.for("react.memo_cache_sentinel"))I=a.jsxDEV(G,{color:"background",children:[W0," "]},void 0,!0,void 0,this),J[7]=I;else I=J[7];let S=q?L:0,g;if(J[8]!==S)g=a.jsxDEV(hJ,{text:"ultrareview",phase:S},void 0,!1,void 0,this),J[8]=S,J[9]=g;else g=J[9];let v;if(J[10]!==C)v=a.jsxDEV(G,{dimColor:!0,children:[" · ",C]},void 0,!0,void 0,this),J[10]=C,J[11]=v;else v=J[11];let K;if(J[12]!==g||J[13]!==v)K=a.jsxDEV(a.Fragment,{children:[I,g,v]},void 0,!0,void 0,this),J[12]=g,J[13]=v,J[14]=K;else K=J[14];return K}function m0(Q){let J=ZJ.c(11),{session:Z}=Q;if(Z.isRemoteReview){let f;if(J[0]!==Z)f=a.jsxDEV(JX,{session:Z},void 0,!1,void 0,this),J[0]=Z,J[1]=f;else f=J[1];return f}if(Z.status==="completed"){let f;if(J[2]===Symbol.for("react.memo_cache_sentinel"))f=a.jsxDEV(G,{bold:!0,color:"success",dimColor:!0,children:"done"},void 0,!1,void 0,this),J[2]=f;else f=J[2];return f}if(Z.status==="failed"){let f;if(J[3]===Symbol.for("react.memo_cache_sentinel"))f=a.jsxDEV(G,{bold:!0,color:"error",dimColor:!0,children:"error"},void 0,!1,void 0,this),J[3]=f;else f=J[3];return f}if(!Z.todoList.length){let f;if(J[4]!==Z.status)f=a.jsxDEV(G,{dimColor:!0,children:[Z.status,"…"]},void 0,!0,void 0,this),J[4]=Z.status,J[5]=f;else f=J[5];return f}let X;if(J[6]!==Z.todoList)X=B0(Z.todoList,ZX),J[6]=Z.todoList,J[7]=X;else X=J[7];let z=X,Y=Z.todoList.length,q;if(J[8]!==z||J[9]!==Y)q=a.jsxDEV(G,{dimColor:!0,children:[z,"/",Y]},void 0,!0,void 0,this),J[8]=z,J[9]=Y,J[10]=q;else q=J[10];return q}function ZX(Q){return Q.status==="completed"}var ZJ,gJ,a,BZ=80;var jJ=Q0(()=>{i0();tQ();R0();SJ();eQ();ZJ=l(U0(),1),gJ=l(JJ(),1),a=l(J0(),1)});function M0(Q){let J=_J.c(4),{status:Z,label:X,suffix:z}=Q,Y=X??Z,q=Z==="completed"?"success":Z==="failed"?"error":Z==="killed"?"warning":void 0,f;if(J[0]!==q||J[1]!==Y||J[2]!==z)f=c0.jsxDEV(G,{color:q,dimColor:!0,children:["(",Y,z,")"]},void 0,!0,void 0,this),J[0]=q,J[1]=Y,J[2]=z,J[3]=f;else f=J[3];return f}function gZ(Q){let J=_J.c(4),{shell:Z}=Q;switch(Z.status){case"completed":{let X;if(J[0]===Symbol.for("react.memo_cache_sentinel"))X=c0.jsxDEV(M0,{status:"completed",label:"done"},void 0,!1,void 0,this),J[0]=X;else X=J[0];return X}case"failed":{let X;if(J[1]===Symbol.for("react.memo_cache_sentinel"))X=c0.jsxDEV(M0,{status:"failed",label:"error"},void 0,!1,void 0,this),J[1]=X;else X=J[1];return X}case"killed":{let X;if(J[2]===Symbol.for("react.memo_cache_sentinel"))X=c0.jsxDEV(M0,{status:"killed",label:"stopped"},void 0,!1,void 0,this),J[2]=X;else X=J[2];return X}case"running":case"pending":{let X;if(J[3]===Symbol.for("react.memo_cache_sentinel"))X=c0.jsxDEV(M0,{status:"running"},void 0,!1,void 0,this),J[3]=X;else X=J[3];return X}}}var _J,c0;var SZ=Q0(()=>{R0();_J=l(U0(),1),c0=l(J0(),1)});function _Z(Q){let J=jZ.c(92),{task:Z,maxActivityWidth:X}=Q,z=X??40;switch(Z.type){case"local_bash":{let Y=Z.kind==="monitor"?Z.description:Z.command,q;if(J[0]!==z||J[1]!==Y)q=S0(Y,z,!0),J[0]=z,J[1]=Y,J[2]=q;else q=J[2];let f;if(J[3]!==Z)f=t.jsxDEV(gZ,{shell:Z},void 0,!1,void 0,this),J[3]=Z,J[4]=f;else f=J[4];let W;if(J[5]!==q||J[6]!==f)W=t.jsxDEV(G,{children:[q," ",f]},void 0,!0,void 0,this),J[5]=q,J[6]=f,J[7]=W;else W=J[7];return W}case"remote_agent":{if(Z.isRemoteReview){let O;if(J[8]!==Z)O=t.jsxDEV(G,{children:t.jsxDEV(m0,{session:Z},void 0,!1,void 0,this)},void 0,!1,void 0,this),J[8]=Z,J[9]=O;else O=J[9];return O}let q=Z.status==="running"||Z.status==="pending"?W0:A0,f;if(J[10]!==q)f=t.jsxDEV(G,{dimColor:!0,children:[q," "]},void 0,!0,void 0,this),J[10]=q,J[11]=f;else f=J[11];let W;if(J[12]!==z||J[13]!==Z.title)W=S0(Z.title,z,!0),J[12]=z,J[13]=Z.title,J[14]=W;else W=J[14];let R;if(J[15]===Symbol.for("react.memo_cache_sentinel"))R=t.jsxDEV(G,{dimColor:!0,children:" · "},void 0,!1,void 0,this),J[15]=R;else R=J[15];let H;if(J[16]!==Z)H=t.jsxDEV(m0,{session:Z},void 0,!1,void 0,this),J[16]=Z,J[17]=H;else H=J[17];let F;if(J[18]!==f||J[19]!==W||J[20]!==H)F=t.jsxDEV(G,{children:[f,W,R,H]},void 0,!0,void 0,this),J[18]=f,J[19]=W,J[20]=H,J[21]=F;else F=J[21];return F}case"local_agent":{let Y;if(J[22]!==z||J[23]!==Z.description)Y=S0(Z.description,z,!0),J[22]=z,J[23]=Z.description,J[24]=Y;else Y=J[24];let q=Z.status==="completed"?"done":void 0,f=Z.status==="completed"&&!Z.notified?", unread":void 0,W;if(J[25]!==q||J[26]!==f||J[27]!==Z.status)W=t.jsxDEV(M0,{status:Z.status,label:q,suffix:f},void 0,!1,void 0,this),J[25]=q,J[26]=f,J[27]=Z.status,J[28]=W;else W=J[28];let R;if(J[29]!==Y||J[30]!==W)R=t.jsxDEV(G,{children:[Y," ",W]},void 0,!0,void 0,this),J[29]=Y,J[30]=W,J[31]=R;else R=J[31];return R}case"in_process_teammate":{let Y,q,f,W,R,H;if(J[32]!==z||J[33]!==Z){let w=XJ(Z);q=G;let P;if(J[40]!==Z.identity.color)P=QJ(Z.identity.color),J[40]=Z.identity.color,J[41]=P;else P=J[41];if(J[42]!==P||J[43]!==Z.identity.agentName)H=t.jsxDEV(G,{color:P,children:["@",Z.identity.agentName]},void 0,!0,void 0,this),J[42]=P,J[43]=Z.identity.agentName,J[44]=H;else H=J[44];Y=G,f=!0,W=": ",R=S0(w,z,!0),J[32]=z,J[33]=Z,J[34]=Y,J[35]=q,J[36]=f,J[37]=W,J[38]=R,J[39]=H}else Y=J[34],q=J[35],f=J[36],W=J[37],R=J[38],H=J[39];let F;if(J[45]!==Y||J[46]!==f||J[47]!==W||J[48]!==R)F=t.jsxDEV(Y,{dimColor:f,children:[W,R]},void 0,!0,void 0,this),J[45]=Y,J[46]=f,J[47]=W,J[48]=R,J[49]=F;else F=J[49];let O;if(J[50]!==q||J[51]!==H||J[52]!==F)O=t.jsxDEV(q,{children:[H,F]},void 0,!0,void 0,this),J[50]=q,J[51]=H,J[52]=F,J[53]=O;else O=J[53];return O}case"local_workflow":{let Y=Z.workflowName??Z.summary??Z.description,q;if(J[54]!==z||J[55]!==Y)q=S0(Y,z,!0),J[54]=z,J[55]=Y,J[56]=q;else q=J[56];let f;if(J[57]!==Z.agentCount||J[58]!==Z.status)f=Z.status==="running"?`${Z.agentCount} ${q0(Z.agentCount,"agent")}`:Z.status==="completed"?"done":void 0,J[57]=Z.agentCount,J[58]=Z.status,J[59]=f;else f=J[59];let W=Z.status==="completed"&&!Z.notified?", unread":void 0,R;if(J[60]!==f||J[61]!==W||J[62]!==Z.status)R=t.jsxDEV(M0,{status:Z.status,label:f,suffix:W},void 0,!1,void 0,this),J[60]=f,J[61]=W,J[62]=Z.status,J[63]=R;else R=J[63];let H;if(J[64]!==q||J[65]!==R)H=t.jsxDEV(G,{children:[q," ",R]},void 0,!0,void 0,this),J[64]=q,J[65]=R,J[66]=H;else H=J[66];return H}case"monitor_mcp":{let Y;if(J[67]!==z||J[68]!==Z.description)Y=S0(Z.description,z,!0),J[67]=z,J[68]=Z.description,J[69]=Y;else Y=J[69];let q=Z.status==="completed"?"done":void 0,f=Z.status==="completed"&&!Z.notified?", unread":void 0,W;if(J[70]!==q||J[71]!==f||J[72]!==Z.status)W=t.jsxDEV(M0,{status:Z.status,label:q,suffix:f},void 0,!1,void 0,this),J[70]=q,J[71]=f,J[72]=Z.status,J[73]=W;else W=J[73];let R;if(J[74]!==Y||J[75]!==W)R=t.jsxDEV(G,{children:[Y," ",W]},void 0,!0,void 0,this),J[74]=Y,J[75]=W,J[76]=R;else R=J[76];return R}case"dream":{let Y=Z.filesTouched.length,q;if(J[77]!==Y||J[78]!==Z.phase||J[79]!==Z.sessionsReviewing)q=Z.phase==="updating"&&Y>0?`${Y} ${q0(Y,"file")}`:`${Z.sessionsReviewing} ${q0(Z.sessionsReviewing,"session")}`,J[77]=Y,J[78]=Z.phase,J[79]=Z.sessionsReviewing,J[80]=q;else q=J[80];let f=q,W;if(J[81]!==f||J[82]!==Z.phase)W=t.jsxDEV(G,{dimColor:!0,children:["· ",Z.phase," · ",f]},void 0,!0,void 0,this),J[81]=f,J[82]=Z.phase,J[83]=W;else W=J[83];let R=Z.status==="completed"?"done":void 0,H=Z.status==="completed"&&!Z.notified?", unread":void 0,F;if(J[84]!==R||J[85]!==H||J[86]!==Z.status)F=t.jsxDEV(M0,{status:Z.status,label:R,suffix:H},void 0,!1,void 0,this),J[84]=R,J[85]=H,J[86]=Z.status,J[87]=F;else F=J[87];let O;if(J[88]!==W||J[89]!==F||J[90]!==Z.description)O=t.jsxDEV(G,{children:[Z.description," ",W," ",F]},void 0,!0,void 0,this),J[88]=W,J[89]=F,J[90]=Z.description,J[91]=O;else O=J[91];return O}}}var jZ,t;var cZ=Q0(()=>{R0();d0();VZ();cJ();i0();jJ();SZ();IJ();jZ=l(U0(),1),t=l(J0(),1)});function uZ(Q){let J=TZ.c(70),{task:Z,onDone:X,onBack:z,onKill:Y}=Q,q=w0(Z.startTime,Z.status==="running",1000,0),f;if(J[0]!==X)f={"confirm:yes":X},J[0]=X,J[1]=f;else f=J[1];let W;if(J[2]===Symbol.for("react.memo_cache_sentinel"))W={context:"Confirmation"},J[2]=W;else W=J[2];F0(f,W);let R;if(J[3]!==z||J[4]!==X||J[5]!==Y||J[6]!==Z.status)R=(B)=>{if(B.key===" ")B.preventDefault(),X();else if(B.key==="left"&&z)B.preventDefault(),z();else if(B.key==="x"&&Z.status==="running"&&Y)B.preventDefault(),Y()},J[3]=z,J[4]=X,J[5]=Y,J[6]=Z.status,J[7]=R;else R=J[7];let H=R,F,O,w,P,L,b,C,I,S,g,v,K,h,p,E,_;if(J[8]!==q||J[9]!==H||J[10]!==z||J[11]!==X||J[12]!==Y||J[13]!==Z.filesTouched.length||J[14]!==Z.sessionsReviewing||J[15]!==Z.status||J[16]!==Z.turns){let B=Z.turns.filter(YX),D=B.slice(-QX),u=B.length-D.length;w=A,C="column",I=0,S=!0,g=H,O=Z0,E="Memory consolidation";let T=Z.sessionsReviewing,c;if(J[33]!==Z.sessionsReviewing)c=q0(Z.sessionsReviewing,"session"),J[33]=Z.sessionsReviewing,J[34]=c;else c=J[34];let d;if(J[35]!==Z.filesTouched.length)d=Z.filesTouched.length>0&&s.jsxDEV(s.Fragment,{children:[" ","· ",Z.filesTouched.length," ",q0(Z.filesTouched.length,"file")," touched"]},void 0,!0,void 0,this),J[35]=Z.filesTouched.length,J[36]=d;else d=J[36];if(J[37]!==q||J[38]!==c||J[39]!==d||J[40]!==Z.sessionsReviewing)_=s.jsxDEV(G,{dimColor:!0,children:[q," · reviewing ",T," ",c,d]},void 0,!0,void 0,this),J[37]=q,J[38]=c,J[39]=d,J[40]=Z.sessionsReviewing,J[41]=_;else _=J[41];if(P=X,L="background",J[42]!==z||J[43]!==Y||J[44]!==Z.status)b=(k)=>k.pending?s.jsxDEV(G,{children:["Press ",k.keyName," again to exit"]},void 0,!0,void 0,this):s.jsxDEV(f0,{children:[z&&s.jsxDEV(i,{shortcut:"←",action:"go back"},void 0,!1,void 0,this),s.jsxDEV(i,{shortcut:"Esc/Enter/Space",action:"close"},void 0,!1,void 0,this),Z.status==="running"&&Y&&s.jsxDEV(i,{shortcut:"x",action:"stop"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J[42]=z,J[43]=Y,J[44]=Z.status,J[45]=b;else b=J[45];F=A,v="column",K=1;let j;if(J[46]===Symbol.for("react.memo_cache_sentinel"))j=s.jsxDEV(G,{bold:!0,children:"Status:"},void 0,!1,void 0,this),J[46]=j;else j=J[46];if(J[47]!==Z.status)h=s.jsxDEV(G,{children:[j," ",Z.status==="running"?s.jsxDEV(G,{color:"background",children:"running"},void 0,!1,void 0,this):Z.status==="completed"?s.jsxDEV(G,{color:"success",children:Z.status},void 0,!1,void 0,this):s.jsxDEV(G,{color:"error",children:Z.status},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J[47]=Z.status,J[48]=h;else h=J[48];p=D.length===0?s.jsxDEV(G,{dimColor:!0,children:Z.status==="running"?"Starting…":"(no text output)"},void 0,!1,void 0,this):s.jsxDEV(s.Fragment,{children:[u>0&&s.jsxDEV(G,{dimColor:!0,children:["(",u," earlier ",q0(u,"turn"),")"]},void 0,!0,void 0,this),D.map(XX)]},void 0,!0,void 0,this),J[8]=q,J[9]=H,J[10]=z,J[11]=X,J[12]=Y,J[13]=Z.filesTouched.length,J[14]=Z.sessionsReviewing,J[15]=Z.status,J[16]=Z.turns,J[17]=F,J[18]=O,J[19]=w,J[20]=P,J[21]=L,J[22]=b,J[23]=C,J[24]=I,J[25]=S,J[26]=g,J[27]=v,J[28]=K,J[29]=h,J[30]=p,J[31]=E,J[32]=_}else F=J[17],O=J[18],w=J[19],P=J[20],L=J[21],b=J[22],C=J[23],I=J[24],S=J[25],g=J[26],v=J[27],K=J[28],h=J[29],p=J[30],E=J[31],_=J[32];let x;if(J[49]!==F||J[50]!==v||J[51]!==K||J[52]!==h||J[53]!==p)x=s.jsxDEV(F,{flexDirection:v,gap:K,children:[h,p]},void 0,!0,void 0,this),J[49]=F,J[50]=v,J[51]=K,J[52]=h,J[53]=p,J[54]=x;else x=J[54];let m;if(J[55]!==O||J[56]!==P||J[57]!==L||J[58]!==b||J[59]!==x||J[60]!==E||J[61]!==_)m=s.jsxDEV(O,{title:E,subtitle:_,onCancel:P,color:L,inputGuide:b,children:x},void 0,!1,void 0,this),J[55]=O,J[56]=P,J[57]=L,J[58]=b,J[59]=x,J[60]=E,J[61]=_,J[62]=m;else m=J[62];let V;if(J[63]!==w||J[64]!==C||J[65]!==I||J[66]!==S||J[67]!==g||J[68]!==m)V=s.jsxDEV(w,{flexDirection:C,tabIndex:I,autoFocus:S,onKeyDown:g,children:m},void 0,!1,void 0,this),J[63]=w,J[64]=C,J[65]=I,J[66]=S,J[67]=g,J[68]=m,J[69]=V;else V=J[69];return V}function XX(Q,J){return s.jsxDEV(A,{flexDirection:"column",children:[s.jsxDEV(G,{wrap:"wrap",children:Q.text},void 0,!1,void 0,this),Q.toolUseCount>0&&s.jsxDEV(G,{dimColor:!0,children:[" ","(",Q.toolUseCount," ",q0(Q.toolUseCount,"tool"),")"]},void 0,!0,void 0,this)]},J,!0,void 0,this)}function YX(Q){return Q.text!==""}var TZ,s,QX=6;var dZ=Q0(()=>{e0();R0();E0();cJ();j0();_0();V0();TZ=l(U0(),1),s=l(J0(),1)});function mZ(Q){let J=EZ.c(63),{teammate:Z,onDone:X,onKill:z,onBack:Y,onForeground:q}=Q,[f]=a0(),W;if(J[0]===Symbol.for("react.memo_cache_sentinel"))W=t0(s0()),J[0]=W;else W=J[0];let R=W,H=w0(Z.startTime,Z.status==="running",1000,Z.totalPausedMs??0),F;if(J[1]!==X)F={"confirm:yes":X},J[1]=X,J[2]=F;else F=J[2];let O;if(J[3]===Symbol.for("react.memo_cache_sentinel"))O={context:"Confirmation"},J[3]=O;else O=J[3];F0(F,O);let w;if(J[4]!==Y||J[5]!==X||J[6]!==q||J[7]!==z||J[8]!==Z.status)w=(y)=>{if(y.key===" ")y.preventDefault(),X();else if(y.key==="left"&&Y)y.preventDefault(),Y();else if(y.key==="x"&&Z.status==="running"&&z)y.preventDefault(),z();else if(y.key==="f"&&Z.status==="running"&&q)y.preventDefault(),q()},J[4]=Y,J[5]=X,J[6]=q,J[7]=z,J[8]=Z.status,J[9]=w;else w=J[9];let P=w,L;if(J[10]!==Z)L=XJ(Z),J[10]=Z,J[11]=L;else L=J[11];let b=L,C=Z.result?.totalTokens??Z.progress?.tokenCount,I=Z.result?.totalToolUseCount??Z.progress?.toolUseCount,S;if(J[12]!==Z.prompt)S=I0(Z.prompt,300),J[12]=Z.prompt,J[13]=S;else S=J[13];let g=S,v;if(J[14]!==Z.identity.color)v=QJ(Z.identity.color),J[14]=Z.identity.color,J[15]=v;else v=J[15];let K;if(J[16]!==v||J[17]!==Z.identity.agentName)K=n.jsxDEV(G,{color:v,children:["@",Z.identity.agentName]},void 0,!0,void 0,this),J[16]=v,J[17]=Z.identity.agentName,J[18]=K;else K=J[18];let h;if(J[19]!==b)h=b&&n.jsxDEV(G,{dimColor:!0,children:[" (",b,")"]},void 0,!0,void 0,this),J[19]=b,J[20]=h;else h=J[20];let p;if(J[21]!==K||J[22]!==h)p=n.jsxDEV(G,{children:[K,h]},void 0,!0,void 0,this),J[21]=K,J[22]=h,J[23]=p;else p=J[23];let E=p,_;if(J[24]!==Z.status)_=Z.status!=="running"&&n.jsxDEV(G,{color:Z.status==="completed"?"success":Z.status==="killed"?"warning":"error",children:[Z.status==="completed"?"Completed":Z.status==="failed"?"Failed":"Stopped"," · "]},void 0,!0,void 0,this),J[24]=Z.status,J[25]=_;else _=J[25];let x;if(J[26]!==C)x=C!==void 0&&C>0&&n.jsxDEV(n.Fragment,{children:[" · ",n0(C)," tokens"]},void 0,!0,void 0,this),J[26]=C,J[27]=x;else x=J[27];let m;if(J[28]!==I)m=I!==void 0&&I>0&&n.jsxDEV(n.Fragment,{children:[" ","· ",I," ",I===1?"tool":"tools"]},void 0,!0,void 0,this),J[28]=I,J[29]=m;else m=J[29];let V;if(J[30]!==H||J[31]!==x||J[32]!==m)V=n.jsxDEV(G,{dimColor:!0,children:[H,x,m]},void 0,!0,void 0,this),J[30]=H,J[31]=x,J[32]=m,J[33]=V;else V=J[33];let B;if(J[34]!==_||J[35]!==V)B=n.jsxDEV(G,{children:[_,V]},void 0,!0,void 0,this),J[34]=_,J[35]=V,J[36]=B;else B=J[36];let D=B,u;if(J[37]!==Y||J[38]!==q||J[39]!==z||J[40]!==Z.status)u=(y)=>y.pending?n.jsxDEV(G,{children:["Press ",y.keyName," again to exit"]},void 0,!0,void 0,this):n.jsxDEV(f0,{children:[Y&&n.jsxDEV(i,{shortcut:"←",action:"go back"},void 0,!1,void 0,this),n.jsxDEV(i,{shortcut:"Esc/Enter/Space",action:"close"},void 0,!1,void 0,this),Z.status==="running"&&z&&n.jsxDEV(i,{shortcut:"x",action:"stop"},void 0,!1,void 0,this),Z.status==="running"&&q&&n.jsxDEV(i,{shortcut:"f",action:"foreground"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J[37]=Y,J[38]=q,J[39]=z,J[40]=Z.status,J[41]=u;else u=J[41];let T;if(J[42]!==Z.progress||J[43]!==Z.status||J[44]!==f)T=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&n.jsxDEV(A,{flexDirection:"column",children:[n.jsxDEV(G,{bold:!0,dimColor:!0,children:"Progress"},void 0,!1,void 0,this),Z.progress.recentActivities.map((y,r)=>n.jsxDEV(G,{dimColor:r<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[r===Z.progress.recentActivities.length-1?"› ":" ",o0(y,R,f)]},r,!0,void 0,this))]},void 0,!0,void 0,this),J[42]=Z.progress,J[43]=Z.status,J[44]=f,J[45]=T;else T=J[45];let c;if(J[46]===Symbol.for("react.memo_cache_sentinel"))c=n.jsxDEV(G,{bold:!0,dimColor:!0,children:"Prompt"},void 0,!1,void 0,this),J[46]=c;else c=J[46];let d;if(J[47]!==g)d=n.jsxDEV(A,{flexDirection:"column",marginTop:1,children:[c,n.jsxDEV(G,{wrap:"wrap",children:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J[47]=g,J[48]=d;else d=J[48];let j;if(J[49]!==Z.error||J[50]!==Z.status)j=Z.status==="failed"&&Z.error&&n.jsxDEV(A,{flexDirection:"column",marginTop:1,children:[n.jsxDEV(G,{bold:!0,color:"error",children:"Error"},void 0,!1,void 0,this),n.jsxDEV(G,{color:"error",wrap:"wrap",children:Z.error},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J[49]=Z.error,J[50]=Z.status,J[51]=j;else j=J[51];let k;if(J[52]!==X||J[53]!==D||J[54]!==u||J[55]!==T||J[56]!==d||J[57]!==j||J[58]!==E)k=n.jsxDEV(Z0,{title:E,subtitle:D,onCancel:X,color:"background",inputGuide:u,children:[T,d,j]},void 0,!0,void 0,this),J[52]=X,J[53]=D,J[54]=u,J[55]=T,J[56]=d,J[57]=j,J[58]=E,J[59]=k;else k=J[59];let N;if(J[60]!==P||J[61]!==k)N=n.jsxDEV(A,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:P,children:k},void 0,!1,void 0,this),J[60]=P,J[61]=k,J[62]=N;else N=J[62];return N}var EZ,n;var pZ=Q0(()=>{e0();R0();E0();AJ();MZ();d0();VZ();j0();_0();V0();BJ();IJ();EZ=l(U0(),1),n=l(J0(),1)});function RX(Q,J){if(Q===r0)return"Review the plan in Claude Code on the web";if(!J||typeof J!=="object")return Q;if(Q===iZ&&"questions"in J){let Z=J.questions;if(Array.isArray(Z)&&Z[0]&&typeof Z[0]==="object"){let X="question"in Z[0]&&typeof Z[0].question==="string"&&Z[0].question?Z[0].question:("header"in Z[0])&&typeof Z[0].header==="string"?Z[0].header:null;if(X){let z=X.replace(/\s+/g," ").trim();return`Answer in browser: ${I0(z,50)}`}}}for(let Z of Object.values(J))if(typeof Z==="string"&&Z.trim()){let X=Z.replace(/\s+/g," ").trim();return`${Q} ${I0(X,60)}`}return Q}function OX(Q){let J=qJ.c(70),{session:Z,onDone:X,onBack:z,onKill:Y}=Q,q=Z.status==="running"||Z.status==="pending",f=Z.ultraplanPhase,W=q?f?FX[f]:"running":Z.status,R=w0(Z.startTime,q,1000,0,Z.endTime),H=0,F=0,O=null;for(let G0 of Z.log){if(G0.type!=="assistant")continue;for(let Y0 of G0.message.content){if(Y0.type!=="tool_use")continue;if(F++,O=Y0,Y0.name===rZ||Y0.name===lZ)H++}}let w=1+H,P;if(J[0]!==O)P=O?RX(O.name,O.input):null,J[0]=O,J[1]=P;else P=J[1];let L;if(J[2]!==F||J[3]!==w||J[4]!==P)L={agentsWorking:w,toolCalls:F,lastToolCall:P},J[2]=F,J[3]=w,J[4]=P,J[5]=L;else L=J[5];let{agentsWorking:b,toolCalls:C,lastToolCall:I}=L,S;if(J[6]!==Z.sessionId)S=D0(Z.sessionId),J[6]=Z.sessionId,J[7]=S;else S=J[7];let g=S,v;if(J[8]!==z||J[9]!==X)v=z??(()=>X("Remote session details dismissed",{display:"system"})),J[8]=z,J[9]=X,J[10]=v;else v=J[10];let K=v,[h,p]=y0.useState(!1);if(h){let G0;if(J[11]===Symbol.for("react.memo_cache_sentinel"))G0=()=>p(!1),J[11]=G0;else G0=J[11];let Y0;if(J[12]===Symbol.for("react.memo_cache_sentinel"))Y0=U.jsxDEV(G,{dimColor:!0,children:"This will terminate the Claude Code on the web session."},void 0,!1,void 0,this),J[12]=Y0;else Y0=J[12];let g0;if(J[13]===Symbol.for("react.memo_cache_sentinel"))g0={label:"Terminate session",value:"stop"},J[13]=g0;else g0=J[13];let e;if(J[14]===Symbol.for("react.memo_cache_sentinel"))e=[g0,{label:"Back",value:"back"}],J[14]=e;else e=J[14];let C0;if(J[15]!==K||J[16]!==Y)C0=U.jsxDEV(Z0,{title:"Stop ultraplan?",onCancel:G0,color:"background",children:U.jsxDEV(A,{flexDirection:"column",gap:1,children:[Y0,U.jsxDEV(p0,{options:e,onChange:(k0)=>{if(k0==="stop")Y?.(),K();else p(!1)}},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),J[15]=K,J[16]=Y,J[17]=C0;else C0=J[17];return C0}let E=f==="plan_ready"?A0:W0,_;if(J[18]!==E)_=U.jsxDEV(G,{color:"background",children:[E," "]},void 0,!0,void 0,this),J[18]=E,J[19]=_;else _=J[19];let x;if(J[20]===Symbol.for("react.memo_cache_sentinel"))x=U.jsxDEV(G,{bold:!0,children:"ultraplan"},void 0,!1,void 0,this),J[20]=x;else x=J[20];let m;if(J[21]!==R||J[22]!==W)m=U.jsxDEV(G,{dimColor:!0,children:[" · ",R," · ",W]},void 0,!0,void 0,this),J[21]=R,J[22]=W,J[23]=m;else m=J[23];let V;if(J[24]!==_||J[25]!==m)V=U.jsxDEV(G,{children:[_,x,m]},void 0,!0,void 0,this),J[24]=_,J[25]=m,J[26]=V;else V=J[26];let B;if(J[27]!==f)B=f==="plan_ready"&&U.jsxDEV(G,{color:"success",children:[YJ.tick," "]},void 0,!0,void 0,this),J[27]=f,J[28]=B;else B=J[28];let D;if(J[29]!==b)D=q0(b,"agent"),J[29]=b,J[30]=D;else D=J[30];let u=f?HX[f]:"working",T;if(J[31]!==C)T=q0(C,"call"),J[31]=C,J[32]=T;else T=J[32];let c;if(J[33]!==b||J[34]!==B||J[35]!==D||J[36]!==u||J[37]!==T||J[38]!==C)c=U.jsxDEV(G,{children:[B,b," ",D," ",u," · ",C," tool"," ",T]},void 0,!0,void 0,this),J[33]=b,J[34]=B,J[35]=D,J[36]=u,J[37]=T,J[38]=C,J[39]=c;else c=J[39];let d;if(J[40]!==I)d=I&&U.jsxDEV(G,{dimColor:!0,children:I},void 0,!1,void 0,this),J[40]=I,J[41]=d;else d=J[41];let j;if(J[42]!==g)j=U.jsxDEV(G,{dimColor:!0,children:g},void 0,!1,void 0,this),J[42]=g,J[43]=j;else j=J[43];let k;if(J[44]!==g||J[45]!==j)k=U.jsxDEV(fJ,{url:g,children:j},void 0,!1,void 0,this),J[44]=g,J[45]=j,J[46]=k;else k=J[46];let N;if(J[47]===Symbol.for("react.memo_cache_sentinel"))N={label:"Review in Claude Code on the web",value:"open"},J[47]=N;else N=J[47];let y;if(J[48]!==Y||J[49]!==q)y=Y&&q?[{label:"Stop ultraplan",value:"stop"}]:[],J[48]=Y,J[49]=q,J[50]=y;else y=J[50];let r;if(J[51]===Symbol.for("react.memo_cache_sentinel"))r={label:"Back",value:"back"},J[51]=r;else r=J[51];let X0;if(J[52]!==y)X0=[N,...y,r],J[52]=y,J[53]=X0;else X0=J[53];let N0;if(J[54]!==K||J[55]!==X||J[56]!==g)N0=(G0)=>{switch(G0){case"open":{TJ(g),X();return}case"stop":{p(!0);return}case"back":{K();return}}},J[54]=K,J[55]=X,J[56]=g,J[57]=N0;else N0=J[57];let O0;if(J[58]!==X0||J[59]!==N0)O0=U.jsxDEV(p0,{options:X0,onChange:N0},void 0,!1,void 0,this),J[58]=X0,J[59]=N0,J[60]=O0;else O0=J[60];let P0;if(J[61]!==c||J[62]!==d||J[63]!==k||J[64]!==O0)P0=U.jsxDEV(A,{flexDirection:"column",gap:1,children:[c,d,k,O0]},void 0,!0,void 0,this),J[61]=c,J[62]=d,J[63]=k,J[64]=O0,J[65]=P0;else P0=J[65];let v0;if(J[66]!==K||J[67]!==V||J[68]!==P0)v0=U.jsxDEV(Z0,{title:V,onCancel:K,color:"background",children:P0},void 0,!1,void 0,this),J[66]=K,J[67]=V,J[68]=P0,J[69]=v0;else v0=J[69];return v0}function PX(Q){let J=qJ.c(15),{stage:Z,completed:X,hasProgress:z}=Q,Y;if(J[0]!==Z)Y=Z?DZ.indexOf(Z):-1,J[0]=Z,J[1]=Y;else Y=J[1];let q=Y,f=!X&&!z,W;if(J[2]!==f)W=f?U.jsxDEV(G,{color:"background",children:"Setup"},void 0,!1,void 0,this):U.jsxDEV(G,{dimColor:!0,children:"Setup"},void 0,!1,void 0,this),J[2]=f,J[3]=W;else W=J[3];let R;if(J[4]===Symbol.for("react.memo_cache_sentinel"))R=U.jsxDEV(G,{dimColor:!0,children:" → "},void 0,!1,void 0,this),J[4]=R;else R=J[4];let H;if(J[5]!==X||J[6]!==q||J[7]!==f)H=DZ.map((w,P)=>{let L=!X&&!f&&P===q;return U.jsxDEV(y0.default.Fragment,{children:[P>0&&U.jsxDEV(G,{dimColor:!0,children:" → "},void 0,!1,void 0,this),L?U.jsxDEV(G,{color:"background",children:kZ[w]},void 0,!1,void 0,this):U.jsxDEV(G,{dimColor:!0,children:kZ[w]},void 0,!1,void 0,this)]},w,!0,void 0,this)}),J[5]=X,J[6]=q,J[7]=f,J[8]=H;else H=J[8];let F;if(J[9]!==X)F=X&&U.jsxDEV(G,{color:"success",children:" ✓"},void 0,!1,void 0,this),J[9]=X,J[10]=F;else F=J[10];let O;if(J[11]!==W||J[12]!==H||J[13]!==F)O=U.jsxDEV(G,{children:[W,R,H,F]},void 0,!0,void 0,this),J[11]=W,J[12]=H,J[13]=F,J[14]=O;else O=J[14];return O}function LX(Q){let J=Q.reviewProgress;if(!J)return Q.status==="completed"?"done":"setting up";let Z=J.bugsVerified,X=J.bugsRefuted??0;if(Q.status==="completed"){let z=[`${Z} ${q0(Z,"finding")}`];if(X>0)z.push(`${X} refuted`);return z.join(" · ")}return VJ(J.stage,J.bugsFound,Z,X)}function UX(Q){let J=qJ.c(56),{session:Z,onDone:X,onBack:z,onKill:Y}=Q,q=Z.status==="completed",f=Z.status==="running"||Z.status==="pending",[W,R]=y0.useState(!1),H=w0(Z.startTime,f,1000,0,Z.endTime),F;if(J[0]!==X)F=()=>X("Remote session details dismissed",{display:"system"}),J[0]=X,J[1]=F;else F=J[1];let O=F,w=z??O,P;if(J[2]!==Z.sessionId)P=D0(Z.sessionId),J[2]=Z.sessionId,J[3]=P;else P=J[3];let L=P,b=q?"ready":f?"running":Z.status;if(W){let k;if(J[4]===Symbol.for("react.memo_cache_sentinel"))k=()=>R(!1),J[4]=k;else k=J[4];let N;if(J[5]===Symbol.for("react.memo_cache_sentinel"))N=U.jsxDEV(G,{dimColor:!0,children:"This archives the remote session and stops local tracking. The review will not complete and any findings so far are discarded."},void 0,!1,void 0,this),J[5]=N;else N=J[5];let y;if(J[6]===Symbol.for("react.memo_cache_sentinel"))y={label:"Stop ultrareview",value:"stop"},J[6]=y;else y=J[6];let r;if(J[7]===Symbol.for("react.memo_cache_sentinel"))r=[y,{label:"Back",value:"back"}],J[7]=r;else r=J[7];let X0;if(J[8]!==w||J[9]!==Y)X0=U.jsxDEV(Z0,{title:"Stop ultrareview?",onCancel:k,color:"background",children:U.jsxDEV(A,{flexDirection:"column",gap:1,children:[N,U.jsxDEV(p0,{options:r,onChange:(N0)=>{if(N0==="stop")Y?.(),w();else R(!1)}},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),J[8]=w,J[9]=Y,J[10]=X0;else X0=J[10];return X0}let C;if(J[11]!==q||J[12]!==Y||J[13]!==f)C=q?[{label:"Open in Claude Code on the web",value:"open"},{label:"Dismiss",value:"dismiss"}]:[{label:"Open in Claude Code on the web",value:"open"},...Y&&f?[{label:"Stop ultrareview",value:"stop"}]:[],{label:"Back",value:"back"}],J[11]=q,J[12]=Y,J[13]=f,J[14]=C;else C=J[14];let I=C,S;if(J[15]!==w||J[16]!==O||J[17]!==X||J[18]!==L)S=(k)=>{J:switch(k){case"open":{TJ(L),X();break J}case"stop":{R(!0);break J}case"back":{w();break J}case"dismiss":O()}},J[15]=w,J[16]=O,J[17]=X,J[18]=L,J[19]=S;else S=J[19];let g=S,v=q?A0:W0,K;if(J[20]!==v)K=U.jsxDEV(G,{color:"background",children:[v," "]},void 0,!0,void 0,this),J[20]=v,J[21]=K;else K=J[21];let h;if(J[22]===Symbol.for("react.memo_cache_sentinel"))h=U.jsxDEV(G,{bold:!0,children:"ultrareview"},void 0,!1,void 0,this),J[22]=h;else h=J[22];let p;if(J[23]!==H||J[24]!==b)p=U.jsxDEV(G,{dimColor:!0,children:[" · ",H," · ",b]},void 0,!0,void 0,this),J[23]=H,J[24]=b,J[25]=p;else p=J[25];let E;if(J[26]!==K||J[27]!==p)E=U.jsxDEV(G,{children:[K,h,p]},void 0,!0,void 0,this),J[26]=K,J[27]=p,J[28]=E;else E=J[28];let _=Z.reviewProgress?.stage,x=!!Z.reviewProgress,m;if(J[29]!==q||J[30]!==_||J[31]!==x)m=U.jsxDEV(PX,{stage:_,completed:q,hasProgress:x},void 0,!1,void 0,this),J[29]=q,J[30]=_,J[31]=x,J[32]=m;else m=J[32];let V;if(J[33]!==Z)V=LX(Z),J[33]=Z,J[34]=V;else V=J[34];let B;if(J[35]!==V)B=U.jsxDEV(G,{children:V},void 0,!1,void 0,this),J[35]=V,J[36]=B;else B=J[36];let D;if(J[37]!==L)D=U.jsxDEV(G,{dimColor:!0,children:L},void 0,!1,void 0,this),J[37]=L,J[38]=D;else D=J[38];let u;if(J[39]!==L||J[40]!==D)u=U.jsxDEV(fJ,{url:L,children:D},void 0,!1,void 0,this),J[39]=L,J[40]=D,J[41]=u;else u=J[41];let T;if(J[42]!==B||J[43]!==u)T=U.jsxDEV(A,{flexDirection:"column",children:[B,u]},void 0,!0,void 0,this),J[42]=B,J[43]=u,J[44]=T;else T=J[44];let c;if(J[45]!==g||J[46]!==I)c=U.jsxDEV(p0,{options:I,onChange:g},void 0,!1,void 0,this),J[45]=g,J[46]=I,J[47]=c;else c=J[47];let d;if(J[48]!==m||J[49]!==T||J[50]!==c)d=U.jsxDEV(A,{flexDirection:"column",gap:1,children:[m,T,c]},void 0,!0,void 0,this),J[48]=m,J[49]=T,J[50]=c,J[51]=d;else d=J[51];let j;if(J[52]!==w||J[53]!==d||J[54]!==E)j=U.jsxDEV(Z0,{title:E,onCancel:w,color:"background",inputGuide:wX,children:d},void 0,!1,void 0,this),J[52]=w,J[53]=d,J[54]=E,J[55]=j;else j=J[55];return j}function wX(Q){return Q.pending?U.jsxDEV(G,{children:["Press ",Q.keyName," again to exit"]},void 0,!0,void 0,this):U.jsxDEV(f0,{children:[U.jsxDEV(i,{shortcut:"Enter",action:"select"},void 0,!1,void 0,this),U.jsxDEV(i,{shortcut:"Esc",action:"go back"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function eZ({session:Q,toolUseContext:J,onDone:Z,onBack:X,onKill:z}){let[Y,q]=y0.useState(!1),[f,W]=y0.useState(null),R=y0.useMemo(()=>{if(Q.isUltraplan||Q.isRemoteReview)return[];return nZ(sZ(Q.log)).filter((L)=>L.type!=="progress").slice(-3)},[Q]);if(Q.isUltraplan)return U.jsxDEV(OX,{session:Q,onDone:Z,onBack:X,onKill:z},void 0,!1,void 0,this);if(Q.isRemoteReview)return U.jsxDEV(UX,{session:Q,onDone:Z,onBack:X,onKill:z},void 0,!1,void 0,this);let H=()=>Z("Remote session details dismissed",{display:"system"}),F=(L)=>{if(L.key===" ")L.preventDefault(),Z("Remote session details dismissed",{display:"system"});else if(L.key==="left"&&X)L.preventDefault(),X();else if(L.key==="t"&&!Y)L.preventDefault(),O();else if(L.key==="return")L.preventDefault(),H()};async function O(){q(!0),W(null);try{await oZ(Q.sessionId)}catch(L){W(u0(L))}finally{q(!1)}}let w=I0(Q.title,50),P=Q.status==="pending"?"starting":Q.status;return U.jsxDEV(A,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:F,children:U.jsxDEV(Z0,{title:"Remote session details",onCancel:H,color:"background",inputGuide:(L)=>L.pending?U.jsxDEV(G,{children:["Press ",L.keyName," again to exit"]},void 0,!0,void 0,this):U.jsxDEV(f0,{children:[X&&U.jsxDEV(i,{shortcut:"←",action:"go back"},void 0,!1,void 0,this),U.jsxDEV(i,{shortcut:"Esc/Enter/Space",action:"close"},void 0,!1,void 0,this),!Y&&U.jsxDEV(i,{shortcut:"t",action:"teleport"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:[U.jsxDEV(A,{flexDirection:"column",children:[U.jsxDEV(G,{children:[U.jsxDEV(G,{bold:!0,children:"Status"},void 0,!1,void 0,this),":"," ",P==="running"||P==="starting"?U.jsxDEV(G,{color:"background",children:P},void 0,!1,void 0,this):P==="completed"?U.jsxDEV(G,{color:"success",children:P},void 0,!1,void 0,this):U.jsxDEV(G,{color:"error",children:P},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U.jsxDEV(G,{children:[U.jsxDEV(G,{bold:!0,children:"Runtime"},void 0,!1,void 0,this),":"," ",zJ((Q.endTime??Date.now())-Q.startTime)]},void 0,!0,void 0,this),U.jsxDEV(G,{wrap:"truncate-end",children:[U.jsxDEV(G,{bold:!0,children:"Title"},void 0,!1,void 0,this),": ",w]},void 0,!0,void 0,this),U.jsxDEV(G,{children:[U.jsxDEV(G,{bold:!0,children:"Progress"},void 0,!1,void 0,this),":"," ",U.jsxDEV(m0,{session:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U.jsxDEV(G,{children:[U.jsxDEV(G,{bold:!0,children:"Session URL"},void 0,!1,void 0,this),":"," ",U.jsxDEV(fJ,{url:D0(Q.sessionId),children:U.jsxDEV(G,{dimColor:!0,children:D0(Q.sessionId)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Q.log.length>0&&U.jsxDEV(A,{flexDirection:"column",marginTop:1,children:[U.jsxDEV(G,{children:[U.jsxDEV(G,{bold:!0,children:"Recent messages"},void 0,!1,void 0,this),":"]},void 0,!0,void 0,this),U.jsxDEV(A,{flexDirection:"column",height:10,overflowY:"hidden",children:R.map((L,b)=>U.jsxDEV($Z,{message:L,lookups:aZ,addMargin:b>0,tools:J.options.tools,commands:J.options.commands,verbose:J.options.verbose,inProgressToolUseIDs:new Set,progressMessagesForMessage:[],shouldAnimate:!1,shouldShowDot:!1,style:"condensed",isTranscriptMode:!1,isStatic:!0},b,!1,void 0,this))},void 0,!1,void 0,this),U.jsxDEV(A,{marginTop:1,children:U.jsxDEV(G,{dimColor:!0,italic:!0,children:["Showing last ",R.length," of ",Q.log.length," ","messages"]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f&&U.jsxDEV(A,{marginTop:1,children:U.jsxDEV(G,{color:"error",children:["Teleport failed: ",f]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Y&&U.jsxDEV(G,{color:"background",children:"Teleporting to session…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var qJ,y0,U,FX,HX,DZ,kZ;var tZ=Q0(()=>{xZ();i0();e0();R0();CJ();zX();fX();iJ();qX();XZ();d0();WX();KZ();cJ();UJ();NX();j0();_0();V0();GX();jJ();qJ=l(U0(),1),y0=l(JJ(),1),U=l(J0(),1);FX={needs_input:"input required",plan_ready:"ready"},HX={needs_input:"waiting",plan_ready:"done"};DZ=["finding","verifying","synthesizing"],kZ={finding:"Find",verifying:"Verify",synthesizing:"Dedupe"}});async function XQ(Q){let J=fQ(Q.id);try{let Z=await JQ(J,yX);return{content:Z.content,bytesTotal:Z.bytesTotal}}catch{return{content:"",bytesTotal:0}}}function YQ(Q){let J=uJ.c(57),{shell:Z,onDone:X,onKillShell:z,onBack:Y}=Q,{columns:q}=GJ(),f;if(J[0]!==Z)f=()=>XQ(Z),J[0]=Z,J[1]=f;else f=J[1];let[W,R]=H0.useState(f),H=H0.useDeferredValue(W),F;if(J[2]!==Z)F=()=>{if(Z.status!=="running")return;let r=setInterval(KX,1000,R,Z);return()=>clearInterval(r)},J[2]=Z,J[3]=F;else F=J[3];let O;if(J[4]!==Z.id||J[5]!==Z.status)O=[Z.id,Z.status],J[4]=Z.id,J[5]=Z.status,J[6]=O;else O=J[6];H0.useEffect(F,O);let w;if(J[7]!==X)w=()=>X("Shell details dismissed",{display:"system"}),J[7]=X,J[8]=w;else w=J[8];let P=w,L;if(J[9]!==P)L={"confirm:yes":P},J[9]=P,J[10]=L;else L=J[10];let b;if(J[11]===Symbol.for("react.memo_cache_sentinel"))b={context:"Confirmation"},J[11]=b;else b=J[11];F0(L,b);let C;if(J[12]!==Y||J[13]!==X||J[14]!==z||J[15]!==Z.status)C=(r)=>{if(r.key===" ")r.preventDefault(),X("Shell details dismissed",{display:"system"});else if(r.key==="left"&&Y)r.preventDefault(),Y();else if(r.key==="x"&&Z.status==="running"&&z)r.preventDefault(),z()},J[12]=Y,J[13]=X,J[14]=z,J[15]=Z.status,J[16]=C;else C=J[16];let I=C,S=Z.kind==="monitor",g;if(J[17]!==Z.command)g=I0(Z.command,280),J[17]=Z.command,J[18]=g;else g=J[18];let v=g,K=S?"Monitor details":"Shell details",h;if(J[19]!==Y||J[20]!==z||J[21]!==Z.status)h=(r)=>r.pending?$.jsxDEV(G,{children:["Press ",r.keyName," again to exit"]},void 0,!0,void 0,this):$.jsxDEV(f0,{children:[Y&&$.jsxDEV(i,{shortcut:"←",action:"go back"},void 0,!1,void 0,this),$.jsxDEV(i,{shortcut:"Esc/Enter/Space",action:"close"},void 0,!1,void 0,this),Z.status==="running"&&z&&$.jsxDEV(i,{shortcut:"x",action:"stop"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J[19]=Y,J[20]=z,J[21]=Z.status,J[22]=h;else h=J[22];let p;if(J[23]===Symbol.for("react.memo_cache_sentinel"))p=$.jsxDEV(G,{bold:!0,children:"Status:"},void 0,!1,void 0,this),J[23]=p;else p=J[23];let E;if(J[24]!==Z.result||J[25]!==Z.status)E=$.jsxDEV(G,{children:[p," ",Z.status==="running"?$.jsxDEV(G,{color:"background",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]},void 0,!0,void 0,this):Z.status==="completed"?$.jsxDEV(G,{color:"success",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]},void 0,!0,void 0,this):$.jsxDEV(G,{color:"error",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),J[24]=Z.result,J[25]=Z.status,J[26]=E;else E=J[26];let _;if(J[27]===Symbol.for("react.memo_cache_sentinel"))_=$.jsxDEV(G,{bold:!0,children:"Runtime:"},void 0,!1,void 0,this),J[27]=_;else _=J[27];let x;if(J[28]!==Z.endTime)x=Z.endTime??Date.now(),J[28]=Z.endTime,J[29]=x;else x=J[29];let m=x-Z.startTime,V;if(J[30]!==m)V=zJ(m),J[30]=m,J[31]=V;else V=J[31];let B;if(J[32]!==V)B=$.jsxDEV(G,{children:[_," ",V]},void 0,!0,void 0,this),J[32]=V,J[33]=B;else B=J[33];let D=S?"Script:":"Command:",u;if(J[34]!==D)u=$.jsxDEV(G,{bold:!0,children:D},void 0,!1,void 0,this),J[34]=D,J[35]=u;else u=J[35];let T;if(J[36]!==v||J[37]!==u)T=$.jsxDEV(G,{wrap:"wrap",children:[u," ",v]},void 0,!0,void 0,this),J[36]=v,J[37]=u,J[38]=T;else T=J[38];let c;if(J[39]!==E||J[40]!==B||J[41]!==T)c=$.jsxDEV(A,{flexDirection:"column",children:[E,B,T]},void 0,!0,void 0,this),J[39]=E,J[40]=B,J[41]=T,J[42]=c;else c=J[42];let d;if(J[43]===Symbol.for("react.memo_cache_sentinel"))d=$.jsxDEV(G,{bold:!0,children:"Output:"},void 0,!1,void 0,this),J[43]=d;else d=J[43];let j;if(J[44]===Symbol.for("react.memo_cache_sentinel"))j=$.jsxDEV(G,{dimColor:!0,children:"Loading output…"},void 0,!1,void 0,this),J[44]=j;else j=J[44];let k;if(J[45]!==q||J[46]!==H)k=$.jsxDEV(A,{flexDirection:"column",children:[d,$.jsxDEV(H0.Suspense,{fallback:j,children:$.jsxDEV(CX,{outputPromise:H,columns:q},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J[45]=q,J[46]=H,J[47]=k;else k=J[47];let N;if(J[48]!==P||J[49]!==h||J[50]!==c||J[51]!==k||J[52]!==K)N=$.jsxDEV(Z0,{title:K,onCancel:P,color:"background",inputGuide:h,children:[c,k]},void 0,!0,void 0,this),J[48]=P,J[49]=h,J[50]=c,J[51]=k,J[52]=K,J[53]=N;else N=J[53];let y;if(J[54]!==I||J[55]!==N)y=$.jsxDEV(A,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:I,children:N},void 0,!1,void 0,this),J[54]=I,J[55]=N,J[56]=y;else y=J[56];return y}function KX(Q,J){return Q(XQ(J))}function CX(Q){let J=uJ.c(19),{outputPromise:Z,columns:X}=Q,{content:z,bytesTotal:Y}=H0.use(Z);if(!z){let L;if(J[0]===Symbol.for("react.memo_cache_sentinel"))L=$.jsxDEV(G,{dimColor:!0,children:"No output available"},void 0,!1,void 0,this),J[0]=L;else L=J[0];return L}let q,f;if(J[1]!==Y||J[2]!==z){let L=[],b=z.length;for(let C=0;C<10&&b>0;C++){let I=z.lastIndexOf(`
17
- `,b-1);L.push(I+1),b=I}L.reverse(),q=Y>z.length,f=[];for(let C=0;C<L.length;C++){let I=L[C],S=C<L.length-1?L[C+1]-1:z.length,g=z.slice(I,S);if(g)f.push(g)}J[1]=Y,J[2]=z,J[3]=q,J[4]=f}else q=J[3],f=J[4];let W=X-6,R;if(J[5]!==f)R=f.map(bX),J[5]=f,J[6]=R;else R=J[6];let H;if(J[7]!==W||J[8]!==R)H=$.jsxDEV(A,{borderStyle:"round",paddingX:1,flexDirection:"column",height:12,maxWidth:W,children:R},void 0,!1,void 0,this),J[7]=W,J[8]=R,J[9]=H;else H=J[9];let F=`Showing ${f.length} lines`,O;if(J[10]!==Y||J[11]!==q)O=q?` of ${ZQ(Y)}`:"",J[10]=Y,J[11]=q,J[12]=O;else O=J[12];let w;if(J[13]!==F||J[14]!==O)w=$.jsxDEV(G,{dimColor:!0,italic:!0,children:[F,O]},void 0,!0,void 0,this),J[13]=F,J[14]=O,J[15]=w;else w=J[15];let P;if(J[16]!==H||J[17]!==w)P=$.jsxDEV($.Fragment,{children:[H,w]},void 0,!0,void 0,this),J[16]=H,J[17]=w,J[18]=P;else P=J[18];return P}function bX(Q,J){return $.jsxDEV(G,{wrap:"truncate-end",children:Q},J,!1,void 0,this)}var uJ,H0,$,yX=8192;var zQ=Q0(()=>{QQ();R0();E0();d0();MX();AX();j0();_0();V0();uJ=l(U0(),1),H0=l(JJ(),1),$=l(J0(),1)});var qQ={};tJ(qQ,{default:()=>IX});var BX=()=>null,IX;var GQ=Q0(()=>{IX=BX});function DX(Q,J){return Object.values(Q??{}).filter(FJ).filter((X)=>!(X.type==="local_agent"&&X.id===J))}function Vf({onDone:Q,toolUseContext:J,initialDetailTaskId:Z}){let X=RJ((N)=>N.tasks),z=RJ((N)=>N.foregroundedTaskId),Y=RJ((N)=>N.expandedView)==="teammates",q=CQ(),f=PQ("chat:killAgents","Chat","ctrl+x ctrl+k"),W=X,R=K0.useRef(!1),[H,F]=K0.useState(()=>{if(Z)return R.current=!0,{mode:"detail",itemId:Z};let N=DX(W,z);if(N.length===1)return R.current=!0,{mode:"detail",itemId:N[0].id};return{mode:"list"}}),[O,w]=K0.useState(0);UQ("background-tasks-dialog");let{bashTasks:P,remoteSessions:L,agentTasks:b,teammateTasks:C,workflowTasks:I,mcpMonitors:S,dreamTasks:g,allSelectableItems:v}=K0.useMemo(()=>{let r=Object.values(W??{}).filter(FJ).map(kX).sort((e,C0)=>{let k0=e.status,pJ=C0.status;if(k0==="running"&&pJ!=="running")return-1;if(k0!=="running"&&pJ==="running")return 1;let bQ="task"in e?e.task.startTime:0;return("task"in C0?C0.task.startTime:0)-bQ}),X0=r.filter((e)=>e.type==="local_bash"),N0=r.filter((e)=>e.type==="remote_agent"),O0=r.filter((e)=>e.type==="local_agent"&&e.id!==z),P0=r.filter((e)=>e.type==="local_workflow"),v0=r.filter((e)=>e.type==="monitor_mcp"),G0=r.filter((e)=>e.type==="dream"),Y0=Y?[]:r.filter((e)=>e.type==="in_process_teammate"),g0=Y0.length>0?[{id:"__leader__",type:"leader",label:`@${dJ}`,status:"running"}]:[];return{bashTasks:X0,remoteSessions:N0,agentTasks:O0,workflowTasks:P0,mcpMonitors:v0,dreamTasks:G0,teammateTasks:[...g0,...Y0],allSelectableItems:[...g0,...Y0,...X0,...v0,...N0,...O0,...P0,...G0]}},[W,z,Y]),K=v[O]??null;F0({"confirm:previous":()=>w((N)=>Math.max(0,N-1)),"confirm:next":()=>w((N)=>Math.min(v.length-1,N+1)),"confirm:yes":()=>{let N=v[O];if(N)if(N.type==="leader")PJ(q),Q("Viewing leader",{display:"system"});else F({mode:"detail",itemId:N.id})}},{context:"Confirmation",isActive:H.mode==="list"});let h=(N)=>{if(H.mode!=="list")return;if(N.key==="left"){N.preventDefault(),Q("Background tasks dialog dismissed",{display:"system"});return}let y=v[O];if(!y)return;if(N.key==="x"){if(N.preventDefault(),y.type==="local_bash"&&y.status==="running")p(y.id);else if(y.type==="local_agent"&&y.status==="running")E(y.id);else if(y.type==="in_process_teammate"&&y.status==="running")_(y.id);else if(y.type==="local_workflow"&&y.status==="running"&&NJ)NJ(y.id,q);else if(y.type==="monitor_mcp"&&y.status==="running"&&WJ)WJ(y.id,q);else if(y.type==="dream"&&y.status==="running")x(y.id);else if(y.type==="remote_agent"&&y.status==="running")if(y.task.isUltraplan)bJ(y.id,y.task.sessionId,q);else m(y.id)}if(N.key==="f"){if(y.type==="in_process_teammate"&&y.status==="running")N.preventDefault(),OJ(y.id,q),Q("Viewing teammate",{display:"system"});else if(y.type==="leader")N.preventDefault(),PJ(q),Q("Viewing leader",{display:"system"})}};async function p(N){await KQ.kill(N,q)}async function E(N){await yQ.kill(N,q)}async function _(N){await wQ.kill(N,q)}async function x(N){await MQ.kill(N,q)}async function m(N){await $0.kill(N,q)}let V=OQ(Q);K0.useEffect(()=>{if(H.mode!=="list"){let y=(W??{})[H.itemId];if(!y||y.type!=="local_workflow"&&!FJ(y))if(R.current)V("Background tasks dialog dismissed",{display:"system"});else F({mode:"list"})}let N=v.length;if(O>=N&&N>0)w(N-1)},[H,W,O,v,V]);let B=()=>{if(R.current&&v.length<=1)Q("Background tasks dialog dismissed",{display:"system"});else R.current=!1,F({mode:"list"})};if(H.mode!=="list"&&W){let N=W[H.itemId];if(!N)return null;switch(N.type){case"local_bash":return M.jsxDEV(YQ,{shell:N,onDone:Q,onKillShell:()=>void p(N.id),onBack:B},`shell-${N.id}`,!1,void 0,this);case"local_agent":return M.jsxDEV(bZ,{agent:N,onDone:Q,onKillAgent:()=>void E(N.id),onBack:B},`agent-${N.id}`,!1,void 0,this);case"remote_agent":return M.jsxDEV(eZ,{session:N,onDone:Q,toolUseContext:J,onBack:B,onKill:N.status!=="running"?void 0:N.isUltraplan?()=>void bJ(N.id,N.sessionId,q):()=>void m(N.id)},`session-${N.id}`,!1,void 0,this);case"in_process_teammate":return M.jsxDEV(mZ,{teammate:N,onDone:Q,onKill:N.status==="running"?()=>void _(N.id):void 0,onBack:B,onForeground:N.status==="running"?()=>{OJ(N.id,q),Q("Viewing teammate",{display:"system"})}:void 0},`teammate-${N.id}`,!1,void 0,this);case"local_workflow":if(!NQ)return null;return M.jsxDEV(NQ,{workflow:N,onDone:Q,onKill:N.status==="running"&&NJ?()=>NJ(N.id,q):void 0,onSkipAgent:N.status==="running"&&WQ?(y)=>WQ(N.id,y,q):void 0,onRetryAgent:N.status==="running"&&RQ?(y)=>RQ(N.id,y,q):void 0,onBack:B},`workflow-${N.id}`,!1,void 0,this);case"monitor_mcp":if(!FQ)return null;return M.jsxDEV(FQ,{task:N,onKill:N.status==="running"&&WJ?()=>WJ(N.id,q):void 0,onBack:B},`monitor-mcp-${N.id}`,!1,void 0,this);case"dream":return M.jsxDEV(uZ,{task:N,onDone:()=>Q("Background tasks dialog dismissed",{display:"system"}),onBack:B,onKill:N.status==="running"?()=>void x(N.id):void 0},`dream-${N.id}`,!1,void 0,this)}}let D=B0(P,(N)=>N.status==="running"),u=B0(L,(N)=>N.status==="running"||N.status==="pending")+B0(b,(N)=>N.status==="running"),T=B0(C,(N)=>N.status==="running"),c=HQ([...T>0?[M.jsxDEV(G,{children:[T," ",T!==1?"agents":"agent"]},"teammates",!0,void 0,this)]:[],...D>0?[M.jsxDEV(G,{children:[D," ",D!==1?"active shells":"active shell"]},"shells",!0,void 0,this)]:[],...u>0?[M.jsxDEV(G,{children:[u," ",u!==1?"active agents":"active agent"]},"agents",!0,void 0,this)]:[]],(N)=>M.jsxDEV(G,{children:" · "},`separator-${N}`,!1,void 0,this)),d=[M.jsxDEV(i,{shortcut:"↑/↓",action:"select"},"upDown",!1,void 0,this),M.jsxDEV(i,{shortcut:"Enter",action:"view"},"enter",!1,void 0,this),...K?.type==="in_process_teammate"&&K.status==="running"?[M.jsxDEV(i,{shortcut:"f",action:"foreground"},"foreground",!1,void 0,this)]:[],...(K?.type==="local_bash"||K?.type==="local_agent"||K?.type==="in_process_teammate"||K?.type==="local_workflow"||K?.type==="monitor_mcp"||K?.type==="dream"||K?.type==="remote_agent")&&K.status==="running"?[M.jsxDEV(i,{shortcut:"x",action:"stop"},"kill",!1,void 0,this)]:[],...b.some((N)=>N.status==="running")?[M.jsxDEV(i,{shortcut:f,action:"stop all agents"},"kill-all",!1,void 0,this)]:[],M.jsxDEV(i,{shortcut:"←/Esc",action:"close"},"esc",!1,void 0,this)],j=()=>Q("Background tasks dialog dismissed",{display:"system"});function k(N){if(N.pending)return M.jsxDEV(G,{children:["Press ",N.keyName," again to exit"]},void 0,!0,void 0,this);return M.jsxDEV(f0,{children:d},void 0,!1,void 0,this)}return M.jsxDEV(A,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:h,children:M.jsxDEV(Z0,{title:"Background tasks",subtitle:M.jsxDEV(M.Fragment,{children:c},void 0,!1,void 0,this),onCancel:j,color:"background",inputGuide:k,children:v.length===0?M.jsxDEV(G,{dimColor:!0,children:"No tasks currently running"},void 0,!1,void 0,this):M.jsxDEV(A,{flexDirection:"column",children:[C.length>0&&M.jsxDEV(A,{flexDirection:"column",children:[(P.length>0||L.length>0||b.length>0)&&M.jsxDEV(G,{dimColor:!0,children:[M.jsxDEV(G,{bold:!0,children:[" ","Agents"]},void 0,!0,void 0,this)," (",B0(C,(N)=>N.type!=="leader"),")"]},void 0,!0,void 0,this),M.jsxDEV(A,{flexDirection:"column",children:M.jsxDEV(xX,{teammateTasks:C,currentSelectionId:K?.id},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P.length>0&&M.jsxDEV(A,{flexDirection:"column",marginTop:C.length>0?1:0,children:[(C.length>0||L.length>0||b.length>0)&&M.jsxDEV(G,{dimColor:!0,children:[M.jsxDEV(G,{bold:!0,children:[" ","Shells"]},void 0,!0,void 0,this)," (",P.length,")"]},void 0,!0,void 0,this),M.jsxDEV(A,{flexDirection:"column",children:P.map((N)=>M.jsxDEV(h0,{item:N,isSelected:N.id===K?.id},N.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S.length>0&&M.jsxDEV(A,{flexDirection:"column",marginTop:C.length>0||P.length>0?1:0,children:[M.jsxDEV(G,{dimColor:!0,children:[M.jsxDEV(G,{bold:!0,children:[" ","Monitors"]},void 0,!0,void 0,this)," (",S.length,")"]},void 0,!0,void 0,this),M.jsxDEV(A,{flexDirection:"column",children:S.map((N)=>M.jsxDEV(h0,{item:N,isSelected:N.id===K?.id},N.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),L.length>0&&M.jsxDEV(A,{flexDirection:"column",marginTop:C.length>0||P.length>0||S.length>0?1:0,children:[M.jsxDEV(G,{dimColor:!0,children:[M.jsxDEV(G,{bold:!0,children:[" ","Remote agents"]},void 0,!0,void 0,this)," (",L.length,")"]},void 0,!0,void 0,this),M.jsxDEV(A,{flexDirection:"column",children:L.map((N)=>M.jsxDEV(h0,{item:N,isSelected:N.id===K?.id},N.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b.length>0&&M.jsxDEV(A,{flexDirection:"column",marginTop:C.length>0||P.length>0||S.length>0||L.length>0?1:0,children:[M.jsxDEV(G,{dimColor:!0,children:[M.jsxDEV(G,{bold:!0,children:[" ","Local agents"]},void 0,!0,void 0,this)," (",b.length,")"]},void 0,!0,void 0,this),M.jsxDEV(A,{flexDirection:"column",children:b.map((N)=>M.jsxDEV(h0,{item:N,isSelected:N.id===K?.id},N.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I.length>0&&M.jsxDEV(A,{flexDirection:"column",marginTop:C.length>0||P.length>0||S.length>0||L.length>0||b.length>0?1:0,children:[M.jsxDEV(G,{dimColor:!0,children:[M.jsxDEV(G,{bold:!0,children:[" ","Workflows"]},void 0,!0,void 0,this)," (",I.length,")"]},void 0,!0,void 0,this),M.jsxDEV(A,{flexDirection:"column",children:I.map((N)=>M.jsxDEV(h0,{item:N,isSelected:N.id===K?.id},N.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g.length>0&&M.jsxDEV(A,{flexDirection:"column",marginTop:C.length>0||P.length>0||S.length>0||L.length>0||b.length>0||I.length>0?1:0,children:M.jsxDEV(A,{flexDirection:"column",children:g.map((N)=>M.jsxDEV(h0,{item:N,isSelected:N.id===K?.id},N.id,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function kX(Q){switch(Q.type){case"local_bash":return{id:Q.id,type:"local_bash",label:Q.kind==="monitor"?Q.description:Q.command,status:Q.status,task:Q};case"remote_agent":return{id:Q.id,type:"remote_agent",label:Q.title,status:Q.status,task:Q};case"local_agent":return{id:Q.id,type:"local_agent",label:Q.description,status:Q.status,task:Q};case"in_process_teammate":return{id:Q.id,type:"in_process_teammate",label:`@${Q.identity.agentName}`,status:Q.status,task:Q};case"local_workflow":return{id:Q.id,type:"local_workflow",label:Q.summary??Q.description,status:Q.status,task:Q};case"monitor_mcp":return{id:Q.id,type:"monitor_mcp",label:Q.description,status:Q.status,task:Q};case"dream":return{id:Q.id,type:"dream",label:Q.description,status:Q.status,task:Q}}}function h0(Q){let J=EJ.c(14),{item:Z,isSelected:X}=Q,{columns:z}=GJ(),Y=Math.max(30,z-26),q;if(J[0]===Symbol.for("react.memo_cache_sentinel"))q=LQ(),J[0]=q;else q=J[0];let f=q,W=f&&X,R=X?YJ.pointer+" ":" ",H;if(J[1]!==W||J[2]!==R)H=M.jsxDEV(G,{dimColor:W,children:R},void 0,!1,void 0,this),J[1]=W,J[2]=R,J[3]=H;else H=J[3];let F=X&&!f?"suggestion":void 0,O;if(J[4]!==Z.task||J[5]!==Z.type||J[6]!==Y)O=Z.type==="leader"?M.jsxDEV(G,{children:["@",dJ]},void 0,!0,void 0,this):M.jsxDEV(_Z,{task:Z.task,maxActivityWidth:Y},void 0,!1,void 0,this),J[4]=Z.task,J[5]=Z.type,J[6]=Y,J[7]=O;else O=J[7];let w;if(J[8]!==F||J[9]!==O)w=M.jsxDEV(G,{color:F,children:O},void 0,!1,void 0,this),J[8]=F,J[9]=O,J[10]=w;else w=J[10];let P;if(J[11]!==H||J[12]!==w)P=M.jsxDEV(A,{flexDirection:"row",children:[H,w]},void 0,!0,void 0,this),J[11]=H,J[12]=w,J[13]=P;else P=J[13];return P}function xX(Q){let J=EJ.c(3),{teammateTasks:Z,currentSelectionId:X}=Q,z;if(J[0]!==X||J[1]!==Z){let Y=Z.filter(lX),q=Z.filter(rX),f=new Map;for(let R of q){let H=R.task.identity.teamName,F=f.get(H);if(F)F.push(R);else f.set(H,[R])}let W=[...f.entries()];z=M.jsxDEV(M.Fragment,{children:W.map((R)=>{let[H,F]=R,O=F.length+Y.length;return M.jsxDEV(A,{flexDirection:"column",children:[M.jsxDEV(G,{dimColor:!0,children:[" ","Team: ",H," (",O,")"]},void 0,!0,void 0,this),Y.map((w)=>M.jsxDEV(h0,{item:w,isSelected:w.id===X},`${w.id}-${H}`,!1,void 0,this)),F.map((w)=>M.jsxDEV(h0,{item:w,isSelected:w.id===X},w.id,!1,void 0,this))]},H,!0,void 0,this)})},void 0,!1,void 0,this),J[0]=X,J[1]=Z,J[2]=z}else z=J[2];return z}function rX(Q){return Q.type==="in_process_teammate"}function lX(Q){return Q.type==="leader"}var EJ,K0,M,NQ=null,mJ=null,NJ,WQ,RQ,pX,WJ,FQ;var iX=Q0(()=>{xZ();gX();hX();QQ();mX();kJ();uX();TX();dX();EX();CJ();VX();SJ();SX();HZ();cX();R0();E0();vX();SJ();j0();_0();V0();AZ();cZ();dZ();pZ();tZ();zQ();EJ=l(U0(),1),K0=l(JJ(),1),M=l(J0(),1),NJ=mJ?.killWorkflowTask??null,WQ=mJ?.skipWorkflowAgent??null,RQ=mJ?.retryWorkflowAgent??null,pX=(_X(),MJ(jX)),WJ=pX?.killMonitorMcp??null,FQ=(GQ(),MJ(qQ)).MonitorMcpDetailDialog});
18
- export{OJ as Od,PJ as Pd,aX as Qd,kJ as Rd,oQ as Sd,HZ as Td,Vf as Ud,iX as Vd};
@@ -1,2 +0,0 @@
1
- import{lna as t}from"./cli-0.1.9-kbrf27z8.mjs";function o(){}var n=()=>{};
2
- export{o as zfa,n as Afa};
@@ -1,2 +0,0 @@
1
- import{hb as U,ib as y}from"./cli-0.1.9-m7shtst2.mjs";import{OZ as K}from"./cli-0.1.9-n54k4qt3.mjs";import{F4 as f,Q3 as _,U3 as $,Z3 as H}from"./cli-0.1.9-4sqfjw8t.mjs";import{$$ as N,Aba as Y,Bba as Z,Iba as G,Waa as Q,Zaa as B,a7 as W,f7 as P,laa as g,qba as A,t_ as J,u_ as X,z_ as b}from"./cli-0.1.9-86kws2c7.mjs";import{Yfa as V,dga as O}from"./cli-0.1.9-vdw09f8y.mjs";import{Jja as I,pma as L}from"./cli-0.1.9-7fp0smtp.mjs";L();f();A();O();P();G();b();g();function i(j){return(k)=>({...k,...typeof j.permission_mode==="string"?{toolPermissionContext:{...k.toolPermissionContext,mode:X(j.permission_mode)}}:{},...typeof j.is_ultraplan_mode==="boolean"?{isUltraplanMode:j.is_ultraplan_mode}:{}})}function p({newState:j,oldState:k}){let R=k.toolPermissionContext.mode,D=j.toolPermissionContext.mode;if(R!==D){let q=J(R),z=J(D);if(q!==z){let F=z==="plan"&&j.isUltraplanMode&&!k.isUltraplanMode?!0:null;U({permission_mode:z,is_ultraplan_mode:F})}y(D)}if(j.mainLoopModel!==k.mainLoopModel&&j.mainLoopModel===null)N("userSettings",{model:void 0}),I(null),Z();if(j.mainLoopModel!==k.mainLoopModel&&j.mainLoopModel!==null)N("userSettings",{model:j.mainLoopModel}),I(j.mainLoopModel),Y(j.mainLoopModel);if(j.expandedView!==k.expandedView){let q=j.expandedView==="tasks",z=j.expandedView==="teammates";if(B().showExpandedTodos!==q||B().showSpinnerTree!==z)Q((F)=>({...F,showExpandedTodos:q,showSpinnerTree:z}))}if(j.verbose!==k.verbose&&B().verbose!==j.verbose){let q=j.verbose;Q((z)=>({...z,verbose:q}))}if(j.settings!==k.settings)try{if(_(),$(),H(),j.settings.env!==k.settings.env)K()}catch(q){W(V(q))}}
2
- export{i as _a,p as $a};
@@ -1,2 +0,0 @@
1
- import{lna as t}from"./cli-0.1.9-kbrf27z8.mjs";var r,i=(s,e)=>function(){return e||(0,s[r(s)[0]])((e={exports:{}}).exports,e),e.exports},n;var a=t(()=>{r=Object.getOwnPropertyNames,n=i({"package.json"(s,e){e.exports={name:"@mendable/firecrawl-js",version:"4.18.1",description:"JavaScript SDK for Firecrawl API",main:"dist/index.js",types:"dist/index.d.ts",exports:{"./package.json":"./package.json",".":{import:"./dist/index.js",default:"./dist/index.cjs"}},type:"module",scripts:{build:"tsup","build-and-publish":"pnpm run build && pnpm publish --access public","publish-beta":"pnpm run build && pnpm publish --access public --tag beta",test:"NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/e2e/v2/*.test.ts --detectOpenHandles","test:unit":"NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/unit/v2/*.test.ts"},repository:{type:"git",url:"git+https://github.com/firecrawl/firecrawl.git"},author:"Mendable.ai",license:"MIT",dependencies:{axios:"1.14.0",firecrawl:"4.16.0","typescript-event-target":"^1.1.1",zod:"^3.23.8","zod-to-json-schema":"^3.23.0"},bugs:{url:"https://github.com/firecrawl/firecrawl/issues"},homepage:"https://github.com/firecrawl/firecrawl#readme",devDependencies:{"@jest/globals":"^30.2.0","@types/dotenv":"^8.2.0","@types/jest":"^30.0.0","@types/mocha":"^10.0.6","@types/node":"^20.12.12","@types/uuid":"^9.0.8",dotenv:"^16.4.5",jest:"^30.2.0","ts-jest":"^29.4.5",tsup:"^8.5.0",typescript:"^5.4.5",uuid:"^9.0.1"},keywords:["firecrawl","mendable","crawler","web","scraper","api","sdk"],engines:{node:">=22.0.0"},pnpm:{overrides:{"@isaacs/brace-expansion@<=5.0.0":">=5.0.1","minimatch@<10.2.3":">=10.2.3","rollup@<4.59.0":">=4.59.0","picomatch@<4.0.4":">=4.0.4",handlebars:">=4.7.9","brace-expansion":">=5.0.5","axios@>=1.14.1 <1.15.0":"1.14.0","axios@>=0.30.4 <0.31.0":"0.30.3"}}}}})});
2
- export{n as Bg,a as Cg};
@@ -1,2 +0,0 @@
1
- import{Kh as M,Lh as W,cJ as O,dJ as P,eJ as Q,fJ as U,iJ as X}from"./cli-0.1.9-04ez73f7.mjs";import{lna as V}from"./cli-0.1.9-kbrf27z8.mjs";function Y(f){return f==="projectSettings"||f==="policySettings"||f==="command"}function J(f){return O(f)}function L(f,G,q){let v=J(G.source),z=J(q.source),j=G.ruleValue.toolName;if(f==="deny")return`Remove the "${j}" deny rule from ${v}, or remove the specific allow rule from ${z}`;return`Remove the "${j}" ask rule from ${v}, or remove the specific allow rule from ${z}`}function Z(f,G,q){let{toolName:v,ruleContent:z}=f.ruleValue;if(z===void 0)return{shadowed:!1};let j=G.find((E)=>E.ruleValue.toolName===v&&E.ruleValue.ruleContent===void 0);if(!j)return{shadowed:!1};if(v===M&&q.sandboxAutoAllowEnabled){if(!Y(j.source))return{shadowed:!1}}return{shadowed:!0,shadowedBy:j,shadowType:"ask"}}function _(f,G){let{toolName:q,ruleContent:v}=f.ruleValue;if(v===void 0)return{shadowed:!1};let z=G.find((j)=>j.ruleValue.toolName===q&&j.ruleValue.ruleContent===void 0);if(!z)return{shadowed:!1};return{shadowed:!0,shadowedBy:z,shadowType:"deny"}}function F(f,G){let q=[],v=P(f),z=U(f),j=Q(f);for(let E of v){let H=_(E,j);if(H.shadowed){let K=J(H.shadowedBy.source);q.push({rule:E,reason:`Blocked by "${H.shadowedBy.ruleValue.toolName}" deny rule (from ${K})`,shadowedBy:H.shadowedBy,shadowType:"deny",fix:L("deny",H.shadowedBy,E)});continue}let I=Z(E,z,G);if(I.shadowed){let K=J(I.shadowedBy.source);q.push({rule:E,reason:`Shadowed by "${I.shadowedBy.ruleValue.toolName}" ask rule (from ${K})`,shadowedBy:I.shadowedBy,shadowType:"ask",fix:L("ask",I.shadowedBy,E)})}}return q}var $=V(()=>{W();X()});
2
- export{F as Te,$ as Ue};
@@ -1,2 +0,0 @@
1
- import{$H as Q,aI as $}from"./cli-0.1.9-04ez73f7.mjs";import{hha as V,hia as W,iha as P,iia as E}from"./cli-0.1.9-7fp0smtp.mjs";import{lna as L}from"./cli-0.1.9-kbrf27z8.mjs";function Z(x,q,D,G){var H=-1,J=x==null?0:x.length;while(++H<J){var K=x[H];q(G,K,D(K),x)}return G}var M;var N=L(()=>{M=Z});function B(x,q,D,G){return Q(x,function(H,J,K){q(G,H,D(H),K)}),G}var S;var U=L(()=>{$();S=B});function I(x,q){return function(D,G){var H=V(D)?M:S,J=q?q():{};return H(D,x,W(G,2),J)}}var X;var Y=L(()=>{N();U();E();P();X=I});var R,v;var C=L(()=>{Y();R=X(function(x,q,D){x[D?0:1].push(q)},function(){return[[],[]]}),v=R});
2
- export{v as kc,C as lc};
@@ -1,2 +0,0 @@
1
- import{lna as aH}from"./cli-0.1.9-kbrf27z8.mjs";import{createRequire as cH}from"module";function NC(H,C){if(typeof H=="function")C=H,H={};return this.ondata=C,H}function CJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[ZC],function(K){return XC(fC(K.data[0],K.data[1]))},0,J)}function fC(H,C){return RC(H,C||{},0,0)}function mH(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[TC],function(K){return XC(yC(K.data[0],VH(K.data[1])))},1,J)}function yC(H,C){return wC(H,{i:2},C&&C.out,C&&C.dictionary)}function NJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[ZC,yH,function(){return[qH]}],function(K){return XC(qH(K.data[0],K.data[1]))},2,J)}function qH(H,C){if(!C)C={};var J=GC(),K=H.length;J.p(H);var Q=RC(H,C,$H(C),8),V=Q.length;return XH(Q,C),g(Q,V-8,J.d()),g(Q,V-4,K),Q}function JJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[TC,vH,function(){return[tC]}],function(K){return XC(tC(K.data[0],K.data[1]))},3,J)}function tC(H,C){var J=YH(H);if(J+8>H.length)B(6,"invalid gzip data");return wC(H.subarray(J,-8),{i:2},C&&C.out||new Z(_H(H)),C&&C.dictionary)}function WJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[ZC,kH,function(){return[MH]}],function(K){return XC(MH(K.data[0],K.data[1]))},4,J)}function MH(H,C){if(!C)C={};var J=eC();J.p(H);var K=RC(H,C,C.dictionary?6:2,4);return RH(K,C),g(K,K.length-4,J.d()),K}function QJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[TC,hH,function(){return[HH]}],function(K){return XC(HH(K.data[0],VH(K.data[1])))},5,J)}function HH(H,C){return wC(H.subarray(NH(H,C&&C.dictionary),-4),{i:2},C&&C.out,C&&C.dictionary)}function FJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return H[0]==31&&H[1]==139&&H[2]==8?JJ(H,C,J):(H[0]&15)!=8||H[0]>>4>7||(H[0]<<8|H[1])%31?mH(H,C,J):QJ(H,C,J)}function qJ(H,C){return H[0]==31&&H[1]==139&&H[2]==8?tC(H,C):(H[0]&15)!=8||H[0]>>4>7||(H[0]<<8|H[1])%31?yC(H,C):HH(H,C)}function $C(H,C){if(C){var J=new Z(H.length);for(var K=0;K<H.length;++K)J[K]=H.charCodeAt(K);return J}if(PH)return PH.encode(H);var Q=H.length,V=new Z(H.length+(H.length>>1)),X=0,Y=function($){V[X++]=$};for(var K=0;K<Q;++K){if(X+5>V.length){var E=new Z(X+8+(Q-K<<1));E.set(V),V=E}var R=H.charCodeAt(K);if(R<128||C)Y(R);else if(R<2048)Y(192|R>>6),Y(128|R&63);else if(R>55295&&R<57344)R=65536+(R&1047552)|H.charCodeAt(++K)&1023,Y(240|R>>18),Y(128|R>>12&63),Y(128|R>>6&63),Y(128|R&63);else Y(224|R>>12),Y(128|R>>6&63),Y(128|R&63)}return d(V,0,X)}function nH(H,C){if(C){var J="";for(var K=0;K<H.length;K+=16384)J+=String.fromCharCode.apply(null,H.subarray(K,K+16384));return J}else if(JH)return JH.decode(H);else{var Q=pH(H),V=Q.s,J=Q.r;if(J.length)B(8);return V}}function GJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);var K={};EH(H,"",K,C);var Q=Object.keys(K),V=Q.length,X=0,Y=0,E=V,R=Array(V),$=[],N=function(){for(var F=0;F<$.length;++F)$[F]()},W=function(F,P){bC(function(){J(F,P)})};bC(function(){W=J});var T=function(){var F=new Z(Y+22),P=X,I=Y-X;Y=0;for(var G=0;G<E;++G){var O=R[G];try{var x=O.c.length;MC(F,Y,O,O.f,O.u,x);var w=30+O.f.length+VC(O.extra),D=Y+w;F.set(O.c,D),MC(F,X,O,O.f,O.u,x,Y,O.m),X+=16+w+(O.m?O.m.length:0),Y=D+x}catch(M){return W(M,null)}}WH(F,X,R.length,I,P),W(null,F)};if(!V)T();var L=function(F){var P=Q[F],I=K[P],G=I[0],O=I[1],x=GC(),w=G.length;x.p(G);var D=$C(P),M=D.length,q=O.comment,A=q&&$C(q),S=A&&A.length,v=VC(O.extra),m=O.level==0?0:8,y=function(h,k){if(h)N(),W(h,null);else{var z=k.length;if(R[F]=zC(O,{size:w,crc:x.d(),c:k,f:D,m:A,u:M!=P.length||A&&q.length!=S,compression:m}),X+=30+M+v+z,Y+=76+2*(M+v)+(S||0)+z,!--V)T()}};if(M>65535)y(B(11,0,1),null);if(!m)y(null,G);else if(w<160000)try{y(null,fC(G,O))}catch(h){y(h,null)}else $.push(CJ(G,O,y))};for(var j=0;j<E;++j)L(j);return N}function TJ(H,C){if(!C)C={};var J={},K=[];EH(H,"",J,C);var Q=0,V=0;for(var X in J){var Y=J[X],E=Y[0],R=Y[1],$=R.level==0?0:8,N=$C(X),W=N.length,T=R.comment,L=T&&$C(T),j=L&&L.length,F=VC(R.extra);if(W>65535)B(11);var P=$?fC(E,R):E,I=P.length,G=GC();G.p(E),K.push(zC(R,{size:E.length,crc:G.d(),c:P,f:N,m:L,u:W!=X.length||L&&T.length!=j,o:Q,compression:$})),Q+=30+W+F+I,V+=76+2*(W+F)+(j||0)+I}var O=new Z(V+22),x=Q,w=V-Q;for(var D=0;D<K.length;++D){var N=K[D];MC(O,N.o,N,N.f,N.u,N.c.length);var M=30+N.f.length+VC(N.extra);O.set(N.c,N.o+M),MC(O,Q,N,N.f,N.u,N.c.length,N.o,N.m),Q+=16+M+(N.m?N.m.length:0)}return WH(O,Q,K.length,w,x),O}function AJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);var K=[],Q=function(){for(var F=0;F<K.length;++F)K[F]()},V={},X=function(F,P){bC(function(){J(F,P)})};bC(function(){X=J});var Y=H.length-22;for(;u(H,Y)!=101010256;--Y)if(!Y||H.length-Y>65558)return X(B(13,0,1),null),Q;var E=n(H,Y+8);if(E){var R=E,$=u(H,Y+16),N=$==4294967295||R==65535;if(N){var W=u(H,Y-12);if(N=u(H,W)==101075792,N)R=E=u(H,W+32),$=u(H,W+48)}var T=C&&C.filter,L=function(F){var P=eH(H,$,N),I=P[0],G=P[1],O=P[2],x=P[3],w=P[4],D=P[5],M=bH(H,D);$=w;var q=function(S,v){if(S)Q(),X(S,null);else{if(v)V[x]=v;if(!--E)X(null,V)}};if(!T||T({name:x,size:G,originalSize:O,compression:I}))if(!I)q(null,d(H,M,M+G));else if(I==8){var A=H.subarray(M,M+G);if(O<524288||G>0.8*O)try{q(null,yC(A,{out:new Z(O)}))}catch(S){q(S,null)}else K.push(mH(A,{size:O},q))}else q(B(14,"unknown compression type "+I,1),null);else q(null,null)};for(var j=0;j<R;++j)L(j)}else X(null,{});return Q}function DJ(H,C){var J={},K=H.length-22;for(;u(H,K)!=101010256;--K)if(!K||H.length-K>65558)B(13);var Q=n(H,K+8);if(!Q)return{};var V=u(H,K+16),X=V==4294967295||Q==65535;if(X){var Y=u(H,K-12);if(X=u(H,Y)==101075792,X)Q=u(H,Y+32),V=u(H,Y+48)}var E=C&&C.filter;for(var R=0;R<Q;++R){var $=eH(H,V,X),N=$[0],W=$[1],T=$[2],L=$[3],j=$[4],F=$[5],P=bH(H,F);if(V=j,!E||E({name:L,size:W,originalSize:T,compression:N}))if(!N)J[L]=d(H,P,P+W);else if(N==8)J[L]=yC(H.subarray(P,P+W),{out:new Z(T)});else B(14,"unknown compression type "+N)}return J}var lH,_C,dH=";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global",iH,Z,o,xC,LC,PC,SC,jH=function(H,C){var J=new o(31);for(var K=0;K<31;++K)J[K]=C+=1<<H[K-1];var Q=new xC(J[30]);for(var K=1;K<30;++K)for(var V=J[K];V<J[K+1];++V)Q[V]=V-J[K]<<5|K;return{b:J,r:Q}},GH,KH,pC,TH,ZH,lC,gC,CC,U,l=function(H,C,J){var K=H.length,Q=0,V=new o(C);for(;Q<K;++Q)if(H[Q])++V[H[Q]-1];var X=new o(C);for(Q=1;Q<C;++Q)X[Q]=X[Q-1]+V[Q-1]<<1;var Y;if(J){Y=new o(1<<C);var E=15-C;for(Q=0;Q<K;++Q)if(H[Q]){var R=Q<<4|H[Q],$=C-H[Q],N=X[H[Q]-1]++<<$;for(var W=N|(1<<$)-1;N<=W;++N)Y[gC[N]>>E]=R}}else{Y=new o(K);for(Q=0;Q<K;++Q)if(H[Q])Y[Q]=gC[X[H[Q]-1]++]>>15-H[Q]}return Y},KC,U,U,U,U,OC,U,UH,IH,AH,DH,uC=function(H){var C=H[0];for(var J=1;J<H.length;++J)if(H[J]>C)C=H[J];return C},c=function(H,C,J){var K=C/8|0;return(H[K]|H[K+1]<<8)>>(C&7)&J},mC=function(H,C){var J=C/8|0;return(H[J]|H[J+1]<<8|H[J+2]<<16)>>(C&7)},jC=function(H){return(H+7)/8|0},d=function(H,C,J){if(C==null||C<0)C=0;if(J==null||J>H.length)J=H.length;return new Z(H.subarray(C,J))},$J,SH,B=function(H,C,J){var K=Error(C||SH[H]);if(K.code=H,Error.captureStackTrace)Error.captureStackTrace(K,B);if(!J)throw K;return K},wC=function(H,C,J,K){var Q=H.length,V=K?K.length:0;if(!Q||C.f&&!C.l)return J||new Z(0);var X=!J,Y=X||C.i!=2,E=C.i;if(X)J=new Z(Q*3);var R=function(AC){var DC=J.length;if(AC>DC){var BC=new Z(Math.max(DC*2,AC));BC.set(J),J=BC}},$=C.f||0,N=C.p||0,W=C.b||0,T=C.l,L=C.d,j=C.m,F=C.n,P=Q*8;do{if(!T){$=c(H,N,1);var I=c(H,N+1,3);if(N+=3,!I){var G=jC(N)+4,O=H[G-4]|H[G-3]<<8,x=G+O;if(x>Q){if(E)B(0);break}if(Y)R(W+O);J.set(H.subarray(G,x),W),C.b=W+=O,C.p=N=x*8,C.f=$;continue}else if(I==1)T=IH,L=DH,j=9,F=5;else if(I==2){var w=c(H,N,31)+257,D=c(H,N+10,15)+4,M=w+c(H,N+5,31)+1;N+=14;var q=new Z(M),A=new Z(19);for(var S=0;S<D;++S)A[SC[S]]=c(H,N+S*3,7);N+=D*3;var v=uC(A),m=(1<<v)-1,y=l(A,v,1);for(var S=0;S<M;){var h=y[c(H,N,m)];N+=h&15;var G=h>>4;if(G<16)q[S++]=G;else{var k=0,z=0;if(G==16)z=3+c(H,N,3),N+=2,k=q[S-1];else if(G==17)z=3+c(H,N,7),N+=3;else if(G==18)z=11+c(H,N,127),N+=7;while(z--)q[S++]=k}}var p=q.subarray(0,w),r=q.subarray(w);j=uC(p),F=uC(r),T=l(p,j,1),L=l(r,F,1)}else B(1);if(N>P){if(E)B(0);break}}if(Y)R(W+131072);var YC=(1<<j)-1,b=(1<<F)-1,JC=N;for(;;JC=N){var k=T[mC(H,N)&YC],e=k>>4;if(N+=k&15,N>P){if(E)B(0);break}if(!k)B(2);if(e<256)J[W++]=e;else if(e==256){JC=N,T=null;break}else{var f=e-254;if(e>264){var S=e-257,_=LC[S];f=c(H,N,(1<<_)-1)+KH[S],N+=_}var t=L[mC(H,N)&b],EC=t>>4;if(!t)B(3);N+=t&15;var r=ZH[EC];if(EC>3){var _=PC[EC];r+=mC(H,N)&(1<<_)-1,N+=_}if(N>P){if(E)B(0);break}if(Y)R(W+131072);var WC=W+f;if(W<r){var vC=V-r,kC=Math.min(r,WC);if(vC+W<0)B(3);for(;W<kC;++W)J[W]=K[vC+W]}for(;W<WC;++W)J[W]=J[W-r]}}if(C.l=T,C.p=JC,C.b=W,C.f=$,T)$=1,C.m=j,C.d=L,C.n=F}while(!$);return W!=J.length&&X?d(J,0,W):J.subarray(0,W)},HC=function(H,C,J){J<<=C&7;var K=C/8|0;H[K]|=J,H[K+1]|=J>>8},FC=function(H,C,J){J<<=C&7;var K=C/8|0;H[K]|=J,H[K+1]|=J>>8,H[K+2]|=J>>16},rC=function(H,C){var J=[];for(var K=0;K<H.length;++K)if(H[K])J.push({s:K,f:H[K]});var Q=J.length,V=J.slice();if(!Q)return{t:QC,l:0};if(Q==1){var X=new Z(J[0].s+1);return X[J[0].s]=1,{t:X,l:1}}J.sort(function(x,w){return x.f-w.f}),J.push({s:-1,f:25001});var Y=J[0],E=J[1],R=0,$=1,N=2;J[0]={s:-1,f:Y.f+E.f,l:Y,r:E};while($!=Q-1)Y=J[J[R].f<J[N].f?R++:N++],E=J[R!=$&&J[R].f<J[N].f?R++:N++],J[$++]={s:-1,f:Y.f+E.f,l:Y,r:E};var W=V[0].s;for(var K=1;K<Q;++K)if(V[K].s>W)W=V[K].s;var T=new o(W+1),L=nC(J[$-1],T,0);if(L>C){var K=0,j=0,F=L-C,P=1<<F;V.sort(function(w,D){return T[D.s]-T[w.s]||w.f-D.f});for(;K<Q;++K){var I=V[K].s;if(T[I]>C)j+=P-(1<<L-T[I]),T[I]=C;else break}j>>=F;while(j>0){var G=V[K].s;if(T[G]<C)j-=1<<C-T[G]++-1;else++K}for(;K>=0&&j;--K){var O=V[K].s;if(T[O]==C)--T[O],++j}L=C}return{t:new Z(T),l:L}},nC=function(H,C,J){return H.s==-1?Math.max(nC(H.l,C,J+1),nC(H.r,C,J+1)):C[H.s]=J},dC=function(H){var C=H.length;while(C&&!H[--C]);var J=new o(++C),K=0,Q=H[0],V=1,X=function(E){J[K++]=E};for(var Y=1;Y<=C;++Y)if(H[Y]==Q&&Y!=C)++V;else{if(!Q&&V>2){for(;V>138;V-=138)X(32754);if(V>2)X(V>10?V-11<<5|28690:V-3<<5|12305),V=0}else if(V>3){X(Q),--V;for(;V>6;V-=6)X(8304);if(V>2)X(V-3<<5|8208),V=0}while(V--)X(Q);V=1,Q=H[Y]}return{c:J.subarray(0,K),n:C}},qC=function(H,C){var J=0;for(var K=0;K<C.length;++K)J+=H[K]*C[K];return J},QH=function(H,C,J){var K=J.length,Q=jC(C+2);H[Q]=K&255,H[Q+1]=K>>8,H[Q+2]=H[Q]^255,H[Q+3]=H[Q+1]^255;for(var V=0;V<K;++V)H[Q+V+4]=J[V];return(Q+4+K)*8},iC=function(H,C,J,K,Q,V,X,Y,E,R,$){HC(C,$++,J),++Q[256];var N=rC(Q,15),W=N.t,T=N.l,L=rC(V,15),j=L.t,F=L.l,P=dC(W),I=P.c,G=P.n,O=dC(j),x=O.c,w=O.n,D=new o(19);for(var M=0;M<I.length;++M)++D[I[M]&31];for(var M=0;M<x.length;++M)++D[x[M]&31];var q=rC(D,7),A=q.t,S=q.l,v=19;for(;v>4&&!A[SC[v-1]];--v);var m=R+5<<3,y=qC(Q,KC)+qC(V,OC)+X,h=qC(Q,W)+qC(V,j)+X+14+3*v+qC(D,A)+2*D[16]+3*D[17]+7*D[18];if(E>=0&&m<=y&&m<=h)return QH(C,$,H.subarray(E,E+R));var k,z,p,r;if(HC(C,$,1+(h<y)),$+=2,h<y){k=l(W,T,0),z=W,p=l(j,F,0),r=j;var YC=l(A,S,0);HC(C,$,G-257),HC(C,$+5,w-1),HC(C,$+10,v-4),$+=14;for(var M=0;M<v;++M)HC(C,$+3*M,A[SC[M]]);$+=3*v;var b=[I,x];for(var JC=0;JC<2;++JC){var e=b[JC];for(var M=0;M<e.length;++M){var f=e[M]&31;if(HC(C,$,YC[f]),$+=A[f],f>15)HC(C,$,e[M]>>5&127),$+=e[M]>>12}}}else k=UH,z=KC,p=AH,r=OC;for(var M=0;M<Y;++M){var _=K[M];if(_>255){var f=_>>18&31;if(FC(C,$,k[f+257]),$+=z[f+257],f>7)HC(C,$,_>>23&31),$+=LC[f];var t=_&31;if(FC(C,$,p[t]),$+=r[t],t>3)FC(C,$,_>>5&8191),$+=PC[t]}else FC(C,$,k[_]),$+=z[_]}return FC(C,$,k[256]),$+z[256]},gH,QC,xH=function(H,C,J,K,Q,V){var X=V.z||H.length,Y=new Z(K+X+5*(1+Math.ceil(X/7000))+Q),E=Y.subarray(K,Y.length-Q),R=V.l,$=(V.r||0)&7;if(C){if($)E[0]=V.r>>3;var N=gH[C-1],W=N>>13,T=N&8191,L=(1<<J)-1,j=V.p||new o(32768),F=V.h||new o(L+1),P=Math.ceil(J/3),I=2*P,G=function(aC){return(H[aC]^H[aC+1]<<P^H[aC+2]<<I)&L},O=new xC(25000),x=new o(288),w=new o(32),D=0,M=0,q=V.i||0,A=0,S=V.w||0,v=0;for(;q+2<X;++q){var m=G(q),y=q&32767,h=F[m];if(j[y]=h,F[m]=y,S<=q){var k=X-q;if((D>7000||A>24576)&&(k>423||!R)){$=iC(H,E,0,O,x,w,M,A,v,q-v,$),A=D=M=0,v=q;for(var z=0;z<286;++z)x[z]=0;for(var z=0;z<30;++z)w[z]=0}var p=2,r=0,YC=T,b=y-h&32767;if(k>2&&m==G(q-b)){var JC=Math.min(W,k)-1,e=Math.min(32767,q),f=Math.min(258,k);while(b<=e&&--YC&&y!=h){if(H[q+p]==H[q+p-b]){var _=0;for(;_<f&&H[q+_]==H[q+_-b];++_);if(_>p){if(p=_,r=b,_>JC)break;var t=Math.min(b,_-2),EC=0;for(var z=0;z<t;++z){var WC=q-b+z&32767,vC=j[WC],kC=WC-vC&32767;if(kC>EC)EC=kC,h=WC}}}y=h,h=j[y],b+=y-h&32767}}if(r){O[A++]=268435456|pC[p]<<18|lC[r];var AC=pC[p]&31,DC=lC[r]&31;M+=LC[AC]+PC[DC],++x[257+AC],++w[DC],S=q+p,++D}else O[A++]=H[q],++x[H[q]]}}for(q=Math.max(q,S);q<X;++q)O[A++]=H[q],++x[H[q]];if($=iC(H,E,R,O,x,w,M,A,v,q-v,$),!R)V.r=$&7|E[$/8|0]<<3,$-=7,V.h=F,V.p=j,V.i=q,V.w=S}else{for(var q=V.w||0;q<X+R;q+=65535){var BC=q+65535;if(BC>=X)E[$/8|0]=R,BC=X;$=QH(E,$+1,H.subarray(q,BC))}V.i=X}return d(Y,0,K+jC($)+Q)},wH,GC=function(){var H=-1;return{p:function(C){var J=H;for(var K=0;K<C.length;++K)J=wH[J&255^C[K]]^J>>>8;H=J},d:function(){return~H}}},eC=function(){var H=1,C=0;return{p:function(J){var K=H,Q=C,V=J.length|0;for(var X=0;X!=V;){var Y=Math.min(X+2655,V);for(;X<Y;++X)Q+=K+=J[X];K=(K&65535)+15*(K>>16),Q=(Q&65535)+15*(Q>>16)}H=K,C=Q},d:function(){return H%=65521,C%=65521,(H&255)<<24|(H&65280)<<8|(C&255)<<8|C>>8}}},RC=function(H,C,J,K,Q){if(!Q){if(Q={l:1},C.dictionary){var V=C.dictionary.subarray(-32768),X=new Z(V.length+H.length);X.set(V),X.set(H,V.length),H=X,Q.w=V.length}}return xH(H,C.level==null?6:C.level,C.mem==null?Q.l?Math.ceil(Math.max(8,Math.min(13,Math.log(H.length)))*1.5):20:12+C.mem,J,K,Q)},zC=function(H,C){var J={};for(var K in H)J[K]=H[K];for(var K in C)J[K]=C[K];return J},BH=function(H,C,J){var K=H(),Q=H.toString(),V=Q.slice(Q.indexOf("[")+1,Q.lastIndexOf("]")).replace(/\s+/g,"").split(",");for(var X=0;X<K.length;++X){var Y=K[X],E=V[X];if(typeof Y=="function"){C+=";"+E+"=";var R=Y.toString();if(Y.prototype)if(R.indexOf("[native code]")!=-1){var $=R.indexOf(" ",8)+1;C+=R.slice($,R.indexOf("(",$))}else{C+=R;for(var N in Y.prototype)C+=";"+E+".prototype."+N+"="+Y.prototype[N].toString()}else C+=R}else J[E]=Y}return C},hC,sH=function(H){var C=[];for(var J in H)if(H[J].buffer)C.push((H[J]=new H[J].constructor(H[J])).buffer);return C},zH=function(H,C,J,K){if(!hC[J]){var Q="",V={},X=H.length-1;for(var Y=0;Y<X;++Y)Q=BH(H[Y],Q,V);hC[J]={c:BH(H[X],Q,V),e:V}}var E=zC({},hC[J].e);return iH(hC[J].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+C.toString()+"}",J,E,sH(E),K)},TC=function(){return[Z,o,xC,LC,PC,SC,KH,ZH,IH,DH,gC,SH,l,uC,c,mC,jC,d,B,wC,yC,XC,VH]},ZC=function(){return[Z,o,xC,LC,PC,SC,pC,lC,UH,KC,AH,OC,gC,gH,QC,l,HC,FC,rC,nC,dC,qC,QH,iC,jC,d,xH,RC,fC,XC]},yH=function(){return[XH,$H,g,GC,wH]},vH=function(){return[YH,_H]},kH=function(){return[RH,g,eC]},hH=function(){return[NH]},XC=function(H){return postMessage(H,[H.buffer])},VH=function(H){return H&&{out:H.size&&new Z(H.size),dictionary:H.dictionary}},UC=function(H,C,J,K,Q,V){var X=zH(J,K,Q,function(Y,E){X.terminate(),V(Y,E)});return X.postMessage([H,C],C.consume?[H.buffer]:[]),function(){X.terminate()}},i=function(H){return H.ondata=function(C,J){return postMessage([C,J],[C.buffer])},function(C){if(C.data.length)H.push(C.data[0],C.data[1]),postMessage([C.data[0].length]);else H.flush()}},IC=function(H,C,J,K,Q,V,X){var Y,E=zH(H,K,Q,function(R,$){if(R)E.terminate(),C.ondata.call(C,R);else if(!Array.isArray($))X($);else if($.length==1){if(C.queuedSize-=$[0],C.ondrain)C.ondrain($[0])}else{if($[1])E.terminate();C.ondata.call(C,R,$[0],$[1])}});if(E.postMessage(J),C.queuedSize=0,C.push=function(R,$){if(!C.ondata)B(5);if(Y)C.ondata(B(4,0,1),null,!!$);C.queuedSize+=R.length,E.postMessage([R,Y=$],[R.buffer])},C.terminate=function(){E.terminate()},V)C.flush=function(){E.postMessage([])}},n=function(H,C){return H[C]|H[C+1]<<8},u=function(H,C){return(H[C]|H[C+1]<<8|H[C+2]<<16|H[C+3]<<24)>>>0},cC=function(H,C){return u(H,C)+u(H,C+4)*4294967296},g=function(H,C,J){for(;J;++C)H[C]=J,J>>>=8},XH=function(H,C){var J=C.filename;if(H[0]=31,H[1]=139,H[2]=8,H[8]=C.level<2?4:C.level==9?2:0,H[9]=3,C.mtime!=0)g(H,4,Math.floor(new Date(C.mtime||Date.now())/1000));if(J){H[3]=8;for(var K=0;K<=J.length;++K)H[K+10]=J.charCodeAt(K)}},YH=function(H){if(H[0]!=31||H[1]!=139||H[2]!=8)B(6,"invalid gzip data");var C=H[3],J=10;if(C&4)J+=(H[10]|H[11]<<8)+2;for(var K=(C>>3&1)+(C>>4&1);K>0;K-=!H[J++]);return J+(C&2)},_H=function(H){var C=H.length;return(H[C-4]|H[C-3]<<8|H[C-2]<<16|H[C-1]<<24)>>>0},$H=function(H){return 10+(H.filename?H.filename.length+1:0)},RH=function(H,C){var J=C.level,K=J==0?0:J<6?1:J==9?3:2;if(H[0]=120,H[1]=K<<6|(C.dictionary&&32),H[1]|=31-(H[0]<<8|H[1])%31,C.dictionary){var Q=eC();Q.p(C.dictionary),g(H,2,Q.d())}},NH=function(H,C){if((H[0]&15)!=8||H[0]>>4>7||(H[0]<<8|H[1])%31)B(6,"invalid zlib data");if((H[1]>>5&1)==+!C)B(6,"invalid zlib data: "+(H[1]&32?"need":"unexpected")+" dictionary");return(H[1]>>3&4)+2},s,tH,a,uH,FH,RJ,sC,HJ,OH,EJ,CH,KJ,LH,BJ,EH=function(H,C,J,K){for(var Q in H){var V=H[Q],X=C+Q,Y=K;if(Array.isArray(V))Y=zC(K,V[1]),V=V[0];if(V instanceof Z)J[X]=[V,Y];else J[X+="/"]=[new Z(0),Y],EH(V,X,J,K)}},PH,JH,rH=0,pH=function(H){for(var C="",J=0;;){var K=H[J++],Q=(K>127)+(K>223)+(K>239);if(J+Q>H.length)return{s:C,r:d(H,J-1)};if(!Q)C+=String.fromCharCode(K);else if(Q==3)K=((K&15)<<18|(H[J++]&63)<<12|(H[J++]&63)<<6|H[J++]&63)-65536,C+=String.fromCharCode(55296|K>>10,56320|K&1023);else if(Q&1)C+=String.fromCharCode((K&31)<<6|H[J++]&63);else C+=String.fromCharCode((K&15)<<12|(H[J++]&63)<<6|H[J++]&63)}},OJ,MJ,oH=function(H){return H==1?3:H<6?2:H==9?1:0},bH=function(H,C){return C+30+n(H,C+26)+n(H,C+28)},eH=function(H,C,J){var K=n(H,C+28),Q=nH(H.subarray(C+46,C+46+K),!(n(H,C+8)&2048)),V=C+46+K,X=u(H,C+20),Y=J&&X==4294967295?fH(H,V):[X,u(H,C+24),u(H,C+42)],E=Y[0],R=Y[1],$=Y[2];return[n(H,C+10),E,R,Q,V+n(H,C+30)+n(H,C+32),$]},fH=function(H,C){for(;n(H,C)!=1;C+=4+n(H,C+2));return[cC(H,C+12),cC(H,C+4),cC(H,C+20)]},VC=function(H){var C=0;if(H)for(var J in H){var K=H[J].length;if(K>65535)B(9);C+=K+4}return C},MC=function(H,C,J,K,Q,V,X,Y){var E=K.length,R=J.extra,$=Y&&Y.length,N=VC(R);if(g(H,C,X!=null?33639248:67324752),C+=4,X!=null)H[C++]=20,H[C++]=J.os;H[C]=20,C+=2,H[C++]=J.flag<<1|(V<0&&8),H[C++]=Q&&8,H[C++]=J.compression&255,H[C++]=J.compression>>8;var W=new Date(J.mtime==null?Date.now():J.mtime),T=W.getFullYear()-1980;if(T<0||T>119)B(10);if(g(H,C,T<<25|W.getMonth()+1<<21|W.getDate()<<16|W.getHours()<<11|W.getMinutes()<<5|W.getSeconds()>>1),C+=4,V!=-1)g(H,C,J.crc),g(H,C+4,V<0?-V-2:V),g(H,C+8,J.size);if(g(H,C+12,E),g(H,C+14,N),C+=16,X!=null)g(H,C,$),g(H,C+6,J.attrs),g(H,C+10,X),C+=14;if(H.set(K,C),C+=E,N)for(var L in R){var j=R[L],F=j.length;g(H,C,+L),g(H,C+2,F),H.set(j,C+4),C+=4+F}if($)H.set(Y,C),C+=$;return C},WH=function(H,C,J,K,Q){g(H,C,101010256),g(H,C+8,J),g(H,C+10,J),g(H,C+12,K),g(H,C+16,Q)},oC,LJ,PJ,jJ,VJ,ZJ,UJ,IJ,bC;var XJ=aH(()=>{lH=cH("/");try{_C=lH("worker_threads").Worker}catch(H){}iH=_C?function(H,C,J,K,Q){var V=!1,X=new _C(H+dH,{eval:!0}).on("error",function(Y){return Q(Y,null)}).on("message",function(Y){return Q(null,Y)}).on("exit",function(Y){if(Y&&!V)Q(Error("exited with code "+Y),null)});return X.postMessage(J,K),X.terminate=function(){return V=!0,_C.prototype.terminate.call(X)},X}:function(H,C,J,K,Q){setImmediate(function(){return Q(Error("async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)"),null)});var V=function(){};return{terminate:V,postMessage:V}},Z=Uint8Array,o=Uint16Array,xC=Int32Array,LC=new Z([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),PC=new Z([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),SC=new Z([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),GH=jH(LC,2),KH=GH.b,pC=GH.r;KH[28]=258,pC[258]=28;TH=jH(PC,0),ZH=TH.b,lC=TH.r,gC=new o(32768);for(U=0;U<32768;++U)CC=(U&43690)>>1|(U&21845)<<1,CC=(CC&52428)>>2|(CC&13107)<<2,CC=(CC&61680)>>4|(CC&3855)<<4,gC[U]=((CC&65280)>>8|(CC&255)<<8)>>1;KC=new Z(288);for(U=0;U<144;++U)KC[U]=8;for(U=144;U<256;++U)KC[U]=9;for(U=256;U<280;++U)KC[U]=7;for(U=280;U<288;++U)KC[U]=8;OC=new Z(32);for(U=0;U<32;++U)OC[U]=5;UH=l(KC,9,0),IH=l(KC,9,1),AH=l(OC,5,0),DH=l(OC,5,1),$J={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},SH=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],gH=new xC([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),QC=new Z(0),wH=function(){var H=new Int32Array(256);for(var C=0;C<256;++C){var J=C,K=9;while(--K)J=(J&1&&-306674912)^J>>>1;H[C]=J}return H}(),hC=[];s=function(){function H(C,J){if(typeof C=="function")J=C,C={};if(this.ondata=J,this.o=C||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new Z(98304),this.o.dictionary){var K=this.o.dictionary.subarray(-32768);this.b.set(K,32768-K.length),this.s.i=32768-K.length}}return H.prototype.p=function(C,J){this.ondata(RC(C,this.o,0,0,this.s),J)},H.prototype.push=function(C,J){if(!this.ondata)B(5);if(this.s.l)B(4);var K=C.length+this.s.z;if(K>this.b.length){if(K>2*this.b.length-32768){var Q=new Z(K&-32768);Q.set(this.b.subarray(0,this.s.z)),this.b=Q}var V=this.b.length-this.s.z;this.b.set(C.subarray(0,V),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(C.subarray(V),32768),this.s.z=C.length-V+32768,this.s.i=32766,this.s.w=32768}else this.b.set(C,this.s.z),this.s.z+=C.length;if(this.s.l=J&1,this.s.z>this.s.w+8191||J)this.p(this.b,J||!1),this.s.w=this.s.i,this.s.i-=2},H.prototype.flush=function(){if(!this.ondata)B(5);if(this.s.l)B(4);this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},H}(),tH=function(){function H(C,J){IC([ZC,function(){return[i,s]}],this,NC.call(this,C,J),function(K){var Q=new s(K.data);onmessage=i(Q)},6,1)}return H}();a=function(){function H(C,J){if(typeof C=="function")J=C,C={};this.ondata=J;var K=C&&C.dictionary&&C.dictionary.subarray(-32768);if(this.s={i:0,b:K?K.length:0},this.o=new Z(32768),this.p=new Z(0),K)this.o.set(K)}return H.prototype.e=function(C){if(!this.ondata)B(5);if(this.d)B(4);if(!this.p.length)this.p=C;else if(C.length){var J=new Z(this.p.length+C.length);J.set(this.p),J.set(C,this.p.length),this.p=J}},H.prototype.c=function(C){this.s.i=+(this.d=C||!1);var J=this.s.b,K=wC(this.p,this.s,this.o);this.ondata(d(K,J,this.s.b),this.d),this.o=d(K,this.s.b-32768),this.s.b=this.o.length,this.p=d(this.p,this.s.p/8|0),this.s.p&=7},H.prototype.push=function(C,J){this.e(C),this.c(J)},H}(),uH=function(){function H(C,J){IC([TC,function(){return[i,a]}],this,NC.call(this,C,J),function(K){var Q=new a(K.data);onmessage=i(Q)},7,0)}return H}();FH=function(){function H(C,J){this.c=GC(),this.l=0,this.v=1,s.call(this,C,J)}return H.prototype.push=function(C,J){this.c.p(C),this.l+=C.length,s.prototype.push.call(this,C,J)},H.prototype.p=function(C,J){var K=RC(C,this.o,this.v&&$H(this.o),J&&8,this.s);if(this.v)XH(K,this.o),this.v=0;if(J)g(K,K.length-8,this.c.d()),g(K,K.length-4,this.l);this.ondata(K,J)},H.prototype.flush=function(){s.prototype.flush.call(this)},H}(),RJ=function(){function H(C,J){IC([ZC,yH,function(){return[i,s,FH]}],this,NC.call(this,C,J),function(K){var Q=new FH(K.data);onmessage=i(Q)},8,1)}return H}();sC=function(){function H(C,J){this.v=1,this.r=0,a.call(this,C,J)}return H.prototype.push=function(C,J){if(a.prototype.e.call(this,C),this.r+=C.length,this.v){var K=this.p.subarray(this.v-1),Q=K.length>3?YH(K):4;if(Q>K.length){if(!J)return}else if(this.v>1&&this.onmember)this.onmember(this.r-K.length);this.p=K.subarray(Q),this.v=0}if(a.prototype.c.call(this,J),this.s.f&&!this.s.l&&!J)this.v=jC(this.s.p)+9,this.s={i:0},this.o=new Z(0),this.push(new Z(0),J)},H}(),HJ=function(){function H(C,J){var K=this;IC([TC,vH,function(){return[i,a,sC]}],this,NC.call(this,C,J),function(Q){var V=new sC(Q.data);V.onmember=function(X){return postMessage(X)},onmessage=i(V)},9,0,function(Q){return K.onmember&&K.onmember(Q)})}return H}();OH=function(){function H(C,J){this.c=eC(),this.v=1,s.call(this,C,J)}return H.prototype.push=function(C,J){this.c.p(C),s.prototype.push.call(this,C,J)},H.prototype.p=function(C,J){var K=RC(C,this.o,this.v&&(this.o.dictionary?6:2),J&&4,this.s);if(this.v)RH(K,this.o),this.v=0;if(J)g(K,K.length-4,this.c.d());this.ondata(K,J)},H.prototype.flush=function(){s.prototype.flush.call(this)},H}(),EJ=function(){function H(C,J){IC([ZC,kH,function(){return[i,s,OH]}],this,NC.call(this,C,J),function(K){var Q=new OH(K.data);onmessage=i(Q)},10,1)}return H}();CH=function(){function H(C,J){a.call(this,C,J),this.v=C&&C.dictionary?2:1}return H.prototype.push=function(C,J){if(a.prototype.e.call(this,C),this.v){if(this.p.length<6&&!J)return;this.p=this.p.subarray(NH(this.p,this.v-1)),this.v=0}if(J){if(this.p.length<4)B(6,"invalid zlib data");this.p=this.p.subarray(0,-4)}a.prototype.c.call(this,J)},H}(),KJ=function(){function H(C,J){IC([TC,hH,function(){return[i,a,CH]}],this,NC.call(this,C,J),function(K){var Q=new CH(K.data);onmessage=i(Q)},11,0)}return H}();LH=function(){function H(C,J){this.o=NC.call(this,C,J)||{},this.G=sC,this.I=a,this.Z=CH}return H.prototype.i=function(){var C=this;this.s.ondata=function(J,K){C.ondata(J,K)}},H.prototype.push=function(C,J){if(!this.ondata)B(5);if(!this.s){if(this.p&&this.p.length){var K=new Z(this.p.length+C.length);K.set(this.p),K.set(C,this.p.length)}else this.p=C;if(this.p.length>2)this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(this.o):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,J),this.p=null}else this.s.push(C,J)},H}(),BJ=function(){function H(C,J){LH.call(this,C,J),this.queuedSize=0,this.G=HJ,this.I=uH,this.Z=KJ}return H.prototype.i=function(){var C=this;this.s.ondata=function(J,K,Q){C.ondata(J,K,Q)},this.s.ondrain=function(J){if(C.queuedSize-=J,C.ondrain)C.ondrain(J)}},H.prototype.push=function(C,J){this.queuedSize+=C.length,LH.prototype.push.call(this,C,J)},H}();PH=typeof TextEncoder<"u"&&new TextEncoder,JH=typeof TextDecoder<"u"&&new TextDecoder;try{JH.decode(QC,{stream:!0}),rH=1}catch(H){}OJ=function(){function H(C){if(this.ondata=C,rH)this.t=new TextDecoder;else this.p=QC}return H.prototype.push=function(C,J){if(!this.ondata)B(5);if(J=!!J,this.t){if(this.ondata(this.t.decode(C,{stream:!0}),J),J){if(this.t.decode().length)B(8);this.t=null}return}if(!this.p)B(4);var K=new Z(this.p.length+C.length);K.set(this.p),K.set(C,this.p.length);var Q=pH(K),V=Q.s,X=Q.r;if(J){if(X.length)B(8);this.p=null}else this.p=X;this.ondata(V,J)},H}(),MJ=function(){function H(C){this.ondata=C}return H.prototype.push=function(C,J){if(!this.ondata)B(5);if(this.d)B(4);this.ondata($C(C),this.d=J||!1)},H}();oC=function(){function H(C){this.filename=C,this.c=GC(),this.size=0,this.compression=0}return H.prototype.process=function(C,J){this.ondata(null,C,J)},H.prototype.push=function(C,J){if(!this.ondata)B(5);if(this.c.p(C),this.size+=C.length,J)this.crc=this.c.d();this.process(C,J||!1)},H}(),LJ=function(){function H(C,J){var K=this;if(!J)J={};oC.call(this,C),this.d=new s(J,function(Q,V){K.ondata(null,Q,V)}),this.compression=8,this.flag=oH(J.level)}return H.prototype.process=function(C,J){try{this.d.push(C,J)}catch(K){this.ondata(K,null,J)}},H.prototype.push=function(C,J){oC.prototype.push.call(this,C,J)},H}(),PJ=function(){function H(C,J){var K=this;if(!J)J={};oC.call(this,C),this.d=new tH(J,function(Q,V,X){K.ondata(Q,V,X)}),this.compression=8,this.flag=oH(J.level),this.terminate=this.d.terminate}return H.prototype.process=function(C,J){this.d.push(C,J)},H.prototype.push=function(C,J){oC.prototype.push.call(this,C,J)},H}(),jJ=function(){function H(C){this.ondata=C,this.u=[],this.d=1}return H.prototype.add=function(C){var J=this;if(!this.ondata)B(5);if(this.d&2)this.ondata(B(4+(this.d&1)*8,0,1),null,!1);else{var K=$C(C.filename),Q=K.length,V=C.comment,X=V&&$C(V),Y=Q!=C.filename.length||X&&V.length!=X.length,E=Q+VC(C.extra)+30;if(Q>65535)this.ondata(B(11,0,1),null,!1);var R=new Z(E);MC(R,0,C,K,Y,-1);var $=[R],N=function(){for(var F=0,P=$;F<P.length;F++){var I=P[F];J.ondata(null,I,!1)}$=[]},W=this.d;this.d=0;var T=this.u.length,L=zC(C,{f:K,u:Y,o:X,t:function(){if(C.terminate)C.terminate()},r:function(){if(N(),W){var F=J.u[T+1];if(F)F.r();else J.d=1}W=1}}),j=0;C.ondata=function(F,P,I){if(F)J.ondata(F,P,I),J.terminate();else if(j+=P.length,$.push(P),I){var G=new Z(16);if(g(G,0,134695760),g(G,4,C.crc),g(G,8,j),g(G,12,C.size),$.push(G),L.c=j,L.b=E+j+16,L.crc=C.crc,L.size=C.size,W)L.r();W=1}else if(W)N()},this.u.push(L)}},H.prototype.end=function(){var C=this;if(this.d&2){this.ondata(B(4+(this.d&1)*8,0,1),null,!0);return}if(this.d)this.e();else this.u.push({r:function(){if(!(C.d&1))return;C.u.splice(-1,1),C.e()},t:function(){}});this.d=3},H.prototype.e=function(){var C=0,J=0,K=0;for(var Q=0,V=this.u;Q<V.length;Q++){var X=V[Q];K+=46+X.f.length+VC(X.extra)+(X.o?X.o.length:0)}var Y=new Z(K+22);for(var E=0,R=this.u;E<R.length;E++){var X=R[E];MC(Y,C,X,X.f,X.u,-X.c-2,J,X.o),C+=46+X.f.length+VC(X.extra)+(X.o?X.o.length:0),J+=X.b}WH(Y,C,this.u.length,K,J),this.ondata(null,Y,!0),this.d=2},H.prototype.terminate=function(){for(var C=0,J=this.u;C<J.length;C++){var K=J[C];K.t()}this.d=2},H}();VJ=function(){function H(){}return H.prototype.push=function(C,J){this.ondata(null,C,J)},H.compression=0,H}(),ZJ=function(){function H(){var C=this;this.i=new a(function(J,K){C.ondata(null,J,K)})}return H.prototype.push=function(C,J){try{this.i.push(C,J)}catch(K){this.ondata(K,null,J)}},H.compression=8,H}(),UJ=function(){function H(C,J){var K=this;if(J<320000)this.i=new a(function(Q,V){K.ondata(null,Q,V)});else this.i=new uH(function(Q,V,X){K.ondata(Q,V,X)}),this.terminate=this.i.terminate}return H.prototype.push=function(C,J){if(this.i.terminate)C=d(C,0);this.i.push(C,J)},H.compression=8,H}(),IJ=function(){function H(C){this.onfile=C,this.k=[],this.o={0:VJ},this.p=QC}return H.prototype.push=function(C,J){var K=this;if(!this.onfile)B(5);if(!this.p)B(4);if(this.c>0){var Q=Math.min(this.c,C.length),V=C.subarray(0,Q);if(this.c-=Q,this.d)this.d.push(V,!this.c);else this.k[0].push(V);if(C=C.subarray(Q),C.length)return this.push(C,J)}else{var X=0,Y=0,E=void 0,R=void 0;if(!this.p.length)R=C;else if(!C.length)R=this.p;else R=new Z(this.p.length+C.length),R.set(this.p),R.set(C,this.p.length);var $=R.length,N=this.c,W=N&&this.d,T=function(){var P,I=u(R,Y);if(I==67324752){X=1,E=Y,L.d=null,L.c=0;var G=n(R,Y+6),O=n(R,Y+8),x=G&2048,w=G&8,D=n(R,Y+26),M=n(R,Y+28);if($>Y+30+D+M){var q=[];L.k.unshift(q),X=2;var A=u(R,Y+18),S=u(R,Y+22),v=nH(R.subarray(Y+30,Y+=30+D),!x);if(A==4294967295)P=w?[-2]:fH(R,Y),A=P[0],S=P[1];else if(w)A=-1;Y+=M,L.c=A;var m,y={name:v,compression:O,start:function(){if(!y.ondata)B(5);if(!A)y.ondata(null,QC,!0);else{var h=K.o[O];if(!h)y.ondata(B(14,"unknown compression type "+O,1),null,!1);m=A<0?new h(v):new h(v,A,S),m.ondata=function(r,YC,b){y.ondata(r,YC,b)};for(var k=0,z=q;k<z.length;k++){var p=z[k];m.push(p,!1)}if(K.k[0]==q&&K.c)K.d=m;else m.push(QC,!0)}},terminate:function(){if(m&&m.terminate)m.terminate()}};if(A>=0)y.size=A,y.originalSize=S;L.onfile(y)}return"break"}else if(N){if(I==134695760)return E=Y+=12+(N==-2&&8),X=3,L.c=0,"break";else if(I==33639248)return E=Y-=4,X=3,L.c=0,"break"}},L=this;for(;Y<$-4;++Y){var j=T();if(j==="break")break}if(this.p=QC,N<0){var F=X?R.subarray(0,E-12-(N==-2&&8)-(u(R,E-16)==134695760&&4)):R.subarray(0,Y);if(W)W.push(F,!!X);else this.k[+(X==2)].push(F)}if(X&2)return this.push(R.subarray(Y),J);this.p=R.subarray(Y)}if(J){if(this.c)B(13);this.p=null}},H.prototype.register=function(C){this.o[C.compression]=C},H}(),bC=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(H){H()}});
2
- export{$J as UY,s as VY,tH as WY,CJ as XY,fC as YY,a as ZY,uH as _Y,mH as $Y,yC as aZ,FH as bZ,RJ as cZ,NJ as dZ,qH as eZ,sC as fZ,HJ as gZ,JJ as hZ,tC as iZ,OH as jZ,EJ as kZ,WJ as lZ,MH as mZ,CH as nZ,KJ as oZ,QJ as pZ,HH as qZ,LH as rZ,BJ as sZ,FJ as tZ,qJ as uZ,OJ as vZ,MJ as wZ,$C as xZ,nH as yZ,oC as zZ,LJ as AZ,PJ as BZ,jJ as CZ,GJ as DZ,TJ as EZ,VJ as FZ,ZJ as GZ,UJ as HZ,IJ as IZ,AJ as JZ,DJ as KZ,XJ as LZ};
@@ -1,2 +0,0 @@
1
- import{uS as I,vS as T}from"./cli-0.1.9-gpd1bhnf.mjs";import{EU as M,FU as y}from"./cli-0.1.9-nw3rpxdd.mjs";import{AX as A}from"./cli-0.1.9-hy9s1fnj.mjs";import{hna as w,lna as L}from"./cli-0.1.9-kbrf27z8.mjs";function j(z,N,Q){let Y=G.useRef(0),q=G.useRef(void 0),V=G.useCallback(()=>{if(q.current)clearTimeout(q.current),q.current=void 0},[]);return G.useEffect(()=>{return()=>{V()}},[V]),G.useCallback(()=>{let X=Date.now();if(X-Y.current<=K&&q.current!==void 0)V(),z(!1),N();else Q?.(),z(!0),V(),q.current=setTimeout((Z,$)=>{Z(!1),$.current=void 0},K,z,q);Y.current=X},[z,N,Q,V])}var G,K=800;var F=L(()=>{G=w(A(),1)});function _(z,N,Q,Y=!0){let{exit:q}=M(),[V,X]=J.useState({pending:!1,keyName:null}),W=J.useMemo(()=>Q??q,[Q,q]),B=j((H)=>X({pending:H,keyName:"Ctrl-C"}),W),Z=j((H)=>X({pending:H,keyName:"Ctrl-D"}),W),$=J.useCallback(()=>{if(N?.())return;B()},[B,N]),U=J.useCallback(()=>{Z()},[Z]),O=J.useMemo(()=>({"app:interrupt":$,"app:exit":U}),[$,U]);return z(O,{context:"Global",isActive:Y}),V}var J;var v=L(()=>{y();F();J=w(A(),1)});function b(z,N,Q){return _(I,N,z,Q)}var k=L(()=>{T();v()});
2
- export{j as MR,F as NR,b as OR,k as PR};
@@ -1,16 +0,0 @@
1
- import{cna as Yc,dna as hf}from"./cli-0.1.9-p58rgwkr.mjs";import{ena as lo}from"./cli-0.1.9-n8tc0gpm.mjs";import{gna as q}from"./cli-0.1.9-jb6af8n8.mjs";import{jna as d,mna as $}from"./cli-0.1.9-kbrf27z8.mjs";var Fe=d((Nn)=>{Nn.HttpAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(Nn.HttpAuthLocation||(Nn.HttpAuthLocation={}));Nn.HttpApiKeyAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(Nn.HttpApiKeyAuthLocation||(Nn.HttpApiKeyAuthLocation={}));Nn.EndpointURLScheme=void 0;(function(t){t.HTTP="http",t.HTTPS="https"})(Nn.EndpointURLScheme||(Nn.EndpointURLScheme={}));Nn.AlgorithmId=void 0;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(Nn.AlgorithmId||(Nn.AlgorithmId={}));var In=(t)=>{let e=[];if(t.sha256!==void 0)e.push({algorithmId:()=>Nn.AlgorithmId.SHA256,checksumConstructor:()=>t.sha256});if(t.md5!=null)e.push({algorithmId:()=>Nn.AlgorithmId.MD5,checksumConstructor:()=>t.md5});return{addChecksumAlgorithm(r){e.push(r)},checksumAlgorithms(){return e}}},jn=(t)=>{let e={};return t.checksumAlgorithms().forEach((r)=>{e[r.algorithmId()]=r.checksumConstructor()}),e},Dn=(t)=>{return In(t)},Ln=(t)=>{return jn(t)};Nn.FieldPosition=void 0;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(Nn.FieldPosition||(Nn.FieldPosition={}));var Un="__smithy_context";Nn.IniSectionType=void 0;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(Nn.IniSectionType||(Nn.IniSectionType={}));Nn.RequestHandlerProtocol=void 0;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(Nn.RequestHandlerProtocol||(Nn.RequestHandlerProtocol={}));Nn.SMITHY_CONTEXT_KEY=Un;Nn.getDefaultClientConfiguration=Dn;Nn.resolveDefaultRuntimeConfig=Ln});var Vt=d((Kn)=>{var Yn=Fe(),Jn=(t)=>{return{setHttpHandler(e){t.httpHandler=e},httpHandler(){return t.httpHandler},updateHttpClientConfig(e,r){t.httpHandler?.updateHttpClientConfig(e,r)},httpHandlerConfigs(){return t.httpHandler.httpHandlerConfigs()}}},Wn=(t)=>{return{httpHandler:t.httpHandler()}};class qe{name;kind;values;constructor({name:t,kind:e=Yn.FieldPosition.HEADER,values:r=[]}){this.name=t,this.kind=e,this.values=r}add(t){this.values.push(t)}set(t){this.values=t}remove(t){this.values=this.values.filter((e)=>e!==t)}toString(){return this.values.map((t)=>t.includes(",")||t.includes(" ")?`"${t}"`:t).join(", ")}get(){return this.values}}class Ye{entries={};encoding;constructor({fields:t=[],encoding:e="utf-8"}){t.forEach(this.setField.bind(this)),this.encoding=e}setField(t){this.entries[t.name.toLowerCase()]=t}getField(t){return this.entries[t.toLowerCase()]}removeField(t){delete this.entries[t.toLowerCase()]}getByType(t){return Object.values(this.entries).filter((e)=>e.kind===t)}}class at{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){let e=new at({...t,headers:{...t.headers}});if(e.query)e.query=Xn(e.query);return e}static isInstance(t){if(!t)return!1;let e=t;return"method"in e&&"protocol"in e&&"hostname"in e&&"path"in e&&typeof e.query==="object"&&typeof e.headers==="object"}clone(){return at.clone(this)}}function Xn(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}class Je{statusCode;reason;headers;body;constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;let e=t;return typeof e.statusCode==="number"&&typeof e.headers==="object"}}function zn(t){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(t)}Kn.Field=qe;Kn.Fields=Ye;Kn.HttpRequest=at;Kn.HttpResponse=Je;Kn.getHttpHandlerExtensionConfiguration=Jn;Kn.isValidHostname=zn;Kn.resolveHttpHandlerRuntimeConfig=Wn});var We=d((io)=>{io.HttpAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(io.HttpAuthLocation||(io.HttpAuthLocation={}));io.HttpApiKeyAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(io.HttpApiKeyAuthLocation||(io.HttpApiKeyAuthLocation={}));io.EndpointURLScheme=void 0;(function(t){t.HTTP="http",t.HTTPS="https"})(io.EndpointURLScheme||(io.EndpointURLScheme={}));io.AlgorithmId=void 0;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(io.AlgorithmId||(io.AlgorithmId={}));var eo=(t)=>{let e=[];if(t.sha256!==void 0)e.push({algorithmId:()=>io.AlgorithmId.SHA256,checksumConstructor:()=>t.sha256});if(t.md5!=null)e.push({algorithmId:()=>io.AlgorithmId.MD5,checksumConstructor:()=>t.md5});return{addChecksumAlgorithm(r){e.push(r)},checksumAlgorithms(){return e}}},ro=(t)=>{let e={};return t.checksumAlgorithms().forEach((r)=>{e[r.algorithmId()]=r.checksumConstructor()}),e},so=(t)=>{return eo(t)},no=(t)=>{return ro(t)};io.FieldPosition=void 0;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(io.FieldPosition||(io.FieldPosition={}));var oo="__smithy_context";io.IniSectionType=void 0;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(io.IniSectionType||(io.IniSectionType={}));io.RequestHandlerProtocol=void 0;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(io.RequestHandlerProtocol||(io.RequestHandlerProtocol={}));io.SMITHY_CONTEXT_KEY=oo;io.getDefaultClientConfiguration=so;io.resolveDefaultRuntimeConfig=no});var ze=d((yo)=>{var Xe=We(),ao=(t)=>t[Xe.SMITHY_CONTEXT_KEY]||(t[Xe.SMITHY_CONTEXT_KEY]={}),ho=(t)=>{if(typeof t==="function")return t;let e=Promise.resolve(t);return()=>e};yo.getSmithyContext=ao;yo.normalizeProvider=ho});var Ze=d((go)=>{var Ke=lo(),bo=(t)=>{if(typeof t==="object"){if("url"in t){let e=Ke.parseUrl(t.url);if(t.headers){e.headers={};for(let[r,n]of Object.entries(t.headers))e.headers[r.toLowerCase()]=n.join(", ")}return e}return t}return Ke.parseUrl(t)};go.toEndpointV1=bo});var ve=d((Io)=>{var So=Vt(),Qe=ze(),To=Ze(),ht=(t)=>{if(typeof t==="function")return t();return t},ie=(t,e,r,n,f)=>({name:e,namespace:t,traits:r,input:n,output:f}),_o=(t)=>(e,r)=>async(n)=>{let{response:f}=await e(n),{operationSchema:s}=Qe.getSmithyContext(r),[,o,i,c,u,a]=s??[];try{let h=await t.protocol.deserializeResponse(ie(o,i,c,u,a),{...t,...r},f);return{response:f,output:h}}catch(h){if(Object.defineProperty(h,"$response",{value:f,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in h)){try{h.message+=`
2
- Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(p){if(!r.logger||r.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else r.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof h.$responseBodyText<"u"){if(h.$response)h.$response.body=h.$responseBodyText}try{if(So.HttpResponse.isInstance(f)){let{headers:p={}}=f,y=Object.entries(p);h.$metadata={httpStatusCode:f.statusCode,requestId:ne(/^x-[\w-]+-request-?id$/,y),extendedRequestId:ne(/^x-[\w-]+-id-2$/,y),cfId:ne(/^x-[\w-]+-cf-id$/,y)}}}catch(p){}}throw h}},ne=(t,e)=>{return(e.find(([r])=>{return r.match(t)})||[void 0,void 0])[1]},Eo=(t)=>(e,r)=>async(n)=>{let{operationSchema:f}=Qe.getSmithyContext(r),[,s,o,i,c,u]=f??[],a=r.endpointV2?async()=>To.toEndpointV1(r.endpointV2):t.endpoint,h=await t.protocol.serializeRequest(ie(s,o,i,c,u),n.input,{...t,...r,endpoint:a});return e({...n,request:h})},Ge={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Ve={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function Oo(t){return{applyToStack:(e)=>{e.add(Eo(t),Ve),e.add(_o(t),Ge),t.protocol.setSerdeContext(t)}}}class x{name;namespace;traits;static assign(t,e){return Object.assign(t,e)}static[Symbol.hasInstance](t){let e=this.prototype.isPrototypeOf(t);if(!e&&typeof t==="object"&&t!==null)return t.symbol===this.symbol;return e}getName(){return this.namespace+"#"+this.name}}class lt extends x{static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=lt.symbol}var xo=(t,e,r,n)=>x.assign(new lt,{name:e,namespace:t,traits:r,valueSchema:n});class dt extends x{static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=dt.symbol}var Ao=(t,e,r,n,f)=>x.assign(new dt,{name:e,namespace:t,traits:r,keySchema:n,valueSchema:f});class bt extends x{static symbol=Symbol.for("@smithy/ope");name;traits;input;output;symbol=bt.symbol}var Co=(t,e,r,n,f)=>x.assign(new bt,{name:e,namespace:t,traits:r,input:n,output:f});class v extends x{static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=v.symbol}var $o=(t,e,r,n,f)=>x.assign(new v,{name:e,namespace:t,traits:r,memberNames:n,memberList:f});class gt extends v{static symbol=Symbol.for("@smithy/err");ctor;symbol=gt.symbol}var Po=(t,e,r,n,f,s)=>x.assign(new gt,{name:e,namespace:t,traits:r,memberNames:n,memberList:f,ctor:null}),yt=[];function k(t){if(typeof t==="object")return t;if(t=t|0,yt[t])return yt[t];let e={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])if((t>>r++&1)===1)e[n]=1;return yt[t]=e}var G={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},mt=[],pt={};class M{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=M.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,e){this.ref=t,this.memberName=e;let r=[],n=t,f=t;this._isMemberSchema=!1;while(oe(n))r.push(n[1]),n=n[0],f=ht(n),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let s=r.length-1;s>=0;--s){let o=r[s];Object.assign(this.memberTraits,k(o))}}else this.memberTraits=0;if(f instanceof M){let s=this.memberTraits;Object.assign(this,f),this.memberTraits=Object.assign({},s,f.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=e??f.memberName;return}if(this.schema=ht(f),ke(this.schema))this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3];else this.name=this.memberName??String(f),this.traits=0;if(this._isMemberSchema&&!e)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](t){let e=this.prototype.isPrototypeOf(t);if(!e&&typeof t==="object"&&t!==null)return t.symbol===this.symbol;return e}static of(t){let e=typeof t==="function"||typeof t==="object"&&t!==null;if(typeof t==="number"){if(mt[t])return mt[t]}else if(typeof t==="string"){if(pt[t])return pt[t]}else if(e){if(t[G.ns])return t[G.ns]}let r=ht(t);if(r instanceof M)return r;if(oe(r)){let[f,s]=r;if(f instanceof M)return Object.assign(f.getMergedTraits(),k(s)),f;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}let n=new M(r);if(e)return t[G.ns]=n;if(typeof r==="string")return pt[r]=n;if(typeof r==="number")return mt[r]=n;return n}getSchema(){let t=this.schema;if(Array.isArray(t)&&t[0]===0)return t[4];return t}getName(t=!1){let{name:e}=this;return!t&&e&&e.includes("#")?e.split("#")[1]:e||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let t=this.getSchema();return typeof t==="number"?t>=64&&t<128:t[0]===1}isMapSchema(){let t=this.getSchema();return typeof t==="number"?t>=128&&t<=255:t[0]===2}isStructSchema(){let t=this.getSchema();if(typeof t!=="object")return!1;let e=t[0];return e===3||e===-3||e===4}isUnionSchema(){let t=this.getSchema();if(typeof t!=="object")return!1;return t[0]===4}isBlobSchema(){let t=this.getSchema();return t===21||t===42}isTimestampSchema(){let t=this.getSchema();return typeof t==="number"&&t>=4&&t<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:t}=this.getMergedTraits();return!!t||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return k(this.memberTraits)}getOwnTraits(){return k(this.traits)}getKeySchema(){let[t,e]=[this.isDocumentSchema(),this.isMapSchema()];if(!t&&!e)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let r=this.getSchema(),n=t?15:r[4]??0;return V([n,0],"key")}getValueSchema(){let t=this.getSchema(),[e,r,n]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],f=typeof t==="number"?63&t:t&&typeof t==="object"&&(r||n)?t[3+t[0]]:e?15:void 0;if(f!=null)return V([f,0],r?"value":"member");throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(t){let e=this.getSchema();if(this.isStructSchema()&&e[4].includes(t)){let r=e[4].indexOf(t),n=e[5][r];return V(oe(n)?n:[n,0],t)}if(this.isDocumentSchema())return V([15,0],t);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${t}.`)}getMemberSchemas(){let t={};try{for(let[e,r]of this.structIterator())t[e]=r}catch(e){}return t}getEventStreamMember(){if(this.isStructSchema()){for(let[t,e]of this.structIterator())if(e.isStreaming()&&e.isStructSchema())return t}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error("@smithy/core/schema - cannot iterate non-struct schema.");let t=this.getSchema(),e=t[4].length,r=t[G.it];if(r&&e===r.length){yield*r;return}r=Array(e);for(let n=0;n<e;++n){let f=t[4][n],s=V([t[5][n],0],f);yield r[n]=[f,s]}t[G.it]=r}}function V(t,e){if(t instanceof M)return Object.assign(t,{memberName:e,_isMemberSchema:!0});return new M(t,e)}var oe=(t)=>Array.isArray(t)&&t.length===2,ke=(t)=>Array.isArray(t)&&t.length>=5;class tt extends x{static symbol=Symbol.for("@smithy/sim");name;schemaRef;traits;symbol=tt.symbol}var Bo=(t,e,r,n)=>x.assign(new tt,{name:e,namespace:t,traits:n,schemaRef:r}),Mo=(t,e,r,n)=>x.assign(new tt,{name:e,namespace:t,traits:r,schemaRef:n}),Ro={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128};class B{namespace;schemas;exceptions;static registries=new Map;constructor(t,e=new Map,r=new Map){this.namespace=t,this.schemas=e,this.exceptions=r}static for(t){if(!B.registries.has(t))B.registries.set(t,new B(t));return B.registries.get(t)}copyFrom(t){let{schemas:e,exceptions:r}=this;for(let[n,f]of t.schemas)if(!e.has(n))e.set(n,f);for(let[n,f]of t.exceptions)if(!r.has(n))r.set(n,f)}register(t,e){let r=this.normalizeShapeId(t);for(let n of[this,B.for(r.split("#")[0])])n.schemas.set(r,e)}getSchema(t){let e=this.normalizeShapeId(t);if(!this.schemas.has(e))throw Error(`@smithy/core/schema - schema not found for ${e}`);return this.schemas.get(e)}registerError(t,e){let r=t,n=r[1];for(let f of[this,B.for(n)])f.schemas.set(n+"#"+r[2],r),f.exceptions.set(r,e)}getErrorCtor(t){let e=t;if(this.exceptions.has(e))return this.exceptions.get(e);return B.for(e[1]).exceptions.get(e)}getBaseException(){for(let t of this.exceptions.keys())if(Array.isArray(t)){let[,e,r]=t,n=e+"#"+r;if(n.startsWith("smithy.ts.sdk.synthetic.")&&n.endsWith("ServiceException"))return t}return}find(t){return[...this.schemas.values()].find(t)}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(t){if(t.includes("#"))return t;return this.namespace+"#"+t}}Io.ErrorSchema=gt;Io.ListSchema=lt;Io.MapSchema=dt;Io.NormalizedSchema=M;Io.OperationSchema=bt;Io.SCHEMA=Ro;Io.Schema=x;Io.SimpleSchema=tt;Io.StructureSchema=v;Io.TypeRegistry=B;Io.deref=ht;Io.deserializerMiddlewareOption=Ge;Io.error=Po;Io.getSchemaSerdePlugin=Oo;Io.isStaticSchema=ke;Io.list=xo;Io.map=Ao;Io.op=Co;Io.operation=ie;Io.serializerMiddlewareOption=Ve;Io.sim=Bo;Io.simAdapter=Mo;Io.simpleSchemaCacheN=mt;Io.simpleSchemaCacheS=pt;Io.struct=$o;Io.traitsCache=yt;Io.translateTraits=k});var tr=d((fi)=>{var ci=(t)=>typeof ArrayBuffer==="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]";fi.isArrayBuffer=ci});var wt=d((mi)=>{var ai=tr(),ce=$("buffer"),hi=(t,e=0,r=t.byteLength-e)=>{if(!ai.isArrayBuffer(t))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return ce.Buffer.from(t,e,r)},yi=(t,e)=>{if(typeof t!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`);return e?ce.Buffer.from(t,e):ce.Buffer.from(t)};mi.fromArrayBuffer=hi;mi.fromString=yi});var sr=d((er)=>{Object.defineProperty(er,"__esModule",{value:!0});er.fromBase64=void 0;var di=wt(),bi=/^[A-Za-z0-9+/]*={0,2}$/,gi=(t)=>{if(t.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!bi.exec(t))throw TypeError("Invalid base64 string.");let e=(0,di.fromString)(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)};er.fromBase64=gi});var ir=d((nr)=>{Object.defineProperty(nr,"__esModule",{value:!0});nr.toBase64=void 0;var wi=wt(),Si=q(),Ti=(t)=>{let e;if(typeof t==="string")e=(0,Si.fromUtf8)(t);else e=t;if(typeof e!=="object"||typeof e.byteOffset!=="number"||typeof e.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,wi.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("base64")};nr.toBase64=Ti});var et=d((R)=>{var St=sr(),Tt=ir();Object.prototype.hasOwnProperty.call(St,"__proto__")&&!Object.prototype.hasOwnProperty.call(R,"__proto__")&&Object.defineProperty(R,"__proto__",{enumerable:!0,value:St.__proto__});Object.keys(St).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(R,t))R[t]=St[t]});Object.prototype.hasOwnProperty.call(Tt,"__proto__")&&!Object.prototype.hasOwnProperty.call(R,"__proto__")&&Object.defineProperty(R,"__proto__",{enumerable:!0,value:Tt.__proto__});Object.keys(Tt).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(R,t))R[t]=Tt[t]})});var fe=d((fr)=>{Object.defineProperty(fr,"__esModule",{value:!0});fr.ChecksumStream=void 0;var _i=et(),Ei=$("stream");class cr extends Ei.Duplex{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;pendingCallback=null;constructor({expectedChecksum:t,checksum:e,source:r,checksumSourceLocation:n,base64Encoder:f}){super();if(typeof r.pipe==="function")this.source=r;else throw Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);this.base64Encoder=f??_i.toBase64,this.expectedChecksum=t,this.checksum=e,this.checksumSourceLocation=n,this.source.pipe(this)}_read(t){if(this.pendingCallback){let e=this.pendingCallback;this.pendingCallback=null,e()}}_write(t,e,r){try{if(this.checksum.update(t),!this.push(t)){this.pendingCallback=r;return}}catch(n){return r(n)}return r()}async _final(t){try{let e=await this.checksum.digest(),r=this.base64Encoder(e);if(this.expectedChecksum!==r)return t(Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${r}" in response header "${this.checksumSourceLocation}".`))}catch(e){return t(e)}return this.push(null),t()}}fr.ChecksumStream=cr});var I=d((ar)=>{Object.defineProperty(ar,"__esModule",{value:!0});ar.isBlob=ar.isReadableStream=void 0;var Oi=(t)=>typeof ReadableStream==="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream);ar.isReadableStream=Oi;var xi=(t)=>{return typeof Blob==="function"&&(t?.constructor?.name===Blob.name||t instanceof Blob)};ar.isBlob=xi});var lr=d((mr)=>{Object.defineProperty(mr,"__esModule",{value:!0});mr.ChecksumStream=void 0;var Ci=typeof ReadableStream==="function"?ReadableStream:function(){};class yr extends Ci{}mr.ChecksumStream=yr});var gr=d((dr)=>{Object.defineProperty(dr,"__esModule",{value:!0});dr.createChecksumStream=void 0;var $i=et(),Pi=I(),Bi=lr(),Mi=({expectedChecksum:t,checksum:e,source:r,checksumSourceLocation:n,base64Encoder:f})=>{if(!(0,Pi.isReadableStream)(r))throw Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);let s=f??$i.toBase64;if(typeof TransformStream!=="function")throw Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let o=new TransformStream({start(){},async transform(c,u){e.update(c),u.enqueue(c)},async flush(c){let u=await e.digest(),a=s(u);if(t!==a){let h=Error(`Checksum mismatch: expected "${t}" but received "${a}" in response header "${n}".`);c.error(h)}else c.terminate()}});r.pipeThrough(o);let i=o.readable;return Object.setPrototypeOf(i,Bi.ChecksumStream.prototype),i};dr.createChecksumStream=Mi});var Sr=d((wr)=>{Object.defineProperty(wr,"__esModule",{value:!0});wr.createChecksumStream=Di;var Ri=I(),Ii=fe(),ji=gr();function Di(t){if(typeof ReadableStream==="function"&&(0,Ri.isReadableStream)(t.source))return(0,ji.createChecksumStream)(t);return new Ii.ChecksumStream(t)}});var ue=d((_r)=>{Object.defineProperty(_r,"__esModule",{value:!0});_r.ByteArrayCollector=void 0;class Tr{allocByteArray;byteLength=0;byteArrays=[];constructor(t){this.allocByteArray=t}push(t){this.byteArrays.push(t),this.byteLength+=t.byteLength}flush(){if(this.byteArrays.length===1){let r=this.byteArrays[0];return this.reset(),r}let t=this.allocByteArray(this.byteLength),e=0;for(let r=0;r<this.byteArrays.length;++r){let n=this.byteArrays[r];t.set(n,e),e+=n.byteLength}return this.reset(),t}reset(){this.byteArrays=[],this.byteLength=0}}_r.ByteArrayCollector=Tr});var Pr=d((Cr)=>{Object.defineProperty(Cr,"__esModule",{value:!0});Cr.createBufferedReadable=void 0;Cr.createBufferedReadableStream=Or;Cr.merge=xr;Cr.flush=_t;Cr.sizeOf=Y;Cr.modeOf=Ar;var Ui=ue();function Or(t,e,r){let n=t.getReader(),f=!1,s=0,o=["",new Ui.ByteArrayCollector((u)=>new Uint8Array(u))],i=-1,c=async(u)=>{let{value:a,done:h}=await n.read(),m=a;if(h){if(i!==-1){let p=_t(o,i);if(Y(p)>0)u.enqueue(p)}u.close()}else{let p=Ar(m,!1);if(i!==p){if(i>=0)u.enqueue(_t(o,i));i=p}if(i===-1){u.enqueue(m);return}let y=Y(m);s+=y;let l=Y(o[i]);if(y>=e&&l===0)u.enqueue(m);else{let b=xr(o,i,m);if(!f&&s>e*2)f=!0,r?.warn(`@smithy/util-stream - stream chunk size ${y} is below threshold of ${e}, automatically buffering.`);if(b>=e)u.enqueue(_t(o,i));else await c(u)}}};return new ReadableStream({pull:c})}Cr.createBufferedReadable=Or;function xr(t,e,r){switch(e){case 0:return t[0]+=r,Y(t[0]);case 1:case 2:return t[e].push(r),Y(t[e])}}function _t(t,e){switch(e){case 0:let r=t[0];return t[0]="",r;case 1:case 2:return t[e].flush()}throw Error(`@smithy/util-stream - invalid index ${e} given to flush()`)}function Y(t){return t?.byteLength??t?.length??0}function Ar(t,e=!0){if(e&&typeof Buffer<"u"&&t instanceof Buffer)return 2;if(t instanceof Uint8Array)return 1;if(typeof t==="string")return 0;return-1}});var Rr=d((Mr)=>{Object.defineProperty(Mr,"__esModule",{value:!0});Mr.createBufferedReadable=Xi;var Ji=$("node:stream"),Br=ue(),j=Pr(),Wi=I();function Xi(t,e,r){if((0,Wi.isReadableStream)(t))return(0,j.createBufferedReadableStream)(t,e,r);let n=new Ji.Readable({read(){}}),f=!1,s=0,o=["",new Br.ByteArrayCollector((c)=>new Uint8Array(c)),new Br.ByteArrayCollector((c)=>Buffer.from(new Uint8Array(c)))],i=-1;return t.on("data",(c)=>{let u=(0,j.modeOf)(c,!0);if(i!==u){if(i>=0)n.push((0,j.flush)(o,i));i=u}if(i===-1){n.push(c);return}let a=(0,j.sizeOf)(c);s+=a;let h=(0,j.sizeOf)(o[i]);if(a>=e&&h===0)n.push(c);else{let m=(0,j.merge)(o,i,c);if(!f&&s>e*2)f=!0,r?.warn(`@smithy/util-stream - stream chunk size ${a} is below threshold of ${e}, automatically buffering.`);if(m>=e)n.push((0,j.flush)(o,i))}}),t.on("end",()=>{if(i!==-1){let c=(0,j.flush)(o,i);if((0,j.sizeOf)(c)>0)n.push(c)}n.push(null)}),n}});var Dr=d((Ir)=>{Object.defineProperty(Ir,"__esModule",{value:!0});Ir.getAwsChunkedEncodingStream=void 0;var Ki=(t,e)=>{let{base64Encoder:r,bodyLengthChecker:n,checksumAlgorithmFn:f,checksumLocationName:s,streamHasher:o}=e,i=r!==void 0&&n!==void 0&&f!==void 0&&s!==void 0&&o!==void 0,c=i?o(f,t):void 0,u=t.getReader();return new ReadableStream({async pull(a){let{value:h,done:m}=await u.read();if(m){if(a.enqueue(`0\r
3
- `),i){let p=r(await c);a.enqueue(`${s}:${p}\r
4
- `),a.enqueue(`\r
5
- `)}a.close()}else a.enqueue(`${(n(h)||0).toString(16)}\r
6
- ${h}\r
7
- `)}})};Ir.getAwsChunkedEncodingStream=Ki});var Ur=d((Lr)=>{Object.defineProperty(Lr,"__esModule",{value:!0});Lr.getAwsChunkedEncodingStream=Vi;var Zi=$("node:stream"),Qi=Dr(),Gi=I();function Vi(t,e){let r=t,n=t;if((0,Gi.isReadableStream)(n))return(0,Qi.getAwsChunkedEncodingStream)(n,e);let{base64Encoder:f,bodyLengthChecker:s,checksumAlgorithmFn:o,checksumLocationName:i,streamHasher:c}=e,u=f!==void 0&&o!==void 0&&i!==void 0&&c!==void 0,a=u?c(o,r):void 0,h=new Zi.Readable({read:()=>{}});return r.on("data",(m)=>{let p=s(m)||0;if(p===0)return;h.push(`${p.toString(16)}\r
8
- `),h.push(m),h.push(`\r
9
- `)}),r.on("end",async()=>{if(h.push(`0\r
10
- `),u){let m=f(await a);h.push(`${i}:${m}\r
11
- `),h.push(`\r
12
- `)}h.push(null)}),h}});var Hr=d((Nr)=>{Object.defineProperty(Nr,"__esModule",{value:!0});Nr.headStream=vi;async function vi(t,e){let r=0,n=[],f=t.getReader(),s=!1;while(!s){let{done:c,value:u}=await f.read();if(u)n.push(u),r+=u?.byteLength??0;if(r>=e)break;s=c}f.releaseLock();let o=new Uint8Array(Math.min(e,r)),i=0;for(let c of n){if(c.byteLength>o.byteLength-i){o.set(c.subarray(0,o.byteLength-i),i);break}else o.set(c,i);i+=c.length}return o}});var Jr=d((qr)=>{Object.defineProperty(qr,"__esModule",{value:!0});qr.headStream=void 0;var ec=$("stream"),rc=Hr(),sc=I(),nc=(t,e)=>{if((0,sc.isReadableStream)(t))return(0,rc.headStream)(t,e);return new Promise((r,n)=>{let f=new Fr;f.limit=e,t.pipe(f),t.on("error",(s)=>{f.end(),n(s)}),f.on("error",n),f.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.buffers));r(s)})})};qr.headStream=nc;class Fr extends ec.Writable{buffers=[];limit=1/0;bytesBuffered=0;_write(t,e,r){if(this.buffers.push(t),this.bytesBuffered+=t.byteLength??0,this.bytesBuffered>=this.limit){let n=this.bytesBuffered-this.limit,f=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=f.subarray(0,f.byteLength-n),this.emit("finish")}r()}}});var Wr=d((ac)=>{ac.HttpAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(ac.HttpAuthLocation||(ac.HttpAuthLocation={}));ac.HttpApiKeyAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(ac.HttpApiKeyAuthLocation||(ac.HttpApiKeyAuthLocation={}));ac.EndpointURLScheme=void 0;(function(t){t.HTTP="http",t.HTTPS="https"})(ac.EndpointURLScheme||(ac.EndpointURLScheme={}));ac.AlgorithmId=void 0;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(ac.AlgorithmId||(ac.AlgorithmId={}));var oc=(t)=>{let e=[];if(t.sha256!==void 0)e.push({algorithmId:()=>ac.AlgorithmId.SHA256,checksumConstructor:()=>t.sha256});if(t.md5!=null)e.push({algorithmId:()=>ac.AlgorithmId.MD5,checksumConstructor:()=>t.md5});return{addChecksumAlgorithm(r){e.push(r)},checksumAlgorithms(){return e}}},ic=(t)=>{let e={};return t.checksumAlgorithms().forEach((r)=>{e[r.algorithmId()]=r.checksumConstructor()}),e},cc=(t)=>{return oc(t)},fc=(t)=>{return ic(t)};ac.FieldPosition=void 0;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(ac.FieldPosition||(ac.FieldPosition={}));var uc="__smithy_context";ac.IniSectionType=void 0;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(ac.IniSectionType||(ac.IniSectionType={}));ac.RequestHandlerProtocol=void 0;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(ac.RequestHandlerProtocol||(ac.RequestHandlerProtocol={}));ac.SMITHY_CONTEXT_KEY=uc;ac.getDefaultClientConfiguration=cc;ac.resolveDefaultRuntimeConfig=fc});var Zr=d((wc)=>{var pc=Wr(),lc=(t)=>{return{setHttpHandler(e){t.httpHandler=e},httpHandler(){return t.httpHandler},updateHttpClientConfig(e,r){t.httpHandler?.updateHttpClientConfig(e,r)},httpHandlerConfigs(){return t.httpHandler.httpHandlerConfigs()}}},dc=(t)=>{return{httpHandler:t.httpHandler()}};class Xr{name;kind;values;constructor({name:t,kind:e=pc.FieldPosition.HEADER,values:r=[]}){this.name=t,this.kind=e,this.values=r}add(t){this.values.push(t)}set(t){this.values=t}remove(t){this.values=this.values.filter((e)=>e!==t)}toString(){return this.values.map((t)=>t.includes(",")||t.includes(" ")?`"${t}"`:t).join(", ")}get(){return this.values}}class zr{entries={};encoding;constructor({fields:t=[],encoding:e="utf-8"}){t.forEach(this.setField.bind(this)),this.encoding=e}setField(t){this.entries[t.name.toLowerCase()]=t}getField(t){return this.entries[t.toLowerCase()]}removeField(t){delete this.entries[t.toLowerCase()]}getByType(t){return Object.values(this.entries).filter((e)=>e.kind===t)}}class Et{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){let e=new Et({...t,headers:{...t.headers}});if(e.query)e.query=bc(e.query);return e}static isInstance(t){if(!t)return!1;let e=t;return"method"in e&&"protocol"in e&&"hostname"in e&&"path"in e&&typeof e.query==="object"&&typeof e.headers==="object"}clone(){return Et.clone(this)}}function bc(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}class Kr{statusCode;reason;headers;body;constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;let e=t;return typeof e.statusCode==="number"&&typeof e.headers==="object"}}function gc(t){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(t)}wc.Field=Xr;wc.Fields=zr;wc.HttpRequest=Et;wc.HttpResponse=Kr;wc.getHttpHandlerExtensionConfiguration=lc;wc.isValidHostname=gc;wc.resolveHttpHandlerRuntimeConfig=dc});var Qr=d(($c)=>{var Cc=(t)=>typeof ArrayBuffer==="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]";$c.isArrayBuffer=Cc});var be=d((Ic)=>{var Bc=Qr(),de=$("buffer"),Mc=(t,e=0,r=t.byteLength-e)=>{if(!Bc.isArrayBuffer(t))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return de.Buffer.from(t,e,r)},Rc=(t,e)=>{if(typeof t!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`);return e?de.Buffer.from(t,e):de.Buffer.from(t)};Ic.fromArrayBuffer=Mc;Ic.fromString=Rc});var kr=d((Gr)=>{Object.defineProperty(Gr,"__esModule",{value:!0});Gr.fromBase64=void 0;var Lc=be(),Uc=/^[A-Za-z0-9+/]*={0,2}$/,Nc=(t)=>{if(t.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!Uc.exec(t))throw TypeError("Invalid base64 string.");let e=(0,Lc.fromString)(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)};Gr.fromBase64=Nc});var es=d((vr)=>{Object.defineProperty(vr,"__esModule",{value:!0});vr.toBase64=void 0;var Hc=be(),Fc=q(),qc=(t)=>{let e;if(typeof t==="string")e=(0,Fc.fromUtf8)(t);else e=t;if(typeof e!=="object"||typeof e.byteOffset!=="number"||typeof e.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,Hc.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("base64")};vr.toBase64=qc});var rs=d((D)=>{var Ot=kr(),xt=es();Object.prototype.hasOwnProperty.call(Ot,"__proto__")&&!Object.prototype.hasOwnProperty.call(D,"__proto__")&&Object.defineProperty(D,"__proto__",{enumerable:!0,value:Ot.__proto__});Object.keys(Ot).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(D,t))D[t]=Ot[t]});Object.prototype.hasOwnProperty.call(xt,"__proto__")&&!Object.prototype.hasOwnProperty.call(D,"__proto__")&&Object.defineProperty(D,"__proto__",{enumerable:!0,value:xt.__proto__});Object.keys(xt).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(D,t))D[t]=xt[t]})});var is=d((Gc)=>{var ss=Zr(),Jc=Yc(),Wc=rs();function ns(t,e){return new Request(t,e)}function Xc(t=0){return new Promise((e,r)=>{if(t)setTimeout(()=>{let n=Error(`Request did not complete within ${t} ms`);n.name="TimeoutError",r(n)},t)})}var At={supported:void 0};class ge{config;configProvider;static create(t){if(typeof t?.handle==="function")return t;return new ge(t)}constructor(t){if(typeof t==="function")this.configProvider=t().then((e)=>e||{});else this.config=t??{},this.configProvider=Promise.resolve(this.config);if(At.supported===void 0)At.supported=Boolean(typeof Request<"u"&&"keepalive"in ns("https://[::1]"))}destroy(){}async handle(t,{abortSignal:e,requestTimeout:r}={}){if(!this.config)this.config=await this.configProvider;let n=r??this.config.requestTimeout,f=this.config.keepAlive===!0,s=this.config.credentials;if(e?.aborted){let w=os(e);return Promise.reject(w)}let o=t.path,i=Jc.buildQueryString(t.query||{});if(i)o+=`?${i}`;if(t.fragment)o+=`#${t.fragment}`;let c="";if(t.username!=null||t.password!=null){let w=t.username??"",g=t.password??"";c=`${w}:${g}@`}let{port:u,method:a}=t,h=`${t.protocol}//${c}${t.hostname}${u?`:${u}`:""}${o}`,m=a==="GET"||a==="HEAD"?void 0:t.body,p={body:m,headers:new Headers(t.headers),method:a,credentials:s};if(this.config?.cache)p.cache=this.config.cache;if(m)p.duplex="half";if(typeof AbortController<"u")p.signal=e;if(At.supported)p.keepalive=f;if(typeof this.config.requestInit==="function")Object.assign(p,this.config.requestInit(t));let y=()=>{},l=ns(h,p),b=[fetch(l).then((w)=>{let g=w.headers,T={};for(let O of g.entries())T[O[0]]=O[1];if(w.body==null)return w.blob().then((O)=>({response:new ss.HttpResponse({headers:T,reason:w.statusText,statusCode:w.status,body:O})}));return{response:new ss.HttpResponse({headers:T,reason:w.statusText,statusCode:w.status,body:w.body})}}),Xc(n)];if(e)b.push(new Promise((w,g)=>{let T=()=>{let _=os(e);g(_)};if(typeof e.addEventListener==="function"){let _=e;_.addEventListener("abort",T,{once:!0}),y=()=>_.removeEventListener("abort",T)}else e.onabort=T}));return Promise.race(b).finally(y)}updateHttpClientConfig(t,e){this.config=void 0,this.configProvider=this.configProvider.then((r)=>{return r[t]=e,r})}httpHandlerConfigs(){return this.config??{}}}function os(t){let e=t&&typeof t==="object"&&"reason"in t?t.reason:void 0;if(e){if(e instanceof Error){let f=Error("Request aborted");return f.name="AbortError",f.cause=e,f}let n=Error(String(e));return n.name="AbortError",n}let r=Error("Request aborted");return r.name="AbortError",r}var zc=async(t)=>{if(typeof Blob==="function"&&t instanceof Blob||t.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==void 0)return new Uint8Array(await t.arrayBuffer());return Kc(t)}return Zc(t)};async function Kc(t){let e=await Qc(t),r=Wc.fromBase64(e);return new Uint8Array(r)}async function Zc(t){let e=[],r=t.getReader(),n=!1,f=0;while(!n){let{done:i,value:c}=await r.read();if(c)e.push(c),f+=c.length;n=i}let s=new Uint8Array(f),o=0;for(let i of e)s.set(i,o),o+=i.length;return s}function Qc(t){return new Promise((e,r)=>{let n=new FileReader;n.onloadend=()=>{if(n.readyState!==2)return r(Error("Reader aborted too early"));let f=n.result??"",s=f.indexOf(","),o=s>-1?s+1:f.length;e(f.substring(o))},n.onabort=()=>r(Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(t)})}Gc.FetchHttpHandler=ge;Gc.keepAliveSupport=At;Gc.streamCollector=zc});var fs=d((rf)=>{var cs={},we={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();if(e.length===1)e=`0${e}`;cs[t]=e,we[e]=t}function tf(t){if(t.length%2!==0)throw Error("Hex encoded strings must have an even number length");let e=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2){let n=t.slice(r,r+2).toLowerCase();if(n in we)e[r/2]=we[n];else throw Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return e}function ef(t){let e="";for(let r=0;r<t.byteLength;r++)e+=cs[t[r]];return e}rf.fromHex=tf;rf.toHex=ef});var ps=d((ys)=>{Object.defineProperty(ys,"__esModule",{value:!0});ys.sdkStreamMixin=void 0;var of=is(),cf=et(),ff=fs(),uf=q(),us=I(),as="The stream has already been transformed.",af=(t)=>{if(!hs(t)&&!(0,us.isReadableStream)(t)){let f=t?.__proto__?.constructor?.name||t;throw Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${f}`)}let e=!1,r=async()=>{if(e)throw Error(as);return e=!0,await(0,of.streamCollector)(t)},n=(f)=>{if(typeof f.stream!=="function")throw Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
13
- If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return f.stream()};return Object.assign(t,{transformToByteArray:r,transformToString:async(f)=>{let s=await r();if(f==="base64")return(0,cf.toBase64)(s);else if(f==="hex")return(0,ff.toHex)(s);else if(f===void 0||f==="utf8"||f==="utf-8")return(0,uf.toUtf8)(s);else if(typeof TextDecoder==="function")return new TextDecoder(f).decode(s);else throw Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(e)throw Error(as);if(e=!0,hs(t))return n(t);else if((0,us.isReadableStream)(t))return t;else throw Error(`Cannot transform payload to web stream, got ${t}`)}})};ys.sdkStreamMixin=af;var hs=(t)=>typeof Blob==="function"&&t instanceof Blob});var gs=d((ds)=>{Object.defineProperty(ds,"__esModule",{value:!0});ds.sdkStreamMixin=void 0;var yf=hf(),mf=wt(),Se=$("stream"),pf=ps(),ls="The stream has already been transformed.",lf=(t)=>{if(!(t instanceof Se.Readable))try{return(0,pf.sdkStreamMixin)(t)}catch(n){let f=t?.__proto__?.constructor?.name||t;throw Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${f}`)}let e=!1,r=async()=>{if(e)throw Error(ls);return e=!0,await(0,yf.streamCollector)(t)};return Object.assign(t,{transformToByteArray:r,transformToString:async(n)=>{let f=await r();if(n===void 0||Buffer.isEncoding(n))return(0,mf.fromArrayBuffer)(f.buffer,f.byteOffset,f.byteLength).toString(n);else return new TextDecoder(n).decode(f)},transformToWebStream:()=>{if(e)throw Error(ls);if(t.readableFlowing!==null)throw Error("The stream has been consumed by other callbacks.");if(typeof Se.Readable.toWeb!=="function")throw Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,Se.Readable.toWeb(t)}})};ds.sdkStreamMixin=lf});var Ss=d((ws)=>{Object.defineProperty(ws,"__esModule",{value:!0});ws.splitStream=df;async function df(t){if(typeof t.stream==="function")t=t.stream();return t.tee()}});var Os=d((Es)=>{Object.defineProperty(Es,"__esModule",{value:!0});Es.splitStream=wf;var Ts=$("stream"),gf=Ss(),_s=I();async function wf(t){if((0,_s.isReadableStream)(t)||(0,_s.isBlob)(t))return(0,gf.splitStream)(t);let e=new Ts.PassThrough,r=new Ts.PassThrough;return t.pipe(e),t.pipe(r),[e,r]}});var $s=d((S)=>{var xs=et(),As=q(),Ct=fe(),$t=Sr(),Pt=Rr(),Bt=Ur(),Mt=Jr(),Rt=gs(),It=Os(),Cs=I();class st extends Uint8Array{static fromString(t,e="utf-8"){if(typeof t==="string"){if(e==="base64")return st.mutate(xs.fromBase64(t));return st.mutate(As.fromUtf8(t))}throw Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}static mutate(t){return Object.setPrototypeOf(t,st.prototype),t}transformToString(t="utf-8"){if(t==="base64")return xs.toBase64(this);return As.toUtf8(this)}}S.isBlob=Cs.isBlob;S.isReadableStream=Cs.isReadableStream;S.Uint8ArrayBlobAdapter=st;Object.prototype.hasOwnProperty.call(Ct,"__proto__")&&!Object.prototype.hasOwnProperty.call(S,"__proto__")&&Object.defineProperty(S,"__proto__",{enumerable:!0,value:Ct.__proto__});Object.keys(Ct).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(S,t))S[t]=Ct[t]});Object.prototype.hasOwnProperty.call($t,"__proto__")&&!Object.prototype.hasOwnProperty.call(S,"__proto__")&&Object.defineProperty(S,"__proto__",{enumerable:!0,value:$t.__proto__});Object.keys($t).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(S,t))S[t]=$t[t]});Object.prototype.hasOwnProperty.call(Pt,"__proto__")&&!Object.prototype.hasOwnProperty.call(S,"__proto__")&&Object.defineProperty(S,"__proto__",{enumerable:!0,value:Pt.__proto__});Object.keys(Pt).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(S,t))S[t]=Pt[t]});Object.prototype.hasOwnProperty.call(Bt,"__proto__")&&!Object.prototype.hasOwnProperty.call(S,"__proto__")&&Object.defineProperty(S,"__proto__",{enumerable:!0,value:Bt.__proto__});Object.keys(Bt).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(S,t))S[t]=Bt[t]});Object.prototype.hasOwnProperty.call(Mt,"__proto__")&&!Object.prototype.hasOwnProperty.call(S,"__proto__")&&Object.defineProperty(S,"__proto__",{enumerable:!0,value:Mt.__proto__});Object.keys(Mt).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(S,t))S[t]=Mt[t]});Object.prototype.hasOwnProperty.call(Rt,"__proto__")&&!Object.prototype.hasOwnProperty.call(S,"__proto__")&&Object.defineProperty(S,"__proto__",{enumerable:!0,value:Rt.__proto__});Object.keys(Rt).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(S,t))S[t]=Rt[t]});Object.prototype.hasOwnProperty.call(It,"__proto__")&&!Object.prototype.hasOwnProperty.call(S,"__proto__")&&Object.defineProperty(S,"__proto__",{enumerable:!0,value:It.__proto__});Object.keys(It).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(S,t))S[t]=It[t]})});var sn=d((Ah,Lt)=>{var Ps,Bs,Ms,Rs,Is,js,Ds,Ls,Us,Ns,Hs,Fs,qs,jt,Te,Ys,Js,Ws,J,Xs,zs,Ks,Zs,Qs,Gs,Vs,ks,vs,Dt,tn,en,rn;(function(t){var e=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(n){t(r(e,r(n)))});else if(typeof Lt==="object"&&typeof Ah==="object")t(r(e,r(Ah)));else t(r(e));function r(n,f){if(n!==e)if(typeof Object.create==="function")Object.defineProperty(n,"__esModule",{value:!0});else n.__esModule=!0;return function(s,o){return n[s]=f?f(s,o):o}}})(function(t){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,o){s.__proto__=o}||function(s,o){for(var i in o)if(Object.prototype.hasOwnProperty.call(o,i))s[i]=o[i]};Ps=function(s,o){if(typeof o!=="function"&&o!==null)throw TypeError("Class extends value "+String(o)+" is not a constructor or null");e(s,o);function i(){this.constructor=s}s.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)},Bs=Object.assign||function(s){for(var o,i=1,c=arguments.length;i<c;i++){o=arguments[i];for(var u in o)if(Object.prototype.hasOwnProperty.call(o,u))s[u]=o[u]}return s},Ms=function(s,o){var i={};for(var c in s)if(Object.prototype.hasOwnProperty.call(s,c)&&o.indexOf(c)<0)i[c]=s[c];if(s!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var u=0,c=Object.getOwnPropertySymbols(s);u<c.length;u++)if(o.indexOf(c[u])<0&&Object.prototype.propertyIsEnumerable.call(s,c[u]))i[c[u]]=s[c[u]]}return i},Rs=function(s,o,i,c){var u=arguments.length,a=u<3?o:c===null?c=Object.getOwnPropertyDescriptor(o,i):c,h;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(s,o,i,c);else for(var m=s.length-1;m>=0;m--)if(h=s[m])a=(u<3?h(a):u>3?h(o,i,a):h(o,i))||a;return u>3&&a&&Object.defineProperty(o,i,a),a},Is=function(s,o){return function(i,c){o(i,c,s)}},js=function(s,o,i,c,u,a){function h(N){if(N!==void 0&&typeof N!=="function")throw TypeError("Function expected");return N}var m=c.kind,p=m==="getter"?"get":m==="setter"?"set":"value",y=!o&&s?c.static?s:s.prototype:null,l=o||(y?Object.getOwnPropertyDescriptor(y,c.name):{}),b,w=!1;for(var g=i.length-1;g>=0;g--){var T={};for(var _ in c)T[_]=_==="access"?{}:c[_];for(var _ in c.access)T.access[_]=c.access[_];T.addInitializer=function(N){if(w)throw TypeError("Cannot add initializers after decoration has completed");a.push(h(N||null))};var O=(0,i[g])(m==="accessor"?{get:l.get,set:l.set}:l[p],T);if(m==="accessor"){if(O===void 0)continue;if(O===null||typeof O!=="object")throw TypeError("Object expected");if(b=h(O.get))l.get=b;if(b=h(O.set))l.set=b;if(b=h(O.init))u.unshift(b)}else if(b=h(O))if(m==="field")u.unshift(b);else l[p]=b}if(y)Object.defineProperty(y,c.name,l);w=!0},Ds=function(s,o,i){var c=arguments.length>2;for(var u=0;u<o.length;u++)i=c?o[u].call(s,i):o[u].call(s);return c?i:void 0},Ls=function(s){return typeof s==="symbol"?s:"".concat(s)},Us=function(s,o,i){if(typeof o==="symbol")o=o.description?"[".concat(o.description,"]"):"";return Object.defineProperty(s,"name",{configurable:!0,value:i?"".concat(i," ",o):o})},Ns=function(s,o){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(s,o)},Hs=function(s,o,i,c){function u(a){return a instanceof i?a:new i(function(h){h(a)})}return new(i||(i=Promise))(function(a,h){function m(l){try{y(c.next(l))}catch(b){h(b)}}function p(l){try{y(c.throw(l))}catch(b){h(b)}}function y(l){l.done?a(l.value):u(l.value).then(m,p)}y((c=c.apply(s,o||[])).next())})},Fs=function(s,o){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},c,u,a,h=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return h.next=m(0),h.throw=m(1),h.return=m(2),typeof Symbol==="function"&&(h[Symbol.iterator]=function(){return this}),h;function m(y){return function(l){return p([y,l])}}function p(y){if(c)throw TypeError("Generator is already executing.");while(h&&(h=0,y[0]&&(i=0)),i)try{if(c=1,u&&(a=y[0]&2?u.return:y[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,y[1])).done)return a;if(u=0,a)y=[y[0]&2,a.value];switch(y[0]){case 0:case 1:a=y;break;case 4:return i.label++,{value:y[1],done:!1};case 5:i.label++,u=y[1],y=[0];continue;case 7:y=i.ops.pop(),i.trys.pop();continue;default:if((a=i.trys,!(a=a.length>0&&a[a.length-1]))&&(y[0]===6||y[0]===2)){i=0;continue}if(y[0]===3&&(!a||y[1]>a[0]&&y[1]<a[3])){i.label=y[1];break}if(y[0]===6&&i.label<a[1]){i.label=a[1],a=y;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(y);break}if(a[2])i.ops.pop();i.trys.pop();continue}y=o.call(s,i)}catch(l){y=[6,l],u=0}finally{c=a=0}if(y[0]&5)throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}},qs=function(s,o){for(var i in s)if(i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i))Dt(o,s,i)},Dt=Object.create?function(s,o,i,c){if(c===void 0)c=i;var u=Object.getOwnPropertyDescriptor(o,i);if(!u||("get"in u?!o.__esModule:u.writable||u.configurable))u={enumerable:!0,get:function(){return o[i]}};Object.defineProperty(s,c,u)}:function(s,o,i,c){if(c===void 0)c=i;s[c]=o[i]},jt=function(s){var o=typeof Symbol==="function"&&Symbol.iterator,i=o&&s[o],c=0;if(i)return i.call(s);if(s&&typeof s.length==="number")return{next:function(){if(s&&c>=s.length)s=void 0;return{value:s&&s[c++],done:!s}}};throw TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},Te=function(s,o){var i=typeof Symbol==="function"&&s[Symbol.iterator];if(!i)return s;var c=i.call(s),u,a=[],h;try{while((o===void 0||o-- >0)&&!(u=c.next()).done)a.push(u.value)}catch(m){h={error:m}}finally{try{if(u&&!u.done&&(i=c.return))i.call(c)}finally{if(h)throw h.error}}return a},Ys=function(){for(var s=[],o=0;o<arguments.length;o++)s=s.concat(Te(arguments[o]));return s},Js=function(){for(var s=0,o=0,i=arguments.length;o<i;o++)s+=arguments[o].length;for(var c=Array(s),u=0,o=0;o<i;o++)for(var a=arguments[o],h=0,m=a.length;h<m;h++,u++)c[u]=a[h];return c},Ws=function(s,o,i){if(i||arguments.length===2){for(var c=0,u=o.length,a;c<u;c++)if(a||!(c in o)){if(!a)a=Array.prototype.slice.call(o,0,c);a[c]=o[c]}}return s.concat(a||Array.prototype.slice.call(o))},J=function(s){return this instanceof J?(this.v=s,this):new J(s)},Xs=function(s,o,i){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var c=i.apply(s,o||[]),u,a=[];return u=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),m("next"),m("throw"),m("return",h),u[Symbol.asyncIterator]=function(){return this},u;function h(g){return function(T){return Promise.resolve(T).then(g,b)}}function m(g,T){if(c[g]){if(u[g]=function(_){return new Promise(function(O,N){a.push([g,_,O,N])>1||p(g,_)})},T)u[g]=T(u[g])}}function p(g,T){try{y(c[g](T))}catch(_){w(a[0][3],_)}}function y(g){g.value instanceof J?Promise.resolve(g.value.v).then(l,b):w(a[0][2],g)}function l(g){p("next",g)}function b(g){p("throw",g)}function w(g,T){if(g(T),a.shift(),a.length)p(a[0][0],a[0][1])}},zs=function(s){var o,i;return o={},c("next"),c("throw",function(u){throw u}),c("return"),o[Symbol.iterator]=function(){return this},o;function c(u,a){o[u]=s[u]?function(h){return(i=!i)?{value:J(s[u](h)),done:!1}:a?a(h):h}:a}},Ks=function(s){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var o=s[Symbol.asyncIterator],i;return o?o.call(s):(s=typeof jt==="function"?jt(s):s[Symbol.iterator](),i={},c("next"),c("throw"),c("return"),i[Symbol.asyncIterator]=function(){return this},i);function c(a){i[a]=s[a]&&function(h){return new Promise(function(m,p){h=s[a](h),u(m,p,h.done,h.value)})}}function u(a,h,m,p){Promise.resolve(p).then(function(y){a({value:y,done:m})},h)}},Zs=function(s,o){if(Object.defineProperty)Object.defineProperty(s,"raw",{value:o});else s.raw=o;return s};var r=Object.create?function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}:function(s,o){s.default=o},n=function(s){return n=Object.getOwnPropertyNames||function(o){var i=[];for(var c in o)if(Object.prototype.hasOwnProperty.call(o,c))i[i.length]=c;return i},n(s)};Qs=function(s){if(s&&s.__esModule)return s;var o={};if(s!=null){for(var i=n(s),c=0;c<i.length;c++)if(i[c]!=="default")Dt(o,s,i[c])}return r(o,s),o},Gs=function(s){return s&&s.__esModule?s:{default:s}},Vs=function(s,o,i,c){if(i==="a"&&!c)throw TypeError("Private accessor was defined without a getter");if(typeof o==="function"?s!==o||!c:!o.has(s))throw TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?c:i==="a"?c.call(s):c?c.value:o.get(s)},ks=function(s,o,i,c,u){if(c==="m")throw TypeError("Private method is not writable");if(c==="a"&&!u)throw TypeError("Private accessor was defined without a setter");if(typeof o==="function"?s!==o||!u:!o.has(s))throw TypeError("Cannot write private member to an object whose class did not declare it");return c==="a"?u.call(s,i):u?u.value=i:o.set(s,i),i},vs=function(s,o){if(o===null||typeof o!=="object"&&typeof o!=="function")throw TypeError("Cannot use 'in' operator on non-object");return typeof s==="function"?o===s:s.has(o)},tn=function(s,o,i){if(o!==null&&o!==void 0){if(typeof o!=="object"&&typeof o!=="function")throw TypeError("Object expected.");var c,u;if(i){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");c=o[Symbol.asyncDispose]}if(c===void 0){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");if(c=o[Symbol.dispose],i)u=c}if(typeof c!=="function")throw TypeError("Object not disposable.");if(u)c=function(){try{u.call(this)}catch(a){return Promise.reject(a)}};s.stack.push({value:o,dispose:c,async:i})}else if(i)s.stack.push({async:!0});return o};var f=typeof SuppressedError==="function"?SuppressedError:function(s,o,i){var c=Error(i);return c.name="SuppressedError",c.error=s,c.suppressed=o,c};en=function(s){function o(a){s.error=s.hasError?new f(a,s.error,"An error was suppressed during disposal."):a,s.hasError=!0}var i,c=0;function u(){while(i=s.stack.pop())try{if(!i.async&&c===1)return c=0,s.stack.push(i),Promise.resolve().then(u);if(i.dispose){var a=i.dispose.call(i.value);if(i.async)return c|=2,Promise.resolve(a).then(u,function(h){return o(h),u()})}else c|=1}catch(h){o(h)}if(c===1)return s.hasError?Promise.reject(s.error):Promise.resolve();if(s.hasError)throw s.error}return u()},rn=function(s,o){if(typeof s==="string"&&/^\.\.?\//.test(s))return s.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(i,c,u,a,h){return c?o?".jsx":".js":u&&(!a||!h)?i:u+a+"."+h.toLowerCase()+"js"});return s},t("__extends",Ps),t("__assign",Bs),t("__rest",Ms),t("__decorate",Rs),t("__param",Is),t("__esDecorate",js),t("__runInitializers",Ds),t("__propKey",Ls),t("__setFunctionName",Us),t("__metadata",Ns),t("__awaiter",Hs),t("__generator",Fs),t("__exportStar",qs),t("__createBinding",Dt),t("__values",jt),t("__read",Te),t("__spread",Ys),t("__spreadArrays",Js),t("__spreadArray",Ws),t("__await",J),t("__asyncGenerator",Xs),t("__asyncDelegator",zs),t("__asyncValues",Ks),t("__makeTemplateObject",Zs),t("__importStar",Qs),t("__importDefault",Gs),t("__classPrivateFieldGet",Vs),t("__classPrivateFieldSet",ks),t("__classPrivateFieldIn",vs),t("__addDisposableResource",tn),t("__disposeResources",en),t("__rewriteRelativeImportExtension",rn)})});var fn=d((on)=>{Object.defineProperty(on,"__esModule",{value:!0});on.randomUUID=void 0;var Of=sn(),nn=Of.__importDefault($("crypto"));on.randomUUID=nn.default.randomUUID.bind(nn.default)});var an=d((Af)=>{var un=fn(),E=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0")),xf=()=>{if(un.randomUUID)return un.randomUUID();let t=new Uint8Array(16);return crypto.getRandomValues(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128,E[t[0]]+E[t[1]]+E[t[2]]+E[t[3]]+"-"+E[t[4]]+E[t[5]]+"-"+E[t[6]]+E[t[7]]+"-"+E[t[8]]+E[t[9]]+"-"+E[t[10]]+E[t[11]]+E[t[12]]+E[t[13]]+E[t[14]]+E[t[15]]};Af.v4=xf});var wn=d((_u)=>{var $f=an(),Pf=(t,e,r=(n)=>n)=>t,Bf=(t)=>{switch(t){case"true":return!0;case"false":return!1;default:throw Error(`Unable to parse boolean value "${t}"`)}},Mf=(t)=>{if(t===null||t===void 0)return;if(typeof t==="number"){if(t===0||t===1)ct.warn(Nt(`Expected boolean, got ${typeof t}: ${t}`));if(t===0)return!1;if(t===1)return!0}if(typeof t==="string"){let e=t.toLowerCase();if(e==="false"||e==="true")ct.warn(Nt(`Expected boolean, got ${typeof t}: ${t}`));if(e==="false")return!1;if(e==="true")return!0}if(typeof t==="boolean")return t;throw TypeError(`Expected boolean, got ${typeof t}: ${t}`)},ot=(t)=>{if(t===null||t===void 0)return;if(typeof t==="string"){let e=parseFloat(t);if(!Number.isNaN(e)){if(String(e)!==String(t))ct.warn(Nt(`Expected number but observed string: ${t}`));return e}}if(typeof t==="number")return t;throw TypeError(`Expected number, got ${typeof t}: ${t}`)},Rf=Math.ceil(340282346638528860000000000000000000000),Ut=(t)=>{let e=ot(t);if(e!==void 0&&!Number.isNaN(e)&&e!==1/0&&e!==-1/0){if(Math.abs(e)>Rf)throw TypeError(`Expected 32-bit float, got ${t}`)}return e},it=(t)=>{if(t===null||t===void 0)return;if(Number.isInteger(t)&&!Number.isNaN(t))return t;throw TypeError(`Expected integer, got ${typeof t}: ${t}`)},If=it,Ee=(t)=>Ae(t,32),Oe=(t)=>Ae(t,16),xe=(t)=>Ae(t,8),Ae=(t,e)=>{let r=it(t);if(r!==void 0&&jf(r,e)!==r)throw TypeError(`Expected ${e}-bit integer, got ${t}`);return r},jf=(t,e)=>{switch(e){case 32:return Int32Array.of(t)[0];case 16:return Int16Array.of(t)[0];case 8:return Int8Array.of(t)[0]}},Df=(t,e)=>{if(t===null||t===void 0){if(e)throw TypeError(`Expected a non-null value for ${e}`);throw TypeError("Expected a non-null value")}return t},yn=(t)=>{if(t===null||t===void 0)return;if(typeof t==="object"&&!Array.isArray(t))return t;let e=Array.isArray(t)?"array":typeof t;throw TypeError(`Expected object, got ${e}: ${t}`)},Lf=(t)=>{if(t===null||t===void 0)return;if(typeof t==="string")return t;if(["boolean","number","bigint"].includes(typeof t))return ct.warn(Nt(`Expected string, got ${typeof t}: ${t}`)),String(t);throw TypeError(`Expected string, got ${typeof t}: ${t}`)},Uf=(t)=>{if(t===null||t===void 0)return;let e=yn(t),r=Object.entries(e).filter(([,n])=>n!=null).map(([n])=>n);if(r.length===0)throw TypeError("Unions must have exactly one non-null member. None were found.");if(r.length>1)throw TypeError(`Unions must have exactly one non-null member. Keys ${r} were not null.`);return e},Ce=(t)=>{if(typeof t=="string")return ot(z(t));return ot(t)},Nf=Ce,mn=(t)=>{if(typeof t=="string")return Ut(z(t));return Ut(t)},Hf=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,z=(t)=>{let e=t.match(Hf);if(e===null||e[0].length!==t.length)throw TypeError("Expected real number, got implicit NaN");return parseFloat(t)},$e=(t)=>{if(typeof t=="string")return pn(t);return ot(t)},Ff=$e,qf=$e,Yf=(t)=>{if(typeof t=="string")return pn(t);return Ut(t)},pn=(t)=>{switch(t){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw Error(`Unable to parse float value: ${t}`)}},ln=(t)=>{if(typeof t==="string")return it(z(t));return it(t)},Jf=ln,Wf=(t)=>{if(typeof t==="string")return Ee(z(t));return Ee(t)},W=(t)=>{if(typeof t==="string")return Oe(z(t));return Oe(t)},dn=(t)=>{if(typeof t==="string")return xe(z(t));return xe(t)},Nt=(t)=>{return String(TypeError(t).stack||t).split(`
14
- `).slice(0,5).filter((e)=>!e.includes("stackTraceWarning")).join(`
15
- `)},ct={warn:console.warn},Xf=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Pe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function zf(t){let e=t.getUTCFullYear(),r=t.getUTCMonth(),n=t.getUTCDay(),f=t.getUTCDate(),s=t.getUTCHours(),o=t.getUTCMinutes(),i=t.getUTCSeconds(),c=f<10?`0${f}`:`${f}`,u=s<10?`0${s}`:`${s}`,a=o<10?`0${o}`:`${o}`,h=i<10?`0${i}`:`${i}`;return`${Xf[n]}, ${c} ${Pe[r]} ${e} ${u}:${a}:${h} GMT`}var Kf=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Zf=(t)=>{if(t===null||t===void 0)return;if(typeof t!=="string")throw TypeError("RFC-3339 date-times must be expressed as strings");let e=Kf.exec(t);if(!e)throw TypeError("Invalid RFC-3339 date-time value");let[r,n,f,s,o,i,c,u]=e,a=W(X(n)),h=P(f,"month",1,12),m=P(s,"day",1,31);return nt(a,h,m,{hours:o,minutes:i,seconds:c,fractionalMilliseconds:u})},Qf=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Gf=(t)=>{if(t===null||t===void 0)return;if(typeof t!=="string")throw TypeError("RFC-3339 date-times must be expressed as strings");let e=Qf.exec(t);if(!e)throw TypeError("Invalid RFC-3339 date-time value");let[r,n,f,s,o,i,c,u,a]=e,h=W(X(n)),m=P(f,"month",1,12),p=P(s,"day",1,31),y=nt(h,m,p,{hours:o,minutes:i,seconds:c,fractionalMilliseconds:u});if(a.toUpperCase()!="Z")y.setTime(y.getTime()-uu(a));return y},Vf=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),kf=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),vf=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),tu=(t)=>{if(t===null||t===void 0)return;if(typeof t!=="string")throw TypeError("RFC-7231 date-times must be expressed as strings");let e=Vf.exec(t);if(e){let[r,n,f,s,o,i,c,u]=e;return nt(W(X(s)),_e(f),P(n,"day",1,31),{hours:o,minutes:i,seconds:c,fractionalMilliseconds:u})}if(e=kf.exec(t),e){let[r,n,f,s,o,i,c,u]=e;return nu(nt(ru(s),_e(f),P(n,"day",1,31),{hours:o,minutes:i,seconds:c,fractionalMilliseconds:u}))}if(e=vf.exec(t),e){let[r,n,f,s,o,i,c,u]=e;return nt(W(X(u)),_e(n),P(f.trimLeft(),"day",1,31),{hours:s,minutes:o,seconds:i,fractionalMilliseconds:c})}throw TypeError("Invalid RFC-7231 date-time value")},eu=(t)=>{if(t===null||t===void 0)return;let e;if(typeof t==="number")e=t;else if(typeof t==="string")e=Ce(t);else if(typeof t==="object"&&t.tag===1)e=t.value;else throw TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(e)||e===1/0||e===-1/0)throw TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(e*1000))},nt=(t,e,r,n)=>{let f=e-1;return iu(t,f,r),new Date(Date.UTC(t,f,r,P(n.hours,"hour",0,23),P(n.minutes,"minute",0,59),P(n.seconds,"seconds",0,60),fu(n.fractionalMilliseconds)))},ru=(t)=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+W(X(t));if(r<e)return r+100;return r},su=1576800000000,nu=(t)=>{if(t.getTime()-new Date().getTime()>su)return new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()));return t},_e=(t)=>{let e=Pe.indexOf(t);if(e<0)throw TypeError(`Invalid month: ${t}`);return e+1},ou=[31,28,31,30,31,30,31,31,30,31,30,31],iu=(t,e,r)=>{let n=ou[e];if(e===1&&cu(t))n=29;if(r>n)throw TypeError(`Invalid day for ${Pe[e]} in ${t}: ${r}`)},cu=(t)=>{return t%4===0&&(t%100!==0||t%400===0)},P=(t,e,r,n)=>{let f=dn(X(t));if(f<r||f>n)throw TypeError(`${e} must be between ${r} and ${n}, inclusive`);return f},fu=(t)=>{if(t===null||t===void 0)return 0;return mn("0."+t)*1000},uu=(t)=>{let e=t[0],r=1;if(e=="+")r=1;else if(e=="-")r=-1;else throw TypeError(`Offset direction, ${e}, must be "+" or "-"`);let n=Number(t.substring(1,3)),f=Number(t.substring(4,6));return r*(n*60+f)*60*1000},X=(t)=>{let e=0;while(e<t.length-1&&t.charAt(e)==="0")e++;if(e===0)return t;return t.slice(e)},H=function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})};H.from=(t)=>{if(t&&typeof t==="object"&&(t instanceof H||("deserializeJSON"in t)))return t;else if(typeof t==="string"||Object.getPrototypeOf(t)===String.prototype)return H(String(t));return H(JSON.stringify(t))};H.fromObject=H.from;function au(t){if(t.includes(",")||t.includes('"'))t=`"${t.replace(/"/g,"\\\"")}"`;return t}var Be="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",Me="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",Re="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",bn="(\\d?\\d)",gn="(\\d{4})",hu=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),yu=new RegExp(`^${Be}, ${bn} ${Me} ${gn} ${Re} GMT$`),mu=new RegExp(`^${Be}, ${bn}-${Me}-(\\d\\d) ${Re} GMT$`),pu=new RegExp(`^${Be} ${Me} ( [1-9]|\\d\\d) ${Re} ${gn}$`),lu=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],du=(t)=>{if(t==null)return;let e=NaN;if(typeof t==="number")e=t;else if(typeof t==="string"){if(!/^-?\d*\.?\d+$/.test(t))throw TypeError("parseEpochTimestamp - numeric string invalid.");e=Number.parseFloat(t)}else if(typeof t==="object"&&t.tag===1)e=t.value;if(isNaN(e)||Math.abs(e)===1/0)throw TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(e*1000))},bu=(t)=>{if(t==null)return;if(typeof t!=="string")throw TypeError("RFC3339 timestamps must be strings");let e=hu.exec(t);if(!e)throw TypeError(`Invalid RFC3339 timestamp format ${t}`);let[,r,n,f,s,o,i,,c,u]=e;L(n,1,12),L(f,1,31),L(s,0,23),L(o,0,59),L(i,0,60);let a=new Date(Date.UTC(Number(r),Number(n)-1,Number(f),Number(s),Number(o),Number(i),Number(c)?Math.round(parseFloat(`0.${c}`)*1000):0));if(a.setUTCFullYear(Number(r)),u.toUpperCase()!="Z"){let[,h,m,p]=/([+-])(\d\d):(\d\d)/.exec(u)||[void 0,"+",0,0],y=h==="-"?1:-1;a.setTime(a.getTime()+y*(Number(m)*60*60*1000+Number(p)*60*1000))}return a},gu=(t)=>{if(t==null)return;if(typeof t!=="string")throw TypeError("RFC7231 timestamps must be strings.");let e,r,n,f,s,o,i,c;if(c=yu.exec(t))[,e,r,n,f,s,o,i]=c;else if(c=mu.exec(t))[,e,r,n,f,s,o,i]=c,n=(Number(n)+1900).toString();else if(c=pu.exec(t))[,r,e,f,s,o,i,n]=c;if(n&&o){let u=Date.UTC(Number(n),lu.indexOf(r),Number(e),Number(f),Number(s),Number(o),i?Math.round(parseFloat(`0.${i}`)*1000):0);L(e,1,31),L(f,0,23),L(s,0,59),L(o,0,60);let a=new Date(u);return a.setUTCFullYear(Number(n)),a}throw TypeError(`Invalid RFC7231 date-time value ${t}.`)};function L(t,e,r){let n=Number(t);if(n<e||n>r)throw Error(`Value ${n} out of range [${e}, ${r}]`)}function wu(t,e,r){if(r<=0||!Number.isInteger(r))throw Error("Invalid number of delimiters ("+r+") for splitEvery.");let n=t.split(e);if(r===1)return n;let f=[],s="";for(let o=0;o<n.length;o++){if(s==="")s=n[o];else s+=e+n[o];if((o+1)%r===0)f.push(s),s=""}if(s!=="")f.push(s);return f}var Su=(t)=>{let e=t.length,r=[],n=!1,f=void 0,s=0;for(let o=0;o<e;++o){let i=t[o];switch(i){case'"':if(f!=="\\")n=!n;break;case",":if(!n)r.push(t.slice(s,o)),s=o+1;break}f=i}return r.push(t.slice(s)),r.map((o)=>{o=o.trim();let i=o.length;if(i<2)return o;if(o[0]==='"'&&o[i-1]==='"')o=o.slice(1,i-1);return o.replace(/\\"/g,'"')})},hn=/^-?\d*(\.\d+)?$/;class Ht{string;type;constructor(t,e){if(this.string=t,this.type=e,!hn.test(t))throw Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](t){if(!t||typeof t!=="object")return!1;let e=t;return Ht.prototype.isPrototypeOf(t)||e.type==="bigDecimal"&&hn.test(e.string)}}function Tu(t){return new Ht(String(t),"bigDecimal")}_u.generateIdempotencyToken=$f.v4;_u.LazyJsonString=H;_u.NumericValue=Ht;_u._parseEpochTimestamp=du;_u._parseRfc3339DateTimeWithOffset=bu;_u._parseRfc7231DateTime=gu;_u.copyDocumentWithTransform=Pf;_u.dateToUtcString=zf;_u.expectBoolean=Mf;_u.expectByte=xe;_u.expectFloat32=Ut;_u.expectInt=If;_u.expectInt32=Ee;_u.expectLong=it;_u.expectNonNull=Df;_u.expectNumber=ot;_u.expectObject=yn;_u.expectShort=Oe;_u.expectString=Lf;_u.expectUnion=Uf;_u.handleFloat=Ff;_u.limitedParseDouble=$e;_u.limitedParseFloat=qf;_u.limitedParseFloat32=Yf;_u.logger=ct;_u.nv=Tu;_u.parseBoolean=Bf;_u.parseEpochTimestamp=eu;_u.parseRfc3339DateTime=Zf;_u.parseRfc3339DateTimeWithOffset=Gf;_u.parseRfc7231DateTime=tu;_u.quoteHeader=au;_u.splitEvery=wu;_u.splitHeader=Su;_u.strictParseByte=dn;_u.strictParseDouble=Ce;_u.strictParseFloat=Nf;_u.strictParseFloat32=mn;_u.strictParseInt=Jf;_u.strictParseInt32=Wf;_u.strictParseLong=ln;_u.strictParseShort=W});var Sn=d((ya)=>{var ha=(t)=>typeof ArrayBuffer==="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]";ya.isArrayBuffer=ha});var je=d((ba)=>{var pa=Sn(),Ie=$("buffer"),la=(t,e=0,r=t.byteLength-e)=>{if(!pa.isArrayBuffer(t))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return Ie.Buffer.from(t,e,r)},da=(t,e)=>{if(typeof t!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`);return e?Ie.Buffer.from(t,e):Ie.Buffer.from(t)};ba.fromArrayBuffer=la;ba.fromString=da});var En=d((Tn)=>{Object.defineProperty(Tn,"__esModule",{value:!0});Tn.fromBase64=void 0;var Sa=je(),Ta=/^[A-Za-z0-9+/]*={0,2}$/,_a=(t)=>{if(t.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!Ta.exec(t))throw TypeError("Invalid base64 string.");let e=(0,Sa.fromString)(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)};Tn.fromBase64=_a});var An=d((On)=>{Object.defineProperty(On,"__esModule",{value:!0});On.toBase64=void 0;var Ea=je(),Oa=q(),xa=(t)=>{let e;if(typeof t==="string")e=(0,Oa.fromUtf8)(t);else e=t;if(typeof e!=="object"||typeof e.byteOffset!=="number"||typeof e.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,Ea.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("base64")};On.toBase64=xa});var Cn=d((U)=>{var Ft=En(),qt=An();Object.prototype.hasOwnProperty.call(Ft,"__proto__")&&!Object.prototype.hasOwnProperty.call(U,"__proto__")&&Object.defineProperty(U,"__proto__",{enumerable:!0,value:Ft.__proto__});Object.keys(Ft).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(U,t))U[t]=Ft[t]});Object.prototype.hasOwnProperty.call(qt,"__proto__")&&!Object.prototype.hasOwnProperty.call(U,"__proto__")&&Object.defineProperty(U,"__proto__",{enumerable:!0,value:qt.__proto__});Object.keys(qt).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(U,t))U[t]=qt[t]})});var Ya=d((Ca)=>{var Yt=$s(),A=ve(),C=wn(),ft=Vt(),Jt=Cn(),De=q(),F=async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return Yt.Uint8ArrayBlobAdapter.mutate(t);if(!t)return Yt.Uint8ArrayBlobAdapter.mutate(new Uint8Array);let r=e.streamCollector(t);return Yt.Uint8ArrayBlobAdapter.mutate(await r)};function ut(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}class K{serdeContext;setSerdeContext(t){this.serdeContext=t}}class Wt extends K{options;compositeErrorRegistry;constructor(t){super();this.options=t,this.compositeErrorRegistry=A.TypeRegistry.for(t.defaultNamespace);for(let e of t.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(e)}getRequestType(){return ft.HttpRequest}getResponseType(){return ft.HttpResponse}setSerdeContext(t){if(this.serdeContext=t,this.serializer.setSerdeContext(t),this.deserializer.setSerdeContext(t),this.getPayloadCodec())this.getPayloadCodec().setSerdeContext(t)}updateServiceEndpoint(t,e){if("url"in e){if(t.protocol=e.url.protocol,t.hostname=e.url.hostname,t.port=e.url.port?Number(e.url.port):void 0,t.path=e.url.pathname,t.fragment=e.url.hash||void 0,t.username=e.url.username||void 0,t.password=e.url.password||void 0,!t.query)t.query={};for(let[r,n]of e.url.searchParams.entries())t.query[r]=n;if(e.headers)for(let[r,n]of Object.entries(e.headers))t.headers[r]=n.join(", ");return t}else{if(t.protocol=e.protocol,t.hostname=e.hostname,t.port=e.port?Number(e.port):void 0,t.path=e.path,t.query={...e.query},e.headers)for(let[r,n]of Object.entries(e.headers))t.headers[r]=n;return t}}setHostPrefix(t,e,r){if(this.serdeContext?.disableHostPrefix)return;let n=A.NormalizedSchema.of(e.input),f=A.translateTraits(e.traits??{});if(f.endpoint){let s=f.endpoint?.[0];if(typeof s==="string"){let o=[...n.structIterator()].filter(([,i])=>i.getMergedTraits().hostLabel);for(let[i]of o){let c=r[i];if(typeof c!=="string")throw Error(`@smithy/core/schema - ${i} in input must be a string as hostLabel.`);s=s.replace(`{${i}}`,c)}t.hostname=s+t.hostname}}}deserializeMetadata(t){return{httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:t,requestSchema:e,initialRequest:r}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:t,requestSchema:e,initialRequest:r})}async deserializeEventStream({response:t,responseSchema:e,initialResponseContainer:r}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:t,responseSchema:e,initialResponseContainer:r})}async loadEventStreamCapability(){let{EventStreamSerde:t}=await import("./index-0.1.9-g2ngvhaf.mjs");return new t({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(t,e,r,n,f){return[]}getEventStreamMarshaller(){let t=this.serdeContext;if(!t.eventStreamMarshaller)throw Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return t.eventStreamMarshaller}}class $n extends Wt{async serializeRequest(t,e,r){let n=e&&typeof e==="object"?e:{},f=this.serializer,s={},o={},i=await r.endpoint(),c=A.NormalizedSchema.of(t?.input),u=[],a=[],h=!1,m,p=new ft.HttpRequest({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:s,headers:o,body:void 0});if(i){this.updateServiceEndpoint(p,i),this.setHostPrefix(p,t,n);let y=A.translateTraits(t.traits);if(y.http){p.method=y.http[0];let[l,b]=y.http[1].split("?");if(p.path=="/")p.path=l;else p.path+=l;let w=new URLSearchParams(b??"");Object.assign(s,Object.fromEntries(w))}}for(let[y,l]of c.structIterator()){let b=l.getMergedTraits()??{},w=n[y];if(w==null&&!l.isIdempotencyToken()){if(b.httpLabel){if(p.path.includes(`{${y}+}`)||p.path.includes(`{${y}}`))throw Error(`No value provided for input HTTP label: ${y}.`)}continue}if(b.httpPayload)if(l.isStreaming())if(l.isStructSchema()){if(n[y])m=await this.serializeEventStream({eventStream:n[y],requestSchema:c})}else m=w;else f.write(l,w),m=f.flush();else if(b.httpLabel){f.write(l,w);let g=f.flush();if(p.path.includes(`{${y}+}`))p.path=p.path.replace(`{${y}+}`,g.split("/").map(ut).join("/"));else if(p.path.includes(`{${y}}`))p.path=p.path.replace(`{${y}}`,ut(g))}else if(b.httpHeader)f.write(l,w),o[b.httpHeader.toLowerCase()]=String(f.flush());else if(typeof b.httpPrefixHeaders==="string")for(let[g,T]of Object.entries(w)){let _=b.httpPrefixHeaders+g;f.write([l.getValueSchema(),{httpHeader:_}],T),o[_.toLowerCase()]=f.flush()}else if(b.httpQuery||b.httpQueryParams)this.serializeQuery(l,w,s);else h=!0,u.push(y),a.push(l)}if(h&&n){let[y,l]=(c.getName(!0)??"#Unknown").split("#"),b=c.getSchema()[6],w=[3,y,l,c.getMergedTraits(),u,a,void 0];if(b)w[6]=b;else w.pop();f.write(w,n),m=f.flush()}return p.headers=o,p.query=s,p.body=m,p}serializeQuery(t,e,r){let n=this.serializer,f=t.getMergedTraits();if(f.httpQueryParams){for(let[s,o]of Object.entries(e))if(!(s in r)){let i=t.getValueSchema();Object.assign(i.getMergedTraits(),{...f,httpQuery:s,httpQueryParams:void 0}),this.serializeQuery(i,o,r)}return}if(t.isListSchema()){let s=!!t.getMergedTraits().sparse,o=[];for(let i of e){n.write([t.getValueSchema(),f],i);let c=n.flush();if(s||c!==void 0)o.push(c)}r[f.httpQuery]=o}else n.write([t,f],e),r[f.httpQuery]=n.flush()}async deserializeResponse(t,e,r){let n=this.deserializer,f=A.NormalizedSchema.of(t.output),s={};if(r.statusCode>=300){let i=await F(r.body,e);if(i.byteLength>0)Object.assign(s,await n.read(15,i));throw await this.handleError(t,e,r,s,this.deserializeMetadata(r)),Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let i in r.headers){let c=r.headers[i];delete r.headers[i],r.headers[i.toLowerCase()]=c}let o=await this.deserializeHttpMessage(f,e,r,s);if(o.length){let i=await F(r.body,e);if(i.byteLength>0){let c=await n.read(f,i);for(let u of o)if(c[u]!=null)s[u]=c[u]}}else if(o.discardResponseBody)await F(r.body,e);return s.$metadata=this.deserializeMetadata(r),s}async deserializeHttpMessage(t,e,r,n,f){let s;if(n instanceof Set)s=f;else s=n;let o=!0,i=this.deserializer,c=A.NormalizedSchema.of(t),u=[];for(let[a,h]of c.structIterator()){let m=h.getMemberTraits();if(m.httpPayload){if(o=!1,h.isStreaming())if(h.isStructSchema())s[a]=await this.deserializeEventStream({response:r,responseSchema:c});else s[a]=Yt.sdkStreamMixin(r.body);else if(r.body){let y=await F(r.body,e);if(y.byteLength>0)s[a]=await i.read(h,y)}}else if(m.httpHeader){let p=String(m.httpHeader).toLowerCase(),y=r.headers[p];if(y!=null)if(h.isListSchema()){let l=h.getValueSchema();l.getMergedTraits().httpHeader=p;let b;if(l.isTimestampSchema()&&l.getSchema()===4)b=C.splitEvery(y,",",2);else b=C.splitHeader(y);let w=[];for(let g of b)w.push(await i.read(l,g.trim()));s[a]=w}else s[a]=await i.read(h,y)}else if(m.httpPrefixHeaders!==void 0){s[a]={};for(let[p,y]of Object.entries(r.headers))if(p.startsWith(m.httpPrefixHeaders)){let l=h.getValueSchema();l.getMergedTraits().httpHeader=p,s[a][p.slice(m.httpPrefixHeaders.length)]=await i.read(l,y)}}else if(m.httpResponseCode)s[a]=r.statusCode;else u.push(a)}return u.discardResponseBody=o,u}}class Pn extends Wt{async serializeRequest(t,e,r){let n=this.serializer,f={},s={},o=await r.endpoint(),i=A.NormalizedSchema.of(t?.input),c=i.getSchema(),u,a=e&&typeof e==="object"?e:{},h=new ft.HttpRequest({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:f,headers:s,body:void 0});if(o)this.updateServiceEndpoint(h,o),this.setHostPrefix(h,t,a);if(a){let m=i.getEventStreamMember();if(m){if(a[m]){let p={};for(let[y,l]of i.structIterator())if(y!==m&&a[y])n.write(l,a[y]),p[y]=n.flush();u=await this.serializeEventStream({eventStream:a[m],requestSchema:i,initialRequest:p})}}else n.write(c,a),u=n.flush()}return h.headers=Object.assign(h.headers,s),h.query=f,h.body=u,h.method="POST",h}async deserializeResponse(t,e,r){let n=this.deserializer,f=A.NormalizedSchema.of(t.output),s={};if(r.statusCode>=300){let i=await F(r.body,e);if(i.byteLength>0)Object.assign(s,await n.read(15,i));throw await this.handleError(t,e,r,s,this.deserializeMetadata(r)),Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(let i in r.headers){let c=r.headers[i];delete r.headers[i],r.headers[i.toLowerCase()]=c}let o=f.getEventStreamMember();if(o)s[o]=await this.deserializeEventStream({response:r,responseSchema:f,initialResponseContainer:s});else{let i=await F(r.body,e);if(i.byteLength>0)Object.assign(s,await n.read(f,i))}return s.$metadata=this.deserializeMetadata(r),s}}var Bn=(t,e,r,n,f,s)=>{if(e!=null&&e[r]!==void 0){let o=n();if(o==null||o.length<=0)throw Error("Empty value provided for input HTTP label: "+r+".");t=t.replace(f,s?o.split("/").map((i)=>ut(i)).join("/"):ut(o))}else throw Error("No value provided for input HTTP label: "+r+".");return t};function Aa(t,e){return new Le(t,e)}class Le{input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(t,e){this.input=t,this.context=e}async build(){let{hostname:t,protocol:e="https",port:r,path:n}=await this.context.endpoint();this.path=n;for(let f of this.resolvePathStack)f(this.path);return new ft.HttpRequest({protocol:e,hostname:this.hostname||t,port:r,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(t){return this.hostname=t,this}bp(t){return this.resolvePathStack.push((e)=>{this.path=`${e?.endsWith("/")?e.slice(0,-1):e||""}`+t}),this}p(t,e,r,n){return this.resolvePathStack.push((f)=>{this.path=Bn(f,this.input,t,e,r,n)}),this}h(t){return this.headers=t,this}q(t){return this.query=t,this}b(t){return this.body=t,this}m(t){return this.method=t,this}}function Ue(t,e){if(e.timestampFormat.useTrait){if(t.isTimestampSchema()&&(t.getSchema()===5||t.getSchema()===6||t.getSchema()===7))return t.getSchema()}let{httpLabel:r,httpPrefixHeaders:n,httpHeader:f,httpQuery:s}=t.getMergedTraits();return(e.httpBindings?typeof n==="string"||Boolean(f)?6:Boolean(s)||Boolean(r)?5:void 0:void 0)??e.timestampFormat.default}class Ne extends K{settings;constructor(t){super();this.settings=t}read(t,e){let r=A.NormalizedSchema.of(t);if(r.isListSchema())return C.splitHeader(e).map((n)=>this.read(r.getValueSchema(),n));if(r.isBlobSchema())return(this.serdeContext?.base64Decoder??Jt.fromBase64)(e);if(r.isTimestampSchema())switch(Ue(r,this.settings)){case 5:return C._parseRfc3339DateTimeWithOffset(e);case 6:return C._parseRfc7231DateTime(e);case 7:return C._parseEpochTimestamp(e);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",e),new Date(e)}if(r.isStringSchema()){let n=r.getMergedTraits().mediaType,f=e;if(n){if(r.getMergedTraits().httpHeader)f=this.base64ToUtf8(f);if(n==="application/json"||n.endsWith("+json"))f=C.LazyJsonString.from(f);return f}}if(r.isNumericSchema())return Number(e);if(r.isBigIntegerSchema())return BigInt(e);if(r.isBigDecimalSchema())return new C.NumericValue(e,"bigDecimal");if(r.isBooleanSchema())return String(e).toLowerCase()==="true";return e}base64ToUtf8(t){return(this.serdeContext?.utf8Encoder??De.toUtf8)((this.serdeContext?.base64Decoder??Jt.fromBase64)(t))}}class Mn extends K{codecDeserializer;stringDeserializer;constructor(t,e){super();this.codecDeserializer=t,this.stringDeserializer=new Ne(e)}setSerdeContext(t){this.stringDeserializer.setSerdeContext(t),this.codecDeserializer.setSerdeContext(t),this.serdeContext=t}read(t,e){let r=A.NormalizedSchema.of(t),n=r.getMergedTraits(),f=this.serdeContext?.utf8Encoder??De.toUtf8;if(n.httpHeader||n.httpResponseCode)return this.stringDeserializer.read(r,f(e));if(n.httpPayload){if(r.isBlobSchema()){let s=this.serdeContext?.utf8Decoder??De.fromUtf8;if(typeof e==="string")return s(e);return e}else if(r.isStringSchema()){if("byteLength"in e)return f(e);return e}}return this.codecDeserializer.read(r,e)}}class He extends K{settings;stringBuffer="";constructor(t){super();this.settings=t}write(t,e){let r=A.NormalizedSchema.of(t);switch(typeof e){case"object":if(e===null){this.stringBuffer="null";return}if(r.isTimestampSchema()){if(!(e instanceof Date))throw Error(`@smithy/core/protocols - received non-Date value ${e} when schema expected Date in ${r.getName(!0)}`);switch(Ue(r,this.settings)){case 5:this.stringBuffer=e.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=C.dateToUtcString(e);break;case 7:this.stringBuffer=String(e.getTime()/1000);break;default:console.warn("Missing timestamp format, using epoch seconds",e),this.stringBuffer=String(e.getTime()/1000)}return}if(r.isBlobSchema()&&"byteLength"in e){this.stringBuffer=(this.serdeContext?.base64Encoder??Jt.toBase64)(e);return}if(r.isListSchema()&&Array.isArray(e)){let s="";for(let o of e){this.write([r.getValueSchema(),r.getMergedTraits()],o);let i=this.flush(),c=r.getValueSchema().isTimestampSchema()?i:C.quoteHeader(i);if(s!=="")s+=", ";s+=c}this.stringBuffer=s;return}this.stringBuffer=JSON.stringify(e,null,2);break;case"string":let n=r.getMergedTraits().mediaType,f=e;if(n){if(n==="application/json"||n.endsWith("+json"))f=C.LazyJsonString.from(f);if(r.getMergedTraits().httpHeader){this.stringBuffer=(this.serdeContext?.base64Encoder??Jt.toBase64)(f.toString());return}}this.stringBuffer=e;break;default:if(r.isIdempotencyToken())this.stringBuffer=C.generateIdempotencyToken();else this.stringBuffer=String(e)}}flush(){let t=this.stringBuffer;return this.stringBuffer="",t}}class Rn{codecSerializer;stringSerializer;buffer;constructor(t,e,r=new He(e)){this.codecSerializer=t,this.stringSerializer=r}setSerdeContext(t){this.codecSerializer.setSerdeContext(t),this.stringSerializer.setSerdeContext(t)}write(t,e){let r=A.NormalizedSchema.of(t),n=r.getMergedTraits();if(n.httpHeader||n.httpLabel||n.httpQuery){this.stringSerializer.write(r,e),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(r,e)}flush(){if(this.buffer!==void 0){let t=this.buffer;return this.buffer=void 0,t}return this.codecSerializer.flush()}}Ca.FromStringShapeDeserializer=Ne;Ca.HttpBindingProtocol=$n;Ca.HttpInterceptingShapeDeserializer=Mn;Ca.HttpInterceptingShapeSerializer=Rn;Ca.HttpProtocol=Wt;Ca.RequestBuilder=Le;Ca.RpcProtocol=Pn;Ca.SerdeContext=K;Ca.ToStringShapeSerializer=He;Ca.collectBody=F;Ca.determineTimestampFormat=Ue;Ca.extendedEncodeURIComponent=ut;Ca.requestBuilder=Aa;Ca.resolvedPath=Bn});
16
- export{$s as Tma,Fe as Uma,Vt as Vma,ze as Wma,Ze as Xma,ve as Yma,an as Zma,wn as _ma,Cn as $ma,Ya as ana};
@@ -1,2 +0,0 @@
1
- import{wd as V,yd as D}from"./cli-0.1.9-2dd7h0hn.mjs";import{Kn as L,Ln as q,MH as w,VI as U,XI as B,yH as Q}from"./cli-0.1.9-04ez73f7.mjs";import{s9 as K,x9 as k}from"./cli-0.1.9-86kws2c7.mjs";import{Aga as $,Zfa as G,dga as _,xga as I}from"./cli-0.1.9-vdw09f8y.mjs";import{lna as Z}from"./cli-0.1.9-kbrf27z8.mjs";async function h(W,X){let E=V(W);if(!E)return null;try{let A=await U({systemPrompt:L(['Generate a short kebab-case name (2-4 words) that captures the main topic of this conversation. Use lowercase words separated by hyphens. Examples: "fix-login-bug", "add-auth-feature", "refactor-api-client", "debug-test-failures". Return JSON with a "name" field.']),userPrompt:E,outputFormat:{type:"json_schema",schema:{type:"object",properties:{name:{type:"string"}},required:["name"],additionalProperties:!1}},signal:X,options:{querySource:"rename_generate_name",agents:[],isNonInteractiveSession:!1,hasAppendSystemPrompt:!1,mcpTools:[]}}),Y=Q(A.message.content),z=K(Y);if(z&&typeof z==="object"&&"name"in z&&typeof z.name==="string")return z.name;return null}catch(A){return I(`generateSessionName failed: ${G(A)}`,{level:"error"}),null}}var F=Z(()=>{B();$();_();k();w();D();q()});
2
- export{h as ud,F as vd};
@@ -1,5 +0,0 @@
1
- import{Jt as D,Nt as r,VJ as F,WJ as y,ZJ as S,dK as o}from"./cli-0.1.9-04ez73f7.mjs";import{AT as l,dU as z,eU as O,zT as A}from"./cli-0.1.9-nw3rpxdd.mjs";import{F7 as x,G7 as d,I7 as b,J7 as g}from"./cli-0.1.9-86kws2c7.mjs";import{Aga as I,iga as k,jga as p,nga as L,rga as c,xga as V}from"./cli-0.1.9-vdw09f8y.mjs";import{Oma as T,Pma as C}from"./cli-0.1.9-1ghbcafn.mjs";import{lna as w}from"./cli-0.1.9-kbrf27z8.mjs";import{spawn as G,spawnSync as _}from"child_process";import{basename as R}from"path";function u(q){return!!b(q)}function N(q){let H=R(q.split(" ")[0]??"");return h.find((B)=>H.includes(B))}function m(q,H,B){if(!B)return[H];if(f.has(q))return["-g",`${H}:${B}`];if(q==="subl")return[`${H}:${B}`];return[H]}function Qq(q,H){let B=v();if(!B)return!1;let J=B.split(" "),X=J[0]??B,K=J.slice(1),Q=N(B);if(Q){let W=m(Q,q,H),Z={detached:!0,stdio:"ignore"},M;if(process.platform==="win32"){let U=W.map((E)=>`"${E}"`).join(" ");M=G(`${B} ${U}`,{...Z,shell:!0})}else M=G(X,[...K,...W],Z);return M.on("error",(U)=>V(`editor spawn failed: ${U}`,{level:"error"})),M.unref(),!0}let $=z.get(process.stdout);if(!$)return!1;let Y=H&&P.test(R(X));$.enterAlternateScreen();try{let W={stdio:"inherit"},Z;if(process.platform==="win32"){let M=Y?`+${H} `:"";Z=_(`${B} ${M}"${q}"`,{...W,shell:!0})}else{let M=[...K,...Y?[`+${H}`,q]:[q]];Z=_(X,M,W)}if(Z.error)return V(`editor spawn failed: ${Z.error}`,{level:"error"}),!1;return!0}finally{$.exitAlternateScreen()}}var h,P,f,v;var j=w(()=>{C();O();I();g();h=["code","cursor","windsurf","codium","subl","atom","gedit","notepad++","notepad"],P=/\b(vi|vim|nvim|nano|emacs|pico|micro|helix|hx)\b/,f=new Set(["code","cursor","windsurf","codium"]);v=T(()=>{if(process.env.VISUAL?.trim())return process.env.VISUAL.trim();if(process.env.EDITOR?.trim())return process.env.EDITOR.trim();if(process.platform==="win32")return"start /wait notepad";return["code","vi","nano"].find((H)=>u(H))})});function a(q){return N(q)!==void 0}function i(q){let H=L(),B=z.get(process.stdout);if(!B)throw Error("Ink instance not found - cannot pause rendering");let J=v();if(!J)return{content:null};try{H.statSync(q)}catch{return{content:null}}let X=!a(J);if(X)B.enterAlternateScreen();else B.pause(),B.suspendStdin();try{let K=s[J]??J;return x(`${K} "${q}"`,{stdio:"inherit"}),{content:H.readFileSync(q,{encoding:"utf-8"})}}catch(K){if(typeof K==="object"&&K!==null&&"status"in K&&typeof K.status==="number"){let Q=K.status;if(Q!==0)return{content:null,error:`${D(J)} exited with code ${Q}`}}return{content:null}}finally{if(X)B.exitAlternateScreen();else B.resumeStdin(),B.resume()}}function n(q,H,B){let J=q;for(let[X,K]of Object.entries(B))if(K.type==="text"){let Q=parseInt(X),$=K.content,Y=J.indexOf($);if(Y!==-1){let W=F($),Z=y(Q,W);J=J.slice(0,Y)+Z+J.slice(Y+$.length)}}return J}function Nq(q,H){let B=L(),J=A();try{let X=H?S(q,H):q;k(J,X,{encoding:"utf-8",flush:!0});let K=i(J);if(K.content===null)return K;let Q=K.content;if(Q.endsWith(`
2
- `)&&!Q.endsWith(`
3
-
4
- `))Q=Q.slice(0,-1);if(H)Q=n(Q,q,H);return{content:Q}}finally{try{B.unlinkSync(J)}catch{}}}var s;var t=w(()=>{o();O();j();d();c();r();p();l();s={code:"code -w",subl:"subl --wait"}});
5
- export{Qq as _e,v as $e,j as af,i as bf,Nq as cf,t as df};
@@ -1,2 +0,0 @@
1
- import{BR as M,DR as X}from"./cli-0.1.9-7047sjwh.mjs";import{H9 as V,Z$ as K,caa as L,laa as W,y9 as B}from"./cli-0.1.9-86kws2c7.mjs";import{lna as Q}from"./cli-0.1.9-kbrf27z8.mjs";async function F(){let b=await M();if(b.length===0)return{availableEnvironments:[],selectedEnvironment:null,selectedEnvironmentSource:null};let z=L()?.remote?.defaultEnvironmentId,H=b.find((x)=>x.kind!=="bridge")??b[0],J=null;if(z){let x=b.find((q)=>q.environment_id===z);if(x){H=x;for(let q=B.length-1;q>=0;q--){let y=B[q];if(!y||y==="flagSettings")continue;if(K(y)?.remote?.defaultEnvironmentId===z){J=y;break}}}}return{availableEnvironments:b,selectedEnvironment:H,selectedEnvironmentSource:J}}var Y=Q(()=>{V();W();X()});
2
- export{F as nb,Y as ob};
@@ -1,2 +0,0 @@
1
- import{iv as h,kv as I}from"./cli-0.1.9-04ez73f7.mjs";import{xP as g,yP as k}from"./cli-0.1.9-ak0b9xfs.mjs";import{FS as S,UU as _,pU as l}from"./cli-0.1.9-nw3rpxdd.mjs";import{zX as T}from"./cli-0.1.9-2v4s8yf9.mjs";import{Waa as b,qba as P}from"./cli-0.1.9-86kws2c7.mjs";import{hna as A}from"./cli-0.1.9-kbrf27z8.mjs";_();P();I();k();var v=A(S(),1),o=A(T(),1);function G(C){let e=v.c(17),{customApiKeyTruncated:t,onDone:m}=C,p;if(e[0]!==t||e[1]!==m)p=function(R){e:switch(R){case"yes":{b((s)=>({...s,customApiKeyResponses:{...s.customApiKeyResponses,approved:[...s.customApiKeyResponses?.approved??[],t]}})),m(!0);break e}case"no":b((s)=>({...s,customApiKeyResponses:{...s.customApiKeyResponses,rejected:[...s.customApiKeyResponses?.rejected??[],t]}})),m(!1)}},e[0]=t,e[1]=m,e[2]=p;else p=e[2];let n=p,i;if(e[3]!==n)i=()=>n("no"),e[3]=n,e[4]=i;else i=e[4];let r;if(e[5]===Symbol.for("react.memo_cache_sentinel"))r=o.jsxDEV(l,{bold:!0,children:"ANTHROPIC_API_KEY"},void 0,!1,void 0,this),e[5]=r;else r=e[5];let a;if(e[6]!==t)a=o.jsxDEV(l,{children:[r,o.jsxDEV(l,{children:[": sk-ant-...",t]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e[6]=t,e[7]=a;else a=e[7];let f;if(e[8]===Symbol.for("react.memo_cache_sentinel"))f=o.jsxDEV(l,{children:"Do you want to use this API key?"},void 0,!1,void 0,this),e[8]=f;else f=e[8];let u;if(e[9]===Symbol.for("react.memo_cache_sentinel"))u={label:"Yes",value:"yes"},e[9]=u;else u=e[9];let y;if(e[10]===Symbol.for("react.memo_cache_sentinel"))y=[u,{label:o.jsxDEV(l,{children:["No (",o.jsxDEV(l,{bold:!0,children:"recommended"},void 0,!1,void 0,this),")"]},void 0,!0,void 0,this),value:"no"}],e[10]=y;else y=e[10];let c;if(e[11]!==n)c=o.jsxDEV(h,{defaultValue:"no",defaultFocusValue:"no",options:y,onChange:(K)=>n(K),onCancel:()=>n("no")},void 0,!1,void 0,this),e[11]=n,e[12]=c;else c=e[12];let d;if(e[13]!==i||e[14]!==a||e[15]!==c)d=o.jsxDEV(g,{title:"Detected a custom API key in your environment",color:"warning",onCancel:i,children:[a,f,c]},void 0,!0,void 0,this),e[13]=i,e[14]=a,e[15]=c,e[16]=d;else d=e[16];return d}
2
- export{G as Wa};