@claudiolabs/claudin 1.1.35 → 1.1.37

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 (820) hide show
  1. package/dist/chunks/App-1.1.37-gvacrdsk.mjs +1 -0
  2. package/dist/chunks/ApproveApiKey-1.1.37-rnnbn40a.mjs +1 -0
  3. package/dist/chunks/AutoModeOptInDialog-1.1.37-g6ta4m2v.mjs +1 -0
  4. package/dist/chunks/BypassPermissionsModeDialog-1.1.37-pk4aghdz.mjs +1 -0
  5. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.37-hymvtk1w.mjs +1 -0
  6. package/dist/chunks/ConsoleOAuthFlow-1.1.37-p8fwd4tm.mjs +1 -0
  7. package/dist/chunks/DiffDialog-1.1.37-hb26z7b7.mjs +6 -0
  8. package/dist/chunks/Doctor-1.1.37-g60gf1vr.mjs +1 -0
  9. package/dist/chunks/ExplorerDialog-1.1.37-w0ek8efz.mjs +6 -0
  10. package/dist/chunks/ITermBackend-1.1.37-tp4qnkf7.mjs +1 -0
  11. package/dist/chunks/InvalidConfigDialog-1.1.37-5ds363er.mjs +1 -0
  12. package/dist/chunks/InvalidSettingsDialog-1.1.37-qaz2nf35.mjs +1 -0
  13. package/dist/chunks/MigrationDialog-1.1.37-cxe5gn9z.mjs +1 -0
  14. package/dist/chunks/Onboarding-1.1.37-jsrbvfaa.mjs +1 -0
  15. package/dist/chunks/ProviderManager-1.1.37-kmfet3bc.mjs +1 -0
  16. package/dist/chunks/REPL-1.1.37-mx8g4asq.mjs +1 -0
  17. package/dist/chunks/ResumeConversation-1.1.37-1j1egpzv.mjs +1 -0
  18. package/dist/chunks/TeleportProgress-1.1.37-s6gpj3tk.mjs +1 -0
  19. package/dist/chunks/TeleportRepoMismatchDialog-1.1.37-06r6s8k3.mjs +1 -0
  20. package/dist/chunks/TeleportResumeWrapper-1.1.37-vk5478hq.mjs +1 -0
  21. package/dist/chunks/TmuxBackend-1.1.37-08ypek7f.mjs +9 -0
  22. package/dist/chunks/ToolSearchTool-1.1.37-j3j1tnac.mjs +1 -0
  23. package/dist/chunks/TrustDialog-1.1.37-dy4r3sef.mjs +1 -0
  24. package/dist/chunks/activeProvider-1.1.37-r4p9gt6p.mjs +1 -0
  25. package/dist/chunks/add-dir-1.1.37-hsgnnqm5.mjs +1 -0
  26. package/dist/chunks/agentTypes-1.1.37-e0zrjgxd.mjs +1 -0
  27. package/dist/chunks/agents-1.1.37-770krh9a.mjs +110 -0
  28. package/dist/chunks/agents-1.1.37-n5gk09na.mjs +3 -0
  29. package/dist/chunks/api-1.1.37-bwy6n0v8.mjs +1 -0
  30. package/dist/chunks/asciicast-1.1.37-t7zpdmt1.mjs +1 -0
  31. package/dist/chunks/auth-1.1.37-apskerg1.mjs +1 -0
  32. package/dist/chunks/auth-1.1.37-t0yjn0qg.mjs +1 -0
  33. package/dist/chunks/autoMode-1.1.37-a94rgbvb.mjs +52 -0
  34. package/dist/chunks/autoModeSetup-1.1.37-8g5tdnzc.mjs +44 -0
  35. package/dist/chunks/autoUpdater-1.1.37-pe8hzmys.mjs +1 -0
  36. package/dist/chunks/backgroundHousekeeping-1.1.37-r98mdthk.mjs +1 -0
  37. package/dist/chunks/branch-1.1.37-1a761dqp.mjs +4 -0
  38. package/dist/chunks/bridge-1.1.37-djx2nh0s.mjs +2 -0
  39. package/dist/chunks/bridgeConfig-1.1.37-wsz2v4gw.mjs +1 -0
  40. package/dist/chunks/bridgeEnabled-1.1.37-pht9tpgd.mjs +1 -0
  41. package/dist/chunks/bridgeMain-1.1.37-btaaq723.mjs +64 -0
  42. package/dist/chunks/bridgePointer-1.1.37-97bjx2gt.mjs +1 -0
  43. package/dist/chunks/btw-1.1.37-kzbnzfwv.mjs +1 -0
  44. package/dist/chunks/buddy-1.1.37-r155thdv.mjs +3 -0
  45. package/dist/chunks/cache-probe-1.1.37-szdjedc6.mjs +21 -0
  46. package/dist/chunks/cacheStats-1.1.37-zcq6bfv7.mjs +4 -0
  47. package/dist/chunks/caches-1.1.37-m3bsp8q4.mjs +1 -0
  48. package/dist/chunks/cd-1.1.37-bgh3jr0j.mjs +3 -0
  49. package/dist/chunks/claudeDesktop-1.1.37-d5rmp7j9.mjs +1 -0
  50. package/dist/chunks/claudemd-1.1.37-zqxz2brp.mjs +1 -0
  51. package/dist/chunks/clear-1.1.37-a28jd9f5.mjs +1 -0
  52. package/dist/chunks/clearTerminal-1.1.37-1vwtn9rv.mjs +1 -0
  53. package/dist/chunks/cli-1.1.37-07v28734.mjs +24 -0
  54. package/dist/chunks/cli-1.1.37-0g18ppvn.mjs +2 -0
  55. package/dist/chunks/cli-1.1.37-0t8trtcs.mjs +135 -0
  56. package/dist/chunks/cli-1.1.37-160hvn22.mjs +2 -0
  57. package/dist/chunks/cli-1.1.37-16r2w6eh.mjs +2 -0
  58. package/dist/chunks/cli-1.1.37-16ycb15m.mjs +2 -0
  59. package/dist/chunks/cli-1.1.37-1esm8vyn.mjs +2 -0
  60. package/dist/chunks/cli-1.1.37-1nx0h24b.mjs +34 -0
  61. package/dist/chunks/cli-1.1.37-1sn4ganc.mjs +6 -0
  62. package/dist/chunks/cli-1.1.37-22erav9m.mjs +2 -0
  63. package/dist/chunks/cli-1.1.37-240c02km.mjs +4 -0
  64. package/dist/chunks/cli-1.1.37-26cht952.mjs +4 -0
  65. package/dist/chunks/cli-1.1.37-2gsgt0yq.mjs +2 -0
  66. package/dist/chunks/cli-1.1.37-2xne39h9.mjs +6 -0
  67. package/dist/chunks/cli-1.1.37-37swmf5n.mjs +2 -0
  68. package/dist/chunks/cli-1.1.37-39bw2pz6.mjs +2 -0
  69. package/dist/chunks/cli-1.1.37-3j7g0j34.mjs +2 -0
  70. package/dist/chunks/cli-1.1.37-3k4d07av.mjs +2 -0
  71. package/dist/chunks/cli-1.1.37-3pyzesy7.mjs +2 -0
  72. package/dist/chunks/cli-1.1.37-41q5f236.mjs +63 -0
  73. package/dist/chunks/cli-1.1.37-422098yx.mjs +26 -0
  74. package/dist/chunks/cli-1.1.37-45phxq6t.mjs +2 -0
  75. package/dist/chunks/cli-1.1.37-46pcgpjk.mjs +5 -0
  76. package/dist/chunks/cli-1.1.37-4829k99z.mjs +8 -0
  77. package/dist/chunks/cli-1.1.37-4cwzzzkp.mjs +2 -0
  78. package/dist/chunks/cli-1.1.37-4cyg3kha.mjs +15 -0
  79. package/dist/chunks/cli-1.1.37-4s29t03n.mjs +2 -0
  80. package/dist/chunks/cli-1.1.37-519yanf4.mjs +2 -0
  81. package/dist/chunks/cli-1.1.37-51efrsrh.mjs +2 -0
  82. package/dist/chunks/cli-1.1.37-58pbecmv.mjs +2 -0
  83. package/dist/chunks/cli-1.1.37-5gj77q8j.mjs +2 -0
  84. package/dist/chunks/cli-1.1.37-5k40cazp.mjs +2 -0
  85. package/dist/chunks/cli-1.1.37-5ppknhpq.mjs +50 -0
  86. package/dist/chunks/cli-1.1.37-67ncf860.mjs +2 -0
  87. package/dist/chunks/cli-1.1.37-6defhmsy.mjs +2 -0
  88. package/dist/chunks/cli-1.1.37-6k9f1kb2.mjs +6 -0
  89. package/dist/chunks/cli-1.1.37-6pcx2j1q.mjs +2 -0
  90. package/dist/chunks/cli-1.1.37-72ezs6b8.mjs +2 -0
  91. package/dist/chunks/cli-1.1.37-7483gf56.mjs +3 -0
  92. package/dist/chunks/cli-1.1.37-7614bfhm.mjs +25 -0
  93. package/dist/chunks/cli-1.1.37-7f3hdq3p.mjs +2 -0
  94. package/dist/chunks/cli-1.1.37-7h3edez5.mjs +2 -0
  95. package/dist/chunks/cli-1.1.37-7prgb5qb.mjs +2 -0
  96. package/dist/chunks/cli-1.1.37-7qda9cmg.mjs +2 -0
  97. package/dist/chunks/cli-1.1.37-8n5vy3kh.mjs +2 -0
  98. package/dist/chunks/cli-1.1.37-8v3e4pnr.mjs +2 -0
  99. package/dist/chunks/cli-1.1.37-8wfxbqcm.mjs +20 -0
  100. package/dist/chunks/cli-1.1.37-944j3qt1.mjs +2 -0
  101. package/dist/chunks/cli-1.1.37-94bfnv5a.mjs +2 -0
  102. package/dist/chunks/cli-1.1.37-96sf5t1p.mjs +2 -0
  103. package/dist/chunks/cli-1.1.37-9x24mgyx.mjs +2 -0
  104. package/dist/chunks/cli-1.1.37-a3xp4gqs.mjs +3 -0
  105. package/dist/chunks/cli-1.1.37-a489vqjv.mjs +2 -0
  106. package/dist/chunks/cli-1.1.37-a5ddx2f0.mjs +2 -0
  107. package/dist/chunks/cli-1.1.37-a6pppj4k.mjs +2 -0
  108. package/dist/chunks/cli-1.1.37-a7jrq85d.mjs +2 -0
  109. package/dist/chunks/cli-1.1.37-ayhzfa69.mjs +2 -0
  110. package/dist/chunks/cli-1.1.37-ayqpwfm4.mjs +2 -0
  111. package/dist/chunks/cli-1.1.37-b26at90a.mjs +4 -0
  112. package/dist/chunks/cli-1.1.37-be0x6tdq.mjs +18 -0
  113. package/dist/chunks/cli-1.1.37-bkp0a6f1.mjs +2 -0
  114. package/dist/chunks/cli-1.1.37-cmbtcpwy.mjs +2 -0
  115. package/dist/chunks/cli-1.1.37-crpgw5qe.mjs +133 -0
  116. package/dist/chunks/cli-1.1.37-cw718qh8.mjs +42 -0
  117. package/dist/chunks/cli-1.1.37-d1fcgxg0.mjs +2 -0
  118. package/dist/chunks/cli-1.1.37-d23vxnm9.mjs +2 -0
  119. package/dist/chunks/cli-1.1.37-d6n91ex7.mjs +15 -0
  120. package/dist/chunks/cli-1.1.37-dj2tqhmt.mjs +2 -0
  121. package/dist/chunks/cli-1.1.37-dt1m5cht.mjs +2 -0
  122. package/dist/chunks/cli-1.1.37-ecm5tm4s.mjs +2 -0
  123. package/dist/chunks/cli-1.1.37-ekft3ygw.mjs +2 -0
  124. package/dist/chunks/cli-1.1.37-ev14s3y6.mjs +4 -0
  125. package/dist/chunks/cli-1.1.37-ex5tn3t8.mjs +6 -0
  126. package/dist/chunks/cli-1.1.37-f4cc288j.mjs +2 -0
  127. package/dist/chunks/cli-1.1.37-f7e57y66.mjs +2 -0
  128. package/dist/chunks/cli-1.1.37-f9mv7jky.mjs +2 -0
  129. package/dist/chunks/cli-1.1.37-fdkc3sf9.mjs +2 -0
  130. package/dist/chunks/cli-1.1.37-fksjv0et.mjs +2 -0
  131. package/dist/chunks/cli-1.1.37-fsjyvbbb.mjs +2 -0
  132. package/dist/chunks/cli-1.1.37-g7m905sy.mjs +3 -0
  133. package/dist/chunks/cli-1.1.37-g7xfccj8.mjs +2 -0
  134. package/dist/chunks/cli-1.1.37-g9d8qc79.mjs +2 -0
  135. package/dist/chunks/cli-1.1.37-gfbpxehy.mjs +2 -0
  136. package/dist/chunks/cli-1.1.37-gpk56nss.mjs +2 -0
  137. package/dist/chunks/cli-1.1.37-grsmntjy.mjs +5557 -0
  138. package/dist/chunks/cli-1.1.37-gswxz7xc.mjs +25 -0
  139. package/dist/chunks/cli-1.1.37-h0jx10pf.mjs +11 -0
  140. package/dist/chunks/cli-1.1.37-h4spe8tn.mjs +16 -0
  141. package/dist/chunks/cli-1.1.37-h7r11vsm.mjs +15 -0
  142. package/dist/chunks/cli-1.1.37-he99jbx1.mjs +2 -0
  143. package/dist/chunks/cli-1.1.37-hef24tpw.mjs +3 -0
  144. package/dist/chunks/cli-1.1.37-hgz1n58h.mjs +2 -0
  145. package/dist/chunks/cli-1.1.37-htprtn3s.mjs +2 -0
  146. package/dist/chunks/cli-1.1.37-hwan9xgw.mjs +2 -0
  147. package/dist/chunks/cli-1.1.37-j1vf4g9d.mjs +4 -0
  148. package/dist/chunks/cli-1.1.37-j6kremq2.mjs +2 -0
  149. package/dist/chunks/cli-1.1.37-jb5tx7mz.mjs +2 -0
  150. package/dist/chunks/cli-1.1.37-jbqk7r70.mjs +2 -0
  151. package/dist/chunks/cli-1.1.37-jfqs1fqm.mjs +2 -0
  152. package/dist/chunks/cli-1.1.37-jr1vseya.mjs +4 -0
  153. package/dist/chunks/cli-1.1.37-jr69vbpp.mjs +3 -0
  154. package/dist/chunks/cli-1.1.37-jv2bhmv9.mjs +2 -0
  155. package/dist/chunks/cli-1.1.37-jz75ctqt.mjs +4 -0
  156. package/dist/chunks/cli-1.1.37-kahw2epk.mjs +39 -0
  157. package/dist/chunks/cli-1.1.37-kb946f3c.mjs +2 -0
  158. package/dist/chunks/cli-1.1.37-kemsps6y.mjs +60 -0
  159. package/dist/chunks/cli-1.1.37-khfxdt5q.mjs +2 -0
  160. package/dist/chunks/cli-1.1.37-kn42c81a.mjs +3 -0
  161. package/dist/chunks/cli-1.1.37-kwaccfak.mjs +2 -0
  162. package/dist/chunks/cli-1.1.37-m1fep5be.mjs +2 -0
  163. package/dist/chunks/cli-1.1.37-m456xrwv.mjs +2 -0
  164. package/dist/chunks/cli-1.1.37-m5yt8y0j.mjs +2 -0
  165. package/dist/chunks/cli-1.1.37-m6gntr6v.mjs +2 -0
  166. package/dist/chunks/cli-1.1.37-ma9krcyk.mjs +2 -0
  167. package/dist/chunks/cli-1.1.37-mexv9k9t.mjs +2 -0
  168. package/dist/chunks/cli-1.1.37-mf2q6gmp.mjs +2 -0
  169. package/dist/chunks/cli-1.1.37-mqc9bwxe.mjs +2 -0
  170. package/dist/chunks/cli-1.1.37-mrvnfwyz.mjs +2 -0
  171. package/dist/chunks/cli-1.1.37-mw2jz1zw.mjs +7 -0
  172. package/dist/chunks/cli-1.1.37-n183zk9b.mjs +24 -0
  173. package/dist/chunks/cli-1.1.37-n5rtec8d.mjs +2 -0
  174. package/dist/chunks/cli-1.1.37-n96tca8q.mjs +2 -0
  175. package/dist/chunks/cli-1.1.37-ncfrm58b.mjs +2 -0
  176. package/dist/chunks/cli-1.1.37-nhcj6483.mjs +2 -0
  177. package/dist/chunks/cli-1.1.37-nmaxyg7j.mjs +2 -0
  178. package/dist/chunks/cli-1.1.37-nzbxb3mg.mjs +2 -0
  179. package/dist/chunks/cli-1.1.37-p6s3mz30.mjs +9 -0
  180. package/dist/chunks/cli-1.1.37-pek0pwba.mjs +2 -0
  181. package/dist/chunks/cli-1.1.37-ptf1j7na.mjs +2 -0
  182. package/dist/chunks/cli-1.1.37-pvh445g5.mjs +3 -0
  183. package/dist/chunks/cli-1.1.37-pw36zafa.mjs +2 -0
  184. package/dist/chunks/cli-1.1.37-q1053cc2.mjs +17 -0
  185. package/dist/chunks/cli-1.1.37-qcn1j79h.mjs +2 -0
  186. package/dist/chunks/cli-1.1.37-qq29akkh.mjs +2 -0
  187. package/dist/chunks/cli-1.1.37-qx20qhv7.mjs +2 -0
  188. package/dist/chunks/cli-1.1.37-rdmqbzqh.mjs +2 -0
  189. package/dist/chunks/cli-1.1.37-rwsh9ddm.mjs +3 -0
  190. package/dist/chunks/cli-1.1.37-ryrmx9mz.mjs +10 -0
  191. package/dist/chunks/cli-1.1.37-s09fpmwg.mjs +2 -0
  192. package/dist/chunks/cli-1.1.37-s66bx6wx.mjs +24 -0
  193. package/dist/chunks/cli-1.1.37-sf9mv58v.mjs +10 -0
  194. package/dist/chunks/cli-1.1.37-sm7wj6sf.mjs +4 -0
  195. package/dist/chunks/cli-1.1.37-sqyyjrzq.mjs +5 -0
  196. package/dist/chunks/cli-1.1.37-ss1k0v1c.mjs +2 -0
  197. package/dist/chunks/cli-1.1.37-ssstmvw3.mjs +3 -0
  198. package/dist/chunks/cli-1.1.37-sxzqtyda.mjs +2 -0
  199. package/dist/chunks/cli-1.1.37-syfanvjj.mjs +2 -0
  200. package/dist/chunks/cli-1.1.37-sygz2s62.mjs +2 -0
  201. package/dist/chunks/cli-1.1.37-tb7ktts9.mjs +2 -0
  202. package/dist/chunks/cli-1.1.37-tkdarzaz.mjs +2 -0
  203. package/dist/chunks/cli-1.1.37-tntw41wr.mjs +2 -0
  204. package/dist/chunks/cli-1.1.37-tqgcfdy1.mjs +2 -0
  205. package/dist/chunks/cli-1.1.37-v43zxjn1.mjs +2 -0
  206. package/dist/chunks/cli-1.1.37-v7ra9bdg.mjs +10 -0
  207. package/dist/chunks/cli-1.1.37-v901k2xy.mjs +2 -0
  208. package/dist/chunks/cli-1.1.37-v90enr9t.mjs +2 -0
  209. package/dist/chunks/cli-1.1.37-vfcg5s15.mjs +2 -0
  210. package/dist/chunks/cli-1.1.37-vg7rr3sv.mjs +2 -0
  211. package/dist/chunks/cli-1.1.37-vhmf8afh.mjs +2 -0
  212. package/dist/chunks/cli-1.1.37-vhmsvame.mjs +2 -0
  213. package/dist/chunks/cli-1.1.37-vrdgh1e0.mjs +2 -0
  214. package/dist/chunks/cli-1.1.37-w0tvj01c.mjs +2 -0
  215. package/dist/chunks/cli-1.1.37-wm28b2wb.mjs +2 -0
  216. package/dist/chunks/cli-1.1.37-wv9phckk.mjs +9 -0
  217. package/dist/chunks/cli-1.1.37-x03y4qkg.mjs +2 -0
  218. package/dist/chunks/cli-1.1.37-x0nz472y.mjs +2 -0
  219. package/dist/chunks/cli-1.1.37-x27pf2df.mjs +2 -0
  220. package/dist/chunks/cli-1.1.37-x363x6yv.mjs +12 -0
  221. package/dist/chunks/cli-1.1.37-xqs4w5xj.mjs +2 -0
  222. package/dist/chunks/cli-1.1.37-xxa2yvvm.mjs +2 -0
  223. package/dist/chunks/cli-1.1.37-y101rdsg.mjs +2 -0
  224. package/dist/chunks/cli-1.1.37-y2c4zsfh.mjs +6 -0
  225. package/dist/chunks/cli-1.1.37-y3knvtaz.mjs +2 -0
  226. package/dist/chunks/cli-1.1.37-ye5hkqff.mjs +2 -0
  227. package/dist/chunks/cli-1.1.37-yx7j10g7.mjs +2 -0
  228. package/dist/chunks/cli-1.1.37-z0tedaby.mjs +2 -0
  229. package/dist/chunks/cli-1.1.37-z414tkgs.mjs +2 -0
  230. package/dist/chunks/cli-1.1.37-z4wav0zf.mjs +251 -0
  231. package/dist/chunks/cli-1.1.37-z6pkdynf.mjs +2 -0
  232. package/dist/chunks/cli-1.1.37-z9fbkmx6.mjs +2 -0
  233. package/dist/chunks/cli-1.1.37-zb319x4t.mjs +21 -0
  234. package/dist/chunks/cli-1.1.37-zdpyj00a.mjs +2 -0
  235. package/dist/chunks/cli-1.1.37-zmvkkbkz.mjs +2 -0
  236. package/dist/chunks/cli-1.1.37-zp02yw3a.mjs +7 -0
  237. package/dist/chunks/cli-1.1.37-zv5qmddr.mjs +2 -0
  238. package/dist/chunks/cli-1.1.37-zyh3q51q.mjs +2 -0
  239. package/dist/chunks/client-1.1.37-xgmkbazy.mjs +1 -0
  240. package/dist/chunks/color-1.1.37-y730edtg.mjs +1 -0
  241. package/dist/chunks/compact-1.1.37-w4h4spv3.mjs +2 -0
  242. package/dist/chunks/config-1.1.37-kw2by168.mjs +1 -0
  243. package/dist/chunks/config-1.1.37-nxkma2y7.mjs +1 -0
  244. package/dist/chunks/constants-1.1.37-ctp81rsa.mjs +1 -0
  245. package/dist/chunks/context-1.1.37-ayxgyhvf.mjs +1 -0
  246. package/dist/chunks/context-noninteractive-1.1.37-9fnpakkn.mjs +1 -0
  247. package/dist/chunks/conversation-1.1.37-c5qptech.mjs +1 -0
  248. package/dist/chunks/copilotHeaders-1.1.37-2jh9xkzj.mjs +1 -0
  249. package/dist/chunks/copy-1.1.37-3x6yh3re.mjs +9 -0
  250. package/dist/chunks/cost-1.1.37-k4egf2cb.mjs +1 -0
  251. package/dist/chunks/createSession-1.1.37-ps0330f5.mjs +1 -0
  252. package/dist/chunks/debug-1.1.37-rg6428fc.mjs +1 -0
  253. package/dist/chunks/defaultActionDeps-1.1.37-0p69kpbf.mjs +1458 -0
  254. package/dist/chunks/desktop-1.1.37-vw4rzhtp.mjs +2 -0
  255. package/dist/chunks/detectRepository-1.1.37-de5st3z1.mjs +1 -0
  256. package/dist/chunks/detection-1.1.37-2ah57ykf.mjs +1 -0
  257. package/dist/chunks/diff-1.1.37-h35ry5bf.mjs +1 -0
  258. package/dist/chunks/doctor-1.1.37-4sdv75rj.mjs +1 -0
  259. package/dist/chunks/doctorDiagnostic-1.1.37-aj2q1yxr.mjs +1 -0
  260. package/dist/chunks/earlyInput-1.1.37-f1bz41ba.mjs +1 -0
  261. package/dist/chunks/effort-1.1.37-qme7s71h.mjs +13 -0
  262. package/dist/chunks/engine-1.1.37-vhnerrj8.mjs +1 -0
  263. package/dist/chunks/envUtils-1.1.37-jmnztajb.mjs +1 -0
  264. package/dist/chunks/errors-1.1.37-gx18q68s.mjs +1 -0
  265. package/dist/chunks/exampleCommands-1.1.37-jeewe5zp.mjs +1 -0
  266. package/dist/chunks/execFileNoThrow-1.1.37-9znv87jk.mjs +1 -0
  267. package/dist/chunks/exit-1.1.37-g21nsxb0.mjs +1 -0
  268. package/dist/chunks/explorer-1.1.37-x26rvwxm.mjs +1 -0
  269. package/dist/chunks/export-1.1.37-f9367qzp.mjs +2 -0
  270. package/dist/chunks/fast-1.1.37-66kcejyq.mjs +1 -0
  271. package/dist/chunks/feedback-1.1.37-cmzfc89p.mjs +16 -0
  272. package/dist/chunks/git-1.1.37-2v8rmfsp.mjs +1 -0
  273. package/dist/chunks/githubModelsCredentials-1.1.37-qa9ahy75.mjs +1 -0
  274. package/dist/chunks/goal-1.1.37-qxqx92gp.mjs +4 -0
  275. package/dist/chunks/headless-1.1.37-dkg8aqth.mjs +2 -0
  276. package/dist/chunks/heapdump-1.1.37-4hzv26jg.mjs +6 -0
  277. package/dist/chunks/help-1.1.37-94a27s9t.mjs +1 -0
  278. package/dist/chunks/hooks-1.1.37-ekx4v46c.mjs +79 -0
  279. package/dist/chunks/hooks-1.1.37-yeewd50h.mjs +1 -0
  280. package/dist/chunks/ide-1.1.37-knedgvva.mjs +3 -0
  281. package/dist/chunks/image-processor-napi-1.1.37-cdpery4t.mjs +1 -0
  282. package/dist/chunks/import-1.1.37-e6j4yen6.mjs +261 -0
  283. package/dist/chunks/inboundAttachments-1.1.37-jjm28zc3.mjs +1 -0
  284. package/dist/chunks/index-1.1.37-21b053j0.mjs +1 -0
  285. package/dist/chunks/index-1.1.37-3v1qr5g5.mjs +9 -0
  286. package/dist/chunks/index-1.1.37-5jd6yv91.mjs +1 -0
  287. package/dist/chunks/index-1.1.37-5m0x7mgr.mjs +2 -0
  288. package/dist/chunks/index-1.1.37-7p4s9e93.mjs +5 -0
  289. package/dist/chunks/index-1.1.37-8d8wz2jd.mjs +1 -0
  290. package/dist/chunks/index-1.1.37-8nj0y31t.mjs +1 -0
  291. package/dist/chunks/index-1.1.37-9mdrpppp.mjs +1 -0
  292. package/dist/chunks/index-1.1.37-fsrw22yr.mjs +1 -0
  293. package/dist/chunks/index-1.1.37-gbkrjwx2.mjs +1 -0
  294. package/dist/chunks/index-1.1.37-j22mymj3.mjs +1 -0
  295. package/dist/chunks/index-1.1.37-j7mg2v2z.mjs +1 -0
  296. package/dist/chunks/index-1.1.37-jt0qvhqx.mjs +9 -0
  297. package/dist/chunks/index-1.1.37-kqbx8bd4.mjs +1 -0
  298. package/dist/chunks/index-1.1.37-md3nqn7b.mjs +1 -0
  299. package/dist/chunks/index-1.1.37-nvrt1jkm.mjs +1 -0
  300. package/dist/chunks/index-1.1.37-qs532q75.mjs +2 -0
  301. package/dist/chunks/index-1.1.37-vrf2sks4.mjs +1 -0
  302. package/dist/chunks/index-1.1.37-w2vtqz1f.mjs +30 -0
  303. package/dist/chunks/index-1.1.37-wtf428dj.mjs +1 -0
  304. package/dist/chunks/index-1.1.37-x3qnjdnj.mjs +23 -0
  305. package/dist/chunks/index-1.1.37-xvds1tk7.mjs +1 -0
  306. package/dist/chunks/index-1.1.37-ycghwm8a.mjs +1 -0
  307. package/dist/chunks/init-1.1.37-rej95xjh.mjs +2 -0
  308. package/dist/chunks/initReplBridge-1.1.37-fg8xhcbg.mjs +1 -0
  309. package/dist/chunks/ink-1.1.37-9hasxe0p.mjs +1 -0
  310. package/dist/chunks/insights-1.1.37-t8pdcny6.mjs +870 -0
  311. package/dist/chunks/install-1.1.37-3qw7jywz.mjs +1 -0
  312. package/dist/chunks/install-github-app-1.1.37-xxm8pfc7.mjs +149 -0
  313. package/dist/chunks/install-slack-app-1.1.37-k2gvh481.mjs +1 -0
  314. package/dist/chunks/interactiveHelpers-1.1.37-65a5va0g.mjs +1 -0
  315. package/dist/chunks/latestVersionCache-1.1.37-3a47ekt3.mjs +1 -0
  316. package/dist/chunks/loadAgentsDir-1.1.37-tacjzkxh.mjs +1 -0
  317. package/dist/chunks/loadPluginHooks-1.1.37-xp0k0sev.mjs +1 -0
  318. package/dist/chunks/log-1.1.37-zxjr2p0h.mjs +1 -0
  319. package/dist/chunks/main-1.1.37-z5knsc2c.mjs +1 -0
  320. package/dist/chunks/managedEnv-1.1.37-v6d9x7gc.mjs +1 -0
  321. package/dist/chunks/mcp-1.1.37-2f8vksgy.mjs +1 -0
  322. package/dist/chunks/mcp-1.1.37-t42e1h6v.mjs +17 -0
  323. package/dist/chunks/mcp-1.1.37-z5yx7ce8.mjs +4 -0
  324. package/dist/chunks/mcpb-1.1.37-nxn1ew24.mjs +1 -0
  325. package/dist/chunks/memory-1.1.37-e17frzj2.mjs +128 -0
  326. package/dist/chunks/model-1.1.37-415ebhh8.mjs +2 -0
  327. package/dist/chunks/model-1.1.37-51zfsc21.mjs +1 -0
  328. package/dist/chunks/new-1.1.37-qmpxmvhh.mjs +1 -0
  329. package/dist/chunks/node-1.1.37-60r1zc7a.mjs +1 -0
  330. package/dist/chunks/node-1.1.37-bzzjhz9b.mjs +15 -0
  331. package/dist/chunks/oauth-1.1.37-an1mr5z0.mjs +1 -0
  332. package/dist/chunks/openaiShim-1.1.37-d7tbje1m.mjs +14 -0
  333. package/dist/chunks/output-style-1.1.37-ky7bh1p8.mjs +1 -0
  334. package/dist/chunks/package-F6O7J2XI-1.1.37-cpdvge3d.mjs +1 -0
  335. package/dist/chunks/permissions-1.1.37-jfdwfjhx.mjs +1 -0
  336. package/dist/chunks/permissions-1.1.37-xa1rr619.mjs +3 -0
  337. package/dist/chunks/plan-1.1.37-mkad4kke.mjs +1 -0
  338. package/dist/chunks/plist-1.1.37-jp82073r.mjs +1 -0
  339. package/dist/chunks/plugin-1.1.37-4y7stngn.mjs +29 -0
  340. package/dist/chunks/pluginStartupCheck-1.1.37-mb876t1m.mjs +1 -0
  341. package/dist/chunks/plugins-1.1.37-vgwj76jr.mjs +9 -0
  342. package/dist/chunks/preActionHook-1.1.37-y5x9wxpb.mjs +2 -0
  343. package/dist/chunks/print-1.1.37-39471kxm.mjs +57 -0
  344. package/dist/chunks/process-1.1.37-0sxw7yj7.mjs +1 -0
  345. package/dist/chunks/processBashCommand-1.1.37-3a9hjw0c.mjs +1 -0
  346. package/dist/chunks/processSlashCommand-1.1.37-qkdzw4bn.mjs +9 -0
  347. package/dist/chunks/prompt-1.1.37-7ty4xbzv.mjs +1 -0
  348. package/dist/chunks/prompt-1.1.37-t1pkc4hm.mjs +1 -0
  349. package/dist/chunks/prompts-1.1.37-vc8tkqtx.mjs +1 -0
  350. package/dist/chunks/provider-1.1.37-d5ky3fex.mjs +2 -0
  351. package/dist/chunks/providerProfiles-1.1.37-qds9eqzt.mjs +1 -0
  352. package/dist/chunks/providerValidation-1.1.37-njz9qc5m.mjs +6 -0
  353. package/dist/chunks/registerSubcommands-1.1.37-mh25jf7y.mjs +26 -0
  354. package/dist/chunks/registry-1.1.37-j99mgf8f.mjs +1 -0
  355. package/dist/chunks/release-notes-1.1.37-9gkg8tfr.mjs +5 -0
  356. package/dist/chunks/reload-plugins-1.1.37-4sptja72.mjs +2 -0
  357. package/dist/chunks/remote-env-1.1.37-t2zt0dx6.mjs +1 -0
  358. package/dist/chunks/rename-1.1.37-r3rf1zcp.mjs +1 -0
  359. package/dist/chunks/replLauncher-1.1.37-q72zpdec.mjs +1 -0
  360. package/dist/chunks/resume-1.1.37-7y7v8kjq.mjs +2 -0
  361. package/dist/chunks/rewind-1.1.37-g7g9fq2x.mjs +1 -0
  362. package/dist/chunks/rootOptions-1.1.37-gab9zhq2.mjs +1 -0
  363. package/dist/chunks/runWorkflowHeadless-1.1.37-hfkacx24.mjs +10 -0
  364. package/dist/chunks/sandbox-adapter-1.1.37-0z182pcd.mjs +1 -0
  365. package/dist/chunks/sandbox-toggle-1.1.37-qpef07xe.mjs +1 -0
  366. package/dist/chunks/session-1.1.37-23e3vg40.mjs +2 -0
  367. package/dist/chunks/sessionStorage-1.1.37-80sj7d1y.mjs +1 -0
  368. package/dist/chunks/settings-1.1.37-9ydtb00s.mjs +1 -0
  369. package/dist/chunks/setup-1.1.37-zw16kqhk.mjs +12 -0
  370. package/dist/chunks/sinks-1.1.37-zfyvj9zb.mjs +1 -0
  371. package/dist/chunks/skills-1.1.37-k5m03dxr.mjs +1 -0
  372. package/dist/chunks/startupProfiler-1.1.37-c215kgmn.mjs +1 -0
  373. package/dist/chunks/startupUpdateCheck-1.1.37-gkvkp8j3.mjs +1 -0
  374. package/dist/chunks/state-1.1.37-n5ptmgvs.mjs +1 -0
  375. package/dist/chunks/stats-1.1.37-aa4vr5s9.mjs +1 -0
  376. package/dist/chunks/status-1.1.37-ay3wwhz4.mjs +1 -0
  377. package/dist/chunks/stickers-1.1.37-9s6a0we7.mjs +1 -0
  378. package/dist/chunks/subprocessEnv-1.1.37-j60ejzj9.mjs +1 -0
  379. package/dist/chunks/tasks-1.1.37-0kkyatcs.mjs +1 -0
  380. package/dist/chunks/teamHelpers-1.1.37-bh946f2s.mjs +1 -0
  381. package/dist/chunks/teammateModeSnapshot-1.1.37-hvr3p8hm.mjs +1 -0
  382. package/dist/chunks/teleport-1.1.37-r8pztaf5.mjs +1 -0
  383. package/dist/chunks/terminalSetup-1.1.37-db8a6fsx.mjs +1 -0
  384. package/dist/chunks/theme-1.1.37-syjd1g1y.mjs +1 -0
  385. package/dist/chunks/toolPool-1.1.37-99ckwfft.mjs +1 -0
  386. package/dist/chunks/toolSearch-1.1.37-w702g2e2.mjs +1 -0
  387. package/dist/chunks/tools-1.1.37-q0g8gdy1.mjs +1 -0
  388. package/dist/chunks/turndown.cjs-1.1.37-p3av7xdw.mjs +69 -0
  389. package/dist/chunks/types-1.1.37-0zw1rq84.mjs +1 -0
  390. package/dist/chunks/update-1.1.37-njeg6bcd.mjs +72 -0
  391. package/dist/chunks/upload-1.1.37-gzm0qpn7.mjs +7 -0
  392. package/dist/chunks/upstreamproxy-1.1.37-v8bpt97q.mjs +14 -0
  393. package/dist/chunks/usage-1.1.37-b2a8dppj.mjs +1 -0
  394. package/dist/chunks/util-1.1.37-psbfj1x5.mjs +1 -0
  395. package/dist/chunks/utils-1.1.37-efqgjtyn.mjs +1 -0
  396. package/dist/chunks/vim-1.1.37-3vwhey1j.mjs +1 -0
  397. package/dist/chunks/watchLoop-1.1.37-hmgj516c.mjs +13 -0
  398. package/dist/chunks/wiki-1.1.37-y24wnewk.mjs +132 -0
  399. package/dist/chunks/workflows-1.1.37-eywdbk9a.mjs +1 -0
  400. package/dist/chunks/worktree-1.1.37-k9y7x7fq.mjs +1 -0
  401. package/dist/chunks/worktreeModeEnabled-1.1.37-bq8bmkt7.mjs +1 -0
  402. package/dist/chunks/wrapper-1.1.37-mam70w68.mjs +7 -0
  403. package/dist/cli.mjs +2 -2
  404. package/package.json +9 -9
  405. package/dist/chunks/App-1.1.35-r3nj6jfs.mjs +0 -1
  406. package/dist/chunks/ApproveApiKey-1.1.35-8nvhxyw9.mjs +0 -1
  407. package/dist/chunks/AutoModeOptInDialog-1.1.35-1ywwnh39.mjs +0 -1
  408. package/dist/chunks/BypassPermissionsModeDialog-1.1.35-bvk75rww.mjs +0 -1
  409. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.35-1ct3fw8c.mjs +0 -1
  410. package/dist/chunks/ConsoleOAuthFlow-1.1.35-nt22bzb6.mjs +0 -1
  411. package/dist/chunks/DiffDialog-1.1.35-98xrgmtc.mjs +0 -6
  412. package/dist/chunks/Doctor-1.1.35-k34y3jy9.mjs +0 -1
  413. package/dist/chunks/ExplorerDialog-1.1.35-nan1wyke.mjs +0 -6
  414. package/dist/chunks/ITermBackend-1.1.35-kt3ng0j6.mjs +0 -1
  415. package/dist/chunks/InvalidConfigDialog-1.1.35-k7wnc3v8.mjs +0 -1
  416. package/dist/chunks/InvalidSettingsDialog-1.1.35-3dp4jb6e.mjs +0 -1
  417. package/dist/chunks/MigrationDialog-1.1.35-6pa67bzn.mjs +0 -1
  418. package/dist/chunks/Onboarding-1.1.35-4sje6bjv.mjs +0 -1
  419. package/dist/chunks/ProviderManager-1.1.35-99y8t1j9.mjs +0 -1
  420. package/dist/chunks/REPL-1.1.35-0vqh1ns0.mjs +0 -1
  421. package/dist/chunks/ResumeConversation-1.1.35-104fszyr.mjs +0 -1
  422. package/dist/chunks/TeleportProgress-1.1.35-xcz2dypc.mjs +0 -1
  423. package/dist/chunks/TeleportRepoMismatchDialog-1.1.35-nfckw5cx.mjs +0 -1
  424. package/dist/chunks/TeleportResumeWrapper-1.1.35-6528ybrk.mjs +0 -1
  425. package/dist/chunks/TmuxBackend-1.1.35-rqncjk99.mjs +0 -9
  426. package/dist/chunks/ToolSearchTool-1.1.35-0t2d7g7n.mjs +0 -1
  427. package/dist/chunks/TrustDialog-1.1.35-j9d3asbg.mjs +0 -1
  428. package/dist/chunks/activeProvider-1.1.35-fkjy6sz1.mjs +0 -1
  429. package/dist/chunks/add-dir-1.1.35-4gh89hh4.mjs +0 -1
  430. package/dist/chunks/agentTypes-1.1.35-nx5q66t5.mjs +0 -1
  431. package/dist/chunks/agents-1.1.35-0kyfdt7w.mjs +0 -3
  432. package/dist/chunks/agents-1.1.35-1vzstv4y.mjs +0 -110
  433. package/dist/chunks/api-1.1.35-ab0j2x7t.mjs +0 -1
  434. package/dist/chunks/asciicast-1.1.35-xgjp2wrs.mjs +0 -1
  435. package/dist/chunks/auth-1.1.35-2fpa9v9f.mjs +0 -1
  436. package/dist/chunks/auth-1.1.35-deksnwe8.mjs +0 -1
  437. package/dist/chunks/autoMode-1.1.35-8d2qr79q.mjs +0 -52
  438. package/dist/chunks/autoModeSetup-1.1.35-hg5dxv1t.mjs +0 -44
  439. package/dist/chunks/autoUpdater-1.1.35-5pzsrenf.mjs +0 -1
  440. package/dist/chunks/backgroundHousekeeping-1.1.35-2kythx4m.mjs +0 -1
  441. package/dist/chunks/branch-1.1.35-tmksh596.mjs +0 -4
  442. package/dist/chunks/bridge-1.1.35-0za41yjp.mjs +0 -2
  443. package/dist/chunks/bridgeConfig-1.1.35-qtvayvc3.mjs +0 -1
  444. package/dist/chunks/bridgeEnabled-1.1.35-3mhemdrx.mjs +0 -1
  445. package/dist/chunks/bridgeMain-1.1.35-7awverkv.mjs +0 -88
  446. package/dist/chunks/bridgePointer-1.1.35-5gpfg6h4.mjs +0 -1
  447. package/dist/chunks/btw-1.1.35-6hy8wabr.mjs +0 -1
  448. package/dist/chunks/buddy-1.1.35-8z3tb1ne.mjs +0 -3
  449. package/dist/chunks/cache-probe-1.1.35-adn6dpak.mjs +0 -21
  450. package/dist/chunks/cacheStats-1.1.35-z3268gay.mjs +0 -4
  451. package/dist/chunks/caches-1.1.35-1qqfgvsm.mjs +0 -1
  452. package/dist/chunks/cd-1.1.35-vqy7n0x0.mjs +0 -3
  453. package/dist/chunks/claudeDesktop-1.1.35-enw3hpss.mjs +0 -1
  454. package/dist/chunks/claudemd-1.1.35-wsav3shz.mjs +0 -1
  455. package/dist/chunks/clear-1.1.35-21ry6n0m.mjs +0 -1
  456. package/dist/chunks/clearTerminal-1.1.35-sg808cbp.mjs +0 -1
  457. package/dist/chunks/cli-1.1.35-02qx9a8j.mjs +0 -2
  458. package/dist/chunks/cli-1.1.35-0axe3ev5.mjs +0 -2
  459. package/dist/chunks/cli-1.1.35-0feday40.mjs +0 -20
  460. package/dist/chunks/cli-1.1.35-0p69hr1j.mjs +0 -2
  461. package/dist/chunks/cli-1.1.35-0qrw70p1.mjs +0 -2
  462. package/dist/chunks/cli-1.1.35-0tc3wmtp.mjs +0 -5
  463. package/dist/chunks/cli-1.1.35-0vpxr2rk.mjs +0 -2
  464. package/dist/chunks/cli-1.1.35-0zkzg6at.mjs +0 -2
  465. package/dist/chunks/cli-1.1.35-1618y169.mjs +0 -2
  466. package/dist/chunks/cli-1.1.35-18wszrez.mjs +0 -15
  467. package/dist/chunks/cli-1.1.35-1bzyzrvt.mjs +0 -2
  468. package/dist/chunks/cli-1.1.35-1ceb2tjb.mjs +0 -2
  469. package/dist/chunks/cli-1.1.35-1gae8a5m.mjs +0 -2
  470. package/dist/chunks/cli-1.1.35-1x2wb524.mjs +0 -2
  471. package/dist/chunks/cli-1.1.35-21w0bna1.mjs +0 -2
  472. package/dist/chunks/cli-1.1.35-22q1jqqq.mjs +0 -2
  473. package/dist/chunks/cli-1.1.35-2gxxpyvc.mjs +0 -2
  474. package/dist/chunks/cli-1.1.35-2sm1x5n8.mjs +0 -2
  475. package/dist/chunks/cli-1.1.35-2x0m7ewe.mjs +0 -9
  476. package/dist/chunks/cli-1.1.35-34h7nfzz.mjs +0 -11
  477. package/dist/chunks/cli-1.1.35-389ej7r1.mjs +0 -2
  478. package/dist/chunks/cli-1.1.35-38s8y5cf.mjs +0 -2
  479. package/dist/chunks/cli-1.1.35-3keqk8xr.mjs +0 -2
  480. package/dist/chunks/cli-1.1.35-3zrjqd93.mjs +0 -2
  481. package/dist/chunks/cli-1.1.35-41srzc8c.mjs +0 -2
  482. package/dist/chunks/cli-1.1.35-46bm9f8q.mjs +0 -2
  483. package/dist/chunks/cli-1.1.35-4d0cm3mc.mjs +0 -2
  484. package/dist/chunks/cli-1.1.35-4d9merys.mjs +0 -2
  485. package/dist/chunks/cli-1.1.35-4g77zek0.mjs +0 -24
  486. package/dist/chunks/cli-1.1.35-4kft2wxe.mjs +0 -2
  487. package/dist/chunks/cli-1.1.35-4njf7z42.mjs +0 -2
  488. package/dist/chunks/cli-1.1.35-4typvdqe.mjs +0 -2
  489. package/dist/chunks/cli-1.1.35-589b1qht.mjs +0 -2
  490. package/dist/chunks/cli-1.1.35-5b39mwe0.mjs +0 -2
  491. package/dist/chunks/cli-1.1.35-5j12hjjm.mjs +0 -2
  492. package/dist/chunks/cli-1.1.35-5v115fee.mjs +0 -2
  493. package/dist/chunks/cli-1.1.35-61gmwbbt.mjs +0 -2
  494. package/dist/chunks/cli-1.1.35-688xsqg8.mjs +0 -2
  495. package/dist/chunks/cli-1.1.35-6c4v5dpe.mjs +0 -15
  496. package/dist/chunks/cli-1.1.35-6nhv8vhv.mjs +0 -2
  497. package/dist/chunks/cli-1.1.35-6p10e278.mjs +0 -2
  498. package/dist/chunks/cli-1.1.35-7g4yw92j.mjs +0 -2
  499. package/dist/chunks/cli-1.1.35-7hfdc6xn.mjs +0 -2
  500. package/dist/chunks/cli-1.1.35-7mxbj45y.mjs +0 -2
  501. package/dist/chunks/cli-1.1.35-7mz6cnfb.mjs +0 -6
  502. package/dist/chunks/cli-1.1.35-7nsr0a6p.mjs +0 -2
  503. package/dist/chunks/cli-1.1.35-7p1685r1.mjs +0 -2
  504. package/dist/chunks/cli-1.1.35-7tt5b2wx.mjs +0 -2
  505. package/dist/chunks/cli-1.1.35-7y74em05.mjs +0 -2
  506. package/dist/chunks/cli-1.1.35-82ak1wpt.mjs +0 -7
  507. package/dist/chunks/cli-1.1.35-854kyr9a.mjs +0 -3
  508. package/dist/chunks/cli-1.1.35-85zb0hfp.mjs +0 -2
  509. package/dist/chunks/cli-1.1.35-873xb9w7.mjs +0 -2
  510. package/dist/chunks/cli-1.1.35-8b1qqrev.mjs +0 -135
  511. package/dist/chunks/cli-1.1.35-8d9f31xx.mjs +0 -2
  512. package/dist/chunks/cli-1.1.35-8qdvqjz3.mjs +0 -2
  513. package/dist/chunks/cli-1.1.35-8ttx7y70.mjs +0 -2
  514. package/dist/chunks/cli-1.1.35-959df5vk.mjs +0 -2
  515. package/dist/chunks/cli-1.1.35-9817kkw4.mjs +0 -3
  516. package/dist/chunks/cli-1.1.35-9dkpx812.mjs +0 -2
  517. package/dist/chunks/cli-1.1.35-9tnc0a3x.mjs +0 -2
  518. package/dist/chunks/cli-1.1.35-9z4kwrpr.mjs +0 -6
  519. package/dist/chunks/cli-1.1.35-a7ygtwdr.mjs +0 -5
  520. package/dist/chunks/cli-1.1.35-a8677mcz.mjs +0 -2
  521. package/dist/chunks/cli-1.1.35-a9y8qxsj.mjs +0 -6
  522. package/dist/chunks/cli-1.1.35-an20pj6q.mjs +0 -2
  523. package/dist/chunks/cli-1.1.35-arj7fm1n.mjs +0 -2
  524. package/dist/chunks/cli-1.1.35-b0n88pf7.mjs +0 -2
  525. package/dist/chunks/cli-1.1.35-bbq4frhw.mjs +0 -2
  526. package/dist/chunks/cli-1.1.35-bhmad6rp.mjs +0 -3
  527. package/dist/chunks/cli-1.1.35-bka68014.mjs +0 -2
  528. package/dist/chunks/cli-1.1.35-bq7wadxz.mjs +0 -2
  529. package/dist/chunks/cli-1.1.35-c05841mj.mjs +0 -2
  530. package/dist/chunks/cli-1.1.35-c3vqfrj0.mjs +0 -45
  531. package/dist/chunks/cli-1.1.35-c4thx500.mjs +0 -26
  532. package/dist/chunks/cli-1.1.35-cj42e7aq.mjs +0 -24
  533. package/dist/chunks/cli-1.1.35-cjdzbmst.mjs +0 -2
  534. package/dist/chunks/cli-1.1.35-cjsf2kh3.mjs +0 -2
  535. package/dist/chunks/cli-1.1.35-cm0anghq.mjs +0 -2
  536. package/dist/chunks/cli-1.1.35-cp6wwahj.mjs +0 -4
  537. package/dist/chunks/cli-1.1.35-d6kd2zv5.mjs +0 -2
  538. package/dist/chunks/cli-1.1.35-d7n85zf2.mjs +0 -2
  539. package/dist/chunks/cli-1.1.35-da72zgbs.mjs +0 -50
  540. package/dist/chunks/cli-1.1.35-dfcj4fkz.mjs +0 -2
  541. package/dist/chunks/cli-1.1.35-dk4f6kgr.mjs +0 -2
  542. package/dist/chunks/cli-1.1.35-dnacc640.mjs +0 -252
  543. package/dist/chunks/cli-1.1.35-dw3fv0g8.mjs +0 -60
  544. package/dist/chunks/cli-1.1.35-dwaz1jv4.mjs +0 -2
  545. package/dist/chunks/cli-1.1.35-e08b8j98.mjs +0 -18
  546. package/dist/chunks/cli-1.1.35-eqcgyqke.mjs +0 -39
  547. package/dist/chunks/cli-1.1.35-ewtk80cp.mjs +0 -3
  548. package/dist/chunks/cli-1.1.35-f6sa351s.mjs +0 -5
  549. package/dist/chunks/cli-1.1.35-f8jgxvev.mjs +0 -2
  550. package/dist/chunks/cli-1.1.35-fgkpe9g9.mjs +0 -2
  551. package/dist/chunks/cli-1.1.35-fjtf9x1v.mjs +0 -2
  552. package/dist/chunks/cli-1.1.35-fr8gap0y.mjs +0 -2
  553. package/dist/chunks/cli-1.1.35-ftvtbdm6.mjs +0 -4
  554. package/dist/chunks/cli-1.1.35-fwyc7v71.mjs +0 -7
  555. package/dist/chunks/cli-1.1.35-fz50q22a.mjs +0 -2
  556. package/dist/chunks/cli-1.1.35-g2vg6fw2.mjs +0 -2
  557. package/dist/chunks/cli-1.1.35-g7086zkj.mjs +0 -2
  558. package/dist/chunks/cli-1.1.35-g74y15na.mjs +0 -2
  559. package/dist/chunks/cli-1.1.35-gcjyc9x3.mjs +0 -2
  560. package/dist/chunks/cli-1.1.35-gr966v4t.mjs +0 -2
  561. package/dist/chunks/cli-1.1.35-h06ng57d.mjs +0 -2
  562. package/dist/chunks/cli-1.1.35-h262sgvd.mjs +0 -4
  563. package/dist/chunks/cli-1.1.35-h71ph12s.mjs +0 -2
  564. package/dist/chunks/cli-1.1.35-h7qpm4z8.mjs +0 -3
  565. package/dist/chunks/cli-1.1.35-hm1wpf1w.mjs +0 -2
  566. package/dist/chunks/cli-1.1.35-htvjtg4f.mjs +0 -2
  567. package/dist/chunks/cli-1.1.35-hwphkmp4.mjs +0 -2
  568. package/dist/chunks/cli-1.1.35-hy9jtbmb.mjs +0 -5570
  569. package/dist/chunks/cli-1.1.35-hyqzaskn.mjs +0 -2
  570. package/dist/chunks/cli-1.1.35-j1ypjsz5.mjs +0 -2
  571. package/dist/chunks/cli-1.1.35-j7xxkgf1.mjs +0 -133
  572. package/dist/chunks/cli-1.1.35-jajp8grw.mjs +0 -2
  573. package/dist/chunks/cli-1.1.35-jdqn8gkp.mjs +0 -2
  574. package/dist/chunks/cli-1.1.35-jfzp91gv.mjs +0 -2
  575. package/dist/chunks/cli-1.1.35-jn52m495.mjs +0 -2
  576. package/dist/chunks/cli-1.1.35-jq1wvnwe.mjs +0 -17
  577. package/dist/chunks/cli-1.1.35-jrexyjt9.mjs +0 -2
  578. package/dist/chunks/cli-1.1.35-jvhs6ypf.mjs +0 -10
  579. package/dist/chunks/cli-1.1.35-jx42cnmn.mjs +0 -15
  580. package/dist/chunks/cli-1.1.35-k6jh38a3.mjs +0 -2
  581. package/dist/chunks/cli-1.1.35-kbrngf5h.mjs +0 -2
  582. package/dist/chunks/cli-1.1.35-kcgcs2dj.mjs +0 -2
  583. package/dist/chunks/cli-1.1.35-kdw3m4z1.mjs +0 -25
  584. package/dist/chunks/cli-1.1.35-kh8s6rf2.mjs +0 -4
  585. package/dist/chunks/cli-1.1.35-kkhrpw6q.mjs +0 -2
  586. package/dist/chunks/cli-1.1.35-kp2hgrdb.mjs +0 -24
  587. package/dist/chunks/cli-1.1.35-ktb8z2s9.mjs +0 -3
  588. package/dist/chunks/cli-1.1.35-kvw88dmk.mjs +0 -2
  589. package/dist/chunks/cli-1.1.35-kz5tydkv.mjs +0 -2
  590. package/dist/chunks/cli-1.1.35-m20xytkt.mjs +0 -2
  591. package/dist/chunks/cli-1.1.35-m6efjk78.mjs +0 -2
  592. package/dist/chunks/cli-1.1.35-ma6czbht.mjs +0 -2
  593. package/dist/chunks/cli-1.1.35-ms3xdp4c.mjs +0 -42
  594. package/dist/chunks/cli-1.1.35-ms5g0jwj.mjs +0 -2
  595. package/dist/chunks/cli-1.1.35-nahyfraf.mjs +0 -2
  596. package/dist/chunks/cli-1.1.35-ne21zedp.mjs +0 -2
  597. package/dist/chunks/cli-1.1.35-ngg53c9c.mjs +0 -2
  598. package/dist/chunks/cli-1.1.35-pa3rjff6.mjs +0 -2
  599. package/dist/chunks/cli-1.1.35-pgcrgrc3.mjs +0 -2
  600. package/dist/chunks/cli-1.1.35-pms9wnd8.mjs +0 -2
  601. package/dist/chunks/cli-1.1.35-pr69kkhz.mjs +0 -2
  602. package/dist/chunks/cli-1.1.35-prf6sjs7.mjs +0 -2
  603. package/dist/chunks/cli-1.1.35-ps66nanc.mjs +0 -2
  604. package/dist/chunks/cli-1.1.35-pycaqt81.mjs +0 -2
  605. package/dist/chunks/cli-1.1.35-q1axe4bk.mjs +0 -2
  606. package/dist/chunks/cli-1.1.35-qb0eb8th.mjs +0 -2
  607. package/dist/chunks/cli-1.1.35-qbahm5cg.mjs +0 -2
  608. package/dist/chunks/cli-1.1.35-qgjs5ex0.mjs +0 -7
  609. package/dist/chunks/cli-1.1.35-qnfq8bw4.mjs +0 -4
  610. package/dist/chunks/cli-1.1.35-qvdpj1qb.mjs +0 -2
  611. package/dist/chunks/cli-1.1.35-qxj39xzd.mjs +0 -8
  612. package/dist/chunks/cli-1.1.35-qygaywxg.mjs +0 -34
  613. package/dist/chunks/cli-1.1.35-r4rm2297.mjs +0 -4
  614. package/dist/chunks/cli-1.1.35-r80cjbt8.mjs +0 -2
  615. package/dist/chunks/cli-1.1.35-rmfsk9nw.mjs +0 -2
  616. package/dist/chunks/cli-1.1.35-s05wj44h.mjs +0 -3
  617. package/dist/chunks/cli-1.1.35-s066wwsj.mjs +0 -3
  618. package/dist/chunks/cli-1.1.35-s367nd6g.mjs +0 -2
  619. package/dist/chunks/cli-1.1.35-s3d0nchc.mjs +0 -2
  620. package/dist/chunks/cli-1.1.35-s6n3pb03.mjs +0 -2
  621. package/dist/chunks/cli-1.1.35-s85hd24a.mjs +0 -16
  622. package/dist/chunks/cli-1.1.35-sg0tga4d.mjs +0 -2
  623. package/dist/chunks/cli-1.1.35-swxcv3xf.mjs +0 -6
  624. package/dist/chunks/cli-1.1.35-szkn08rr.mjs +0 -2
  625. package/dist/chunks/cli-1.1.35-t2vx6b45.mjs +0 -17
  626. package/dist/chunks/cli-1.1.35-t5kexs8c.mjs +0 -6
  627. package/dist/chunks/cli-1.1.35-t8c5b3qj.mjs +0 -4
  628. package/dist/chunks/cli-1.1.35-ta15z2yx.mjs +0 -10
  629. package/dist/chunks/cli-1.1.35-tsrq3cxy.mjs +0 -2
  630. package/dist/chunks/cli-1.1.35-tsx8c30n.mjs +0 -2
  631. package/dist/chunks/cli-1.1.35-ve889dy8.mjs +0 -3
  632. package/dist/chunks/cli-1.1.35-w1mzdb9s.mjs +0 -2
  633. package/dist/chunks/cli-1.1.35-w6kgq9n5.mjs +0 -2
  634. package/dist/chunks/cli-1.1.35-w73x0912.mjs +0 -2
  635. package/dist/chunks/cli-1.1.35-w9wzew2x.mjs +0 -4
  636. package/dist/chunks/cli-1.1.35-wmcp8vyj.mjs +0 -2
  637. package/dist/chunks/cli-1.1.35-wpa5rfnt.mjs +0 -12
  638. package/dist/chunks/cli-1.1.35-wtjyzsga.mjs +0 -2
  639. package/dist/chunks/cli-1.1.35-ww28b5vj.mjs +0 -2
  640. package/dist/chunks/cli-1.1.35-x5ft52g3.mjs +0 -2
  641. package/dist/chunks/cli-1.1.35-xbhjhs1c.mjs +0 -3
  642. package/dist/chunks/cli-1.1.35-xdzsf38z.mjs +0 -2
  643. package/dist/chunks/cli-1.1.35-xs5mj8ee.mjs +0 -21
  644. package/dist/chunks/cli-1.1.35-y6bdqv7z.mjs +0 -2
  645. package/dist/chunks/cli-1.1.35-y6xhcehv.mjs +0 -25
  646. package/dist/chunks/cli-1.1.35-yns1ngnz.mjs +0 -2
  647. package/dist/chunks/cli-1.1.35-yta9zrj6.mjs +0 -2
  648. package/dist/chunks/cli-1.1.35-zbz78cha.mjs +0 -9
  649. package/dist/chunks/cli-1.1.35-zf7zq3kb.mjs +0 -63
  650. package/dist/chunks/client-1.1.35-2j9sd0sg.mjs +0 -1
  651. package/dist/chunks/color-1.1.35-nf9dqw3m.mjs +0 -1
  652. package/dist/chunks/compact-1.1.35-h8mqxxs0.mjs +0 -2
  653. package/dist/chunks/config-1.1.35-7t0vfbst.mjs +0 -1
  654. package/dist/chunks/config-1.1.35-cfhvn2fq.mjs +0 -1
  655. package/dist/chunks/constants-1.1.35-kst22e3x.mjs +0 -1
  656. package/dist/chunks/context-1.1.35-2nc26t9y.mjs +0 -1
  657. package/dist/chunks/context-noninteractive-1.1.35-0ym77q3t.mjs +0 -1
  658. package/dist/chunks/conversation-1.1.35-0q4g6qt8.mjs +0 -1
  659. package/dist/chunks/copilotHeaders-1.1.35-7a5mc98p.mjs +0 -1
  660. package/dist/chunks/copy-1.1.35-n37rvhzj.mjs +0 -9
  661. package/dist/chunks/cost-1.1.35-hjmwjk6s.mjs +0 -1
  662. package/dist/chunks/createSession-1.1.35-v7c15fc8.mjs +0 -1
  663. package/dist/chunks/debug-1.1.35-2hf8mhst.mjs +0 -1
  664. package/dist/chunks/defaultActionDeps-1.1.35-15jcbncs.mjs +0 -1480
  665. package/dist/chunks/desktop-1.1.35-6w6gjpff.mjs +0 -2
  666. package/dist/chunks/detectRepository-1.1.35-eztj0q3f.mjs +0 -1
  667. package/dist/chunks/detection-1.1.35-rfkb2dxe.mjs +0 -1
  668. package/dist/chunks/diff-1.1.35-xb27tkcx.mjs +0 -1
  669. package/dist/chunks/doctor-1.1.35-ddg564v7.mjs +0 -1
  670. package/dist/chunks/doctorDiagnostic-1.1.35-1gfkz0p1.mjs +0 -1
  671. package/dist/chunks/earlyInput-1.1.35-5wsb4bkz.mjs +0 -1
  672. package/dist/chunks/effort-1.1.35-r53ttmc3.mjs +0 -13
  673. package/dist/chunks/engine-1.1.35-xthhbk9w.mjs +0 -1
  674. package/dist/chunks/envLessBridgeConfig-1.1.35-t6narn79.mjs +0 -1
  675. package/dist/chunks/envUtils-1.1.35-t6yq14ba.mjs +0 -1
  676. package/dist/chunks/errors-1.1.35-6m0kryy5.mjs +0 -1
  677. package/dist/chunks/exampleCommands-1.1.35-c7dhfj0z.mjs +0 -1
  678. package/dist/chunks/execFileNoThrow-1.1.35-39xh2ycx.mjs +0 -1
  679. package/dist/chunks/exit-1.1.35-zc8g5mnv.mjs +0 -1
  680. package/dist/chunks/explorer-1.1.35-784hbx9r.mjs +0 -1
  681. package/dist/chunks/export-1.1.35-5q6zdykx.mjs +0 -2
  682. package/dist/chunks/fast-1.1.35-fpsnnadp.mjs +0 -1
  683. package/dist/chunks/feedback-1.1.35-mdm8easg.mjs +0 -16
  684. package/dist/chunks/git-1.1.35-j2med41y.mjs +0 -1
  685. package/dist/chunks/githubModelsCredentials-1.1.35-4xzf0z5w.mjs +0 -1
  686. package/dist/chunks/goal-1.1.35-yp44rshy.mjs +0 -4
  687. package/dist/chunks/headless-1.1.35-rxvrbe58.mjs +0 -2
  688. package/dist/chunks/heapdump-1.1.35-xkthm0kj.mjs +0 -6
  689. package/dist/chunks/help-1.1.35-6ppc7eee.mjs +0 -1
  690. package/dist/chunks/hooks-1.1.35-0e80c1wz.mjs +0 -79
  691. package/dist/chunks/hooks-1.1.35-f791gbgk.mjs +0 -1
  692. package/dist/chunks/ide-1.1.35-pz8m36fj.mjs +0 -3
  693. package/dist/chunks/image-processor-napi-1.1.35-56y5k454.mjs +0 -1
  694. package/dist/chunks/import-1.1.35-fcn1y643.mjs +0 -261
  695. package/dist/chunks/inboundAttachments-1.1.35-n6b7ppqk.mjs +0 -1
  696. package/dist/chunks/index-1.1.35-434cwyrk.mjs +0 -1
  697. package/dist/chunks/index-1.1.35-4ngbsgjz.mjs +0 -1
  698. package/dist/chunks/index-1.1.35-7nsjazx1.mjs +0 -1
  699. package/dist/chunks/index-1.1.35-8rnbf6ea.mjs +0 -1
  700. package/dist/chunks/index-1.1.35-e5amgccf.mjs +0 -1
  701. package/dist/chunks/index-1.1.35-eejex06g.mjs +0 -5
  702. package/dist/chunks/index-1.1.35-epm25vr2.mjs +0 -9
  703. package/dist/chunks/index-1.1.35-jxpschvm.mjs +0 -1
  704. package/dist/chunks/index-1.1.35-mdgw0byv.mjs +0 -9
  705. package/dist/chunks/index-1.1.35-n36e4pzf.mjs +0 -1
  706. package/dist/chunks/index-1.1.35-nnrmrgn5.mjs +0 -30
  707. package/dist/chunks/index-1.1.35-p1fttaxb.mjs +0 -1
  708. package/dist/chunks/index-1.1.35-p3ttta20.mjs +0 -1
  709. package/dist/chunks/index-1.1.35-pjz1v5fa.mjs +0 -1
  710. package/dist/chunks/index-1.1.35-pqswr512.mjs +0 -23
  711. package/dist/chunks/index-1.1.35-q464ks4t.mjs +0 -1
  712. package/dist/chunks/index-1.1.35-r5cefbke.mjs +0 -2
  713. package/dist/chunks/index-1.1.35-rf0z1h76.mjs +0 -1
  714. package/dist/chunks/index-1.1.35-wg3dwx0w.mjs +0 -2
  715. package/dist/chunks/index-1.1.35-xcm76j0n.mjs +0 -1
  716. package/dist/chunks/index-1.1.35-y7q90201.mjs +0 -1
  717. package/dist/chunks/index-1.1.35-y9scvznb.mjs +0 -1
  718. package/dist/chunks/index-1.1.35-yy5qsdz8.mjs +0 -1
  719. package/dist/chunks/init-1.1.35-hawgzj6s.mjs +0 -2
  720. package/dist/chunks/initReplBridge-1.1.35-aee08exn.mjs +0 -1
  721. package/dist/chunks/ink-1.1.35-9vhjhx60.mjs +0 -1
  722. package/dist/chunks/insights-1.1.35-2782qak6.mjs +0 -870
  723. package/dist/chunks/install-1.1.35-nptjkfk3.mjs +0 -1
  724. package/dist/chunks/install-github-app-1.1.35-v4ahg5m0.mjs +0 -149
  725. package/dist/chunks/install-slack-app-1.1.35-rc6ch1k0.mjs +0 -1
  726. package/dist/chunks/interactiveHelpers-1.1.35-1755rb8a.mjs +0 -1
  727. package/dist/chunks/keybindings-1.1.35-9qz4bvrq.mjs +0 -2
  728. package/dist/chunks/latestVersionCache-1.1.35-ff7kd1x3.mjs +0 -1
  729. package/dist/chunks/loadAgentsDir-1.1.35-nwtm30nv.mjs +0 -1
  730. package/dist/chunks/loadPluginHooks-1.1.35-jxqkv874.mjs +0 -1
  731. package/dist/chunks/log-1.1.35-h5x69tbw.mjs +0 -1
  732. package/dist/chunks/main-1.1.35-1e6064ax.mjs +0 -1
  733. package/dist/chunks/managedEnv-1.1.35-s6143dpv.mjs +0 -1
  734. package/dist/chunks/mcp-1.1.35-0tswravz.mjs +0 -1
  735. package/dist/chunks/mcp-1.1.35-bdv2pgpj.mjs +0 -17
  736. package/dist/chunks/mcp-1.1.35-khngfse0.mjs +0 -4
  737. package/dist/chunks/mcpb-1.1.35-p4jn8q66.mjs +0 -1
  738. package/dist/chunks/memory-1.1.35-zvk9c80b.mjs +0 -128
  739. package/dist/chunks/model-1.1.35-j8hp9tcm.mjs +0 -1
  740. package/dist/chunks/model-1.1.35-mb41ksj1.mjs +0 -2
  741. package/dist/chunks/node-1.1.35-312s6waw.mjs +0 -1
  742. package/dist/chunks/node-1.1.35-zzk2fc7x.mjs +0 -15
  743. package/dist/chunks/oauth-1.1.35-2pwvpgey.mjs +0 -1
  744. package/dist/chunks/openaiShim-1.1.35-6gbm01ym.mjs +0 -14
  745. package/dist/chunks/output-style-1.1.35-gbk18883.mjs +0 -1
  746. package/dist/chunks/package-F6O7J2XI-1.1.35-0z3efknf.mjs +0 -1
  747. package/dist/chunks/permissions-1.1.35-c11nnhp0.mjs +0 -3
  748. package/dist/chunks/permissions-1.1.35-vqtbrznv.mjs +0 -1
  749. package/dist/chunks/plan-1.1.35-5nz3m4kh.mjs +0 -1
  750. package/dist/chunks/plist-1.1.35-4bd0g91w.mjs +0 -1
  751. package/dist/chunks/plugin-1.1.35-0tg6jzxg.mjs +0 -29
  752. package/dist/chunks/pluginStartupCheck-1.1.35-z1parxqs.mjs +0 -1
  753. package/dist/chunks/plugins-1.1.35-z14pz0dr.mjs +0 -9
  754. package/dist/chunks/preActionHook-1.1.35-9dyzn96j.mjs +0 -2
  755. package/dist/chunks/print-1.1.35-89rm2txf.mjs +0 -57
  756. package/dist/chunks/process-1.1.35-7x8d7kyn.mjs +0 -1
  757. package/dist/chunks/processBashCommand-1.1.35-hj8xz358.mjs +0 -1
  758. package/dist/chunks/processSlashCommand-1.1.35-egejjqfw.mjs +0 -9
  759. package/dist/chunks/prompt-1.1.35-aaz8q4j6.mjs +0 -1
  760. package/dist/chunks/prompt-1.1.35-f3fackax.mjs +0 -1
  761. package/dist/chunks/prompts-1.1.35-58wwfjfd.mjs +0 -1
  762. package/dist/chunks/provider-1.1.35-xwj158q8.mjs +0 -2
  763. package/dist/chunks/providerProfiles-1.1.35-6wzwgty6.mjs +0 -1
  764. package/dist/chunks/providerValidation-1.1.35-z9h8ampz.mjs +0 -6
  765. package/dist/chunks/registerSubcommands-1.1.35-7ewvmysm.mjs +0 -26
  766. package/dist/chunks/registry-1.1.35-y4zandg8.mjs +0 -1
  767. package/dist/chunks/release-notes-1.1.35-s31rkdxh.mjs +0 -5
  768. package/dist/chunks/reload-plugins-1.1.35-18xd3nwy.mjs +0 -2
  769. package/dist/chunks/remote-env-1.1.35-0v4tk5np.mjs +0 -1
  770. package/dist/chunks/remoteBridgeCore-1.1.35-ev420056.mjs +0 -1
  771. package/dist/chunks/rename-1.1.35-m8chhebj.mjs +0 -1
  772. package/dist/chunks/replLauncher-1.1.35-483j4br6.mjs +0 -1
  773. package/dist/chunks/resume-1.1.35-vaxxp18n.mjs +0 -2
  774. package/dist/chunks/rewind-1.1.35-scs8763b.mjs +0 -1
  775. package/dist/chunks/rootOptions-1.1.35-9j5y8k9x.mjs +0 -1
  776. package/dist/chunks/runWorkflowHeadless-1.1.35-zjy5t791.mjs +0 -10
  777. package/dist/chunks/sandbox-adapter-1.1.35-qrmypwca.mjs +0 -1
  778. package/dist/chunks/sandbox-toggle-1.1.35-c2k8p98n.mjs +0 -1
  779. package/dist/chunks/session-1.1.35-78ew080a.mjs +0 -2
  780. package/dist/chunks/sessionStorage-1.1.35-0tyr8wn3.mjs +0 -1
  781. package/dist/chunks/settings-1.1.35-808m5j14.mjs +0 -1
  782. package/dist/chunks/setup-1.1.35-ebpewe9s.mjs +0 -12
  783. package/dist/chunks/sinks-1.1.35-nj35kk9h.mjs +0 -1
  784. package/dist/chunks/skills-1.1.35-zczajd48.mjs +0 -1
  785. package/dist/chunks/startupProfiler-1.1.35-wa5psc2j.mjs +0 -1
  786. package/dist/chunks/startupUpdateCheck-1.1.35-0wac30ap.mjs +0 -1
  787. package/dist/chunks/state-1.1.35-gcp827qz.mjs +0 -1
  788. package/dist/chunks/stats-1.1.35-f1kndsge.mjs +0 -1
  789. package/dist/chunks/status-1.1.35-gwtdrkx2.mjs +0 -1
  790. package/dist/chunks/stickers-1.1.35-fa69zd3v.mjs +0 -1
  791. package/dist/chunks/subprocessEnv-1.1.35-8wsc86ft.mjs +0 -1
  792. package/dist/chunks/tasks-1.1.35-0wd1t6v2.mjs +0 -1
  793. package/dist/chunks/teamHelpers-1.1.35-13qqfhxa.mjs +0 -1
  794. package/dist/chunks/teammateModeSnapshot-1.1.35-wdbfsm1h.mjs +0 -1
  795. package/dist/chunks/teleport-1.1.35-tmhzqx90.mjs +0 -1
  796. package/dist/chunks/terminalSetup-1.1.35-6xq5nt25.mjs +0 -1
  797. package/dist/chunks/theme-1.1.35-4b6gd2dx.mjs +0 -1
  798. package/dist/chunks/thinkback-1.1.35-x88djqdz.mjs +0 -1
  799. package/dist/chunks/thinkback-play-1.1.35-g6n14rjh.mjs +0 -1
  800. package/dist/chunks/toolPool-1.1.35-0qd67zrc.mjs +0 -1
  801. package/dist/chunks/toolSearch-1.1.35-54dpcvf8.mjs +0 -1
  802. package/dist/chunks/tools-1.1.35-3hjsc7mm.mjs +0 -1
  803. package/dist/chunks/trustedDevice-1.1.35-szkdvqcz.mjs +0 -1
  804. package/dist/chunks/turndown.cjs-1.1.35-4azkv4s5.mjs +0 -69
  805. package/dist/chunks/types-1.1.35-ncfe8wzg.mjs +0 -1
  806. package/dist/chunks/ultrareviewCommand-1.1.35-d271ddpn.mjs +0 -4
  807. package/dist/chunks/update-1.1.35-5zabq625.mjs +0 -72
  808. package/dist/chunks/upload-1.1.35-gey82edy.mjs +0 -7
  809. package/dist/chunks/upstreamproxy-1.1.35-bbztgd01.mjs +0 -14
  810. package/dist/chunks/usage-1.1.35-sx2ahz77.mjs +0 -1
  811. package/dist/chunks/util-1.1.35-aph6a5hy.mjs +0 -1
  812. package/dist/chunks/utils-1.1.35-avpezj08.mjs +0 -1
  813. package/dist/chunks/vim-1.1.35-e0jh10q6.mjs +0 -1
  814. package/dist/chunks/watchLoop-1.1.35-baxd01b0.mjs +0 -13
  815. package/dist/chunks/wiki-1.1.35-cns1572n.mjs +0 -132
  816. package/dist/chunks/workflows-1.1.35-0r21887z.mjs +0 -1
  817. package/dist/chunks/worktree-1.1.35-0mj24by3.mjs +0 -1
  818. package/dist/chunks/worktreeModeEnabled-1.1.35-6ej7pdyw.mjs +0 -1
  819. package/dist/chunks/wrapper-1.1.35-fpcy8t3v.mjs +0 -7
  820. /package/dist/chunks/{cli-1.1.35-hnqagxgk.mjs → cli-1.1.37-tfvyj3nx.mjs} +0 -0
@@ -1,17 +0,0 @@
1
- import{Vra as y,Yra as b}from"./cli-1.1.35-c05841mj.mjs";var P0=y(($w)=>{$w.HttpAuthLocation=void 0;(function($){$.HEADER="header",$.QUERY="query"})($w.HttpAuthLocation||($w.HttpAuthLocation={}));$w.HttpApiKeyAuthLocation=void 0;(function($){$.HEADER="header",$.QUERY="query"})($w.HttpApiKeyAuthLocation||($w.HttpApiKeyAuthLocation={}));$w.EndpointURLScheme=void 0;(function($){$.HTTP="http",$.HTTPS="https"})($w.EndpointURLScheme||($w.EndpointURLScheme={}));$w.AlgorithmId=void 0;(function($){$.MD5="md5",$.CRC32="crc32",$.CRC32C="crc32c",$.SHA1="sha1",$.SHA256="sha256"})($w.AlgorithmId||($w.AlgorithmId={}));var rT=($)=>{let T=[];if($.sha256!==void 0)T.push({algorithmId:()=>$w.AlgorithmId.SHA256,checksumConstructor:()=>$.sha256});if($.md5!=null)T.push({algorithmId:()=>$w.AlgorithmId.MD5,checksumConstructor:()=>$.md5});return{addChecksumAlgorithm(w){T.push(w)},checksumAlgorithms(){return T}}},lT=($)=>{let T={};return $.checksumAlgorithms().forEach((w)=>{T[w.algorithmId()]=w.checksumConstructor()}),T},oT=($)=>{return rT($)},aT=($)=>{return lT($)};$w.FieldPosition=void 0;(function($){$[$.HEADER=0]="HEADER",$[$.TRAILER=1]="TRAILER"})($w.FieldPosition||($w.FieldPosition={}));var eT="__smithy_context";$w.IniSectionType=void 0;(function($){$.PROFILE="profile",$.SSO_SESSION="sso-session",$.SERVICES="services"})($w.IniSectionType||($w.IniSectionType={}));$w.RequestHandlerProtocol=void 0;(function($){$.HTTP_0_9="http/0.9",$.HTTP_1_0="http/1.0",$.TDS_8_0="tds/8.0"})($w.RequestHandlerProtocol||($w.RequestHandlerProtocol={}));$w.SMITHY_CONTEXT_KEY=eT;$w.getDefaultClientConfiguration=oT;$w.resolveDefaultRuntimeConfig=aT});var D0=y((sw)=>{var m=P0(),Iw=h1(),g=($,T)=>{let w=[];if($)w.push($);if(T)for(let P of T)w.push(P);return w},c=($,T)=>{return`${$||"anonymous"}${T&&T.length>0?` (a.k.a. ${T.join(",")})`:""}`},I0=()=>{let $=[],T=[],w=!1,P=new Set,I=(X)=>X.sort((J,f)=>l1[f.step]-l1[J.step]||o1[f.priority||"normal"]-o1[J.priority||"normal"]),h=(X)=>{let J=!1,f=(G)=>{let Q=g(G.name,G.aliases);if(Q.includes(X)){J=!0;for(let Z of Q)P.delete(Z);return!1}return!0};return $=$.filter(f),T=T.filter(f),J},U=(X)=>{let J=!1,f=(G)=>{if(G.middleware===X){J=!0;for(let Q of g(G.name,G.aliases))P.delete(Q);return!1}return!0};return $=$.filter(f),T=T.filter(f),J},A=(X)=>{return $.forEach((J)=>{X.add(J.middleware,{...J})}),T.forEach((J)=>{X.addRelativeTo(J.middleware,{...J})}),X.identifyOnResolve?.(Y.identifyOnResolve()),X},_=(X)=>{let J=[];return X.before.forEach((f)=>{if(f.before.length===0&&f.after.length===0)J.push(f);else J.push(..._(f))}),J.push(X),X.after.reverse().forEach((f)=>{if(f.before.length===0&&f.after.length===0)J.push(f);else J.push(..._(f))}),J},M=(X=!1)=>{let J=[],f=[],G={};return $.forEach((Z)=>{let R={...Z,before:[],after:[]};for(let V of g(R.name,R.aliases))G[V]=R;J.push(R)}),T.forEach((Z)=>{let R={...Z,before:[],after:[]};for(let V of g(R.name,R.aliases))G[V]=R;f.push(R)}),f.forEach((Z)=>{if(Z.toMiddleware){let R=G[Z.toMiddleware];if(R===void 0){if(X)return;throw Error(`${Z.toMiddleware} is not found when adding ${c(Z.name,Z.aliases)} middleware ${Z.relation} ${Z.toMiddleware}`)}if(Z.relation==="after")R.after.push(Z);if(Z.relation==="before")R.before.push(Z)}}),I(J).map(_).reduce((Z,R)=>{return Z.push(...R),Z},[])},Y={add:(X,J={})=>{let{name:f,override:G,aliases:Q}=J,Z={step:"initialize",priority:"normal",middleware:X,...J},R=g(f,Q);if(R.length>0){if(R.some((V)=>P.has(V))){if(!G)throw Error(`Duplicate middleware name '${c(f,Q)}'`);for(let V of R){let L=$.findIndex((T0)=>T0.name===V||T0.aliases?.some((l0)=>l0===V));if(L===-1)continue;let W=$[L];if(W.step!==Z.step||Z.priority!==W.priority)throw Error(`"${c(W.name,W.aliases)}" middleware with ${W.priority} priority in ${W.step} step cannot be overridden by "${c(f,Q)}" middleware with ${Z.priority} priority in ${Z.step} step.`);$.splice(L,1)}}for(let V of R)P.add(V)}$.push(Z)},addRelativeTo:(X,J)=>{let{name:f,override:G,aliases:Q}=J,Z={middleware:X,...J},R=g(f,Q);if(R.length>0){if(R.some((V)=>P.has(V))){if(!G)throw Error(`Duplicate middleware name '${c(f,Q)}'`);for(let V of R){let L=T.findIndex((T0)=>T0.name===V||T0.aliases?.some((l0)=>l0===V));if(L===-1)continue;let W=T[L];if(W.toMiddleware!==Z.toMiddleware||W.relation!==Z.relation)throw Error(`"${c(W.name,W.aliases)}" middleware ${W.relation} "${W.toMiddleware}" middleware cannot be overridden by "${c(f,Q)}" middleware ${Z.relation} "${Z.toMiddleware}" middleware.`);T.splice(L,1)}}for(let V of R)P.add(V)}T.push(Z)},clone:()=>A(I0()),use:(X)=>{X.applyToStack(Y)},remove:(X)=>{if(typeof X==="string")return h(X);else return U(X)},removeByTag:(X)=>{let J=!1,f=(G)=>{let{tags:Q,name:Z,aliases:R}=G;if(Q&&Q.includes(X)){let V=g(Z,R);for(let L of V)P.delete(L);return J=!0,!1}return!0};return $=$.filter(f),T=T.filter(f),J},concat:(X)=>{let J=A(I0());return J.use(X),J.identifyOnResolve(w||J.identifyOnResolve()||(X.identifyOnResolve?.()??!1)),J},applyToStack:A,identify:()=>{return M(!0).map((X)=>{let J=X.step??X.relation+" "+X.toMiddleware;return c(X.name,X.aliases)+" - "+J})},identifyOnResolve(X){if(typeof X==="boolean")w=X;return w},resolve:(X,J)=>{for(let f of M().map((G)=>G.middleware).reverse())X=f(X,J);if(w)console.log(Y.identify());return X}};return Y},l1={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},o1={high:3,normal:2,low:1},hw=($)=>$[m.SMITHY_CONTEXT_KEY]||($[m.SMITHY_CONTEXT_KEY]={}),Uw=($)=>{if(typeof $==="function")return $;let T=Promise.resolve($);return()=>T},Aw=($)=>()=>{throw Error($)},_w=($)=>()=>Promise.reject($),W0=()=>{let $=new WeakSet;return(T,w)=>{if(typeof w==="object"&&w!==null){if($.has(w))return"[Circular]";$.add(w)}return w}},Mw=($)=>{return new Promise((T)=>setTimeout(T,$*1000))},$$={minDelay:2,maxDelay:120};sw.WaiterState=void 0;(function($){$.ABORTED="ABORTED",$.FAILURE="FAILURE",$.SUCCESS="SUCCESS",$.RETRY="RETRY",$.TIMEOUT="TIMEOUT"})(sw.WaiterState||(sw.WaiterState={}));var Xw=($)=>{if($.state===sw.WaiterState.ABORTED){let T=Error(`${JSON.stringify({...$,reason:"Request was aborted"},W0())}`);throw T.name="AbortError",T}else if($.state===sw.WaiterState.TIMEOUT){let T=Error(`${JSON.stringify({...$,reason:"Waiter has timed out"},W0())}`);throw T.name="TimeoutError",T}else if($.state!==sw.WaiterState.SUCCESS)throw Error(`${JSON.stringify($,W0())}`);return $},Jw=async({minDelay:$,maxDelay:T,maxWaitTime:w,abortController:P,client:I,abortSignal:h},U,A)=>{let _={},[M,Y]=[$*1000,T*1000],X=0,J=Date.now()+w*1000,f=Date.now()+60000,G=!1;while(!0){if(X>0){let R=Gw(M,Y,X,J);if(P?.signal?.aborted||h?.aborted)return _["AbortController signal aborted."]|=0,_["AbortController signal aborted."]+=1,{state:sw.WaiterState.ABORTED,observedResponses:_};if(Date.now()+R>J)return{state:sw.WaiterState.TIMEOUT,observedResponses:_};await Mw(R/1000)}let{state:Q,reason:Z}=await A(I,U);if(Z){let R=fw(Z);_[R]|=0,_[R]+=1}if(Q!==sw.WaiterState.RETRY)return{state:Q,reason:Z,final:Z,observedResponses:_};if(X+=1,!G&&Date.now()>=f)Yw(_,I),G=!0}},Yw=($={},T)=>{let w=Object.keys($),P=0;for(let U of w){let A=$[U]|0;if(U.startsWith("403:"))P+=A}let I=T?.config?.logger,h=typeof I?.warn==="function"&&!I.constructor?.name?.includes?.("NoOpLogger")?I:console;if(P>=3||w[w.length-1]?.startsWith("403:"))h.warn("@smithy/util-waiter WARN - 403 status code encountered during waiter polling.")},fw=($)=>{let T=$?.$response?.statusCode??$?.$metadata?.httpStatusCode;if($?.$responseBodyText)return`${T?T+": ":""}Deserialization error for body: ${$.$responseBodyText}`;if(T){if($?.$response||$?.message)return`${T??"Unknown"}: ${$?.message}`;return`${T}: OK`}return String($?.message??JSON.stringify($,W0())??"Unknown")},Gw=($,T,w,P)=>{let I=Math.log(T/$)/Math.log(2)+1;if(w>I)return T;let h=$*2**(w-1),U=Math.min(h,T),A=Zw($,U);if(Date.now()+A>P){let _=P-Date.now();return Math.max(0,_-500)}return A},Zw=($,T)=>$+Math.random()*(T-$),Rw=($)=>{if($.maxWaitTime<=0)throw Error("WaiterConfiguration.maxWaitTime must be greater than 0");else if($.minDelay<=0)throw Error("WaiterConfiguration.minDelay must be greater than 0");else if($.maxDelay<=0)throw Error("WaiterConfiguration.maxDelay must be greater than 0");else if($.maxWaitTime<=$.minDelay)throw Error(`WaiterConfiguration.maxWaitTime [${$.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${$.minDelay}] for this waiter`);else if($.maxDelay<$.minDelay)throw Error(`WaiterConfiguration.maxDelay [${$.maxDelay}] must be greater than WaiterConfiguration.minDelay [${$.minDelay}] for this waiter`)},a1=($)=>{let T,w=new Promise((P)=>{if(T=()=>P({state:sw.WaiterState.ABORTED}),typeof $.addEventListener==="function")$.addEventListener("abort",T);else $.onabort=T});return{clearListener(){if(typeof $.removeEventListener==="function")$.removeEventListener("abort",T)},aborted:w}},Qw=async($,T,w)=>{let P={...$$,...$};Rw(P);let I=[Jw(P,T,w)],h=[];if($.abortSignal){let{aborted:U,clearListener:A}=a1($.abortSignal);h.push(A),I.push(U)}if($.abortController?.signal){let{aborted:U,clearListener:A}=a1($.abortController.signal);h.push(A),I.push(U)}return Promise.race(I).then((U)=>{for(let A of h)A();return U})};class T${config;middlewareStack=I0();initConfig;handlers;constructor($){this.config=$;let{protocol:T,protocolSettings:w}=$;if(w){if(typeof T==="function")$.protocol=new T(w)}}send($,T,w){let P=typeof T!=="function"?T:void 0,I=typeof T==="function"?T:w,h=P===void 0&&this.config.cacheMiddleware===!0,U;if(h){if(!this.handlers)this.handlers=new WeakMap;let A=this.handlers;if(A.has($.constructor))U=A.get($.constructor);else U=$.resolveMiddleware(this.middlewareStack,this.config,P),A.set($.constructor,U)}else delete this.handlers,U=$.resolveMiddleware(this.middlewareStack,this.config,P);if(I)U($).then((A)=>I(null,A.output),(A)=>I(A)).catch(()=>{});else return U($).then((A)=>A.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var P1="***SensitiveInformation***";function H0($,T){if(T==null)return T;let w=Iw.NormalizedSchema.of($);if(w.getMergedTraits().sensitive)return P1;if(w.isListSchema()){if(!!w.getValueSchema().getMergedTraits().sensitive)return P1}else if(w.isMapSchema()){if(!!w.getKeySchema().getMergedTraits().sensitive||!!w.getValueSchema().getMergedTraits().sensitive)return P1}else if(w.isStructSchema()&&typeof T==="object"){let P=T,I={};for(let[h,U]of w.structIterator())if(P[h]!=null)I[h]=H0(U,P[h]);return I}return T}class U1{middlewareStack=I0();schema;static classBuilder(){return new w$}resolveMiddlewareWithContext($,T,w,{middlewareFn:P,clientName:I,commandName:h,inputFilterSensitiveLog:U,outputFilterSensitiveLog:A,smithyContext:_,additionalContext:M,CommandCtor:Y}){for(let Z of P.bind(this)(Y,$,T,w))this.middlewareStack.use(Z);let X=$.concat(this.middlewareStack),{logger:J}=T,f={logger:J,clientName:I,commandName:h,inputFilterSensitiveLog:U,outputFilterSensitiveLog:A,[m.SMITHY_CONTEXT_KEY]:{commandInstance:this,..._},...M},{requestHandler:G}=T,Q=w??{};if(_.eventStream)Q={isEventStream:!0,...Q};return X.resolve((Z)=>G.handle(Z.request,Q),f)}}class w${_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init($){this._init=$}ep($){return this._ep=$,this}m($){return this._middlewareFn=$,this}s($,T,w={}){return this._smithyContext={service:$,operation:T,...w},this}c($={}){return this._additionalContext=$,this}n($,T){return this._clientName=$,this._commandName=T,this}f($=(w)=>w,T=(w)=>w){return this._inputFilterSensitiveLog=$,this._outputFilterSensitiveLog=T,this}ser($){return this._serializer=$,this}de($){return this._deserializer=$,this}sc($){return this._operationSchema=$,this._smithyContext.operationSchema=$,this}build(){let $=this,T;return T=class extends U1{input;static getEndpointParameterInstructions(){return $._ep}constructor(...[w]){super();this.input=w??{},$._init(this),this.schema=$._operationSchema}resolveMiddleware(w,P,I){let h=$._operationSchema,U=h?.[4]??h?.input,A=h?.[5]??h?.output;return this.resolveMiddlewareWithContext(w,P,I,{CommandCtor:T,middlewareFn:$._middlewareFn,clientName:$._clientName,commandName:$._commandName,inputFilterSensitiveLog:$._inputFilterSensitiveLog??(h?H0.bind(null,U):(_)=>_),outputFilterSensitiveLog:$._outputFilterSensitiveLog??(h?H0.bind(null,A):(_)=>_),smithyContext:$._smithyContext,additionalContext:$._additionalContext})}serialize=$._serializer;deserialize=$._deserializer}}}var Vw="***SensitiveInformation***",Ow=($,T,w)=>{for(let[h,U]of Object.entries($)){let A=async function(M,Y,X){let J=new U(M);if(typeof Y==="function")this.send(J,Y);else if(typeof X==="function"){if(typeof Y!=="object")throw Error(`Expected http options but got ${typeof Y}`);this.send(J,Y||{},X)}else return this.send(J,Y)},_=(h[0].toLowerCase()+h.slice(1)).replace(/Command$/,"");T.prototype[_]=A}let{paginators:P={},waiters:I={}}=w??{};for(let[h,U]of Object.entries(P))if(T.prototype[h]===void 0)T.prototype[h]=function(A={},_,...M){return U({..._,client:this},A,...M)};for(let[h,U]of Object.entries(I))if(T.prototype[h]===void 0)T.prototype[h]=async function(A={},_,...M){let Y=_;if(typeof _==="number")Y={maxWaitTime:_};return U({...Y,client:this},A,...M)}};class t extends Error{$fault;$response;$retryable;$metadata;constructor($){super($.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=$.name,this.$fault=$.$fault,this.$metadata=$.$metadata}static isInstance($){if(!$)return!1;let T=$;return t.prototype.isPrototypeOf(T)||Boolean(T.$fault)&&Boolean(T.$metadata)&&(T.$fault==="client"||T.$fault==="server")}static[Symbol.hasInstance]($){if(!$)return!1;let T=$;if(this===t)return t.isInstance($);if(t.isInstance($)){if(T.name&&this.name)return this.prototype.isPrototypeOf($)||T.name===this.name;return this.prototype.isPrototypeOf($)}return!1}}var P$=($,T={})=>{Object.entries(T).filter(([,P])=>P!==void 0).forEach(([P,I])=>{if($[P]==null||$[P]==="")$[P]=I});let w=$.message||$.Message||"UnknownError";return $.message=w,delete $.Message,$},I$=({output:$,parsedBody:T,exceptionCtor:w,errorCode:P})=>{let I=Lw($),h=I.httpStatusCode?I.httpStatusCode+"":void 0,U=new w({name:T?.code||T?.Code||P||h||"UnknownError",$fault:"client",$metadata:I});throw P$(U,T)},Nw=($)=>{return({output:T,parsedBody:w,errorCode:P})=>{I$({output:T,parsedBody:w,exceptionCtor:$,errorCode:P})}},Lw=($)=>({httpStatusCode:$.statusCode,requestId:$.headers["x-amzn-requestid"]??$.headers["x-amzn-request-id"]??$.headers["x-amz-request-id"],extendedRequestId:$.headers["x-amz-id-2"],cfId:$.headers["x-amz-cf-id"]}),Ww=($)=>{switch($){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},e1=!1,Hw=($)=>{if($&&!e1&&parseInt($.substring(1,$.indexOf(".")))<16)e1=!0},h$=Object.values(m.AlgorithmId),U$=($)=>{let T=[];for(let w in m.AlgorithmId){let P=m.AlgorithmId[w];if($[P]===void 0)continue;T.push({algorithmId:()=>P,checksumConstructor:()=>$[P]})}for(let[w,P]of Object.entries($.checksumAlgorithms??{}))T.push({algorithmId:()=>w,checksumConstructor:()=>P});return{addChecksumAlgorithm(w){$.checksumAlgorithms=$.checksumAlgorithms??{};let P=w.algorithmId(),I=w.checksumConstructor();if(h$.includes(P))$.checksumAlgorithms[P.toUpperCase()]=I;else $.checksumAlgorithms[P]=I;T.push(w)},checksumAlgorithms(){return T}}},A$=($)=>{let T={};return $.checksumAlgorithms().forEach((w)=>{let P=w.algorithmId();if(h$.includes(P))T[P]=w.checksumConstructor()}),T},_$=($)=>{return{setRetryStrategy(T){$.retryStrategy=T},retryStrategy(){return $.retryStrategy}}},M$=($)=>{let T={};return T.retryStrategy=$.retryStrategy(),T},X$=($)=>{return Object.assign(U$($),_$($))},Dw=X$,Ew=($)=>{return Object.assign(A$($),M$($))},Kw=($)=>Array.isArray($)?$:[$],J$=($)=>{for(let w in $)if($.hasOwnProperty(w)&&$[w]["#text"]!==void 0)$[w]=$[w]["#text"];else if(typeof $[w]==="object"&&$[w]!==null)$[w]=J$($[w]);return $},Bw=($)=>{return $!=null};class Y${trace(){}debug(){}info(){}warn(){}error(){}}function f$($,T,w){let P,I,h;if(typeof T>"u"&&typeof w>"u")P={},h=$;else if(P=$,typeof T==="function")return I=T,h=w,Fw(P,I,h);else h=T;for(let U of Object.keys(h)){if(!Array.isArray(h[U])){P[U]=h[U];continue}G$(P,null,h,U)}return P}var qw=($)=>{let T={};for(let[w,P]of Object.entries($||{}))T[w]=[,P];return T},xw=($,T)=>{let w={};for(let P in T)G$(w,$,T,P);return w},Fw=($,T,w)=>{return f$($,Object.entries(w).reduce((P,[I,h])=>{if(Array.isArray(h))P[I]=h;else if(typeof h==="function")P[I]=[T,h()];else P[I]=[T,h];return P},{}))},G$=($,T,w,P)=>{if(T!==null){let U=w[P];if(typeof U==="function")U=[,U];let[A=zw,_=Sw,M=P]=U;if(typeof A==="function"&&A(T[M])||typeof A!=="function"&&!!A)$[P]=_(T[M]);return}let[I,h]=w[P];if(typeof h==="function"){let U,A=I===void 0&&(U=h())!=null,_=typeof I==="function"&&!!I(void 0)||typeof I!=="function"&&!!I;if(A)$[P]=U;else if(_)$[P]=h()}else{let U=I===void 0&&h!=null,A=typeof I==="function"&&!!I(h)||typeof I!=="function"&&!!I;if(U||A)$[P]=h}},zw=($)=>$!=null,Sw=($)=>$,jw=($)=>{if($!==$)return"NaN";switch($){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return $}},Cw=($)=>$.toISOString().replace(".000Z","Z"),I1=($)=>{if($==null)return{};if(Array.isArray($))return $.filter((T)=>T!=null).map(I1);if(typeof $==="object"){let T={};for(let w of Object.keys($)){if($[w]==null)continue;T[w]=I1($[w])}return T}return $};sw.AlgorithmId=m.AlgorithmId;sw.Client=T$;sw.Command=U1;sw.NoOpLogger=Y$;sw.SENSITIVE_STRING=Vw;sw.ServiceException=t;sw._json=I1;sw.checkExceptions=Xw;sw.constructStack=I0;sw.convertMap=qw;sw.createAggregatedClient=Ow;sw.createWaiter=Qw;sw.decorateServiceException=P$;sw.emitWarningIfUnsupportedVersion=Hw;sw.getArrayIfSingleItem=Kw;sw.getChecksumConfiguration=U$;sw.getDefaultClientConfiguration=Dw;sw.getDefaultExtensionConfiguration=X$;sw.getRetryConfiguration=_$;sw.getSmithyContext=hw;sw.getValueFromTextNode=J$;sw.invalidFunction=Aw;sw.invalidProvider=_w;sw.isSerializableHeaderValue=Bw;sw.loadConfigsForDefaultMode=Ww;sw.map=f$;sw.normalizeProvider=Uw;sw.resolveChecksumRuntimeConfig=A$;sw.resolveDefaultRuntimeConfig=Ew;sw.resolveRetryRuntimeConfig=M$;sw.schemaLogFilter=H0;sw.serializeDateTime=Cw;sw.serializeFloat=jw;sw.take=xw;sw.throwDefaultError=I$;sw.waiterServiceDefaults=$$;sw.withBaseException=Nw});var C$=y((ZI)=>{var OP=b("node:os"),i=b("node:path"),NP=b("node:crypto"),N$=b("node:fs/promises"),E0=P0(),K0=D0(),LP=F0();class u extends Error{name="ProviderError";tryNextLink;constructor($,T=!0){let w,P=!0;if(typeof T==="boolean")w=void 0,P=T;else if(T!=null&&typeof T==="object")w=T.logger,P=T.tryNextLink??!0;super($);this.tryNextLink=P,Object.setPrototypeOf(this,u.prototype),w?.debug?.(`@smithy/property-provider ${P?"->":"(!)"} ${$}`)}static from($,T=!0){return Object.assign(new this($.message,T),$)}}class h0 extends u{name="CredentialsProviderError";constructor($,T=!0){super($,T);Object.setPrototypeOf(this,h0.prototype)}}class J1 extends u{name="TokenProviderError";constructor($,T=!0){super($,T);Object.setPrototypeOf(this,J1.prototype)}}var L$=(...$)=>async()=>{if($.length===0)throw new u("No providers in chain");let T;for(let w of $)try{return await w()}catch(P){if(T=P,P?.tryNextLink)continue;throw P}throw T},W$=($)=>()=>Promise.resolve($),Y1=($,T,w)=>{let P,I,h,U=!1,A=async()=>{if(!I)I=$();try{P=await I,h=!0,U=!1}finally{I=void 0}return P};if(T===void 0)return async(_)=>{if(!h||_?.forceRefresh)P=await A();return P};return async(_)=>{if(!h||_?.forceRefresh)P=await A();if(U)return P;if(w&&!w(P))return U=!0,P;if(T(P))return await A(),P;return P}},F=($,T,w)=>{if(!(T in $))return;if($[T]==="true")return!0;if($[T]==="false")return!1;throw Error(`Cannot load ${w} "${T}". Expected "true" or "false", got ${$[T]}.`)},WP=($,T,w)=>{if(!(T in $))return;let P=parseInt($[T],10);if(Number.isNaN(P))throw TypeError(`Cannot load ${w} '${T}'. Expected number, got '${$[T]}'.`);return P};ZI.SelectorType=void 0;(function($){$.ENV="env",$.CONFIG="shared config entry"})(ZI.SelectorType||(ZI.SelectorType={}));var A1={},HP=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},U0=()=>{let{HOME:$,USERPROFILE:T,HOMEPATH:w,HOMEDRIVE:P=`C:${i.sep}`}=process.env;if($)return $;if(T)return T;if(w)return`${P}${w}`;let I=HP();if(!A1[I])A1[I]=OP.homedir();return A1[I]},H$="AWS_PROFILE",D$="default",E$=($)=>$.profile||process.env[H$]||D$,K$=($)=>{let w=NP.createHash("sha1").update($).digest("hex");return i.join(U0(),".aws","sso","cache",`${w}.json`)},B0={},DP=async($)=>{if(B0[$])return B0[$];let T=K$($),w=await N$.readFile(T,"utf8");return JSON.parse(w)},d=".",EP=($)=>Object.entries($).filter(([T])=>{let w=T.indexOf(d);if(w===-1)return!1;return Object.values(E0.IniSectionType).includes(T.substring(0,w))}).reduce((T,[w,P])=>{let I=w.indexOf(d),h=w.substring(0,I)===E0.IniSectionType.PROFILE?w.substring(I+1):w;return T[h]=P,T},{...$.default&&{default:$.default}}),KP="AWS_CONFIG_FILE",B$=()=>process.env[KP]||i.join(U0(),".aws","config"),BP="AWS_SHARED_CREDENTIALS_FILE",qP=()=>process.env[BP]||i.join(U0(),".aws","credentials"),xP=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,FP=["__proto__","profile __proto__"],M1=($)=>{let T={},w,P;for(let I of $.split(/\r?\n/)){let h=I.split(/(^|\s)[;#]/)[0].trim();if(h[0]==="["&&h[h.length-1]==="]"){w=void 0,P=void 0;let A=h.substring(1,h.length-1),_=xP.exec(A);if(_){let[,M,,Y]=_;if(Object.values(E0.IniSectionType).includes(M))w=[M,Y].join(d)}else w=A;if(FP.includes(A))throw Error(`Found invalid profile name "${A}"`)}else if(w){let A=h.indexOf("=");if(![0,-1].includes(A)){let[_,M]=[h.substring(0,A).trim(),h.substring(A+1).trim()];if(M==="")P=_;else{if(P&&I.trimStart()===I)P=void 0;T[w]=T[w]||{};let Y=P?[P,_].join(d):_;T[w][Y]=M}}}}return T},_1={},q0={},x0=($,T)=>{if(q0[$]!==void 0)return q0[$];if(!_1[$]||T?.ignoreCache)_1[$]=N$.readFile($,"utf8");return _1[$]},Z$=()=>({}),f1=async($={})=>{let{filepath:T=qP(),configFilepath:w=B$()}=$,P=U0(),I="~/",h=T;if(T.startsWith("~/"))h=i.join(P,T.slice(2));let U=w;if(w.startsWith("~/"))U=i.join(P,w.slice(2));let A=await Promise.all([x0(U,{ignoreCache:$.ignoreCache}).then(M1).then(EP).catch(Z$),x0(h,{ignoreCache:$.ignoreCache}).then(M1).catch(Z$)]);return{configFile:A[0],credentialsFile:A[1]}},zP=($)=>Object.entries($).filter(([T])=>T.startsWith(E0.IniSectionType.SSO_SESSION+d)).reduce((T,[w,P])=>({...T,[w.substring(w.indexOf(d)+1)]:P}),{}),SP=()=>({}),jP=async($={})=>x0($.configFilepath??B$()).then(M1).then(zP).catch(SP),CP=(...$)=>{let T={};for(let w of $)for(let[P,I]of Object.entries(w))if(T[P]!==void 0)Object.assign(T[P],I);else T[P]=I;return T},sP=async($)=>{let T=await f1($);return CP(T.configFile,T.credentialsFile)},cP={getFileRecord(){return q0},interceptFile($,T){q0[$]=Promise.resolve(T)},getTokenRecord(){return B0},interceptToken($,T){B0[$]=T}};function q$($){try{let T=new Set(Array.from($.match(/([A-Z_]){3,}/g)??[]));return T.delete("CONFIG"),T.delete("CONFIG_PREFIX_SEPARATOR"),T.delete("ENV"),[...T].join(", ")}catch(T){return $}}var bP=($,T)=>async()=>{try{let w=$(process.env,T);if(w===void 0)throw Error();return w}catch(w){throw new h0(w.message||`Not found in ENV: ${q$($.toString())}`,{logger:T?.logger})}},kP=($,{preferredFile:T="config",...w}={})=>async()=>{let P=E$(w),{configFile:I,credentialsFile:h}=await f1(w),U=h[P]||{},A=I[P]||{},_=T==="config"?{...U,...A}:{...A,...U};try{let Y=$(_,T==="config"?I:h);if(Y===void 0)throw Error();return Y}catch(M){throw new h0(M.message||`Not found in config files w/ profile [${P}]: ${q$($.toString())}`,{logger:w.logger})}},pP=($)=>typeof $==="function",x$=($)=>pP($)?async()=>await $():W$($),X1=({environmentVariableSelector:$,configFileSelector:T,default:w},P={})=>{let{signingName:I,logger:h}=P;return Y1(L$(bP($,{signingName:I,logger:h}),kP(T,P),x$(w)))},G1="AWS_USE_DUALSTACK_ENDPOINT",Z1="use_dualstack_endpoint",yP=!1,gP={environmentVariableSelector:($)=>F($,G1,ZI.SelectorType.ENV),configFileSelector:($)=>F($,Z1,ZI.SelectorType.CONFIG),default:!1},mP={environmentVariableSelector:($)=>F($,G1,ZI.SelectorType.ENV),configFileSelector:($)=>F($,Z1,ZI.SelectorType.CONFIG),default:void 0},R1="AWS_USE_FIPS_ENDPOINT",Q1="use_fips_endpoint",dP=!1,vP={environmentVariableSelector:($)=>F($,R1,ZI.SelectorType.ENV),configFileSelector:($)=>F($,Q1,ZI.SelectorType.CONFIG),default:!1},nP={environmentVariableSelector:($)=>F($,R1,ZI.SelectorType.ENV),configFileSelector:($)=>F($,Q1,ZI.SelectorType.CONFIG),default:void 0},tP=($)=>{let{tls:T,endpoint:w,urlParser:P,useDualstackEndpoint:I}=$;return Object.assign($,{tls:T??!0,endpoint:K0.normalizeProvider(typeof w==="string"?P(w):w),isCustomEndpoint:!0,useDualstackEndpoint:K0.normalizeProvider(I??!1)})},iP=async($)=>{let{tls:T=!0}=$,w=await $.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(w))throw Error("Invalid region in client config");let I=await $.useDualstackEndpoint(),h=await $.useFipsEndpoint(),{hostname:U}=await $.regionInfoProvider(w,{useDualstackEndpoint:I,useFipsEndpoint:h})??{};if(!U)throw Error("Cannot resolve hostname from client config");return $.urlParser(`${T?"https:":"http:"}//${U}`)},uP=($)=>{let T=K0.normalizeProvider($.useDualstackEndpoint??!1),{endpoint:w,useFipsEndpoint:P,urlParser:I,tls:h}=$;return Object.assign($,{tls:h??!0,endpoint:w?K0.normalizeProvider(typeof w==="string"?I(w):w):()=>iP({...$,useDualstackEndpoint:T,useFipsEndpoint:P}),isCustomEndpoint:!!w,useDualstackEndpoint:T})},F$="AWS_REGION",z$="region",S$={environmentVariableSelector:($)=>$[F$],configFileSelector:($)=>$[z$],default:()=>{throw Error("Region is missing")}},rP={preferredFile:"credentials"},R$=new Set,lP=($,T=LP.isValidHostLabel)=>{if(!R$.has($)&&!T($))if($==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw Error(`Region not accepted: region="${$}" is not a valid hostname component.`);else R$.add($)},j$=($)=>typeof $==="string"&&($.startsWith("fips-")||$.endsWith("-fips")),oP=($)=>j$($)?["fips-aws-global","aws-fips"].includes($)?"us-east-1":$.replace(/fips-(dkr-|prod-)?|-fips/,""):$,aP=($)=>{let{region:T,useFipsEndpoint:w}=$;if(!T)throw Error("Region is missing");return Object.assign($,{region:async()=>{let P=typeof T==="function"?await T():T,I=oP(P);return lP(I),I},useFipsEndpoint:async()=>{let P=typeof T==="string"?T:await T();if(j$(P))return!0;return typeof w!=="function"?Promise.resolve(!!w):w()}})},Q$=($=[],{useFipsEndpoint:T,useDualstackEndpoint:w})=>$.find(({tags:P})=>T===P.includes("fips")&&w===P.includes("dualstack"))?.hostname,eP=($,{regionHostname:T,partitionHostname:w})=>T?T:w?w.replace("{region}",$):void 0,$I=($,{partitionHash:T})=>Object.keys(T||{}).find((w)=>T[w].regions.includes($))??"aws",TI=($,{signingRegion:T,regionRegex:w,useFipsEndpoint:P})=>{if(T)return T;else if(P){let I=w.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),h=$.match(I);if(h)return h[0].slice(1,-1)}},wI=($,{useFipsEndpoint:T=!1,useDualstackEndpoint:w=!1,signingService:P,regionHash:I,partitionHash:h})=>{let U=$I($,{partitionHash:h}),A=$ in I?$:h[U]?.endpoint??$,_={useFipsEndpoint:T,useDualstackEndpoint:w},M=Q$(I[A]?.variants,_),Y=Q$(h[U]?.variants,_),X=eP(A,{regionHostname:M,partitionHostname:Y});if(X===void 0)throw Error(`Endpoint resolution failed for: ${{resolvedRegion:A,useFipsEndpoint:T,useDualstackEndpoint:w}}`);let J=TI(X,{signingRegion:I[A]?.signingRegion,regionRegex:h[U].regionRegex,useFipsEndpoint:T});return{partition:U,signingService:P,hostname:X,...J&&{signingRegion:J},...I[A]?.signingService&&{signingService:I[A].signingService}}},PI="AWS_EXECUTION_ENV",V$="AWS_REGION",O$="AWS_DEFAULT_REGION",II="AWS_EC2_METADATA_DISABLED",hI=["in-region","cross-region","mobile","standard","legacy"],UI="/latest/meta-data/placement/region",AI="AWS_DEFAULTS_MODE",_I="defaults_mode",MI={environmentVariableSelector:($)=>{return $[AI]},configFileSelector:($)=>{return $[_I]},default:"legacy"},XI=({region:$=X1(S$),defaultsMode:T=X1(MI)}={})=>Y1(async()=>{let w=typeof T==="function"?await T():T;switch(w?.toLowerCase()){case"auto":return JI($);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(w?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw Error(`Invalid parameter for "defaultsMode", expect ${hI.join(", ")}, got ${w}`)}}),JI=async($)=>{if($){let T=typeof $==="function"?await $():$,w=await YI();if(!w)return"standard";if(T===w)return"in-region";else return"cross-region"}return"standard"},YI=async()=>{if(process.env[PI]&&(process.env[V$]||process.env[O$]))return process.env[V$]??process.env[O$];if(!process.env[II])try{let $=await fI();return(await GI({hostname:$.hostname,path:UI})).toString()}catch($){}},fI=async()=>{let $=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if($){let w=new URL($);return{hostname:w.hostname,path:w.pathname}}if(process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE==="IPv6")return{hostname:"fd00:ec2::254",path:"/"};return{hostname:"169.254.169.254",path:"/"}},GI=async({hostname:$,path:T})=>{let{request:w}=await import("node:http");return new Promise((P,I)=>{let h=w({method:"GET",hostname:$.replace(/^\[(.+)]$/,"$1"),path:T,timeout:1000,signal:AbortSignal.timeout(1000)});h.on("error",(U)=>{I(U),h.destroy()}),h.on("timeout",()=>{I(Error("TimeoutError from instance metadata service")),h.destroy()}),h.on("response",(U)=>{let{statusCode:A=400}=U;if(A<200||300<=A){I(Object.assign(Error("Error response received from instance metadata service"),{statusCode:A})),h.destroy();return}let _=[];U.on("data",(M)=>_.push(M)),U.on("end",()=>{P(Buffer.concat(_)),h.destroy()})}),h.end()})};ZI.CONFIG_PREFIX_SEPARATOR=d;ZI.CONFIG_USE_DUALSTACK_ENDPOINT=Z1;ZI.CONFIG_USE_FIPS_ENDPOINT=Q1;ZI.CredentialsProviderError=h0;ZI.DEFAULT_PROFILE=D$;ZI.DEFAULT_USE_DUALSTACK_ENDPOINT=yP;ZI.DEFAULT_USE_FIPS_ENDPOINT=dP;ZI.ENV_PROFILE=H$;ZI.ENV_USE_DUALSTACK_ENDPOINT=G1;ZI.ENV_USE_FIPS_ENDPOINT=R1;ZI.NODE_REGION_CONFIG_FILE_OPTIONS=rP;ZI.NODE_REGION_CONFIG_OPTIONS=S$;ZI.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=gP;ZI.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=vP;ZI.ProviderError=u;ZI.REGION_ENV_NAME=F$;ZI.REGION_INI_NAME=z$;ZI.TokenProviderError=J1;ZI.booleanSelector=F;ZI.chain=L$;ZI.externalDataInterceptor=cP;ZI.fromStatic=x$;ZI.fromValue=W$;ZI.getHomeDir=U0;ZI.getProfileName=E$;ZI.getRegionInfo=wI;ZI.getSSOTokenFilepath=K$;ZI.getSSOTokenFromFile=DP;ZI.loadConfig=X1;ZI.loadSharedConfigFiles=f1;ZI.loadSsoSessionData=jP;ZI.memoize=Y1;ZI.nodeDualstackConfigSelectors=mP;ZI.nodeFipsConfigSelectors=nP;ZI.numberSelector=WP;ZI.parseKnownFiles=sP;ZI.readFile=x0;ZI.resolveCustomEndpointsConfig=tP;ZI.resolveDefaultsModeConfig=XI;ZI.resolveEndpointsConfig=uP;ZI.resolveRegionConfig=aP});var F0=y((yh)=>{var N1=C$(),s$=C0(),z0=D0(),L1=P0(),c$="AWS_ENDPOINT_URL",b$="endpoint_url",Ph=($)=>({environmentVariableSelector:(T)=>{let w=$.split(" ").map((h)=>h.toUpperCase()),P=T[[c$,...w].join("_")];if(P)return P;let I=T[c$];if(I)return I;return},configFileSelector:(T,w)=>{if(w&&T.services){let I=w[["services",T.services].join(N1.CONFIG_PREFIX_SEPARATOR)];if(I){let h=$.split(" ").map((A)=>A.toLowerCase()),U=I[[h.join("_"),b$].join(N1.CONFIG_PREFIX_SEPARATOR)];if(U)return U}}let P=T[b$];if(P)return P;return},default:void 0}),S0=async($)=>N1.loadConfig(Ph($??""))(),Ih=async($)=>{let T=$?.Bucket||"";if(typeof $.Bucket==="string")$.Bucket=T.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(Mh(T)){if($.ForcePathStyle===!0)throw Error("Path-style addressing cannot be used with ARN buckets")}else if(!_h(T)||T.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||T.toLowerCase()!==T||T.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},hh=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Uh=/(\d+\.){3}\d+/,Ah=/\.\./,_h=($)=>hh.test($)&&!Uh.test($)&&!Ah.test($),Mh=($)=>{let[T,w,P,,,I]=$.split(":"),h=T==="arn"&&$.split(":").length>=6,U=Boolean(h&&w&&P&&I);if(h&&!U)throw Error(`Invalid ARN: ${$} was an invalid ARN.`);return U},Xh=($,T,w,P=!1)=>{let I=async()=>{let h;if(P)h=w.clientContextParams?.[$]??w[$]??w[T];else h=w[$]??w[T];if(typeof h==="function")return h();return h};if($==="credentialScope"||T==="CredentialScope")return async()=>{let h=typeof w.credentials==="function"?await w.credentials():w.credentials;return h?.credentialScope??h?.CredentialScope};if($==="accountId"||T==="AccountId")return async()=>{let h=typeof w.credentials==="function"?await w.credentials():w.credentials;return h?.accountId??h?.AccountId};if($==="endpoint"||T==="endpoint")return async()=>{if(w.isCustomEndpoint===!1)return;let h=await I();if(h&&typeof h==="object"){if("url"in h)return h.url.href;if("hostname"in h){let{protocol:U,hostname:A,port:_,path:M}=h;return`${U}//${A}${_?":"+_:""}${M}`}}return h};return I},j0=($)=>{if(typeof $==="object"){if("url"in $){let T=s$.parseUrl($.url);if($.headers){T.headers={};for(let w in $.headers)T.headers[w.toLowerCase()]=$.headers[w].join(", ")}return T}return $}return s$.parseUrl($)};function k$($){return async(T,w,P,I)=>{if(!P.isCustomEndpoint){let A;if(P.serviceConfiguredEndpoint)A=await P.serviceConfiguredEndpoint();else A=await $(P.serviceId);if(A)P.endpoint=()=>Promise.resolve(j0(A)),P.isCustomEndpoint=!0}let h=await p$(T,w,P);if(typeof P.endpointProvider!=="function")throw Error("config.endpointProvider is not set.");let U=P.endpointProvider(h,I);if(P.isCustomEndpoint&&P.endpoint){let A=await P.endpoint();if(A?.headers){U.headers??={};for(let[_,M]of Object.entries(A.headers))U.headers[_]=Array.isArray(M)?M:[M]}}return U}}var p$=async($,T,w)=>{let P={},I=T?.getEndpointParameterInstructions?.()||{};for(let[h,U]of Object.entries(I))switch(U.type){case"staticContextParams":P[h]=U.value;break;case"contextParams":P[h]=$[U.name];break;case"clientContextParams":case"builtInParams":P[h]=await Xh(U.name,h,w,U.type!=="builtInParams")();break;case"operationContextParams":P[h]=U.get($);break;default:throw Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(U))}if(Object.keys(I).length===0)Object.assign(P,w);if(String(w.serviceId).toLowerCase()==="s3")await Ih(P);return P};function Jh($,T,w){if(!$.__smithy_context)$.__smithy_context={features:{}};else if(!$.__smithy_context.features)$.__smithy_context.features={};$.__smithy_context.features[T]=w}function y$($){let T=k$($);return({config:w,instructions:P})=>{return(I,h)=>async(U)=>{if(w.isCustomEndpoint)Jh(h,"ENDPOINT_OVERRIDE","N");let A=await T(U.input,{getEndpointParameterInstructions(){return P}},{...w},h);h.endpointV2=A,h.authSchemes=A.properties?.authSchemes;let _=h.authSchemes?.[0];if(_){h.signing_region=_.signingRegion,h.signing_service=_.signingName;let Y=z0.getSmithyContext(h)?.selectedHttpAuthScheme?.httpAuthOption;if(Y)Y.signingProperties=Object.assign(Y.signingProperties||{},{signing_region:_.signingRegion,signingRegion:_.signingRegion,signing_service:_.signingName,signingName:_.signingName,signingRegionSet:_.signingRegionSet},_.properties)}return I({...U})}}}var Yh={name:"serializerMiddleware"},g$={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Yh.name};function fh($){let T=y$($);return(w,P)=>({applyToStack:(I)=>{I.addRelativeTo(T({config:w,instructions:P}),g$)}})}function Gh($){return(T)=>{let w=T.tls??!0,{endpoint:P,useDualstackEndpoint:I,useFipsEndpoint:h}=T,U=P!=null?async()=>j0(await z0.normalizeProvider(P)()):void 0,_=Object.assign(T,{endpoint:U,tls:w,isCustomEndpoint:!!P,useDualstackEndpoint:z0.normalizeProvider(I??!1),useFipsEndpoint:z0.normalizeProvider(h??!1)}),M=void 0;return _.serviceConfiguredEndpoint=async()=>{if(T.serviceId&&!M)M=$(T.serviceId);return M},_}}class W1{nodes;root;conditions;results;constructor($,T,w,P){this.nodes=$,this.root=T,this.conditions=w,this.results=P}static from($,T,w,P){return new W1($,T,w,P)}}class m${capacity;data=new Map;parameters=[];constructor({size:$,params:T}){if(this.capacity=$??50,T)this.parameters=T}get($,T){let w=this.hash($);if(w===!1)return T();if(!this.data.has(w)){if(this.data.size>this.capacity+10){let P=this.data.keys(),I=0;while(!0){let{value:h,done:U}=P.next();if(this.data.delete(h),U||++I>10)break}}this.data.set(w,T())}return this.data.get(w)}size(){return this.data.size}hash($){let T="",{parameters:w}=this;if(w.length===0)return!1;for(let P of w){let I=String($[P]??"");if(I.includes("|;"))return!1;T+=I+"|;"}return T}}class N extends Error{constructor($){super($);this.name="EndpointError"}}var A0="endpoints";function k($){if(typeof $!=="object"||$==null)return $;if("ref"in $)return`$${k($.ref)}`;if("fn"in $)return`${$.fn}(${($.argv||[]).map(k).join(", ")})`;return JSON.stringify($,null,2)}var d$={},Zh=($,T)=>$===T;function Rh(...$){for(let T of $)if(T!=null)return T;return}var Qh=($)=>{let T=$.split("."),w=[];for(let P of T){let I=P.indexOf("[");if(I!==-1){if(P.indexOf("]")!==P.length-1)throw new N(`Path: '${$}' does not end with ']'`);let h=P.slice(I+1,-1);if(Number.isNaN(parseInt(h)))throw new N(`Invalid array index: '${h}' in path: '${$}'`);if(I!==0)w.push(P.slice(0,I));w.push(h)}else w.push(P)}return w},v$=($,T)=>Qh(T).reduce((w,P)=>{if(typeof w!=="object")throw new N(`Index '${P}' in '${T}' not found in '${JSON.stringify($)}'`);else if(Array.isArray(w)){let I=parseInt(P);return w[I<0?w.length+I:I]}return w[P]},$),Vh=($)=>$!=null,Oh=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),H1=($,T=!1)=>{if(!T)return Oh.test($);let w=$.split(".");for(let P of w)if(!H1(P))return!1;return!0};function Nh($,T,w){return $?T:w}var Lh=($)=>!$,Wh=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),n$=($)=>Wh.test($)||$.startsWith("[")&&$.endsWith("]"),V1={[L1.EndpointURLScheme.HTTP]:80,[L1.EndpointURLScheme.HTTPS]:443},Hh=($)=>{let T=(()=>{try{if($ instanceof URL)return $;if(typeof $==="object"&&"hostname"in $){let{hostname:J,port:f,protocol:G="",path:Q="",query:Z={}}=$,R=new URL(`${G}//${J}${f?`:${f}`:""}${Q}`);return R.search=Object.entries(Z).map(([V,L])=>`${V}=${L}`).join("&"),R}return new URL($)}catch(J){return null}})();if(!T)return console.error(`Unable to parse ${JSON.stringify($)} as a whatwg URL.`),null;let w=T.href,{host:P,hostname:I,pathname:h,protocol:U,search:A}=T;if(A)return null;let _=U.slice(0,-1);if(!Object.values(L1.EndpointURLScheme).includes(_))return null;let M=n$(I),Y=w.includes(`${P}:${V1[_]}`)||typeof $==="string"&&$.includes(`${P}:${V1[_]}`),X=`${P}${Y?`:${V1[_]}`:""}`;return{scheme:_,authority:X,path:h,normalizedPath:h.endsWith("/")?h:`${h}/`,isIp:M}};function Dh($,T,w){if(w===1)return[$];if($==="")return[""];let P=$.split(T);if(w===0)return P;return P.slice(0,w-1).concat(P.slice(1).join(T))}var Eh=($,T)=>$===T,Kh=($,T,w,P)=>{if($==null||T>=w||$.length<w||/[^\u0000-\u007f]/.test($))return null;if(!P)return $.substring(T,w);return $.substring($.length-w,$.length-T)},Bh=($)=>encodeURIComponent($).replace(/[!*'()]/g,(T)=>`%${T.charCodeAt(0).toString(16).toUpperCase()}`),qh={booleanEquals:Zh,coalesce:Rh,getAttr:v$,isSet:Vh,isValidHostLabel:H1,ite:Nh,not:Lh,parseURL:Hh,split:Dh,stringEquals:Eh,substring:Kh,uriEncode:Bh},t$=($,T)=>{let w=[],{referenceRecord:P,endpointParams:I}=T,h=0;while(h<$.length){let U=$.indexOf("{",h);if(U===-1){w.push($.slice(h));break}w.push($.slice(h,U));let A=$.indexOf("}",U);if(A===-1){w.push($.slice(U));break}if($[U+1]==="{"&&$[A+1]==="}")w.push($.slice(U+1,A)),h=A+2;let _=$.substring(U+1,A);if(_.includes("#")){let[M,Y]=_.split("#");w.push(v$(P[M]??I[M],Y))}else w.push(P[_]??I[_]);h=A+1}return w.join("")},xh=({ref:$},T)=>{return T.referenceRecord[$]??T.endpointParams[$]},_0=($,T,w)=>{if(typeof $==="string")return t$($,w);else if($.fn)return u$.callFunction($,w);else if($.ref)return xh($,w);throw new N(`'${T}': ${String($)} is not a string, function or reference.`)},i$=({fn:$,argv:T},w)=>{let P=Array(T.length);for(let U=0;U<P.length;++U){let A=T[U];if(typeof A==="boolean"||typeof A==="number")P[U]=A;else P[U]=u$.evaluateExpression(A,"arg",w)}let I=$.indexOf(".");if(I!==-1){let A=d$[$.slice(0,I)]?.[$.slice(I+1)];if(typeof A==="function")return A(...P)}let h=qh[$];if(typeof h==="function")return h(...P);throw Error(`function ${$} not loaded in endpointFunctions.`)},u$={evaluateExpression:_0,callFunction:i$},r$=($,T)=>{let{assign:w}=$;if(w&&w in T.referenceRecord)throw new N(`'${w}' is already defined in Reference Record.`);let P=i$($,T);T.logger?.debug?.(`${A0} evaluateCondition: ${k($)} = ${k(P)}`);let I=P===""?!0:!!P;if(w!=null)return{result:I,toAssign:{name:w,value:P}};return{result:I}},l$=($,T)=>Object.entries($??{}).reduce((w,[P,I])=>{return w[P]=I.map((h)=>{let U=_0(h,"Header value entry",T);if(typeof U!=="string")throw new N(`Header '${P}' value '${U}' is not a string`);return U}),w},{}),D1=($,T)=>Object.entries($).reduce((w,[P,I])=>{return w[P]=a$.getEndpointProperty(I,T),w},{}),o$=($,T)=>{if(Array.isArray($))return $.map((w)=>o$(w,T));switch(typeof $){case"string":return t$($,T);case"object":if($===null)throw new N(`Unexpected endpoint property: ${$}`);return a$.getEndpointProperties($,T);case"boolean":return $;default:throw new N(`Unexpected endpoint property type: ${typeof $}`)}},a$={getEndpointProperty:o$,getEndpointProperties:D1},e$=($,T)=>{let w=_0($,"Endpoint URL",T);if(typeof w==="string")try{return new URL(w)}catch(P){throw console.error(`Failed to construct URL with ${w}`,P),P}throw new N(`Endpoint URL must be a string, got ${typeof w}`)},O1=1e8,Fh=($,T)=>{let{nodes:w,root:P,results:I,conditions:h}=$,U=P,A={},_={referenceRecord:A,endpointParams:T.endpointParams,logger:T.logger};while(U!==1&&U!==-1&&U<O1){let M=3*(Math.abs(U)-1),[Y,X,J]=[w[M],w[M+1],w[M+2]],[f,G,Q]=h[Y],Z=r$({fn:f,assign:Q,argv:G},_);if(Z.toAssign){let{name:R,value:V}=Z.toAssign;A[R]=V}U=U>=0===Z.result?X:J}if(U>=O1){let M=I[U-O1];if(M[0]===-1){let[,f]=M;throw new N(_0(f,"Error",_))}let[Y,X,J]=M;return{url:e$(Y,_),properties:D1(X,_),headers:l$(J??{},_)}}throw new N("No matching endpoint.")},E1=($=[],T)=>{let w={},P={...T,referenceRecord:{...T.referenceRecord}},I=!1;for(let h of $){let{result:U,toAssign:A}=r$(h,P);if(!U)return{result:U};if(A)I=!0,w[A.name]=A.value,P.referenceRecord[A.name]=A.value,T.logger?.debug?.(`${A0} assign: ${A.name} := ${k(A.value)}`)}if(I)return{result:!0,referenceRecord:w};return{result:!0}},zh=($,T)=>{let{conditions:w,endpoint:P}=$,{result:I,referenceRecord:h}=E1(w,T);if(!I)return;let U=h?{...T,referenceRecord:{...T.referenceRecord,...h}}:T,{url:A,properties:_,headers:M}=P;T.logger?.debug?.(`${A0} Resolving endpoint from template: ${k(P)}`);let Y={url:e$(A,U)};if(M!=null)Y.headers=l$(M,U);if(_!=null)Y.properties=D1(_,U);return Y},Sh=($,T)=>{let{conditions:w,error:P}=$,{result:I,referenceRecord:h}=E1(w,T);if(!I)return;let U=h?{...T,referenceRecord:{...T.referenceRecord,...h}}:T;throw new N(_0(P,"Error",U))},$T=($,T)=>{for(let w of $)if(w.type==="endpoint"){let P=zh(w,T);if(P)return P}else if(w.type==="error")Sh(w,T);else if(w.type==="tree"){let P=TT.evaluateTreeRule(w,T);if(P)return P}else throw new N(`Unknown endpoint rule: ${w}`);throw new N("Rules evaluation failed")},jh=($,T)=>{let{conditions:w,rules:P}=$,{result:I,referenceRecord:h}=E1(w,T);if(!I)return;let U=h?{...T,referenceRecord:{...T.referenceRecord,...h}}:T;return TT.evaluateRules(P,U)},TT={evaluateRules:$T,evaluateTreeRule:jh},Ch=($,T)=>{let{endpointParams:w,logger:P}=T,{parameters:I,rules:h}=$;T.logger?.debug?.(`${A0} Initial EndpointParams: ${k(w)}`);for(let A in I){let _=I[A],M=w[A];if(M==null&&_.default!=null){w[A]=_.default;continue}if(_.required&&M==null)throw new N(`Missing required parameter: '${A}'`)}let U=$T(h,{endpointParams:w,logger:P,referenceRecord:{}});return T.logger?.debug?.(`${A0} Resolved endpoint: ${k(U)}`),U},sh=($)=>{let{endpoint:T}=$;if(T===void 0)$.endpoint=async()=>{throw Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")};return $},ch=k$(S0),bh=Gh(S0),kh=y$(S0),ph=fh(S0);yh.BinaryDecisionDiagram=W1;yh.EndpointCache=m$;yh.EndpointError=N;yh.customEndpointFunctions=d$;yh.decideEndpoint=Fh;yh.endpointMiddleware=kh;yh.endpointMiddlewareOptions=g$;yh.getEndpointFromInstructions=ch;yh.getEndpointPlugin=ph;yh.isIpAddress=n$;yh.isValidHostLabel=H1;yh.middlewareEndpointToEndpointV1=j0;yh.resolveEndpoint=Ch;yh.resolveEndpointConfig=bh;yh.resolveEndpointRequiredConfig=sh;yh.resolveParams=p$;yh.toEndpointV1=j0});var ST=y((DA)=>{var K1=b("node:fs"),IU=C0(),hU=F0(),wT=b("node:crypto"),q=b("node:stream"),UU=($,T,w=(P)=>P)=>$,AU=($)=>{switch($){case"true":return!0;case"false":return!1;default:throw Error(`Unable to parse boolean value "${$}"`)}},_U=($)=>{if($===null||$===void 0)return;if(typeof $==="number"){if($===0||$===1)f0.warn(c0(`Expected boolean, got ${typeof $}: ${$}`));if($===0)return!1;if($===1)return!0}if(typeof $==="string"){let T=$.toLowerCase();if(T==="false"||T==="true")f0.warn(c0(`Expected boolean, got ${typeof $}: ${$}`));if(T==="false")return!1;if(T==="true")return!0}if(typeof $==="boolean")return $;throw TypeError(`Expected boolean, got ${typeof $}: ${$}`)},J0=($)=>{if($===null||$===void 0)return;if(typeof $==="string"){let T=parseFloat($);if(!Number.isNaN(T)){if(String(T)!==String($))f0.warn(c0(`Expected number but observed string: ${$}`));return T}}if(typeof $==="number")return $;throw TypeError(`Expected number, got ${typeof $}: ${$}`)},MU=Math.ceil(340282346638528860000000000000000000000),s0=($)=>{let T=J0($);if(T!==void 0&&!Number.isNaN(T)&&T!==1/0&&T!==-1/0){if(Math.abs(T)>MU)throw TypeError(`Expected 32-bit float, got ${$}`)}return T},Y0=($)=>{if($===null||$===void 0)return;if(Number.isInteger($)&&!Number.isNaN($))return $;throw TypeError(`Expected integer, got ${typeof $}: ${$}`)},XU=Y0,x1=($)=>j1($,32),F1=($)=>j1($,16),z1=($)=>j1($,8),j1=($,T)=>{let w=Y0($);if(w!==void 0&&JU(w,T)!==w)throw TypeError(`Expected ${T}-bit integer, got ${$}`);return w},JU=($,T)=>{switch(T){case 32:return Int32Array.of($)[0];case 16:return Int16Array.of($)[0];case 8:return Int8Array.of($)[0]}},YU=($,T)=>{if($===null||$===void 0){if(T)throw TypeError(`Expected a non-null value for ${T}`);throw TypeError("Expected a non-null value")}return $},MT=($)=>{if($===null||$===void 0)return;if(typeof $==="object"&&!Array.isArray($))return $;let T=Array.isArray($)?"array":typeof $;throw TypeError(`Expected object, got ${T}: ${$}`)},fU=($)=>{if($===null||$===void 0)return;if(typeof $==="string")return $;if(["boolean","number","bigint"].includes(typeof $))return f0.warn(c0(`Expected string, got ${typeof $}: ${$}`)),String($);throw TypeError(`Expected string, got ${typeof $}: ${$}`)},GU=($)=>{if($===null||$===void 0)return;let T=MT($),w=[];for(let P in T)if(T[P]!=null)w.push(P);if(w.length===0)throw TypeError("Unions must have exactly one non-null member. None were found.");if(w.length>1)throw TypeError(`Unions must have exactly one non-null member. Keys ${w} were not null.`);return T},C1=($)=>{if(typeof $=="string")return J0(e($));return J0($)},ZU=C1,XT=($)=>{if(typeof $=="string")return s0(e($));return s0($)},RU=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,e=($)=>{let T=$.match(RU);if(T===null||T[0].length!==$.length)throw TypeError("Expected real number, got implicit NaN");return parseFloat($)},s1=($)=>{if(typeof $=="string")return JT($);return J0($)},QU=s1,VU=s1,OU=($)=>{if(typeof $=="string")return JT($);return s0($)},JT=($)=>{switch($){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw Error(`Unable to parse float value: ${$}`)}},YT=($)=>{if(typeof $==="string")return Y0(e($));return Y0($)},NU=YT,LU=($)=>{if(typeof $==="string")return x1(e($));return x1($)},l=($)=>{if(typeof $==="string")return F1(e($));return F1($)},fT=($)=>{if(typeof $==="string")return z1(e($));return z1($)},c0=($)=>{return String(TypeError($).stack||$).split(`
2
- `).slice(0,5).filter((T)=>!T.includes("stackTraceWarning")).join(`
3
- `)},f0={warn:console.warn},WU=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],c1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function HU($){let T=$.getUTCFullYear(),w=$.getUTCMonth(),P=$.getUTCDay(),I=$.getUTCDate(),h=$.getUTCHours(),U=$.getUTCMinutes(),A=$.getUTCSeconds(),_=I<10?`0${I}`:`${I}`,M=h<10?`0${h}`:`${h}`,Y=U<10?`0${U}`:`${U}`,X=A<10?`0${A}`:`${A}`;return`${WU[P]}, ${_} ${c1[w]} ${T} ${M}:${Y}:${X} GMT`}var DU=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),EU=($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw TypeError("RFC-3339 date-times must be expressed as strings");let T=DU.exec($);if(!T)throw TypeError("Invalid RFC-3339 date-time value");let[w,P,I,h,U,A,_,M]=T,Y=l(o(P)),X=x(I,"month",1,12),J=x(h,"day",1,31);return M0(Y,X,J,{hours:U,minutes:A,seconds:_,fractionalMilliseconds:M})},KU=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),BU=($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw TypeError("RFC-3339 date-times must be expressed as strings");let T=KU.exec($);if(!T)throw TypeError("Invalid RFC-3339 date-time value");let[w,P,I,h,U,A,_,M,Y]=T,X=l(o(P)),J=x(I,"month",1,12),f=x(h,"day",1,31),G=M0(X,J,f,{hours:U,minutes:A,seconds:_,fractionalMilliseconds:M});if(Y.toUpperCase()!="Z")G.setTime(G.getTime()-yU(Y));return G},qU=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$/),xU=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$/),FU=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})$/),zU=($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw TypeError("RFC-7231 date-times must be expressed as strings");let T=qU.exec($);if(T){let[w,P,I,h,U,A,_,M]=T;return M0(l(o(h)),B1(I),x(P,"day",1,31),{hours:U,minutes:A,seconds:_,fractionalMilliseconds:M})}if(T=xU.exec($),T){let[w,P,I,h,U,A,_,M]=T;return sU(M0(jU(h),B1(I),x(P,"day",1,31),{hours:U,minutes:A,seconds:_,fractionalMilliseconds:M}))}if(T=FU.exec($),T){let[w,P,I,h,U,A,_,M]=T;return M0(l(o(M)),B1(P),x(I.trimLeft(),"day",1,31),{hours:h,minutes:U,seconds:A,fractionalMilliseconds:_})}throw TypeError("Invalid RFC-7231 date-time value")},SU=($)=>{if($===null||$===void 0)return;let T;if(typeof $==="number")T=$;else if(typeof $==="string")T=C1($);else if(typeof $==="object"&&$.tag===1)T=$.value;else throw TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(T)||T===1/0||T===-1/0)throw TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(T*1000))},M0=($,T,w,P)=>{let I=T-1;return bU($,I,w),new Date(Date.UTC($,I,w,x(P.hours,"hour",0,23),x(P.minutes,"minute",0,59),x(P.seconds,"seconds",0,60),pU(P.fractionalMilliseconds)))},jU=($)=>{let T=new Date().getUTCFullYear(),w=Math.floor(T/100)*100+l(o($));if(w<T)return w+100;return w},CU=1576800000000,sU=($)=>{if($.getTime()-new Date().getTime()>CU)return new Date(Date.UTC($.getUTCFullYear()-100,$.getUTCMonth(),$.getUTCDate(),$.getUTCHours(),$.getUTCMinutes(),$.getUTCSeconds(),$.getUTCMilliseconds()));return $},B1=($)=>{let T=c1.indexOf($);if(T<0)throw TypeError(`Invalid month: ${$}`);return T+1},cU=[31,28,31,30,31,30,31,31,30,31,30,31],bU=($,T,w)=>{let P=cU[T];if(T===1&&kU($))P=29;if(w>P)throw TypeError(`Invalid day for ${c1[T]} in ${$}: ${w}`)},kU=($)=>{return $%4===0&&($%100!==0||$%400===0)},x=($,T,w,P)=>{let I=fT(o($));if(I<w||I>P)throw TypeError(`${T} must be between ${w} and ${P}, inclusive`);return I},pU=($)=>{if($===null||$===void 0)return 0;return XT("0."+$)*1000},yU=($)=>{let T=$[0],w=1;if(T=="+")w=1;else if(T=="-")w=-1;else throw TypeError(`Offset direction, ${T}, must be "+" or "-"`);let P=Number($.substring(1,3)),I=Number($.substring(4,6));return w*(P*60+I)*60*1000},o=($)=>{let T=0;while(T<$.length-1&&$.charAt(T)==="0")T++;if(T===0)return $;return $.slice(T)},PT=typeof crypto<"u"&&typeof crypto.randomUUID==="function"?crypto.randomUUID.bind(crypto):void 0,H=Array.from({length:256},($,T)=>T.toString(16).padStart(2,"0")),GT=()=>{if(PT)return PT();let $=new Uint8Array(16);return crypto.getRandomValues($),$[6]=$[6]&15|64,$[8]=$[8]&63|128,H[$[0]]+H[$[1]]+H[$[2]]+H[$[3]]+"-"+H[$[4]]+H[$[5]]+"-"+H[$[6]]+H[$[7]]+"-"+H[$[8]]+H[$[9]]+"-"+H[$[10]]+H[$[11]]+H[$[12]]+H[$[13]]+H[$[14]]+H[$[15]]},v=function(T){return Object.assign(new String(T),{deserializeJSON(){return JSON.parse(String(T))},toString(){return String(T)},toJSON(){return String(T)}})};v.from=($)=>{if($&&typeof $==="object"&&($ instanceof v||("deserializeJSON"in $)))return $;else if(typeof $==="string"||Object.getPrototypeOf($)===String.prototype)return v(String($));return v(JSON.stringify($))};v.fromObject=v.from;function gU($){if($.includes(",")||$.includes('"'))$=`"${$.replace(/"/g,"\\\"")}"`;return $}var b1="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",k1="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",p1="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",ZT="(\\d?\\d)",RT="(\\d{4})",mU=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),dU=new RegExp(`^${b1}, ${ZT} ${k1} ${RT} ${p1} GMT$`),vU=new RegExp(`^${b1}, ${ZT}-${k1}-(\\d\\d) ${p1} GMT$`),nU=new RegExp(`^${b1} ${k1} ( [1-9]|\\d\\d) ${p1} ${RT}$`),tU=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],iU=($)=>{if($==null)return;let T=NaN;if(typeof $==="number")T=$;else if(typeof $==="string"){if(!/^-?\d*\.?\d+$/.test($))throw TypeError("parseEpochTimestamp - numeric string invalid.");T=Number.parseFloat($)}else if(typeof $==="object"&&$.tag===1)T=$.value;if(isNaN(T)||Math.abs(T)===1/0)throw TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(T*1000))},uU=($)=>{if($==null)return;if(typeof $!=="string")throw TypeError("RFC3339 timestamps must be strings");let T=mU.exec($);if(!T)throw TypeError(`Invalid RFC3339 timestamp format ${$}`);let[,w,P,I,h,U,A,,_,M]=T;z(P,1,12),z(I,1,31),z(h,0,23),z(U,0,59),z(A,0,60);let Y=new Date(Date.UTC(Number(w),Number(P)-1,Number(I),Number(h),Number(U),Number(A),Number(_)?Math.round(parseFloat(`0.${_}`)*1000):0));if(Y.setUTCFullYear(Number(w)),M.toUpperCase()!="Z"){let[,X,J,f]=/([+-])(\d\d):(\d\d)/.exec(M)||[void 0,"+",0,0],G=X==="-"?1:-1;Y.setTime(Y.getTime()+G*(Number(J)*60*60*1000+Number(f)*60*1000))}return Y},rU=($)=>{if($==null)return;if(typeof $!=="string")throw TypeError("RFC7231 timestamps must be strings.");let T,w,P,I,h,U,A,_;if(_=dU.exec($))[,T,w,P,I,h,U,A]=_;else if(_=vU.exec($))[,T,w,P,I,h,U,A]=_,P=(Number(P)+1900).toString();else if(_=nU.exec($))[,w,T,I,h,U,A,P]=_;if(P&&U){let M=Date.UTC(Number(P),tU.indexOf(w),Number(T),Number(I),Number(h),Number(U),A?Math.round(parseFloat(`0.${A}`)*1000):0);z(T,1,31),z(I,0,23),z(h,0,59),z(U,0,60);let Y=new Date(M);return Y.setUTCFullYear(Number(P)),Y}throw TypeError(`Invalid RFC7231 date-time value ${$}.`)};function z($,T,w){let P=Number($);if(P<T||P>w)throw Error(`Value ${P} out of range [${T}, ${w}]`)}function lU($,T,w){if(w<=0||!Number.isInteger(w))throw Error("Invalid number of delimiters ("+w+") for splitEvery.");let P=$.split(T);if(w===1)return P;let I=[],h="";for(let U=0;U<P.length;U++){if(h==="")h=P[U];else h+=T+P[U];if((U+1)%w===0)I.push(h),h=""}if(h!=="")I.push(h);return I}var oU=($)=>{let T=$.length,w=[],P=!1,I=void 0,h=0;for(let U=0;U<T;++U){let A=$[U];switch(A){case'"':if(I!=="\\")P=!P;break;case",":if(!P)w.push($.slice(h,U)),h=U+1;break}I=A}return w.push($.slice(h)),w.map((U)=>{U=U.trim();let A=U.length;if(A<2)return U;if(U[0]==='"'&&U[A-1]==='"')U=U.slice(1,A-1);return U.replace(/\\"/g,'"')})},IT=/^-?\d*(\.\d+)?$/;class k0{string;type;constructor($,T){if(this.string=$,this.type=T,!IT.test($))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]($){if(!$||typeof $!=="object")return!1;let T=$;return k0.prototype.isPrototypeOf($)||T.type==="bigDecimal"&&IT.test(T.string)}}function aU($){return new k0(String($),"bigDecimal")}var QT={},S1={};for(let $=0;$<256;$++){let T=$.toString(16).toLowerCase();if(T.length===1)T=`0${T}`;QT[$]=T,S1[T]=$}function eU($){if($.length%2!==0)throw Error("Hex encoded strings must have an even number length");let T=new Uint8Array($.length/2);for(let w=0;w<$.length;w+=2){let P=$.slice(w,w+2).toLowerCase();if(P in S1)T[w/2]=S1[P];else throw Error(`Cannot decode unrecognized sequence ${P} as hexadecimal`)}return T}function VT($){let T="";for(let w=0;w<$.byteLength;w++)T+=QT[$[w]];return T}var OT=($)=>typeof ArrayBuffer==="function"&&$ instanceof ArrayBuffer||Object.prototype.toString.call($)==="[object ArrayBuffer]",a=($,T=0,w=$.byteLength-T)=>{if(!OT($))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof $} (${$})`);return Buffer.from($,T,w)},p0=($,T)=>{if(typeof $!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof $} (${$})`);return T?Buffer.from($,T):Buffer.from($)},$A=/^[A-Za-z0-9+/]*={0,2}$/,y1=($)=>{if($.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!$A.exec($))throw TypeError("Invalid base64 string.");let T=p0($,"base64");return new Uint8Array(T.buffer,T.byteOffset,T.byteLength)},y0=($)=>{let T=p0($,"utf8");return new Uint8Array(T.buffer,T.byteOffset,T.byteLength/Uint8Array.BYTES_PER_ELEMENT)},G0=($)=>{let T;if(typeof $==="string")T=y0($);else T=$;if(typeof T!=="object"||typeof T.byteOffset!=="number"||typeof T.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return a(T.buffer,T.byteOffset,T.byteLength).toString("base64")},TA=($)=>{if(!$)return 0;if(typeof $==="string")return Buffer.byteLength($);else if(typeof $.byteLength==="number")return $.byteLength;else if(typeof $.size==="number")return $.size;else if(typeof $.start==="number"&&typeof $.end==="number")return $.end+1-$.start;else if($ instanceof K1.ReadStream){if($.path!=null)return K1.lstatSync($.path).size;else if(typeof $.fd==="number")return K1.fstatSync($.fd).size}throw Error(`Body Length computation failed for ${$}`)},NT=($)=>{if(typeof $==="string")return y0($);if(ArrayBuffer.isView($))return new Uint8Array($.buffer,$.byteOffset,$.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array($)},g1=($)=>{if(typeof $==="string")return $;if(typeof $!=="object"||typeof $.byteOffset!=="number"||typeof $.byteLength!=="number")throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return a($.buffer,$.byteOffset,$.byteLength).toString("utf8")},LT=($,T)=>(w,P)=>async(I)=>{let{response:h}=await w(I);try{let U=await T(h,$);return{response:h,output:U}}catch(U){if(Object.defineProperty(U,"$response",{value:h,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in U)){try{U.message+=`
4
- Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(_){if(!P.logger||P.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else P.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof U.$responseBodyText<"u"){if(U.$response)U.$response.body=U.$responseBodyText}try{if(IU.HttpResponse.isInstance(h)){let{headers:_={}}=h,M=Object.entries(_);U.$metadata={httpStatusCode:h.statusCode,requestId:q1(/^x-[\w-]+-request-?id$/,M),extendedRequestId:q1(/^x-[\w-]+-id-2$/,M),cfId:q1(/^x-[\w-]+-cf-id$/,M)}}}catch(_){}}throw U}},q1=($,T)=>{return(T.find(([w])=>{return w.match($)})||[void 0,void 0])[1]},WT=($,T)=>(w,P)=>async(I)=>{let h=$,U=P.endpointV2?async()=>hU.toEndpointV1(P.endpointV2):h.endpoint;if(!U)throw Error("No valid endpoint provider available.");let A=await T(I.input,{...$,endpoint:U});return w({...I,request:A})},HT={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},DT={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function wA($,T,w){return{applyToStack:(P)=>{P.add(LT($,w),HT),P.add(WT($,T),DT)}}}class ET{algorithmIdentifier;secret;hash;constructor($,T){this.algorithmIdentifier=$,this.secret=T,this.reset()}update($,T){this.hash.update(NT(hT($,T)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?wT.createHmac(this.algorithmIdentifier,hT(this.secret)):wT.createHash(this.algorithmIdentifier)}}function hT($,T){if(Buffer.isBuffer($))return $;if(typeof $==="string")return p0($,T);if(ArrayBuffer.isView($))return a($.buffer,$.byteOffset,$.byteLength);return a($)}class X0 extends Uint8Array{static fromString($,T="utf-8"){if(typeof $==="string"){if(T==="base64")return X0.mutate(y1($));return X0.mutate(y0($))}throw Error(`Unsupported conversion from ${typeof $} to Uint8ArrayBlobAdapter.`)}static mutate($){return Object.setPrototypeOf($,X0.prototype),$}transformToString($="utf-8"){if($==="base64")return G0(this);return g1(this)}}var KT=class extends q.Duplex{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;pendingCallback=null;constructor({expectedChecksum:T,checksum:w,source:P,checksumSourceLocation:I,base64Encoder:h}){super();if(typeof P.pipe==="function")this.source=P;else throw Error(`@smithy/util-stream: unsupported source type ${P?.constructor?.name??P} in ChecksumStream.`);this.base64Encoder=h??G0,this.expectedChecksum=T,this.checksum=w,this.checksumSourceLocation=I,this.source.pipe(this)}_read(T){if(this.pendingCallback){let w=this.pendingCallback;this.pendingCallback=null,w()}}_write(T,w,P){try{if(this.checksum.update(T),!this.push(T)){this.pendingCallback=P;return}}catch(I){return P(I)}return P()}async _final(T){try{let w=await this.checksum.digest(),P=this.base64Encoder(w);if(this.expectedChecksum!==P)return T(Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${P}" in response header "${this.checksumSourceLocation}".`))}catch(w){return T(w)}return this.push(null),T()}},S=($)=>typeof ReadableStream==="function"&&($?.constructor?.name===ReadableStream.name||$ instanceof ReadableStream),BT=($)=>{return typeof Blob==="function"&&($?.constructor?.name===Blob.name||$ instanceof Blob)},PA=typeof ReadableStream==="function"?ReadableStream:function(){};class qT extends PA{}var IA=({expectedChecksum:$,checksum:T,source:w,checksumSourceLocation:P,base64Encoder:I})=>{if(!S(w))throw Error(`@smithy/util-stream: unsupported source type ${w?.constructor?.name??w} in ChecksumStream.`);let h=I??G0;if(typeof TransformStream!=="function")throw Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let U=new TransformStream({start(){},async transform(_,M){T.update(_),M.enqueue(_)},async flush(_){let M=await T.digest(),Y=h(M);if($!==Y){let X=Error(`Checksum mismatch: expected "${$}" but received "${Y}" in response header "${P}".`);_.error(X)}else _.terminate()}});w.pipeThrough(U);let A=U.readable;return Object.setPrototypeOf(A,qT.prototype),A};function hA($){if(typeof ReadableStream==="function"&&S($.source))return IA($);return new KT($)}class b0{allocByteArray;byteLength=0;byteArrays=[];constructor($){this.allocByteArray=$}push($){this.byteArrays.push($),this.byteLength+=$.byteLength}flush(){if(this.byteArrays.length===1){let w=this.byteArrays[0];return this.reset(),w}let $=this.allocByteArray(this.byteLength),T=0;for(let w=0;w<this.byteArrays.length;++w){let P=this.byteArrays[w];$.set(P,T),T+=P.byteLength}return this.reset(),$}reset(){this.byteArrays=[],this.byteLength=0}}function UA($,T,w){let P=$.getReader(),I=!1,h=0,U=["",new b0((M)=>new Uint8Array(M))],A=-1,_=async(M)=>{let{value:Y,done:X}=await P.read(),J=Y;if(X){if(A!==-1){let f=r(U,A);if(p(f)>0)M.enqueue(f)}M.close()}else{let f=FT(J,!1);if(A!==f){if(A>=0)M.enqueue(r(U,A));A=f}if(A===-1){M.enqueue(J);return}let G=p(J);h+=G;let Q=p(U[A]);if(G>=T&&Q===0)M.enqueue(J);else{let Z=xT(U,A,J);if(!I&&h>T*2)I=!0,w?.warn(`@smithy/util-stream - stream chunk size ${G} is below threshold of ${T}, automatically buffering.`);if(Z>=T)M.enqueue(r(U,A));else await _(M)}}};return new ReadableStream({pull:_})}function xT($,T,w){switch(T){case 0:return $[0]+=w,p($[0]);case 1:case 2:return $[T].push(w),p($[T])}}function r($,T){switch(T){case 0:let w=$[0];return $[0]="",w;case 1:case 2:return $[T].flush()}throw Error(`@smithy/util-stream - invalid index ${T} given to flush()`)}function p($){return $?.byteLength??$?.length??0}function FT($,T=!0){if(T&&typeof Buffer<"u"&&$ instanceof Buffer)return 2;if($ instanceof Uint8Array)return 1;if(typeof $==="string")return 0;return-1}function AA($,T,w){if(S($))return UA($,T,w);let P=new q.Readable({read(){}}),I=!1,h=0,U=["",new b0((_)=>new Uint8Array(_)),new b0((_)=>Buffer.from(new Uint8Array(_)))],A=-1;return $.on("data",(_)=>{let M=FT(_,!0);if(A!==M){if(A>=0)P.push(r(U,A));A=M}if(A===-1){P.push(_);return}let Y=p(_);h+=Y;let X=p(U[A]);if(Y>=T&&X===0)P.push(_);else{let J=xT(U,A,_);if(!I&&h>T*2)I=!0,w?.warn(`@smithy/util-stream - stream chunk size ${Y} is below threshold of ${T}, automatically buffering.`);if(J>=T)P.push(r(U,A))}}),$.on("end",()=>{if(A!==-1){let _=r(U,A);if(p(_)>0)P.push(_)}P.push(null)}),P}var _A=($,T)=>{let{base64Encoder:w,bodyLengthChecker:P,checksumAlgorithmFn:I,checksumLocationName:h,streamHasher:U}=T,A=w!==void 0&&P!==void 0&&I!==void 0&&h!==void 0&&U!==void 0,_=A?U(I,$):void 0,M=$.getReader();return new ReadableStream({async pull(Y){let{value:X,done:J}=await M.read();if(J){if(Y.enqueue(`0\r
5
- `),A){let f=w(await _);Y.enqueue(`${h}:${f}\r
6
- `),Y.enqueue(`\r
7
- `)}Y.close()}else Y.enqueue(`${(P(X)||0).toString(16)}\r
8
- ${X}\r
9
- `)}})};function MA($,T){let w=$,P=$;if(S(P))return _A(P,T);let{base64Encoder:I,bodyLengthChecker:h,checksumAlgorithmFn:U,checksumLocationName:A,streamHasher:_}=T,M=I!==void 0&&U!==void 0&&A!==void 0&&_!==void 0,Y=M?_(U,w):void 0,X=new q.Readable({read:()=>{}});return w.on("data",(J)=>{let f=h(J)||0;if(f===0)return;X.push(`${f.toString(16)}\r
10
- `),X.push(J),X.push(`\r
11
- `)}),w.on("end",async()=>{if(X.push(`0\r
12
- `),M){let J=I(await Y);X.push(`${A}:${J}\r
13
- `),X.push(`\r
14
- `)}X.push(null)}),X}async function XA($,T){let w=0,P=[],I=$.getReader(),h=!1;while(!h){let{done:_,value:M}=await I.read();if(M)P.push(M),w+=M?.byteLength??0;if(w>=T)break;h=_}I.releaseLock();let U=new Uint8Array(Math.min(T,w)),A=0;for(let _ of P){if(_.byteLength>U.byteLength-A){U.set(_.subarray(0,U.byteLength-A),A);break}else U.set(_,A);A+=_.length}return U}var JA=($,T)=>{if(S($))return XA($,T);return new Promise((w,P)=>{let I=new YA;I.limit=T,$.pipe(I),$.on("error",(h)=>{I.end(),P(h)}),I.on("error",P),I.on("finish",function(){let h=new Uint8Array(Buffer.concat(this.buffers));w(h)})})},YA=class extends q.Writable{buffers=[];limit=1/0;bytesBuffered=0;_write(T,w,P){if(this.buffers.push(T),this.bytesBuffered+=T.byteLength??0,this.bytesBuffered>=this.limit){let I=this.bytesBuffered-this.limit,h=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=h.subarray(0,h.byteLength-I),this.emit("finish")}P()}},fA=async($)=>{if(typeof Blob==="function"&&$ instanceof Blob||$.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==void 0)return new Uint8Array(await $.arrayBuffer());return GA($)}return ZA($)};async function GA($){let T=await RA($),w=y1(T);return new Uint8Array(w)}async function ZA($){let T=[],w=$.getReader(),P=!1,I=0;while(!P){let{done:A,value:_}=await w.read();if(_)T.push(_),I+=_.length;P=A}let h=new Uint8Array(I),U=0;for(let A of T)h.set(A,U),U+=A.length;return h}function RA($){return new Promise((T,w)=>{let P=new FileReader;P.onloadend=()=>{if(P.readyState!==2)return w(Error("Reader aborted too early"));let I=P.result??"",h=I.indexOf(","),U=h>-1?h+1:I.length;T(I.substring(U))},P.onabort=()=>w(Error("Read aborted")),P.onerror=()=>w(P.error),P.readAsDataURL($)})}var UT="The stream has already been transformed.",QA=($)=>{if(!AT($)&&!S($)){let I=$?.__proto__?.constructor?.name||$;throw Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${I}`)}let T=!1,w=async()=>{if(T)throw Error(UT);return T=!0,await fA($)},P=(I)=>{if(typeof I.stream!=="function")throw Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
15
- 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 I.stream()};return Object.assign($,{transformToByteArray:w,transformToString:async(I)=>{let h=await w();if(I==="base64")return G0(h);else if(I==="hex")return VT(h);else if(I===void 0||I==="utf8"||I==="utf-8")return g1(h);else if(typeof TextDecoder==="function")return new TextDecoder(I).decode(h);else throw Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(T)throw Error(UT);if(T=!0,AT($))return P($);else if(S($))return $;else throw Error(`Cannot transform payload to web stream, got ${$}`)}})},AT=($)=>typeof Blob==="function"&&$ instanceof Blob;class zT extends q.Writable{bufferedBytes=[];_write($,T,w){this.bufferedBytes.push($),w()}}var VA=($)=>typeof ReadableStream==="function"&&$ instanceof ReadableStream;async function OA($){let T=[],w=$.getReader(),P=!1,I=0;while(!P){let{done:A,value:_}=await w.read();if(_)T.push(_),I+=_.length;P=A}let h=new Uint8Array(I),U=0;for(let A of T)h.set(A,U),U+=A.length;return h}var NA=($)=>{if(VA($))return OA($);return new Promise((T,w)=>{let P=new zT;$.pipe(P),$.on("error",(I)=>{P.end(),w(I)}),P.on("error",w),P.on("finish",function(){let I=new Uint8Array(Buffer.concat(this.bufferedBytes));T(I)})})},_T="The stream has already been transformed.",LA=($)=>{if(!($ instanceof q.Readable))try{return QA($)}catch(P){let I=$?.__proto__?.constructor?.name||$;throw Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${I}`)}let T=!1,w=async()=>{if(T)throw Error(_T);return T=!0,await NA($)};return Object.assign($,{transformToByteArray:w,transformToString:async(P)=>{let I=await w();if(P===void 0||Buffer.isEncoding(P))return a(I.buffer,I.byteOffset,I.byteLength).toString(P);else return new TextDecoder(P).decode(I)},transformToWebStream:()=>{if(T)throw Error(_T);if($.readableFlowing!==null)throw Error("The stream has been consumed by other callbacks.");if(typeof q.Readable.toWeb!=="function")throw Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return T=!0,q.Readable.toWeb($)}})};async function WA($){if(typeof $.stream==="function")$=$.stream();return $.tee()}async function HA($){if(S($)||BT($))return WA($);let T=new q.PassThrough,w=new q.PassThrough;return $.pipe(T),$.pipe(w),[T,w]}DA.ChecksumStream=KT;DA.Hash=ET;DA.LazyJsonString=v;DA.NumericValue=k0;DA.Uint8ArrayBlobAdapter=X0;DA._parseEpochTimestamp=iU;DA._parseRfc3339DateTimeWithOffset=uU;DA._parseRfc7231DateTime=rU;DA.calculateBodyLength=TA;DA.copyDocumentWithTransform=UU;DA.createBufferedReadable=AA;DA.createChecksumStream=hA;DA.dateToUtcString=HU;DA.deserializerMiddleware=LT;DA.deserializerMiddlewareOption=HT;DA.expectBoolean=_U;DA.expectByte=z1;DA.expectFloat32=s0;DA.expectInt=XU;DA.expectInt32=x1;DA.expectLong=Y0;DA.expectNonNull=YU;DA.expectNumber=J0;DA.expectObject=MT;DA.expectShort=F1;DA.expectString=fU;DA.expectUnion=GU;DA.fromArrayBuffer=a;DA.fromBase64=y1;DA.fromHex=eU;DA.fromString=p0;DA.fromUtf8=y0;DA.generateIdempotencyToken=GT;DA.getAwsChunkedEncodingStream=MA;DA.getSerdePlugin=wA;DA.handleFloat=QU;DA.headStream=JA;DA.isArrayBuffer=OT;DA.isBlob=BT;DA.isReadableStream=S;DA.limitedParseDouble=s1;DA.limitedParseFloat=VU;DA.limitedParseFloat32=OU;DA.logger=f0;DA.nv=aU;DA.parseBoolean=AU;DA.parseEpochTimestamp=SU;DA.parseRfc3339DateTime=EU;DA.parseRfc3339DateTimeWithOffset=BU;DA.parseRfc7231DateTime=zU;DA.quoteHeader=gU;DA.sdkStreamMixin=LA;DA.serializerMiddleware=WT;DA.serializerMiddlewareOption=DT;DA.splitEvery=lU;DA.splitHeader=oU;DA.splitStream=HA;DA.strictParseByte=fT;DA.strictParseDouble=C1;DA.strictParseFloat=ZU;DA.strictParseFloat32=XT;DA.strictParseInt=NU;DA.strictParseInt32=LU;DA.strictParseLong=YT;DA.strictParseShort=l;DA.toBase64=G0;DA.toHex=VT;DA.toUint8Array=NT;DA.toUtf8=g1;DA.v4=GT});var C0=y((o_)=>{var O=ST(),E=h1(),g_=P0(),n=async($=new Uint8Array,T)=>{if($ instanceof Uint8Array)return O.Uint8ArrayBlobAdapter.mutate($);if(!$)return O.Uint8ArrayBlobAdapter.mutate(new Uint8Array);let w=T.streamCollector($);return O.Uint8ArrayBlobAdapter.mutate(await w)};function R0($){return encodeURIComponent($).replace(/[!'()*]/g,function(T){return"%"+T.charCodeAt(0).toString(16).toUpperCase()})}class $0{serdeContext;setSerdeContext($){this.serdeContext=$}}class j{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor($){this.method=$.method||"GET",this.hostname=$.hostname||"localhost",this.port=$.port,this.query=$.query||{},this.headers=$.headers||{},this.body=$.body,this.protocol=$.protocol?$.protocol.slice(-1)!==":"?`${$.protocol}:`:$.protocol:"https:",this.path=$.path?$.path.charAt(0)!=="/"?`/${$.path}`:$.path:"/",this.username=$.username,this.password=$.password,this.fragment=$.fragment}static clone($){let T=new j({...$,headers:{...$.headers}});if(T.query)T.query=m_(T.query);return T}static isInstance($){if(!$)return!1;let T=$;return"method"in T&&"protocol"in T&&"hostname"in T&&"path"in T&&typeof T.query==="object"&&typeof T.headers==="object"}clone(){return j.clone(this)}}function m_($){return Object.keys($).reduce((T,w)=>{let P=$[w];return{...T,[w]:Array.isArray(P)?[...P]:P}},{})}class m1{statusCode;reason;headers;body;constructor($){this.statusCode=$.statusCode,this.reason=$.reason,this.headers=$.headers||{},this.body=$.body}static isInstance($){if(!$)return!1;let T=$;return typeof T.statusCode==="number"&&typeof T.headers==="object"}}class g0 extends $0{options;compositeErrorRegistry;constructor($){super();this.options=$,this.compositeErrorRegistry=E.TypeRegistry.for($.defaultNamespace);for(let T of $.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(T)}getRequestType(){return j}getResponseType(){return m1}setSerdeContext($){if(this.serdeContext=$,this.serializer.setSerdeContext($),this.deserializer.setSerdeContext($),this.getPayloadCodec())this.getPayloadCodec().setSerdeContext($)}updateServiceEndpoint($,T){if("url"in T){if($.protocol=T.url.protocol,$.hostname=T.url.hostname,$.port=T.url.port?Number(T.url.port):void 0,$.path=T.url.pathname,$.fragment=T.url.hash||void 0,$.username=T.url.username||void 0,$.password=T.url.password||void 0,!$.query)$.query={};for(let[w,P]of T.url.searchParams.entries())$.query[w]=P;if(T.headers)for(let w in T.headers)$.headers[w]=T.headers[w].join(", ");return $}else{if($.protocol=T.protocol,$.hostname=T.hostname,$.port=T.port?Number(T.port):void 0,$.path=T.path,$.query={...T.query},T.headers)for(let w in T.headers)$.headers[w]=T.headers[w];return $}}setHostPrefix($,T,w){if(this.serdeContext?.disableHostPrefix)return;let P=E.NormalizedSchema.of(T.input),I=E.translateTraits(T.traits??{});if(I.endpoint){let h=I.endpoint?.[0];if(typeof h==="string"){for(let[U,A]of P.structIterator()){if(!A.getMergedTraits().hostLabel)continue;let _=w[U];if(typeof _!=="string")throw Error(`@smithy/core/schema - ${U} in input must be a string as hostLabel.`);h=h.replace(`{${U}}`,_)}$.hostname=h+$.hostname}}}deserializeMetadata($){return{httpStatusCode:$.statusCode,requestId:$.headers["x-amzn-requestid"]??$.headers["x-amzn-request-id"]??$.headers["x-amz-request-id"],extendedRequestId:$.headers["x-amz-id-2"],cfId:$.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:$,requestSchema:T,initialRequest:w}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:$,requestSchema:T,initialRequest:w})}async deserializeEventStream({response:$,responseSchema:T,initialResponseContainer:w}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:$,responseSchema:T,initialResponseContainer:w})}async loadEventStreamCapability(){let{EventStreamSerde:$}=await import("./index-1.1.35-4ngbsgjz.mjs");return new $({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,w,P,I){return[]}getEventStreamMarshaller(){let $=this.serdeContext;if(!$.eventStreamMarshaller)throw Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return $.eventStreamMarshaller}}class CT extends g0{async serializeRequest($,T,w){let P=T&&typeof T==="object"?T:{},I=this.serializer,h={},U={},A=await w.endpoint(),_=E.NormalizedSchema.of($?.input),M=[],Y=[],X=!1,J,f=new j({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:h,headers:U,body:void 0});if(A){this.updateServiceEndpoint(f,A),this.setHostPrefix(f,$,P);let G=E.translateTraits($.traits);if(G.http){f.method=G.http[0];let[Q,Z]=G.http[1].split("?");if(f.path=="/")f.path=Q;else f.path+=Q;let R=new URLSearchParams(Z??"");for(let[V,L]of R)h[V]=L}}for(let[G,Q]of _.structIterator()){let Z=Q.getMergedTraits()??{},R=P[G];if(R==null&&!Q.isIdempotencyToken()){if(Z.httpLabel){if(f.path.includes(`{${G}+}`)||f.path.includes(`{${G}}`))throw Error(`No value provided for input HTTP label: ${G}.`)}continue}if(Z.httpPayload)if(Q.isStreaming())if(Q.isStructSchema()){if(P[G])J=await this.serializeEventStream({eventStream:P[G],requestSchema:_})}else J=R;else I.write(Q,R),J=I.flush();else if(Z.httpLabel){I.write(Q,R);let V=I.flush();if(f.path.includes(`{${G}+}`))f.path=f.path.replace(`{${G}+}`,V.split("/").map(R0).join("/"));else if(f.path.includes(`{${G}}`))f.path=f.path.replace(`{${G}}`,R0(V))}else if(Z.httpHeader)I.write(Q,R),U[Z.httpHeader.toLowerCase()]=String(I.flush());else if(typeof Z.httpPrefixHeaders==="string")for(let V in R){let L=R[V],W=Z.httpPrefixHeaders+V;I.write([Q.getValueSchema(),{httpHeader:W}],L),U[W.toLowerCase()]=I.flush()}else if(Z.httpQuery||Z.httpQueryParams)this.serializeQuery(Q,R,h);else X=!0,M.push(G),Y.push(Q)}if(X&&P){let[G,Q]=(_.getName(!0)??"#Unknown").split("#"),Z=_.getSchema()[6],R=[3,G,Q,_.getMergedTraits(),M,Y,void 0];if(Z)R[6]=Z;else R.pop();I.write(R,P),J=I.flush()}return f.headers=U,f.query=h,f.body=J,f}serializeQuery($,T,w){let P=this.serializer,I=$.getMergedTraits();if(I.httpQueryParams){for(let h in T)if(!(h in w)){let U=T[h],A=$.getValueSchema();Object.assign(A.getMergedTraits(),{...I,httpQuery:h,httpQueryParams:void 0}),this.serializeQuery(A,U,w)}return}if($.isListSchema()){let h=!!$.getMergedTraits().sparse,U=[];for(let A of T){P.write([$.getValueSchema(),I],A);let _=P.flush();if(h||_!==void 0)U.push(_)}w[I.httpQuery]=U}else P.write([$,I],T),w[I.httpQuery]=P.flush()}async deserializeResponse($,T,w){let P=this.deserializer,I=E.NormalizedSchema.of($.output),h={};if(w.statusCode>=300){let A=await n(w.body,T);if(A.byteLength>0)Object.assign(h,await P.read(15,A));throw await this.handleError($,T,w,h,this.deserializeMetadata(w)),Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let A in w.headers){let _=w.headers[A];delete w.headers[A],w.headers[A.toLowerCase()]=_}let U=await this.deserializeHttpMessage(I,T,w,h);if(U.length){let A=await n(w.body,T);if(A.byteLength>0){let _=await P.read(I,A);for(let M of U)if(_[M]!=null)h[M]=_[M]}}else if(U.discardResponseBody)await n(w.body,T);return h.$metadata=this.deserializeMetadata(w),h}async deserializeHttpMessage($,T,w,P,I){let h;if(P instanceof Set)h=I;else h=P;let U=!0,A=this.deserializer,_=E.NormalizedSchema.of($),M=[];for(let[Y,X]of _.structIterator()){let J=X.getMemberTraits();if(J.httpPayload){if(U=!1,X.isStreaming())if(X.isStructSchema())h[Y]=await this.deserializeEventStream({response:w,responseSchema:_});else h[Y]=O.sdkStreamMixin(w.body);else if(w.body){let G=await n(w.body,T);if(G.byteLength>0)h[Y]=await A.read(X,G)}}else if(J.httpHeader){let f=String(J.httpHeader).toLowerCase(),G=w.headers[f];if(G!=null)if(X.isListSchema()){let Q=X.getValueSchema();Q.getMergedTraits().httpHeader=f;let Z;if(Q.isTimestampSchema()&&Q.getSchema()===4)Z=O.splitEvery(G,",",2);else Z=O.splitHeader(G);let R=[];for(let V of Z)R.push(await A.read(Q,V.trim()));h[Y]=R}else h[Y]=await A.read(X,G)}else if(J.httpPrefixHeaders!==void 0){h[Y]={};for(let f in w.headers)if(f.startsWith(J.httpPrefixHeaders)){let G=w.headers[f],Q=X.getValueSchema();Q.getMergedTraits().httpHeader=f,h[Y][f.slice(J.httpPrefixHeaders.length)]=await A.read(Q,G)}}else if(J.httpResponseCode)h[Y]=w.statusCode;else M.push(Y)}return M.discardResponseBody=U,M}}class sT extends g0{async serializeRequest($,T,w){let P=this.serializer,I={},h={},U=await w.endpoint(),A=E.NormalizedSchema.of($?.input),_=A.getSchema(),M,Y=T&&typeof T==="object"?T:{},X=new j({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:I,headers:h,body:void 0});if(U)this.updateServiceEndpoint(X,U),this.setHostPrefix(X,$,Y);if(Y){let J=A.getEventStreamMember();if(J){if(Y[J]){let f={};for(let[G,Q]of A.structIterator())if(G!==J&&Y[G])P.write(Q,Y[G]),f[G]=P.flush();M=await this.serializeEventStream({eventStream:Y[J],requestSchema:A,initialRequest:f})}}else P.write(_,Y),M=P.flush()}return X.headers=Object.assign(X.headers,h),X.query=I,X.body=M,X.method="POST",X}async deserializeResponse($,T,w){let P=this.deserializer,I=E.NormalizedSchema.of($.output),h={};if(w.statusCode>=300){let A=await n(w.body,T);if(A.byteLength>0)Object.assign(h,await P.read(15,A));throw await this.handleError($,T,w,h,this.deserializeMetadata(w)),Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(let A in w.headers){let _=w.headers[A];delete w.headers[A],w.headers[A.toLowerCase()]=_}let U=I.getEventStreamMember();if(U)h[U]=await this.deserializeEventStream({response:w,responseSchema:I,initialResponseContainer:h});else{let A=await n(w.body,T);if(A.byteLength>0)Object.assign(h,await P.read(I,A))}return h.$metadata=this.deserializeMetadata(w),h}}var cT=($,T,w,P,I,h)=>{if(T!=null&&T[w]!==void 0){let U=P();if(U==null||U.length<=0)throw Error("Empty value provided for input HTTP label: "+w+".");$=$.replace(I,h?U.split("/").map((A)=>R0(A)).join("/"):R0(U))}else throw Error("No value provided for input HTTP label: "+w+".");return $};function d_($,T){return new d1($,T)}class d1{input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor($,T){this.input=$,this.context=T}async build(){let{hostname:$,protocol:T="https",port:w,path:P}=await this.context.endpoint();this.path=P;for(let I of this.resolvePathStack)I(this.path);return new j({protocol:T,hostname:this.hostname||$,port:w,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn($){return this.hostname=$,this}bp($){return this.resolvePathStack.push((T)=>{this.path=`${T?.endsWith("/")?T.slice(0,-1):T||""}`+$}),this}p($,T,w,P){return this.resolvePathStack.push((I)=>{this.path=cT(I,this.input,$,T,w,P)}),this}h($){return this.headers=$,this}q($){return this.query=$,this}b($){return this.body=$,this}m($){return this.method=$,this}}function v1($,T){if(T.timestampFormat.useTrait){if($.isTimestampSchema()&&($.getSchema()===5||$.getSchema()===6||$.getSchema()===7))return $.getSchema()}let{httpLabel:w,httpPrefixHeaders:P,httpHeader:I,httpQuery:h}=$.getMergedTraits();return(T.httpBindings?typeof P==="string"||Boolean(I)?6:Boolean(h)||Boolean(w)?5:void 0:void 0)??T.timestampFormat.default}class n1 extends $0{settings;constructor($){super();this.settings=$}read($,T){let w=E.NormalizedSchema.of($);if(w.isListSchema())return O.splitHeader(T).map((P)=>this.read(w.getValueSchema(),P));if(w.isBlobSchema())return(this.serdeContext?.base64Decoder??O.fromBase64)(T);if(w.isTimestampSchema())switch(v1(w,this.settings)){case 5:return O._parseRfc3339DateTimeWithOffset(T);case 6:return O._parseRfc7231DateTime(T);case 7:return O._parseEpochTimestamp(T);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",T),new Date(T)}if(w.isStringSchema()){let P=w.getMergedTraits().mediaType,I=T;if(P){if(w.getMergedTraits().httpHeader)I=this.base64ToUtf8(I);if(P==="application/json"||P.endsWith("+json"))I=O.LazyJsonString.from(I);return I}}if(w.isNumericSchema())return Number(T);if(w.isBigIntegerSchema())return BigInt(T);if(w.isBigDecimalSchema())return new O.NumericValue(T,"bigDecimal");if(w.isBooleanSchema())return String(T).toLowerCase()==="true";return T}base64ToUtf8($){return(this.serdeContext?.utf8Encoder??O.toUtf8)((this.serdeContext?.base64Decoder??O.fromBase64)($))}}class bT extends $0{codecDeserializer;stringDeserializer;constructor($,T){super();this.codecDeserializer=$,this.stringDeserializer=new n1(T)}setSerdeContext($){this.stringDeserializer.setSerdeContext($),this.codecDeserializer.setSerdeContext($),this.serdeContext=$}read($,T){let w=E.NormalizedSchema.of($),P=w.getMergedTraits(),I=this.serdeContext?.utf8Encoder??O.toUtf8;if(P.httpHeader||P.httpResponseCode)return this.stringDeserializer.read(w,I(T));if(P.httpPayload){if(w.isBlobSchema()){let h=this.serdeContext?.utf8Decoder??O.fromUtf8;if(typeof T==="string")return h(T);return T}else if(w.isStringSchema()){if("byteLength"in T)return I(T);return T}}return this.codecDeserializer.read(w,T)}}class t1 extends $0{settings;stringBuffer="";constructor($){super();this.settings=$}write($,T){let w=E.NormalizedSchema.of($);switch(typeof T){case"object":if(T===null){this.stringBuffer="null";return}if(w.isTimestampSchema()){if(!(T instanceof Date))throw Error(`@smithy/core/protocols - received non-Date value ${T} when schema expected Date in ${w.getName(!0)}`);switch(v1(w,this.settings)){case 5:this.stringBuffer=T.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=O.dateToUtcString(T);break;case 7:this.stringBuffer=String(T.getTime()/1000);break;default:console.warn("Missing timestamp format, using epoch seconds",T),this.stringBuffer=String(T.getTime()/1000)}return}if(w.isBlobSchema()&&"byteLength"in T){this.stringBuffer=(this.serdeContext?.base64Encoder??O.toBase64)(T);return}if(w.isListSchema()&&Array.isArray(T)){let h="";for(let U of T){this.write([w.getValueSchema(),w.getMergedTraits()],U);let A=this.flush(),_=w.getValueSchema().isTimestampSchema()?A:O.quoteHeader(A);if(h!=="")h+=", ";h+=_}this.stringBuffer=h;return}this.stringBuffer=JSON.stringify(T,null,2);break;case"string":let P=w.getMergedTraits().mediaType,I=T;if(P){if(P==="application/json"||P.endsWith("+json"))I=O.LazyJsonString.from(I);if(w.getMergedTraits().httpHeader){this.stringBuffer=(this.serdeContext?.base64Encoder??O.toBase64)(I.toString());return}}this.stringBuffer=T;break;default:if(w.isIdempotencyToken())this.stringBuffer=O.generateIdempotencyToken();else this.stringBuffer=String(T)}}flush(){let $=this.stringBuffer;return this.stringBuffer="",$}}class kT{codecSerializer;stringSerializer;buffer;constructor($,T,w=new t1(T)){this.codecSerializer=$,this.stringSerializer=w}setSerdeContext($){this.codecSerializer.setSerdeContext($),this.stringSerializer.setSerdeContext($)}write($,T){let w=E.NormalizedSchema.of($),P=w.getMergedTraits();if(P.httpHeader||P.httpLabel||P.httpQuery){this.stringSerializer.write(w,T),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(w,T)}flush(){if(this.buffer!==void 0){let $=this.buffer;return this.buffer=void 0,$}return this.codecSerializer.flush()}}class pT{name;kind;values;constructor({name:$,kind:T=g_.FieldPosition.HEADER,values:w=[]}){this.name=$,this.kind=T,this.values=w}add($){this.values.push($)}set($){this.values=$}remove($){this.values=this.values.filter((T)=>T!==$)}toString(){return this.values.map(($)=>$.includes(",")||$.includes(" ")?`"${$}"`:$).join(", ")}get(){return this.values}}class yT{entries={};encoding;constructor({fields:$=[],encoding:T="utf-8"}){$.forEach(this.setField.bind(this)),this.encoding=T}setField($){this.entries[$.name.toLowerCase()]=$}getField($){return this.entries[$.toLowerCase()]}removeField($){delete this.entries[$.toLowerCase()]}getByType($){return Object.values(this.entries).filter((T)=>T.kind===$)}}function v_($){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test($)}var n_=($)=>{return{setHttpHandler(T){$.httpHandler=T},httpHandler(){return $.httpHandler},updateHttpClientConfig(T,w){$.httpHandler?.updateHttpClientConfig(T,w)},httpHandlerConfigs(){return $.httpHandler.httpHandlerConfigs()}}},t_=($)=>{return{httpHandler:$.httpHandler()}},jT="content-length";function gT($){return(T)=>async(w)=>{let P=w.request;if(j.isInstance(P)){let{body:I,headers:h}=P;if(I&&Object.keys(h).map((U)=>U.toLowerCase()).indexOf(jT)===-1)try{let U=$(I);P.headers={...P.headers,[jT]:String(U)}}catch(U){}}return T({...w,request:P})}}var mT={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},i_=($)=>({applyToStack:(T)=>{T.add(gT($.bodyLengthChecker),mT)}}),Z0=($)=>encodeURIComponent($).replace(/[!'()*]/g,u_),u_=($)=>`%${$.charCodeAt(0).toString(16).toUpperCase()}`,r_=($)=>$.split("/").map(Z0).join("/");function l_($){let T=[];for(let w of Object.keys($).sort()){let P=$[w];if(w=Z0(w),Array.isArray(P))for(let I=0,h=P.length;I<h;I++)T.push(`${w}=${Z0(P[I])}`);else{let I=w;if(P||typeof P==="string")I+=`=${Z0(P)}`;T.push(I)}}return T.join("&")}function dT($){let T={};if($=$.replace(/^\?/,""),$)for(let w of $.split("&")){let[P,I=null]=w.split("=");if(P=decodeURIComponent(P),I)I=decodeURIComponent(I);if(!(P in T))T[P]=I;else if(Array.isArray(T[P]))T[P].push(I);else T[P]=[T[P],I]}return T}var vT=($)=>{if(typeof $==="string")return vT(new URL($));let{hostname:T,pathname:w,port:P,protocol:I,search:h}=$,U;if(h)U=dT(h);return{hostname:T,port:P?parseInt(P):void 0,protocol:I,path:w,query:U}};o_.Field=pT;o_.Fields=yT;o_.FromStringShapeDeserializer=n1;o_.HttpBindingProtocol=CT;o_.HttpInterceptingShapeDeserializer=bT;o_.HttpInterceptingShapeSerializer=kT;o_.HttpProtocol=g0;o_.HttpRequest=j;o_.HttpResponse=m1;o_.RequestBuilder=d1;o_.RpcProtocol=sT;o_.SerdeContext=$0;o_.ToStringShapeSerializer=t1;o_.buildQueryString=l_;o_.collectBody=n;o_.contentLengthMiddleware=gT;o_.contentLengthMiddlewareOptions=mT;o_.determineTimestampFormat=v1;o_.escapeUri=Z0;o_.escapeUriPath=r_;o_.extendedEncodeURIComponent=R0;o_.getContentLengthPlugin=i_;o_.getHttpHandlerExtensionConfiguration=n_;o_.isValidHostname=v_;o_.parseQueryString=dT;o_.parseUrl=vT;o_.requestBuilder=d_;o_.resolveHttpHandlerRuntimeConfig=t_;o_.resolvedPath=cT});var h1=y((y6)=>{var nT=D0(),B6=C0(),q6=F0(),m0=($)=>{if(typeof $==="function")return $();return $},r1=($,T,w,P,I)=>({name:T,namespace:$,traits:w,input:P,output:I}),x6=($)=>(T,w)=>async(P)=>{let{response:I}=await T(P),{operationSchema:h}=nT.getSmithyContext(w),[,U,A,_,M,Y]=h??[];try{let X=await $.protocol.deserializeResponse(r1(U,A,_,M,Y),{...$,...w},I);return{response:I,output:X}}catch(X){if(Object.defineProperty(X,"$response",{value:I,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in X)){try{X.message+=`
16
- Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(f){if(!w.logger||w.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else w.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof X.$responseBodyText<"u"){if(X.$response)X.$response.body=X.$responseBodyText}try{if(B6.HttpResponse.isInstance(I)){let{headers:f={}}=I,G=Object.entries(f);X.$metadata={httpStatusCode:I.statusCode,requestId:i1(/^x-[\w-]+-request-?id$/,G),extendedRequestId:i1(/^x-[\w-]+-id-2$/,G),cfId:i1(/^x-[\w-]+-cf-id$/,G)}}}catch(f){}}throw X}},i1=($,T)=>{return(T.find(([w])=>{return w.match($)})||[void 0,void 0])[1]},F6=($)=>(T,w)=>async(P)=>{let{operationSchema:I}=nT.getSmithyContext(w),[,h,U,A,_,M]=I??[],Y=w.endpointV2?async()=>q6.toEndpointV1(w.endpointV2):$.endpoint,X=await $.protocol.serializeRequest(r1(h,U,A,_,M),P.input,{...$,...w,endpoint:Y});return T({...P,request:X})},tT={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},iT={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function z6($){return{applyToStack:(T)=>{T.add(F6($),iT),T.add(x6($),tT),$.protocol.setSerdeContext($)}}}class D{name;namespace;traits;static assign($,T){return Object.assign($,T)}static[Symbol.hasInstance]($){let T=this.prototype.isPrototypeOf($);if(!T&&typeof $==="object"&&$!==null)return $.symbol===this.symbol;return T}getName(){return this.namespace+"#"+this.name}}class t0 extends D{static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=t0.symbol}var S6=($,T,w,P)=>D.assign(new t0,{name:T,namespace:$,traits:w,valueSchema:P});class i0 extends D{static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=i0.symbol}var j6=($,T,w,P,I)=>D.assign(new i0,{name:T,namespace:$,traits:w,keySchema:P,valueSchema:I});class u0 extends D{static symbol=Symbol.for("@smithy/ope");name;traits;input;output;symbol=u0.symbol}var C6=($,T,w,P,I)=>D.assign(new u0,{name:T,namespace:$,traits:w,input:P,output:I});class N0 extends D{static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=N0.symbol}var s6=($,T,w,P,I)=>D.assign(new N0,{name:T,namespace:$,traits:w,memberNames:P,memberList:I});class r0 extends N0{static symbol=Symbol.for("@smithy/err");ctor;symbol=r0.symbol}var c6=($,T,w,P,I,h)=>D.assign(new r0,{name:T,namespace:$,traits:w,memberNames:P,memberList:I,ctor:null}),d0=[];function O0($){if(typeof $==="object")return $;if($=$|0,d0[$])return d0[$];let T={},w=0;for(let P of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])if(($>>w++&1)===1)T[P]=1;return d0[$]=T}var Q0={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},v0=[],n0={};class s{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=s.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor($,T){this.ref=$,this.memberName=T;let w=[],P=$,I=$;this._isMemberSchema=!1;while(u1(P))w.push(P[1]),P=P[0],I=m0(P),this._isMemberSchema=!0;if(w.length>0){this.memberTraits={};for(let h=w.length-1;h>=0;--h){let U=w[h];Object.assign(this.memberTraits,O0(U))}}else this.memberTraits=0;if(I instanceof s){let h=this.memberTraits;Object.assign(this,I),this.memberTraits=Object.assign({},h,I.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=T??I.memberName;return}if(this.schema=m0(I),uT(this.schema))this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3];else this.name=this.memberName??String(I),this.traits=0;if(this._isMemberSchema&&!T)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance]($){let T=this.prototype.isPrototypeOf($);if(!T&&typeof $==="object"&&$!==null)return $.symbol===this.symbol;return T}static of($){let T=typeof $==="function"||typeof $==="object"&&$!==null;if(typeof $==="number"){if(v0[$])return v0[$]}else if(typeof $==="string"){if(n0[$])return n0[$]}else if(T){if($[Q0.ns])return $[Q0.ns]}let w=m0($);if(w instanceof s)return w;if(u1(w)){let[I,h]=w;if(I instanceof s)return Object.assign(I.getMergedTraits(),O0(h)),I;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify($,null,2)}.`)}let P=new s(w);if(T)return $[Q0.ns]=P;if(typeof w==="string")return n0[w]=P;if(typeof w==="number")return v0[w]=P;return P}getSchema(){let $=this.schema;if(Array.isArray($)&&$[0]===0)return $[4];return $}getName($=!1){let{name:T}=this;return!$&&T&&T.includes("#")?T.split("#")[1]:T||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let $=this.getSchema();return typeof $==="number"?$>=64&&$<128:$[0]===1}isMapSchema(){let $=this.getSchema();return typeof $==="number"?$>=128&&$<=255:$[0]===2}isStructSchema(){let $=this.getSchema();if(typeof $!=="object")return!1;let T=$[0];return T===3||T===-3||T===4}isUnionSchema(){let $=this.getSchema();if(typeof $!=="object")return!1;return $[0]===4}isBlobSchema(){let $=this.getSchema();return $===21||$===42}isTimestampSchema(){let $=this.getSchema();return typeof $==="number"&&$>=4&&$<=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:$}=this.getMergedTraits();return!!$||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return O0(this.memberTraits)}getOwnTraits(){return O0(this.traits)}getKeySchema(){let[$,T]=[this.isDocumentSchema(),this.isMapSchema()];if(!$&&!T)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let w=this.getSchema(),P=$?15:w[4]??0;return V0([P,0],"key")}getValueSchema(){let $=this.getSchema(),[T,w,P]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],I=typeof $==="number"?63&$:$&&typeof $==="object"&&(w||P)?$[3+$[0]]:T?15:void 0;if(I!=null)return V0([I,0],w?"value":"member");throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema($){let T=this.getSchema();if(this.isStructSchema()&&T[4].includes($)){let w=T[4].indexOf($),P=T[5][w];return V0(u1(P)?P:[P,0],$)}if(this.isDocumentSchema())return V0([15,0],$);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${$}.`)}getMemberSchemas(){let $={};try{for(let[T,w]of this.structIterator())$[T]=w}catch(T){}return $}getEventStreamMember(){if(this.isStructSchema()){for(let[$,T]of this.structIterator())if(T.isStreaming()&&T.isStructSchema())return $}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error("@smithy/core/schema - cannot iterate non-struct schema.");let $=this.getSchema(),T=$[4].length,w=$[Q0.it];if(w&&T===w.length){yield*w;return}w=Array(T);for(let P=0;P<T;++P){let I=$[4][P],h=V0([$[5][P],0],I);yield w[P]=[I,h]}$[Q0.it]=w}}function V0($,T){if($ instanceof s)return Object.assign($,{memberName:T,_isMemberSchema:!0});return new s($,T)}var u1=($)=>Array.isArray($)&&$.length===2,uT=($)=>Array.isArray($)&&$.length>=5;class L0 extends D{static symbol=Symbol.for("@smithy/sim");name;schemaRef;traits;symbol=L0.symbol}var b6=($,T,w,P)=>D.assign(new L0,{name:T,namespace:$,traits:P,schemaRef:w}),k6=($,T,w,P)=>D.assign(new L0,{name:T,namespace:$,traits:w,schemaRef:P}),p6={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 C{namespace;schemas;exceptions;static registries=new Map;constructor($,T=new Map,w=new Map){this.namespace=$,this.schemas=T,this.exceptions=w}static for($){if(!C.registries.has($))C.registries.set($,new C($));return C.registries.get($)}copyFrom($){let{schemas:T,exceptions:w}=this;for(let[P,I]of $.schemas)if(!T.has(P))T.set(P,I);for(let[P,I]of $.exceptions)if(!w.has(P))w.set(P,I)}register($,T){let w=this.normalizeShapeId($);for(let P of[this,C.for(w.split("#")[0])])P.schemas.set(w,T)}getSchema($){let T=this.normalizeShapeId($);if(!this.schemas.has(T))throw Error(`@smithy/core/schema - schema not found for ${T}`);return this.schemas.get(T)}registerError($,T){let w=$,P=w[1];for(let I of[this,C.for(P)])I.schemas.set(P+"#"+w[2],w),I.exceptions.set(w,T)}getErrorCtor($){let T=$;if(this.exceptions.has(T))return this.exceptions.get(T);return C.for(T[1]).exceptions.get(T)}getBaseException(){for(let $ of this.exceptions.keys())if(Array.isArray($)){let[,T,w]=$,P=T+"#"+w;if(P.startsWith("smithy.ts.sdk.synthetic.")&&P.endsWith("ServiceException"))return $}return}find($){for(let T of this.schemas.values())if($(T))return T;return}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId($){if($.includes("#"))return $;return this.namespace+"#"+$}}y6.ErrorSchema=r0;y6.ListSchema=t0;y6.MapSchema=i0;y6.NormalizedSchema=s;y6.OperationSchema=u0;y6.SCHEMA=p6;y6.Schema=D;y6.SimpleSchema=L0;y6.StructureSchema=N0;y6.TypeRegistry=C;y6.deref=m0;y6.deserializerMiddlewareOption=tT;y6.error=c6;y6.getSchemaSerdePlugin=z6;y6.isStaticSchema=uT;y6.list=S6;y6.map=j6;y6.op=C6;y6.operation=r1;y6.serializerMiddlewareOption=iT;y6.sim=b6;y6.simAdapter=k6;y6.simpleSchemaCacheN=v0;y6.simpleSchemaCacheS=n0;y6.struct=s6;y6.traitsCache=d0;y6.translateTraits=O0});
17
- export{P0 as Mra,h1 as Nra,D0 as Ora,C$ as Pra,F0 as Qra,ST as Rra,C0 as Sra};
@@ -1,6 +0,0 @@
1
- import{Ni as ZJ,Oi as $J,Pi as qJ,Qi as zJ,Ri as OJ}from"./cli-1.1.35-ps66nanc.mjs";import{Si as QJ,Ti as PJ}from"./cli-1.1.35-5j12hjjm.mjs";import{IA as y,JA as b,OA as u}from"./cli-1.1.35-hy9jtbmb.mjs";import{QY as P,SY as U,xZ as DJ}from"./cli-1.1.35-dw3fv0g8.mjs";import{$2 as Y,a3 as L,b3 as WJ}from"./cli-1.1.35-b0n88pf7.mjs";import{c3 as m}from"./cli-1.1.35-bq7wadxz.mjs";import{Aea as l,Eba as n,Iea as BJ,S_ as D,Sba as HJ,T_ as JJ,wba as x,yba as c}from"./cli-1.1.35-dnacc640.mjs";import{$ha as IJ,Kha as YJ,Lha as g}from"./cli-1.1.35-r4rm2297.mjs";import{Tra as j,Xra as I}from"./cli-1.1.35-c05841mj.mjs";function h(J,Z){let{perFileStats:q}=J,z=[];for(let[Q,$]of q){let K=Z.get(Q),M=$.isUntracked??!1,A=!$.isBinary&&!M&&!K&&!$.renamedFrom,H=$.added+$.removed,V=!A&&!$.isBinary&&H>AJ;z.push({path:Q,linesAdded:$.added,linesRemoved:$.removed,isBinary:$.isBinary,isLargeFile:A,isTruncated:V,isUntracked:M,...$.renamedFrom?{renamedFrom:$.renamedFrom}:{}})}return z.sort((Q,$)=>Q.path.localeCompare($.path)),z}var S,AJ=400;var f=I(()=>{u();S=j(m(),1)});import{basename as w}from"path";function gJ(J,Z){let[q,z]=O.useState([]),[Q,$]=O.useState([]),[K,M]=O.useState(!0),[A,H]=O.useState(0),V=J.join(`
2
- `),X=Z.join(`
3
- `);O.useEffect(()=>{let B=!1;M(!0);async function G(){let F=V?V.split(`
4
- `):[],E=X?X.split(`
5
- `):[],v=(await Promise.all(E.map((N)=>c(N)))).flat(),_=x(v).filter((N)=>!F.includes(N)).sort((N,C)=>w(N).localeCompare(w(C))),k=x([...F,..._]),T=await Promise.all(k.map(async(N)=>{let[C,p,UJ]=await Promise.all([y(N),b(N),n(N)]);return{root:N,name:w(N),branch:UJ,files:C?h(C,p):[],hunks:p}}));if(!B)z(T),$(k),M(!1)}return G().catch(()=>{if(!B)z([]),$([]),M(!1)}),()=>{B=!0}},[V,X,A]);let W=O.useCallback(()=>H((B)=>B+1),[]);return{groups:q,roots:Q,loading:K,refresh:W}}var O;var VJ=I(()=>{HJ();u();f();O=j(m(),1)});import{basename as d}from"path";function a(J,Z,q){if(J===0)return"";return Z.join("")+(q?NJ:i)}function r(J){return{name:J,dirs:new Map,files:[]}}function GJ(J){let Z=r("");for(let q of J){let z=q.path.split("/");z.pop();let Q=Z;for(let $ of z){let K=Q.dirs.get($);if(!K)K=r($),Q.dirs.set($,K);Q=K}Q.files.push(q)}return Z}function o(J,Z,q,z,Q,$,K,M){let A=[...J.dirs.values()].sort((X,W)=>X.name.localeCompare(W.name)),H=[...J.files].sort((X,W)=>d(X.path).localeCompare(d(W.path))),V=H.length>0;for(let X=0;X<A.length;X++){let W=A[X],B=W.name,G=Z?`${Z}/${W.name}`:W.name;while(W.files.length===0&&W.dirs.size===1){let _=W.dirs.values().next().value;B=`${B}/${_.name}`,G=`${G}/${_.name}`,W=_}let F=X===A.length-1&&!V,E=`${Q}\x00${G}`,v=z.has(E);if(K.push({kind:"dir",key:E,label:B,depth:q,collapsed:v,guides:a(q,M,F)}),!v){let _=q>=1?[...M,F?_J:i]:M;o(W,G,q+1,z,Q,$,K,_)}}for(let X=0;X<H.length;X++){let W=H[X],B=X===H.length-1;K.push({kind:"file",file:W,root:Q,hunks:$(W.path),depth:q,guides:a(q,M,B)})}}function vJ(J,Z){let q=[],z=J.length>1,Q=0;for(let $ of J){let K=z?1:0;if(z){let M=Z.has($.root);if(q.push({kind:"group",key:$.root,name:$.name,meta:`${$.files.length} ${l($.files.length,"file")} changed`,branch:$.branch,repoIndex:Q++,collapsed:M,depth:0}),M)continue}o(GJ($.files),"",K,Z,$.root,(M)=>$.hunks.get(M)??[],q,[])}return q}var i="│ ",NJ="└ ",_J=" ";var t=I(()=>{BJ()});function cJ(J){let Z=0;for(let q=0;q<J.length;q++)Z=Math.imul(Z,31)+J.charCodeAt(q)|0;return R[Math.abs(Z)%R.length]}function s(J){let Z=R.length;return R[(J%Z+Z)%Z]}var R;var e=I(()=>{R=["cyan_FOR_SUBAGENTS_ONLY","green_FOR_SUBAGENTS_ONLY","yellow_FOR_SUBAGENTS_ONLY","purple_FOR_SUBAGENTS_ONLY","orange_FOR_SUBAGENTS_ONLY","pink_FOR_SUBAGENTS_ONLY","blue_FOR_SUBAGENTS_ONLY","red_FOR_SUBAGENTS_ONLY"]});function XJ(){let J=QJ();return{enabled:J,fileIcon:(Z)=>J?qJ(Z):"",fileIconColor:(Z)=>J?zJ(Z):void 0,folderIcon:(Z)=>J?Z?$J:ZJ:"",repoIcon:J?FJ:"",branchIcon:J?EJ:"",pointer:D.pointer}}var FJ="",EJ="";var MJ=I(()=>{JJ();OJ();PJ()});import{basename as LJ}from"path";function kJ(J,Z,q){if(J<=q)return{start:0,end:J};let z=Math.max(0,Z-Math.floor(q/2)),Q=z+q;if(Q>J)Q=J,z=Math.max(0,Q-q);return{start:z,end:Q}}function zZ(J){return J.flatMap((Z)=>Z.files)}function QZ({rows:J,selectedIndex:Z,maxVisible:q,width:z,statusByPath:Q,alignFiles:$}){let K=KJ.useMemo(XJ,[]),M=J.length;if(M===0)return Y(U,{dimColor:!0,children:"No changed files"});let{start:A,end:H}=kJ(M,Z,q),V=[];for(let X=A;X<H;X++){let W=J[X];V.push(Y(CJ,{row:W,isSelected:X===Z,width:z,glyphs:K,alignFiles:$,statusColor:W.kind==="file"?Q?.get(W.file.path):void 0},X))}return L(P,{flexDirection:"column",children:[A>0&&Y(U,{dimColor:!0,children:` ↑ ${A} more`}),V,H<M&&Y(U,{dimColor:!0,children:` ↓ ${M-H} more`})]})}function CJ({row:J,isSelected:Z,width:q,glyphs:z,statusColor:Q,alignFiles:$}){if(J.kind==="group"){let E=Z?`${z.pointer} `:" ",v=J.collapsed?D.triangleRight:D.triangleDown;return L(U,{dimColor:!Z,bold:Z,children:[`${E}${v} `,z.repoIcon&&Y(U,{color:s(J.repoIndex),dimColor:!1,children:`${z.repoIcon} `}),J.name," ",Y(U,{bold:!0,children:J.meta}),J.branch&&Y(U,{children:` ${z.branchIcon?`${z.branchIcon} `:"· "}${J.branch}`})]})}let K=Z?`${z.pointer} `:" ",M=J.guides,A=2+J.depth*2;if(J.kind==="dir"){let E=J.collapsed?D.triangleRight:D.triangleDown,v=z.folderIcon(!J.collapsed),_=v?`${v} `:"",k=Math.max(4,q-A-2-(_?2:0)-1),T=g(J.label,k);return L(P,{width:q,flexDirection:"row",children:[Y(P,{flexShrink:1,overflow:"hidden",children:L(U,{wrap:"truncate",bold:Z,inverse:Z,children:[K,Y(U,{dimColor:!Z,children:M}),`${E} ${_}${T}`]})}),Y(P,{flexGrow:1})]})}let H=z.fileIcon(J.file.path),V=H?`${H} `:"",X=Z?void 0:z.fileIconColor(J.file.path),W=$?" ":"",B=J.file.isBinary||J.file.isLargeFile||J.file.renamedFrom?9:0,G=Math.max(4,q-A-W.length-(V?2:0)-B-1),F=J.label?g(J.label,G):YJ(LJ(J.file.path),G);return L(P,{width:q,flexDirection:"row",children:[Y(P,{flexShrink:1,overflow:"hidden",children:L(U,{wrap:"truncate",bold:Z,inverse:Z,children:[K,Y(U,{dimColor:!Z,children:M}),W,X?Y(U,{color:X,children:V}):V,Q&&!Z?Y(U,{color:Q,children:F}):F]})}),Y(P,{flexGrow:1}),Y(P,{flexShrink:0,children:Y(RJ,{file:J.file,isSelected:Z})})]})}function RJ({file:J,isSelected:Z}){if(J.isBinary)return Y(U,{dimColor:!Z,italic:!0,wrap:"truncate",children:"binary"});if(J.isLargeFile)return Y(U,{dimColor:!Z,italic:!0,wrap:"truncate",children:"large"});if(J.renamedFrom)return Y(U,{dimColor:!Z,italic:!0,wrap:"truncate",children:"renamed"});return null}var KJ,qZ=80;var TJ=I(()=>{JJ();DJ();IJ();e();t();MJ();WJ();KJ=j(m(),1)});function WZ(J,Z){return Z+J.split("\x1B[0m").join("\x1B[0m"+Z).split("\x1B[49m").join(Z)+"\x1B[49m"}var jJ=()=>{};
6
- export{gJ as Kh,VJ as Lh,XJ as Mh,MJ as Nh,cJ as Oh,e as Ph,vJ as Qh,t as Rh,qZ as Sh,zZ as Th,QZ as Uh,TJ as Vh,WZ as Wh,jJ as Xh};
@@ -1,4 +0,0 @@
1
- import{$N as i,$x as M,Bl as L,EA as Ir,Fl as Sr,Fy as j,Gy as zr,OS as s,SN as W,TN as Kr,Wp as V,ZL as o,by as f,dq as Y,dy as u,gy as C,hy as T,iT as Zr,iy as d,jO as Qr,kK as E,kj as F,kq as D,ky as A,lK as Jr,oj as Gr,pO as l,qy as qr,sO as Wr,tq as kr,wA as O}from"./cli-1.1.35-hy9jtbmb.mjs";import{BX as Xr,vX as n}from"./cli-1.1.35-qygaywxg.mjs";import{OY as I,PY as jr}from"./cli-1.1.35-dw3fv0g8.mjs";import{B5 as yr,V6 as $,b5 as H,c5 as B,h7 as wr}from"./cli-1.1.35-s85hd24a.mjs";import{D7 as b,E7 as g}from"./cli-1.1.35-a9y8qxsj.mjs";import{Aba as z,G$ as k,I$ as t,L$ as R,Mba as m,N$ as G,Sba as e,X$ as q,dfa as p,dga as v,haa as _,ifa as Q,paa as Z,qaa as c,vfa as rr}from"./cli-1.1.35-dnacc640.mjs";import{Fka as U,Ika as a}from"./cli-1.1.35-a7ygtwdr.mjs";v();function Pr(r){let y=G().numStartups;R((w)=>{let S=w.tipsHistory??{};if(S[r]===y)return w;return{...w,tipsHistory:{...S,[r]:y}}})}function N(r){let y=G(),w=y.tipsHistory?.[r];if(!w)return 1/0;return y.numStartups-w}g();a();Ir();rr();Xr();jr();zr();Sr();wr();Jr();v();kr();t();Gr();e();qr();yr();c();Wr();Qr();Kr();Zr();_();var X;async function $r(){if(X!==void 0)return X;let r=await i();return X=W in r,X}async function P(r,y,w){if(!await $r())return!1;if(l(`${r}@${W}`))return!1;let{bashTools:S}=y??{};if(w.cli&&S?.size){if(w.cli.some((J)=>S.has(J)))return!0}if(w.filePath&&y?.readFileState){if(F(y.readFileState).some((h)=>w.filePath.test(h)))return!0}return!1}var hr=[{id:"new-user-warmup",content:async()=>"Start with small features or bug fixes, tell Claudin to propose a plan, and verify its suggested edits",cooldownSessions:3,async isRelevant(){return G().numStartups<10}},{id:"plan-mode-for-complex-tasks",content:async()=>`Use Plan Mode to prepare for a complex request before making changes. Press ${j("chat:cycleMode","Chat","shift+tab")} twice to enable.`,cooldownSessions:5,isRelevant:async()=>{let r=G();return(r.lastPlanModeUse?(Date.now()-r.lastPlanModeUse)/86400000:1/0)>7}},{id:"default-permission-mode-config",content:async()=>"Use /config to change your default permission mode (including Plan Mode)",cooldownSessions:10,isRelevant:async()=>{try{let r=G(),y=Q(),w=Boolean(r.lastPlanModeUse),S=Boolean(y?.permissions?.defaultMode);return w&&!S}catch(r){return U(`Failed to check default-permission-mode-config tip relevance: ${r}`,{level:"warn"}),!1}}},{id:"git-worktrees",content:async()=>"Use git worktrees to run multiple Claudin sessions in parallel.",cooldownSessions:10,isRelevant:async()=>{try{let r=G();return await m()<=1&&r.numStartups>50}catch(r){return!1}}},{id:"diff-reviewer",content:async()=>`Review local changes, stashes and the git log side by side — run /diff or hit ${j("chat:openDiff","Chat","ctrl+g")}.`,cooldownSessions:10,isRelevant:async()=>{try{return await z()}catch(r){return!1}}},{id:"diff-git-log",content:async()=>`Scroll back through your git log and open any commit's diff in /diff (or hit ${j("chat:openDiff","Chat","ctrl+g")}).`,cooldownSessions:15,isRelevant:async()=>{try{return await z()}catch(r){return!1}}},{id:"diff-source-cycle",content:async()=>`In /diff, ${j("diff:previousSource","DiffDialog","[")} and ${j("diff:nextSource","DiffDialog","]")} cycle what you are reviewing: the working tree, one diff per agent turn, then every stash.`,cooldownSessions:15,isRelevant:async()=>{try{return await z()}catch(r){return!1}}},{id:"diff-line-selection",content:async()=>`Press ${j("diff:select","DiffDialog","v")} in the /diff pane to select lines, then Enter to drop them into your prompt as @file#L12-L30 — dragging the mouse over them does the same.`,cooldownSessions:15,isRelevant:async()=>{try{return await z()}catch(r){return!1}}},{id:"diff-expand-context",content:async()=>`Need more context in /diff? Hit Enter on a "··· N lines" gap to reveal more around it, or ${j("diff:expandAll","DiffDialog","a")} to expand the whole file.`,cooldownSessions:20,isRelevant:async()=>{try{return await z()}catch(r){return!1}}},{id:"file-explorer",content:async()=>`Browse and edit files without leaving the REPL — run /explorer or hit ${j("chat:openExplorer","Chat","ctrl+e")} for a file tree with a built-in nvim-style editor.`,cooldownSessions:10,isRelevant:async()=>!0},{id:"explorer-fuzzy-find",content:async()=>"Inside /explorer, press / to fuzzy-find any file by name, or @ to drop it into your prompt.",cooldownSessions:15,isRelevant:async()=>!0},{id:"explorer-create-delete",content:async()=>"Inside /explorer, press a to create, r to rename, or d to delete the selected file.",cooldownSessions:15,isRelevant:async()=>!0},{id:"explorer-changed-files",content:async()=>"The /explorer tree opens with a Changed group — every file git sees as modified, in one flat list at the top.",cooldownSessions:15,isRelevant:async()=>{try{return await z()}catch(r){return!1}}},{id:"explorer-editor-ex-commands",content:async()=>"In the /explorer editor, :w saves, :q quits, :wq does both, and :42 jumps to line 42.",cooldownSessions:15,isRelevant:async()=>!0},{id:"explorer-editor-motions",content:async()=>"The /explorer editor speaks vim: dd cuts a line, yy copies, p pastes, u undoes and ctrl+r redoes.",cooldownSessions:20,isRelevant:async()=>!0},{id:"bash-output-filter-token-saving",content:async()=>"Bash output filter is active — redundant command output is trimmed before reaching the model, reducing token usage. Disable in /config.",cooldownSessions:20,async isRelevant(){let r=G();return r.numStartups>5&&r.bashOutputFilterEnabled!==!1}},{id:"color-when-multi-clauding",content:async()=>"Running multiple Claudin sessions? Use /color and /rename to tell them apart at a glance.",cooldownSessions:10,isRelevant:async()=>{if(s())return!1;return await E()>=2}},{id:"terminal-setup",content:async()=>k.terminal==="Apple_Terminal"?"Run /terminal-setup to enable convenient terminal integration like Option + Enter for new line and more":"Run /terminal-setup to enable convenient terminal integration like Shift + Enter for new line and more",cooldownSessions:10,async isRelevant(){let r=G();if(k.terminal==="Apple_Terminal")return!r.optionAsMetaKeyInstalled;return!r.shiftEnterKeyBindingInstalled}},{id:"shift-enter",content:async()=>k.terminal==="Apple_Terminal"?"Press Option+Enter to send a multi-line message":"Press Shift+Enter to send a multi-line message",cooldownSessions:10,async isRelevant(){let r=G();return Boolean((k.terminal==="Apple_Terminal"?r.optionAsMetaKeyInstalled:r.shiftEnterKeyBindingInstalled)&&r.numStartups>3)}},{id:"shift-enter-setup",content:async()=>k.terminal==="Apple_Terminal"?"Run /terminal-setup to enable Option+Enter for new lines":"Run /terminal-setup to enable Shift+Enter for new lines",cooldownSessions:10,async isRelevant(){if(!n())return!1;let r=G();return!(k.terminal==="Apple_Terminal"?r.optionAsMetaKeyInstalled:r.shiftEnterKeyBindingInstalled)}},{id:"memory-command",content:async()=>"Use /memory to view and manage Claudin memory",cooldownSessions:15,async isRelevant(){return G().memoryUsageCount<=0}},{id:"theme-command",content:async()=>"Use /theme to change the color theme",cooldownSessions:20,isRelevant:async()=>!0},{id:"colorterm-truecolor",content:async()=>"Try setting environment variable COLORTERM=truecolor for richer colors",cooldownSessions:30,isRelevant:async()=>!process.env.COLORTERM&&b.level<3},{id:"powershell-tool-env",content:async()=>"Set CLAUDIN_USE_POWERSHELL_TOOL=1 to enable the PowerShell tool (preview)",cooldownSessions:10,isRelevant:async()=>Z()==="windows"&&process.env.CLAUDIN_USE_POWERSHELL_TOOL===void 0},{id:"status-line",content:async()=>"Use /statusline to set up a custom status line that will display beneath the input box",cooldownSessions:25,isRelevant:async()=>Q().statusLine===void 0},{id:"prompt-queue",content:async()=>"Hit Enter to queue up additional messages while Claudin is working.",cooldownSessions:5,async isRelevant(){return G().promptQueueUseCount<=3}},{id:"enter-to-steer-in-relatime",content:async()=>"Send messages to Claudin while it works to steer Claudin in real-time",cooldownSessions:20,isRelevant:async()=>!0},{id:"todo-list",content:async()=>"Ask Claudin to create a todo list when working on complex tasks to track progress and remain on track",cooldownSessions:20,isRelevant:async()=>!0},{id:"vscode-command-install",content:async()=>`Open the Command Palette (Cmd+Shift+P) and run "Shell Command: Install '${k.terminal==="vscode"?"code":k.terminal}' command in PATH" to enable IDE integration`,cooldownSessions:0,async isRelevant(){if(!M())return!1;if(Z()!=="macos")return!1;switch(k.terminal){case"vscode":return!await d();case"cursor":return!await C();case"windsurf":return!await T();default:return!1}}},{id:"ide-upsell-external-terminal",content:async()=>"Connect Claudin to your IDE · /ide",cooldownSessions:4,async isRelevant(){if(f())return!1;if((await u()).length!==0)return!1;return(await A()).length>0}},{id:"install-github-app",content:async()=>"Run /install-github-app to tag @claude right from your Github issues and PRs",cooldownSessions:10,isRelevant:async()=>!G().githubActionSetupCount},{id:"install-slack-app",content:async()=>"Run /install-slack-app to use Claude in Slack",cooldownSessions:10,isRelevant:async()=>!G().slackAppInstallCount},{id:"permissions",content:async()=>"Use /permissions to pre-approve and pre-deny bash, edit, and MCP tools",cooldownSessions:10,async isRelevant(){return G().numStartups>10}},{id:"drag-and-drop-images",content:async()=>"Did you know you can drag and drop image files into your terminal?",cooldownSessions:10,isRelevant:async()=>!k.isSSH()},{id:"paste-images-mac",content:async()=>"Paste images into Claudin using control+v (not cmd+v!)",cooldownSessions:10,isRelevant:async()=>Z()==="macos"},{id:"double-esc",content:async()=>"Double-tap esc to rewind the conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>!O()},{id:"double-esc-code-restore",content:async()=>"Double-tap esc to rewind the code and/or conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>O()},{id:"continue",content:async()=>"Run claudin --continue or claudin --resume to resume a conversation",cooldownSessions:10,isRelevant:async()=>!0},{id:"rename-conversation",content:async()=>"Name your conversations with /rename to find them easily in /resume later",cooldownSessions:15,isRelevant:async()=>o()&&G().numStartups>10},{id:"custom-commands",content:async()=>"Create skills by adding .md files to .claudin/skills/ in your project or ~/.claudin/skills/ for skills that work in any project",cooldownSessions:15,async isRelevant(){return G().numStartups>10}},{id:"shift-tab",content:async()=>`Hit ${j("chat:cycleMode","Chat","shift+tab")} to cycle between default mode, auto-accept edit mode, and plan mode`,cooldownSessions:10,isRelevant:async()=>!0},{id:"image-paste",content:async()=>`Use ${j("chat:imagePaste","Chat","ctrl+v")} to paste images from your clipboard`,cooldownSessions:20,isRelevant:async()=>!0},{id:"custom-agents",content:async()=>"Use /agents to optimize specific tasks. Eg. Software Architect, Code Writer, Code Reviewer",cooldownSessions:15,async isRelevant(){return G().numStartups>5}},{id:"agent-flag",content:async()=>"Use --agent <agent_name> to directly start a conversation with a subagent",cooldownSessions:15,async isRelevant(){return G().numStartups>5}},{id:"opusplan-mode-reminder",content:async()=>`Your default model setting is Opus Plan Mode. Press ${j("chat:cycleMode","Chat","shift+tab")} twice to activate Plan Mode and plan with Claude Opus.`,cooldownSessions:2,async isRelevant(){let r=G(),w=H()==="opusplan",S=r.lastPlanModeUse?(Date.now()-r.lastPlanModeUse)/86400000:1/0;return w&&S>3}},{id:"frontend-design-plugin",content:async(r)=>{return`Working with HTML/CSS? Install the frontend-design plugin:
2
- ${I("suggestion",r.theme)(`/plugin install frontend-design@${W}`)}`},cooldownSessions:3,isRelevant:async(r)=>P("frontend-design",r,{filePath:/\.(html|css|htm)$/i})},{id:"vercel-plugin",content:async(r)=>{return`Working with Vercel? Install the vercel plugin:
3
- ${I("suggestion",r.theme)(`/plugin install vercel@${W}`)}`},cooldownSessions:3,isRelevant:async(r)=>P("vercel",r,{filePath:/(?:^|[/\\])vercel\.json$/i,cli:["vercel"]})},{id:"effort-high-nudge",content:async(r)=>{let w=I("suggestion",r.theme)("/effort high");return q("tengu_tide_elm","off")==="copy_b"?`Use ${w} for better one-shot answers. Claudin thinks it through first.`:`Working on something tricky? ${w} gives better first answers`},cooldownSessions:3,isRelevant:async()=>{if(!$())return!1;if(!V(B()))return!1;if(p("policySettings")?.effortLevel!==void 0)return!1;if(D()!==void 0)return!1;let r=Y();if(r==="high"||r==="max")return!1;return q("tengu_tide_elm","off")!=="off"}},{id:"subagent-fanout-nudge",content:async(r)=>{let y=I("suggestion",r.theme);return q("tengu_tern_alloy","off")==="copy_b"?`For big tasks, tell Claudin to ${y("use subagents")}. They work in parallel and keep your main thread clean.`:`Say ${y('"fan out subagents"')} and Claudin sends a team. Each one digs deep so nothing gets missed.`},cooldownSessions:3,isRelevant:async()=>{if(!$())return!1;return q("tengu_tern_alloy","off")!=="off"}},{id:"loop-command-nudge",content:async(r)=>{let y=I("suggestion",r.theme);return q("tengu_timber_lark","off")==="copy_b"?`Use ${y("/loop 5m check the deploy")} to run any prompt on a schedule. Set it and forget it.`:`${y("/loop")} runs any prompt on a recurring schedule. Great for monitoring deploys, babysitting PRs, or polling status.`},cooldownSessions:3,isRelevant:async()=>{if(!$())return!1;if(!L())return!1;return q("tengu_timber_lark","off")!=="off"}},{id:"feedback-command",content:async()=>"Use /feedback to help us improve!",cooldownSessions:15,async isRelevant(){return G().numStartups>5}}],Or=[];function Rr(){let y=Q().spinnerTipsOverride;if(!y?.tips?.length)return[];return y.tips.map((w,S)=>({id:`custom-tip-${S}`,content:async()=>w,cooldownSessions:0,isRelevant:async()=>!0}))}async function ar(r){let w=Q().spinnerTipsOverride,S=Rr();if(w?.excludeDefault&&S.length>0)return S;let J=[...hr,...Or],h=await Promise.all(J.map((K)=>K.isRelevant(r)));return[...J.filter((K,x)=>h[x]).filter((K)=>N(K.id)>=K.cooldownSessions),...S]}
4
- export{Pr as rb,N as sb,ar as tb};
@@ -1,10 +0,0 @@
1
- import{Bg as dZ,Cg as cZ,Dg as zX}from"./cli-1.1.35-7nsr0a6p.mjs";import{$h as MJ,ai as yz}from"./cli-1.1.35-d6kd2zv5.mjs";import{Li as DJ,Mi as Cz}from"./cli-1.1.35-r80cjbt8.mjs";import{Dx as aQ,Ex as hX,HB as $Z,Hy as RQ,IB as uZ,Iy as $Q,JB as xZ,Jy as oQ,KB as eJ,Ky as tQ,LB as sQ,LK as zz,MT as UQ,NB as ZQ,NT as gZ,Nx as kZ,Oy as xQ,Py as uQ,Rx as Pz,Sx as MZ,Tx as RX,VR as qz,VT as CQ,XC as eQ,Xk as rZ,YC as $X,Yj as TZ,Yk as IX,ZM as _J,Zj as iQ,_R as Yz,_T as jQ,aS as aZ,ay as NQ,bD as Zz,bN as fz,bS as Vz,cD as xX,cy as pZ,dS as m0,eE as Jz,eS as Hz,fE as uX,fk as gJ,gS as Gz,gk as mJ,hS as BQ,iP as Xz,iS as LQ,jS as Bz,kE as ZZ,kS as Lz,lE as JQ,lP as pX,mE as Qz,mS as PZ,mx as OQ,my as wQ,nE as fX,nk as sJ,nx as JX,oE as QQ,pE as zQ,qE as iz,qm as OZ,qy as QX,rm as PJ}from"./cli-1.1.35-hy9jtbmb.mjs";import{TU as rQ,aV as TX}from"./cli-1.1.35-jq1wvnwe.mjs";import{CX as wJ,DX as Ez,DY as QJ,EX as u0,EY as wz,IX as JJ,JY as lQ,KY as SX,LY as zJ,NY as Az,QY as D,RY as hQ,SY as p,TY as PX,jY as BZ,kY as Nz,pY as EZ,rY as Fz,uZ as XJ,xZ as I0}from"./cli-1.1.35-dw3fv0g8.mjs";import{Q0 as UJ,R0 as jJ,S0 as bz}from"./cli-1.1.35-ktb8z2s9.mjs";import{b2 as e0,h2 as AJ}from"./cli-1.1.35-q1axe4bk.mjs";import{$2 as Y,_2 as E0,a3 as T,b3 as G0}from"./cli-1.1.35-b0n88pf7.mjs";import{c3 as b0}from"./cli-1.1.35-bq7wadxz.mjs";import{K6 as FQ,T6 as KQ,h7 as ZX,o6 as QZ,q6 as zZ}from"./cli-1.1.35-s85hd24a.mjs";import{D7 as lZ,E7 as vX}from"./cli-1.1.35-a9y8qxsj.mjs";import{G7 as TQ,H7 as AX}from"./cli-1.1.35-6nhv8vhv.mjs";import{Aea as KZ,Iea as NJ,N$ as DZ,S_ as C0,Sca as nQ,T_ as OJ,dga as DQ,mda as kX}from"./cli-1.1.35-dnacc640.mjs";import{$ha as sz,Hha as jZ,Iha as nJ,Sha as JZ}from"./cli-1.1.35-r4rm2297.mjs";import{Qia as fZ,Sia as ez,bja as NZ,gja as wZ,hja as AZ,vja as uz}from"./cli-1.1.35-h06ng57d.mjs";import{Fka as n0,Ika as wX}from"./cli-1.1.35-a7ygtwdr.mjs";import{qla as mQ,yla as _X}from"./cli-1.1.35-g74y15na.mjs";import{Gqa as gQ,Jqa as yX}from"./cli-1.1.35-1ceb2tjb.mjs";import{Tra as K0,Xra as q0}from"./cli-1.1.35-c05841mj.mjs";function bZ(){if(x0!==null)clearTimeout(x0),x0=null;yZ=Date.now();for(let J of GZ)J()}function Kz(){if(x0!==null)return;let J=Date.now()-yZ;if(J>=EZ){bZ();return}x0=setTimeout(bZ,EZ-J)}function oZ(){return CZ.useSyncExternalStore(s0.subscribe,s0.getSnapshot)}function iX(){return CZ.useSyncExternalStore(s0.subscribe,s0.getPresenceSnapshot)}var CZ,$0=null,GZ,x0=null,yZ=0,s0;var tZ=q0(()=>{Fz();CZ=K0(b0(),1),GZ=new Set;s0={update(J){let Z=$0;if($0=J(Z),$0===Z)return;if(Z===null!==($0===null))bZ();else Kz()},clear(){s0.update(()=>null)},read(){return $0},subscribe(J){return GZ.add(J),()=>{GZ.delete(J)}},getSnapshot(){return $0},getPresenceSnapshot(){return $0!==null},resetForTesting(){if(x0!==null)clearTimeout(x0),x0=null;$0=null,yZ=0,GZ.clear()}}});function _Z(J){let Z=Math.floor(J/2);return{leftCols:Z,panelCols:J-Z}}function eZ(J,Z,Q){let{leftCols:z}=_Z(J);return[{lo:0,hi:z-1,rowHi:Z},{lo:z+(Q?Oz:0)+sZ,hi:J-1-sZ,rowHi:Z}]}function ZJ(J){return J>=120}var Oz=1,sZ=1;var vZ=()=>{};function WJ({mode:J,left:Z,bottom:Q,modal:z,panel:X,rows:W,columns:q,scrollRef:H}){let V=X!=null&&J==="split",[F]=JJ(),B=zJ(F).sidePanelBackground,N=!B,C=g0.useRef(null),[U,S]=g0.useState(()=>Math.max(1,W-jz));if(g0.useLayoutEffect(()=>{if(!V)return;let w=C.current;if(!w)return;let P=XJ(w).height;if(P>0)S((j)=>j===P?j:P)}),g0.useLayoutEffect(()=>{if(!V){BZ(null);return}return BZ(eZ(q,U-1,N)),()=>BZ(null)},[V,q,U,N]),z==null&&X==null)return T(E0,{children:[Z,Q]});let l=(w,P)=>{let j=P?0:Uz,M=P?0:1;return Y(kZ,{value:{rows:W-j-M,columns:q-4,scrollRef:H},children:T(D,{position:"absolute",bottom:0,left:0,right:0,height:P?W:void 0,maxHeight:W-j,flexDirection:"column",overflow:"hidden",opaque:!0,children:[P?null:Y(D,{flexShrink:0,children:Y(p,{color:"permission",children:"▔".repeat(q)})}),Y(D,{flexDirection:"column",paddingX:2,flexShrink:0,overflow:"hidden",children:w})]})})},_=z==null?null:l(z,!1);if(V){let{leftCols:w,panelCols:P}=_Z(q);return T(D,{flexDirection:"column",flexGrow:1,width:"100%",overflow:"hidden",children:[T(D,{ref:C,flexDirection:"row",flexGrow:1,width:"100%",overflow:"hidden",children:[Y(QJ,{value:{columns:w,rows:U},children:Y(D,{flexDirection:"column",width:w,flexShrink:0,overflow:"hidden",children:Z})}),Y(kZ,{value:{rows:U,columns:P-(N?1:0),scrollRef:H},children:Y(D,{flexDirection:"column",width:P,flexShrink:0,overflow:"hidden",borderStyle:N?"single":void 0,borderTop:!1,borderBottom:!1,borderRight:!1,borderColor:"subtle",backgroundColor:B?B:void 0,children:Y(D,{flexDirection:"column",flexShrink:0,overflow:"hidden",children:X})})})]}),Q,_]})}return T(E0,{children:[Z,Q,X==null?null:l(X,J==="takeover"),_]})}var g0,Uz=2,jz=6;var qJ=q0(()=>{Pz();wz();Nz();I0();Az();vZ();G0();g0=K0(b0(),1)});function BJ(J){let Z=LZ.c(6),{children:Q}=J,[z,X]=O0.useState(null),[W,q]=O0.useState(null),H;if(Z[0]!==Q||Z[1]!==W)H=Y(HJ.Provider,{value:W,children:Q}),Z[0]=Q,Z[1]=W,Z[2]=H;else H=Z[2];let V;if(Z[3]!==z||Z[4]!==H)V=Y(VJ.Provider,{value:X,children:Y(GJ.Provider,{value:q,children:Y(YJ.Provider,{value:z,children:H})})}),Z[3]=z,Z[4]=H,Z[5]=V;else V=Z[5];return V}function LJ(){return O0.useContext(YJ)}function FJ(){return O0.useContext(HJ)}function W8(J){let Z=LZ.c(8),Q=O0.useContext(VJ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];O0.useEffect(z,X),O0.useEffect(W,q)}function q8(J){let Z=LZ.c(8),Q=O0.useContext(GJ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];O0.useEffect(z,X),O0.useEffect(W,q)}var LZ,O0,YJ,VJ,HJ,GJ;var KJ=q0(()=>{G0();LZ=K0(u0(),1),O0=K0(b0(),1),YJ=O0.createContext(null),VJ=O0.createContext(null),HJ=O0.createContext(null),GJ=O0.createContext(null)});function FZ(J){return J.type==="attachment"&&Mz.has(J.attachment.type)}var Dz,Mz;var IZ=q0(()=>{Dz=["hook_success","hook_additional_context","hook_cancelled","command_permissions","agent_mention","budget_usd","critical_system_reminder","edited_image_file","edited_text_file","opened_file_in_ide","output_style","plan_mode","plan_mode_exit","plan_mode_reentry","structured_output","team_context","todo_reminder","context_efficiency","deferred_tools_delta","mcp_instructions_delta","companion_intro","token_usage","ultrathink_effort","max_turns_reached","task_reminder","auto_mode","auto_mode_exit","output_token_usage","bagel_console","current_session_memory","compaction_reminder","date_change","bash_git_instructions","claude_md_delta","git_status_delta","todo_reminder_delta","task_reconcile","container_transition"],Mz=new Set(Dz)});import{fileURLToPath as _z}from"url";function C8(J){let[Z,Q]=Y0.useState(null),z=Y0.useRef(J);z.current=J;let X=Y0.useRef(null),W=Y0.useCallback(()=>{Q(null)},[]),q=Y0.useCallback((F)=>{let B=Math.max(0,F.getScrollHeight()-F.getViewportHeight());if(F.getScrollTop()+F.getPendingDelta()>=B)return;if(X.current===null)X.current=F.getScrollHeight(),Q(z.current)},[]),H=Y0.useCallback((F)=>{if(!F)return;F.scrollToBottom()},[]);Y0.useEffect(()=>{if(Z===null)X.current=null;else if(J<Z)X.current=null,Q(null)},[J,Z]);let V=Y0.useCallback((F,B)=>{if(Q((N)=>N===null?null:N+F),X.current!==null)X.current+=B},[]);return{dividerIndex:Z,dividerYRef:X,onScrollAway:q,onRepin:W,jumpToNew:H,shiftDivider:V}}function vz(J,Z){let Q=0,z=!1;for(let X=Z;X<J.length;X++){let W=J[X];if(W.type==="progress")continue;if(W.type==="assistant"&&!kz(W))continue;let q=W.type==="assistant";if(q&&!z)Q++;z=q}return Q}function kz(J){if(J.type!=="assistant")return!1;for(let Z of J.message.content)if(Z.type==="text"&&Z.text.trim()!=="")return!0;return!1}function y8(J,Z){if(Z===null)return;let Q=Z;while(Q<J.length&&(J[Q]?.type==="progress"||FZ(J[Q])))Q++;let z=J[Q]?.uuid;if(!z)return;let X=vz(J,Z);return{firstUnseenUuid:z,count:Math.max(1,X)}}function _8(J){let Z=l0.c(48),{scrollable:Q,bottom:z,overlay:X,bottomFloat:W,modal:q,modalScrollRef:H,panel:V,scrollRef:F,dividerYRef:B,hidePill:N,hideSticky:C,newMessageCount:U,onPillClick:S}=J,l=N===void 0?!1:N,_=C===void 0?!1:C,w=U===void 0?0:U,{rows:P,columns:j}=OZ(),[M,E]=Y0.useState(null),R;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))R={setStickyPrompt:E},Z[0]=R;else R=Z[0];let Z0=R,y;if(Z[1]!==F)y=(n)=>F?.current?.subscribe(n)??Tz,Z[1]=F,Z[2]=y;else y=Z[2];let x=y,Q0;if(Z[3]!==B||Z[4]!==F)Q0=()=>{let n=F?.current,i=B?.current;if(!n||i==null)return!1;return n.getScrollTop()+n.getPendingDelta()+n.getViewportHeight()<i},Z[3]=B,Z[4]=F,Z[5]=Q0;else Q0=Z[5];let B0=Y0.useSyncExternalStore(x,Q0),r;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))r=[],Z[6]=r;else r=Z[6];if(Y0.useLayoutEffect(Iz,r),e0()){let n=_?null:M,i=n!=null&&n!=="clicked"&&X==null?n:null,j0=n!=null&&X==null,g;if(Z[7]!==i)g=i&&Y(Rz,{text:i.text,onClick:i.scrollTo}),Z[7]=i,Z[8]=g;else g=Z[8];let o=j0?0:1,t;if(Z[9]!==Q)t=Y(SZ,{value:Z0,children:Q}),Z[9]=Q,Z[10]=t;else t=Z[10];let W0;if(Z[11]!==X||Z[12]!==F||Z[13]!==t||Z[14]!==o)W0=T(MJ,{ref:F,flexGrow:1,flexDirection:"column",paddingTop:o,stickyScroll:!0,children:[t,X]}),Z[11]=X,Z[12]=F,Z[13]=t,Z[14]=o,Z[15]=W0;else W0=Z[15];let v;if(Z[16]!==l||Z[17]!==w||Z[18]!==S||Z[19]!==X||Z[20]!==B0)v=!l&&B0&&X==null&&Y(hz,{count:w,onClick:S}),Z[16]=l,Z[17]=w,Z[18]=S,Z[19]=X,Z[20]=B0,Z[21]=v;else v=Z[21];let z0;if(Z[22]!==W)z0=W!=null&&Y(D,{position:"absolute",bottom:0,right:0,opaque:!0,children:W}),Z[22]=W,Z[23]=z0;else z0=Z[23];let w0;if(Z[24]!==W0||Z[25]!==v||Z[26]!==z0||Z[27]!==g)w0=T(D,{flexGrow:1,flexDirection:"column",overflow:"hidden",children:[g,W0,v,z0]}),Z[24]=W0,Z[25]=v,Z[26]=z0,Z[27]=g,Z[28]=w0;else w0=Z[28];let O,I;if(Z[29]===Symbol.for("react.memo_cache_sentinel"))O=Y($z,{}),I=Y(xz,{}),Z[29]=O,Z[30]=I;else O=Z[29],I=Z[30];let h;if(Z[31]!==z)h=T(D,{flexDirection:"column",flexShrink:0,width:"100%",maxHeight:"50%",children:[O,I,Y(D,{flexDirection:"column",width:"100%",flexGrow:1,overflowY:"hidden",children:z})]}),Z[31]=z,Z[32]=h;else h=Z[32];let L0,N0=V==null?"anchored":ZJ(j)?"split":"takeover";return Y(BJ,{children:Y(WJ,{mode:N0,left:w0,bottom:h,modal:q,panel:V,rows:P,columns:j,scrollRef:H??null})})}let a;if(Z[42]!==z||Z[43]!==q||Z[44]!==X||Z[45]!==Q)a=T(E0,{children:[Q,z,X,q]}),Z[42]=z,Z[43]=q,Z[44]=X,Z[45]=Q,Z[46]=a;else a=Z[46];return a}function Iz(){if(!e0())return;let J=wJ.get(process.stdout);if(!J)return;return J.onHyperlinkClick=Sz,()=>{J.onHyperlinkClick=void 0}}function Sz(J){if(J.startsWith("file:"))try{UJ(_z(J))}catch{}else jJ(J)}function Tz(){}function hz(J){let Z=l0.c(10),{count:Q,onClick:z}=J,[X,W]=Y0.useState(!1),q,H;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=()=>W(!0),H=()=>W(!1),Z[0]=q,Z[1]=H;else q=Z[0],H=Z[1];let V=X?"userMessageBackgroundHover":"userMessageBackground",F;if(Z[2]!==Q)F=Q>0?`${Q} new ${KZ(Q,"message")}`:"Jump to bottom",Z[2]=Q,Z[3]=F;else F=Z[3];let B;if(Z[4]!==V||Z[5]!==F)B=T(p,{backgroundColor:V,dimColor:!0,children:[" ",F," ",C0.arrowDown," "]}),Z[4]=V,Z[5]=F,Z[6]=B;else B=Z[6];let N;if(Z[7]!==z||Z[8]!==B)N=Y(D,{position:"absolute",bottom:0,left:0,right:0,justifyContent:"center",children:Y(D,{onClick:z,onMouseEnter:q,onMouseLeave:H,children:B})}),Z[7]=z,Z[8]=B,Z[9]=N;else N=Z[9];return N}function Rz(J){let Z=l0.c(8),{text:Q,onClick:z}=J,[X,W]=Y0.useState(!1),q=X?"userMessageBackgroundHover":"userMessageBackground",H,V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))H=()=>W(!0),V=()=>W(!1),Z[0]=H,Z[1]=V;else H=Z[0],V=Z[1];let F;if(Z[2]!==Q)F=T(p,{color:"subtle",wrap:"truncate-end",children:[C0.pointer," ",Q]}),Z[2]=Q,Z[3]=F;else F=Z[3];let B;if(Z[4]!==z||Z[5]!==q||Z[6]!==F)B=Y(D,{flexShrink:0,width:"100%",height:1,paddingRight:1,backgroundColor:q,onClick:z,onMouseEnter:H,onMouseLeave:V,children:F}),Z[4]=z,Z[5]=q,Z[6]=F,Z[7]=B;else B=Z[7];return B}function $z(){let J=l0.c(4),Z=LJ();if(!Z||Z.suggestions.length===0)return null;let Q;if(J[0]!==Z.maxColumnWidth||J[1]!==Z.selectedSuggestion||J[2]!==Z.suggestions)Q=Y(D,{position:"absolute",bottom:"100%",left:0,right:0,paddingX:2,paddingTop:1,flexDirection:"column",opaque:!0,children:Y(DJ,{suggestions:Z.suggestions,selectedSuggestion:Z.selectedSuggestion,maxColumnWidth:Z.maxColumnWidth,overlay:!0})}),J[0]=Z.maxColumnWidth,J[1]=Z.selectedSuggestion,J[2]=Z.suggestions,J[3]=Q;else Q=J[3];return Q}function xz(){let J=l0.c(2),Z=FJ();if(!Z)return null;let Q;if(J[0]!==Z)Q=Y(D,{position:"absolute",bottom:"100%",left:0,right:0,opaque:!0,children:Z}),J[0]=Z,J[1]=Q;else Q=J[1];return Q}var l0,Y0,SZ;var EJ=q0(()=>{OJ();qJ();vZ();KJ();PJ();yz();Ez();I0();bz();AJ();NJ();IZ();Cz();G0();l0=K0(u0(),1),Y0=K0(b0(),1),SZ=Y0.createContext({setStickyPrompt:()=>{}})});function bJ(J,Z){for(let Q of J)if(!Z.has(Q))return!1;return!0}var CJ=()=>{};function yJ(J){if(J.type!=="user")return!1;let Z=J.message.content[0];if(Z?.type!=="text")return!1;if(!Z.text.includes(`<${NZ}`))return!1;if(TZ(Z.text,wZ)!=="completed")return!1;return TZ(Z.text,AZ)?.startsWith(_J)??!1}function vJ(J,Z){if(!e0())return J;if(Z)return J;let Q=[],z=0;while(z<J.length){let X=J[z];if(yJ(X)){let W=0;while(z<J.length&&yJ(J[z]))W++,z++;if(W===1)Q.push(X);else Q.push({...X,message:{role:"user",content:[{type:"text",text:`<${NZ}><${wZ}>completed</${wZ}><${AZ}>${W} background commands completed</${AZ}></${NZ}>`}]}})}else Q.push(X),z++}return Q}var kJ=q0(()=>{uz();fz();AJ();PZ()});function IJ(J){return J.type==="system"&&J.subtype==="stop_hook_summary"&&J.hookLabel!==void 0}function SJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(IJ(z)){let X=z.hookLabel,W=[];while(Q<J.length){let q=J[Q];if(!IJ(q)||q.hookLabel!==X)break;W.push(q),Q++}if(W.length===1)Z.push(z);else Z.push({...z,hookCount:W.reduce((q,H)=>q+H.hookCount,0),hookInfos:W.flatMap((q)=>q.hookInfos),hookErrors:W.flatMap((q)=>q.hookErrors),preventedContinuation:W.some((q)=>q.preventedContinuation),hasOutput:W.some((q)=>q.hasOutput),totalDurationMs:Math.max(...W.map((q)=>q.totalDurationMs??0))})}else Z.push(z),Q++}return Z}var TJ=()=>{};function hJ(J){return J.type==="attachment"&&J.attachment.type==="task_status"&&J.attachment.taskType==="in_process_teammate"&&J.attachment.status==="completed"}function RJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(hJ(z)){let X=0;while(Q<J.length&&hJ(J[Q]))X++,Q++;if(X===1)Z.push(z);else Z.push({type:"attachment",uuid:z.uuid,timestamp:z.timestamp,attachment:{type:"teammate_shutdown_batch",count:X}})}else Z.push(z),Q++}return Z}var $J=()=>{};function pz(J){let Z=xJ.get(J);if(!Z)Z=new Set(J.filter((Q)=>Q.renderGroupedToolUse).map((Q)=>Q.name)),xJ.set(J,Z);return Z}function hZ(J){if(J.type==="assistant"&&J.message.content[0]?.type==="tool_use"){let Z=J.message.content[0];return{messageId:J.message.id,toolUseId:Z.id,toolName:Z.name}}return null}function uJ(J,Z,Q=!1){if(Q)return{messages:J};let z=pz(Z),X=new Map;for(let B of J){let N=hZ(B);if(N&&z.has(N.toolName)){let C=`${N.messageId}:${N.toolName}`,U=X.get(C)??[];U.push(B),X.set(C,U)}}let W=new Map,q=new Set;for(let[B,N]of X)if(N.length>=2){W.set(B,N);for(let C of N){let U=hZ(C);if(U)q.add(U.toolUseId)}}let H=new Map;for(let B of J)if(B.type==="user"){for(let N of B.message.content)if(N.type==="tool_result"&&q.has(N.tool_use_id))H.set(N.tool_use_id,B)}let V=[],F=new Set;for(let B of J){let N=hZ(B);if(N){let C=`${N.messageId}:${N.toolName}`,U=W.get(C);if(U){if(!F.has(C)){F.add(C);let S=U[0],l=[];for(let w of U){let P=w.message.content[0].id,j=H.get(P);if(j)l.push(j)}let _={type:"grouped_tool_use",toolName:N.toolName,messages:U,results:l,displayMessage:S,uuid:`grouped-${S.uuid}`,timestamp:S.timestamp,messageId:N.messageId};V.push(_)}continue}}if(B.type==="user"){let C=B.message.content.filter((U)=>U.type==="tool_result");if(C.length>0){if(C.every((S)=>q.has(S.tool_use_id)))continue}}V.push(B)}return{messages:V}}var xJ;var fJ=q0(()=>{xJ=new WeakMap});function UZ(J){let Z=cJ.get(J);if(Z!==void 0)return Z;let Q=dz(J).toLowerCase();return cJ.set(J,Q),Q}function dz(J){let Z="";switch(J.type){case"user":{let X=J.message.content;if(typeof X==="string")Z=dJ.has(X)?"":X;else{let W=[];for(let q of X)if(q.type==="text"){if(!dJ.has(q.text))W.push(q.text)}else if(q.type==="tool_result")W.push(gz(J.toolUseResult));Z=W.join(`
2
- `)}break}case"assistant":{let X=J.message.content;if(Array.isArray(X))Z=X.flatMap((W)=>{if(W.type==="text")return[W.text];if(W.type==="tool_use")return[cz(W.input)];return[]}).join(`
3
- `);break}case"attachment":{if(J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let X=J.attachment.prompt;Z=typeof X==="string"?X:X.flatMap((W)=>W.type==="text"?[W.text]:[]).join(`
4
- `)}break}default:break}let Q=Z,z=Q.indexOf("<system-reminder>");while(z>=0){let X=Q.indexOf(pJ,z);if(X<0)break;Q=Q.slice(0,z)+Q.slice(X+pJ.length),z=Q.indexOf("<system-reminder>")}return Q}function cz(J){if(!J||typeof J!=="object")return"";let Z=J,Q=[];for(let z of["command","pattern","file_path","path","prompt","description","query","url","skill"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["args","files"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(" "))}return Q.join(`
5
- `)}function gz(J){if(!J||typeof J!=="object")return typeof J==="string"?J:"";let Z=J;if(typeof Z.stdout==="string"){let z=typeof Z.stderr==="string"?Z.stderr:"";return Z.stdout+(z?`
6
- `+z:"")}if(Z.file&&typeof Z.file==="object"&&typeof Z.file.content==="string")return Z.file.content;let Q=[];for(let z of["content","output","result","text","message"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["filenames","lines","results"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(`
7
- `))}return Q.join(`
8
- `)}var pJ="</system-reminder>",dJ,cJ;var RZ=q0(()=>{PZ();dJ=new Set([gJ,mJ]),cJ=new WeakMap});function lJ(J){let Z=iJ.c(5),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.type==="assistant"&&Q.message.model&&Q.message.content.some(mz)))return null;let W=jZ(Q.message.model)+8,q;if(Z[0]!==Q.message.model)q=Y(p,{dimColor:!0,children:Q.message.model}),Z[0]=Q.message.model,Z[1]=q;else q=Z[1];let H;if(Z[2]!==W||Z[3]!==q)H=Y(D,{minWidth:W,children:q}),Z[2]=W,Z[3]=q,Z[4]=H;else H=Z[4];return H}function mz(J){return J.type==="text"}var iJ;var rJ=q0(()=>{nJ();I0();G0();iJ=K0(u0(),1)});function oJ(J){let Z=aJ.c(10),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.timestamp&&Q.type==="assistant"&&Q.message.content.some(nz)))return null;let W,q,H;if(Z[0]!==Q.timestamp)q=new Date(Q.timestamp).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}),W=D,H=jZ(q),Z[0]=Q.timestamp,Z[1]=W,Z[2]=q,Z[3]=H;else W=Z[1],q=Z[2],H=Z[3];let V;if(Z[4]!==q)V=Y(p,{dimColor:!0,children:q}),Z[4]=q,Z[5]=V;else V=Z[5];let F;if(Z[6]!==W||Z[7]!==H||Z[8]!==V)F=Y(W,{minWidth:H,children:V}),Z[6]=W,Z[7]=H,Z[8]=V,Z[9]=F;else F=Z[9];return F}function nz(J){return J.type==="text"}var aJ;var tJ=q0(()=>{nJ();I0();G0();aJ=K0(u0(),1)});function qQ(J,Z,Q,z){for(let X=Z+1;X<J.length;X++){let W=J[X];if(W?.type==="assistant"){let q=W.message.content[0];if(q?.type==="thinking"||q?.type==="redacted_thinking")continue;if(q?.type==="tool_use"){if($Z(q.name,q.input,Q).isCollapsible)continue;if(z.has(q.id))continue}return!0}if(W?.type==="system"||W?.type==="attachment")continue;if(W?.type==="user"){if(W.message.content[0]?.type==="tool_result")continue}if(W?.type==="grouped_tool_use"){let q=W.messages[0]?.message.content[0],H=q?.type==="tool_use"?q.input:void 0;if($Z(W.toolName,H,Q).isCollapsible)continue}return!0}return!1}function lz(J){let Z=XQ.c(64),{message:Q,isUserContinuation:z,hasContentAfter:X,tools:W,commands:q,verbose:H,inProgressToolUseIDs:V,streamingToolUseIDs:F,screen:B,canAnimate:N,lastThinkingBlockId:C,latestBashOutputUUID:U,columns:S,isLoading:l,lookups:_}=J,w=B==="transcript",P=Q.type==="grouped_tool_use",j=Q.type==="collapsed_read_search",M;if(Z[0]!==X||Z[1]!==V||Z[2]!==j||Z[3]!==l||Z[4]!==Q)M=j&&(xZ(Q,V)||l&&!X),Z[0]=X,Z[1]=V,Z[2]=j,Z[3]=l,Z[4]=Q,Z[5]=M;else M=Z[5];let E=M,R;if(Z[6]!==j||Z[7]!==P||Z[8]!==Q)R=P?Q.displayMessage:j?eJ(Q):Q,Z[6]=j,Z[7]=P,Z[8]=Q,Z[9]=R;else R=Z[9];let Z0=R,y;if(Z[10]!==j||Z[11]!==P||Z[12]!==_||Z[13]!==Q)y=P||j?[]:LQ(Q,_),Z[10]=j,Z[11]=P,Z[12]=_,Z[13]=Q,Z[14]=y;else y=Z[14];let x=y,Q0;if(Z[15]!==V||Z[16]!==j||Z[17]!==P||Z[18]!==_||Z[19]!==Q||Z[20]!==B||Z[21]!==F){let v=P||j?sJ:BQ(Q,_);Q0=HQ(Q,F,V,v,B,_),Z[15]=V,Z[16]=j,Z[17]=P,Z[18]=_,Z[19]=Q,Z[20]=B,Z[21]=F,Z[22]=Q0}else Q0=Z[22];let B0=Q0,r=!1;if(N)if(P){let v;if(Z[23]!==V||Z[24]!==Q.messages){let z0;if(Z[26]!==V)z0=(w0)=>{let O=w0.message.content[0];return O?.type==="tool_use"&&V.has(O.id)},Z[26]=V,Z[27]=z0;else z0=Z[27];v=Q.messages.some(z0),Z[23]=V,Z[24]=Q.messages,Z[25]=v}else v=Z[25];r=v}else if(j){let v;if(Z[28]!==V||Z[29]!==Q)v=xZ(Q,V),Z[28]=V,Z[29]=Q,Z[30]=v;else v=Z[30];r=v}else{let v;if(Z[31]!==V||Z[32]!==Q){let z0=m0(Q);v=!z0||V.has(z0),Z[31]=V,Z[32]=Q,Z[33]=v}else v=Z[33];r=v}let a;if(Z[34]!==Z0||Z[35]!==w)a=w&&Z0.type==="assistant"&&Z0.message.content.some(rz)&&(Z0.timestamp||Z0.message.model),Z[34]=Z0,Z[35]=w,Z[36]=a;else a=Z[36];let n=a,i=!n,j0=n?void 0:S,g;if(Z[37]!==q||Z[38]!==V||Z[39]!==E||Z[40]!==B0||Z[41]!==w||Z[42]!==z||Z[43]!==C||Z[44]!==U||Z[45]!==_||Z[46]!==Q||Z[48]!==x||Z[49]!==r||Z[50]!==i||Z[51]!==j0||Z[52]!==W||Z[53]!==H)g=Y(zQ,{message:Q,lookups:_,addMargin:i,containerWidth:j0,tools:W,commands:q,verbose:H,inProgressToolUseIDs:V,progressMessagesForMessage:x,shouldAnimate:r,shouldShowDot:!0,isTranscriptMode:w,isStatic:B0,isActiveCollapsedGroup:E,isUserContinuation:z,lastThinkingBlockId:C,latestBashOutputUUID:U}),Z[37]=q,Z[38]=V,Z[39]=E,Z[40]=B0,Z[41]=w,Z[42]=z,Z[43]=C,Z[44]=U,Z[45]=_,Z[46]=Q,Z[48]=x,Z[49]=r,Z[50]=i,Z[51]=j0,Z[52]=W,Z[53]=H,Z[54]=g;else g=Z[54];let o=g;if(!n){let v;if(Z[55]!==o)v=Y(ZZ,{children:o}),Z[55]=o,Z[56]=v;else v=Z[56];return v}let t;if(Z[57]!==Z0||Z[58]!==w)t=T(D,{flexDirection:"row",justifyContent:"flex-end",gap:1,marginTop:1,children:[Y(oJ,{message:Z0,isTranscriptMode:w}),Y(lJ,{message:Z0,isTranscriptMode:w})]}),Z[57]=Z0,Z[58]=w,Z[59]=t;else t=Z[59];let W0;if(Z[60]!==S||Z[61]!==o||Z[62]!==t)W0=Y(ZZ,{children:T(D,{width:S,flexDirection:"column",children:[t,o]})}),Z[60]=S,Z[61]=o,Z[62]=t,Z[63]=W0;else W0=Z[63];return W0}function rz(J){return J.type==="text"}function az(J,Z){if(J.type==="grouped_tool_use")return J.messages.some((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return uZ(J).some((X)=>Z.has(X));let Q=m0(J);return!!Q&&Z.has(Q)}function oz(J,Z){if(J.type==="grouped_tool_use")return J.messages.every((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return uZ(J).every((X)=>Z.has(X));if(J.type==="assistant"){let z=J.message.content[0];if(z?.type==="server_tool_use")return Z.has(z.id)}let Q=m0(J);return!Q||Z.has(Q)}function tz(J,Z){if(J.message!==Z.message)return!1;if(J.screen!==Z.screen)return!1;if(J.verbose!==Z.verbose)return!1;if(J.message.type==="collapsed_read_search"&&Z.screen!=="transcript")return!1;if(J.columns!==Z.columns)return!1;let Q=J.latestBashOutputUUID===J.message.uuid,z=Z.latestBashOutputUUID===Z.message.uuid;if(Q!==z)return!1;if(J.lastThinkingBlockId!==Z.lastThinkingBlockId&&QQ(Z.message))return!1;let X=az(J.message,J.streamingToolUseIDs),W=oz(J.message,J.lookups.resolvedToolUseIDs);if(X||!W)return!1;return!0}var XQ,WQ,YQ;var VQ=q0(()=>{I0();ZQ();PZ();iz();rJ();GQ();tJ();JQ();G0();XQ=K0(u0(),1),WQ=K0(b0(),1);YQ=WQ.memo(lz,tz)});import{relative as XX}from"path";function AQ(J){return BX.filter((Z)=>Z.isActive(J))}var WX,qX,YX,VX,HX,GX,BX;var PQ=q0(()=>{I0();jQ();OJ();ez();sz();ZX();zX();QX();JX();G0();WX={id:"large-memory-files",type:"warning",isActive:(J)=>gZ(J.memoryFiles).length>0,render:(J)=>{let Z=gZ(J.memoryFiles);return Y(E0,{children:Z.map((Q)=>{let z=Q.path.startsWith(fZ())?XX(fZ(),Q.path):Q.path;return T(D,{flexDirection:"row",children:[Y(p,{color:"warning",children:C0.warning}),T(p,{color:"warning",children:["Large ",Y(p,{bold:!0,children:z})," will impact performance (",JZ(Q.content.length)," chars >"," ",JZ(UQ),")",Y(p,{dimColor:!0,children:" · /memory to edit"})]})]},Q.path)})})}},qX={id:"claude-ai-external-token",type:"warning",isActive:()=>{let J=QZ();return KQ()&&(J.source==="ANTHROPIC_AUTH_TOKEN"||J.source==="apiKeyHelper")},render:()=>{let J=QZ();return T(D,{flexDirection:"row",marginTop:1,children:[Y(p,{color:"warning",children:C0.warning}),T(p,{color:"warning",children:["Auth conflict: Using ",J.source," instead of Claude account subscription token. Either unset ",J.source,", or run `claude /logout`."]})]})}},YX={id:"api-key-conflict",type:"warning",isActive:()=>{let{source:J}=zZ({skipRetrievingKeyFromApiKeyHelper:!0});return!!FQ()&&(J==="ANTHROPIC_API_KEY"||J==="apiKeyHelper")},render:()=>{let{source:J}=zZ({skipRetrievingKeyFromApiKeyHelper:!0});return T(D,{flexDirection:"row",marginTop:1,children:[Y(p,{color:"warning",children:C0.warning}),T(p,{color:"warning",children:["Auth conflict: Using ",J," instead of Anthropic Console key. Either unset ",J,", or run `claude /logout`."]})]})}},VX={id:"both-auth-methods",type:"warning",isActive:()=>{let{source:J}=zZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=QZ();return J!=="none"&&Z.source!=="none"&&!(J==="apiKeyHelper"&&Z.source==="apiKeyHelper")},render:()=>{let{source:J}=zZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=QZ();return T(D,{flexDirection:"column",marginTop:1,children:[T(D,{flexDirection:"row",children:[Y(p,{color:"warning",children:C0.warning}),T(p,{color:"warning",children:["Auth conflict: Both a token (",Z.source,") and an API key (",J,") are set. This may lead to unexpected behavior."]})]}),T(D,{flexDirection:"column",marginLeft:3,children:[T(p,{color:"warning",children:["· Trying to use"," ",Z.source==="claude.ai"?"claude.ai":Z.source,"?"," ",J==="ANTHROPIC_API_KEY"?'Unset the ANTHROPIC_API_KEY environment variable, or claude /logout then say "No" to the API key approval before login.':J==="apiKeyHelper"?"Unset the apiKeyHelper setting.":"claude /logout"]}),T(p,{color:"warning",children:["· Trying to use ",J,"?"," ",Z.source==="claude.ai"?"claude /logout to sign out of claude.ai.":`Unset the ${Z.source} environment variable.`]})]})]})}},HX={id:"large-agent-descriptions",type:"warning",isActive:(J)=>{return cZ(J.agentDefinitions)>dZ},render:(J)=>{let Z=cZ(J.agentDefinitions);return T(D,{flexDirection:"row",children:[Y(p,{color:"warning",children:C0.warning}),T(p,{color:"warning",children:["Large cumulative agent descriptions will impact performance (~",JZ(Z)," tokens >"," ",JZ(dZ),")",Y(p,{dimColor:!0,children:" · /agents to manage"})]})]})}},GX={id:"jetbrains-plugin-install",type:"info",isActive:(J)=>{if(!NQ())return!1;if(!(J.config.autoInstallIdeExtension??!0))return!1;let Q=pZ();return Q!==null&&!OQ(Q)},render:()=>{let J=pZ(),Z=wQ(J);return T(D,{flexDirection:"row",gap:1,marginLeft:1,children:[Y(p,{color:"ide",children:C0.arrowUp}),T(p,{children:["Install the ",Y(p,{color:"ide",children:Z})," plugin from the JetBrains Marketplace:"," ",Y(p,{bold:!0,children:"https://docs.claude.com/s/claude-code-jetbrains"})]})]})}},BX=[WX,HX,qX,YX,VX,GX]});async function LX(){if(XZ)return XZ;return XZ=CQ().then((J)=>{WZ=J}).finally(()=>{XZ=null}),XZ}function EQ(J){let Z=MQ.c(8),{agentDefinitions:Q}=J===void 0?{}:J,[z,X]=r0.useState(WZ),W;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))W=()=>{if(WZ.length>0){X(WZ);return}LX().then(()=>{X(WZ)})},Z[0]=W;else W=Z[0];r0.useEffect(W,[W]);let H={config:DZ(),agentDefinitions:Q,memoryFiles:z},V=AQ(H);if(V.length===0)return null;let F=D,B="column",N=1,C=V.map((S)=>Y(r0.Fragment,{children:S.render(H)},S.id)),U;if(Z[1]!==F||Z[2]!==C)U=Y(F,{flexDirection:B,paddingLeft:N,children:C}),Z[1]=F,Z[2]=C,Z[3]=U;else U=Z[3];return U}var MQ,r0,WZ,XZ=null;var bQ=q0(()=>{I0();jQ();DQ();PQ();G0();MQ=K0(u0(),1),r0=K0(b0(),1),WZ=[]});function yQ(J,Z,Q=200,z=50){let X=Z.current,W=X?J.findIndex((V)=>V.uuid===X.uuid):-1,q=W>=0?W:X?Math.min(X.idx,Math.max(0,J.length-Q)):0;if(J.length-q>Q+z)q=J.length-Q;let H=J[q];if(H&&(X?.uuid!==H.uuid||X.idx!==q))Z.current={uuid:H.uuid,idx:q};else if(!H&&X)Z.current=null;return q}var _Q=()=>{};function vQ(J,Z,Q){let z=c.useRef(new Map),X=c.useRef(0),W=c.useRef(0),q=c.useRef({arr:new Float64Array(0),version:-1,n:-1}),H=c.useRef(new Map),V=c.useRef(new Map),F=c.useRef(Q),B=c.useRef(!1),N=c.useRef(null),C=c.useRef(0);if(F.current!==Q){let O=F.current/Q;F.current=Q;for(let[I,h]of z.current)z.current.set(I,Math.max(1,Math.round(h*O)));X.current++,B.current=!0,C.current=2}let U=C.current>0?N.current:null,S=c.useRef(0),l=c.useRef(null),_=c.useCallback((O)=>J.current?.subscribe(O)??NX,[J]);c.useSyncExternalStore(_,()=>{let O=J.current;if(!O)return NaN;let I=O.getScrollTop()+O.getPendingDelta(),h=Math.floor(I/OX);return O.isSticky()?~h:h});let w=J.current?.getScrollTop()??-1,P=J.current?.getPendingDelta()??0,j=J.current?.getViewportHeight()??0,M=J.current?.isSticky()??!0;c.useMemo(()=>{let O=new Set(Z),I=!1;for(let h of z.current.keys())if(!O.has(h))z.current.delete(h),I=!0;for(let h of V.current.keys())if(!O.has(h))V.current.delete(h);if(I)X.current++},[Z]);let E=Z.length;if(q.current.version!==X.current||q.current.n!==E){let O=q.current.arr.length>=E+1?q.current.arr:new Float64Array(E+1);O[0]=0;for(let I=0;I<E;I++)O[I+1]=O[I]+(z.current.get(Z[I])??FX);q.current={arr:O,version:X.current,n:E}}let R=q.current.arr,Z0=R[E],y,x;if(U)[y,x]=U,y=Math.min(y,E),x=Math.min(x,E);else if(j===0||w<0)y=Math.max(0,E-KX),x=E;else{if(M){let J0=j+a0;y=E;while(y>0&&Z0-R[y-1]<J0)y--;x=E}else{let J0=S.current,V0=j*3,f0=Math.min(w,w+P),S0=Math.max(w,w+P),P0=S0-f0,T0=P0>V0?P<0?S0-V0:f0:f0,h0=T0+Math.min(P0,V0),p0=Math.max(0,T0-J0),d0=h0-J0,y0=p0-a0;{let G=0,K=E;while(G<K){let A=G+K>>1;if(R[A+1]<=y0)G=A+1;else K=A}y=G}{let G=N.current;if(G&&G[0]<y)for(let K=G[0];K<Math.min(y,G[1]);K++){let A=Z[K];if(H.current.has(A)&&!z.current.has(A)){y=K;break}}}let i0=j+2*a0,o0=Math.min(E,y+qZ),_0=0;x=y;while(x<o0&&(_0<i0||R[x]<d0+j+a0))_0+=z.current.get(Z[x])??mZ,x++}let O=j+2*a0,I=Math.max(0,x-qZ),h=0;for(let J0=y;J0<x;J0++)h+=z.current.get(Z[J0])??mZ;while(y>I&&h<O)y--,h+=z.current.get(Z[y])??mZ;let L0=N.current,N0=Math.abs(w-W.current)+Math.abs(P);if(L0&&N0>j*2){let[J0,V0]=L0;if(y<J0-YZ)y=J0-YZ;if(x>V0+YZ)x=V0+YZ;if(y>x)x=Math.min(y+YZ,E)}W.current=w}if(C.current>0)C.current--;else N.current=[y,x];let Q0=c.useDeferredValue(y),B0=c.useDeferredValue(x),r=y<Q0?Q0:y,a=x>B0?B0:x;if(r>a||M)r=y,a=x;if(P>0)a=x;if(a-r>qZ){let O=(R[r]+R[a])/2;if(w-S.current<O)a=r+qZ;else r=a-qZ}let n=S.current,i=R[r],j0=r===0?0:i+n,g=a===E?1/0:Math.max(i,R[a]-j)+n;c.useLayoutEffect(()=>{if(M)J.current?.setClampBounds(void 0,void 0);else J.current?.setClampBounds(j0,g)}),c.useLayoutEffect(()=>{let O=l.current?.yogaNode;if(O&&O.getComputedWidth()>0)S.current=O.getComputedTop();if(B.current){B.current=!1;return}let I=!1;for(let[h,L0]of H.current){let N0=L0.yogaNode;if(!N0)continue;let J0=N0.getComputedHeight(),V0=z.current.get(h);if(J0>0){if(V0!==J0)z.current.set(h,J0),I=!0}else if(N0.getComputedWidth()>0&&V0!==0)z.current.set(h,0),I=!0}if(I)X.current++});let o=c.useCallback((O)=>{let I=V.current.get(O);if(!I)I=(h)=>{if(h)H.current.set(O,h);else{let L0=H.current.get(O)?.yogaNode;if(L0&&!B.current){let N0=L0.getComputedHeight();if((N0>0||L0.getComputedWidth()>0)&&z.current.get(O)!==N0)z.current.set(O,N0),X.current++}H.current.delete(O)}},V.current.set(O,I);return I},[]),t=c.useCallback((O)=>{let I=H.current.get(Z[O])?.yogaNode;if(!I||I.getComputedWidth()===0)return-1;return I.getComputedTop()},[Z]),W0=c.useCallback((O)=>H.current.get(Z[O])??null,[Z]),v=c.useCallback((O)=>z.current.get(Z[O]),[Z]),z0=c.useCallback((O)=>{let I=q.current;if(O<0||O>=I.n)return;J.current?.scrollTo(I.arr[O]+S.current)},[J]),w0=Z0-R[a];return{range:[r,a],topSpacer:i,bottomSpacer:w0,measureRef:o,spacerRef:l,offsets:R,getItemTop:t,getItemElement:W0,getItemHeight:v,scrollToIndex:z0}}var c,FX=3,a0=80,KX=30,OX,mZ=1,qZ=300,YZ=25,NX=()=>{};var kQ=q0(()=>{c=K0(b0(),1),OX=a0>>1});function UX(J){let Z=IQ.get(J);if(Z!==void 0)return Z;let Q=UZ(J);return IQ.set(J,Q),Q}function DX(J){let Z=SQ.get(J);if(Z!==void 0)return Z;let Q=MX(J);return SQ.set(J,Q),Q}function MX(J){let Z=null;if(J.type==="user"){if(J.isMeta||J.isVisibleInTranscriptOnly)return null;let z=J.message.content[0];if(z?.type!=="text")return null;Z=z.text}else if(J.type==="attachment"&&J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let z=J.attachment.prompt;Z=typeof z==="string"?z:z.flatMap((X)=>X.type==="text"?[X.text]:[]).join(`
9
- `)}if(Z===null)return null;let Q=xQ(Z);if(Q.startsWith("<")||Q==="")return null;return Q}function EX(J){let Z=fQ.c(30),{itemKey:Q,msg:z,idx:X,measureRef:W,expanded:q,hovered:H,clickable:V,onClickK:F,onEnterK:B,onLeaveK:N,renderItem:C}=J,U;if(Z[0]!==Q||Z[1]!==W)U=W(Q),Z[0]=Q,Z[1]=W,Z[2]=U;else U=Z[2];let S=q?"userMessageBackgroundHover":void 0,l=q?1:void 0,_;if(Z[3]!==V||Z[4]!==z||Z[5]!==F)_=V?(Z0)=>F(z,Z0.cellIsBlank):void 0,Z[3]=V,Z[4]=z,Z[5]=F,Z[6]=_;else _=Z[6];let w;if(Z[7]!==V||Z[8]!==Q||Z[9]!==B)w=V?()=>B(Q):void 0,Z[7]=V,Z[8]=Q,Z[9]=B,Z[10]=w;else w=Z[10];let P;if(Z[11]!==V||Z[12]!==Q||Z[13]!==N)P=V?()=>N(Q):void 0,Z[11]=V,Z[12]=Q,Z[13]=N,Z[14]=P;else P=Z[14];let j=H&&!q?"text":void 0,M;if(Z[15]!==X||Z[16]!==z||Z[17]!==C)M=C(z,X),Z[15]=X,Z[16]=z,Z[17]=C,Z[18]=M;else M=Z[18];let E;if(Z[19]!==j||Z[20]!==M)E=Y(hQ.Provider,{value:j,children:M}),Z[19]=j,Z[20]=M,Z[21]=E;else E=Z[21];let R;if(Z[22]!==U||Z[23]!==S||Z[24]!==l||Z[25]!==_||Z[26]!==w||Z[27]!==P||Z[28]!==E)R=Y(D,{ref:U,flexDirection:"column",backgroundColor:S,paddingBottom:l,onClick:_,onMouseEnter:w,onMouseLeave:P,children:E}),Z[22]=U,Z[23]=S,Z[24]=l,Z[25]=_,Z[26]=w,Z[27]=P,Z[28]=E,Z[29]=R;else R=Z[29];return R}function pQ({messages:J,scrollRef:Z,columns:Q,itemKey:z,renderItem:X,onItemClick:W,isItemClickable:q,isItemExpanded:H,extractSearchText:V=UX,trackStickyPrompt:F,selectedIndex:B,cursorNavRef:N,setCursor:C,jumpRef:U,onSearchMatchesChange:S,scanElement:l,setPositions:_}){let w=k.useRef([]),P=k.useRef(J),j=k.useRef(z);if(j.current!==z||J.length<w.current.length||J[0]!==P.current[0])w.current=J.map((G)=>z(G));else for(let G=w.current.length;G<J.length;G++)w.current.push(z(J[G]));P.current=J,j.current=z;let M=w.current,{range:E,topSpacer:R,bottomSpacer:Z0,measureRef:y,spacerRef:x,offsets:Q0,getItemTop:B0,getItemElement:r,getItemHeight:a,scrollToIndex:n}=vQ(Z,M,Q),[i,j0]=E,g=k.useCallback((G)=>{if(a(G)===0)return!1;return RQ(J[G])},[a,J]);k.useImperativeHandle(N,()=>{let G=(u)=>C?.({uuid:u.uuid,msgType:u.type,expanded:!1,toolName:$Q(u)?.name}),K=B??-1,A=(u,m,s=g)=>{for(let d=u;d>=0&&d<J.length;d+=m)if(s(d))return G(J[d]),!0;return!1},$=(u)=>g(u)&&J[u].type==="user";return{enterCursor:()=>A(J.length-1,-1,$),navigatePrev:()=>A(K-1,-1),navigateNext:()=>{if(A(K+1,1))return;Z.current?.scrollToBottom(),C?.(null)},navigatePrevUser:()=>A(K-1,-1,$),navigateNextUser:()=>A(K+1,1,$),navigateTop:()=>A(0,1),navigateBottom:()=>A(J.length-1,-1),getSelected:()=>K>=0?J[K]??null:null}},[J,B,C,g]);let o=k.useRef({offsets:Q0,start:i,getItemElement:r,getItemTop:B0,messages:J,scrollToIndex:n});o.current={offsets:Q0,start:i,getItemElement:r,getItemTop:B0,messages:J,scrollToIndex:n},k.useEffect(()=>{if(B===void 0)return;let G=o.current,K=G.getItemElement(B);if(K)Z.current?.scrollToElement(K,1);else G.scrollToIndex(B)},[B,Z]);let t=k.useRef(null),W0=k.useRef({msgIdx:-1,positions:[]}),v=k.useRef(-1),z0=k.useRef(0),w0=k.useRef(0),O=k.useRef(()=>{}),I=k.useRef(()=>{}),h=k.useRef({matches:[],ptr:0,screenOrd:0,prefixSum:[]}),L0=k.useRef(-1),N0=k.useRef(!1);function J0(G){let K=o.current.getItemTop(G);return Math.max(0,K-nZ)}function V0(G){let K=Z.current,{msgIdx:A,positions:$}=W0.current;if(!K||$.length===0||A<0){_?.(null);return}let u=Math.max(0,Math.min(G,$.length-1)),m=$[u],s=o.current.getItemTop(A),d=K.getViewportTop(),X0=s-K.getScrollTop(),R0=K.getViewportHeight(),A0=d+X0+m.row;if(A0<d||A0>=d+R0)K.scrollTo(Math.max(0,s+m.row-nZ)),X0=s-K.getScrollTop(),A0=d+X0+m.row;_?.({positions:$,rowOffset:d+X0,currentIdx:u});let M0=h.current,U0=M0.prefixSum.at(-1)??0,D0=(M0.prefixSum[M0.ptr]??0)+u+1;S?.(U0,D0),n0(`highlight(i=${A}, ord=${u}/${$.length}): pos={row:${m.row},col:${m.col}} lo=${X0} screenRow=${A0} badge=${D0}/${U0}`)}I.current=V0;let[f0,S0]=k.useState(0),P0=k.useCallback(()=>S0((G)=>G+1),[]);k.useEffect(()=>{let G=t.current;if(!G)return;let{idx:K,wantLast:A,tries:$}=G,u=Z.current;if(!u)return;let{getItemElement:m,getItemTop:s,scrollToIndex:d}=o.current,X0=m(K),R0=X0?.yogaNode?.getComputedHeight()??0;if(!X0||R0===0){if($>1){t.current=null,n0(`seek(i=${K}): no mount after scrollToIndex, skip`),O.current(A?-1:1);return}t.current={idx:K,wantLast:A,tries:$+1},d(K),P0();return}t.current=null,u.scrollTo(Math.max(0,s(K)-nZ));let A0=l?.(X0)??[];if(W0.current={msgIdx:K,positions:A0},n0(`seek(i=${K} t=${$}): ${A0.length} positions`),A0.length===0){if(++z0.current>20){z0.current=0;return}O.current(A?-1:1);return}z0.current=0;let M0=A?A0.length-1:0;h.current.screenOrd=M0,v.current=-1,I.current(M0);let U0=w0.current;if(U0)w0.current=0,O.current(U0)},[f0]);function T0(G,K){let A=Z.current;if(!A)return;let $=o.current,{getItemElement:u,scrollToIndex:m}=$;if(G<0||G>=$.messages.length)return;_?.(null),W0.current={msgIdx:-1,positions:[]},t.current={idx:G,wantLast:K,tries:0};let s=u(G),d=s?.yogaNode?.getComputedHeight()??0;if(s&&d>0)A.scrollTo(J0(G));else m(G);P0()}function h0(G){let K=h.current,{matches:A,prefixSum:$}=K,u=$.at(-1)??0;if(A.length===0)return;if(t.current){w0.current=G;return}if(v.current<0)v.current=K.ptr;let{positions:m}=W0.current,s=K.screenOrd+G;if(s>=0&&s<m.length){K.screenOrd=s,V0(s),v.current=-1;return}let d=(K.ptr+G+A.length)%A.length;if(d===v.current){_?.(null),v.current=-1,n0(`step: wraparound at ptr=${d}, all ${A.length} msgs phantoms`);return}K.ptr=d,K.screenOrd=0,T0(A[d],G<0);let X0=G<0?$[d+1]??u:$[d]+1;S?.(u,X0)}O.current=h0,k.useImperativeHandle(U,()=>({jumpToIndex:(G)=>{let K=Z.current;if(K)K.scrollTo(J0(G))},setSearchQuery:(G)=>{t.current=null,W0.current={msgIdx:-1,positions:[]},v.current=-1,_?.(null);let K=G.toLowerCase(),A=[],$=[0];if(K){let U0=o.current.messages;for(let D0=0;D0<U0.length;D0++){let v0=V(U0[D0]),L=v0.indexOf(K),b=0;while(L>=0)b++,L=v0.indexOf(K,L+K.length);if(b>0)A.push(D0),$.push($.at(-1)+b)}}let u=$.at(-1),m=0,s=Z.current,{offsets:d,start:X0,getItemTop:R0}=o.current,A0=R0(X0),M0=A0>=0?A0-d[X0]:0;if(A.length>0&&s){let U0=L0.current>=0?L0.current:s.getScrollTop(),D0=1/0;for(let v0=0;v0<A.length;v0++){let L=Math.abs(M0+d[A[v0]]-U0);if(L<=D0)D0=L,m=v0}n0(`setSearchQuery('${G}'): ${A.length} msgs · ptr=${m} msgIdx=${A[m]} curTop=${U0} origin=${M0}`)}if(h.current={matches:A,ptr:m,screenOrd:0,prefixSum:$},A.length>0)T0(A[m],!0);else if(L0.current>=0&&s)s.scrollTo(L0.current);S?.(u,A.length>0?$[m+1]??u:0)},nextMatch:()=>h0(1),prevMatch:()=>h0(-1),setAnchor:()=>{let G=Z.current;if(G)L0.current=G.getScrollTop()},disarmSearch:()=>{_?.(null),t.current=null,W0.current={msgIdx:-1,positions:[]},v.current=-1},warmSearchIndex:async()=>{if(N0.current)return 0;let G=o.current.messages,K=500,A=0,$=performance.now();for(let m=0;m<G.length;m+=K){await TQ(0);let s=performance.now(),d=Math.min(m+K,G.length);for(let X0=m;X0<d;X0++)V(G[X0]);A+=performance.now()-s}let u=Math.round(performance.now()-$);return n0(`warmSearchIndex: ${G.length} msgs · work=${Math.round(A)}ms wall=${u}ms chunks=${Math.ceil(G.length/K)}`),N0.current=!0,Math.round(A)}}),[Z]);let[p0,d0]=k.useState(null),y0=k.useRef({onItemClick:W,setHoveredKey:d0});y0.current={onItemClick:W,setHoveredKey:d0};let i0=k.useCallback((G,K)=>{let A=y0.current;if(!K&&A.onItemClick)A.onItemClick(G)},[]),o0=k.useCallback((G)=>{y0.current.setHoveredKey(G)},[]),_0=k.useCallback((G)=>{y0.current.setHoveredKey((K)=>K===G?null:K)},[]);return T(E0,{children:[Y(D,{ref:x,height:R,flexShrink:0}),J.slice(i,j0).map((G,K)=>{let A=i+K,$=M[A],u=!!W&&(q?.(G)??!0),m=u&&p0===$,s=H?.(G);return Y(EX,{itemKey:$,msg:G,idx:A,measureRef:y,expanded:s,hovered:m,clickable:u,onClickK:i0,onEnterK:o0,onLeaveK:_0,renderItem:X},$)}),Z0>0&&Y(D,{height:Z0,flexShrink:0}),F&&Y(CX,{messages:J,start:i,end:j0,offsets:Q0,getItemTop:B0,getItemElement:r,scrollRef:Z})]})}function CX({messages:J,start:Z,end:Q,offsets:z,getItemTop:X,getItemElement:W,scrollRef:q}){let{setStickyPrompt:H}=k.useContext(SZ),V=k.useCallback((M)=>q.current?.subscribe(M)??bX,[q]);k.useSyncExternalStore(V,()=>{let M=q.current;if(!M)return NaN;let E=M.getScrollTop()+M.getPendingDelta();return M.isSticky()?-1-E:E});let F=q.current?.isSticky()??!0,B=Math.max(0,(q.current?.getScrollTop()??0)+(q.current?.getPendingDelta()??0)),N=Z,C=-1;for(let M=Q-1;M>=Z;M--){let E=X(M);if(E>=0){if(E<B)break;C=E}N=M}let U=-1,S=null;if(N>0&&!F)for(let M=N-1;M>=0;M--){let E=DX(J[M]);if(E===null)continue;let R=X(M);if(R>=0&&R+1>=B)continue;U=M,S=E;break}let l=C>=0?C-z[N]:0,_=U>=0?Math.max(0,l+z[U]):-1,w=k.useRef({idx:-1,tries:0}),P=k.useRef("none"),j=k.useRef(-1);return k.useEffect(()=>{if(w.current.idx>=0)return;if(P.current==="armed"){P.current="force";return}let M=P.current==="force";if(P.current="none",!M&&j.current===U)return;if(j.current=U,S===null){H(null);return}let E=S.trimStart(),R=E.search(/\n\s*\n/),Z0=(R>=0?E.slice(0,R):E).slice(0,jX).replace(/\s+/g," ").trim();if(Z0===""){H(null);return}let y=U,x=_;H({text:Z0,scrollTo:()=>{H("clicked"),P.current="armed";let Q0=W(y);if(Q0)q.current?.scrollToElement(Q0,1);else q.current?.scrollTo(x),w.current={idx:y,tries:0}}})}),k.useEffect(()=>{if(w.current.idx<0)return;let M=W(w.current.idx);if(M)q.current?.scrollToElement(M,1),w.current={idx:-1,tries:0};else if(++w.current.tries>5)w.current={idx:-1,tries:0}}),null}var fQ,k,nZ=3,IQ,jX=500,SQ,bX=()=>{};var dQ=q0(()=>{kQ();I0();PX();EJ();wX();AX();RZ();uQ();G0();fQ=K0(u0(),1),k=K0(b0(),1),IQ=new WeakMap;SQ=new WeakMap});function cQ(J){return(J.type==="assistant"||J.type==="user"?m0(J):null)??J.uuid}function mX(J,Z){if(J.size!==Z.size)return!1;for(let Q of J)if(!Z.has(Q))return!1;return!0}function HQ(J,Z,Q,z,X,W){if(X==="transcript")return!0;switch(J.type){case"attachment":case"user":case"assistant":{if(J.type==="assistant"){let H=J.message.content[0];if(H?.type==="server_tool_use")return W.resolvedToolUseIDs.has(H.id)}let q=m0(J);if(!q)return!0;if(Z.has(q))return!1;if(Q.has(q))return!1;if(Bz(q,"PostToolUse",W))return!1;return bJ(z,W.resolvedToolUseIDs)}case"system":return J.subtype!=="api_error";case"grouped_tool_use":return J.messages.every((H)=>{let V=H.message.content[0];return V?.type==="tool_use"&&W.resolvedToolUseIDs.has(V.id)});case"collapsed_read_search":return!1}return!1}var Wz,VZ,f,dX,iZ=30,cX=({messages:J,tools:Z,commands:Q,verbose:z,toolJSX:X,toolUseConfirmQueue:W,inProgressToolUseIDs:q,isMessageSelectorVisible:H,conversationId:V,screen:F,streamingToolUses:B,showAllInTranscript:N=!1,agentDefinitions:C,hideLogo:U=!1,isLoading:S,hidePastThinking:l=!1,streamingThinking:_,hasStreamingText:w=!1,isBriefOnly:P=!1,unseenDivider:j,scrollRef:M,trackStickyPrompt:E,jumpRef:R,onSearchMatchesChange:Z0,scanElement:y,setPositions:x,disableRenderCap:Q0=!1,cursor:B0=null,setCursor:r,cursorNavRef:a,renderRange:n})=>{let{columns:i}=OZ(),j0=aQ("transcript:toggleShowAll","Transcript","Ctrl+E"),g=f.useMemo(()=>aZ(J).filter(qz),[J]),o=f.useMemo(()=>{if(!_)return!1;if(_.isStreaming)return!0;if(_.streamingEndedAt)return Date.now()-_.streamingEndedAt<30000;return!1},[_]),t=f.useMemo(()=>{if(!l)return null;if(o)return"streaming";for(let L=g.length-1;L>=0;L--){let b=g[L];if(b?.type==="assistant"){let H0=b.message.content;for(let e=H0.length-1;e>=0;e--){let F0=H0[e];if(F0?.type==="thinking"&&!Qz(F0))return`${b.uuid}:${e}`}}else if(b?.type==="user"){if(!b.message.content.some((e)=>e.type==="tool_result"))return"no-thinking"}}return null},[g,l,o]),W0=f.useMemo(()=>{for(let L=g.length-1;L>=0;L--){let b=g[L];if(b?.type==="user"){let H0=b.message.content;for(let e of H0)if(e.type==="text"){let F0=e.text;if(F0.startsWith("<bash-stdout")||F0.startsWith("<bash-stderr"))return b.uuid}}}return null},[g]),v=f.useMemo(()=>Lz(g),[g]),z0=f.useMemo(()=>B.filter((L)=>!q.has(L.contentBlock.id)&&!v.has(L.contentBlock.id)),[B,q,v]),w0=f.useMemo(()=>z0.flatMap((L)=>{let b=zz({content:[L.contentBlock]});return b.uuid=iQ(L.contentBlock.id,0),aZ([b])}),[z0]),O=F==="transcript",I=f.useMemo(()=>mQ(process.env.CLAUDIN_DISABLE_VIRTUAL_SCROLL),[]),h=M!=null&&!I,L0=O&&!N&&!h,N0=f.useRef(null),{collapsed:J0,lookups:V0,hasTruncatedMessages:f0,hiddenMessageCount:S0}=f.useMemo(()=>{let b=Vz(g.filter((t0)=>t0.type!=="progress").filter((t0)=>!FZ(t0)).filter((t0)=>Yz(t0,O)),w0),H0=L0?b.slice(-iZ):b,e=L0&&b.length>iZ,{messages:F0}=uJ(H0,Z,z),k0=vJ(SJ(RJ(Jz(sQ(F0,Z)))),z),HZ=Hz(g,H0),c0=b.length-iZ;return{collapsed:k0,lookups:HZ,hasTruncatedMessages:e,hiddenMessageCount:c0}},[z,g,O,w0,L0,Z,P]),P0=f.useMemo(()=>{let b=!h&&!Q0?yQ(J0,N0):0;return n?J0.slice(n[0],n[1]):b>0?J0.slice(b):J0},[J0,n,h,Q0]),T0=f.useMemo(()=>new Set(B.map((L)=>L.contentBlock.id)),[B]),h0=Xz((L)=>L.tasks),p0=V0.asyncLaunchedToolUseIDs,d0=f.useMemo(()=>{if(p0.size===0)return null;let L=new Set;for(let[b,H0]of p0){let e=h0?.[H0]?.status;if(e==="running"||e==="requested"||e==="queued")L.add(b)}return L.size>0?L:null},[h0,p0]),y0=V0.resolvedToolUseIDs,i0=f.useMemo(()=>Gz(q,y0,d0),[q,y0,d0]),o0=f.useMemo(()=>{if(!j)return-1;let L=j.firstUnseenUuid.slice(0,24);return P0.findIndex((b)=>b.uuid.slice(0,24)===L)},[j,P0]),_0=f.useMemo(()=>{if(!B0)return-1;return P0.findIndex((L)=>L.uuid===B0.uuid)},[B0,P0]),[G,K]=f.useState(()=>new Set),A=f.useCallback((L)=>{let b=cQ(L);K((H0)=>{let e=new Set(H0);if(e.has(b))e.delete(b);else e.add(b);return e})},[]),$=f.useCallback((L)=>G.size>0&&G.has(cQ(L)),[G]),u=f.useRef(V0);u.current=V0;let m=f.useCallback((L)=>{if(L.type==="collapsed_read_search")return!0;if(L.type==="assistant"){let F0=L.message.content[0];return F0!=null&&rQ(F0)&&F0.type==="advisor_tool_result"&&F0.content.type==="advisor_result"}if(L.type!=="user")return!1;let b=L.message.content[0];if(b?.type!=="tool_result"||b.is_error||!L.toolUseResult)return!1;let H0=u.current.toolUseByToolUseID.get(b.tool_use_id)?.name;return(H0?rZ(Z,H0):void 0)?.isResultTruncated?.(L.toolUseResult)??!1},[Z]),s=(!X||!!X.shouldContinueAnimation)&&!W.length&&!H,d=i0.size>0,{progress:X0}=lQ(),R0=f.useRef(null),A0=DZ().terminalProgressBarEnabled&&!gQ();f.useEffect(()=>{let L=A0?d?"indeterminate":"completed":null;if(R0.current===L)return;R0.current=L,X0(L)},[X0,A0,d]),f.useEffect(()=>{return()=>X0(null)},[X0]);let M0=f.useCallback((L)=>`${L.uuid}-${V}`,[V]),U0=(L,b)=>{if(L.type==="progress")return null;let H0=b>0?P0[b-1]?.type:void 0,e=L.type==="user"&&H0==="user",F0=L.type==="collapsed_read_search"&&(w||qQ(P0,b,Z,T0)),k0=M0(L),HZ=Y(YQ,{message:L,isUserContinuation:e,hasContentAfter:F0,tools:Z,commands:Q,verbose:z||$(L)||B0?.expanded===!0&&b===_0,inProgressToolUseIDs:i0,streamingToolUseIDs:T0,screen:F,canAnimate:s,lastThinkingBlockId:t,latestBashOutputUUID:W0,columns:i,isLoading:S,lookups:V0},k0),c0=Y(oQ.Provider,{value:b===_0,children:HZ},k0);if(j&&b===o0)return[Y(D,{marginTop:1,children:Y(MZ,{title:`${j.count} new ${KZ(j.count,"message")}`,width:i,color:"inactive"})},"unseen-divider"),c0];return c0},D0=f.useRef(new WeakMap),v0=f.useCallback((L)=>{let b=D0.current.get(L);if(b!==void 0)return b;let H0=UZ(L);if(L.type==="user"&&L.toolUseResult&&Array.isArray(L.message.content)){let F0=L.message.content.find((k0)=>k0.type==="tool_result");if(F0&&"tool_use_id"in F0){let k0=V0.toolUseByToolUseID.get(F0.tool_use_id),c0=(k0&&rZ(Z,k0.name))?.extractSearchText?.(L.toolUseResult);if(c0!==void 0)H0=c0}}let e=H0.toLowerCase();return D0.current.set(L,e),e},[Z,V0]);return T(E0,{children:[!U&&!(n&&n[0]>0)&&Y(dX,{agentDefinitions:C}),f0&&Y(MZ,{title:`${j0} to show ${lZ.bold(S0)} previous messages`,width:i}),O&&N&&S0>0&&!Q0&&Y(MZ,{title:`${j0} to hide ${lZ.bold(S0)} previous messages`,width:i}),h?Y(tQ.Provider,{value:!0,children:Y(pQ,{messages:P0,scrollRef:M,columns:i,itemKey:M0,renderItem:U0,onItemClick:A,isItemClickable:m,isItemExpanded:$,trackStickyPrompt:E,selectedIndex:_0>=0?_0:void 0,cursorNavRef:a,setCursor:r,jumpRef:R,onSearchMatchesChange:Z0,scanElement:y,setPositions:x,extractSearchText:v0})}):P0.flatMap(U0),w&&!P&&Y(gX,{}),o&&_&&!P&&Y(D,{marginTop:1,children:Y(Zz,{param:{type:"thinking",thinking:_.thinking},addMargin:!1,isTranscriptMode:!0,verbose:z,hideInTranscript:!1})})]})},gX=()=>{let J=oZ();if(!J)return null;return Y(D,{alignItems:"flex-start",flexDirection:"row",marginTop:1,width:"100%",children:T(D,{flexDirection:"row",children:[Y(D,{minWidth:2,children:Y(p,{color:"text",children:nQ})}),Y(D,{flexDirection:"column",children:Y(eQ,{children:J})})]})})},Nq;var GQ=q0(()=>{vX();CJ();yX();kX();PJ();SX();I0();hX();pX();IX();TX();kJ();TJ();uX();ZQ();$J();DQ();_X();fJ();PZ();NJ();RZ();RX();$X();tZ();VQ();uQ();xX();IZ();fX();JQ();bQ();_Q();dQ();G0();Wz=K0(u0(),1),VZ=K0(b0(),1),f=K0(b0(),1),dX=VZ.memo(function(Z){let Q=Wz.c(3),{agentDefinitions:z}=Z,X;if(Q[0]===Symbol.for("react.memo_cache_sentinel"))X=null,Q[0]=X;else X=Q[0];let W;if(Q[1]!==z)W=Y(ZZ,{children:T(D,{flexDirection:"column",gap:1,children:[X,Y(VZ.Suspense,{fallback:null,children:Y(EQ,{agentDefinitions:z})})]})}),Q[1]=z,Q[2]=W;else W=Q[2];return W});Nq=VZ.memo(cX,(J,Z)=>{let Q=Object.keys(J);for(let z of Q){if(z==="scrollRef"||z==="trackStickyPrompt"||z==="setCursor"||z==="cursorNavRef"||z==="jumpRef"||z==="onSearchMatchesChange"||z==="scanElement"||z==="setPositions")continue;if(J[z]!==Z[z]){if(z==="streamingToolUses"){let X=J.streamingToolUses,W=Z.streamingToolUses;if(X.length===W.length&&X.every((q,H)=>q.contentBlock===W[H]?.contentBlock))continue}if(z==="inProgressToolUseIDs"){if(mX(J.inProgressToolUseIDs,Z.inProgressToolUseIDs))continue}if(z==="unseenDivider"){let X=J.unseenDivider,W=Z.unseenDivider;if(X?.firstUnseenUuid===W?.firstUnseenUuid&&X?.count===W?.count)continue}if(z==="tools"){let X=J.tools,W=Z.tools;if(X.length===W.length&&X.every((q,H)=>q.name===W[H]?.name))continue}return!1}}return!0})});
10
- export{s0 as ke,iX as le,tZ as me,ZJ as ne,vZ as oe,W8 as pe,q8 as qe,KJ as re,C8 as se,y8 as te,_8 as ue,EJ as ve,Nq as we,GQ as xe};
@@ -1,2 +0,0 @@
1
- import{Gba as T,Sba as $}from"./cli-1.1.35-dnacc640.mjs";import{Qia as J,Sia as Y}from"./cli-1.1.35-h06ng57d.mjs";import{Fka as E,Ika as X}from"./cli-1.1.35-a7ygtwdr.mjs";import{Xra as V}from"./cli-1.1.35-c05841mj.mjs";function j(){B.clear()}async function P(){let q=await Z();if(!q)return null;if(q.host!=="github.com")return null;return`${q.owner}/${q.name}`}async function Z(){let q=J();if(B.has(q))return B.get(q)??null;try{let x=await T();if(E(`Git remote URL: ${x}`),!x)return E("No git remote URL found"),B.set(q,null),null;let z=Q(x);return E(`Parsed repository: ${z?`${z.host}/${z.owner}/${z.name}`:null} from URL: ${x}`),B.set(q,z),z}catch(x){return E(`Error detecting repository: ${x}`),B.set(q,null),null}}function S(){let q=B.get(J());if(!q||q.host!=="github.com")return null;return`${q.owner}/${q.name}`}function Q(q){let x=q.trim(),z=x.match(/^git@([^:]+):([^/]+)\/([^/]+?)(?:\.git)?$/);if(z?.[1]&&z[2]&&z[3]){if(!O(z[1]))return null;return{host:z[1],owner:z[2],name:z[3]}}let A=x.match(/^(https?|ssh|git):\/\/(?:[^@]+@)?([^/:]+(?::\d+)?)\/([^/]+)\/([^/]+?)(?:\.git)?$/);if(A?.[1]&&A[2]&&A[3]&&A[4]){let I=A[1],K=A[2],N=K.split(":")[0]??"";if(!O(N))return null;return{host:I==="https"||I==="http"?K:N,owner:A[3],name:A[4]}}return null}function D(q){let x=q.trim(),z=Q(x);if(z){if(z.host!=="github.com")return null;return`${z.owner}/${z.name}`}if(!x.includes("://")&&!x.includes("@")&&x.includes("/")){let A=x.split("/");if(A.length===2&&A[0]&&A[1]){let I=A[1].replace(/\.git$/,"");return`${A[0]}/${I}`}}return E(`Could not parse repository from: ${x}`),null}function O(q){if(!q.includes("."))return!1;let x=q.split(".").pop();if(!x)return!1;return/^[a-zA-Z]+$/.test(x)}var B;var _=V(()=>{Y();X();$();B=new Map});
2
- export{j as D_,P as E_,Z as F_,S as G_,Q as H_,D as I_,_ as J_};
@@ -1,2 +0,0 @@
1
- import{Xra as V}from"./cli-1.1.35-c05841mj.mjs";var k0,b;var T=V(()=>{k0=typeof global=="object"&&global&&global.Object===Object&&global,b=k0});var m0,y0,K;var z=V(()=>{T();m0=typeof self=="object"&&self&&self.Object===Object&&self,y0=b||m0||Function("return this")(),K=y0});var l0,B;var x=V(()=>{z();l0=K.Symbol,B=l0});function c0(q){var Z=v0.call(q,N),Q=q[N];try{q[N]=void 0;var Y=!0}catch(L){}var A=u0.call(q);if(Y)if(Z)q[N]=Q;else delete q[N];return A}var j,v0,u0,N,C;var f=V(()=>{x();j=Object.prototype,v0=j.hasOwnProperty,u0=j.toString,N=B?B.toStringTag:void 0;C=c0});function i0(q){return o0.call(q)}var h0,o0,g;var d=V(()=>{h0=Object.prototype,o0=h0.toString;g=i0});function s0(q){if(q==null)return q===void 0?r0:n0;return p&&p in Object(q)?C(q):g(q)}var n0="[object Null]",r0="[object Undefined]",p,k;var m=V(()=>{x();f();d();p=B?B.toStringTag:void 0;k=s0});function t0(q){var Z=typeof q;return q!=null&&(Z=="object"||Z=="function")}var G;var O=V(()=>{G=t0});function Qq(q){if(!G(q))return!1;var Z=k(q);return Z==e0||Z==qq||Z==a0||Z==Zq}var a0="[object AsyncFunction]",e0="[object Function]",qq="[object GeneratorFunction]",Zq="[object Proxy]",y;var l=V(()=>{m();O();y=Qq});var Vq,I;var v=V(()=>{z();Vq=K["__core-js_shared__"],I=Vq});function Yq(q){return!!u&&u in q}var u,c;var h=V(()=>{v();u=function(){var q=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||"");return q?"Symbol(src)_1."+q:""}();c=Yq});function Xq(q){if(q!=null){try{return Wq.call(q)}catch(Z){}try{return q+""}catch(Z){}}return""}var $q,Wq,o;var i=V(()=>{$q=Function.prototype,Wq=$q.toString;o=Xq});function Nq(q){if(!G(q)||c(q))return!1;var Z=y(q)?Lq:Bq;return Z.test(o(q))}var Kq,Bq,Jq,Uq,Eq,Aq,Lq,n;var r=V(()=>{l();h();O();i();Kq=/[\\^$.*+?()[\]{}|]/g,Bq=/^\[object .+?Constructor\]$/,Jq=Function.prototype,Uq=Object.prototype,Eq=Jq.toString,Aq=Uq.hasOwnProperty,Lq=RegExp("^"+Eq.call(Aq).replace(Kq,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");n=Nq});function wq(q,Z){return q==null?void 0:q[Z]}var s;var t=V(()=>{s=wq});function Fq(q,Z){var Q=s(q,Z);return n(Q)?Q:void 0}var D;var R=V(()=>{r();t();D=Fq});var Pq,$;var w=V(()=>{R();Pq=D(Object,"create"),$=Pq});function zq(){this.__data__=$?$(null):{},this.size=0}var a;var e=V(()=>{w();a=zq});function Gq(q){var Z=this.has(q)&&delete this.__data__[q];return this.size-=Z?1:0,Z}var q0;var Z0=V(()=>{q0=Gq});function Oq(q){var Z=this.__data__;if($){var Q=Z[q];return Q===Iq?void 0:Q}return xq.call(Z,q)?Z[q]:void 0}var Iq="__lodash_hash_undefined__",Dq,xq,Q0;var V0=V(()=>{w();Dq=Object.prototype,xq=Dq.hasOwnProperty;Q0=Oq});function Mq(q){var Z=this.__data__;return $?Z[q]!==void 0:Hq.call(Z,q)}var Rq,Hq,Y0;var $0=V(()=>{w();Rq=Object.prototype,Hq=Rq.hasOwnProperty;Y0=Mq});function Sq(q,Z){var Q=this.__data__;return this.size+=this.has(q)?0:1,Q[q]=$&&Z===void 0?_q:Z,this}var _q="__lodash_hash_undefined__",W0;var X0=V(()=>{w();W0=Sq});function J(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var H;var K0=V(()=>{e();Z0();V0();$0();X0();J.prototype.clear=a;J.prototype.delete=q0;J.prototype.get=Q0;J.prototype.has=Y0;J.prototype.set=W0;H=J});function bq(){this.__data__=[],this.size=0}var B0;var J0=V(()=>{B0=bq});function Tq(q,Z){return q===Z||q!==q&&Z!==Z}var U0;var E0=V(()=>{U0=Tq});function jq(q,Z){var Q=q.length;while(Q--)if(U0(q[Q][0],Z))return Q;return-1}var W;var F=V(()=>{E0();W=jq});function gq(q){var Z=this.__data__,Q=W(Z,q);if(Q<0)return!1;var Y=Z.length-1;if(Q==Y)Z.pop();else fq.call(Z,Q,1);return--this.size,!0}var Cq,fq,A0;var L0=V(()=>{F();Cq=Array.prototype,fq=Cq.splice;A0=gq});function dq(q){var Z=this.__data__,Q=W(Z,q);return Q<0?void 0:Z[Q][1]}var N0;var w0=V(()=>{F();N0=dq});function pq(q){return W(this.__data__,q)>-1}var F0;var P0=V(()=>{F();F0=pq});function kq(q,Z){var Q=this.__data__,Y=W(Q,q);if(Y<0)++this.size,Q.push([q,Z]);else Q[Y][1]=Z;return this}var z0;var G0=V(()=>{F();z0=kq});function U(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var I0;var D0=V(()=>{J0();L0();w0();P0();G0();U.prototype.clear=B0;U.prototype.delete=A0;U.prototype.get=N0;U.prototype.has=F0;U.prototype.set=z0;I0=U});var mq,x0;var O0=V(()=>{R();z();mq=D(K,"Map"),x0=mq});function yq(){this.size=0,this.__data__={hash:new H,map:new(x0||I0),string:new H}}var R0;var H0=V(()=>{K0();D0();O0();R0=yq});function lq(q){var Z=typeof q;return Z=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?q!=="__proto__":q===null}var M0;var _0=V(()=>{M0=lq});function vq(q,Z){var Q=q.__data__;return M0(Z)?Q[typeof Z=="string"?"string":"hash"]:Q.map}var X;var P=V(()=>{_0();X=vq});function uq(q){var Z=X(this,q).delete(q);return this.size-=Z?1:0,Z}var S0;var b0=V(()=>{P();S0=uq});function cq(q){return X(this,q).get(q)}var T0;var j0=V(()=>{P();T0=cq});function hq(q){return X(this,q).has(q)}var C0;var f0=V(()=>{P();C0=hq});function oq(q,Z){var Q=X(this,q),Y=Q.size;return Q.set(q,Z),this.size+=Q.size==Y?0:1,this}var g0;var d0=V(()=>{P();g0=oq});function E(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var M;var p0=V(()=>{H0();b0();j0();f0();d0();E.prototype.clear=R0;E.prototype.delete=S0;E.prototype.get=T0;E.prototype.has=C0;E.prototype.set=g0;M=E});function _(q,Z){if(typeof q!="function"||Z!=null&&typeof Z!="function")throw TypeError(iq);var Q=function(){var Y=arguments,A=Z?Z.apply(this,Y):Y[0],L=Q.cache;if(L.has(A))return L.get(A);var S=q.apply(this,Y);return Q.cache=L.set(A,S)||L,S};return Q.cache=new(_.Cache||M),Q}var iq="Expected a function",j6;var nq=V(()=>{p0();_.Cache=M;j6=_});
2
- export{U0 as Kqa,E0 as Lqa,I0 as Mqa,D0 as Nqa,b as Oqa,T as Pqa,K as Qqa,z as Rqa,B as Sqa,x as Tqa,k as Uqa,m as Vqa,G as Wqa,O as Xqa,y as Yqa,l as Zqa,o as _qa,i as $qa,D as ara,R as bra,x0 as cra,O0 as dra,M as era,p0 as fra,j6 as gra,nq as hra};
@@ -1,3 +0,0 @@
1
- import{X2 as k,Z2 as v}from"./cli-1.1.35-8ttx7y70.mjs";import{U6 as j,h7 as s}from"./cli-1.1.35-s85hd24a.mjs";import{X$ as d,baa as h,haa as q}from"./cli-1.1.35-dnacc640.mjs";import{Xra as p}from"./cli-1.1.35-c05841mj.mjs";function m(){return x()||!!process.env.CLAUDE_BRIDGE_OAUTH_TOKEN}function w(){return m()}async function J(){return w()}async function K(){if(!m())return"Remote Control needs an Anthropic web login (a claude.ai OAuth token with the user:profile scope). Run `/provider` and sign in with your claude.ai account. Note: an inference API key alone is not enough — the bridge token is separate.";return null}function x(){try{return j()}catch{return!1}}function N(){return d("tengu_bridge_repl_v2",!1)}function O(){return d("tengu_bridge_repl_v2_cse_shim_enabled",!0)}function P(){{let b=h("tengu_bridge_min_version",{minVersion:"0.0.0"});if(b.minVersion&&k("99.0.0",b.minVersion))return`Your version of Claudin (99.0.0) is too old for Remote Control.
2
- Version ${b.minVersion} or higher is required. Run \`claudin update\` to update.`}return null}var y=p(()=>{q();s();v()});
3
- export{w as IW,J as JW,K as KW,N as LW,O as MW,P as NW,y as OW};
@@ -1,2 +0,0 @@
1
- import{Qf as NG,Rf as UG,Uf as VJ}from"./cli-1.1.35-jrexyjt9.mjs";import{Bx as wG,Bz as fG,Cx as LJ,Fx as h,Gx as $G,Hx as m,Ix as DG,Iz as jG,JP as qJ,Jx as t,KP as CJ,Kx as PG,Pz as PJ,Wx as IG,Xx as KJ,Yz as pJ,cH as GG,dH as YJ,dz as AG,fz as QJ,gz as XJ,hz as TJ,iF as JG,iP as LG,jP as ZJ,lA as CG,lP as uG,pA as dJ,qm as JJ,rm as gJ,tz as zJ,uF as cG,vz as MG,wx as FG,wz as hG,xz as TG,yx as hJ,yz as dG}from"./cli-1.1.35-hy9jtbmb.mjs";import{EX as BG,IX as kG,OY as C,QY as Y,SY as Q,WY as EG,lZ as GJ,xZ as qG}from"./cli-1.1.35-dw3fv0g8.mjs";import{R0 as gG,S0 as AJ}from"./cli-1.1.35-ktb8z2s9.mjs";import{D1 as eG,P1 as _J}from"./cli-1.1.35-q1axe4bk.mjs";import{$2 as L,_2 as a,a3 as X,b3 as x}from"./cli-1.1.35-b0n88pf7.mjs";import{c3 as pG}from"./cli-1.1.35-bq7wadxz.mjs";import{W6 as sG,h7 as SJ}from"./cli-1.1.35-s85hd24a.mjs";import{Aea as FJ,Cha as rG,Eha as bJ,Iea as mG,S_ as S,T_ as tG,dea as OG,eea as yG,fea as WJ,zea as HG}from"./cli-1.1.35-dnacc640.mjs";import{Eja as _G,Fja as BJ}from"./cli-1.1.35-7p1685r1.mjs";import{dla as zG,kla as oG}from"./cli-1.1.35-w9wzew2x.mjs";import{Tra as s,Xra as e}from"./cli-1.1.35-c05841mj.mjs";function WG(J){let G=lG.c(9),{serverToolsCount:Z,serverPromptsCount:F,serverResourcesCount:q}=J,z;if(G[0]!==F||G[1]!==q||G[2]!==Z){if(z=[],Z>0)z.push("tools");if(q>0)z.push("resources");if(F>0)z.push("prompts");G[0]=F,G[1]=q,G[2]=Z,G[3]=z}else z=G[3];let k;if(G[4]===Symbol.for("react.memo_cache_sentinel"))k=L(Q,{bold:!0,children:"Capabilities: "}),G[4]=k;else k=G[4];let W;if(G[5]!==z)W=z.length>0?L(t,{children:z}):"none",G[5]=z,G[6]=W;else W=G[6];let w;if(G[7]!==W)w=X(Y,{children:[k,L(Q,{color:"text",children:W})]}),G[7]=W,G[8]=w;else w=G[8];return w}var lG;var bG=e(()=>{qG();PG();x();lG=s(BG(),1)});function KG(J,G){switch(J.client.type){case"connected":return{message:`Reconnected to ${G}.`,success:!0};case"needs-auth":return{message:`${G} requires authentication. Use the 'Authenticate' option.`,success:!1};case"failed":return{message:`Failed to reconnect to ${G}.`,success:!1};default:return{message:`Unknown result when reconnecting to ${G}.`,success:!1}}}function VG(J,G){let Z=J instanceof Error?J.message:String(J);return`Error reconnecting to ${G}: ${Z}`}var SG=()=>{};function NL({server:J,serverToolsCount:G,onViewTools:Z,onCancel:F,onComplete:q,borderless:z=!1}){let[k]=kG(),W=wG(),{columns:w}=JJ(),[I,U]=E.default.useState(!1),[p,R]=E.default.useState(null),_=LG((V)=>V.mcp),f=ZJ(),[O,K]=E.default.useState(null),[P,D]=E.useState(!1),N=E.useRef(null),[g,$]=E.useState(!1),[j,T]=E.useState(null),[A,y]=E.useState(!1),[c,u]=E.useState(null),[n,i]=E.useState(!1),[l,r]=E.useState(!1),v=E.useRef(void 0),B=E.useRef(!1),[vG,QG]=E.useState(""),[kJ,wJ]=E.useState(0),[xG,aG]=E.useState(null);E.useEffect(()=>()=>{if(B.current=!0,N.current?.abort(),v.current!==void 0)clearTimeout(v.current)},[]);let XG=J.isAuthenticated||J.client.type==="connected"&&G>0,YG=NG(),DJ=E.default.useCallback(async()=>{$(!1),T(null),D(!0);try{let V=await YG(J.name);if(V.client.type==="connected")q?.(`Authentication successful. Connected to ${J.name}.`);else if(V.client.type==="needs-auth")q?.("Authentication successful, but server still requires authentication. You may need to manually restart Claudin.");else q?.("Authentication successful, but server reconnection failed. You may need to manually restart Claudin for the changes to take effect.")}catch(V){q?.(VG(V,J.name))}finally{D(!1)}},[YG,J.name,q]),MJ=E.default.useCallback(async()=>{await CG(J.name,{...J.config,scope:J.scope}),f((V)=>{let H=V.mcp.clients.map((o)=>o.name===J.name?{...o,type:"needs-auth"}:o),M=hG(V.mcp.tools,J.name),d=TG(V.mcp.commands,J.name),ZG=dG(V.mcp.resources,J.name);return{...V,mcp:{...V.mcp,clients:H,tools:M,commands:d,resources:ZG}}}),q?.(`Disconnected from ${J.name}.`),y(!1),u(null),i(!1)},[J.name,J.config,J.scope,f,q]);FG("confirm:no",()=>{N.current?.abort(),N.current=null,U(!1),K(null)},{context:"Confirmation",isActive:I}),FG("confirm:no",()=>{$(!1),T(null)},{context:"Confirmation",isActive:g}),FG("confirm:no",()=>{y(!1),u(null),i(!1)},{context:"Confirmation",isActive:A}),GJ((V,H)=>{if(H.return&&g)DJ();if(H.return&&A)if(n)MJ();else{let M=`${_G().CLAUDE_AI_ORIGIN}/settings/connectors`;u(M),i(!0),gG(M)}if(V==="c"&&!l){let M=O||j||c;if(M)eG(M).then((d)=>{if(B.current)return;if(d)process.stdout.write(d);if(r(!0),v.current!==void 0)clearTimeout(v.current);v.current=setTimeout(r,2000,!1)})}});let fJ=HG(String(J.name)),NJ=MG(_.commands,J.name).length,nG=UG(),UJ=E.default.useCallback(async()=>{let V=_G().CLAUDE_AI_ORIGIN,M=sG()?.organizationUuid,d;if(M&&J.config.type==="claudeai-proxy"&&J.config.id){let ZG=J.config.id.startsWith("mcprs")?"mcpsrv"+J.config.id.slice(5):J.config.id,o=encodeURIComponent(process.env.CLAUDE_CODE_ENTRYPOINT||"cli");d=`${V}/api/organizations/${M}/mcp/start-auth/${ZG}?product_surface=${o}`}else d=`${V}/settings/connectors`;T(d),$(!0),await gG(d)},[J.config]),RJ=E.default.useCallback(()=>{y(!0)},[]),OJ=E.default.useCallback(async()=>{let V=J.client.type!=="disabled";try{await nG(J.name),F()}catch(H){q?.(`Failed to ${V?"disable":"enable"} MCP server '${J.name}': ${zG(H)}`)}},[J.client.type,J.config.type,J.name,nG,F,q]),yJ=E.default.useCallback(async()=>{if(J.config.type==="claudeai-proxy")return;U(!0),R(null);let V=new AbortController;N.current=V;try{if(J.isAuthenticated&&J.config)await AG(J.name,J.config,{preserveStepUpState:!0});if(J.config){await XJ(J.name,J.config,K,V.signal,{onWaitingForCallback:(M)=>{aG(()=>M)}});let H=await YG(J.name);if(H.client.type==="connected"){let M=XG?`Authentication successful. Reconnected to ${J.name}.`:`Authentication successful. Connected to ${J.name}.`;q?.(M)}else if(H.client.type==="needs-auth")q?.("Authentication successful, but server still requires authentication. You may need to manually restart Claudin.");else rG(J.name,"Reconnection failed after authentication"),q?.("Authentication successful, but server reconnection failed. You may need to manually restart Claudin for the changes to take effect.")}}catch(H){if(H instanceof Error&&!(H instanceof QJ))R(H.message)}finally{U(!1),N.current=null,aG(null),QG("")}},[J.isAuthenticated,J.config,J.name,q,YG,XG]),IJ=async()=>{if(J.config.type==="claudeai-proxy")return;if(J.config)await AG(J.name,J.config),await CG(J.name,{...J.config,scope:J.scope}),f((V)=>{let H=V.mcp.clients.map((o)=>o.name===J.name?{...o,type:"failed"}:o),M=hG(V.mcp.tools,J.name),d=TG(V.mcp.commands,J.name),ZG=dG(V.mcp.resources,J.name);return{...V,mcp:{...V.mcp,clients:H,tools:M,commands:d,resources:ZG}}}),q?.(`Authentication cleared for ${J.name}.`)};if(I)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Authenticating with ",J.name,"…"]}),X(Y,{children:[L(GG,{}),L(Q,{children:" A browser window will open for authentication"})]}),O&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),l?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(EG,{url:O})]}),I&&O&&xG&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{dimColor:!0,children:"If the redirect page shows a connection error, paste the URL from your browser's address bar:"}),X(Y,{children:[X(Q,{dimColor:!0,children:["URL ",">"," "]}),L(qJ,{value:vG,onChange:QG,onSubmit:(H)=>{xG(H.trim()),QG("")},cursorOffset:kJ,onChangeCursorOffset:wJ,columns:w-8})]})]}),L(Y,{marginLeft:3,children:L(Q,{dimColor:!0,children:"Return here after authenticating in your browser. Press Esc to go back."})})]});if(g)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Authenticating with ",J.name,"…"]}),X(Y,{children:[L(GG,{}),L(Q,{children:" A browser window will open for authentication"})]}),j&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),l?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(EG,{url:j})]}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," after authenticating in your browser."]}),L(Q,{dimColor:!0,italic:!0,children:L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]});if(A)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Clear authentication for ",J.name]}),n?X(a,{children:[L(Q,{children:'Find the MCP server in the browser and click "Disconnect".'}),c&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser didn't open automatically, copy this URL manually"," "]}),l?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(EG,{url:c})]}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," when done."]}),L(Q,{dimColor:!0,italic:!0,children:L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]}):X(a,{children:[L(Q,{children:'This will open claude.ai in the browser. Find the MCP server in the list and click "Disconnect".'}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," to open the browser."]}),L(Q,{dimColor:!0,italic:!0,children:L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]})]});if(P)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"text",children:["Connecting to ",L(Q,{bold:!0,children:J.name}),"…"]}),X(Y,{children:[L(GG,{}),L(Q,{children:" Establishing connection to MCP server"})]}),L(Q,{dimColor:!0,children:"This may take a few moments."})]});let b=[];if(J.client.type==="disabled")b.push({label:"Enable",value:"toggle-enabled"});if(J.client.type==="connected"&&G>0)b.push({label:"View tools",value:"tools"});if(J.config.type==="claudeai-proxy"){if(J.client.type==="connected")b.push({label:"Clear authentication",value:"claudeai-clear-auth"});else if(J.client.type!=="disabled")b.push({label:"Authenticate",value:"claudeai-auth"})}else{if(XG)b.push({label:"Re-authenticate",value:"reauth"}),b.push({label:"Clear authentication",value:"clear-auth"});if(!XG)b.push({label:"Authenticate",value:"auth"})}if(J.client.type!=="disabled"){if(J.client.type!=="needs-auth")b.push({label:"Reconnect",value:"reconnectMcpServer"});b.push({label:"Disable",value:"toggle-enabled"})}if(b.length===0)b.push({label:"Back",value:"back"});return X(Y,{flexDirection:"column",children:[X(Y,{flexDirection:"column",paddingX:1,borderStyle:z?void 0:"round",children:[L(Y,{marginBottom:1,children:X(Q,{bold:!0,children:[fJ," MCP Server"]})}),X(Y,{flexDirection:"column",gap:0,children:[X(Y,{children:[L(Q,{bold:!0,children:"Status: "}),J.client.type==="disabled"?X(Q,{children:[C("inactive",k)(S.radioOff)," disabled"]}):J.client.type==="connected"?X(Q,{children:[C("success",k)(S.tick)," connected"]}):J.client.type==="pending"?X(a,{children:[L(Q,{dimColor:!0,children:S.radioOff}),L(Q,{children:" connecting…"})]}):J.client.type==="needs-auth"?X(Q,{children:[C("warning",k)(S.triangleUpOutline)," needs authentication"]}):X(Q,{children:[C("error",k)(S.cross)," failed"]})]}),J.transport!=="claudeai-proxy"&&X(Y,{children:[L(Q,{bold:!0,children:"Auth: "}),XG?X(Q,{children:[C("success",k)(S.tick)," authenticated"]}):X(Q,{children:[C("error",k)(S.cross)," not authenticated"]})]}),X(Y,{children:[L(Q,{bold:!0,children:"URL: "}),L(Q,{dimColor:!0,children:J.config.url})]}),X(Y,{children:[L(Q,{bold:!0,children:"Config location: "}),L(Q,{dimColor:!0,children:fG(J.scope)})]}),J.client.type==="connected"&&L(WG,{serverToolsCount:G,serverPromptsCount:NJ,serverResourcesCount:_.resources[J.name]?.length||0}),J.client.type==="connected"&&G>0&&X(Y,{children:[L(Q,{bold:!0,children:"Tools: "}),X(Q,{dimColor:!0,children:[G," tools"]})]})]}),p&&L(Y,{marginTop:1,children:X(Q,{color:"error",children:["Error: ",p]})}),b.length>0&&L(Y,{marginTop:1,children:L(JG,{options:b,onChange:async(V)=>{switch(V){case"tools":Z();break;case"auth":case"reauth":await yJ();break;case"clear-auth":await IJ();break;case"claudeai-auth":await UJ();break;case"claudeai-clear-auth":RJ();break;case"reconnectMcpServer":D(!0);try{let H=await YG(J.name),{message:M}=KG(H,J.name);q?.(M)}catch(H){q?.(VG(H,J.name))}finally{D(!1)}break;case"toggle-enabled":await OJ();break;case"back":F();break}},onCancel:F})})]}),L(Y,{marginTop:1,children:L(Q,{dimColor:!0,italic:!0,children:W.pending?X(a,{children:["Press ",W.keyName," again to exit"]}):X(t,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var E;var mJ=e(()=>{tG();BJ();LJ();gJ();_J();qG();hJ();TJ();dJ();VJ();jG();uG();SJ();AJ();oG();bJ();mG();DG();cG();PG();$G();YJ();CJ();bG();SG();x();E=s(pG(),1)});function jL({server:J,serverToolsCount:G,onViewTools:Z,onCancel:F,onComplete:q,borderless:z=!1}){let[k]=kG(),W=wG(),w=LG((P)=>P.mcp),I=NG(),U=UG(),[p,R]=RG.useState(!1),_=RG.default.useCallback(async()=>{let P=J.client.type!=="disabled";try{await U(J.name),F()}catch(D){q(`Failed to ${P?"disable":"enable"} MCP server '${J.name}': ${zG(D)}`)}},[J.client.type,J.name,U,F,q]),f=HG(String(J.name)),O=MG(w.commands,J.name).length,K=[];if(J.client.type!=="disabled"&&G>0)K.push({label:"View tools",value:"tools"});if(J.client.type!=="disabled")K.push({label:"Reconnect",value:"reconnectMcpServer"});if(K.push({label:J.client.type!=="disabled"?"Disable":"Enable",value:"toggle-enabled"}),K.length===0)K.push({label:"Back",value:"back"});if(p)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"text",children:["Reconnecting to ",L(Q,{bold:!0,children:J.name})]}),X(Y,{children:[L(GG,{}),L(Q,{children:" Restarting MCP server process"})]}),L(Q,{dimColor:!0,children:"This may take a few moments."})]});return X(Y,{flexDirection:"column",children:[X(Y,{flexDirection:"column",paddingX:1,borderStyle:z?void 0:"round",children:[L(Y,{marginBottom:1,children:X(Q,{bold:!0,children:[f," MCP Server"]})}),X(Y,{flexDirection:"column",gap:0,children:[X(Y,{children:[L(Q,{bold:!0,children:"Status: "}),J.client.type==="disabled"?X(Q,{children:[C("inactive",k)(S.radioOff)," disabled"]}):J.client.type==="connected"?X(Q,{children:[C("success",k)(S.tick)," connected"]}):J.client.type==="pending"?X(a,{children:[L(Q,{dimColor:!0,children:S.radioOff}),L(Q,{children:" connecting…"})]}):X(Q,{children:[C("error",k)(S.cross)," failed"]})]}),X(Y,{children:[L(Q,{bold:!0,children:"Command: "}),L(Q,{dimColor:!0,children:J.config.command})]}),J.config.args&&J.config.args.length>0&&X(Y,{children:[L(Q,{bold:!0,children:"Args: "}),L(Q,{dimColor:!0,children:J.config.args.join(" ")})]}),X(Y,{children:[L(Q,{bold:!0,children:"Config location: "}),L(Q,{dimColor:!0,children:fG(PJ(J.name)?.scope??"dynamic")})]}),J.client.type==="connected"&&L(WG,{serverToolsCount:G,serverPromptsCount:O,serverResourcesCount:w.resources[J.name]?.length||0}),J.client.type==="connected"&&G>0&&X(Y,{children:[L(Q,{bold:!0,children:"Tools: "}),X(Q,{dimColor:!0,children:[G," tools"]})]})]}),K.length>0&&L(Y,{marginTop:1,children:L(JG,{options:K,onChange:async(P)=>{if(P==="tools")Z();else if(P==="reconnectMcpServer"){R(!0);try{let D=await I(J.name),{message:N}=KG(D,J.name);q?.(N)}catch(D){q?.(VG(D,J.name))}finally{R(!1)}}else if(P==="toggle-enabled")await _();else if(P==="back")F()},onCancel:F})})]}),L(Y,{marginTop:1,children:L(Q,{dimColor:!0,italic:!0,children:W.pending?X(a,{children:["Press ",W.keyName," again to exit"]}):X(t,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var RG;var $J=e(()=>{tG();LJ();qG();pJ();VJ();jG();uG();oG();mG();DG();cG();PG();$G();YJ();bG();SG();x();RG=s(pG(),1)});function nL(J){let G=EJ.c(44),{tool:Z,server:F,onBack:q}=J,[z,k]=iG.default.useState(""),W,w;if(G[0]!==F.name||G[1]!==Z){w=OG(Z.name,F.name);let r=Z.userFacingName?Z.userFacingName({}):w;W=yG(r),G[0]=F.name,G[1]=Z,G[2]=W,G[3]=w}else W=G[2],w=G[3];let I=W,U;if(G[4]!==Z)U=Z.isReadOnly?.({})??!1,G[4]=Z,G[5]=U;else U=G[5];let p=U,R;if(G[6]!==Z)R=Z.isDestructive?.({})??!1,G[6]=Z,G[7]=R;else R=G[7];let _=R,f;if(G[8]!==Z)f=Z.isOpenWorld?.({})??!1,G[8]=Z,G[9]=f;else f=G[9];let O=f,K,P;if(G[10]!==Z)K=()=>{(async function(){try{let B=await Z.description({},{isNonInteractiveSession:!1,toolPermissionContext:{mode:"default",additionalWorkingDirectories:new Map,alwaysAllowRules:{},alwaysDenyRules:{},alwaysAskRules:{},isBypassPermissionsModeAvailable:!1},tools:[]});k(B)}catch{k("Failed to load description")}})()},P=[Z],G[10]=Z,G[11]=K,G[12]=P;else K=G[11],P=G[12];iG.default.useEffect(K,P);let D;if(G[13]!==p)D=p&&L(Q,{color:"success",children:" [read-only]"}),G[13]=p,G[14]=D;else D=G[14];let N;if(G[15]!==_)N=_&&L(Q,{color:"error",children:" [destructive]"}),G[15]=_,G[16]=N;else N=G[16];let g;if(G[17]!==O)g=O&&L(Q,{dimColor:!0,children:" [open-world]"}),G[17]=O,G[18]=g;else g=G[18];let $;if(G[19]!==I||G[20]!==D||G[21]!==N||G[22]!==g)$=X(a,{children:[I,D,N,g]}),G[19]=I,G[20]=D,G[21]=N,G[22]=g,G[23]=$;else $=G[23];let j=$,T;if(G[24]===Symbol.for("react.memo_cache_sentinel"))T=L(Q,{bold:!0,children:"Tool name: "}),G[24]=T;else T=G[24];let A;if(G[25]!==w)A=X(Y,{children:[T,L(Q,{dimColor:!0,children:w})]}),G[25]=w,G[26]=A;else A=G[26];let y;if(G[27]===Symbol.for("react.memo_cache_sentinel"))y=L(Q,{bold:!0,children:"Full name: "}),G[27]=y;else y=G[27];let c;if(G[28]!==Z.name)c=X(Y,{children:[y,L(Q,{dimColor:!0,children:Z.name})]}),G[28]=Z.name,G[29]=c;else c=G[29];let u;if(G[30]!==z)u=z&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{bold:!0,children:"Description:"}),L(Q,{wrap:"wrap",children:z})]}),G[30]=z,G[31]=u;else u=G[31];let n;if(G[32]!==Z.inputJSONSchema)n=Z.inputJSONSchema&&Z.inputJSONSchema.properties&&Object.keys(Z.inputJSONSchema.properties).length>0&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{bold:!0,children:"Parameters:"}),L(Y,{marginLeft:2,flexDirection:"column",children:Object.entries(Z.inputJSONSchema.properties).map((r)=>{let[v,B]=r,QG=Z.inputJSONSchema?.required?.includes(v);return X(Q,{children:["• ",v,QG&&L(Q,{dimColor:!0,children:" (required)"}),":"," ",L(Q,{dimColor:!0,children:typeof B==="object"&&B&&"type"in B?String(B.type):"unknown"}),typeof B==="object"&&B&&"description"in B&&X(Q,{dimColor:!0,children:[" - ",String(B.description)]})]},v)})})]}),G[32]=Z.inputJSONSchema,G[33]=n;else n=G[33];let i;if(G[34]!==A||G[35]!==c||G[36]!==u||G[37]!==n)i=X(Y,{flexDirection:"column",children:[A,c,u,n]}),G[34]=A,G[35]=c,G[36]=u,G[37]=n,G[38]=i;else i=G[38];let l;if(G[39]!==q||G[40]!==F.name||G[41]!==i||G[42]!==j)l=L(IG,{title:j,subtitle:F.name,onCancel:q,inputGuide:jJ,children:i}),G[39]=q,G[40]=F.name,G[41]=i,G[42]=j,G[43]=l;else l=G[43];return l}function jJ(J){return J.pending?X(Q,{children:["Press ",J.keyName," again to exit"]}):L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})}var EJ,iG;var cJ=e(()=>{qG();WJ();DG();KJ();x();EJ=s(BG(),1),iG=s(pG(),1)});function ZQ(J){let G=HJ.c(21),{server:Z,onSelectTool:F,onBack:q}=J,z=LG(iJ),k;G:{if(Z.client.type!=="connected"){let P;if(G[0]===Symbol.for("react.memo_cache_sentinel"))P=[],G[0]=P;else P=G[0];k=P;break G}let K;if(G[1]!==z||G[2]!==Z.name)K=zJ(z,Z.name),G[1]=z,G[2]=Z.name,G[3]=K;else K=G[3];k=K}let W=k,w;if(G[4]!==Z.name||G[5]!==W){let K;if(G[7]!==Z.name)K=(P,D)=>{let N=OG(P.name,Z.name),g=P.userFacingName?P.userFacingName({}):N,$=yG(g),j=P.isReadOnly?.({})??!1,T=P.isDestructive?.({})??!1,A=P.isOpenWorld?.({})??!1,y=[];if(j)y.push("read-only");if(T)y.push("destructive");if(A)y.push("open-world");return{label:$,value:D.toString(),description:y.length>0?y.join(", "):void 0,descriptionColor:T?"error":j?"success":void 0}},G[7]=Z.name,G[8]=K;else K=G[8];w=W.map(K),G[4]=Z.name,G[5]=W,G[6]=w}else w=G[6];let I=w,U=`Tools for ${Z.name}`,p=W.length,R;if(G[9]!==W.length)R=FJ(W.length,"tool"),G[9]=W.length,G[10]=R;else R=G[10];let _=`${p} ${R}`,f;if(G[11]!==q||G[12]!==F||G[13]!==W||G[14]!==I)f=W.length===0?L(Q,{dimColor:!0,children:"No tools available"}):L(JG,{options:I,onChange:(K)=>{let P=parseInt(K),D=W[P];if(D)F(D,P)},onCancel:q}),G[11]=q,G[12]=F,G[13]=W,G[14]=I,G[15]=f;else f=G[15];let O;if(G[16]!==q||G[17]!==U||G[18]!==_||G[19]!==f)O=L(IG,{title:U,subtitle:_,onCancel:q,inputGuide:uJ,children:f}),G[16]=q,G[17]=U,G[18]=_,G[19]=f,G[20]=O;else O=G[20];return O}function uJ(J){return J.pending?X(Q,{children:["Press ",J.keyName," again to exit"]}):X(t,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})}function iJ(J){return J.mcp.tools}var HJ;var vJ=e(()=>{qG();WJ();jG();uG();mG();DG();cG();PG();KJ();$G();x();HJ=s(BG(),1)});
2
- export{NL as If,mJ as Jf,jL as Kf,$J as Lf,nL as Mf,cJ as Nf,ZQ as Of,vJ as Pf};
@@ -1,2 +0,0 @@
1
- import{Fka as Q,Ika as $}from"./cli-1.1.35-a7ygtwdr.mjs";import{fla as K,kla as Z}from"./cli-1.1.35-w9wzew2x.mjs";import{nla as J,yla as Y}from"./cli-1.1.35-g74y15na.mjs";Y();Z();$();import{readFileSync as k}from"node:fs";import{mkdir as I,writeFile as W}from"node:fs/promises";import{join as M}from"node:path";var S="latest-version.json";function X(){return M(J(),S)}function U(q){if(!q||typeof q!=="object")return!1;let x=q;return typeof x.latest==="string"&&x.latest.length>0&&typeof x.current==="string"&&x.current.length>0&&typeof x.checkedAt==="number"&&Number.isFinite(x.checkedAt)}function T(){try{let q=k(X(),"utf8"),x=JSON.parse(q);return U(x)?x:null}catch(q){if(K(q))return null;return Q(`latestVersionCache: read failed: ${q instanceof Error?q.stack??q.message:String(q)}`),null}}var G=new Set;function w(q){return G.add(q),()=>{G.delete(q)}}async function y(q){let x=X(),R=JSON.stringify(q);try{await W(x,R,"utf8")}catch(z){if(K(z))await I(J(),{recursive:!0}),await W(x,R,"utf8");else throw z}for(let z of[...G])try{z(q)}catch(B){Q(`latestVersionCache: listener threw: ${B instanceof Error?B.stack??B.message:String(B)}`)}}
2
- export{T as ua,w as va,y as wa};
@@ -1,2 +0,0 @@
1
- import{iF as U,jF as A,xF as V,yF as E}from"./cli-1.1.35-hy9jtbmb.mjs";import{IW as W,OW as G}from"./cli-1.1.35-ve889dy8.mjs";import{QY as F,SY as H,xZ as O}from"./cli-1.1.35-dw3fv0g8.mjs";import{$2 as q,a3 as K,b3 as L}from"./cli-1.1.35-b0n88pf7.mjs";import{c3 as I}from"./cli-1.1.35-bq7wadxz.mjs";import{O6 as Q,h7 as p}from"./cli-1.1.35-s85hd24a.mjs";import{L$ as M,N$ as N,dga as $}from"./cli-1.1.35-dnacc640.mjs";import{Tra as Z,Xra as _}from"./cli-1.1.35-c05841mj.mjs";function b({onDone:J}){let z=w.useRef(J);z.current=J;let X=w.useCallback(()=>{z.current("dismiss")},[]);w.useEffect(()=>{M((y)=>{if(y.remoteDialogSeen)return y;return{...y,remoteDialogSeen:!0}})},[]);let Y=w.useCallback((y)=>{z.current(y)},[]);return q(V,{title:"Remote Control",children:K(F,{flexDirection:"column",paddingX:2,paddingY:1,children:[K(F,{marginBottom:1,flexDirection:"column",children:[q(H,{children:"Remote Control lets you access this CLI session from the web (claude.ai/code) or the Claude app, so you can pick up where you left off on any device."}),q(H,{children:" "}),q(H,{children:"You can disconnect remote access anytime by running /remote-control again."})]}),q(F,{children:q(U,{options:[{label:"Enable Remote Control for this session",description:"Opens a secure connection to claude.ai.",value:"enable"},{label:"Never mind",description:"You can always enable it later with /remote-control.",value:"dismiss"}],onChange:Y,onCancel:X})})]})})}function d(){if(N().remoteDialogSeen)return!1;if(!W())return!1;if(!Q()?.accessToken)return!1;return!0}var w;var P=_(()=>{G();O();p();$();A();E();L();w=Z(I(),1)});
2
- export{b as Wb,d as Xb,P as Yb};