@claudiolabs/claudin 0.5.7 → 0.5.8

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 (842) hide show
  1. package/dist/chunks/AgentTool-0.5.8-161prcqd.mjs +1 -0
  2. package/dist/chunks/App-0.5.8-s4939y9q.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.5.8-kyzt3tyh.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.5.8-0fws1s48.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.5.8-v373fzha.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.5.8-pbv15kg8.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.8-rmcm4b5v.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-0.5.8-q3djee4h.mjs +1 -0
  9. package/dist/chunks/DiffDialog-0.5.8-1gvdqrt3.mjs +3 -0
  10. package/dist/chunks/Doctor-0.5.8-5k5vqf8q.mjs +1 -0
  11. package/dist/chunks/Grove-0.5.8-g2xzefay.mjs +1 -0
  12. package/dist/chunks/ITermBackend-0.5.8-j209yx9z.mjs +1 -0
  13. package/dist/chunks/InvalidConfigDialog-0.5.8-98nc303h.mjs +1 -0
  14. package/dist/chunks/InvalidSettingsDialog-0.5.8-p5qzw710.mjs +1 -0
  15. package/dist/chunks/MigrationDialog-0.5.8-gp57r21r.mjs +1 -0
  16. package/dist/chunks/Onboarding-0.5.8-m0r6a4s2.mjs +1 -0
  17. package/dist/chunks/ProviderManager-0.5.8-6tfnxyse.mjs +1 -0
  18. package/dist/chunks/REPL-0.5.8-sf0q46pa.mjs +1 -0
  19. package/dist/chunks/ResumeConversation-0.5.8-0j8mw0eh.mjs +1 -0
  20. package/dist/chunks/SnapshotUpdateDialog-0.5.8-13b725ee.mjs +1 -0
  21. package/dist/chunks/TeleportProgress-0.5.8-3fxrymde.mjs +1 -0
  22. package/dist/chunks/TeleportRepoMismatchDialog-0.5.8-1dqx0hnb.mjs +1 -0
  23. package/dist/chunks/TeleportResumeWrapper-0.5.8-84pek3s7.mjs +1 -0
  24. package/dist/chunks/TmuxBackend-0.5.8-rcwm1j6z.mjs +9 -0
  25. package/dist/chunks/ToolSearchTool-0.5.8-fp493kvp.mjs +1 -0
  26. package/dist/chunks/TrustDialog-0.5.8-j0h8y92c.mjs +1 -0
  27. package/dist/chunks/activeProvider-0.5.8-y1zsxh1g.mjs +1 -0
  28. package/dist/chunks/add-dir-0.5.8-sz3kyvkz.mjs +1 -0
  29. package/dist/chunks/agents-0.5.8-cm3hzc60.mjs +3 -0
  30. package/dist/chunks/agents-0.5.8-qg1s69va.mjs +110 -0
  31. package/dist/chunks/api-0.5.8-pcde65dc.mjs +1 -0
  32. package/dist/chunks/asciicast-0.5.8-tgmb7g4m.mjs +1 -0
  33. package/dist/chunks/assistant-0.5.8-4mak6nq9.mjs +1 -0
  34. package/dist/chunks/auth-0.5.8-70ks8nc4.mjs +1 -0
  35. package/dist/chunks/auth-0.5.8-82vx5hkw.mjs +1 -0
  36. package/dist/chunks/autoMode-0.5.8-xjwjh2k5.mjs +48 -0
  37. package/dist/chunks/autoUpdater-0.5.8-rf164ggm.mjs +1 -0
  38. package/dist/chunks/backgroundHousekeeping-0.5.8-ak5ca2cx.mjs +1 -0
  39. package/dist/chunks/branch-0.5.8-n82xbsmg.mjs +4 -0
  40. package/dist/chunks/bridgePointer-0.5.8-m7nwe7sd.mjs +1 -0
  41. package/dist/chunks/btw-0.5.8-0yftty6m.mjs +1 -0
  42. package/dist/chunks/buddy-0.5.8-4dvkprbs.mjs +3 -0
  43. package/dist/chunks/cacache-0.5.8-vj95fs26.mjs +1 -0
  44. package/dist/chunks/cache-probe-0.5.8-944hef3p.mjs +21 -0
  45. package/dist/chunks/cacheStats-0.5.8-jdya51jg.mjs +4 -0
  46. package/dist/chunks/caches-0.5.8-xkrjxp25.mjs +1 -0
  47. package/dist/chunks/claudeDesktop-0.5.8-fpb40wzd.mjs +1 -0
  48. package/dist/chunks/claudemd-0.5.8-eyztrzk8.mjs +1 -0
  49. package/dist/chunks/clear-0.5.8-kgvzdkgq.mjs +1 -0
  50. package/dist/chunks/clearTerminal-0.5.8-xv1faw7c.mjs +1 -0
  51. package/dist/chunks/cli-0.5.8-01yjahnz.mjs +2 -0
  52. package/dist/chunks/cli-0.5.8-07dyymev.mjs +2 -0
  53. package/dist/chunks/cli-0.5.8-0a4sdrgm.mjs +2 -0
  54. package/dist/chunks/cli-0.5.8-0bys4xae.mjs +2 -0
  55. package/dist/chunks/cli-0.5.8-0cmtavcs.mjs +2 -0
  56. package/dist/chunks/cli-0.5.8-0dkx0fh2.mjs +2 -0
  57. package/dist/chunks/cli-0.5.8-0hybhk72.mjs +2 -0
  58. package/dist/chunks/cli-0.5.8-0we2hm7d.mjs +2 -0
  59. package/dist/chunks/cli-0.5.8-1bp61y3p.mjs +2 -0
  60. package/dist/chunks/cli-0.5.8-1gm5vdye.mjs +2 -0
  61. package/dist/chunks/cli-0.5.8-1heha1zs.mjs +2 -0
  62. package/dist/chunks/cli-0.5.8-1x4w18nq.mjs +2 -0
  63. package/dist/chunks/cli-0.5.8-20gjzt7v.mjs +2 -0
  64. package/dist/chunks/cli-0.5.8-221e7v67.mjs +2 -0
  65. package/dist/chunks/cli-0.5.8-23ep6z70.mjs +2 -0
  66. package/dist/chunks/cli-0.5.8-2bq72da9.mjs +2 -0
  67. package/dist/chunks/cli-0.5.8-2f1ewq8w.mjs +2 -0
  68. package/dist/chunks/cli-0.5.8-2g8p9sae.mjs +2 -0
  69. package/dist/chunks/cli-0.5.8-2nr7eh5e.mjs +2 -0
  70. package/dist/chunks/cli-0.5.8-396k3ymm.mjs +25 -0
  71. package/dist/chunks/cli-0.5.8-3a6g7wmx.mjs +58 -0
  72. package/dist/chunks/cli-0.5.8-3fnpjffd.mjs +2 -0
  73. package/dist/chunks/cli-0.5.8-3ndh3gtc.mjs +2 -0
  74. package/dist/chunks/cli-0.5.8-3p5h46hv.mjs +2 -0
  75. package/dist/chunks/cli-0.5.8-3qjtx8w8.mjs +2 -0
  76. package/dist/chunks/cli-0.5.8-3y8x0dx3.mjs +2 -0
  77. package/dist/chunks/cli-0.5.8-3zg1gkde.mjs +2 -0
  78. package/dist/chunks/cli-0.5.8-402vctdy.mjs +2 -0
  79. package/dist/chunks/cli-0.5.8-42eyjvs8.mjs +2 -0
  80. package/dist/chunks/cli-0.5.8-4hvxb5dp.mjs +5286 -0
  81. package/dist/chunks/cli-0.5.8-4jrb4x7b.mjs +9 -0
  82. package/dist/chunks/cli-0.5.8-4mn881k7.mjs +2 -0
  83. package/dist/chunks/cli-0.5.8-4n26wzd5.mjs +2 -0
  84. package/dist/chunks/cli-0.5.8-4rgg1zqd.mjs +6 -0
  85. package/dist/chunks/cli-0.5.8-4xn4yjaa.mjs +8 -0
  86. package/dist/chunks/cli-0.5.8-4yyy85fr.mjs +2 -0
  87. package/dist/chunks/cli-0.5.8-510vqc09.mjs +4 -0
  88. package/dist/chunks/cli-0.5.8-57qan5v8.mjs +2 -0
  89. package/dist/chunks/cli-0.5.8-5a9k7mja.mjs +2 -0
  90. package/dist/chunks/cli-0.5.8-5bdfv4z2.mjs +2 -0
  91. package/dist/chunks/cli-0.5.8-5gzkph9c.mjs +2 -0
  92. package/dist/chunks/cli-0.5.8-5h92528m.mjs +4 -0
  93. package/dist/chunks/cli-0.5.8-5zqpfyqq.mjs +2 -0
  94. package/dist/chunks/cli-0.5.8-60e57smp.mjs +2 -0
  95. package/dist/chunks/cli-0.5.8-665mfjfq.mjs +5 -0
  96. package/dist/chunks/cli-0.5.8-69frkjjq.mjs +2 -0
  97. package/dist/chunks/cli-0.5.8-69swpyae.mjs +2 -0
  98. package/dist/chunks/cli-0.5.8-6epmns99.mjs +2 -0
  99. package/dist/chunks/cli-0.5.8-6nc6hmng.mjs +3 -0
  100. package/dist/chunks/cli-0.5.8-6t480jt6.mjs +2 -0
  101. package/dist/chunks/cli-0.5.8-6tfvmmwd.mjs +2 -0
  102. package/dist/chunks/cli-0.5.8-78y711gq.mjs +7 -0
  103. package/dist/chunks/cli-0.5.8-7fm71y20.mjs +2 -0
  104. package/dist/chunks/cli-0.5.8-7t6q11qp.mjs +3 -0
  105. package/dist/chunks/cli-0.5.8-7teqphwt.mjs +2 -0
  106. package/dist/chunks/cli-0.5.8-7w4sv41z.mjs +2 -0
  107. package/dist/chunks/cli-0.5.8-7wzh55d5.mjs +2 -0
  108. package/dist/chunks/cli-0.5.8-8b40nd32.mjs +3 -0
  109. package/dist/chunks/cli-0.5.8-8c0hade9.mjs +2 -0
  110. package/dist/chunks/cli-0.5.8-8h4z9e0a.mjs +2 -0
  111. package/dist/chunks/cli-0.5.8-8jfx4hd4.mjs +24 -0
  112. package/dist/chunks/cli-0.5.8-8jzc3wsz.mjs +2 -0
  113. package/dist/chunks/cli-0.5.8-8n05q2cg.mjs +4 -0
  114. package/dist/chunks/cli-0.5.8-903jgg2t.mjs +2 -0
  115. package/dist/chunks/cli-0.5.8-959n5v33.mjs +44 -0
  116. package/dist/chunks/cli-0.5.8-96p83b7z.mjs +2 -0
  117. package/dist/chunks/cli-0.5.8-99pnpzq7.mjs +2 -0
  118. package/dist/chunks/cli-0.5.8-9ffdsmw1.mjs +2 -0
  119. package/dist/chunks/cli-0.5.8-9fpm1ms3.mjs +2 -0
  120. package/dist/chunks/cli-0.5.8-9jzc13yp.mjs +2 -0
  121. package/dist/chunks/cli-0.5.8-a03sqccb.mjs +2 -0
  122. package/dist/chunks/cli-0.5.8-at01jfw3.mjs +2 -0
  123. package/dist/chunks/cli-0.5.8-axp2p1sa.mjs +2 -0
  124. package/dist/chunks/cli-0.5.8-bfynw1rm.mjs +2 -0
  125. package/dist/chunks/cli-0.5.8-bhc8vwxd.mjs +2 -0
  126. package/dist/chunks/cli-0.5.8-bjqx8j31.mjs +67 -0
  127. package/dist/chunks/cli-0.5.8-bnqvgx16.mjs +18 -0
  128. package/dist/chunks/cli-0.5.8-brnwv1s4.mjs +2 -0
  129. package/dist/chunks/cli-0.5.8-bv6qegpr.mjs +2 -0
  130. package/dist/chunks/cli-0.5.8-bv8mzvsr.mjs +2 -0
  131. package/dist/chunks/cli-0.5.8-bwsasv3j.mjs +12 -0
  132. package/dist/chunks/cli-0.5.8-cc6m9nm7.mjs +2 -0
  133. package/dist/chunks/cli-0.5.8-cctz1t07.mjs +2 -0
  134. package/dist/chunks/cli-0.5.8-cgt1fvs7.mjs +2 -0
  135. package/dist/chunks/cli-0.5.8-chb0m9py.mjs +17 -0
  136. package/dist/chunks/cli-0.5.8-chdp8e1b.mjs +15 -0
  137. package/dist/chunks/cli-0.5.8-cm551a1y.mjs +2 -0
  138. package/dist/chunks/cli-0.5.8-cv8hrynt.mjs +2 -0
  139. package/dist/chunks/cli-0.5.8-d3t3qcax.mjs +2 -0
  140. package/dist/chunks/cli-0.5.8-dn2c6x2n.mjs +2 -0
  141. package/dist/chunks/cli-0.5.8-dtn5ax3v.mjs +2 -0
  142. package/dist/chunks/cli-0.5.8-e5dnz0q6.mjs +2 -0
  143. package/dist/chunks/cli-0.5.8-e6gpyhnf.mjs +39 -0
  144. package/dist/chunks/cli-0.5.8-edf7e65a.mjs +2 -0
  145. package/dist/chunks/cli-0.5.8-eq34z9xf.mjs +133 -0
  146. package/dist/chunks/cli-0.5.8-erk0zvwn.mjs +3 -0
  147. package/dist/chunks/cli-0.5.8-et8r95zv.mjs +15 -0
  148. package/dist/chunks/cli-0.5.8-etf1n11s.mjs +2 -0
  149. package/dist/chunks/cli-0.5.8-ex39bk3p.mjs +3 -0
  150. package/dist/chunks/cli-0.5.8-f0cc21nk.mjs +34 -0
  151. package/dist/chunks/cli-0.5.8-f1znt77k.mjs +2 -0
  152. package/dist/chunks/cli-0.5.8-f54hhqdn.mjs +4 -0
  153. package/dist/chunks/cli-0.5.8-fbja9vc0.mjs +2 -0
  154. package/dist/chunks/cli-0.5.8-fhebd13f.mjs +12 -0
  155. package/dist/chunks/cli-0.5.8-fmyr9f7x.mjs +18 -0
  156. package/dist/chunks/cli-0.5.8-fr90cgpy.mjs +4 -0
  157. package/dist/chunks/cli-0.5.8-gf6svxra.mjs +27 -0
  158. package/dist/chunks/cli-0.5.8-gm4jqzfs.mjs +2 -0
  159. package/dist/chunks/cli-0.5.8-gnw67m2e.mjs +3 -0
  160. package/dist/chunks/cli-0.5.8-gp6x9qmw.mjs +2 -0
  161. package/dist/chunks/cli-0.5.8-gr2yrqhs.mjs +21 -0
  162. package/dist/chunks/cli-0.5.8-haddssvq.mjs +17 -0
  163. package/dist/chunks/cli-0.5.8-he3sfaey.mjs +2 -0
  164. package/dist/chunks/cli-0.5.8-hkfwdsmy.mjs +2 -0
  165. package/dist/chunks/cli-0.5.8-hz85a3w7.mjs +2 -0
  166. package/dist/chunks/cli-0.5.8-j5n54z7y.mjs +2 -0
  167. package/dist/chunks/cli-0.5.8-j5nn8m2r.mjs +2 -0
  168. package/dist/chunks/cli-0.5.8-j77twbsq.mjs +2 -0
  169. package/dist/chunks/cli-0.5.8-jcm5hsqp.mjs +6 -0
  170. package/dist/chunks/cli-0.5.8-je6yq94p.mjs +2 -0
  171. package/dist/chunks/cli-0.5.8-jjmb10ns.mjs +10 -0
  172. package/dist/chunks/cli-0.5.8-jtqyf6nz.mjs +9 -0
  173. package/dist/chunks/cli-0.5.8-kbjtm14d.mjs +2 -0
  174. package/dist/chunks/cli-0.5.8-kdatn7ch.mjs +2 -0
  175. package/dist/chunks/cli-0.5.8-kegk7gdp.mjs +3 -0
  176. package/dist/chunks/cli-0.5.8-kmzftyt4.mjs +2 -0
  177. package/dist/chunks/cli-0.5.8-m3186fr3.mjs +5 -0
  178. package/dist/chunks/cli-0.5.8-m7f68vhz.mjs +2 -0
  179. package/dist/chunks/cli-0.5.8-m9yn90fe.mjs +4 -0
  180. package/dist/chunks/cli-0.5.8-mf9m22v5.mjs +2 -0
  181. package/dist/chunks/cli-0.5.8-mgzx32hk.mjs +3 -0
  182. package/dist/chunks/cli-0.5.8-ntjmzc72.mjs +4 -0
  183. package/dist/chunks/cli-0.5.8-nwe7yne9.mjs +59 -0
  184. package/dist/chunks/cli-0.5.8-p2n1sz9e.mjs +2 -0
  185. package/dist/chunks/cli-0.5.8-p596xr80.mjs +2 -0
  186. package/dist/chunks/cli-0.5.8-p72phgsn.mjs +2 -0
  187. package/dist/chunks/cli-0.5.8-p84q1yp2.mjs +2 -0
  188. package/dist/chunks/cli-0.5.8-p9vc4jd4.mjs +2 -0
  189. package/dist/chunks/cli-0.5.8-pbvqqyq3.mjs +133 -0
  190. package/dist/chunks/cli-0.5.8-pmsd92jp.mjs +2 -0
  191. package/dist/chunks/cli-0.5.8-ppmhyhcf.mjs +2 -0
  192. package/dist/chunks/cli-0.5.8-pwcy1yf9.mjs +2 -0
  193. package/dist/chunks/cli-0.5.8-qdnr3r07.mjs +2 -0
  194. package/dist/chunks/cli-0.5.8-qf19nfhv.mjs +193 -0
  195. package/dist/chunks/cli-0.5.8-qgd7he6r.mjs +3 -0
  196. package/dist/chunks/cli-0.5.8-qrbzvxe2.mjs +2 -0
  197. package/dist/chunks/cli-0.5.8-qvy0n26p.mjs +2 -0
  198. package/dist/chunks/cli-0.5.8-r3r9r1x8.mjs +2 -0
  199. package/dist/chunks/cli-0.5.8-r3zjfgs5.mjs +2 -0
  200. package/dist/chunks/cli-0.5.8-r88abafr.mjs +15 -0
  201. package/dist/chunks/cli-0.5.8-rddkqxh8.mjs +16 -0
  202. package/dist/chunks/cli-0.5.8-rjn66mdx.mjs +4 -0
  203. package/dist/chunks/cli-0.5.8-rtmc93gs.mjs +2 -0
  204. package/dist/chunks/cli-0.5.8-rvxqss4v.mjs +12 -0
  205. package/dist/chunks/cli-0.5.8-s3j6qsck.mjs +3 -0
  206. package/dist/chunks/cli-0.5.8-s7px34xg.mjs +2 -0
  207. package/dist/chunks/cli-0.5.8-sbqgh2ca.mjs +2 -0
  208. package/dist/chunks/cli-0.5.8-t3x9v2fr.mjs +2 -0
  209. package/dist/chunks/cli-0.5.8-tc6ssmvg.mjs +2 -0
  210. package/dist/chunks/cli-0.5.8-tknpvwjq.mjs +24 -0
  211. package/dist/chunks/cli-0.5.8-tp8vvk8a.mjs +4 -0
  212. package/dist/chunks/cli-0.5.8-v274erpp.mjs +2 -0
  213. package/dist/chunks/cli-0.5.8-v5gbzf09.mjs +2 -0
  214. package/dist/chunks/cli-0.5.8-vax2sw0y.mjs +2 -0
  215. package/dist/chunks/cli-0.5.8-vck50j66.mjs +2 -0
  216. package/dist/chunks/cli-0.5.8-vhpgdwvb.mjs +45 -0
  217. package/dist/chunks/cli-0.5.8-w36atn94.mjs +2 -0
  218. package/dist/chunks/cli-0.5.8-w75qbypx.mjs +2 -0
  219. package/dist/chunks/cli-0.5.8-w7g735pf.mjs +2 -0
  220. package/dist/chunks/cli-0.5.8-was67jgw.mjs +2 -0
  221. package/dist/chunks/cli-0.5.8-wcjp9e8f.mjs +50 -0
  222. package/dist/chunks/cli-0.5.8-wcyjzsha.mjs +2 -0
  223. package/dist/chunks/cli-0.5.8-wdyh9mqa.mjs +3 -0
  224. package/dist/chunks/cli-0.5.8-wkcmqhde.mjs +2 -0
  225. package/dist/chunks/cli-0.5.8-wm9jby2t.mjs +2 -0
  226. package/dist/chunks/cli-0.5.8-wtz636rz.mjs +20 -0
  227. package/dist/chunks/cli-0.5.8-x8fzgqvs.mjs +2 -0
  228. package/dist/chunks/cli-0.5.8-x9q7q10d.mjs +2 -0
  229. package/dist/chunks/cli-0.5.8-xs1gy1tk.mjs +6 -0
  230. package/dist/chunks/cli-0.5.8-xvf56w0z.mjs +2 -0
  231. package/dist/chunks/cli-0.5.8-xwpp4ts7.mjs +2 -0
  232. package/dist/chunks/cli-0.5.8-xwzk13b3.mjs +2 -0
  233. package/dist/chunks/cli-0.5.8-yfpy2mmj.mjs +2 -0
  234. package/dist/chunks/cli-0.5.8-ywfvs57d.mjs +2 -0
  235. package/dist/chunks/cli-0.5.8-z14ncgt9.mjs +2 -0
  236. package/dist/chunks/cli-0.5.8-z3ev1ken.mjs +3 -0
  237. package/dist/chunks/cli-0.5.8-z447z8t0.mjs +2 -0
  238. package/dist/chunks/cli-0.5.8-zervw1k3.mjs +5 -0
  239. package/dist/chunks/cli-0.5.8-zf5yzqn5.mjs +1 -0
  240. package/dist/chunks/cli-0.5.8-zhydxkm6.mjs +2 -0
  241. package/dist/chunks/cli-0.5.8-zkn5gecs.mjs +2 -0
  242. package/dist/chunks/cli-0.5.8-zy590bkh.mjs +2 -0
  243. package/dist/chunks/client-0.5.8-9axd4w58.mjs +1 -0
  244. package/dist/chunks/color-0.5.8-resv1z9m.mjs +1 -0
  245. package/dist/chunks/compact-0.5.8-4rtxsg5x.mjs +3 -0
  246. package/dist/chunks/config-0.5.8-1j4xyj57.mjs +1 -0
  247. package/dist/chunks/config-0.5.8-ettscama.mjs +1 -0
  248. package/dist/chunks/context-0.5.8-fpg3fcmt.mjs +1 -0
  249. package/dist/chunks/context-noninteractive-0.5.8-zaspwvjm.mjs +1 -0
  250. package/dist/chunks/conversation-0.5.8-hfvm0eqb.mjs +1 -0
  251. package/dist/chunks/copy-0.5.8-wzb7pjzr.mjs +9 -0
  252. package/dist/chunks/cost-0.5.8-f2m9t7ye.mjs +1 -0
  253. package/dist/chunks/createSSHSession-0.5.8-615sh7tx.mjs +1 -0
  254. package/dist/chunks/createSession-0.5.8-v7srm5ea.mjs +1 -0
  255. package/dist/chunks/debug-0.5.8-c84dbamw.mjs +1 -0
  256. package/dist/chunks/defaultActionDeps-0.5.8-b94dtwtd.mjs +1177 -0
  257. package/dist/chunks/desktop-0.5.8-46z10hnt.mjs +1 -0
  258. package/dist/chunks/detectRepository-0.5.8-rwc4rjfg.mjs +1 -0
  259. package/dist/chunks/detection-0.5.8-hydnvzf4.mjs +1 -0
  260. package/dist/chunks/diff-0.5.8-p7d54hn7.mjs +1 -0
  261. package/dist/chunks/doctor-0.5.8-894mdsxc.mjs +1 -0
  262. package/dist/chunks/doctorDiagnostic-0.5.8-c12xcayk.mjs +1 -0
  263. package/dist/chunks/earlyInput-0.5.8-fwa1r2va.mjs +1 -0
  264. package/dist/chunks/effort-0.5.8-7gcwya2k.mjs +10 -0
  265. package/dist/chunks/envUtils-0.5.8-20c2f8v3.mjs +1 -0
  266. package/dist/chunks/environmentSelection-0.5.8-t6hzsc8z.mjs +1 -0
  267. package/dist/chunks/environments-0.5.8-fcp8bfe3.mjs +1 -0
  268. package/dist/chunks/errors-0.5.8-ev3jqbjj.mjs +1 -0
  269. package/dist/chunks/exampleCommands-0.5.8-d38qs6k2.mjs +1 -0
  270. package/dist/chunks/exit-0.5.8-f5v7cstg.mjs +1 -0
  271. package/dist/chunks/export-0.5.8-a8fg7991.mjs +2 -0
  272. package/dist/chunks/extra-usage-0.5.8-r5qs5fjk.mjs +1 -0
  273. package/dist/chunks/extra-usage-noninteractive-0.5.8-f8mch55k.mjs +1 -0
  274. package/dist/chunks/fast-0.5.8-5yfvbb7d.mjs +1 -0
  275. package/dist/chunks/feedback-0.5.8-j9xstj5q.mjs +14 -0
  276. package/dist/chunks/firstPartyEventLogger-0.5.8-tmpw0mgj.mjs +1 -0
  277. package/dist/chunks/git-0.5.8-vvd1b8x0.mjs +1 -0
  278. package/dist/chunks/githubModelsCredentials-0.5.8-de9f7e7s.mjs +1 -0
  279. package/dist/chunks/grove-0.5.8-rewcpbks.mjs +1 -0
  280. package/dist/chunks/growthbook-0.5.8-tt3wbrct.mjs +1 -0
  281. package/dist/chunks/headless-0.5.8-h1tn9ee3.mjs +2 -0
  282. package/dist/chunks/heapdump-0.5.8-e0vshas9.mjs +6 -0
  283. package/dist/chunks/help-0.5.8-mhhgyvqz.mjs +1 -0
  284. package/dist/chunks/hookChains-0.5.8-ewzfdp91.mjs +3 -0
  285. package/dist/chunks/hooks-0.5.8-mgp708m9.mjs +1 -0
  286. package/dist/chunks/hooks-0.5.8-p1mz2zy1.mjs +79 -0
  287. package/dist/chunks/ide-0.5.8-pzfhr27w.mjs +3 -0
  288. package/dist/chunks/image-processor-napi-0.5.8-1skckgt6.mjs +1 -0
  289. package/dist/chunks/index-0.5.8-0dkn7rr7.mjs +9 -0
  290. package/dist/chunks/index-0.5.8-26yrjbk0.mjs +1 -0
  291. package/dist/chunks/index-0.5.8-5cr4y9wx.mjs +1 -0
  292. package/dist/chunks/index-0.5.8-5mgzpm7c.mjs +1 -0
  293. package/dist/chunks/index-0.5.8-b4p3af9y.mjs +1 -0
  294. package/dist/chunks/index-0.5.8-b7tvbbzv.mjs +2 -0
  295. package/dist/chunks/index-0.5.8-bk6ejev9.mjs +1 -0
  296. package/dist/chunks/index-0.5.8-cmyhdm8s.mjs +9 -0
  297. package/dist/chunks/index-0.5.8-egkksjaj.mjs +1 -0
  298. package/dist/chunks/index-0.5.8-hr8aqgvc.mjs +1 -0
  299. package/dist/chunks/index-0.5.8-jf20nzsg.mjs +1 -0
  300. package/dist/chunks/index-0.5.8-m6exk6z6.mjs +30 -0
  301. package/dist/chunks/index-0.5.8-mpm6xxk3.mjs +5 -0
  302. package/dist/chunks/index-0.5.8-nt058ay0.mjs +1 -0
  303. package/dist/chunks/index-0.5.8-qdwcg9cv.mjs +10 -0
  304. package/dist/chunks/index-0.5.8-rdk757cq.mjs +1 -0
  305. package/dist/chunks/index-0.5.8-red1reev.mjs +1 -0
  306. package/dist/chunks/index-0.5.8-rehfpmcw.mjs +1 -0
  307. package/dist/chunks/index-0.5.8-s3k17n65.mjs +1 -0
  308. package/dist/chunks/index-0.5.8-xpaaycp7.mjs +1 -0
  309. package/dist/chunks/index-0.5.8-ydqh8xbm.mjs +2 -0
  310. package/dist/chunks/index-0.5.8-yp0fpaqf.mjs +1 -0
  311. package/dist/chunks/init-0.5.8-kmfn7vay.mjs +1 -0
  312. package/dist/chunks/initReplBridge-0.5.8-f9ezc1jk.mjs +1 -0
  313. package/dist/chunks/ink-0.5.8-y01565nf.mjs +1 -0
  314. package/dist/chunks/insights-0.5.8-mwq5z31x.mjs +870 -0
  315. package/dist/chunks/install-0.5.8-se0j5qte.mjs +1 -0
  316. package/dist/chunks/install-github-app-0.5.8-zqhhg1fw.mjs +149 -0
  317. package/dist/chunks/install-slack-app-0.5.8-9qpwy0z9.mjs +1 -0
  318. package/dist/chunks/instrumentation-0.5.8-gbnaaqp3.mjs +1 -0
  319. package/dist/chunks/interactiveHelpers-0.5.8-wrn95m3j.mjs +1 -0
  320. package/dist/chunks/keybindings-0.5.8-j070t67n.mjs +2 -0
  321. package/dist/chunks/knowledge-0.5.8-fhr55cqh.mjs +2 -0
  322. package/dist/chunks/latestVersionCache-0.5.8-rmkxtaea.mjs +1 -0
  323. package/dist/chunks/loadAgentsDir-0.5.8-f3j27p5s.mjs +1 -0
  324. package/dist/chunks/loadPluginHooks-0.5.8-7401ty3k.mjs +1 -0
  325. package/dist/chunks/loadPluginHooks-0.5.8-yhhkejwz.mjs +1 -0
  326. package/dist/chunks/log-0.5.8-78h0x7qg.mjs +1 -0
  327. package/dist/chunks/main-0.5.8-4ddjgz4x.mjs +1 -0
  328. package/dist/chunks/managedEnv-0.5.8-rxnh3nhr.mjs +1 -0
  329. package/dist/chunks/mcp-0.5.8-9ts7qrcv.mjs +4 -0
  330. package/dist/chunks/mcp-0.5.8-hhnpsgvh.mjs +17 -0
  331. package/dist/chunks/mcp-0.5.8-md6hzter.mjs +1 -0
  332. package/dist/chunks/mcpb-0.5.8-ebcb4nn4.mjs +1 -0
  333. package/dist/chunks/memory-0.5.8-ph5hb81n.mjs +3 -0
  334. package/dist/chunks/mobile-0.5.8-f04nmet1.mjs +2 -0
  335. package/dist/chunks/model-0.5.8-aqzt03nd.mjs +1 -0
  336. package/dist/chunks/model-0.5.8-nmcrv393.mjs +2 -0
  337. package/dist/chunks/oauth-0.5.8-n75mrvf3.mjs +1 -0
  338. package/dist/chunks/openaiShim-0.5.8-95kwrgpv.mjs +14 -0
  339. package/dist/chunks/output-style-0.5.8-zy932aj1.mjs +1 -0
  340. package/dist/chunks/package-APBHZ5F3-0.5.8-c4xw21z8.mjs +1 -0
  341. package/dist/chunks/parseConnectUrl-0.5.8-0dgzrde4.mjs +1 -0
  342. package/dist/chunks/parser-0.5.8-g6wgq5z2.mjs +1 -0
  343. package/dist/chunks/passes-0.5.8-jkdncmr5.mjs +1 -0
  344. package/dist/chunks/permissions-0.5.8-tesg1fmt.mjs +3 -0
  345. package/dist/chunks/plan-0.5.8-4h4wazbm.mjs +1 -0
  346. package/dist/chunks/plist-0.5.8-ygsvkws5.mjs +1 -0
  347. package/dist/chunks/plugin-0.5.8-meszp93t.mjs +29 -0
  348. package/dist/chunks/pluginStartupCheck-0.5.8-8c49aq53.mjs +1 -0
  349. package/dist/chunks/plugins-0.5.8-zh9wq5by.mjs +9 -0
  350. package/dist/chunks/preActionHook-0.5.8-r8zrjby2.mjs +2 -0
  351. package/dist/chunks/print-0.5.8-dbcfsrdg.mjs +57 -0
  352. package/dist/chunks/privacy-settings-0.5.8-zj36f0ve.mjs +1 -0
  353. package/dist/chunks/process-0.5.8-1yf78q4y.mjs +1 -0
  354. package/dist/chunks/processBashCommand-0.5.8-pdnzd9ry.mjs +1 -0
  355. package/dist/chunks/processSlashCommand-0.5.8-kmv9fs8d.mjs +9 -0
  356. package/dist/chunks/prompt-0.5.8-aa1v4zh0.mjs +1 -0
  357. package/dist/chunks/prompt-0.5.8-wabf0exz.mjs +1 -0
  358. package/dist/chunks/prompts-0.5.8-n865vxaw.mjs +1 -0
  359. package/dist/chunks/protocolHandler-0.5.8-6k7ma4yf.mjs +13 -0
  360. package/dist/chunks/provider-0.5.8-qsr51mc2.mjs +2 -0
  361. package/dist/chunks/providerProfiles-0.5.8-he8tbnf5.mjs +1 -0
  362. package/dist/chunks/providerValidation-0.5.8-6cjh43zv.mjs +6 -0
  363. package/dist/chunks/rate-limit-options-0.5.8-pvbwwt4v.mjs +1 -0
  364. package/dist/chunks/registerSubcommands-0.5.8-8jq52atf.mjs +34 -0
  365. package/dist/chunks/registry-0.5.8-ynn6qxq6.mjs +1 -0
  366. package/dist/chunks/release-notes-0.5.8-yydjz710.mjs +5 -0
  367. package/dist/chunks/reload-plugins-0.5.8-64ybz2n4.mjs +2 -0
  368. package/dist/chunks/remote-env-0.5.8-1f4tf3ch.mjs +1 -0
  369. package/dist/chunks/remoteBridgeCore-0.5.8-qnrtc8aw.mjs +1 -0
  370. package/dist/chunks/remoteSession-0.5.8-kxsfx9gd.mjs +1 -0
  371. package/dist/chunks/rename-0.5.8-j4c6dg9n.mjs +1 -0
  372. package/dist/chunks/replBridgeHandle-0.5.8-w33fvpqt.mjs +1 -0
  373. package/dist/chunks/replLauncher-0.5.8-7jzc54fq.mjs +1 -0
  374. package/dist/chunks/resume-0.5.8-373epwyd.mjs +2 -0
  375. package/dist/chunks/rewind-0.5.8-b9qe0mwn.mjs +1 -0
  376. package/dist/chunks/rootOptions-0.5.8-h1ddt4ry.mjs +1 -0
  377. package/dist/chunks/sandbox-adapter-0.5.8-ma6nv5dg.mjs +1 -0
  378. package/dist/chunks/sandbox-toggle-0.5.8-1cc5m303.mjs +1 -0
  379. package/dist/chunks/session-0.5.8-rxft524k.mjs +2 -0
  380. package/dist/chunks/sessionDiscovery-0.5.8-r4eg8g3r.mjs +1 -0
  381. package/dist/chunks/sessionFileAccessHooks-0.5.8-jm3bmvt7.mjs +1 -0
  382. package/dist/chunks/sessionStorage-0.5.8-kfghwskw.mjs +1 -0
  383. package/dist/chunks/settings-0.5.8-qxr7dgzb.mjs +1 -0
  384. package/dist/chunks/setup-0.5.8-769vnffz.mjs +5 -0
  385. package/dist/chunks/sinks-0.5.8-jcq0kgny.mjs +1 -0
  386. package/dist/chunks/skills-0.5.8-5qxr2p94.mjs +1 -0
  387. package/dist/chunks/startupProfiler-0.5.8-cpbf91zs.mjs +1 -0
  388. package/dist/chunks/startupUpdateCheck-0.5.8-bctkpcea.mjs +1 -0
  389. package/dist/chunks/state-0.5.8-cppqmrbf.mjs +1 -0
  390. package/dist/chunks/stats-0.5.8-zcfm59db.mjs +6 -0
  391. package/dist/chunks/status-0.5.8-5v4y485z.mjs +1 -0
  392. package/dist/chunks/stickers-0.5.8-9gr6e2xg.mjs +1 -0
  393. package/dist/chunks/subprocessEnv-0.5.8-wf4cta06.mjs +1 -0
  394. package/dist/chunks/tasks-0.5.8-30z30sqv.mjs +1 -0
  395. package/dist/chunks/teamHelpers-0.5.8-vcng2y7m.mjs +1 -0
  396. package/dist/chunks/teammateModeSnapshot-0.5.8-48p5p451.mjs +1 -0
  397. package/dist/chunks/teleport-0.5.8-650m4rks.mjs +1 -0
  398. package/dist/chunks/terminalSetup-0.5.8-ew1ax86g.mjs +1 -0
  399. package/dist/chunks/theme-0.5.8-7a06760x.mjs +1 -0
  400. package/dist/chunks/thinkback-0.5.8-xrvqhj8w.mjs +1 -0
  401. package/dist/chunks/thinkback-play-0.5.8-vkpn13f3.mjs +1 -0
  402. package/dist/chunks/toolPool-0.5.8-ntbr808f.mjs +1 -0
  403. package/dist/chunks/toolSearch-0.5.8-ybxz2f7f.mjs +1 -0
  404. package/dist/chunks/tools-0.5.8-egnmkxt7.mjs +1 -0
  405. package/dist/chunks/trustedDevice-0.5.8-422swdjw.mjs +1 -0
  406. package/dist/chunks/turndown.cjs-0.5.8-tkat2x5p.mjs +69 -0
  407. package/dist/chunks/ultrareviewCommand-0.5.8-e7b2408n.mjs +4 -0
  408. package/dist/chunks/update-0.5.8-a285y5j4.mjs +86 -0
  409. package/dist/chunks/upgrade-0.5.8-8nxejvyv.mjs +1 -0
  410. package/dist/chunks/upstreamproxy-0.5.8-6a2g1s50.mjs +14 -0
  411. package/dist/chunks/url-handler-napi-0.5.8-83a2qhsf.mjs +1 -0
  412. package/dist/chunks/usage-0.5.8-9dha8gsc.mjs +1 -0
  413. package/dist/chunks/util-0.5.8-c7zdhrd1.mjs +1 -0
  414. package/dist/chunks/utils-0.5.8-e8pfjkrb.mjs +1 -0
  415. package/dist/chunks/vim-0.5.8-pgsav8je.mjs +1 -0
  416. package/dist/chunks/watcher-0.5.8-w3q8518m.mjs +1 -0
  417. package/dist/chunks/wiki-0.5.8-1sa2h258.mjs +132 -0
  418. package/dist/chunks/worktree-0.5.8-59wmpecg.mjs +1 -0
  419. package/dist/chunks/worktreeModeEnabled-0.5.8-pexygrty.mjs +1 -0
  420. package/dist/chunks/wrapper-0.5.8-kmv5mk0m.mjs +7 -0
  421. package/dist/claudin-vscode.vsix +0 -0
  422. package/dist/cli.mjs +2 -7
  423. package/dist/help-agents.txt +8 -0
  424. package/dist/help-auth.txt +12 -0
  425. package/dist/help-auto-mode.txt +14 -0
  426. package/dist/help-doctor.txt +8 -0
  427. package/dist/help-install.txt +8 -0
  428. package/dist/help-mcp.txt +31 -0
  429. package/dist/help-plugin.txt +20 -0
  430. package/dist/help-plugins.txt +20 -0
  431. package/dist/help-setup-token.txt +6 -0
  432. package/dist/help-update.txt +6 -0
  433. package/dist/help-upgrade.txt +6 -0
  434. package/dist/help.txt +68 -0
  435. package/package.json +4 -1
  436. package/scripts/postinstall-warmup.mjs +70 -0
  437. package/dist/chunks/AgentTool-0.5.7-0krqsszm.mjs +0 -1
  438. package/dist/chunks/App-0.5.7-k8c6xsbz.mjs +0 -1
  439. package/dist/chunks/ApproveApiKey-0.5.7-djmd358f.mjs +0 -1
  440. package/dist/chunks/AssistantSessionChooser-0.5.7-40f5p134.mjs +0 -1
  441. package/dist/chunks/AutoModeOptInDialog-0.5.7-dgpfkf7n.mjs +0 -1
  442. package/dist/chunks/BypassPermissionsModeDialog-0.5.7-m2n3zekg.mjs +0 -1
  443. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.7-8p2b9258.mjs +0 -1
  444. package/dist/chunks/ConsoleOAuthFlow-0.5.7-e11rkgsy.mjs +0 -1
  445. package/dist/chunks/DiffDialog-0.5.7-df3q0dyx.mjs +0 -3
  446. package/dist/chunks/Doctor-0.5.7-996gqph8.mjs +0 -1
  447. package/dist/chunks/Grove-0.5.7-7xphv8qp.mjs +0 -1
  448. package/dist/chunks/ITermBackend-0.5.7-rv5t26my.mjs +0 -1
  449. package/dist/chunks/InvalidConfigDialog-0.5.7-76awdeqe.mjs +0 -1
  450. package/dist/chunks/InvalidSettingsDialog-0.5.7-d59ky2sv.mjs +0 -1
  451. package/dist/chunks/MigrationDialog-0.5.7-nkkcryn5.mjs +0 -1
  452. package/dist/chunks/Onboarding-0.5.7-v3jtvbkn.mjs +0 -1
  453. package/dist/chunks/ProviderManager-0.5.7-92navbez.mjs +0 -1
  454. package/dist/chunks/REPL-0.5.7-6zag11mg.mjs +0 -1
  455. package/dist/chunks/ResumeConversation-0.5.7-hpgm4f1s.mjs +0 -1
  456. package/dist/chunks/SnapshotUpdateDialog-0.5.7-xrverbhp.mjs +0 -1
  457. package/dist/chunks/TeleportProgress-0.5.7-xn5z7dt4.mjs +0 -1
  458. package/dist/chunks/TeleportRepoMismatchDialog-0.5.7-s29rrsak.mjs +0 -1
  459. package/dist/chunks/TeleportResumeWrapper-0.5.7-3r5mn1za.mjs +0 -1
  460. package/dist/chunks/TmuxBackend-0.5.7-k3c0537z.mjs +0 -9
  461. package/dist/chunks/ToolSearchTool-0.5.7-mybq3qz5.mjs +0 -1
  462. package/dist/chunks/TrustDialog-0.5.7-r4dhznyf.mjs +0 -1
  463. package/dist/chunks/activeProvider-0.5.7-8emdm8j8.mjs +0 -1
  464. package/dist/chunks/add-dir-0.5.7-jwaavdc7.mjs +0 -1
  465. package/dist/chunks/agents-0.5.7-e7dajmrs.mjs +0 -110
  466. package/dist/chunks/agents-0.5.7-q2vtj7pt.mjs +0 -3
  467. package/dist/chunks/api-0.5.7-j8bn129y.mjs +0 -1
  468. package/dist/chunks/asciicast-0.5.7-rp1h8swq.mjs +0 -1
  469. package/dist/chunks/assistant-0.5.7-sfk22b3z.mjs +0 -1
  470. package/dist/chunks/auth-0.5.7-ez3n1qpx.mjs +0 -1
  471. package/dist/chunks/auth-0.5.7-khssh83t.mjs +0 -1
  472. package/dist/chunks/autoMode-0.5.7-ezn856pd.mjs +0 -48
  473. package/dist/chunks/autoUpdater-0.5.7-dkw2aw1e.mjs +0 -1
  474. package/dist/chunks/backgroundHousekeeping-0.5.7-9ejvx75r.mjs +0 -1
  475. package/dist/chunks/branch-0.5.7-cjbtbwg1.mjs +0 -4
  476. package/dist/chunks/bridgePointer-0.5.7-5z0vqchx.mjs +0 -1
  477. package/dist/chunks/btw-0.5.7-p3kbd1wf.mjs +0 -1
  478. package/dist/chunks/buddy-0.5.7-pa55rfb4.mjs +0 -3
  479. package/dist/chunks/cacache-0.5.7-anq54jwq.mjs +0 -1
  480. package/dist/chunks/cache-probe-0.5.7-6j5hzxc4.mjs +0 -21
  481. package/dist/chunks/cacheStats-0.5.7-e1byp2n2.mjs +0 -4
  482. package/dist/chunks/caches-0.5.7-w8n6wxaj.mjs +0 -1
  483. package/dist/chunks/claudeDesktop-0.5.7-5kkyx4pz.mjs +0 -1
  484. package/dist/chunks/claudemd-0.5.7-jb7byep9.mjs +0 -1
  485. package/dist/chunks/clear-0.5.7-tkh04z2c.mjs +0 -1
  486. package/dist/chunks/clearTerminal-0.5.7-mbqev32s.mjs +0 -1
  487. package/dist/chunks/cli-0.5.7-023jpnwm.mjs +0 -2
  488. package/dist/chunks/cli-0.5.7-08mn1pmc.mjs +0 -5
  489. package/dist/chunks/cli-0.5.7-0bv1xcbe.mjs +0 -21
  490. package/dist/chunks/cli-0.5.7-0df5m6td.mjs +0 -2
  491. package/dist/chunks/cli-0.5.7-0rvzfmhb.mjs +0 -2
  492. package/dist/chunks/cli-0.5.7-0s7wtvbz.mjs +0 -2
  493. package/dist/chunks/cli-0.5.7-1fmgwk5c.mjs +0 -2
  494. package/dist/chunks/cli-0.5.7-1kmeaqmc.mjs +0 -2
  495. package/dist/chunks/cli-0.5.7-20cz322w.mjs +0 -2
  496. package/dist/chunks/cli-0.5.7-23hg3t0h.mjs +0 -2
  497. package/dist/chunks/cli-0.5.7-258ytmbr.mjs +0 -2
  498. package/dist/chunks/cli-0.5.7-26pwg6gg.mjs +0 -2
  499. package/dist/chunks/cli-0.5.7-2h4rgwc9.mjs +0 -2
  500. package/dist/chunks/cli-0.5.7-2qxsy7jq.mjs +0 -12
  501. package/dist/chunks/cli-0.5.7-2tnvc3ka.mjs +0 -2
  502. package/dist/chunks/cli-0.5.7-2xm61gkr.mjs +0 -5
  503. package/dist/chunks/cli-0.5.7-2ytftsg5.mjs +0 -2
  504. package/dist/chunks/cli-0.5.7-31969syr.mjs +0 -2
  505. package/dist/chunks/cli-0.5.7-31hdc2nc.mjs +0 -2
  506. package/dist/chunks/cli-0.5.7-35yf0b84.mjs +0 -2
  507. package/dist/chunks/cli-0.5.7-3jrq7w6x.mjs +0 -2
  508. package/dist/chunks/cli-0.5.7-3xssm25z.mjs +0 -2
  509. package/dist/chunks/cli-0.5.7-469r2a5r.mjs +0 -193
  510. package/dist/chunks/cli-0.5.7-4eg4pktt.mjs +0 -2
  511. package/dist/chunks/cli-0.5.7-4gmpny6k.mjs +0 -133
  512. package/dist/chunks/cli-0.5.7-4zv4np07.mjs +0 -2
  513. package/dist/chunks/cli-0.5.7-500c5b8m.mjs +0 -4
  514. package/dist/chunks/cli-0.5.7-52mwnwy6.mjs +0 -58
  515. package/dist/chunks/cli-0.5.7-55zn2cct.mjs +0 -4
  516. package/dist/chunks/cli-0.5.7-5736yt36.mjs +0 -2
  517. package/dist/chunks/cli-0.5.7-5aghfr8k.mjs +0 -3
  518. package/dist/chunks/cli-0.5.7-5by4fby4.mjs +0 -2
  519. package/dist/chunks/cli-0.5.7-5e5xfeq6.mjs +0 -2
  520. package/dist/chunks/cli-0.5.7-5jaayymr.mjs +0 -17
  521. package/dist/chunks/cli-0.5.7-5jms2g5g.mjs +0 -2
  522. package/dist/chunks/cli-0.5.7-5kv9dgvn.mjs +0 -2
  523. package/dist/chunks/cli-0.5.7-5mrw857q.mjs +0 -4
  524. package/dist/chunks/cli-0.5.7-5q6tfz39.mjs +0 -2
  525. package/dist/chunks/cli-0.5.7-650e2qk4.mjs +0 -18
  526. package/dist/chunks/cli-0.5.7-67xxeffj.mjs +0 -2
  527. package/dist/chunks/cli-0.5.7-6d26vvaa.mjs +0 -2
  528. package/dist/chunks/cli-0.5.7-6g3w68ks.mjs +0 -2
  529. package/dist/chunks/cli-0.5.7-6gfay8ap.mjs +0 -2
  530. package/dist/chunks/cli-0.5.7-6gkpb0vw.mjs +0 -2
  531. package/dist/chunks/cli-0.5.7-6pssgqdn.mjs +0 -2
  532. package/dist/chunks/cli-0.5.7-6thqe6p4.mjs +0 -3
  533. package/dist/chunks/cli-0.5.7-73er78b7.mjs +0 -15
  534. package/dist/chunks/cli-0.5.7-7a9gq9ff.mjs +0 -2
  535. package/dist/chunks/cli-0.5.7-7hm7dxyp.mjs +0 -2
  536. package/dist/chunks/cli-0.5.7-7k456xwn.mjs +0 -3
  537. package/dist/chunks/cli-0.5.7-7mmyazqh.mjs +0 -34
  538. package/dist/chunks/cli-0.5.7-7rgsmfw7.mjs +0 -3
  539. package/dist/chunks/cli-0.5.7-7wyhqw17.mjs +0 -2
  540. package/dist/chunks/cli-0.5.7-82x8qaxx.mjs +0 -2
  541. package/dist/chunks/cli-0.5.7-89fcvfy0.mjs +0 -2
  542. package/dist/chunks/cli-0.5.7-8ac9d7r6.mjs +0 -2
  543. package/dist/chunks/cli-0.5.7-8ap24w7a.mjs +0 -2
  544. package/dist/chunks/cli-0.5.7-8e61g5bq.mjs +0 -10
  545. package/dist/chunks/cli-0.5.7-8sbq2qed.mjs +0 -2
  546. package/dist/chunks/cli-0.5.7-8sqyymdb.mjs +0 -2
  547. package/dist/chunks/cli-0.5.7-8ychjqct.mjs +0 -16
  548. package/dist/chunks/cli-0.5.7-93eaxn9a.mjs +0 -2
  549. package/dist/chunks/cli-0.5.7-93k1z52y.mjs +0 -2
  550. package/dist/chunks/cli-0.5.7-9acdh8nc.mjs +0 -2
  551. package/dist/chunks/cli-0.5.7-9jck3vts.mjs +0 -15
  552. package/dist/chunks/cli-0.5.7-9rbmn26q.mjs +0 -24
  553. package/dist/chunks/cli-0.5.7-9sysdak3.mjs +0 -2
  554. package/dist/chunks/cli-0.5.7-9ysat94v.mjs +0 -2
  555. package/dist/chunks/cli-0.5.7-9z55nm22.mjs +0 -3
  556. package/dist/chunks/cli-0.5.7-9zwbnq8g.mjs +0 -2
  557. package/dist/chunks/cli-0.5.7-a47hzz3r.mjs +0 -2
  558. package/dist/chunks/cli-0.5.7-aq7a3646.mjs +0 -2
  559. package/dist/chunks/cli-0.5.7-ayjrdmrk.mjs +0 -2
  560. package/dist/chunks/cli-0.5.7-b51h487f.mjs +0 -2
  561. package/dist/chunks/cli-0.5.7-bkptgahs.mjs +0 -4
  562. package/dist/chunks/cli-0.5.7-bnapjxz4.mjs +0 -2
  563. package/dist/chunks/cli-0.5.7-bzrvdrq4.mjs +0 -2
  564. package/dist/chunks/cli-0.5.7-c1mv1399.mjs +0 -2
  565. package/dist/chunks/cli-0.5.7-c9dtw94k.mjs +0 -2
  566. package/dist/chunks/cli-0.5.7-cakvh73p.mjs +0 -2
  567. package/dist/chunks/cli-0.5.7-d19d4v07.mjs +0 -2
  568. package/dist/chunks/cli-0.5.7-d4gtv7f7.mjs +0 -2
  569. package/dist/chunks/cli-0.5.7-de90yre1.mjs +0 -2
  570. package/dist/chunks/cli-0.5.7-dntg9qbj.mjs +0 -133
  571. package/dist/chunks/cli-0.5.7-dp3z7wkh.mjs +0 -2
  572. package/dist/chunks/cli-0.5.7-dr7n1fyv.mjs +0 -20
  573. package/dist/chunks/cli-0.5.7-e8eqdfnf.mjs +0 -2
  574. package/dist/chunks/cli-0.5.7-eer6xagb.mjs +0 -2
  575. package/dist/chunks/cli-0.5.7-esx85d2g.mjs +0 -2
  576. package/dist/chunks/cli-0.5.7-eyemfxtz.mjs +0 -2
  577. package/dist/chunks/cli-0.5.7-fx3gesdm.mjs +0 -2
  578. package/dist/chunks/cli-0.5.7-g2dd5t6j.mjs +0 -2
  579. package/dist/chunks/cli-0.5.7-g4n7dg2d.mjs +0 -9
  580. package/dist/chunks/cli-0.5.7-g7k0r0ea.mjs +0 -5
  581. package/dist/chunks/cli-0.5.7-g8dqk0se.mjs +0 -2
  582. package/dist/chunks/cli-0.5.7-gcnk0vke.mjs +0 -6
  583. package/dist/chunks/cli-0.5.7-gnq8vh0c.mjs +0 -2
  584. package/dist/chunks/cli-0.5.7-gy4csxb5.mjs +0 -2
  585. package/dist/chunks/cli-0.5.7-h9v4tqbs.mjs +0 -24
  586. package/dist/chunks/cli-0.5.7-hdcnw5y4.mjs +0 -2
  587. package/dist/chunks/cli-0.5.7-hhre0h51.mjs +0 -2
  588. package/dist/chunks/cli-0.5.7-hp25yk8y.mjs +0 -2
  589. package/dist/chunks/cli-0.5.7-hq4wbper.mjs +0 -11
  590. package/dist/chunks/cli-0.5.7-hw11qa05.mjs +0 -3
  591. package/dist/chunks/cli-0.5.7-hw3pyj8g.mjs +0 -2
  592. package/dist/chunks/cli-0.5.7-j7h72bgz.mjs +0 -2
  593. package/dist/chunks/cli-0.5.7-j8q5bja8.mjs +0 -2
  594. package/dist/chunks/cli-0.5.7-jf3f8gen.mjs +0 -2
  595. package/dist/chunks/cli-0.5.7-jga8kgpr.mjs +0 -2
  596. package/dist/chunks/cli-0.5.7-jptzskw1.mjs +0 -2
  597. package/dist/chunks/cli-0.5.7-jw2te6th.mjs +0 -2
  598. package/dist/chunks/cli-0.5.7-k11mzgcb.mjs +0 -2
  599. package/dist/chunks/cli-0.5.7-kctf48t4.mjs +0 -7
  600. package/dist/chunks/cli-0.5.7-knkzkqbw.mjs +0 -2
  601. package/dist/chunks/cli-0.5.7-kp9pg4sr.mjs +0 -2
  602. package/dist/chunks/cli-0.5.7-kvazvrra.mjs +0 -2
  603. package/dist/chunks/cli-0.5.7-ky5khwx2.mjs +0 -2
  604. package/dist/chunks/cli-0.5.7-m0841vt9.mjs +0 -2
  605. package/dist/chunks/cli-0.5.7-m4ekdyhj.mjs +0 -2
  606. package/dist/chunks/cli-0.5.7-m4wwfa6q.mjs +0 -2
  607. package/dist/chunks/cli-0.5.7-m5q27x96.mjs +0 -2
  608. package/dist/chunks/cli-0.5.7-m82d23hf.mjs +0 -2
  609. package/dist/chunks/cli-0.5.7-mdcw5fyw.mjs +0 -4
  610. package/dist/chunks/cli-0.5.7-mz4njeb9.mjs +0 -39
  611. package/dist/chunks/cli-0.5.7-mzfr99sc.mjs +0 -67
  612. package/dist/chunks/cli-0.5.7-p381d4sx.mjs +0 -3
  613. package/dist/chunks/cli-0.5.7-p4mv49ab.mjs +0 -25
  614. package/dist/chunks/cli-0.5.7-pse9qff7.mjs +0 -2
  615. package/dist/chunks/cli-0.5.7-pzjz115k.mjs +0 -2
  616. package/dist/chunks/cli-0.5.7-q0pq4367.mjs +0 -9
  617. package/dist/chunks/cli-0.5.7-q2e6xpch.mjs +0 -5281
  618. package/dist/chunks/cli-0.5.7-q6sgd9ng.mjs +0 -12
  619. package/dist/chunks/cli-0.5.7-q8v8naf8.mjs +0 -2
  620. package/dist/chunks/cli-0.5.7-qdcp748z.mjs +0 -2
  621. package/dist/chunks/cli-0.5.7-qdqrgv1q.mjs +0 -2
  622. package/dist/chunks/cli-0.5.7-qk0n5hqa.mjs +0 -9
  623. package/dist/chunks/cli-0.5.7-r4cdt1b9.mjs +0 -50
  624. package/dist/chunks/cli-0.5.7-ra5kv4tw.mjs +0 -2
  625. package/dist/chunks/cli-0.5.7-rb75eq83.mjs +0 -2
  626. package/dist/chunks/cli-0.5.7-rggstqv6.mjs +0 -2
  627. package/dist/chunks/cli-0.5.7-rr1yd8f3.mjs +0 -4
  628. package/dist/chunks/cli-0.5.7-rzts2ke3.mjs +0 -2
  629. package/dist/chunks/cli-0.5.7-s09knvta.mjs +0 -3
  630. package/dist/chunks/cli-0.5.7-s5nd54ga.mjs +0 -3
  631. package/dist/chunks/cli-0.5.7-sb3fjts4.mjs +0 -2
  632. package/dist/chunks/cli-0.5.7-sjd6g3n6.mjs +0 -15
  633. package/dist/chunks/cli-0.5.7-sjx0wm99.mjs +0 -2
  634. package/dist/chunks/cli-0.5.7-skfm51ta.mjs +0 -44
  635. package/dist/chunks/cli-0.5.7-sx7pr75m.mjs +0 -2
  636. package/dist/chunks/cli-0.5.7-t6mtpr04.mjs +0 -2
  637. package/dist/chunks/cli-0.5.7-t8z48kc2.mjs +0 -4
  638. package/dist/chunks/cli-0.5.7-tbga87q3.mjs +0 -2
  639. package/dist/chunks/cli-0.5.7-tc3vm4ra.mjs +0 -2
  640. package/dist/chunks/cli-0.5.7-tgq7dtyz.mjs +0 -2
  641. package/dist/chunks/cli-0.5.7-tpjjm1z2.mjs +0 -45
  642. package/dist/chunks/cli-0.5.7-tqn2ged5.mjs +0 -2
  643. package/dist/chunks/cli-0.5.7-twqt7rxq.mjs +0 -6
  644. package/dist/chunks/cli-0.5.7-vgc7nzef.mjs +0 -2
  645. package/dist/chunks/cli-0.5.7-vk8p3n59.mjs +0 -2
  646. package/dist/chunks/cli-0.5.7-vn5aht50.mjs +0 -2
  647. package/dist/chunks/cli-0.5.7-vvrg78m6.mjs +0 -2
  648. package/dist/chunks/cli-0.5.7-vy4r02pg.mjs +0 -4
  649. package/dist/chunks/cli-0.5.7-vyxaeh82.mjs +0 -2
  650. package/dist/chunks/cli-0.5.7-w024nwsf.mjs +0 -2
  651. package/dist/chunks/cli-0.5.7-w16wj21h.mjs +0 -2
  652. package/dist/chunks/cli-0.5.7-w1bf9y93.mjs +0 -3
  653. package/dist/chunks/cli-0.5.7-w2fb8g6y.mjs +0 -2
  654. package/dist/chunks/cli-0.5.7-w50j12vv.mjs +0 -2
  655. package/dist/chunks/cli-0.5.7-w6nex68w.mjs +0 -2
  656. package/dist/chunks/cli-0.5.7-wz2cbwxt.mjs +0 -4
  657. package/dist/chunks/cli-0.5.7-x0n9mq65.mjs +0 -2
  658. package/dist/chunks/cli-0.5.7-x1azmh1g.mjs +0 -2
  659. package/dist/chunks/cli-0.5.7-x1w96j6d.mjs +0 -59
  660. package/dist/chunks/cli-0.5.7-x7dabprd.mjs +0 -2
  661. package/dist/chunks/cli-0.5.7-x8t1aeey.mjs +0 -2
  662. package/dist/chunks/cli-0.5.7-xepvraxn.mjs +0 -2
  663. package/dist/chunks/cli-0.5.7-xn6deh04.mjs +0 -6
  664. package/dist/chunks/cli-0.5.7-y2vc4xb6.mjs +0 -12
  665. package/dist/chunks/cli-0.5.7-y3pa8ttm.mjs +0 -2
  666. package/dist/chunks/cli-0.5.7-yaywev87.mjs +0 -2
  667. package/dist/chunks/cli-0.5.7-ycj2xr53.mjs +0 -3
  668. package/dist/chunks/cli-0.5.7-yzncgfs4.mjs +0 -18
  669. package/dist/chunks/cli-0.5.7-z1n09m4p.mjs +0 -2
  670. package/dist/chunks/cli-0.5.7-z97pranc.mjs +0 -2
  671. package/dist/chunks/cli-0.5.7-za19q18c.mjs +0 -2
  672. package/dist/chunks/cli-0.5.7-zb8ztx8p.mjs +0 -2
  673. package/dist/chunks/cli-0.5.7-zkw2fx86.mjs +0 -2
  674. package/dist/chunks/client-0.5.7-bqw74z29.mjs +0 -1
  675. package/dist/chunks/color-0.5.7-v1s3bvcj.mjs +0 -1
  676. package/dist/chunks/compact-0.5.7-7kxsprp5.mjs +0 -3
  677. package/dist/chunks/config-0.5.7-e41nnxnm.mjs +0 -1
  678. package/dist/chunks/config-0.5.7-q40ykcbb.mjs +0 -1
  679. package/dist/chunks/context-0.5.7-qvcehmj5.mjs +0 -1
  680. package/dist/chunks/context-noninteractive-0.5.7-02tkje0w.mjs +0 -1
  681. package/dist/chunks/conversation-0.5.7-h7r20gzw.mjs +0 -1
  682. package/dist/chunks/copy-0.5.7-p3xxq9b3.mjs +0 -9
  683. package/dist/chunks/cost-0.5.7-s3rzm0vd.mjs +0 -1
  684. package/dist/chunks/createSSHSession-0.5.7-s9fc5f1h.mjs +0 -1
  685. package/dist/chunks/createSession-0.5.7-4e64teqm.mjs +0 -1
  686. package/dist/chunks/debug-0.5.7-v8bqkmzm.mjs +0 -1
  687. package/dist/chunks/desktop-0.5.7-tna0yskx.mjs +0 -1
  688. package/dist/chunks/detectRepository-0.5.7-3dy7yz89.mjs +0 -1
  689. package/dist/chunks/detection-0.5.7-39zsjy8t.mjs +0 -1
  690. package/dist/chunks/diff-0.5.7-9ywmnxmx.mjs +0 -1
  691. package/dist/chunks/doctor-0.5.7-ty5zxpem.mjs +0 -1
  692. package/dist/chunks/doctorDiagnostic-0.5.7-g458bh9g.mjs +0 -1
  693. package/dist/chunks/earlyInput-0.5.7-x73yj3dn.mjs +0 -1
  694. package/dist/chunks/effort-0.5.7-h76k43fj.mjs +0 -10
  695. package/dist/chunks/envUtils-0.5.7-w1t7akfc.mjs +0 -1
  696. package/dist/chunks/environmentSelection-0.5.7-5dsnr0sv.mjs +0 -1
  697. package/dist/chunks/environments-0.5.7-pqh2gnjb.mjs +0 -1
  698. package/dist/chunks/errors-0.5.7-pa0hz043.mjs +0 -1
  699. package/dist/chunks/exampleCommands-0.5.7-3dtjxdad.mjs +0 -1
  700. package/dist/chunks/exit-0.5.7-0wrw77gk.mjs +0 -1
  701. package/dist/chunks/export-0.5.7-zw9rbf4j.mjs +0 -2
  702. package/dist/chunks/extra-usage-0.5.7-rfya84j0.mjs +0 -1
  703. package/dist/chunks/extra-usage-noninteractive-0.5.7-a1b9ndnm.mjs +0 -1
  704. package/dist/chunks/fast-0.5.7-2p6srbep.mjs +0 -1
  705. package/dist/chunks/feedback-0.5.7-181z18rn.mjs +0 -14
  706. package/dist/chunks/firstPartyEventLogger-0.5.7-xndd9dd0.mjs +0 -1
  707. package/dist/chunks/git-0.5.7-7gyptyxn.mjs +0 -1
  708. package/dist/chunks/githubModelsCredentials-0.5.7-9zhn44n6.mjs +0 -1
  709. package/dist/chunks/growthbook-0.5.7-1mynkk8j.mjs +0 -1
  710. package/dist/chunks/headless-0.5.7-9f87m6f5.mjs +0 -2
  711. package/dist/chunks/heapdump-0.5.7-ns6mqawv.mjs +0 -6
  712. package/dist/chunks/help-0.5.7-px56h6fs.mjs +0 -1
  713. package/dist/chunks/hookChains-0.5.7-1a6qvexe.mjs +0 -3
  714. package/dist/chunks/hooks-0.5.7-azm2m6rs.mjs +0 -79
  715. package/dist/chunks/hooks-0.5.7-fyp8e3f5.mjs +0 -1
  716. package/dist/chunks/ide-0.5.7-v9hbn8cp.mjs +0 -3
  717. package/dist/chunks/image-processor-napi-0.5.7-e41p58ef.mjs +0 -1
  718. package/dist/chunks/index-0.5.7-0tncgnn3.mjs +0 -1
  719. package/dist/chunks/index-0.5.7-30mrmtkn.mjs +0 -1
  720. package/dist/chunks/index-0.5.7-62s7cp1b.mjs +0 -1
  721. package/dist/chunks/index-0.5.7-69akvbm4.mjs +0 -1
  722. package/dist/chunks/index-0.5.7-6y6f5cws.mjs +0 -1
  723. package/dist/chunks/index-0.5.7-7w3agvzm.mjs +0 -10
  724. package/dist/chunks/index-0.5.7-8jwymzr6.mjs +0 -1
  725. package/dist/chunks/index-0.5.7-8m53gyr6.mjs +0 -9
  726. package/dist/chunks/index-0.5.7-ct6jw15p.mjs +0 -2
  727. package/dist/chunks/index-0.5.7-dr470b86.mjs +0 -1
  728. package/dist/chunks/index-0.5.7-e4rvp0fn.mjs +0 -1
  729. package/dist/chunks/index-0.5.7-fkw6rn8z.mjs +0 -1
  730. package/dist/chunks/index-0.5.7-h1xjcbtb.mjs +0 -1
  731. package/dist/chunks/index-0.5.7-ma3xmxv3.mjs +0 -2
  732. package/dist/chunks/index-0.5.7-qn7zmh31.mjs +0 -9
  733. package/dist/chunks/index-0.5.7-rd44m0e6.mjs +0 -30
  734. package/dist/chunks/index-0.5.7-te1s21zz.mjs +0 -5
  735. package/dist/chunks/index-0.5.7-vm9zmzmr.mjs +0 -1
  736. package/dist/chunks/index-0.5.7-wpffxvtn.mjs +0 -1
  737. package/dist/chunks/index-0.5.7-wwfn7x53.mjs +0 -1
  738. package/dist/chunks/index-0.5.7-ybcvbcjt.mjs +0 -1
  739. package/dist/chunks/index-0.5.7-yw3tp60c.mjs +0 -1
  740. package/dist/chunks/initReplBridge-0.5.7-xpy8ap8n.mjs +0 -1
  741. package/dist/chunks/ink-0.5.7-dwmx157s.mjs +0 -1
  742. package/dist/chunks/insights-0.5.7-5fpd27dr.mjs +0 -870
  743. package/dist/chunks/install-0.5.7-6sc73ew8.mjs +0 -1
  744. package/dist/chunks/install-github-app-0.5.7-jcyktynf.mjs +0 -149
  745. package/dist/chunks/install-slack-app-0.5.7-mk4a14ww.mjs +0 -1
  746. package/dist/chunks/instrumentation-0.5.7-116w6tf4.mjs +0 -1
  747. package/dist/chunks/interactiveHelpers-0.5.7-zbfkwcsb.mjs +0 -1
  748. package/dist/chunks/keybindings-0.5.7-k2s0bryc.mjs +0 -2
  749. package/dist/chunks/knowledge-0.5.7-55b2ckth.mjs +0 -2
  750. package/dist/chunks/latestVersionCache-0.5.7-k9pyxzrk.mjs +0 -1
  751. package/dist/chunks/loadAgentsDir-0.5.7-9bmbg04z.mjs +0 -1
  752. package/dist/chunks/loadPluginHooks-0.5.7-bcdwwerp.mjs +0 -1
  753. package/dist/chunks/loadPluginHooks-0.5.7-mdt3yvfc.mjs +0 -1
  754. package/dist/chunks/log-0.5.7-wcft0eyv.mjs +0 -1
  755. package/dist/chunks/main-0.5.7-9sxhszx9.mjs +0 -1236
  756. package/dist/chunks/managedEnv-0.5.7-k4gyyt60.mjs +0 -1
  757. package/dist/chunks/mcp-0.5.7-9z74evcf.mjs +0 -1
  758. package/dist/chunks/mcp-0.5.7-djz3mjw4.mjs +0 -4
  759. package/dist/chunks/mcp-0.5.7-n62qd49c.mjs +0 -17
  760. package/dist/chunks/mcpb-0.5.7-bqt73vjr.mjs +0 -1
  761. package/dist/chunks/memory-0.5.7-chxjrvf2.mjs +0 -3
  762. package/dist/chunks/mobile-0.5.7-y0cn32br.mjs +0 -2
  763. package/dist/chunks/model-0.5.7-7mt2xn7w.mjs +0 -1
  764. package/dist/chunks/model-0.5.7-fdhr0cwa.mjs +0 -2
  765. package/dist/chunks/oauth-0.5.7-xf0qbv6v.mjs +0 -1
  766. package/dist/chunks/openaiShim-0.5.7-0cejk3sb.mjs +0 -14
  767. package/dist/chunks/output-style-0.5.7-t5qc5jxe.mjs +0 -1
  768. package/dist/chunks/package-APBHZ5F3-0.5.7-7bp8s9sg.mjs +0 -1
  769. package/dist/chunks/parseConnectUrl-0.5.7-903apk0t.mjs +0 -1
  770. package/dist/chunks/parser-0.5.7-jnq01hth.mjs +0 -1
  771. package/dist/chunks/passes-0.5.7-nk3fgxyh.mjs +0 -1
  772. package/dist/chunks/permissions-0.5.7-q7whkp76.mjs +0 -3
  773. package/dist/chunks/plan-0.5.7-w5hgy3s7.mjs +0 -1
  774. package/dist/chunks/plist-0.5.7-jwz5qjtz.mjs +0 -1
  775. package/dist/chunks/plugin-0.5.7-x7xcey6d.mjs +0 -29
  776. package/dist/chunks/pluginStartupCheck-0.5.7-gy2e0dge.mjs +0 -1
  777. package/dist/chunks/plugins-0.5.7-2ehzph1a.mjs +0 -9
  778. package/dist/chunks/print-0.5.7-mjx6j0dk.mjs +0 -57
  779. package/dist/chunks/privacy-settings-0.5.7-rkmc34t8.mjs +0 -1
  780. package/dist/chunks/process-0.5.7-8c0qwpv6.mjs +0 -1
  781. package/dist/chunks/processBashCommand-0.5.7-czwzjsj9.mjs +0 -1
  782. package/dist/chunks/processSlashCommand-0.5.7-512rz16m.mjs +0 -9
  783. package/dist/chunks/prompt-0.5.7-r8ewyzer.mjs +0 -1
  784. package/dist/chunks/prompt-0.5.7-z98k679g.mjs +0 -1
  785. package/dist/chunks/prompts-0.5.7-g8mh8as5.mjs +0 -1
  786. package/dist/chunks/protocolHandler-0.5.7-p86as7s6.mjs +0 -13
  787. package/dist/chunks/provider-0.5.7-x4t1g0nh.mjs +0 -2
  788. package/dist/chunks/providerProfiles-0.5.7-dz70g8ys.mjs +0 -1
  789. package/dist/chunks/rate-limit-options-0.5.7-n282sweb.mjs +0 -1
  790. package/dist/chunks/registry-0.5.7-h8q8eay6.mjs +0 -1
  791. package/dist/chunks/release-notes-0.5.7-2h20frk0.mjs +0 -5
  792. package/dist/chunks/reload-plugins-0.5.7-z50apk74.mjs +0 -2
  793. package/dist/chunks/remote-env-0.5.7-08abe77m.mjs +0 -1
  794. package/dist/chunks/remoteBridgeCore-0.5.7-jdasqn18.mjs +0 -1
  795. package/dist/chunks/remoteSession-0.5.7-nq05jhdv.mjs +0 -1
  796. package/dist/chunks/rename-0.5.7-812j1w4d.mjs +0 -1
  797. package/dist/chunks/replBridgeHandle-0.5.7-aa3cp3ea.mjs +0 -1
  798. package/dist/chunks/resume-0.5.7-weq0rn3m.mjs +0 -2
  799. package/dist/chunks/rewind-0.5.7-y54y78kx.mjs +0 -1
  800. package/dist/chunks/sandbox-adapter-0.5.7-tb5qenm4.mjs +0 -1
  801. package/dist/chunks/sandbox-toggle-0.5.7-nxcpekeq.mjs +0 -1
  802. package/dist/chunks/session-0.5.7-ky2s0856.mjs +0 -2
  803. package/dist/chunks/sessionDiscovery-0.5.7-wr82xcxs.mjs +0 -1
  804. package/dist/chunks/sessionFileAccessHooks-0.5.7-0j8f4we0.mjs +0 -1
  805. package/dist/chunks/sessionStorage-0.5.7-qghsxmr2.mjs +0 -1
  806. package/dist/chunks/settings-0.5.7-xa4hccmb.mjs +0 -1
  807. package/dist/chunks/setup-0.5.7-s4yfpbyd.mjs +0 -5
  808. package/dist/chunks/sinks-0.5.7-feq030bq.mjs +0 -1
  809. package/dist/chunks/skills-0.5.7-h2r9d209.mjs +0 -1
  810. package/dist/chunks/startupProfiler-0.5.7-f44bsnqn.mjs +0 -1
  811. package/dist/chunks/startupUpdateCheck-0.5.7-7ff14fag.mjs +0 -1
  812. package/dist/chunks/state-0.5.7-cwk8b4cx.mjs +0 -1
  813. package/dist/chunks/stats-0.5.7-wd077xj7.mjs +0 -6
  814. package/dist/chunks/status-0.5.7-5qy7pnk9.mjs +0 -1
  815. package/dist/chunks/stickers-0.5.7-7s145w6d.mjs +0 -1
  816. package/dist/chunks/subprocessEnv-0.5.7-5dv3w3xn.mjs +0 -1
  817. package/dist/chunks/tasks-0.5.7-q79z0h3e.mjs +0 -1
  818. package/dist/chunks/teamHelpers-0.5.7-b8qf5f0d.mjs +0 -1
  819. package/dist/chunks/teammateModeSnapshot-0.5.7-kvmjwag8.mjs +0 -1
  820. package/dist/chunks/teleport-0.5.7-x740q45r.mjs +0 -1
  821. package/dist/chunks/terminalSetup-0.5.7-z8ytqt6q.mjs +0 -1
  822. package/dist/chunks/theme-0.5.7-9asaqpc9.mjs +0 -1
  823. package/dist/chunks/thinkback-0.5.7-6bzqdm8h.mjs +0 -1
  824. package/dist/chunks/thinkback-play-0.5.7-5m54zaez.mjs +0 -1
  825. package/dist/chunks/toolPool-0.5.7-5rd6jp71.mjs +0 -1
  826. package/dist/chunks/toolSearch-0.5.7-wgqasfmq.mjs +0 -1
  827. package/dist/chunks/trustedDevice-0.5.7-5qbzragc.mjs +0 -1
  828. package/dist/chunks/turndown.cjs-0.5.7-3fjybn8j.mjs +0 -69
  829. package/dist/chunks/ultrareviewCommand-0.5.7-98p7mn4r.mjs +0 -4
  830. package/dist/chunks/update-0.5.7-2jgnt5gj.mjs +0 -86
  831. package/dist/chunks/upgrade-0.5.7-1fa84f4g.mjs +0 -1
  832. package/dist/chunks/upstreamproxy-0.5.7-1p7vn612.mjs +0 -14
  833. package/dist/chunks/url-handler-napi-0.5.7-312p1719.mjs +0 -1
  834. package/dist/chunks/usage-0.5.7-qrsabcka.mjs +0 -1
  835. package/dist/chunks/util-0.5.7-tpzcah5j.mjs +0 -1
  836. package/dist/chunks/utils-0.5.7-8a2ekyr5.mjs +0 -1
  837. package/dist/chunks/vim-0.5.7-w4e8vpjf.mjs +0 -1
  838. package/dist/chunks/watcher-0.5.7-cj50b60x.mjs +0 -1
  839. package/dist/chunks/wiki-0.5.7-ccjdtg8v.mjs +0 -132
  840. package/dist/chunks/worktree-0.5.7-g8wrf9zf.mjs +0 -1
  841. package/dist/chunks/worktreeModeEnabled-0.5.7-w4jdaq8p.mjs +0 -1
  842. package/dist/chunks/wrapper-0.5.7-8k82xd0n.mjs +0 -7
@@ -1,2 +0,0 @@
1
- import{Xma as j}from"./cli-0.5.7-258ytmbr.mjs";var Lt=j((Q)=>{var y=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),L=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),m=Symbol.iterator;function q(t){if(t===null||typeof t!=="object")return null;return t=m&&t[m]||t["@@iterator"],typeof t==="function"?t:null}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,w={};function l(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||S}l.prototype.isReactComponent={};l.prototype.setState=function(t,e){if(typeof t!=="object"&&typeof t!=="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};l.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function P(){}P.prototype=l.prototype;function v(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||S}var T=v.prototype=new P;T.constructor=v;g(T,l.prototype);T.isPureReactComponent=!0;var C=Array.isArray;function E(){}var f={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function R(t,e,n){var r=n.ref;return{$$typeof:y,type:t,key:e,ref:r!==void 0?r:null,props:n}}function z(t,e){return R(t.type,e,t.props)}function x(t){return typeof t==="object"&&t!==null&&t.$$typeof===y}function G(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var d=/\/+/g;function a(t,e){return typeof t==="object"&&t!==null&&t.key!=null?G(""+t.key):e.toString(36)}function K(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status==="string"?t.then(E,E):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function p(t,e,n,r,o){var u=typeof t;if(u==="undefined"||u==="boolean")t=null;var s=!1;if(t===null)s=!0;else switch(u){case"bigint":case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case y:case $:s=!0;break;case h:return s=t._init,p(s(t._payload),e,n,r,o)}}if(s)return o=o(t),s=r===""?"."+a(t,0):r,C(o)?(n="",s!=null&&(n=s.replace(d,"$&/")+"/"),p(o,e,n,"",function(O){return O})):o!=null&&(x(o)&&(o=z(o,n+(o.key==null||t&&t.key===o.key?"":(""+o.key).replace(d,"$&/")+"/")+s)),e.push(o)),1;s=0;var c=r===""?".":r+":";if(C(t))for(var i=0;i<t.length;i++)r=t[i],u=c+a(r,i),s+=p(r,e,n,u,o);else if(i=q(t),typeof i==="function")for(t=i.call(t),i=0;!(r=t.next()).done;)r=r.value,u=c+a(r,i++),s+=p(r,e,n,u,o);else if(u==="object"){if(typeof t.then==="function")return p(K(t),e,n,r,o);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return s}function _(t,e,n){if(t==null)return t;var r=[],o=0;return p(t,r,"","",function(u){return e.call(n,u,o++)}),r}function B(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){if(t._status===0||t._status===-1)t._status=1,t._result=n},function(n){if(t._status===0||t._status===-1)t._status=2,t._result=n}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var A=typeof reportError==="function"?reportError:function(t){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t==="object"&&t!==null&&typeof t.message==="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",t);return}console.error(t)},W={map:_,forEach:function(t,e,n){_(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return _(t,function(){e++}),e},toArray:function(t){return _(t,function(e){return e})||[]},only:function(t){if(!x(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Q.Activity=D;Q.Children=W;Q.Component=l;Q.Fragment=I;Q.Profiler=M;Q.PureComponent=v;Q.StrictMode=N;Q.Suspense=U;Q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f;Q.__COMPILER_RUNTIME={__proto__:null,c:function(t){return f.H.useMemoCache(t)}};Q.cache=function(t){return function(){return t.apply(null,arguments)}};Q.cacheSignal=function(){return null};Q.cloneElement=function(t,e,n){if(t===null||t===void 0)throw Error("The argument must be a React element, but you passed "+t+".");var r=g({},t.props),o=t.key;if(e!=null)for(u in e.key!==void 0&&(o=""+e.key),e)!H.call(e,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&e.ref===void 0||(r[u]=e[u]);var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];r.children=s}return R(t.type,o,r)};Q.createContext=function(t){return t={$$typeof:L,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Y,_context:t},t};Q.createElement=function(t,e,n){var r,o={},u=null;if(e!=null)for(r in e.key!==void 0&&(u=""+e.key),e)H.call(e,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(o[r]=e[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var c=Array(s),i=0;i<s;i++)c[i]=arguments[i+2];o.children=c}if(t&&t.defaultProps)for(r in s=t.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return R(t,u,o)};Q.createRef=function(){return{current:null}};Q.forwardRef=function(t){return{$$typeof:k,render:t}};Q.isValidElement=x;Q.lazy=function(t){return{$$typeof:h,_payload:{_status:-1,_result:t},_init:B}};Q.memo=function(t,e){return{$$typeof:b,type:t,compare:e===void 0?null:e}};Q.startTransition=function(t){var e=f.T,n={};f.T=n;try{var r=t(),o=f.S;o!==null&&o(n,r),typeof r==="object"&&r!==null&&typeof r.then==="function"&&r.then(E,A)}catch(u){A(u)}finally{e!==null&&n.types!==null&&(e.types=n.types),f.T=e}};Q.unstable_useCacheRefresh=function(){return f.H.useCacheRefresh()};Q.use=function(t){return f.H.use(t)};Q.useActionState=function(t,e,n){return f.H.useActionState(t,e,n)};Q.useCallback=function(t,e){return f.H.useCallback(t,e)};Q.useContext=function(t){return f.H.useContext(t)};Q.useDebugValue=function(){};Q.useDeferredValue=function(t,e){return f.H.useDeferredValue(t,e)};Q.useEffect=function(t,e){return f.H.useEffect(t,e)};Q.useEffectEvent=function(t){return f.H.useEffectEvent(t)};Q.useId=function(){return f.H.useId()};Q.useImperativeHandle=function(t,e,n){return f.H.useImperativeHandle(t,e,n)};Q.useInsertionEffect=function(t,e){return f.H.useInsertionEffect(t,e)};Q.useLayoutEffect=function(t,e){return f.H.useLayoutEffect(t,e)};Q.useMemo=function(t,e){return f.H.useMemo(t,e)};Q.useOptimistic=function(t,e){return f.H.useOptimistic(t,e)};Q.useReducer=function(t,e,n){return f.H.useReducer(t,e,n)};Q.useRef=function(t){return f.H.useRef(t)};Q.useState=function(t){return f.H.useState(t)};Q.useSyncExternalStore=function(t,e,n){return f.H.useSyncExternalStore(t,e,n)};Q.useTransition=function(){return f.H.useTransition()};Q.version="19.2.6"});
2
- export{Lt as SY};
@@ -1,2 +0,0 @@
1
- import{AV as Z,KW as Y,MW as u,pX as e2,rV as u2}from"./cli-0.5.7-x1w96j6d.mjs";import{PY as t,QY as o,RY as U}from"./cli-0.5.7-vgc7nzef.mjs";import{w9 as X,y9 as j}from"./cli-0.5.7-469r2a5r.mjs";import{Vma as s}from"./cli-0.5.7-258ytmbr.mjs";e2();j();U();var Q=s(u2(),1),K=58;function c2(){let l=Q.c(35),[e]=Z();if(X.terminal==="Apple_Terminal"){let c;if(l[0]!==e)c=t(t2,{theme:e,welcomeMessage:"Welcome to Claude Code"}),l[0]=e,l[1]=c;else c=l[1];return c}if(["light","light-daltonized","light-ansi"].includes(e)){let c,R,k,p,A,a,I,i,M;if(l[2]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","0.5.7"," "]})]}),R=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),k=t(u,{children:" "}),p=t(u,{children:" "}),A=t(u,{children:" "}),a=t(u,{children:" ░░░░░░ "}),I=t(u,{children:" ░░░ ░░░░░░░░░░ "}),i=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),M=t(u,{children:" "}),l[2]=c,l[3]=R,l[4]=k,l[5]=p,l[6]=A,l[7]=a,l[8]=I,l[9]=i,l[10]=M;else c=l[2],R=l[3],k=l[4],p=l[5],A=l[6],a=l[7],I=l[8],i=l[9],M=l[10];let V;if(l[11]===Symbol.for("react.memo_cache_sentinel"))V=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),l[11]=V;else V=l[11];let E,N;if(l[12]===Symbol.for("react.memo_cache_sentinel"))E=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),N=t(u,{children:" ▒▒ ██ ▒"}),l[12]=E,l[13]=N;else E=l[12],N=l[13];let W;if(l[14]===Symbol.for("react.memo_cache_sentinel"))W=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ▒▒░░▒▒ ▒ ▒▒"]}),l[14]=W;else W=l[14];let L;if(l[15]===Symbol.for("react.memo_cache_sentinel"))L=o(u,{children:[" ",t(u,{color:"clawd_body",backgroundColor:"clawd_background",children:"██▄█████▄██"})," ▒▒ ▒▒ "]}),l[15]=L;else L=l[15];let v;if(l[16]===Symbol.for("react.memo_cache_sentinel"))v=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ░ ▒ "]}),l[16]=v;else v=l[16];let B;if(l[17]===Symbol.for("react.memo_cache_sentinel"))B=t(Y,{width:K,children:o(u,{children:[c,R,k,p,A,a,I,i,M,V,E,N,W,L,v,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"……………………………………………………………………░…………………………▒…………"]})]})}),l[17]=B;else B=l[17];return B}let D,r,P,T,d,m,n;if(l[18]===Symbol.for("react.memo_cache_sentinel"))D=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","0.5.7"," "]})]}),r=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),P=t(u,{children:" "}),T=t(u,{children:" * █████▓▓░ "}),d=t(u,{children:" * ███▓░ ░░ "}),m=t(u,{children:" ░░░░░░ ███▓░ "}),n=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),l[18]=D,l[19]=r,l[20]=P,l[21]=T,l[22]=d,l[23]=m,l[24]=n;else D=l[18],r=l[19],P=l[20],T=l[21],d=l[22],m=l[23],n=l[24];let b,f,_,y,h;if(l[25]===Symbol.for("react.memo_cache_sentinel"))_=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),y=t(u,{children:" ░▓▓███▓▓░ "}),h=t(u,{dimColor:!0,children:" * ░░░░ "}),b=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),f=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),l[25]=b,l[26]=f,l[27]=_,l[28]=y,l[29]=h;else b=l[25],f=l[26],_=l[27],y=l[28],h=l[29];let C;if(l[30]===Symbol.for("react.memo_cache_sentinel"))C=t(u,{color:"clawd_body",children:" █████████ "}),l[30]=C;else C=l[30];let S;if(l[31]===Symbol.for("react.memo_cache_sentinel"))S=o(u,{children:[" ",C," ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),l[31]=S;else S=l[31];let w;if(l[32]===Symbol.for("react.memo_cache_sentinel"))w=o(u,{children:[" ",t(u,{color:"clawd_body",children:"██▄█████▄██"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),l[32]=w;else w=l[32];let g;if(l[33]===Symbol.for("react.memo_cache_sentinel"))g=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," * "]}),l[33]=g;else g=l[33];let O;if(l[34]===Symbol.for("react.memo_cache_sentinel"))O=t(Y,{width:K,children:o(u,{children:[D,r,P,T,d,m,n,_,y,h,b,f,S,w,g,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"………………………………………………………………………………………………………………"]})]})}),l[34]=O;else O=l[34];return O}function t2(l){let e=Q.c(44),{theme:D,welcomeMessage:r}=l;if(["light","light-daltonized","light-ansi"].includes(D)){let a;if(e[0]!==r)a=o(u,{color:"claude",children:[r," "]}),e[0]=r,e[1]=a;else a=e[1];let I;if(e[2]===Symbol.for("react.memo_cache_sentinel"))I=o(u,{dimColor:!0,children:["v","0.5.7"," "]}),e[2]=I;else I=e[2];let i;if(e[3]!==a)i=o(u,{children:[a,I]}),e[3]=a,e[4]=i;else i=e[4];let M,V,E,N,W,L,v,B;if(e[5]===Symbol.for("react.memo_cache_sentinel"))E=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),N=t(u,{children:" "}),W=t(u,{children:" "}),L=t(u,{children:" "}),v=t(u,{children:" ░░░░░░ "}),B=t(u,{children:" ░░░ ░░░░░░░░░░ "}),M=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),V=t(u,{children:" "}),e[5]=M,e[6]=V,e[7]=E,e[8]=N,e[9]=W,e[10]=L,e[11]=v,e[12]=B;else M=e[5],V=e[6],E=e[7],N=e[8],W=e[9],L=e[10],v=e[11],B=e[12];let z;if(e[13]===Symbol.for("react.memo_cache_sentinel"))z=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),e[13]=z;else z=e[13];let $,x,H;if(e[14]===Symbol.for("react.memo_cache_sentinel"))$=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),x=t(u,{children:" ▒▒ ██ ▒"}),H=t(u,{children:" ▒▒░░▒▒ ▒ ▒▒"}),e[14]=$,e[15]=x,e[16]=H;else $=e[14],x=e[15],H=e[16];let q;if(e[17]===Symbol.for("react.memo_cache_sentinel"))q=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"})," ▒▒ ▒▒ "]}),e[17]=q;else q=e[17];let F;if(e[18]===Symbol.for("react.memo_cache_sentinel"))F=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," ░ ▒ "]}),e[18]=F;else F=e[18];let G;if(e[19]===Symbol.for("react.memo_cache_sentinel"))G=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"……………………………………………………………………░…………………………▒…………"]}),e[19]=G;else G=e[19];let J;if(e[20]!==i)J=t(Y,{width:K,children:o(u,{children:[i,E,N,W,L,v,B,M,V,z,$,x,H,q,F,G]})}),e[20]=i,e[21]=J;else J=e[21];return J}let T;if(e[22]!==r)T=o(u,{color:"claude",children:[r," "]}),e[22]=r,e[23]=T;else T=e[23];let d;if(e[24]===Symbol.for("react.memo_cache_sentinel"))d=o(u,{dimColor:!0,children:["v","0.5.7"," "]}),e[24]=d;else d=e[24];let m;if(e[25]!==T)m=o(u,{children:[T,d]}),e[25]=T,e[26]=m;else m=e[26];let n,b,f,_,y,h;if(e[27]===Symbol.for("react.memo_cache_sentinel"))n=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),b=t(u,{children:" "}),f=t(u,{children:" * █████▓▓░ "}),_=t(u,{children:" * ███▓░ ░░ "}),y=t(u,{children:" ░░░░░░ ███▓░ "}),h=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),e[27]=n,e[28]=b,e[29]=f,e[30]=_,e[31]=y,e[32]=h;else n=e[27],b=e[28],f=e[29],_=e[30],y=e[31],h=e[32];let C,S,w,g,O;if(e[33]===Symbol.for("react.memo_cache_sentinel"))C=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),S=t(u,{children:" ░▓▓███▓▓░ "}),w=t(u,{dimColor:!0,children:" * ░░░░ "}),g=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),O=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),e[33]=C,e[34]=S,e[35]=w,e[36]=g,e[37]=O;else C=e[33],S=e[34],w=e[35],g=e[36],O=e[37];let c;if(e[38]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[" ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),e[38]=c;else c=e[38];let R;if(e[39]===Symbol.for("react.memo_cache_sentinel"))R=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),e[39]=R;else R=e[39];let k;if(e[40]===Symbol.for("react.memo_cache_sentinel"))k=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," * "]}),e[40]=k;else k=e[40];let p;if(e[41]===Symbol.for("react.memo_cache_sentinel"))p=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"………………………………………………………………………………………………………………"]}),e[41]=p;else p=e[41];let A;if(e[42]!==m)A=t(Y,{width:K,children:o(u,{children:[m,n,b,f,_,y,h,C,S,w,g,O,c,R,k,p]})}),e[42]=m,e[43]=A;else A=e[43];return A}
2
- export{c2 as ha};
@@ -1,16 +0,0 @@
1
- import{T3 as F2,V3 as c4}from"./cli-0.5.7-g4n7dg2d.mjs";import{X3 as h,Y3 as BZ}from"./cli-0.5.7-xn6deh04.mjs";import{F5 as b,X5 as r0}from"./cli-0.5.7-yzncgfs4.mjs";import{Aba as x4,B6 as D,Bba as I2,E$ as _,E9 as E1,Eaa as C,Eba as R2,Fba as jZ,G$ as Y2,Haa as L,J$ as e,J6 as c0,K$ as y,Maa as S1,O6 as j0,P6 as u5,Q6 as Y5,R9 as _8,T$ as W0,T6 as zZ,Y_ as k1,_aa as Z0,aaa as O4,aba as v1,bba as k8,bca as u1,caa as xZ,e7 as X5,f$ as E8,g7 as GZ,gba as M1,hca as T8,kca as N,nca as q0,q9 as V1,r9 as Q8,tba as g1,vba as I1,w6 as X1,wba as G4,x6 as J8,xba as i,yaa as d,yba as z2,zba as K0}from"./cli-0.5.7-469r2a5r.mjs";import{Kda as S0,Mda as Y4,Wda as Y1}from"./cli-0.5.7-35yf0b84.mjs";import{Eea as H5,Fea as U4,Gea as z0,Iea as p4,Jea as m4,Lea as U,Mea as _0}from"./cli-0.5.7-xepvraxn.mjs";import{Nea as x,Pea as Q2}from"./cli-0.5.7-26pwg6gg.mjs";import{Bfa as v2,Ffa as a4,Pfa as z,Rfa as f0,Sfa as x0,tfa as Q5,xfa as WZ}from"./cli-0.5.7-twqt7rxq.mjs";import{$fa as J5,cga as F,ega as g,gga as w2,jga as N4,mga as u}from"./cli-0.5.7-tqn2ged5.mjs";import{Gga as p,Iga as A5,Nga as h5}from"./cli-0.5.7-skfm51ta.mjs";import{Cja as _1,Cka as I5,Dka as y5,Eka as T5,Fka as C5,Gja as Q4,Lja as b0,Mja as i0,Rka as J2,eka as f,ima as o,lka as Q1,nia as J0,oia as t5,oja as w1}from"./cli-0.5.7-hp25yk8y.mjs";import{Hma as M,Ima as m0}from"./cli-0.5.7-m4wwfa6q.mjs";import{Wma as n8,Yma as f1,Zma as R,_ma as r}from"./cli-0.5.7-258ytmbr.mjs";function w5(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:Y,resolve:X,reject:V,context:W}=$.shift();try{let G=await Z.apply(W,Y);X(G)}catch(G){V(G)}}if(J=!1,$.length>0)Q()}return function(...Y){return new Promise((X,V)=>{$.push({args:Y,resolve:X,reject:V,context:this}),Q()})}}var F5=()=>{};function D5(Z,$){return Z.find((J)=>J.includes($))??null}async function K5(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=w2(),J=F(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await F2(),...J&&{requestHandler:new(await import("./index-0.5.7-0tncgnn3.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-0.5.7-69akvbm4.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await X0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}async function q$(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=w2(),J=F(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await F2(),...J&&{requestHandler:new(await import("./index-0.5.7-0tncgnn3.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-0.5.7-69akvbm4.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await X0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}function d4(Z){return Z.startsWith("anthropic.")}function t4(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function i4(Z){let $=t4(Z);for(let J of n4)if($.startsWith(`${J}.anthropic.`))return J;return}function z$(Z,$){let J=i4(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(d4(Z))return`${$}.${Z}`;return Z}var L5,W$,n4;var N5=R(()=>{m0();n();u();c0();c4();L5=M(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([K5(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let Y=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),X=await Z.send(Y);if(X.inferenceProfileSummaries)J.push(...X.inferenceProfileSummaries);Q=X.nextToken}while(Q);return J.filter((Y)=>Y.inferenceProfileId?.includes("anthropic")).map((Y)=>Y.inferenceProfileId).filter(Boolean)}catch(Y){throw D(Y),Y}});W$=M(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([K5(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),Y=await $.send(Q);if(!Y.models||Y.models.length===0)return null;let X=Y.models[0];if(!X?.modelArn)return null;let V=X.modelArn.lastIndexOf("/");return V>=0?X.modelArn.substring(V+1):X.modelArn}catch($){return D($),null}});n4=["us","eu","apac","global"]});var L2,D2,K2,N2,U2,O2,b2,P2,_2,d0,n0,t0,E2,V0,x$,U5;var k2=R(()=>{L2={firstParty:"claude-3-7-sonnet-20250219",bedrock:"us.anthropic.claude-3-7-sonnet-20250219-v1:0",vertex:"claude-3-7-sonnet@20250219",foundry:"claude-3-7-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},D2={firstParty:"claude-3-5-sonnet-20241022",bedrock:"anthropic.claude-3-5-sonnet-20241022-v2:0",vertex:"claude-3-5-sonnet-v2@20241022",foundry:"claude-3-5-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},K2={firstParty:"claude-3-5-haiku-20241022",bedrock:"us.anthropic.claude-3-5-haiku-20241022-v1:0",vertex:"claude-3-5-haiku@20241022",foundry:"claude-3-5-haiku",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},N2={firstParty:"claude-haiku-4-5-20251001",bedrock:"us.anthropic.claude-haiku-4-5-20251001-v1:0",vertex:"claude-haiku-4-5@20251001",foundry:"claude-haiku-4-5",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},U2={firstParty:"claude-sonnet-4-20250514",bedrock:"us.anthropic.claude-sonnet-4-20250514-v1:0",vertex:"claude-sonnet-4@20250514",foundry:"claude-sonnet-4",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},O2={firstParty:"claude-sonnet-4-5-20250929",bedrock:"us.anthropic.claude-sonnet-4-5-20250929-v1:0",vertex:"claude-sonnet-4-5@20250929",foundry:"claude-sonnet-4-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},b2={firstParty:"claude-opus-4-20250514",bedrock:"us.anthropic.claude-opus-4-20250514-v1:0",vertex:"claude-opus-4@20250514",foundry:"claude-opus-4",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},P2={firstParty:"claude-opus-4-1-20250805",bedrock:"us.anthropic.claude-opus-4-1-20250805-v1:0",vertex:"claude-opus-4-1@20250805",foundry:"claude-opus-4-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},_2={firstParty:"claude-opus-4-5-20251101",bedrock:"us.anthropic.claude-opus-4-5-20251101-v1:0",vertex:"claude-opus-4-5@20251101",foundry:"claude-opus-4-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},d0={firstParty:"claude-opus-4-6",bedrock:"us.anthropic.claude-opus-4-6-v1",vertex:"claude-opus-4-6",foundry:"claude-opus-4-6",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},n0={firstParty:"claude-opus-4-7",bedrock:"us.anthropic.claude-opus-4-7-v1",vertex:"claude-opus-4-7",foundry:"claude-opus-4-7",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},t0={firstParty:"claude-opus-4-8",bedrock:"anthropic.claude-opus-4-8",vertex:"claude-opus-4-8",foundry:"claude-opus-4-8",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},E2={firstParty:"claude-sonnet-4-6",bedrock:"us.anthropic.claude-sonnet-4-6",vertex:"claude-sonnet-4-6",foundry:"claude-sonnet-4-6",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},V0={haiku35:K2,haiku45:N2,sonnet35:D2,sonnet37:L2,sonnet40:U2,sonnet45:O2,sonnet46:E2,opus40:b2,opus41:P2,opus45:_2,opus46:d0,opus47:n0,opus48:t0},x$=Object.values(V0).map((Z)=>Z.firstParty),U5=Object.fromEntries(Object.entries(V0).map(([Z,$])=>[$.firstParty,Z]))});function q(){let Z=N();if(!Z)return"firstParty";switch(Z.transport){case"anthropic":return"firstParty";case"gemini":return"gemini";case"mistral":return"mistral";case"github_copilot":return"github";case"codex_responses":return"codex";case"bedrock":return"bedrock";case"vertex":return"vertex";case"foundry":return"foundry";case"openai_compat":{let $=Z.baseUrl?.toLowerCase()??"";if($.includes("nvidia"))return"nvidia-nim";if($.includes("minimax"))return"minimax";return"openai"}default:return"firstParty"}}function R$(){return q()==="firstParty"}function H$(Z){let $=N();if($?.transport!=="github_copilot")return!1;return(Z?.trim()||$.model?.trim()||"").toLowerCase().includes("claude-")}function w$(){return q()}function F$(){let Z=N();if(!Z)return!0;if(Z.transport!=="anthropic")return!1;let $=Z.baseUrl;if(!$)return!0;try{let J=new URL($).host;return["api.anthropic.com"].includes(J)}catch{return!1}}var t=R(()=>{q0()});function l0(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of b5)J[Q]=V0[Q][$];return J}async function l4(){let Z=l0("bedrock"),$;try{$=await L5()}catch(Q){return D(Q),Z}if(!$?.length)return Z;let J={};for(let Q of b5){let Y=V0[Q].firstParty;J[Q]=D5($,Y)||Z[Q]}return J}function O5(Z){let $=e().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,Y]of Object.entries($)){let X=U5[Q];if(X&&Y)J[X]=Y}return J}function s0(Z){let $;try{$=e().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function s4(){if(b0()!==null)return;if(q()!=="bedrock"){i0(l0(q()));return}P5()}function j(){let Z=b0();if(Z===null)return s4(),O5(l0(q()));return O5(Z)}async function _$(){if(b0()!==null)return;if(q()!=="bedrock"){i0(l0(q()));return}await P5()}var b5,P5;var a0=R(()=>{o();c0();F5();W0();N5();k2();t();b5=Object.keys(V0);P5=w5(async()=>{if(b0()!==null)return;try{let Z=await l4();i0(Z)}catch(Z){D(Z)}})});function M$(){if(F(process.env.DISABLE_COST_WARNINGS))return!1;if(O())return!1;let $=P0(),J=$0()!==null;if(!$.hasToken&&!J)return!1;let Q=L(),Y=Q.oauthAccount?.organizationRole,X=Q.oauthAccount?.workspaceRole;if(!Y||!X)return!1;return["admin","billing"].includes(Y)||["workspace_admin","workspace_billing"].includes(X)}function I$(){if(_5!==null)return _5;if(!O())return!1;let Z=S();if(Z==="max"||Z==="pro")return!0;let J=L().oauthAccount?.organizationRole;return!!J&&["admin","billing","owner","primary_owner"].includes(J)}var _5=null;var E5=R(()=>{n();Z0();u()});function A$(Z){return Z}function h$(){return!1}function k5(){return null}function S5(){return!1}var v5=R(()=>{E5()});async function d$(){let $=L().oauthAccount?.accountUuid,J=$0();if(!$||!J)return;let Q=`${U().BASE_API_URL}/api/claude_cli_profile`;try{return(await b.get(Q,{headers:{"x-api-key":J,"anthropic-beta":z0},params:{account_uuid:$},timeout:1e4})).data}catch(Y){D(Y)}}async function G0(Z){let $=`${U().BASE_API_URL}/api/oauth/profile`;try{return(await b.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){D(J)}}var S2=R(()=>{r0();_0();n();Z0();c0()});import{mkdirSync as r4,writeFileSync as o4}from"fs";function $8(Z,$,J){if(!F(process.env.CLAUDE_CODE_REMOTE))return;try{r4(o0,{recursive:!0,mode:448}),o4(Z,$,{encoding:"utf8",mode:384}),z(`Persisted ${J} to ${Z} for subprocess access`)}catch(Q){z(`Failed to persist ${J} to disk (non-fatal): ${p(Q)}`,{level:"error"})}}function M5(Z,$){try{let Q=v2().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!A5(J))z(`Failed to read ${$} from ${Z}: ${p(J)}`,{level:"debug"});return null}}function f5({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:Y}){let X=Q();if(X!==void 0)return X;let V=process.env[Z];if(!V){let G=M5($,J);return Y(G),G}let W=parseInt(V,10);if(Number.isNaN(W))return z(`${Z} must be a valid file descriptor number, got: ${V}`,{level:"error"}),Y(null),null;try{let G=v2(),B=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${W}`:`/proc/self/fd/${W}`,H=G.readFileSync(B,{encoding:"utf8"}).trim();if(!H)return z(`File descriptor contained empty ${J}`,{level:"error"}),Y(null),null;return z(`Successfully read ${J} from file descriptor ${W}`),Y(H),$8($,H,J),H}catch(G){z(`Failed to read ${J} from file descriptor ${W}: ${p(G)}`,{level:"error"});let B=M5($,J);return Y(B),B}}function e0(){return f5({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:e4,label:"OAuth token",getCached:I5,setCached:y5})}function M2(){return f5({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:Z8,label:"API key",getCached:T5,setCached:C5})}var o0="/home/claude/.claude/remote",e4,Z8,o$;var g5=R(()=>{o();x0();u();h5();a4();e4=`${o0}/.oauth_token`,Z8=`${o0}/.api_key`,o$=`${o0}/.session_ingress_token`});async function p5(){if(process.platform==="darwin"){let Z=i();if((await j0(`security delete-generic-password -a $USER -s "${Z}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function Z2(Z){return Z.slice(-20)}var m5=R(()=>{u5();I2()});function YJ(Z){return Z?.name==="CredentialsProviderError"}function c5(Z){if(!Z||typeof Z!=="object")return!1;let $=Z;if(!$.Credentials||typeof $.Credentials!=="object")return!1;let J=$.Credentials;return typeof J.AccessKeyId==="string"&&typeof J.SecretAccessKey==="string"&&typeof J.SessionToken==="string"&&J.AccessKeyId.length>0&&J.SecretAccessKey.length>0&&J.SessionToken.length>0}async function y2(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function d5(){try{z("Clearing AWS credential provider cache");let{fromIni:Z}=await import("@aws-sdk/credential-providers");await Z({ignoreCache:!0})(),z("AWS credential provider cache refreshed")}catch(Z){z("Failed to clear AWS credential cache (this is expected if no credentials are configured)")}}var n5=R(()=>{x0()});class T{static instance=null;status={isAuthenticating:!1,output:[]};changed=J0();static getInstance(){if(!T.instance)T.instance=new T;return T.instance}getStatus(){return{...this.status,output:[...this.status.output]}}startAuthentication(){this.status={isAuthenticating:!0,output:[]},this.changed.emit(this.getStatus())}addOutput(Z){this.status.output.push(Z),this.changed.emit(this.getStatus())}setError(Z){this.status.error=Z,this.changed.emit(this.getStatus())}endAuthentication(Z){if(Z)this.status={isAuthenticating:!1,output:[]};else this.status.isAuthenticating=!1;this.changed.emit(this.getStatus())}subscribe=this.changed.subscribe;static reset(){if(T.instance)T.instance.changed.clear(),T.instance=null}}var i5=R(()=>{t5()});var $2="claude-code-20250219",l5="interleaved-thinking-2025-05-14",E0="context-1m-2025-08-07",s5="context-management-2025-06-27",a5="structured-outputs-2025-12-15",T2="web-search-2025-03-05",r5="advanced-tool-use-2025-11-20",o5="tool-search-tool-2025-10-19",WJ="effort-2025-11-24",zJ="task-budgets-2026-03-13",e5="prompt-caching-scope-2026-01-05",GJ="extended-cache-ttl-2025-04-11",xJ="fast-mode-2026-02-01",Z1="redact-thinking-2026-02-12",$1="token-efficient-tools-2026-03-28",jJ="afk-mode-2026-01-31",BJ="advisor-tool-2026-03-01",C2,RJ;var A2=R(()=>{C2=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),RJ=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function A(){if(q()!=="firstParty")return!1;return!F(process.env.CLAUDE_CODE_DISABLE_FAST_MODE)}function q1(){if(!A())return!1;return X8()===null}function Y8(Z,$){switch(Z){case"free":return $==="oauth"?"Fast mode requires a paid subscription":"Fast mode unavailable during evaluation. Please purchase credits.";case"preference":return"Fast mode has been disabled by your organization";case"extra_usage_disabled":return"Fast mode requires extra usage billing · /extra-usage to enable";case"network_error":return"Fast mode unavailable due to network connectivity issues";case"unknown":return"Fast mode is currently unavailable"}}function X8(){if(q()!=="firstParty")return"Fast mode is not available on third-party providers";if(!A())return"Fast mode is not available";let Z=S0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!V1()&&S0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(f()&&J2()&&!Q1()){if(!_("flagSettings")?.fastMode)return z("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(k.status==="disabled"){if(k.reason==="network_error"||k.reason==="unknown"){if(F(process.env.CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=Y8(k.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function IJ(){return"opus"+(M0()?"[1m]":"")}function yJ(Z){if(!A())return!1;if(!q1())return!1;if(!W1(Z))return!1;let $=e();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function W1(Z){if(!A())return!1;let $=Z??v0(),J=I($).toLowerCase();return J.includes("opus-4-7")||J.includes("opus-4-6")}function V8(){if(B0.status==="cooldown"&&Date.now()>=B0.resetAt){if(A()&&!h2)z("Fast mode cooldown expired, re-enabling fast mode"),h2=!0,G1.emit();B0={status:"active"}}return B0}function AJ(Z,$){if(!A())return;B0={status:"cooldown",resetAt:Z,reason:$},h2=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),x("tengu_fast_mode_fallback_triggered",{cooldown_duration_ms:J,cooldown_reason:$}),z1.emit(Z,$)}function hJ(){B0={status:"active"}}function fJ(){if(k.status==="disabled")return;k={status:"disabled",reason:"preference"},Y2("userSettings",{fastMode:void 0}),C((Z)=>({...Z,penguinModeOrgEnabled:!1})),f2.emit(!1)}function q8(Z){switch(Z){case"out_of_credits":return"Fast mode disabled · extra usage credits exhausted";case"org_level_disabled":case"org_service_level_disabled":return"Fast mode disabled · extra usage disabled by your organization";case"org_level_disabled_until":return"Fast mode disabled · extra usage spending cap reached";case"member_level_disabled":return"Fast mode disabled · extra usage disabled for your account";case"seat_tier_level_disabled":case"seat_tier_zero_credit_limit":case"member_zero_credit_limit":return"Fast mode disabled · extra usage not available for your plan";case"overage_not_provisioned":case"no_limits_configured":return"Fast mode requires extra usage billing · /extra-usage to enable";default:return"Fast mode disabled · extra usage not available"}}function W8(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function uJ(Z){let $=q8(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),x("tengu_fast_mode_overage_rejected",{overage_disabled_reason:Z??"unknown"}),!W8(Z))Y2("userSettings",{fastMode:void 0}),C((J)=>({...J,penguinModeOrgEnabled:!1}));x1.emit($)}function z8(){return V8().status==="cooldown"}function pJ(Z,$){let J=A()&&q1()&&!!$&&W1(Z);if(J&&z8())return"cooldown";if(J)return"on";return"off"}async function G8(Z){let $=`${U().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":z0}:{"x-api-key":Z.apiKey};return(await b.get($,{headers:J})).data}function cJ(){if(!A())return;if(k.status!=="pending")return;k=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function dJ(){if(X1())return;if(!A())return;if(k0)return z("Fast mode prefetch in progress, returning in-flight promise"),k0;let Z=$0();if(!(w()?.accessToken&&Q0())&&!Z){k=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-J1<x8){z("Skipping fast mode prefetch, fetched recently");return}J1=J;let Q=async()=>{let X=w(),V=X?.accessToken&&Q0()?{accessToken:X.accessToken}:Z?{apiKey:Z}:null;if(!V)throw Error("No auth available");return G8(V)};async function Y(){try{let X;try{X=await Q()}catch(W){if(b.isAxiosError(W)&&(W.response?.status===401||W.response?.status===403&&typeof W.response?.data==="string"&&W.response.data.includes("OAuth token has been revoked"))){let B=w()?.accessToken;if(B)await g2(B),X=await Q();else throw W}else throw W}let V=k.status!=="pending"?k.status==="enabled":L().penguinModeOrgEnabled;if(k=X.enabled?{status:"enabled"}:{status:"disabled",reason:X.disabled_reason??"preference"},V!==X.enabled){if(!X.enabled)Y2("userSettings",{fastMode:void 0});C((W)=>({...W,penguinModeOrgEnabled:X.enabled})),f2.emit(X.enabled)}z(`Org fast mode: ${X.enabled?"enabled":`disabled (${X.disabled_reason??"preference"})`}`)}catch(X){k=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${k.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${X}`,{level:"error"}),x("tengu_org_penguin_mode_fetch_failed",{})}finally{k0=null}}return k0=Y(),k0}var MJ="Opus 4.7",B0,h2=!1,z1,G1,TJ,CJ,x1,gJ,k,f2,mJ,x8=30000,J1=0,k0=null;var j1=R(()=>{r0();_0();Y1();o();Q2();n();Q8();Z0();x0();u();R0();t();J8();W0();t5();B0={status:"active"},z1=J0(),G1=J0(),TJ=z1.subscribe,CJ=G1.subscribe;x1=J0(),gJ=x1.subscribe;k={status:"pending"},f2=J0(),mJ=f2.subscribe});function F8(Z){for(let $ of w8)if($.pattern.test(Z))return $.cost;return}function u2(Z){if(A()&&Z)return j8;return H0}function L8(Z,$){let J=Z.promptCacheWrite1hTokens??Z.promptCacheWriteTokens,Q=$.cache_creation,Y=Q?(Q.ephemeral_5m_input_tokens??0)/1e6*Z.promptCacheWriteTokens+(Q.ephemeral_1h_input_tokens??0)/1e6*J:($.cache_creation_input_tokens??0)/1e6*Z.promptCacheWriteTokens;return $.input_tokens/1e6*Z.inputTokens+$.output_tokens/1e6*Z.outputTokens+($.cache_read_input_tokens??0)/1e6*Z.promptCacheReadTokens+Y+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function D8(Z,$){let J=P(Z);if(J===K(d0.firstParty)||J===K(n0.firstParty)||J===K(t0.firstParty)){let Y=$.speed==="fast";return u2(Y)}let Q=R1[J];if(!Q){let Y=F8(Z);if(Y)return Y;return K8(Z,J),R1[P(v0())]??H8}return Q}function K8(Z,$){x("tengu_unknown_model_cost",{model:Z,shortName:$}),w1()}function N8(Z,$){let J=D8(Z,$);return L8(J,$)}function rJ(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return N8(Z,J)}function H1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function F1(Z){return`${H1(Z.inputTokens)}/${H1(Z.outputTokens)} per Mtok`}var I0,B1,H0,j8,B8,R8,H8,w8,R1;var L1=R(()=>{Q2();o();j1();k2();R0();I0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},B1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},H0={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},j8={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},B8={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},R8={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},H8=H0,w8=[{pattern:/gpt-5-nano/i,label:"gpt-5-nano",cost:{inputTokens:0.05,outputTokens:0.4,promptCacheWriteTokens:0.05,promptCacheReadTokens:0.005,webSearchRequests:0}},{pattern:/gpt-5-mini/i,label:"gpt-5-mini",cost:{inputTokens:0.25,outputTokens:2,promptCacheWriteTokens:0.25,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gpt-5/i,label:"gpt-5",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gpt-4o-mini/i,label:"gpt-4o-mini",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/gpt-4o/i,label:"gpt-4o",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:1.25,webSearchRequests:0}},{pattern:/gpt-4\.1/i,label:"gpt-4.1",cost:{inputTokens:2,outputTokens:8,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/o4-mini/i,label:"o4-mini",cost:{inputTokens:0.55,outputTokens:2.2,promptCacheWriteTokens:0.55,promptCacheReadTokens:0.275,webSearchRequests:0}},{pattern:/\bo3\b/i,label:"o3",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/\bo1\b/i,label:"o1",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/gemini.*2\.5.*pro/i,label:"gemini-2.5-pro",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini.*2\.5.*flash/i,label:"gemini-2.5-flash",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/gemini.*flash/i,label:"gemini-flash",cost:{inputTokens:0.1,outputTokens:0.4,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gemini.*pro/i,label:"gemini-pro",cost:{inputTokens:1.25,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini/i,label:"gemini",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/deepseek/i,label:"deepseek",cost:{inputTokens:0.14,outputTokens:0.28,promptCacheWriteTokens:0.14,promptCacheReadTokens:0.0028,webSearchRequests:0}},{pattern:/kimi-for-coding/i,label:"kimi-for-coding",cost:{inputTokens:1,outputTokens:2,promptCacheWriteTokens:1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/kimi/i,label:"kimi",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/moonshot/i,label:"moonshot",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/devstral/i,label:"devstral",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/mistral.*large.*3/i,label:"mistral-large-3",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/mistral.*large/i,label:"mistral-large",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:2,webSearchRequests:0}},{pattern:/mistral.*medium/i,label:"mistral-medium",cost:{inputTokens:0.4,outputTokens:2,promptCacheWriteTokens:0.4,promptCacheReadTokens:0.4,webSearchRequests:0}},{pattern:/mistral.*small/i,label:"mistral-small",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*8b/i,label:"ministral-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*3b/i,label:"ministral-3b",cost:{inputTokens:0.04,outputTokens:0.04,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/llama.*405/i,label:"llama-405b",cost:{inputTokens:3.5,outputTokens:3.5,promptCacheWriteTokens:3.5,promptCacheReadTokens:3.5,webSearchRequests:0}},{pattern:/llama.*70/i,label:"llama-70b",cost:{inputTokens:0.59,outputTokens:0.79,promptCacheWriteTokens:0.59,promptCacheReadTokens:0.59,webSearchRequests:0}},{pattern:/llama.*8b/i,label:"llama-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/qwen/i,label:"qwen",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/minimax/i,label:"minimax",cost:{inputTokens:0.2,outputTokens:1.1,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.2,webSearchRequests:0}},{pattern:/\bglm/i,label:"glm",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4.*fast/i,label:"grok-4-fast",cost:{inputTokens:0.2,outputTokens:0.5,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.05,webSearchRequests:0}},{pattern:/grok.*4\.20/i,label:"grok-4.20",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4/i,label:"grok-4",cost:{inputTokens:3,outputTokens:15,promptCacheWriteTokens:3,promptCacheReadTokens:0.75,webSearchRequests:0}},{pattern:/grok/i,label:"grok",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/command-?r-?plus|command-r\+/i,label:"command-r-plus",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?a\b/i,label:"command-a",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?r7b/i,label:"command-r7b",cost:{inputTokens:0.0375,outputTokens:0.15,promptCacheWriteTokens:0.0375,promptCacheReadTokens:0.0375,webSearchRequests:0}},{pattern:/command-?r/i,label:"command-r",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.15,webSearchRequests:0}},{pattern:/gemma.*27b/i,label:"gemma-27b",cost:{inputTokens:0.08,outputTokens:0.16,promptCacheWriteTokens:0.08,promptCacheReadTokens:0.08,webSearchRequests:0}},{pattern:/gemma.*12b/i,label:"gemma-12b",cost:{inputTokens:0.04,outputTokens:0.13,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/gemma/i,label:"gemma",cost:{inputTokens:0.04,outputTokens:0.08,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/phi-?4-?mini/i,label:"phi-4-mini",cost:{inputTokens:0.075,outputTokens:0.3,promptCacheWriteTokens:0.075,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/phi-?4/i,label:"phi-4",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}},{pattern:/\bphi\b/i,label:"phi",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}}];R1={[K(K2.firstParty)]:B8,[K(N2.firstParty)]:R8,[K(D2.firstParty)]:I0,[K(L2.firstParty)]:I0,[K(U2.firstParty)]:I0,[K(O2.firstParty)]:I0,[K(E2.firstParty)]:I0,[K(b2.firstParty)]:B1,[K(P2.firstParty)]:B1,[K(_2.firstParty)]:H0,[K(d0.firstParty)]:H0,[K(n0.firstParty)]:H0,[K(t0.firstParty)]:H0}});function m(Z){return U8.includes(Z)}function w0(Z){return O8.includes(Z)}var U8,O8;var p2=R(()=>{U8=["sonnet","opus","haiku","best","sonnet[1m]","opus[1m]","opusplan"];O8=["sonnet","opus","haiku"]});function b8(Z,$){if(Z.includes($))return!0;if(m(Z))return I(Z).toLowerCase().includes($);return!1}function D1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function P8(Z,$){let J=m(Z)?I(Z).toLowerCase():Z;if(D1(J,$))return!0;if(!$.startsWith("claude-")&&D1(J,`claude-${$}`))return!0;return!1}function K1(Z,$){for(let J of $){if(w0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let Y=Q+Z.length;if(Y===J.length||J[Y]==="-")return!0}return!1}function N1(Z){let $=y()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let Y=s0(Z).trim().toLowerCase(),X=J.map((V)=>V.trim().toLowerCase());if(X.includes(Y)){if(!w0(Y)||!K1(Y,X))return!0}for(let V of X)if(w0(V)&&!K1(V,X)&&b8(Y,V))return!0;if(m(Y)){let V=I(Y).toLowerCase();if(X.includes(V))return!0}for(let V of X)if(!w0(V)&&m(V)){if(I(V).toLowerCase()===Y)return!0}for(let V of X)if(!w0(V)&&!m(V)){if(P8(Y,V))return!0}return!1}var U1=R(()=>{W0();p2();R0();a0()});function X3(){return Object.values(O1)}var O1,m2;var b1=R(()=>{O1={"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2-Codex",family:"gpt-codex",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 mini",family:"gpt-mini",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:264000,output:64000}},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",family:"gpt",attachment:!0,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2023-10",release_date:"2024-05-01",last_updated:"2024-08-06",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",family:"gpt",attachment:!1,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2024-06",release_date:"2024-06-01",last_updated:"2024-06-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"claude-opus-4.7":{id:"claude-opus-4.7",name:"Claude Opus 4.7",family:"claude-opus",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2026-01",release_date:"2026-04-01",last_updated:"2026-04-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-sonnet-4.6":{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",family:"claude-sonnet",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-haiku-4.5":{id:"claude-haiku-4.5",name:"Claude Haiku 4.5",family:"claude-haiku",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:144000,output:32768}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",family:"gemini-pro",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:64000}},"grok-code-fast-1":{id:"grok-code-fast-1",name:"Grok Code Fast 1",family:"grok",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:256000,output:64000}}},m2=Object.fromEntries(Object.values(O1).map((Z)=>[Z.id,Z.name]))});function X2(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function L0(){let Z=N();if(!Z?.model)return;return v1(Z.model)}function b3(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=L0();if(q()==="gemini")return Z||"gemini-2.0-flash-lite";if(q()==="mistral")return Z||"ministral-3b-latest";if(q()==="openai")return Z||"gpt-4o-mini";if(q()==="codex")return Z||"codexspark";if(q()==="github")return Z||"github:copilot";if(q()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(q()==="minimax")return Z||"MiniMax-M2.5-highspeed";return y1()}function P3(Z){return Z===j().opus40||Z===j().opus41||Z===j().opus45||Z===j().opus46||Z===j().opus47||Z===j().opus48}function c2(){let Z,$=_1();if($!==void 0)Z=$;else{let J=y()||{},Q=X2(J.model),Y=L0();if(M1()!==void 0)Z=X2(S1().activeModelForProject)||void 0;else Z=Y||Q||void 0}if(Z&&!N1(Z))return;return Z}function _3(){let Z=c2();if(Z!==void 0&&Z!==null)return I(Z);return T1()}function S8(){return F0()}function F0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=L0();if(q()==="gemini")return Z||"gemini-2.5-pro";if(q()==="mistral")return Z||"devstral-latest";if(q()==="openai")return Z||"gpt-4o";if(q()==="codex")return Z||"gpt-5.5";if(q()==="github")return Z||"github:copilot";if(q()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(q()==="minimax")return Z||"MiniMax-M2.7";if(q()!=="firstParty")return j().opus46;return j().opus48}function y0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=L0();if(q()==="gemini")return Z||"gemini-2.0-flash";if(q()==="mistral")return Z||"mistral-medium-latest";if(q()==="openai")return Z||"gpt-4o";if(q()==="codex")return Z||"gpt-5.5";if(q()==="github")return Z||"github:copilot";if(q()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(q()==="minimax")return Z||"MiniMax-M2.5";if(q()!=="firstParty")return j().sonnet45;return j().sonnet46}function y1(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=L0();if(q()==="mistral")return Z||"ministral-3b-latest";if(q()==="openai")return Z||"gpt-4o-mini";if(q()==="codex")return Z||"gpt-5.5";if(q()==="github")return Z||"github:copilot";if(q()==="gemini")return Z||"gemini-2.0-flash-lite";if(q()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(q()==="minimax")return Z||"MiniMax-M2.5-highspeed";return j().haiku45}function E3(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(c2()==="opusplan"&&$==="plan"&&!Q)return F0();if(c2()==="haiku"&&$==="plan")return y0();return J}function v0(){let Z=L0();if(q()==="github"){let $=y()||{};return X2($.model)||Z||"github:copilot"}if(q()==="gemini")return Z||"gemini-2.0-flash";if(q()==="mistral")return Z||"devstral-latest";if(q()==="openai")return Z||"gpt-4o";if(q()==="codex")return Z||"gpt-5.5";if(V2())return F0()+(M0()?"[1m]":"");if(q2())return F0()+(M0()?"[1m]":"");return y0()}function T1(){return I(v0())}function K(Z){if(Z=Z.toLowerCase(),Z.includes("claude-opus-4-8"))return"claude-opus-4-8";if(Z.includes("claude-opus-4-7"))return"claude-opus-4-7";if(Z.includes("claude-opus-4-6"))return"claude-opus-4-6";if(Z.includes("claude-opus-4-5"))return"claude-opus-4-5";if(Z.includes("claude-opus-4-1"))return"claude-opus-4-1";if(Z.includes("claude-opus-4"))return"claude-opus-4";if(Z.includes("claude-sonnet-4-6"))return"claude-sonnet-4-6";if(Z.includes("claude-sonnet-4-5"))return"claude-sonnet-4-5";if(Z.includes("claude-sonnet-4"))return"claude-sonnet-4";if(Z.includes("claude-haiku-4-5"))return"claude-haiku-4-5";if(Z.includes("claude-3-7-sonnet"))return"claude-3-7-sonnet";if(Z.includes("claude-3-5-sonnet"))return"claude-3-5-sonnet";if(Z.includes("claude-3-5-haiku"))return"claude-3-5-haiku";if(Z.includes("claude-3-opus"))return"claude-3-opus";if(Z.includes("claude-3-sonnet"))return"claude-3-sonnet";if(Z.includes("claude-3-haiku"))return"claude-3-haiku";let $=Z.match(/(claude-(\d+-\d+-)?\w+)/);if($&&$[1])return $[1];return Z}function P(Z){return K(s0(Z))}function v8(Z=!1){if(V2()||q2()){if(M0())return`Opus 4.8 with 1M context · Most capable for complex work${Z?P1(!0):""}`;return`Opus 4.8 · Most capable for complex work${Z?P1(!0):""}`}return"Sonnet 4.6 · Best for everyday tasks"}function k3(Z){if(Z==="opusplan")return"Opus 4.8 in plan mode, else Sonnet 4.6";return A1(I(Z))}function P1(Z){if(q()!=="firstParty")return"";let $=F1(u2(Z));return` ·${Z?` (${E1})`:""} ${$}`}function M0(){if(D0()||t2()||q()!=="firstParty")return!1;if(O()&&S()===null)return!1;return!0}function S3(Z){if(Z==="opusplan")return"Opus Plan";if(Z==="codexplan")return"codexplan (gpt-5.5)";if(Z==="codexspark")return"codexspark (gpt-5.3-codex-spark)";if(m(Z))return k1(Z);return A1(Z)}function C1(Z){if(q()==="openai"||q()==="gemini"||q()==="codex"||q()==="github"){if(m2[Z])return m2[Z];return null}switch(Z){case"gpt-5.5":return"GPT-5.5";case"gpt-5.4":return"GPT-5.4";case"gpt-5.3-codex-spark":return"GPT-5.3 Codex Spark";case j().opus48:return"Opus 4.8";case j().opus48+"[1m]":return"Opus 4.8 (1M context)";case j().opus47:return"Opus 4.7";case j().opus47+"[1m]":return"Opus 4.7 (1M context)";case j().opus46:return"Opus 4.6";case j().opus46+"[1m]":return"Opus 4.6 (1M context)";case j().opus45:return"Opus 4.5";case j().opus41:return"Opus 4.1";case j().opus40:return"Opus 4";case j().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case j().sonnet46:return"Sonnet 4.6";case j().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case j().sonnet45:return"Sonnet 4.5";case j().sonnet40:return"Sonnet 4";case j().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case j().sonnet37:return"Sonnet 3.7";case j().sonnet35:return"Sonnet 3.5";case j().haiku45:return"Haiku 4.5";case j().haiku35:return"Haiku 3.5";default:return null}}function A1(Z){let $=C1(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function v3(Z){let $=C1(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function I(Z){let $=X2(Z);if(!$)return y0();let J=$.toLowerCase(),Q=l(J),Y=Q?J.replace(/\[1m]$/i,"").trim():J;if(m(Y))switch(Y){case"opusplan":return y0()+(Q?"[1m]":"");case"sonnet":return y0()+(Q?"[1m]":"");case"haiku":return y1()+(Q?"[1m]":"");case"opus":return F0()+(Q?"[1m]":"");case"best":return S8();default:}if(Y==="codexplan")return"gpt-5.5";if(Y==="codexspark")return"gpt-5.3-codex-spark";if(q()==="firstParty"&&I8(Y)&&y8())return F0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function M3(Z,$){if(l(Z)||!l($))return Z;if(d2(I(Z)))return Z+"[1m]";return Z}function I8(Z){return M8.includes(Z)}function y8(){return!F(process.env.CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP)}function I3(Z){if(Z===null){if(O())return`Default (${v8()})`;return`Default (${T1()})`}let $=I(Z);return Z===$?$:`${Z} (${$})`}function y3(Z){if(q()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=P(Z);if(J.includes("claude-opus-4-7"))return $?"Opus 4.7 (with 1M context)":"Opus 4.7";if(J.includes("claude-opus-4-6"))return $?"Opus 4.6 (with 1M context)":"Opus 4.6";if(J.includes("claude-opus-4-5"))return"Opus 4.5";if(J.includes("claude-opus-4-1"))return"Opus 4.1";if(J.includes("claude-opus-4"))return"Opus 4";if(J.includes("claude-sonnet-4-6"))return $?"Sonnet 4.6 (with 1M context)":"Sonnet 4.6";if(J.includes("claude-sonnet-4-5"))return $?"Sonnet 4.5 (with 1M context)":"Sonnet 4.5";if(J.includes("claude-sonnet-4"))return $?"Sonnet 4 (with 1M context)":"Sonnet 4";if(J.includes("claude-3-7-sonnet"))return"Claude 3.7 Sonnet";if(J.includes("claude-3-5-sonnet"))return"Claude 3.5 Sonnet";if(J.includes("claude-haiku-4-5"))return"Haiku 4.5";if(J.includes("claude-3-5-haiku"))return"Claude 3.5 Haiku";return}function T3(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function C3(Z){let $=P(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")}var M8;var R0=R(()=>{o();q0();Z0();I1();n();n2();u();k8();a0();L1();W0();t();_8();U1();p2();E8();b1();M8=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function i2(Z){return}async function h3(){}var h1=()=>{};var n1={};f1(n1,{prefetchOpenAICompatibleModels:()=>d8,getDiscoveredContextWindow:()=>C8,discoverOpenAICompatibleModelOptions:()=>d1});function C8(Z){return m1.get(Z)}function A8(){return(N()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function c1(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function h8(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function f8(Z){let $=N()?.apiKey?.trim();if(!$)return{};if(h8(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(c1(Z))J["api-key"]=$;return J}function g8(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),Y=Q&&c1(Z)?(X)=>{try{let V=new URL(X);return V.searchParams.set("api-version",Q),V.toString()}catch{return X}}:(X)=>X;if($===J)return[Y($)];return[Y($),Y(J)]}function u8(Z){try{let $=new URL(Z),J=$.pathname.replace(/\/+$/,""),Y=`${J.endsWith("/v1")?J.slice(0,-3):J}/api/tags`.replace(/\/{2,}/g,"/");return`${$.origin}${Y}`}catch{return null}}function p8(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function m8(Z,$){let J=new Set;for(let Q of Z)try{let Y=await b.get(Q,{headers:$,timeout:p1}),X=[];for(let V of Y.data?.data??[]){let W=V.id?.trim();if(!W||J.has(W))continue;J.add(W);let G=V.name?.trim()||W,B=V.context_length??null;if(B&&B>0)m1.set(W,B);let H=B?` · ${p8(B)}`:"";X.push({value:W,label:G,description:`${W}${H}`})}if(X.length>0)return X.sort((V,W)=>{let G=String(V.value).split("/")[0]??"",B=String(W.value).split("/")[0]??"",H=G.localeCompare(B);return H!==0?H:String(V.value).localeCompare(String(W.value))}),X}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function c8(Z,$){try{let J=await b.get(Z,{headers:$,timeout:p1}),Q=new Set;return(J.data?.models??[]).map((Y)=>Y.name?.trim()??"").filter((Y)=>{if(!Y||Q.has(Y))return!1;return Q.add(Y),!0}).map((Y)=>({value:Y,label:Y,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function d1(){if(q()!=="openai")return[];let Z=A8(),$=f8(Z),J=await m8(g8(Z),$);if(J.length>0)return J;let Q=u8(Z);if(Q)return c8(Q,$);return[]}function d8(){if(T0)return T0;return T0=(async()=>{if(!u1()?.startsWith("openai:"))return;try{let $=await d1();if($.length>0)g1($)}catch{}finally{T0=null}})(),T0}var p1=5000,m1,T0=null;var t1=R(()=>{r0();q0();T8();x0();t();I1();m1=new Map});function l1(Z,$,J){let Q=N()?.model?.trim();if(Q&&Q!==J){let X=`${Q}:${J}`;if($[X]!==void 0)return $[X];if(Z[X]!==void 0)return Z[X]}let Y=i1($,J);if(Y!==void 0)return Y;return i1(Z,J)}function i1(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,Y)=>Y.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function s1(Z){let $=l1(t8,l8,Z);if($!==void 0)return $;try{let{getDiscoveredContextWindow:J}=(t1(),n8(n1));return J(Z)}catch{return}}function a1(Z){return l1(i8,s8,Z)}var t8,i8,l8,s8;var r1=R(()=>{q0();t8={"github:copilot":128000,"github:copilot:claude-haiku-4.5":144000,"github:copilot:claude-sonnet-4.6":200000,"github:copilot:claude-opus-4.7":200000,"github:copilot:gpt-4.1":128000,"github:copilot:gpt-4o":128000,"github:copilot:gpt-5-mini":264000,"github:copilot:gpt-5.2-codex":400000,"github:copilot:gpt-5.4":400000,"github:copilot:gpt-5.5":400000,"github:copilot:gemini-3.1-pro-preview":200000,"github:copilot:grok-code-fast-1":256000,"github_copilot/claude-haiku-4.5":144000,"github_copilot/claude-sonnet-4.6":200000,"github_copilot/claude-opus-4.7":200000,"github_copilot/gpt-4.1":128000,"github_copilot/gpt-4o":128000,"github_copilot/gpt-5-mini":264000,"github_copilot/gpt-5.2-codex":400000,"github_copilot/gpt-5.4":400000,"github_copilot/gpt-5.5":400000,"github_copilot/gemini-3.1-pro-preview":200000,"github_copilot/grok-code-fast-1":256000,"gpt-5.5":1050000,"gpt-5.5-mini":400000,"gpt-5.5-nano":400000,"gpt-5.4":1050000,"gpt-5.4-mini":400000,"gpt-5.4-nano":400000,"gpt-4o":128000,"gpt-4o-mini":128000,"gpt-4.1":1047576,"gpt-4.1-mini":1047576,"gpt-4.1-nano":1047576,"gpt-4-turbo":128000,"gpt-4":8192,o1:200000,"o1-mini":128000,"o1-preview":128000,"o1-pro":200000,o3:200000,"o3-mini":200000,"o4-mini":200000,"deepseek-v4-flash":1048576,"deepseek-v4-pro":1048576,"deepseek-chat":128000,"deepseek-reasoner":128000,"llama-3.3-70b-versatile":128000,"llama-3.1-8b-instant":128000,"mixtral-8x7b-32768":32768,"mistral-large-latest":256000,"mistral-small-latest":256000,"devstral-latest":256000,"ministral-3b-latest":256000,"nvidia/llama-3.1-nemotron-70b-instruct":128000,"nvidia/llama-3.1-nemotron-ultra-253b-v1":128000,"nvidia/nemotron-mini-4b-instruct":32768,"meta/llama-3.1-405b-instruct":128000,"meta/llama-3.1-70b-instruct":128000,"meta/llama-3.1-8b-instruct":128000,"meta/llama-3.2-90b-instruct":128000,"meta/llama-3.2-1b-instruct":128000,"meta/llama-3.2-3b-instruct":128000,"meta/llama-3.3-70b-instruct":128000,"google/gemma-2-27b-it":8192,"google/gemma-2-9b-it":8192,"google/gemma-3-27b-it":131072,"google/gemma-3-12b-it":131072,"google/gemma-3-4b-it":131072,"deepseek-ai/deepseek-r1":128000,"deepseek-ai/deepseek-v3":128000,"deepseek-ai/deepseek-v3.2":128000,"qwen/qwen3-32b":128000,"qwen/qwen3-8b":128000,"qwen/qwen2.5-7b-instruct":32768,"mistralai/mistral-large-3-675b-instruct-2512":256000,"mistralai/mistral-large-2-instruct":256000,"mistralai/mistral-small-3.1-24b-instruct-2503":32768,"mistralai/mixtral-8x7b-instruct-v0.1":32768,"microsoft/phi-4-mini-instruct":16384,"microsoft/phi-3.5-mini-instruct":16384,"microsoft/phi-3-mini-128k-instruct":128000,"ibm/granite-3.3-8b-instruct":8192,"ibm/granite-8b-code-instruct":8192,"z-ai/glm5":200000,"z-ai/glm4.7":128000,"moonshotai/kimi-k2.5":200000,"moonshotai/kimi-k2-instruct":128000,"databricks/dbrx-instruct":131072,"ai21labs/jamba-1.5-large-instruct":256000,"ai21labs/jamba-1.5-mini-instruct":256000,"01-ai/yi-large":32768,"MiniMax-M2.7":204800,"MiniMax-M2.7-highspeed":204800,"MiniMax-M2.5":204800,"MiniMax-M2.5-highspeed":204800,"MiniMax-M2.1":204800,"MiniMax-M2.1-highspeed":204800,"minimax-m2.7":204800,"minimax-m2.7-highspeed":204800,"minimax-m2.5":204800,"minimax-m2.5-highspeed":204800,"minimax-m2.1":204800,"minimax-m2.1-highspeed":204800,"MiniMax-Text-01":524288,"MiniMax-Text-01-Preview":262144,"MiniMax-Vision-01":32768,"MiniMax-Vision-01-Fast":16384,"MiniMax-M2":204800,"google/gemini-2.0-flash":1048576,"google/gemini-2.5-pro":1048576,"gemini-2.0-flash":1048576,"gemini-2.5-pro":1048576,"gemini-2.5-flash":1048576,"gemini-3.1-pro":1048576,"gemini-3.1-flash-lite-preview":1048576,"llama3.3:70b":128000,"llama3.1:8b":128000,"llama3.2:3b":128000,"qwen2.5-coder:32b":32768,"qwen2.5-coder:7b":32768,"deepseek-coder-v2:16b":163840,"deepseek-r1:14b":65536,"mistral:7b":32768,"phi4:14b":16384,"gemma2:27b":8192,"codellama:13b":16384,"llama3.2:1b":128000,"qwen3:8b":128000,codestral:32768,"qwen3.6-plus":1e6,"qwen3.5-plus":1e6,"qwen3-coder-plus":1e6,"qwen3-coder-next":262144,"qwen3-max":262144,"qwen3-max-2026-01-23":262144,"kimi-k2.5":262144,"glm-5":202752,"glm-4.7":202752,"kimi-for-coding":262144,"kimi-k2.6":262144,"kimi-k2":131072,"kimi-k2-instruct":131072,"kimi-k2-thinking":262144,"moonshot-v1-8k":8192,"moonshot-v1-32k":32768,"moonshot-v1-128k":131072},i8={"github:copilot":16384,"github:copilot:claude-haiku-4.5":32768,"github:copilot:claude-sonnet-4.6":32000,"github:copilot:claude-opus-4.7":32000,"github:copilot:gpt-4.1":16384,"github:copilot:gpt-4o":16384,"github:copilot:gpt-5-mini":64000,"github:copilot:gpt-5.2-codex":128000,"github:copilot:gpt-5.4":128000,"github:copilot:gpt-5.5":128000,"github:copilot:gemini-3.1-pro-preview":64000,"github:copilot:grok-code-fast-1":64000,"github_copilot/claude-haiku-4.5":32768,"github_copilot/claude-sonnet-4.6":32000,"github_copilot/claude-opus-4.7":32000,"github_copilot/gpt-4.1":16384,"github_copilot/gpt-4o":16384,"github_copilot/gpt-5-mini":64000,"github_copilot/gpt-5.2-codex":128000,"github_copilot/gpt-5.4":128000,"github_copilot/gpt-5.5":128000,"github_copilot/gemini-3.1-pro-preview":64000,"github_copilot/grok-code-fast-1":64000,"gpt-5.5":128000,"gpt-5.5-mini":128000,"gpt-5.5-nano":128000,"gpt-5.4":128000,"gpt-5.4-mini":128000,"gpt-5.4-nano":128000,"gpt-4o":16384,"gpt-4o-mini":16384,"gpt-4.1":32768,"gpt-4.1-mini":32768,"gpt-4.1-nano":32768,"gpt-4-turbo":4096,"gpt-4":4096,o1:1e5,"o1-mini":65536,"o1-preview":32768,"o1-pro":1e5,o3:1e5,"o3-mini":1e5,"o4-mini":1e5,"deepseek-v4-flash":262144,"deepseek-v4-pro":262144,"deepseek-chat":8192,"deepseek-reasoner":65536,"llama-3.3-70b-versatile":32768,"llama-3.1-8b-instant":8192,"mixtral-8x7b-32768":32768,"mistral-large-latest":32768,"mistral-small-latest":32768,"MiniMax-M2.7":131072,"MiniMax-M2.7-highspeed":131072,"MiniMax-M2.5":131072,"MiniMax-M2.5-highspeed":131072,"MiniMax-M2.1":131072,"MiniMax-M2.1-highspeed":131072,"minimax-m2.7":131072,"minimax-m2.7-highspeed":131072,"minimax-m2.5":131072,"minimax-m2.5-highspeed":131072,"minimax-m2.1":131072,"minimax-m2.1-highspeed":131072,"MiniMax-M2":131072,"MiniMax-Text-01":65536,"MiniMax-Text-01-Preview":65536,"MiniMax-Vision-01":16384,"MiniMax-Vision-01-Fast":16384,"google/gemini-2.0-flash":8192,"google/gemini-2.5-pro":65536,"gemini-2.0-flash":8192,"gemini-2.5-pro":65536,"gemini-2.5-flash":65536,"gemini-3.1-pro":65536,"gemini-3.1-flash-lite-preview":65536,"llama3.3:70b":4096,"llama3.1:8b":4096,"llama3.2:3b":4096,"qwen2.5-coder:32b":8192,"qwen2.5-coder:7b":8192,"deepseek-coder-v2:16b":8192,"deepseek-r1:14b":8192,"mistral:7b":4096,"phi4:14b":4096,"gemma2:27b":4096,"codellama:13b":4096,"llama3.2:1b":4096,"qwen3:8b":8192,codestral:8192,"nvidia/llama-3.1-nemotron-70b-instruct":32768,"nvidia/nemotron-mini-4b-instruct":8192,"meta/llama-3.1-405b-instruct":32768,"meta/llama-3.1-70b-instruct":32768,"meta/llama-3.2-90b-instruct":32768,"meta/llama-3.3-70b-instruct":32768,"google/gemma-2-27b-it":4096,"google/gemma-3-27b-it":16384,"google/gemma-3-12b-it":16384,"deepseek-ai/deepseek-r1":32768,"deepseek-ai/deepseek-v3":32768,"deepseek-ai/deepseek-v3.2":32768,"qwen/qwen3-32b":32768,"qwen/qwen2.5-7b-instruct":8192,"mistralai/mistral-large-3-675b-instruct-2512":32768,"mistralai/mixtral-8x7b-instruct-v0.1":8192,"microsoft/phi-4-mini-instruct":4096,"microsoft/phi-3.5-mini-instruct":4096,"ibm/granite-3.3-8b-instruct":4096,"z-ai/glm5":32768,"moonshotai/kimi-k2.5":32768,"databricks/dbrx-instruct":32768,"ai21labs/jamba-1.5-large-instruct":32768,"01-ai/yi-large":8192,"qwen3.6-plus":65536,"qwen3.5-plus":65536,"qwen3-coder-plus":65536,"qwen3-coder-next":65536,"qwen3-max":32768,"qwen3-max-2026-01-23":32768,"kimi-k2.5":32768,"glm-5":16384,"glm-4.7":16384,"kimi-for-coding":32768,"kimi-k2.6":32768,"kimi-k2":32768,"kimi-k2-instruct":32768,"kimi-k2-thinking":32768,"moonshot-v1-8k":4096,"moonshot-v1-32k":16384,"moonshot-v1-128k":32768},l8=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),s8=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_MAX_OUTPUT_TOKENS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})()});function o1(){let Z=N()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function D0(){return F(process.env.CLAUDE_CODE_DISABLE_1M_CONTEXT)}function l(Z){if(D0())return!1;return/\[1m\]/i.test(Z)}function d2(Z){if(D0())return!1;let $=P(Z);return $.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")||$.includes("opus-4-8")}function QQ(Z,$){if(l(Z))return 1e6;if(o1()){let Q=s1(Z);if(Q!==void 0)return Q;return console.error(`[context] Warning: model "${Z}" not in context window table — using conservative 128k default. `+"Add it to src/utils/model/openaiContextWindows.ts for accurate compaction."),a8}let J=i2(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>l2&&D0())return l2;return J.max_input_tokens}if($?.includes(E0)&&d2(Z))return 1e6;if(e8(Z))return 1e6;return l2}function e8(Z){if(D0())return!1;if(l(Z))return!1;if(!P(Z).includes("sonnet-4-6"))return!1;return L().clientDataCache?.coral_reef_sonnet==="true"}function YQ(Z,$){if(!Z)return{used:null,remaining:null};let J=Z.input_tokens+Z.cache_creation_input_tokens+Z.cache_read_input_tokens,Q=Math.round(J/$*100),Y=Math.min(100,Math.max(0,Q));return{used:Y,remaining:100-Y}}function XQ(Z){let $,J;if(o1()){let X=a1(Z);if(X!==void 0)return{default:X,upperLimit:X}}let Q=P(Z);if(Q.includes("opus-4-7")||Q.includes("opus-4-6"))$=64000,J=128000;else if(Q.includes("sonnet-4-6"))$=32000,J=128000;else if(Q.includes("opus-4-5")||Q.includes("sonnet-4")||Q.includes("haiku-4"))$=32000,J=64000;else if(Q.includes("opus-4-1")||Q.includes("opus-4"))$=32000,J=32000;else if(Q.includes("claude-3-opus"))$=4096,J=4096;else if(Q.includes("claude-3-sonnet"))$=8192,J=8192;else if(Q.includes("claude-3-haiku"))$=4096,J=4096;else if(Q.includes("3-5-sonnet")||Q.includes("3-5-haiku"))$=8192,J=8192;else if(Q.includes("3-7-sonnet"))$=32000,J=64000;else $=r8,J=o8;let Y=i2(Z);if(Y?.max_tokens&&Y.max_tokens>=4096)J=Y.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var l2=200000,a8,ZQ=20000,r8=32000,o8=64000,$Q=8000,JQ=64000;var n2=R(()=>{A2();q0();Z0();u();R0();h1();r1();a8=(()=>{let Z=parseInt(process.env.CLAUDE_CODE_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var ZZ,e1;var Z4=R(()=>{m0();t();ZZ=[{modelEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES"}],e1=M((Z,$)=>{if(q()==="firstParty")return;let J=Z.toLowerCase();for(let Q of ZZ){let Y=process.env[Q.modelEnvVar],X=process.env[Q.capabilitiesEnvVar];if(!Y||X===void 0)continue;if(J!==Y.toLowerCase())continue;return X.toLowerCase().split(",").map((V)=>V.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function $Z(Z){let $=[],J=[];for(let Q of Z)if(X4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function OQ(Z){if(!Z||Z.length===0)return;if(O()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=$Z(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${X4.join(", ")}`);return $.length>0?$:void 0}function $4(Z){let $=e1(Z,"interleaved_thinking");if($!==void 0)return $;let J=P(Z),Q=q();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-sonnet-4")}function JZ(Z){let $=P(Z);return $.includes("claude-opus-4")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function QZ(Z){let $=P(Z),J=q();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function YZ(Z){let $=P(Z),J=q();if(J!=="firstParty"&&J!=="foundry")return!1;return $.includes("claude-sonnet-4-6")||$.includes("claude-sonnet-4-5")||$.includes("claude-opus-4-1")||$.includes("claude-opus-4-5")||$.includes("claude-opus-4-6")||$.includes("claude-opus-4-7")||$.includes("claude-opus-4-8")||$.includes("claude-haiku-4-5")}function bQ(Z){let $=P(Z);if(!$.startsWith("claude-"))return!1;if($.includes("claude-3-"))return!1;if(/claude-(opus|sonnet|haiku)-4(?!-[6-9])/.test($))return!1;return!0}function PQ(){let Z=q();if(Z==="vertex"||Z==="bedrock")return o5;return r5}function J4(){return(q()==="firstParty"||q()==="foundry")&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function _Q(){if(F(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return q()==="firstParty"&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function EQ(Z,$){let J=[...V4(Z)];if($?.isAgenticQuery){if(!J.includes($2))J.push($2)}let Q=Q4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((Y)=>!J.includes(Y))]}function q4(){s2.cache?.clear?.(),V4.cache?.clear?.(),XZ.cache?.clear?.()}var X4,s2,V4,XZ;var W4=R(()=>{m0();Y1();o();A2();_0();n();n2();u();R0();Z4();t();W0();X4=[E0];s2=M((Z)=>{let $=[],J=P(Z).includes("haiku"),Q=q(),Y=J4();if(!J)$.push($2);if(O())$.push(z0);if(l(Z))$.push(E0);if(!F(process.env.DISABLE_INTERLEAVED_THINKING)&&$4(Z))$.push(l5);if(Y&&$4(Z)&&!f()&&e().showThinkingSummaries!==!0)$.push(Z1);let X=QZ(Z);if(J4()&&X)$.push(s5);let V=Y4("tengu_tool_pear"),W=!V&&(F(process.env.CLAUDE_CODE_JSON_TOOL_USE)||S0("tengu_amber_json_tools",!1));if(Y&&YZ(Z)&&V)$.push(a5);if(Y&&W)$.push($1);if(Q==="vertex"&&JZ(Z))$.push(T2);if(Q==="foundry")$.push(T2);if(Y)$.push(e5);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((G)=>G.trim()).filter(Boolean));return $}),V4=M((Z)=>{let $=s2(Z);if(q()==="bedrock")return $.filter((J)=>!C2.has(J));return $}),XZ=M((Z)=>{return s2(Z).filter((J)=>C2.has(J))})});import{execFile as VZ}from"child_process";function z4(Z){return new Promise(($)=>{VZ("security",["find-generic-password","-a",z2(),"-w","-s",Z],{encoding:"utf-8",timeout:qZ},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function IQ(){if(process.platform!=="darwin"||W2||g())return;let Z=z4(i(G4)),$=z4(i());W2=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)x4(J.stdout);if(!Q.timedOut)a2={stdout:Q.stdout}})}async function yQ(){if(W2)await W2}function j4(){return a2}function r2(){a2=null}var qZ=1e4,a2=null,W2=null;var B4=R(()=>{u();I2()});function o2(Z,$,J){return new Promise((Q,Y)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q();return}let X=setTimeout((W,G,B)=>{W?.removeEventListener("abort",G),B()},Z,$,V,Q);function V(){if(clearTimeout(X),J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",V,{once:!0}),J?.unref)X.unref()})}var R4=()=>{};function AQ(){return H4}function w4(){H4.clear()}var H4;var F4=R(()=>{H4=new Map});var rZ={};f1(rZ,{validateForceLoginOrg:()=>aZ,saveOAuthTokensIfNeeded:()=>T4,saveApiKey:()=>B5,removeApiKey:()=>hZ,refreshGcpCredentialsIfNeeded:()=>j5,refreshGcpAuth:()=>I4,refreshAwsAuth:()=>v4,refreshAndGetAwsCredentials:()=>X0,prefetchGcpCredentialsIfSafe:()=>yZ,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>TZ,prefetchApiKeyFromApiKeyHelperIfSafe:()=>UZ,isUsing3PServices:()=>B2,isTeamSubscriber:()=>cZ,isTeamPremiumSubscriber:()=>q2,isProSubscriber:()=>t2,isOverageProvisioningAllowed:()=>pZ,isOtelHeadersHelperFromProjectOrLocalSettings:()=>f4,isMaxSubscriber:()=>V2,isGcpAuthRefreshFromProjectSettings:()=>x5,isEnterpriseSubscriber:()=>dZ,isCustomApiKeyApproved:()=>AZ,isConsumerSubscriber:()=>lZ,isClaudeAISubscriber:()=>O,isAwsCredentialExportFromProjectSettings:()=>z5,isAwsAuthRefreshFromProjectSettings:()=>q5,isAnthropicAuthEnabled:()=>O0,is1PApiCustomer:()=>uZ,hasProfileScope:()=>Q0,hasOpusAccess:()=>mZ,hasAnthropicApiKeyAuth:()=>LZ,handleOAuth401Error:()=>g2,getSubscriptionType:()=>S,getSubscriptionName:()=>A4,getRateLimitTier:()=>C4,getOtelHeadersFromHelper:()=>tZ,getOauthAccountInfo:()=>j2,getConfiguredApiKeyHelper:()=>s,getClaudeAIOAuthTokensAsync:()=>h0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>P0,getApiKeyHelperElapsedMs:()=>DZ,getApiKeyFromConfigOrMacOSKeychain:()=>H2,getApiKeyFromApiKeyHelperCached:()=>Z5,getApiKeyFromApiKeyHelper:()=>S4,getAnthropicApiKeyWithSource:()=>g0,getAnthropicApiKey:()=>$0,getAccountInformation:()=>sZ,clearOAuthTokenCache:()=>R5,clearGcpCredentialsCache:()=>IZ,clearAwsCredentialsCache:()=>EZ,clearApiKeyHelperCache:()=>NZ,checkGcpCredentialsValid:()=>M4,checkAndRefreshOAuthTokenIfNeeded:()=>u0,calculateApiKeyHelperTTL:()=>k4});import{exec as _4}from"child_process";import{mkdir as RZ,stat as HZ}from"fs/promises";import{join as wZ}from"path";function x2(){return F(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function O0(){if(g())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=B2(),J=(y()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,Y;try{({source:Y}=g0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{Y="none"}let X=Y==="ANTHROPIC_API_KEY"||Y==="apiKeyHelper";return!(Z||Q&&!x2()||X&&!x2())}function P0(){if(g()){if(s())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!x2())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(e0()){if(process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)return{source:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",hasToken:!0};return{source:"CCR_OAUTH_TOKEN_FILE",hasToken:!0}}if(s()&&!x2())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(U0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function $0(){let{key:Z}=g0();return Z}function LZ(){try{let{key:Z,source:$}=g0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function g0(Z={}){let $=(()=>{let V=N();if(V?.transport!=="anthropic")return;let W=V.apiKey?.trim();return W&&W.length>0?W:void 0})();if(g()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(s())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:Z5(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=N4()?void 0:$;if(J2()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(F(process.env.CI)){let V=M2();if(V)return{key:V,source:"ANTHROPIC_API_KEY"};if(!B2()&&!J&&!process.env.CLAUDE_CODE_OAUTH_TOKEN&&!process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)throw Error("Configure an Anthropic profile via /provider or set CLAUDE_CODE_OAUTH_TOKEN");if(J&&!B2())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&L().customApiKeyResponses?.approved?.includes(Z2(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=M2();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(s()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:Z5(),source:"apiKeyHelper"}}let X=H2();if(X)return X;return{key:null,source:"none"}}function s(){if(g())return _("flagSettings")?.apiKeyHelper;return(y()||{}).apiKeyHelper}function E4(){let Z=s();if(!Z)return!1;let $=_("projectSettings"),J=_("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function V5(){return(y()||{}).awsAuthRefresh}function q5(){let Z=V5();if(!Z)return!1;let $=_("projectSettings"),J=_("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function W5(){return(y()||{}).awsCredentialExport}function z5(){let Z=W5();if(!Z)return!1;let $=_("projectSettings"),J=_("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function k4(){let Z=process.env.CLAUDE_CODE_API_KEY_HELPER_TTL_MS;if(Z){let $=parseInt(Z,10);if(!Number.isNaN($)&&$>=0)return $;z(`Found CLAUDE_CODE_API_KEY_HELPER_TTL_MS env var, but it was not a valid number. Got ${Z}`,{level:"error"})}return FZ}function DZ(){let Z=c?.startedAt;return Z?Date.now()-Z:0}async function S4(Z){if(!s())return null;let $=k4();if(v){if(Date.now()-v.timestamp<$)return v.value;if(!c)c={promise:L4(Z,!1,N0),startedAt:null};return v.value}if(c)return c.promise;return c={promise:L4(Z,!0,N0),startedAt:Date.now()},c.promise}async function L4(Z,$,J){try{let Q=await KZ(Z);if(J!==N0)return Q;if(Q!==null)v={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==N0)return" ";let Y=Q instanceof Error?Q.message:String(Q);if(console.error(h.red(`apiKeyHelper failed: ${Y}`)),z(`Error getting API key from apiKeyHelper: ${Y}`,{level:"error"}),!$&&v&&v.value!==" ")return v={...v,timestamp:Date.now()},v.value;return v={value:" ",timestamp:Date.now()}," "}finally{if(J===N0)c=null}}async function KZ(Z){let $=s();if(!$)return null;if(E4()){if(!d()&&!Z){let X=Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return f0("apiKeyHelper invoked before trust check",X),x("tengu_apiKeyHelper_missing_trust11",{}),null}}let J=await j0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let Y=J.timedOut?"timed out":`exited ${J.exitCode}`,X=J.stderr?.trim();throw Error(X?`${Y}: ${X}`:Y)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function Z5(){return v?.value??null}function NZ(){N0++,v=null,c=null}function UZ(Z){if(E4()&&!d())return;S4(Z)}async function bZ(){let Z=V5();if(!Z)return!1;if(q5()){if(!d()&&!f()){let J=Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return f0("awsAuthRefresh invoked before trust check",J),x("tengu_awsAuthRefresh_missing_trust",{}),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await y2(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return v4(Z)}}function v4(Z){z("Running AWS auth refresh command");let $=T.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=_4(Z,{timeout:PZ});Q.stdout.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.addOutput(X),z(X,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.setError(X),z(X,{level:"error"})}),Q.on("close",(Y,X)=>{if(Y===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let W=X==="SIGTERM"?h.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(W),$.endAuthentication(!1),J(!1)}})})}async function _Z(){let Z=W5();if(!Z)return null;if(z5()){if(!d()&&!f()){let J=Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return f0("awsCredentialExport invoked before trust check",J),x("tengu_awsCredentialExport_missing_trust",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await y2(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await j0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=Q5($.stdout.trim());if(!c5(J))throw Error("awsCredentialExport did not return valid AWS STS output structure");return z("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:J.Credentials.AccessKeyId,secretAccessKey:J.Credentials.SecretAccessKey,sessionToken:J.Credentials.SessionToken}}catch($){let J=h.red("Error getting AWS credentials from awsCredentialExport (in settings or ~/.claudin/config.json):");if($ instanceof Error)console.error(J,$.message);else console.error(J,$);return null}}}function EZ(){X0.cache.clear()}function G5(){return(y()||{}).gcpAuthRefresh}function x5(){let Z=G5();if(!Z)return!1;let $=_("projectSettings"),J=_("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function M4(){try{let{GoogleAuth:Z}=await import("google-auth-library"),$=new Z({scopes:["https://www.googleapis.com/auth/cloud-platform"]}),J=(async()=>{await(await $.getClient()).getAccessToken()})(),Q=o2(kZ).then(()=>{throw new g4("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function vZ(){let Z=G5();if(!Z)return!1;if(x5()){if(!d()&&!f()){let J=Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return f0("gcpAuthRefresh invoked before trust check",J),x("tengu_gcpAuthRefresh_missing_trust",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await M4())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return I4(Z)}function I4(Z){z("Running GCP auth refresh command");let $=T.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=_4(Z,{timeout:MZ});Q.stdout.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.addOutput(X),z(X,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.setError(X),z(X,{level:"error"})}),Q.on("close",(Y,X)=>{if(Y===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let W=X==="SIGTERM"?h.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(W),$.endAuthentication(!1),J(!1)}})})}function IZ(){j5.cache.clear()}function yZ(){if(!G5())return;if(x5()){if(!d()&&!f())return}j5()}function TZ(){let Z=V5(),$=W5();if(!Z&&!$)return;if(q5()||z5()){if(!d()&&!f())return}X0(),j()}function CZ(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function B5(Z){if(!CZ(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await y4();let $=!1;if(process.platform==="darwin")try{let Q=i(),Y=z2(),X=Buffer.from(Z,"utf-8").toString("hex"),V=`add-generic-password -U -a "${Y}" -s "${Q}" -X "${X}"
2
- `;await j0("security",["-i"],{input:V,reject:!1}),x("tengu_api_key_saved_to_keychain",{}),$=!0}catch(Q){D(Q),x("tengu_api_key_keychain_error",{error:p(Q)}),x("tengu_api_key_saved_to_config",{})}else x("tengu_api_key_saved_to_config",{});let J=Z2(Z);C((Q)=>{let Y=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:Y.includes(J)?Y:[...Y,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),H2.cache.clear?.(),r2()}function AZ(Z){let $=L(),J=Z2(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function hZ(){await y4(),C((Z)=>({...Z,primaryApiKey:void 0})),H2.cache.clear?.(),r2()}async function y4(){try{await p5()}catch(Z){D(Z)}}function T4(Z){if(!U0(Z.scopes))return x("tengu_oauth_tokens_not_claude_ai",{}),{success:!0};if(!Z.refreshToken||!Z.expiresAt)return x("tengu_oauth_tokens_inference_only",{}),{success:!0};let $=R2(),J=$.name;try{let Q=$.read()||{},Y=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??Y?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??Y?.rateLimitTier??null};let X=$.update(Q);if(X.success)x("tengu_oauth_tokens_saved",{storageBackend:J});else x("tengu_oauth_tokens_save_failed",{storageBackend:J});return w.cache?.clear?.(),q4(),w4(),X}catch(Q){return D(Q),x("tengu_oauth_tokens_save_exception",{storageBackend:J,error:p(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function R5(){w.cache?.clear?.(),K0()}async function fZ(){try{let{mtimeMs:Z}=await HZ(wZ(J5(),".credentials.json"));if(Z!==D4)D4=Z,R5()}catch{w.cache?.clear?.()}}function g2(Z){let $=e2.get(Z);if($)return $;let J=gZ(Z).finally(()=>{e2.delete(Z)});return e2.set(Z,J),J}async function gZ(Z){R5();let $=await h0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return x("tengu_oauth_401_recovered_from_keychain",{}),!0;return u0(0,!0)}async function h0(){if(g())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||e0())return w();try{let J=(await R2().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return D(Z),null}}function u0(Z=0,$=!1){if(Z===0&&!$){if(C0)return C0;return C0=$5(Z,$).finally(()=>{C0=null}),C0}return $5(Z,$)}async function $5(Z,$){await fZ();let Q=w();if(!$){if(!Q?.refreshToken||!A0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!U0(Q.scopes))return!1;w.cache?.clear?.(),K0();let Y=await h0();if(!Y?.refreshToken||!A0(Y.expiresAt))return!1;let X=J5();await RZ(X,{recursive:!0});let V;try{x("tengu_oauth_token_refresh_lock_acquiring",{}),V=await O4(X),x("tengu_oauth_token_refresh_lock_acquired",{})}catch(W){if(W.code==="ELOCKED"){if(Z<5)return x("tengu_oauth_token_refresh_lock_retry",{retryCount:Z+1}),await o2(1000+Math.random()*1000),$5(Z+1,$);return x("tengu_oauth_token_refresh_lock_retry_limit_reached",{maxRetries:5}),!1}return D(W),x("tengu_oauth_token_refresh_lock_error",{error:p(W)}),!1}try{w.cache?.clear?.(),K0();let W=await h0();if(!W?.refreshToken||!A0(W.expiresAt))return x("tengu_oauth_token_refresh_race_resolved",{}),!1;x("tengu_oauth_token_refresh_starting",{});let G=await b4(W.refreshToken,{scopes:U0(W.scopes)?void 0:W.scopes});return T4(G),w.cache?.clear?.(),K0(),!0}catch(W){D(W),w.cache?.clear?.(),K0();let G=await h0();if(G&&!A0(G.expiresAt))return x("tengu_oauth_token_refresh_race_recovered",{}),!0;return!1}finally{x("tengu_oauth_token_refresh_lock_releasing",{}),await V(),x("tengu_oauth_token_refresh_lock_released",{})}}function O(){if(!O0())return!1;return U0(w()?.scopes)}function Q0(){return w()?.scopes?.includes(U4)??!1}function uZ(){{let Z=N()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(O())return!1;return!0}function j2(){return O0()?L().oauthAccount:void 0}function pZ(){let $=j2()?.billingType;if(!O()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function mZ(){let Z=S();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function S(){if(S5())return k5();if(!O0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function V2(){return S()==="max"}function cZ(){return S()==="team"}function q2(){return S()==="team"&&C4()==="default_claude_max_5x"}function dZ(){return S()==="enterprise"}function t2(){return S()==="pro"}function C4(){if(!O0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function A4(){switch(S()){case"enterprise":return"Claude Enterprise";case"team":return"Claude Team";case"max":return"Claude Max";case"pro":return"Claude Pro";default:return"Claude API"}}function B2(){let Z=N()?.transport;if(!Z)return!1;return Z!=="anthropic"}function h4(){return(y()||{}).otelHeadersHelper}function f4(){let Z=h4();if(!Z)return!1;let $=_("projectSettings"),J=_("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function tZ(){let Z=h4();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||nZ.toString());if(G2&&Date.now()-K4<$)return G2;if(f4()){if(!d())return{}}try{let J=Y5(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=Q5(J);if(typeof Q!=="object"||Q===null||Array.isArray(Q))throw Error("otelHeadersHelper must return a JSON object with string key-value pairs");for(let[Y,X]of Object.entries(Q))if(typeof X!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${Y}": ${typeof X}`);return G2=Q,K4=Date.now(),G2}catch(J){throw D(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${p(J)}`)),J}}function iZ(Z){return Z==="max"||Z==="pro"}function lZ(){let Z=S();return O()&&Z!==null&&iZ(Z)}function sZ(){if(q()!=="firstParty")return;let{source:$}=P0(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(O())J.subscription=A4();else J.tokenSource=$;let{key:Q,source:Y}=g0();if(Q)J.apiKeySource=Y;if($==="claude.ai"||Y==="/login managed key"){let V=j2()?.organizationName;if(V)J.organization=V}let X=j2()?.emailAddress;if(($==="claude.ai"||Y==="/login managed key")&&X)J.email=X;return J}async function aZ(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!O0())return{valid:!0};let Z=_("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await u0();let $=w();if(!$)return{valid:!0};let{source:J}=P0(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",Y=await G0($.accessToken);if(!Y)return{valid:!1,message:`Unable to verify organization for the current authentication token.
3
- This machine requires organization ${Z} but the profile could not be fetched.
4
- This may be a network error, or the token may lack the user:profile scope required for
5
- verification (tokens from 'claude setup-token' do not include this scope).
6
- Try again, or obtain a full-scope token via 'claude auth login'.`};let X=Y.organization.uuid;if(X===Z)return{valid:!0};if(Q)return{valid:!1,message:`The ${J==="CLAUDE_CODE_OAUTH_TOKEN"?"CLAUDE_CODE_OAUTH_TOKEN":"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR"} environment variable provides a token for a
7
- different organization than required by this machine's managed settings.
8
-
9
- Required organization: ${Z}
10
- Token organization: ${X}
11
-
12
- Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${X},
13
- but this machine requires organization ${Z}.
14
-
15
- Please log in with the correct organization: claude auth login`}}var FZ=300000,v=null,c=null,N0=0,OZ=3600000,PZ=180000,X0,kZ=5000,SZ=3600000,MZ=180000,j5,H2,w,D4=0,e2,C0=null,G2=null,K4=0,nZ=1740000,g4;var n=R(()=>{BZ();u5();m0();_0();Q2();a0();t();o();q0();v5();P4();S2();g5();m5();n5();i5();W4();Z0();x0();u();h5();zZ();xZ();c0();GZ();jZ();B4();I2();W0();R4();WZ();F4();X0=X5(async()=>{let Z=await bZ(),$=await _Z();if(Z||$)await d5();return $},OZ);j5=X5(async()=>{return await vZ()},SZ);H2=M(()=>{if(g())return null;if(process.platform==="darwin"){let $=j4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=i();try{let Q=Y5(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){D(Q)}}}let Z=L();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=M(()=>{if(g())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{accessToken:process.env.CLAUDE_CODE_OAUTH_TOKEN,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};let Z=e0();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=R2().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return D($),null}});e2=new Map;g4=class g4 extends Error{}});function U0(Z){return Boolean(Z?.includes(H5))}function oZ(Z){return Z?.split(" ").filter(Boolean)??[]}function _7({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:Y,inferenceOnly:X,orgUUID:V,loginHint:W,loginMethod:G}){let B=Y?U().CLAUDE_AI_AUTHORIZE_URL:U().CONSOLE_AUTHORIZE_URL,H=new URL(B);H.searchParams.append("code","true"),H.searchParams.append("client_id",U().CLIENT_ID),H.searchParams.append("response_type","code"),H.searchParams.append("redirect_uri",Q?U().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let Y0=X?[H5]:m4;if(H.searchParams.append("scope",Y0.join(" ")),H.searchParams.append("code_challenge",Z),H.searchParams.append("code_challenge_method","S256"),H.searchParams.append("state",$),V)H.searchParams.append("orgUUID",V);if(W)H.searchParams.append("login_hint",W);if(G)H.searchParams.append("login_method",G);return H.toString()}async function E7(Z,$,J,Q,Y=!1,X){let V={grant_type:"authorization_code",code:Z,redirect_uri:Y?U().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:U().CLIENT_ID,code_verifier:J,state:$};if(X!==void 0)V.expires_in=X;let W=await b.post(U().TOKEN_URL,V,{headers:{"Content-Type":"application/json"},timeout:15000});if(W.status!==200)throw Error(W.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${W.status}): ${W.statusText}`);return x("tengu_oauth_token_exchange_success",{}),W.data}async function b4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:U().CLIENT_ID,scope:(($?.length)?$:p4).join(" ")};try{let Q=await b.post(U().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let Y=Q.data,{access_token:X,refresh_token:V=Z,expires_in:W}=Y,G=Date.now()+W*1000,B=oZ(Y.scope);x("tengu_oauth_token_refresh_success",{});let H=L(),Y0=w(),E=H.oauthAccount?.billingType!==void 0&&H.oauthAccount?.accountCreatedAt!==void 0&&H.oauthAccount?.subscriptionCreatedAt!==void 0&&Y0?.subscriptionType!=null&&Y0?.rateLimitTier!=null?null:await eZ(X);if(E&&H.oauthAccount){let a={};if(E.displayName!==void 0)a.displayName=E.displayName;if(typeof E.hasExtraUsageEnabled==="boolean")a.hasExtraUsageEnabled=E.hasExtraUsageEnabled;if(E.billingType!==null)a.billingType=E.billingType;if(E.accountCreatedAt!==void 0)a.accountCreatedAt=E.accountCreatedAt;if(E.subscriptionCreatedAt!==void 0)a.subscriptionCreatedAt=E.subscriptionCreatedAt;if(Object.keys(a).length>0)C((p0)=>({...p0,oauthAccount:p0.oauthAccount?{...p0.oauthAccount,...a}:p0.oauthAccount}))}return{accessToken:X,refreshToken:V,expiresAt:G,scopes:B,subscriptionType:E?.subscriptionType??Y0?.subscriptionType??null,rateLimitTier:E?.rateLimitTier??Y0?.rateLimitTier??null,profile:E?.rawProfile,tokenAccount:Y.account?{uuid:Y.account.uuid,emailAddress:Y.account.email_address,organizationUuid:Y.organization?.uuid}:void 0}}catch(Q){let Y=b.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw x("tengu_oauth_token_refresh_failure",{error:Q.message,...Y&&{responseBody:Y}}),Q}}async function k7(Z){let $=await b.get(U().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!L().oauthAccount)throw Error("OAuth account information not found in config");C((Y)=>({...Y,oauthAccount:Y.oauthAccount?{...Y.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:Y.oauthAccount})),x("tengu_oauth_roles_stored",{org_role:J.organization_role})}async function S7(Z){try{let $=await b.post(U().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await B5(J),x("tengu_oauth_api_key",{status:"success",statusCode:$.status}),J;return null}catch($){throw x("tengu_oauth_api_key",{status:"failure",error:$ instanceof Error?$.message:String($)}),$}}function A0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function eZ(Z){let $=await G0(Z),J=$?.organization?.organization_type,Q=null;switch(J){case"claude_max":Q="max";break;case"claude_pro":Q="pro";break;case"claude_enterprise":Q="enterprise";break;case"claude_team":Q="team";break;default:Q=null;break}let Y={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)Y.displayName=$.account.display_name;if($?.account?.created_at)Y.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)Y.subscriptionCreatedAt=$.organization.subscription_created_at;return x("tengu_oauth_profile_fetch_success",{}),{...Y,rawProfile:$}}async function v7(){let $=L().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!Q0())return null;let Y=(await G0(J))?.organization?.uuid;if(!Y)return null;return Y}async function M7(){let Z=process.env.CLAUDE_CODE_ACCOUNT_UUID,$=process.env.CLAUDE_CODE_USER_EMAIL,J=process.env.CLAUDE_CODE_ORGANIZATION_UUID,Q=Boolean(Z&&$&&J);if(Z&&$&&J){if(!L().oauthAccount)u4({accountUuid:Z,emailAddress:$,organizationUuid:J})}await u0();let Y=L();if(Y.oauthAccount&&Y.oauthAccount.billingType!==void 0&&Y.oauthAccount.accountCreatedAt!==void 0&&Y.oauthAccount.subscriptionCreatedAt!==void 0||!O()||!Q0())return!1;let X=w();if(X?.accessToken){let V=await G0(X.accessToken);if(V){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return u4({accountUuid:V.account.uuid,emailAddress:V.account.email,organizationUuid:V.organization.uuid,displayName:V.account.display_name||void 0,hasExtraUsageEnabled:V.organization.has_extra_usage_enabled??!1,billingType:V.organization.billing_type??void 0,accountCreatedAt:V.account.created_at,subscriptionCreatedAt:V.organization.subscription_created_at??void 0}),!0}}return!1}function u4({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:V,subscriptionCreatedAt:W}){let G={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:V,subscriptionCreatedAt:W};if(Q)G.displayName=Q;C((B)=>{if(B.oauthAccount?.accountUuid===G.accountUuid&&B.oauthAccount?.emailAddress===G.emailAddress&&B.oauthAccount?.organizationUuid===G.organizationUuid&&B.oauthAccount?.displayName===G.displayName&&B.oauthAccount?.hasExtraUsageEnabled===G.hasExtraUsageEnabled&&B.oauthAccount?.billingType===G.billingType&&B.oauthAccount?.accountCreatedAt===G.accountCreatedAt&&B.oauthAccount?.subscriptionCreatedAt===G.subscriptionCreatedAt)return B;return{...B,oauthAccount:G}})}var P4=R(()=>{r0();Q2();_0();n();Z0();x0();S2()});
16
- export{w5 as wZ,F5 as xZ,q$ as yZ,W$ as zZ,d4 as AZ,i4 as BZ,z$ as CZ,N5 as DZ,d0 as EZ,n0 as FZ,V0 as GZ,k2 as HZ,q as IZ,R$ as JZ,H$ as KZ,w$ as LZ,F$ as MZ,t as NZ,j as OZ,_$ as PZ,a0 as QZ,M$ as RZ,I$ as SZ,E5 as TZ,A$ as UZ,h$ as VZ,v5 as WZ,d$ as XZ,G0 as YZ,S2 as ZZ,U0 as _Z,oZ as $Z,_7 as a0,E7 as b0,b4 as c0,k7 as d0,S7 as e0,A0 as f0,eZ as g0,v7 as h0,M7 as i0,u4 as j0,P4 as k0,o$ as l0,$8 as m0,M5 as n0,g5 as o0,Z2 as p0,m5 as q0,YJ as r0,n5 as s0,T as t0,i5 as u0,E0 as v0,s5 as w0,a5 as x0,WJ as y0,zJ as z0,e5 as A0,GJ as B0,xJ as C0,Z1 as D0,jJ as E0,BJ as F0,RJ as G0,A2 as H0,A as I0,q1 as J0,X8 as K0,MJ as L0,IJ as M0,yJ as N0,W1 as O0,TJ as P0,CJ as Q0,V8 as R0,AJ as S0,hJ as T0,fJ as U0,gJ as V0,uJ as W0,z8 as X0,pJ as Y0,mJ as Z0,cJ as _0,dJ as $0,j1 as a1,I0 as b1,B8 as c1,R8 as d1,u2 as e1,N8 as f1,rJ as g1,F1 as h1,L1 as i1,U8 as j1,p2 as k1,N1 as l1,U1 as m1,X3 as n1,b1 as o1,b3 as p1,P3 as q1,c2 as r1,_3 as s1,S8 as t1,F0 as u1,y0 as v1,y1 as w1,E3 as x1,v0 as y1,T1 as z1,K as A1,P as B1,v8 as C1,k3 as D1,P1 as E1,M0 as F1,S3 as G1,C1 as H1,A1 as I1,v3 as J1,I as K1,M3 as L1,y8 as M1,I3 as N1,y3 as O1,T3 as P1,C3 as Q1,R0 as R1,h3 as S1,h1 as T1,d1 as U1,d8 as V1,t1 as W1,ZQ as X1,$Q as Y1,JQ as Z1,D0 as _1,l as $1,QQ as a2,e8 as b2,YQ as c2,XQ as d2,n2 as e2,e1 as f2,Z4 as g2,OQ as h2,YZ as i2,bQ as j2,PQ as k2,J4 as l2,_Q as m2,V4 as n2,XZ as o2,EQ as p2,q4 as q2,W4 as r2,IQ as s2,yQ as t2,B4 as u2,o2 as v2,R4 as w2,AQ as x2,w4 as y2,F4 as z2,O0 as A2,P0 as B2,$0 as C2,LZ as D2,g0 as E2,s as F2,q5 as G2,z5 as H2,k4 as I2,DZ as J2,S4 as K2,Z5 as L2,NZ as M2,UZ as N2,v4 as O2,X0 as P2,EZ as Q2,x5 as R2,M4 as S2,I4 as T2,j5 as U2,IZ as V2,yZ as W2,TZ as X2,H2 as Y2,B5 as Z2,AZ as _2,hZ as $2,T4 as a3,w as b3,R5 as c3,g2 as d3,h0 as e3,u0 as f3,O as g3,Q0 as h3,uZ as i3,j2 as j3,pZ as k3,mZ as l3,S as m3,V2 as n3,cZ as o3,q2 as p3,dZ as q3,t2 as r3,C4 as s3,A4 as t3,B2 as u3,f4 as v3,tZ as w3,lZ as x3,sZ as y3,aZ as z3,rZ as A3,n as B3};
@@ -1,2 +0,0 @@
1
- import{Zma as e}from"./cli-0.5.7-258ytmbr.mjs";function o(){return!0}var t=()=>{};
2
- export{o as MR,t as NR};
@@ -1,2 +0,0 @@
1
- import{aS as YJ,eS as DJ,iS as vJ,jS as c,kS as SJ,sS as ZJ}from"./cli-0.5.7-vyxaeh82.mjs";import{FY as CJ,MY as TJ}from"./cli-0.5.7-9acdh8nc.mjs";import{B6 as p,J6 as jJ,M7 as NJ,S6 as OJ,T6 as FJ,aaa as S,caa as wJ,o7 as xJ,t8 as yJ}from"./cli-0.5.7-469r2a5r.mjs";import{Gca as R,Ica as VJ,Jca as w,Kca as XJ}from"./cli-0.5.7-mzfr99sc.mjs";import{Pfa as G,Sfa as QJ,sfa as v,tfa as y,xfa as JJ}from"./cli-0.5.7-twqt7rxq.mjs";import{$fa as s,aga as I,cga as t,mga as a}from"./cli-0.5.7-tqn2ged5.mjs";import{Gga as W,Hga as C,Nga as e}from"./cli-0.5.7-skfm51ta.mjs";import{eka as i,ima as m,nia as r,oia as MJ,ria as d,xla as L}from"./cli-0.5.7-hp25yk8y.mjs";import{Zma as T,_ma as BJ}from"./cli-0.5.7-258ytmbr.mjs";import{mkdir as PJ,readdir as l,readFile as $J,unlink as qJ,writeFile as b}from"fs/promises";import{join as D}from"path";function HQ(J){if(M===J)return;M=J,U()}function UQ(){if(M===void 0)return;M=void 0,U()}function U(){try{GJ.emit()}catch{}}function KJ(J){return D(E(J),cJ)}async function g(J){let Q=KJ(J);try{let V=(await $J(Q,"utf-8")).trim(),X=parseInt(V,10);return isNaN(X)?0:X}catch{return 0}}async function RJ(J,Q){let V=KJ(J);await b(V,String(Q))}function OQ(){if(t(process.env.CLAUDE_CODE_ENABLE_TASKS))return!0;return!i()}async function xQ(J){let Q=E(J),V=await o(J),X;try{X=await S(V,P);let Z=await WJ(J);if(Z>0){let $=await g(J);if(Z>$)await RJ(J,Z)}let Y;try{Y=await l(Q)}catch{Y=[]}for(let $ of Y)if($.endsWith(".json")&&!$.startsWith(".")){let q=D(Q,$);try{await qJ(q)}catch{}}U()}finally{if(X)await X()}}function CQ(){if(process.env.CLAUDE_CODE_TASK_LIST_ID)return process.env.CLAUDE_CODE_TASK_LIST_ID;let J=YJ();if(J)return J.teamName;return c()||M||d()}function _J(J){return J.replace(/[^a-zA-Z0-9_-]/g,"-")}function E(J){return D(s(),"tasks",_J(J))}function A(J,Q){return D(E(J),`${_J(Q)}.json`)}async function bJ(J){let Q=E(J);try{await PJ(Q,{recursive:!0})}catch{}}async function WJ(J){let Q=E(J),V;try{V=await l(Q)}catch{return 0}let X=0;for(let Z of V){if(!Z.endsWith(".json"))continue;let Y=parseInt(Z.replace(".json",""),10);if(!isNaN(Y)&&Y>X)X=Y}return X}async function hJ(J){let[Q,V]=await Promise.all([WJ(J),g(J)]);return Math.max(Q,V)}async function vQ(J,Q){let V=await o(J),X;try{X=await S(V,P);let Z=await hJ(J),Y=String(Z+1),$={id:Y,...Q},q=A(J,Y);return await b(q,v($,null,2)),U(),Y}finally{if(X)await X()}}async function O(J,Q){let V=A(J,Q);try{let X=await $J(V,"utf-8"),Z=y(X),Y=pJ().safeParse(Z);if(!Y.success)return G(`[Tasks] Task ${Q} failed schema validation: ${Y.error.message}`),null;return Y.data}catch(X){if(C(X)==="ENOENT")return null;return G(`[Tasks] Failed to read task ${Q}: ${W(X)}`),p(X),null}}async function EJ(J,Q,V){let X=await O(J,Q);if(!X)return null;let Z={...X,...V,id:Q},Y=A(J,Q);return await b(Y,v(Z,null,2)),U(),Z}async function j(J,Q,V){let X=A(J,Q);if(!await O(J,Q))return null;let Y;try{return Y=await S(X,P),await EJ(J,Q,V)}finally{await Y?.()}}async function SQ(J,Q){let V=A(J,Q);try{let X=parseInt(Q,10);if(!isNaN(X)){let Y=await g(J);if(X>Y)await RJ(J,X)}try{await qJ(V)}catch(Y){if(C(Y)==="ENOENT")return!1;throw Y}let Z=await h(J);for(let Y of Z){let $=Y.blocks.filter((K)=>K!==Q),q=Y.blockedBy.filter((K)=>K!==Q);if($.length!==Y.blocks.length||q.length!==Y.blockedBy.length)await j(J,Y.id,{blocks:$,blockedBy:q})}return U(),!0}catch{return!1}}async function h(J){let Q=E(J),V;try{V=await l(Q)}catch{return[]}let X=V.filter((Y)=>Y.endsWith(".json")).map((Y)=>Y.replace(".json",""));return(await Promise.all(X.map((Y)=>O(J,Y)))).filter((Y)=>Y!==null)}async function AQ(J,Q,V){let[X,Z]=await Promise.all([O(J,Q),O(J,V)]);if(!X||!Z)return!1;if(!X.blocks.includes(V))await j(J,Q,{blocks:[...X.blocks,V]});if(!Z.blockedBy.includes(Q))await j(J,V,{blockedBy:[...Z.blockedBy,Q]});return!0}function LJ(J){return D(E(J),".lock")}async function o(J){await bJ(J);let Q=LJ(J);try{await b(Q,"",{flag:"wx"})}catch{}return Q}async function zQ(J,Q,V,X={}){let Z=A(J,Q);if(!await O(J,Q))return{success:!1,reason:"task_not_found"};if(X.checkAgentBusy)return uJ(J,Q,V);let $;try{$=await S(Z,P);let q=await O(J,Q);if(!q)return{success:!1,reason:"task_not_found"};if(q.owner&&q.owner!==V)return{success:!1,reason:"already_claimed",task:q};if(q.status==="completed")return{success:!1,reason:"already_resolved",task:q};let K=await h(J),B=new Set(K.filter((z)=>z.status!=="completed").map((z)=>z.id)),N=q.blockedBy.filter((z)=>B.has(z));if(N.length>0)return{success:!1,reason:"blocked",task:q,blockedByTasks:N};return{success:!0,task:await EJ(J,Q,{owner:V})}}catch(q){return G(`[Tasks] Failed to claim task ${Q}: ${W(q)}`),p(q),{success:!1,reason:"task_not_found"}}finally{if($)await $()}}async function uJ(J,Q,V){let X=await o(J),Z;try{Z=await S(X,P);let Y=await h(J),$=Y.find((_)=>_.id===Q);if(!$)return{success:!1,reason:"task_not_found"};if($.owner&&$.owner!==V)return{success:!1,reason:"already_claimed",task:$};if($.status==="completed")return{success:!1,reason:"already_resolved",task:$};let q=new Set(Y.filter((_)=>_.status!=="completed").map((_)=>_.id)),K=$.blockedBy.filter((_)=>q.has(_));if(K.length>0)return{success:!1,reason:"blocked",task:$,blockedByTasks:K};let B=Y.filter((_)=>_.status!=="completed"&&_.owner===V&&_.id!==Q);if(B.length>0)return{success:!1,reason:"agent_busy",task:$,busyWithTasks:B.map((_)=>_.id)};return{success:!0,task:await j(J,Q,{owner:V})}}catch(Y){return G(`[Tasks] Failed to claim task ${Q} with busy check: ${W(Y)}`),p(Y),{success:!1,reason:"task_not_found"}}finally{if(Z)await Z()}}async function MQ(J,Q,V,X){let Y=(await h(J)).filter((K)=>K.status!=="completed"&&(K.owner===Q||K.owner===V));for(let K of Y)await j(J,K.id,{owner:void 0,status:"pending"});if(Y.length>0)G(`[Tasks] Unassigned ${Y.length} task(s) from ${V}`);let q=`${V} ${X==="terminated"?"was terminated":"has shut down"}.`;if(Y.length>0){let K=Y.map((B)=>`#${B.id} "${B.subject}"`).join(", ");q+=` ${Y.length} task(s) were unassigned: ${K}. Use TaskList to check availability and TaskUpdate with owner to reassign them to idle teammates.`}return{unassignedTasks:Y.map((K)=>({id:K.id,subject:K.subject})),notificationMessage:q}}var GJ,M,BQ,fJ,pJ,cJ=".highwatermark",P;var HJ=T(()=>{VJ();m();yJ();QJ();a();e();XJ();wJ();jJ();MJ();JJ();ZJ();DJ();GJ=r();BQ=GJ.subscribe;fJ=w(()=>R.enum(["pending","in_progress","completed"])),pJ=w(()=>R.object({id:R.string(),subject:R.string(),description:R.string(),activeForm:R.string().optional(),owner:R.string().optional(),status:fJ(),blocks:R.array(R.string()),blockedBy:R.array(R.string()),metadata:R.record(R.string(),R.unknown()).optional()})),P={retries:{retries:30,minTimeout:5,maxTimeout:100}}});function n(J){return J==="tmux"||J==="iterm2"}var UJ=()=>{};import{mkdirSync as IJ,readFileSync as lJ,writeFileSync as gJ}from"fs";import{mkdir as oJ,readFile as AJ,rm as k,writeFile as nJ}from"fs/promises";import{join as f}from"path";function zJ(J){return J.replace(/[^a-zA-Z0-9]/g,"-").toLowerCase()}function nQ(J){return J.replace(/@/g,"-")}function u(J){return f(I(),zJ(J))}function F(J){return f(u(J),"config.json")}function H(J){try{let Q=lJ(F(J),"utf-8");return y(Q)}catch(Q){if(C(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${W(Q)}`),null}}async function kJ(J){try{let Q=await AJ(F(J),"utf-8");return y(Q)}catch(Q){if(C(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${W(Q)}`),null}}function x(J,Q){let V=u(J);IJ(V,{recursive:!0}),gJ(F(J),v(Q,null,2))}async function rJ(J,Q){let V=u(J);await oJ(V,{recursive:!0}),await nJ(F(J),v(Q,null,2))}function kQ(J,Q){let V=Q.agentId||Q.name;if(!V)return G("[TeammateTool] removeTeammateFromTeamFile called with no identifier"),!1;let X=H(J);if(!X)return G(`[TeammateTool] Cannot remove teammate ${V}: failed to read team file for "${J}"`),!1;let Z=X.members.length;if(X.members=X.members.filter((Y)=>{if(Q.agentId&&Y.agentId===Q.agentId)return!1;if(Q.name&&Y.name===Q.name)return!1;return!0}),X.members.length===Z)return G(`[TeammateTool] Teammate ${V} not found in team file for "${J}"`),!1;return x(J,X),G(`[TeammateTool] Removed teammate from team file: ${V}`),!0}function rQ(J,Q){let V=H(J);if(!V)return!1;let X=V.hiddenPaneIds??[];if(!X.includes(Q))X.push(Q),V.hiddenPaneIds=X,x(J,V),G(`[TeammateTool] Added ${Q} to hidden panes for team ${J}`);return!0}function dQ(J,Q){let V=H(J);if(!V)return!1;let X=V.hiddenPaneIds??[],Z=X.indexOf(Q);if(Z!==-1)X.splice(Z,1),V.hiddenPaneIds=X,x(J,V),G(`[TeammateTool] Removed ${Q} from hidden panes for team ${J}`);return!0}function iQ(J,Q){let V=H(J);if(!V)return!1;let X=V.members.findIndex((Z)=>Z.tmuxPaneId===Q);if(X===-1)return!1;if(V.members.splice(X,1),V.hiddenPaneIds){let Z=V.hiddenPaneIds.indexOf(Q);if(Z!==-1)V.hiddenPaneIds.splice(Z,1)}return x(J,V),G(`[TeammateTool] Removed member with pane ${Q} from team ${J}`),!0}function mQ(J,Q){let V=H(J);if(!V)return!1;let X=V.members.findIndex((Z)=>Z.agentId===Q);if(X===-1)return!1;return V.members.splice(X,1),x(J,V),G(`[TeammateTool] Removed member ${Q} from team ${J}`),!0}function dJ(J,Q,V){let X=H(J);if(!X)return!1;let Z=X.members.find(($)=>$.name===Q);if(!Z)return G(`[TeammateTool] Cannot set member mode: member ${Q} not found in team ${J}`),!1;if(Z.mode===V)return!0;let Y=X.members.map(($)=>$.name===Q?{...$,mode:V}:$);return x(J,{...X,members:Y}),G(`[TeammateTool] Set member ${Q} in team ${J} to mode: ${V}`),!0}function sQ(J,Q){if(!SJ())return;let V=Q??c(),X=vJ();if(V&&X)dJ(V,X,J)}function tQ(J,Q){let V=H(J);if(!V)return!1;let X=new Map(Q.map(($)=>[$.memberName,$.mode])),Z=!1,Y=V.members.map(($)=>{let q=X.get($.name);if(q!==void 0&&$.mode!==q)return Z=!0,{...$,mode:q};return $});if(Z)x(J,{...V,members:Y}),G(`[TeammateTool] Set ${Q.length} member modes in team ${J}`);return!0}async function aQ(J,Q,V){let X=await kJ(J);if(!X){G(`[TeammateTool] Cannot set member active: team ${J} not found`);return}let Z=X.members.find((Y)=>Y.name===Q);if(!Z){G(`[TeammateTool] Cannot set member active: member ${Q} not found in team ${J}`);return}if(Z.isActive===V)return;Z.isActive=V,await rJ(J,X),G(`[TeammateTool] Set member ${Q} in team ${J} to ${V?"active":"idle"}`)}async function iJ(J){let Q=f(J,".git"),V=null;try{let Z=(await AJ(Q,"utf-8")).trim().match(/^gitdir:\s*(.+)$/);if(Z&&Z[1]){let Y=Z[1],$=f(Y,"..","..");V=f($,"..")}}catch{}if(V){let X=await OJ(xJ(),["worktree","remove","--force",J],{cwd:V});if(X.code===0){G(`[TeammateTool] Removed worktree via git: ${J}`);return}if(X.stderr?.includes("not a working tree")){G(`[TeammateTool] Worktree already removed: ${J}`);return}G(`[TeammateTool] git worktree remove failed, falling back to rm: ${X.stderr}`)}try{await k(J,{recursive:!0,force:!0}),G(`[TeammateTool] Removed worktree directory manually: ${J}`)}catch(X){G(`[TeammateTool] Failed to remove worktree ${J}: ${W(X)}`)}}function eQ(J){L().add(J)}function JV(J){L().delete(J)}async function QV(){let J=L();if(J.size===0)return;let Q=Array.from(J);G(`cleanupSessionTeams: removing ${Q.length} orphan team dir(s): ${Q.join(", ")}`),await Promise.allSettled(Q.map((V)=>mJ(V))),await Promise.allSettled(Q.map((V)=>sJ(V))),J.clear()}async function mJ(J){let Q=H(J);if(!Q)return;let V=Q.members.filter((q)=>q.name!==CJ&&q.tmuxPaneId&&q.backendType&&n(q.backendType));if(V.length===0)return;let[{ensureBackendsRegistered:X,getBackendByType:Z},{isInsideTmux:Y}]=await Promise.all([import("./registry-0.5.7-h8q8eay6.mjs"),import("./detection-0.5.7-39zsjy8t.mjs")]);await X();let $=!await Y();await Promise.allSettled(V.map(async(q)=>{if(!q.tmuxPaneId||!q.backendType||!n(q.backendType))return;let K=await Z(q.backendType).killPane(q.tmuxPaneId,$);G(`cleanupSessionTeams: killPane ${q.name} (${q.backendType} ${q.tmuxPaneId}) → ${K}`)}))}async function sJ(J){let Q=zJ(J),V=H(J),X=[];if(V){for(let $ of V.members)if($.worktreePath)X.push($.worktreePath)}for(let $ of X)await iJ($);let Z=u(J);try{await k(Z,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up team directory: ${Z}`)}catch($){G(`[TeammateTool] Failed to clean up team directory ${Z}: ${W($)}`)}let Y=E(Q);try{await k(Y,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up tasks directory: ${Y}`),U()}catch($){G(`[TeammateTool] Failed to clean up tasks directory ${Y}: ${W($)}`)}}var oQ;var tJ=T(()=>{VJ();m();QJ();a();e();FJ();NJ();XJ();JJ();HJ();ZJ();UJ();TJ();oQ=w(()=>R.strictObject({operation:R.enum(["spawnTeam","cleanup"]).describe("Operation: spawnTeam to create a team, cleanup to remove team and task directories."),agent_type:R.string().optional().describe('Type/role of the team lead (e.g., "researcher", "test-runner"). Used for team file and inter-agent coordination.'),team_name:R.string().optional().describe("Name for the new team to create (required for spawnTeam)."),description:R.string().optional().describe("Team description/purpose (only used with spawnTeam).")}))});
2
- export{HQ as JQ,UQ as KQ,BQ as LQ,fJ as MQ,OQ as NQ,xQ as OQ,CQ as PQ,_J as QQ,E as RQ,bJ as SQ,vQ as TQ,O as UQ,j as VQ,SQ as WQ,h as XQ,AQ as YQ,zQ as ZQ,MQ as _Q,HJ as $Q,n as aR,UJ as bR,oQ as cR,zJ as dR,nQ as eR,u as fR,F as gR,H as hR,kJ as iR,rJ as jR,kQ as kR,rQ as lR,dQ as mR,iQ as nR,mQ as oR,dJ as pR,sQ as qR,tQ as rR,aQ as sR,eQ as tR,JV as uR,QV as vR,sJ as wR,tJ as xR};
@@ -1,2 +0,0 @@
1
- import{Zma as j}from"./cli-0.5.7-258ytmbr.mjs";function C(){return`claude-swarm-${process.pid}`}var x="team-lead",y="claude-swarm",z="swarm-view",A="tmux",B="claude-hidden",D="CLAUDE_CODE_TEAMMATE_COMMAND";var k=()=>{};
2
- export{x as FY,y as GY,z as HY,A as IY,B as JY,C as KY,D as LY,k as MY};
@@ -1,15 +0,0 @@
1
- import{Xma as T,Zma as J5,_ma as M}from"./cli-0.5.7-258ytmbr.mjs";var T0=T((G5,K1)=>{K1.exports=function(){return typeof Promise==="function"&&Promise.prototype&&Promise.prototype.then}});var y=T((O2)=>{var X0,E2=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];O2.getSymbolSize=function(q){if(!q)throw Error('"version" cannot be null or undefined');if(q<1||q>40)throw Error('"version" should be in range from 1 to 40');return q*4+17};O2.getSymbolTotalCodewords=function(q){return E2[q]};O2.getBCHDigit=function($){let q=0;while($!==0)q++,$>>>=1;return q};O2.setToSJISFunction=function(q){if(typeof q!=="function")throw Error('"toSJISFunc" is not a valid function.');X0=q};O2.isKanjiModeEnabled=function(){return typeof X0<"u"};O2.toSJIS=function(q){return X0(q)}});var J0=T((M2)=>{M2.L={bit:1};M2.M={bit:0};M2.Q={bit:3};M2.H={bit:2};function W2($){if(typeof $!=="string")throw Error("Param is not a string");switch($.toLowerCase()){case"l":case"low":return M2.L;case"m":case"medium":return M2.M;case"q":case"quartile":return M2.Q;case"h":case"high":return M2.H;default:throw Error("Unknown EC Level: "+$)}}M2.isValid=function(q){return q&&typeof q.bit<"u"&&q.bit>=0&&q.bit<4};M2.from=function(q,Z){if(M2.isValid(q))return q;try{return W2(q)}catch(J){return Z}}});var X1=T((N5,T1)=>{function O1(){this.buffer=[],this.length=0}O1.prototype={get:function($){let q=Math.floor($/8);return(this.buffer[q]>>>7-$%8&1)===1},put:function($,q){for(let Z=0;Z<q;Z++)this.putBit(($>>>q-Z-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function($){let q=Math.floor(this.length/8);if(this.buffer.length<=q)this.buffer.push(0);if($)this.buffer[q]|=128>>>this.length%8;this.length++}};T1.exports=O1});var V1=T((W5,G1)=>{function s($){if(!$||$<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=$,this.data=new Uint8Array($*$),this.reservedBit=new Uint8Array($*$)}s.prototype.set=function($,q,Z,J){let Q=$*this.size+q;if(this.data[Q]=Z,J)this.reservedBit[Q]=!0};s.prototype.get=function($,q){return this.data[$*this.size+q]};s.prototype.xor=function($,q,Z){this.data[$*this.size+q]^=Z};s.prototype.isReserved=function($,q){return this.reservedBit[$*this.size+q]};G1.exports=s});var N1=T((B2)=>{var _2=y().getSymbolSize;B2.getRowColCoords=function(q){if(q===1)return[];let Z=Math.floor(q/7)+2,J=_2(q),Q=J===145?26:Math.ceil((J-13)/(2*Z-2))*2,F=[J-7];for(let K=1;K<Z-1;K++)F[K]=F[K-1]-Q;return F.push(6),F.reverse()};B2.getPositions=function(q){let Z=[],J=B2.getRowColCoords(q),Q=J.length;for(let F=0;F<Q;F++)for(let K=0;K<Q;K++){if(F===0&&K===0||F===0&&K===Q-1||F===Q-1&&K===0)continue;Z.push([J[F],J[K]])}return Z}});var W1=T((z2)=>{var L2=y().getSymbolSize;z2.getPositions=function(q){let Z=L2(q);return[[0,0],[Z-7,0],[0,Z-7]]}});var L1=T((w2)=>{w2.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var v={N1:3,N2:3,N3:40,N4:10};w2.isValid=function(q){return q!=null&&q!==""&&!isNaN(q)&&q>=0&&q<=7};w2.from=function(q){return w2.isValid(q)?parseInt(q,10):void 0};w2.getPenaltyN1=function(q){let Z=q.size,J=0,Q=0,F=0,K=null,U=null;for(let R=0;R<Z;R++){Q=F=0,K=U=null;for(let H=0;H<Z;H++){let Y=q.get(R,H);if(Y===K)Q++;else{if(Q>=5)J+=v.N1+(Q-5);K=Y,Q=1}if(Y=q.get(H,R),Y===U)F++;else{if(F>=5)J+=v.N1+(F-5);U=Y,F=1}}if(Q>=5)J+=v.N1+(Q-5);if(F>=5)J+=v.N1+(F-5)}return J};w2.getPenaltyN2=function(q){let Z=q.size,J=0;for(let Q=0;Q<Z-1;Q++)for(let F=0;F<Z-1;F++){let K=q.get(Q,F)+q.get(Q,F+1)+q.get(Q+1,F)+q.get(Q+1,F+1);if(K===4||K===0)J++}return J*v.N2};w2.getPenaltyN3=function(q){let Z=q.size,J=0,Q=0,F=0;for(let K=0;K<Z;K++){Q=F=0;for(let U=0;U<Z;U++){if(Q=Q<<1&2047|q.get(K,U),U>=10&&(Q===1488||Q===93))J++;if(F=F<<1&2047|q.get(U,K),U>=10&&(F===1488||F===93))J++}}return J*v.N3};w2.getPenaltyN4=function(q){let Z=0,J=q.data.length;for(let F=0;F<J;F++)Z+=q.data[F];return Math.abs(Math.ceil(Z*100/J/5)-10)*v.N4};function S2($,q,Z){switch($){case w2.Patterns.PATTERN000:return(q+Z)%2===0;case w2.Patterns.PATTERN001:return q%2===0;case w2.Patterns.PATTERN010:return Z%3===0;case w2.Patterns.PATTERN011:return(q+Z)%3===0;case w2.Patterns.PATTERN100:return(Math.floor(q/2)+Math.floor(Z/3))%2===0;case w2.Patterns.PATTERN101:return q*Z%2+q*Z%3===0;case w2.Patterns.PATTERN110:return(q*Z%2+q*Z%3)%2===0;case w2.Patterns.PATTERN111:return(q*Z%3+(q+Z)%2)%2===0;default:throw Error("bad maskPattern:"+$)}}w2.applyMask=function(q,Z){let J=Z.size;for(let Q=0;Q<J;Q++)for(let F=0;F<J;F++){if(Z.isReserved(F,Q))continue;Z.xor(F,Q,S2(q,F,Q))}};w2.getBestMask=function(q,Z){let J=Object.keys(w2.Patterns).length,Q=0,F=1/0;for(let K=0;K<J;K++){Z(K),w2.applyMask(K,q);let U=w2.getPenaltyN1(q)+w2.getPenaltyN2(q)+w2.getPenaltyN3(q)+w2.getPenaltyN4(q);if(w2.applyMask(K,q),U<F)F=U,Q=K}return Q}});var V0=T((y2)=>{var g=J0(),Q0=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],F0=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];y2.getBlocksCount=function(q,Z){switch(Z){case g.L:return Q0[(q-1)*4+0];case g.M:return Q0[(q-1)*4+1];case g.Q:return Q0[(q-1)*4+2];case g.H:return Q0[(q-1)*4+3];default:return}};y2.getTotalCodewordsCount=function(q,Z){switch(Z){case g.L:return F0[(q-1)*4+0];case g.M:return F0[(q-1)*4+1];case g.Q:return F0[(q-1)*4+2];case g.H:return F0[(q-1)*4+3];default:return}}});var z1=T((D2)=>{var o=new Uint8Array(512),K0=new Uint8Array(256);(function(){let q=1;for(let Z=0;Z<255;Z++)if(o[Z]=q,K0[q]=Z,q<<=1,q&256)q^=285;for(let Z=255;Z<512;Z++)o[Z]=o[Z-255]})();D2.log=function(q){if(q<1)throw Error("log("+q+")");return K0[q]};D2.exp=function(q){return o[q]};D2.mul=function(q,Z){if(q===0||Z===0)return 0;return o[K0[q]+K0[Z]]}});var S1=T((c2)=>{var A0=z1();c2.mul=function(q,Z){let J=new Uint8Array(q.length+Z.length-1);for(let Q=0;Q<q.length;Q++)for(let F=0;F<Z.length;F++)J[Q+F]^=A0.mul(q[Q],Z[F]);return J};c2.mod=function(q,Z){let J=new Uint8Array(q);while(J.length-Z.length>=0){let Q=J[0];for(let K=0;K<Z.length;K++)J[K]^=A0.mul(Z[K],Q);let F=0;while(F<J.length&&J[F]===0)F++;J=J.slice(F)}return J};c2.generateECPolynomial=function(q){let Z=new Uint8Array([1]);for(let J=0;J<q;J++)Z=c2.mul(Z,new Uint8Array([1,A0.exp(J)]));return Z}});var C1=T((z5,f1)=>{var w1=S1();function N0($){if(this.genPoly=void 0,this.degree=$,this.degree)this.initialize(this.degree)}N0.prototype.initialize=function(q){this.degree=q,this.genPoly=w1.generateECPolynomial(this.degree)};N0.prototype.encode=function(q){if(!this.genPoly)throw Error("Encoder not initialized");let Z=new Uint8Array(q.length+this.degree);Z.set(q);let J=w1.mod(Z,this.genPoly),Q=this.degree-J.length;if(Q>0){let F=new Uint8Array(this.degree);return F.set(J,Q),F}return J};f1.exports=N0});var W0=T((x2)=>{x2.isValid=function(q){return!isNaN(q)&&q>=1&&q<=40}});var M0=T((i2)=>{var t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");var n2="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+`)(?:.|[\r
2
- ]))+`;i2.KANJI=new RegExp(t,"g");i2.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");i2.BYTE=new RegExp(n2,"g");i2.NUMERIC=new RegExp("[0-9]+","g");i2.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var p2=new RegExp("^"+t+"$"),d2=new RegExp("^[0-9]+$"),r2=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");i2.testKanji=function(q){return p2.test(q)};i2.testNumeric=function(q){return d2.test(q)};i2.testAlphanumeric=function(q){return r2.test(q)}});var u=T((F6)=>{var J6=W0(),j0=M0();F6.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};F6.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};F6.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};F6.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};F6.MIXED={bit:-1};F6.getCharCountIndicator=function(q,Z){if(!q.ccBits)throw Error("Invalid mode: "+q);if(!J6.isValid(Z))throw Error("Invalid version: "+Z);if(Z>=1&&Z<10)return q.ccBits[0];else if(Z<27)return q.ccBits[1];return q.ccBits[2]};F6.getBestModeForData=function(q){if(j0.testNumeric(q))return F6.NUMERIC;else if(j0.testAlphanumeric(q))return F6.ALPHANUMERIC;else if(j0.testKanji(q))return F6.KANJI;else return F6.BYTE};F6.toString=function(q){if(q&&q.id)return q.id;throw Error("Invalid mode")};F6.isValid=function(q){return q&&q.bit&&q.ccBits};function Q6($){if(typeof $!=="string")throw Error("Param is not a string");switch($.toLowerCase()){case"numeric":return F6.NUMERIC;case"alphanumeric":return F6.ALPHANUMERIC;case"kanji":return F6.KANJI;case"byte":return F6.BYTE;default:throw Error("Unknown mode: "+$)}}F6.from=function(q,Z){if(F6.isValid(q))return q;try{return Q6(q)}catch(J){return Z}}});var P1=T((G6)=>{var U0=y(),E6=V0(),g1=J0(),D=u(),z0=W0(),u1=U0.getBCHDigit(7973);function O6($,q,Z){for(let J=1;J<=40;J++)if(q<=G6.getCapacity(J,Z,$))return J;return}function D1($,q){return D.getCharCountIndicator($,q)+4}function T6($,q){let Z=0;return $.forEach(function(J){let Q=D1(J.mode,q);Z+=Q+J.getBitsLength()}),Z}function X6($,q){for(let Z=1;Z<=40;Z++)if(T6($,Z)<=G6.getCapacity(Z,q,D.MIXED))return Z;return}G6.from=function(q,Z){if(z0.isValid(q))return parseInt(q,10);return Z};G6.getCapacity=function(q,Z,J){if(!z0.isValid(q))throw Error("Invalid QR Code version");if(typeof J>"u")J=D.BYTE;let Q=U0.getSymbolTotalCodewords(q),F=E6.getTotalCodewordsCount(q,Z),K=(Q-F)*8;if(J===D.MIXED)return K;let U=K-D1(J,q);switch(J){case D.NUMERIC:return Math.floor(U/10*3);case D.ALPHANUMERIC:return Math.floor(U/11*2);case D.KANJI:return Math.floor(U/13);case D.BYTE:default:return Math.floor(U/8)}};G6.getBestVersionForData=function(q,Z){let J,Q=g1.from(Z,g1.M);if(Array.isArray(q)){if(q.length>1)return X6(q,Q);if(q.length===0)return 1;J=q[0]}else J=q;return O6(J.mode,J.getLength(),Q)};G6.getEncodedBits=function(q){if(!z0.isValid(q)||q<7)throw Error("Invalid QR Code version");let Z=q<<12;while(U0.getBCHDigit(Z)-u1>=0)Z^=7973<<U0.getBCHDigit(Z)-u1;return q<<12|Z}});var c1=T((W6)=>{var k0=y(),v1=k0.getBCHDigit(1335);W6.getEncodedBits=function(q,Z){let J=q.bit<<3|Z,Q=J<<10;while(k0.getBCHDigit(Q)-v1>=0)Q^=1335<<k0.getBCHDigit(Q)-v1;return(J<<10|Q)^21522}});var m1=T((y5,b1)=>{var j6=u();function m($){this.mode=j6.NUMERIC,this.data=$.toString()}m.getBitsLength=function(q){return 10*Math.floor(q/3)+(q%3?q%3*3+1:0)};m.prototype.getLength=function(){return this.data.length};m.prototype.getBitsLength=function(){return m.getBitsLength(this.data.length)};m.prototype.write=function(q){let Z,J,Q;for(Z=0;Z+3<=this.data.length;Z+=3)J=this.data.substr(Z,3),Q=parseInt(J,10),q.put(Q,10);let F=this.data.length-Z;if(F>0)J=this.data.substr(Z),Q=parseInt(J,10),q.put(Q,F*3+1)};b1.exports=m});var l1=T((g5,x1)=>{var _6=u(),S0=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function x($){this.mode=_6.ALPHANUMERIC,this.data=$}x.getBitsLength=function(q){return 11*Math.floor(q/2)+6*(q%2)};x.prototype.getLength=function(){return this.data.length};x.prototype.getBitsLength=function(){return x.getBitsLength(this.data.length)};x.prototype.write=function(q){let Z;for(Z=0;Z+2<=this.data.length;Z+=2){let J=S0.indexOf(this.data[Z])*45;J+=S0.indexOf(this.data[Z+1]),q.put(J,11)}if(this.data.length%2)q.put(S0.indexOf(this.data[Z]),6)};x1.exports=x});var p1=T((u5,n1)=>{var B6=u();function l($){if(this.mode=B6.BYTE,typeof $==="string")this.data=new TextEncoder().encode($);else this.data=new Uint8Array($)}l.getBitsLength=function(q){return q*8};l.prototype.getLength=function(){return this.data.length};l.prototype.getBitsLength=function(){return l.getBitsLength(this.data.length)};l.prototype.write=function($){for(let q=0,Z=this.data.length;q<Z;q++)$.put(this.data[q],8)};n1.exports=l});var r1=T((D5,d1)=>{var I6=u(),L6=y();function n($){this.mode=I6.KANJI,this.data=$}n.getBitsLength=function(q){return q*13};n.prototype.getLength=function(){return this.data.length};n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)};n.prototype.write=function($){let q;for(q=0;q<this.data.length;q++){let Z=L6.toSJIS(this.data[q]);if(Z>=33088&&Z<=40956)Z-=33088;else if(Z>=57408&&Z<=60351)Z-=49472;else throw Error("Invalid SJIS character: "+this.data[q]+`
3
- Make sure your charset is UTF-8`);Z=(Z>>>8&255)*192+(Z&255),$.put(Z,13)}};d1.exports=n});var i1=T((h5,w0)=>{var e={single_source_shortest_paths:function($,q,Z){var J={},Q={};Q[q]=0;var F=e.PriorityQueue.make();F.push(q,0);var K,U,R,H,Y,E,O,X,G;while(!F.empty()){K=F.pop(),U=K.value,H=K.cost,Y=$[U]||{};for(R in Y)if(Y.hasOwnProperty(R)){if(E=Y[R],O=H+E,X=Q[R],G=typeof Q[R]>"u",G||X>O)Q[R]=O,F.push(R,O),J[R]=U}}if(typeof Z<"u"&&typeof Q[Z]>"u"){var A=["Could not find a path from ",q," to ",Z,"."].join("");throw Error(A)}return J},extract_shortest_path_from_predecessor_list:function($,q){var Z=[],J=q,Q;while(J)Z.push(J),Q=$[J],J=$[J];return Z.reverse(),Z},find_path:function($,q,Z){var J=e.single_source_shortest_paths($,q,Z);return e.extract_shortest_path_from_predecessor_list(J,Z)},PriorityQueue:{make:function($){var q=e.PriorityQueue,Z={},J;$=$||{};for(J in q)if(q.hasOwnProperty(J))Z[J]=q[J];return Z.queue=[],Z.sorter=$.sorter||q.default_sorter,Z},default_sorter:function($,q){return $.cost-q.cost},push:function($,q){var Z={value:$,cost:q};this.queue.push(Z),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};if(typeof w0<"u")w0.exports=e});var Z7=T((f6)=>{var N=u(),t1=m1(),e1=l1(),a1=p1(),q7=r1(),a=M0(),R0=y(),z6=i1();function s1($){return unescape(encodeURIComponent($)).length}function q0($,q,Z){let J=[],Q;while((Q=$.exec(Z))!==null)J.push({data:Q[0],index:Q.index,mode:q,length:Q[0].length});return J}function $7($){let q=q0(a.NUMERIC,N.NUMERIC,$),Z=q0(a.ALPHANUMERIC,N.ALPHANUMERIC,$),J,Q;if(R0.isKanjiModeEnabled())J=q0(a.BYTE,N.BYTE,$),Q=q0(a.KANJI,N.KANJI,$);else J=q0(a.BYTE_KANJI,N.BYTE,$),Q=[];return q.concat(Z,J,Q).sort(function(K,U){return K.index-U.index}).map(function(K){return{data:K.data,mode:K.mode,length:K.length}})}function f0($,q){switch(q){case N.NUMERIC:return t1.getBitsLength($);case N.ALPHANUMERIC:return e1.getBitsLength($);case N.KANJI:return q7.getBitsLength($);case N.BYTE:return a1.getBitsLength($)}}function k6($){return $.reduce(function(q,Z){let J=q.length-1>=0?q[q.length-1]:null;if(J&&J.mode===Z.mode)return q[q.length-1].data+=Z.data,q;return q.push(Z),q},[])}function S6($){let q=[];for(let Z=0;Z<$.length;Z++){let J=$[Z];switch(J.mode){case N.NUMERIC:q.push([J,{data:J.data,mode:N.ALPHANUMERIC,length:J.length},{data:J.data,mode:N.BYTE,length:J.length}]);break;case N.ALPHANUMERIC:q.push([J,{data:J.data,mode:N.BYTE,length:J.length}]);break;case N.KANJI:q.push([J,{data:J.data,mode:N.BYTE,length:s1(J.data)}]);break;case N.BYTE:q.push([{data:J.data,mode:N.BYTE,length:s1(J.data)}])}}return q}function w6($,q){let Z={},J={start:{}},Q=["start"];for(let F=0;F<$.length;F++){let K=$[F],U=[];for(let R=0;R<K.length;R++){let H=K[R],Y=""+F+R;U.push(Y),Z[Y]={node:H,lastCount:0},J[Y]={};for(let E=0;E<Q.length;E++){let O=Q[E];if(Z[O]&&Z[O].node.mode===H.mode)J[O][Y]=f0(Z[O].lastCount+H.length,H.mode)-f0(Z[O].lastCount,H.mode),Z[O].lastCount+=H.length;else{if(Z[O])Z[O].lastCount=H.length;J[O][Y]=f0(H.length,H.mode)+4+N.getCharCountIndicator(H.mode,q)}}}Q=U}for(let F=0;F<Q.length;F++)J[Q[F]].end=0;return{map:J,table:Z}}function o1($,q){let Z,J=N.getBestModeForData($);if(Z=N.from(q,J),Z!==N.BYTE&&Z.bit<J.bit)throw Error('"'+$+'" cannot be encoded with mode '+N.toString(Z)+`.
4
- Suggested mode is: `+N.toString(J));if(Z===N.KANJI&&!R0.isKanjiModeEnabled())Z=N.BYTE;switch(Z){case N.NUMERIC:return new t1($);case N.ALPHANUMERIC:return new e1($);case N.KANJI:return new q7($);case N.BYTE:return new a1($)}}f6.fromArray=function(q){return q.reduce(function(Z,J){if(typeof J==="string")Z.push(o1(J,null));else if(J.data)Z.push(o1(J.data,J.mode));return Z},[])};f6.fromString=function(q,Z){let J=$7(q,R0.isKanjiModeEnabled()),Q=S6(J),F=w6(Q,Z),K=z6.find_path(F.map,"start","end"),U=[];for(let R=1;R<K.length-1;R++)U.push(F.table[K[R]].node);return f6.fromArray(k6(U))};f6.rawSplit=function(q){return f6.fromArray($7(q,R0.isKanjiModeEnabled()))}});var P0=T((i6)=>{var Y0=y(),y0=J0(),g6=X1(),u6=V1(),D6=N1(),h6=W1(),D0=L1(),h0=V0(),P6=C1(),H0=P1(),v6=c1(),c6=u(),g0=Z7();function b6($,q){let Z=$.size,J=h6.getPositions(q);for(let Q=0;Q<J.length;Q++){let F=J[Q][0],K=J[Q][1];for(let U=-1;U<=7;U++){if(F+U<=-1||Z<=F+U)continue;for(let R=-1;R<=7;R++){if(K+R<=-1||Z<=K+R)continue;if(U>=0&&U<=6&&(R===0||R===6)||R>=0&&R<=6&&(U===0||U===6)||U>=2&&U<=4&&R>=2&&R<=4)$.set(F+U,K+R,!0,!0);else $.set(F+U,K+R,!1,!0)}}}}function m6($){let q=$.size;for(let Z=8;Z<q-8;Z++){let J=Z%2===0;$.set(Z,6,J,!0),$.set(6,Z,J,!0)}}function x6($,q){let Z=D6.getPositions(q);for(let J=0;J<Z.length;J++){let Q=Z[J][0],F=Z[J][1];for(let K=-2;K<=2;K++)for(let U=-2;U<=2;U++)if(K===-2||K===2||U===-2||U===2||K===0&&U===0)$.set(Q+K,F+U,!0,!0);else $.set(Q+K,F+U,!1,!0)}}function l6($,q){let Z=$.size,J=H0.getEncodedBits(q),Q,F,K;for(let U=0;U<18;U++)Q=Math.floor(U/3),F=U%3+Z-8-3,K=(J>>U&1)===1,$.set(Q,F,K,!0),$.set(F,Q,K,!0)}function u0($,q,Z){let J=$.size,Q=v6.getEncodedBits(q,Z),F,K;for(F=0;F<15;F++){if(K=(Q>>F&1)===1,F<6)$.set(F,8,K,!0);else if(F<8)$.set(F+1,8,K,!0);else $.set(J-15+F,8,K,!0);if(F<8)$.set(8,J-F-1,K,!0);else if(F<9)$.set(8,15-F-1+1,K,!0);else $.set(8,15-F-1,K,!0)}$.set(J-8,8,1,!0)}function n6($,q){let Z=$.size,J=-1,Q=Z-1,F=7,K=0;for(let U=Z-1;U>0;U-=2){if(U===6)U--;while(!0){for(let R=0;R<2;R++)if(!$.isReserved(Q,U-R)){let H=!1;if(K<q.length)H=(q[K]>>>F&1)===1;if($.set(Q,U-R,H),F--,F===-1)K++,F=7}if(Q+=J,Q<0||Z<=Q){Q-=J,J=-J;break}}}}function p6($,q,Z){let J=new g6;Z.forEach(function(R){J.put(R.mode.bit,4),J.put(R.getLength(),c6.getCharCountIndicator(R.mode,$)),R.write(J)});let Q=Y0.getSymbolTotalCodewords($),F=h0.getTotalCodewordsCount($,q),K=(Q-F)*8;if(J.getLengthInBits()+4<=K)J.put(0,4);while(J.getLengthInBits()%8!==0)J.putBit(0);let U=(K-J.getLengthInBits())/8;for(let R=0;R<U;R++)J.put(R%2?17:236,8);return d6(J,$,q)}function d6($,q,Z){let J=Y0.getSymbolTotalCodewords(q),Q=h0.getTotalCodewordsCount(q,Z),F=J-Q,K=h0.getBlocksCount(q,Z),U=J%K,R=K-U,H=Math.floor(J/K),Y=Math.floor(F/K),E=Y+1,O=H-Y,X=new P6(O),G=0,A=Array(K),V=Array(K),W=0,E0=new Uint8Array($.buffer);for(let b=0;b<K;b++){let O0=b<R?Y:E;A[b]=E0.slice(G,G+O0),V[b]=X.encode(A[b]),G+=O0,W=Math.max(W,O0)}let i=new Uint8Array(J),I=0,z,C;for(z=0;z<W;z++)for(C=0;C<K;C++)if(z<A[C].length)i[I++]=A[C][z];for(z=0;z<O;z++)for(C=0;C<K;C++)i[I++]=V[C][z];return i}function r6($,q,Z,J){let Q;if(Array.isArray($))Q=g0.fromArray($);else if(typeof $==="string"){let H=q;if(!H){let Y=g0.rawSplit($);H=H0.getBestVersionForData(Y,Z)}Q=g0.fromString($,H||40)}else throw Error("Invalid data");let F=H0.getBestVersionForData(Q,Z);if(!F)throw Error("The amount of data is too big to be stored in a QR Code");if(!q)q=F;else if(q<F)throw Error(`
5
- The chosen QR Code version cannot contain this amount of data.
6
- Minimum version required to store current data is: `+F+`.
7
- `);let K=p6(q,Z,Q),U=Y0.getSymbolSize(q),R=new u6(U);if(b6(R,q),m6(R),x6(R,q),u0(R,Z,0),q>=7)l6(R,q);if(n6(R,K),isNaN(J))J=D0.getBestMask(R,u0.bind(null,R,Z));return D0.applyMask(J,R),u0(R,Z,J),{modules:R,version:q,errorCorrectionLevel:Z,maskPattern:J,segments:Q}}i6.create=function(q,Z){if(typeof q>"u"||q==="")throw Error("No input text");let J=y0.M,Q,F;if(typeof Z<"u"){if(J=y0.from(Z.errorCorrectionLevel,y0.M),Q=H0.from(Z.version),F=D0.from(Z.maskPattern),Z.toSJISFunc)Y0.setToSJISFunction(Z.toSJISFunc)}return r6(q,Q,J,F)}});var v0=T((c5,Q7)=>{var o6=M("util"),J7=M("stream"),S=Q7.exports=function(){J7.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};o6.inherits(S,J7);S.prototype.read=function($,q){this._reads.push({length:Math.abs($),allowLess:$<0,func:q}),process.nextTick(function(){if(this._process(),this._paused&&this._reads&&this._reads.length>0)this._paused=!1,this.emit("drain")}.bind(this))};S.prototype.write=function($,q){if(!this.writable)return this.emit("error",Error("Stream not writable")),!1;let Z;if(Buffer.isBuffer($))Z=$;else Z=Buffer.from($,q||this._encoding);if(this._buffers.push(Z),this._buffered+=Z.length,this._process(),this._reads&&this._reads.length===0)this._paused=!0;return this.writable&&!this._paused};S.prototype.end=function($,q){if($)this.write($,q);if(this.writable=!1,!this._buffers)return;if(this._buffers.length===0)this._end();else this._buffers.push(null),this._process()};S.prototype.destroySoon=S.prototype.end;S.prototype._end=function(){if(this._reads.length>0)this.emit("error",Error("Unexpected end of input"));this.destroy()};S.prototype.destroy=function(){if(!this._buffers)return;this.writable=!1,this._reads=null,this._buffers=null,this.emit("close")};S.prototype._processReadAllowingLess=function($){this._reads.shift();let q=this._buffers[0];if(q.length>$.length)this._buffered-=$.length,this._buffers[0]=q.slice($.length),$.func.call(this,q.slice(0,$.length));else this._buffered-=q.length,this._buffers.shift(),$.func.call(this,q)};S.prototype._processRead=function($){this._reads.shift();let q=0,Z=0,J=Buffer.alloc($.length);while(q<$.length){let Q=this._buffers[Z++],F=Math.min(Q.length,$.length-q);if(Q.copy(J,q,0,F),q+=F,F!==Q.length)this._buffers[--Z]=Q.slice(F)}if(Z>0)this._buffers.splice(0,Z);this._buffered-=$.length,$.func.call(this,J)};S.prototype._process=function(){try{while(this._buffered>0&&this._reads&&this._reads.length>0){let $=this._reads[0];if($.allowLess)this._processReadAllowingLess($);else if(this._buffered>=$.length)this._processRead($);else break}if(this._buffers&&!this.writable)this._end()}catch($){this.emit("error",$)}}});var c0=T((t6)=>{var h=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];t6.getImagePasses=function($,q){let Z=[],J=$%8,Q=q%8,F=($-J)/8,K=(q-Q)/8;for(let U=0;U<h.length;U++){let R=h[U],H=F*R.x.length,Y=K*R.y.length;for(let E=0;E<R.x.length;E++)if(R.x[E]<J)H++;else break;for(let E=0;E<R.y.length;E++)if(R.y[E]<Q)Y++;else break;if(H>0&&Y>0)Z.push({width:H,height:Y,index:U})}return Z};t6.getInterlaceIterator=function($){return function(q,Z,J){let Q=q%h[J].x.length,F=(q-Q)/h[J].x.length*8+h[J].x[Q],K=Z%h[J].y.length,U=(Z-K)/h[J].y.length*8+h[J].y[K];return F*4+U*$*4}}});var b0=T((m5,F7)=>{F7.exports=function(q,Z,J){let Q=q+Z-J,F=Math.abs(Q-q),K=Math.abs(Q-Z),U=Math.abs(Q-J);if(F<=K&&F<=U)return q;if(K<=U)return Z;return J}});var m0=T((x5,U7)=>{var qq=c0(),$q=b0();function K7($,q,Z){let J=$*q;if(Z!==8)J=Math.ceil(J/(8/Z));return J}var p=U7.exports=function($,q){let{width:Z,height:J,interlace:Q,bpp:F,depth:K}=$;if(this.read=q.read,this.write=q.write,this.complete=q.complete,this._imageIndex=0,this._images=[],Q){let U=qq.getImagePasses(Z,J);for(let R=0;R<U.length;R++)this._images.push({byteWidth:K7(U[R].width,F,K),height:U[R].height,lineIndex:0})}else this._images.push({byteWidth:K7(Z,F,K),height:J,lineIndex:0});if(K===8)this._xComparison=F;else if(K===16)this._xComparison=F*2;else this._xComparison=1};p.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))};p.prototype._unFilterType1=function($,q,Z){let J=this._xComparison,Q=J-1;for(let F=0;F<Z;F++){let K=$[1+F],U=F>Q?q[F-J]:0;q[F]=K+U}};p.prototype._unFilterType2=function($,q,Z){let J=this._lastLine;for(let Q=0;Q<Z;Q++){let F=$[1+Q],K=J?J[Q]:0;q[Q]=F+K}};p.prototype._unFilterType3=function($,q,Z){let J=this._xComparison,Q=J-1,F=this._lastLine;for(let K=0;K<Z;K++){let U=$[1+K],R=F?F[K]:0,H=K>Q?q[K-J]:0,Y=Math.floor((H+R)/2);q[K]=U+Y}};p.prototype._unFilterType4=function($,q,Z){let J=this._xComparison,Q=J-1,F=this._lastLine;for(let K=0;K<Z;K++){let U=$[1+K],R=F?F[K]:0,H=K>Q?q[K-J]:0,Y=K>Q&&F?F[K-J]:0,E=$q(H,R,Y);q[K]=U+E}};p.prototype._reverseFilterLine=function($){let q=$[0],Z,J=this._images[this._imageIndex],Q=J.byteWidth;if(q===0)Z=$.slice(1,Q+1);else switch(Z=Buffer.alloc(Q),q){case 1:this._unFilterType1($,Z,Q);break;case 2:this._unFilterType2($,Z,Q);break;case 3:this._unFilterType3($,Z,Q);break;case 4:this._unFilterType4($,Z,Q);break;default:throw Error("Unrecognised filter type - "+q)}if(this.write(Z),J.lineIndex++,J.lineIndex>=J.height)this._lastLine=null,this._imageIndex++,J=this._images[this._imageIndex];else this._lastLine=Z;if(J)this.read(J.byteWidth+1,this._reverseFilterLine.bind(this));else this._lastLine=null,this.complete()}});var Y7=T((l5,H7)=>{var Zq=M("util"),R7=v0(),Jq=m0(),Qq=H7.exports=function($){R7.call(this);let q=[],Z=this;this._filter=new Jq($,{read:this.read.bind(this),write:function(J){q.push(J)},complete:function(){Z.emit("complete",Buffer.concat(q))}}),this._filter.start()};Zq.inherits(Qq,R7)});var d=T((n5,E7)=>{E7.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}});var n0=T((p5,O7)=>{var x0=[];(function(){for(let $=0;$<256;$++){let q=$;for(let Z=0;Z<8;Z++)if(q&1)q=3988292384^q>>>1;else q=q>>>1;x0[$]=q}})();var l0=O7.exports=function(){this._crc=-1};l0.prototype.write=function($){for(let q=0;q<$.length;q++)this._crc=x0[(this._crc^$[q])&255]^this._crc>>>8;return!0};l0.prototype.crc32=function(){return this._crc^-1};l0.crc32=function($){let q=-1;for(let Z=0;Z<$.length;Z++)q=x0[(q^$[Z])&255]^q>>>8;return q^-1}});var p0=T((d5,T7)=>{var j=d(),Fq=n0(),_=T7.exports=function($,q){this._options=$,$.checkCRC=$.checkCRC!==!1,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[j.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[j.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[j.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[j.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[j.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[j.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=q.read,this.error=q.error,this.metadata=q.metadata,this.gamma=q.gamma,this.transColor=q.transColor,this.palette=q.palette,this.parsed=q.parsed,this.inflateData=q.inflateData,this.finished=q.finished,this.simpleTransparency=q.simpleTransparency,this.headersFinished=q.headersFinished||function(){}};_.prototype.start=function(){this.read(j.PNG_SIGNATURE.length,this._parseSignature.bind(this))};_.prototype._parseSignature=function($){let q=j.PNG_SIGNATURE;for(let Z=0;Z<q.length;Z++)if($[Z]!==q[Z]){this.error(Error("Invalid file signature"));return}this.read(8,this._parseChunkBegin.bind(this))};_.prototype._parseChunkBegin=function($){let q=$.readUInt32BE(0),Z=$.readUInt32BE(4),J="";for(let F=4;F<8;F++)J+=String.fromCharCode($[F]);let Q=Boolean($[4]&32);if(!this._hasIHDR&&Z!==j.TYPE_IHDR){this.error(Error("Expected IHDR on beggining"));return}if(this._crc=new Fq,this._crc.write(Buffer.from(J)),this._chunks[Z])return this._chunks[Z](q);if(!Q){this.error(Error("Unsupported critical chunk type "+J));return}this.read(q+4,this._skipChunk.bind(this))};_.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))};_.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))};_.prototype._parseChunkEnd=function($){let q=$.readInt32BE(0),Z=this._crc.crc32();if(this._options.checkCRC&&Z!==q){this.error(Error("Crc error - "+q+" - "+Z));return}if(!this._hasIEND)this.read(8,this._parseChunkBegin.bind(this))};_.prototype._handleIHDR=function($){this.read($,this._parseIHDR.bind(this))};_.prototype._parseIHDR=function($){this._crc.write($);let q=$.readUInt32BE(0),Z=$.readUInt32BE(4),J=$[8],Q=$[9],F=$[10],K=$[11],U=$[12];if(J!==8&&J!==4&&J!==2&&J!==1&&J!==16){this.error(Error("Unsupported bit depth "+J));return}if(!(Q in j.COLORTYPE_TO_BPP_MAP)){this.error(Error("Unsupported color type"));return}if(F!==0){this.error(Error("Unsupported compression method"));return}if(K!==0){this.error(Error("Unsupported filter method"));return}if(U!==0&&U!==1){this.error(Error("Unsupported interlace method"));return}this._colorType=Q;let R=j.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:q,height:Z,depth:J,interlace:Boolean(U),palette:Boolean(Q&j.COLORTYPE_PALETTE),color:Boolean(Q&j.COLORTYPE_COLOR),alpha:Boolean(Q&j.COLORTYPE_ALPHA),bpp:R,colorType:Q}),this._handleChunkEnd()};_.prototype._handlePLTE=function($){this.read($,this._parsePLTE.bind(this))};_.prototype._parsePLTE=function($){this._crc.write($);let q=Math.floor($.length/3);for(let Z=0;Z<q;Z++)this._palette.push([$[Z*3],$[Z*3+1],$[Z*3+2],255]);this.palette(this._palette),this._handleChunkEnd()};_.prototype._handleTRNS=function($){this.simpleTransparency(),this.read($,this._parseTRNS.bind(this))};_.prototype._parseTRNS=function($){if(this._crc.write($),this._colorType===j.COLORTYPE_PALETTE_COLOR){if(this._palette.length===0){this.error(Error("Transparency chunk must be after palette"));return}if($.length>this._palette.length){this.error(Error("More transparent colors than palette size"));return}for(let q=0;q<$.length;q++)this._palette[q][3]=$[q];this.palette(this._palette)}if(this._colorType===j.COLORTYPE_GRAYSCALE)this.transColor([$.readUInt16BE(0)]);if(this._colorType===j.COLORTYPE_COLOR)this.transColor([$.readUInt16BE(0),$.readUInt16BE(2),$.readUInt16BE(4)]);this._handleChunkEnd()};_.prototype._handleGAMA=function($){this.read($,this._parseGAMA.bind(this))};_.prototype._parseGAMA=function($){this._crc.write($),this.gamma($.readUInt32BE(0)/j.GAMMA_DIVISION),this._handleChunkEnd()};_.prototype._handleIDAT=function($){if(!this._emittedHeadersFinished)this._emittedHeadersFinished=!0,this.headersFinished();this.read(-$,this._parseIDAT.bind(this,$))};_.prototype._parseIDAT=function($,q){if(this._crc.write(q),this._colorType===j.COLORTYPE_PALETTE_COLOR&&this._palette.length===0)throw Error("Expected palette not found");this.inflateData(q);let Z=$-q.length;if(Z>0)this._handleIDAT(Z);else this._handleChunkEnd()};_.prototype._handleIEND=function($){this.read($,this._parseIEND.bind(this))};_.prototype._parseIEND=function($){if(this._crc.write($),this._hasIEND=!0,this._handleChunkEnd(),this.finished)this.finished()}});var d0=T((Eq)=>{var X7=c0(),Kq=[function(){},function($,q,Z,J){if(J===q.length)throw Error("Ran out of data");let Q=q[J];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=255},function($,q,Z,J){if(J+1>=q.length)throw Error("Ran out of data");let Q=q[J];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=q[J+1]},function($,q,Z,J){if(J+2>=q.length)throw Error("Ran out of data");$[Z]=q[J],$[Z+1]=q[J+1],$[Z+2]=q[J+2],$[Z+3]=255},function($,q,Z,J){if(J+3>=q.length)throw Error("Ran out of data");$[Z]=q[J],$[Z+1]=q[J+1],$[Z+2]=q[J+2],$[Z+3]=q[J+3]}],Uq=[function(){},function($,q,Z,J){let Q=q[0];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=J},function($,q,Z){let J=q[0];$[Z]=J,$[Z+1]=J,$[Z+2]=J,$[Z+3]=q[1]},function($,q,Z,J){$[Z]=q[0],$[Z+1]=q[1],$[Z+2]=q[2],$[Z+3]=J},function($,q,Z){$[Z]=q[0],$[Z+1]=q[1],$[Z+2]=q[2],$[Z+3]=q[3]}];function Rq($,q){let Z=[],J=0;function Q(){if(J===$.length)throw Error("Ran out of data");let F=$[J];J++;let K,U,R,H,Y,E,O,X;switch(q){default:throw Error("unrecognised depth");case 16:O=$[J],J++,Z.push((F<<8)+O);break;case 4:O=F&15,X=F>>4,Z.push(X,O);break;case 2:Y=F&3,E=F>>2&3,O=F>>4&3,X=F>>6&3,Z.push(X,O,E,Y);break;case 1:K=F&1,U=F>>1&1,R=F>>2&1,H=F>>3&1,Y=F>>4&1,E=F>>5&1,O=F>>6&1,X=F>>7&1,Z.push(X,O,E,Y,H,R,U,K);break}}return{get:function(F){while(Z.length<F)Q();let K=Z.slice(0,F);return Z=Z.slice(F),K},resetAfterLine:function(){Z.length=0},end:function(){if(J!==$.length)throw Error("extra data found")}}}function Hq($,q,Z,J,Q,F){let{width:K,height:U,index:R}=$;for(let H=0;H<U;H++)for(let Y=0;Y<K;Y++){let E=Z(Y,H,R);Kq[J](q,Q,E,F),F+=J}return F}function Yq($,q,Z,J,Q,F){let{width:K,height:U,index:R}=$;for(let H=0;H<U;H++){for(let Y=0;Y<K;Y++){let E=Q.get(J),O=Z(Y,H,R);Uq[J](q,E,O,F)}Q.resetAfterLine()}}Eq.dataToBitMap=function($,q){let{width:Z,height:J,depth:Q,bpp:F,interlace:K}=q,U;if(Q!==8)U=Rq($,Q);let R;if(Q<=8)R=Buffer.alloc(Z*J*4);else R=new Uint16Array(Z*J*4);let H=Math.pow(2,Q)-1,Y=0,E,O;if(K)E=X7.getImagePasses(Z,J),O=X7.getInterlaceIterator(Z,J);else{let X=0;O=function(){let G=X;return X+=4,G},E=[{width:Z,height:J}]}for(let X=0;X<E.length;X++)if(Q===8)Y=Hq(E[X],R,O,F,$,Y);else Yq(E[X],R,O,F,U,H);if(Q===8){if(Y!==$.length)throw Error("extra data found")}else U.end();return R}});var r0=T((i5,G7)=>{function Tq($,q,Z,J,Q){let F=0;for(let K=0;K<J;K++)for(let U=0;U<Z;U++){let R=Q[$[F]];if(!R)throw Error("index "+$[F]+" not in palette");for(let H=0;H<4;H++)q[F+H]=R[H];F+=4}}function Xq($,q,Z,J,Q){let F=0;for(let K=0;K<J;K++)for(let U=0;U<Z;U++){let R=!1;if(Q.length===1){if(Q[0]===$[F])R=!0}else if(Q[0]===$[F]&&Q[1]===$[F+1]&&Q[2]===$[F+2])R=!0;if(R)for(let H=0;H<4;H++)q[F+H]=0;F+=4}}function Gq($,q,Z,J,Q){let F=255,K=Math.pow(2,Q)-1,U=0;for(let R=0;R<J;R++)for(let H=0;H<Z;H++){for(let Y=0;Y<4;Y++)q[U+Y]=Math.floor($[U+Y]*F/K+0.5);U+=4}}G7.exports=function($,q){let{depth:Z,width:J,height:Q,colorType:F,transColor:K,palette:U}=q,R=$;if(F===3)Tq($,R,J,Q,U);else{if(K)Xq($,R,J,Q,K);if(Z!==8){if(Z===16)R=Buffer.alloc(J*Q*4);Gq($,R,J,Q,Z)}}return R}});var N7=T((s5,A7)=>{var Vq=M("util"),i0=M("zlib"),V7=v0(),Aq=Y7(),Nq=p0(),Wq=d0(),Mq=r0(),f=A7.exports=function($){V7.call(this),this._parser=new Nq($,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=$,this.writable=!0,this._parser.start()};Vq.inherits(f,V7);f.prototype._handleError=function($){if(this.emit("error",$),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy)this._inflate.destroy();if(this._filter)this._filter.destroy(),this._filter.on("error",function(){});this.errord=!0};f.prototype._inflateData=function($){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=i0.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter);else{let Z=((this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3)+1)*this._bitmapInfo.height,J=Math.max(Z,i0.Z_MIN_CHUNK);this._inflate=i0.createInflate({chunkSize:J});let Q=Z,F=this.emit.bind(this,"error");this._inflate.on("error",function(U){if(!Q)return;F(U)}),this._filter.on("complete",this._complete.bind(this));let K=this._filter.write.bind(this._filter);this._inflate.on("data",function(U){if(!Q)return;if(U.length>Q)U=U.slice(0,Q);Q-=U.length,K(U)}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write($)};f.prototype._handleMetaData=function($){this._metaData=$,this._bitmapInfo=Object.create($),this._filter=new Aq(this._bitmapInfo)};f.prototype._handleTransColor=function($){this._bitmapInfo.transColor=$};f.prototype._handlePalette=function($){this._bitmapInfo.palette=$};f.prototype._simpleTransparency=function(){this._metaData.alpha=!0};f.prototype._headersFinished=function(){this.emit("metadata",this._metaData)};f.prototype._finished=function(){if(this.errord)return;if(!this._inflate)this.emit("error","No Inflate block");else this._inflate.end()};f.prototype._complete=function($){if(this.errord)return;let q;try{let Z=Wq.dataToBitMap($,this._bitmapInfo);q=Mq(Z,this._bitmapInfo),Z=null}catch(Z){this._handleError(Z);return}this.emit("parsed",q)}});var M7=T((o5,W7)=>{var k=d();W7.exports=function($,q,Z,J){let Q=[k.COLORTYPE_COLOR_ALPHA,k.COLORTYPE_ALPHA].indexOf(J.colorType)!==-1;if(J.colorType===J.inputColorType){let G=function(){let A=new ArrayBuffer(2);return new DataView(A).setInt16(0,256,!0),new Int16Array(A)[0]!==256}();if(J.bitDepth===8||J.bitDepth===16&&G)return $}let F=J.bitDepth!==16?$:new Uint16Array($.buffer),K=255,U=k.COLORTYPE_TO_BPP_MAP[J.inputColorType];if(U===4&&!J.inputHasAlpha)U=3;let R=k.COLORTYPE_TO_BPP_MAP[J.colorType];if(J.bitDepth===16)K=65535,R*=2;let H=Buffer.alloc(q*Z*R),Y=0,E=0,O=J.bgColor||{};if(O.red===void 0)O.red=K;if(O.green===void 0)O.green=K;if(O.blue===void 0)O.blue=K;function X(){let G,A,V,W=K;switch(J.inputColorType){case k.COLORTYPE_COLOR_ALPHA:W=F[Y+3],G=F[Y],A=F[Y+1],V=F[Y+2];break;case k.COLORTYPE_COLOR:G=F[Y],A=F[Y+1],V=F[Y+2];break;case k.COLORTYPE_ALPHA:W=F[Y+1],G=F[Y],A=G,V=G;break;case k.COLORTYPE_GRAYSCALE:G=F[Y],A=G,V=G;break;default:throw Error("input color type:"+J.inputColorType+" is not supported at present")}if(J.inputHasAlpha){if(!Q)W/=K,G=Math.min(Math.max(Math.round((1-W)*O.red+W*G),0),K),A=Math.min(Math.max(Math.round((1-W)*O.green+W*A),0),K),V=Math.min(Math.max(Math.round((1-W)*O.blue+W*V),0),K)}return{red:G,green:A,blue:V,alpha:W}}for(let G=0;G<Z;G++)for(let A=0;A<q;A++){let V=X(F,Y);switch(J.colorType){case k.COLORTYPE_COLOR_ALPHA:case k.COLORTYPE_COLOR:if(J.bitDepth===8){if(H[E]=V.red,H[E+1]=V.green,H[E+2]=V.blue,Q)H[E+3]=V.alpha}else if(H.writeUInt16BE(V.red,E),H.writeUInt16BE(V.green,E+2),H.writeUInt16BE(V.blue,E+4),Q)H.writeUInt16BE(V.alpha,E+6);break;case k.COLORTYPE_ALPHA:case k.COLORTYPE_GRAYSCALE:{let W=(V.red+V.green+V.blue)/3;if(J.bitDepth===8){if(H[E]=W,Q)H[E+1]=V.alpha}else if(H.writeUInt16BE(W,E),Q)H.writeUInt16BE(V.alpha,E+2);break}default:throw Error("unrecognised color Type "+J.colorType)}Y+=U,E+=R}return H}});var B7=T((t5,_7)=>{var j7=b0();function jq($,q,Z,J,Q){for(let F=0;F<Z;F++)J[Q+F]=$[q+F]}function _q($,q,Z){let J=0,Q=q+Z;for(let F=q;F<Q;F++)J+=Math.abs($[F]);return J}function Bq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=$[q+K]-U;J[Q+K]=R}}function Iq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=$[q+F]-K;Q+=Math.abs(U)}return Q}function Lq($,q,Z,J,Q){for(let F=0;F<Z;F++){let K=q>0?$[q+F-Z]:0,U=$[q+F]-K;J[Q+F]=U}}function zq($,q,Z){let J=0,Q=q+Z;for(let F=q;F<Q;F++){let K=q>0?$[F-Z]:0,U=$[F]-K;J+=Math.abs(U)}return J}function kq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=q>0?$[q+K-Z]:0,H=$[q+K]-(U+R>>1);J[Q+K]=H}}function Sq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=q>0?$[q+F-Z]:0,R=$[q+F]-(K+U>>1);Q+=Math.abs(R)}return Q}function wq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=q>0?$[q+K-Z]:0,H=q>0&&K>=F?$[q+K-(Z+F)]:0,Y=$[q+K]-j7(U,R,H);J[Q+K]=Y}}function fq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=q>0?$[q+F-Z]:0,R=q>0&&F>=J?$[q+F-(Z+J)]:0,H=$[q+F]-j7(K,U,R);Q+=Math.abs(H)}return Q}var Cq={0:jq,1:Bq,2:Lq,3:kq,4:wq},yq={0:_q,1:Iq,2:zq,3:Sq,4:fq};_7.exports=function($,q,Z,J,Q){let F;if(!("filterType"in J)||J.filterType===-1)F=[0,1,2,3,4];else if(typeof J.filterType==="number")F=[J.filterType];else throw Error("unrecognised filter types");if(J.bitDepth===16)Q*=2;let K=q*Q,U=0,R=0,H=Buffer.alloc((K+1)*Z),Y=F[0];for(let E=0;E<Z;E++){if(F.length>1){let O=1/0;for(let X=0;X<F.length;X++){let G=yq[F[X]]($,R,K,Q);if(G<O)Y=F[X],O=G}}H[U]=Y,U++,Cq[Y]($,R,K,H,U,Q),U+=K,R+=K}return H}});var s0=T((e5,I7)=>{var B=d(),gq=n0(),uq=M7(),Dq=B7(),hq=M("zlib"),P=I7.exports=function($){if(this._options=$,$.deflateChunkSize=$.deflateChunkSize||32768,$.deflateLevel=$.deflateLevel!=null?$.deflateLevel:9,$.deflateStrategy=$.deflateStrategy!=null?$.deflateStrategy:3,$.inputHasAlpha=$.inputHasAlpha!=null?$.inputHasAlpha:!0,$.deflateFactory=$.deflateFactory||hq.createDeflate,$.bitDepth=$.bitDepth||8,$.colorType=typeof $.colorType==="number"?$.colorType:B.COLORTYPE_COLOR_ALPHA,$.inputColorType=typeof $.inputColorType==="number"?$.inputColorType:B.COLORTYPE_COLOR_ALPHA,[B.COLORTYPE_GRAYSCALE,B.COLORTYPE_COLOR,B.COLORTYPE_COLOR_ALPHA,B.COLORTYPE_ALPHA].indexOf($.colorType)===-1)throw Error("option color type:"+$.colorType+" is not supported at present");if([B.COLORTYPE_GRAYSCALE,B.COLORTYPE_COLOR,B.COLORTYPE_COLOR_ALPHA,B.COLORTYPE_ALPHA].indexOf($.inputColorType)===-1)throw Error("option input color type:"+$.inputColorType+" is not supported at present");if($.bitDepth!==8&&$.bitDepth!==16)throw Error("option bit depth:"+$.bitDepth+" is not supported at present")};P.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}};P.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())};P.prototype.filterData=function($,q,Z){let J=uq($,q,Z,this._options),Q=B.COLORTYPE_TO_BPP_MAP[this._options.colorType];return Dq(J,q,Z,this._options,Q)};P.prototype._packChunk=function($,q){let Z=q?q.length:0,J=Buffer.alloc(Z+12);if(J.writeUInt32BE(Z,0),J.writeUInt32BE($,4),q)q.copy(J,8);return J.writeInt32BE(gq.crc32(J.slice(4,J.length-4)),J.length-4),J};P.prototype.packGAMA=function($){let q=Buffer.alloc(4);return q.writeUInt32BE(Math.floor($*B.GAMMA_DIVISION),0),this._packChunk(B.TYPE_gAMA,q)};P.prototype.packIHDR=function($,q){let Z=Buffer.alloc(13);return Z.writeUInt32BE($,0),Z.writeUInt32BE(q,4),Z[8]=this._options.bitDepth,Z[9]=this._options.colorType,Z[10]=0,Z[11]=0,Z[12]=0,this._packChunk(B.TYPE_IHDR,Z)};P.prototype.packIDAT=function($){return this._packChunk(B.TYPE_IDAT,$)};P.prototype.packIEND=function(){return this._packChunk(B.TYPE_IEND,null)}});var S7=T((a5,k7)=>{var Pq=M("util"),L7=M("stream"),vq=d(),cq=s0(),z7=k7.exports=function($){L7.call(this);let q=$||{};this._packer=new cq(q),this._deflate=this._packer.createDeflate(),this.readable=!0};Pq.inherits(z7,L7);z7.prototype.pack=function($,q,Z,J){if(this.emit("data",Buffer.from(vq.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(q,Z)),J)this.emit("data",this._packer.packGAMA(J));let Q=this._packer.filterData($,q,Z);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(F){this.emit("data",this._packer.packIDAT(F))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(Q)}});var u7=T(($0,g7)=>{var w7=M("assert").ok,r=M("zlib"),bq=M("util"),f7=M("buffer").kMaxLength;function c($){if(!(this instanceof c))return new c($);if($&&$.chunkSize<r.Z_MIN_CHUNK)$.chunkSize=r.Z_MIN_CHUNK;if(r.Inflate.call(this,$),this._offset=this._offset===void 0?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,$&&$.maxLength!=null)this._maxLength=$.maxLength}function mq($){return new c($)}function C7($,q){if(q)process.nextTick(q);if(!$._handle)return;$._handle.close(),$._handle=null}c.prototype._processChunk=function($,q,Z){if(typeof Z==="function")return r.Inflate._processChunk.call(this,$,q,Z);let J=this,Q=$&&$.length,F=this._chunkSize-this._offset,K=this._maxLength,U=0,R=[],H=0,Y;this.on("error",function(G){Y=G});function E(G,A){if(J._hadError)return;let V=F-A;if(w7(V>=0,"have should not go down"),V>0){let W=J._buffer.slice(J._offset,J._offset+V);if(J._offset+=V,W.length>K)W=W.slice(0,K);if(R.push(W),H+=W.length,K-=W.length,K===0)return!1}if(A===0||J._offset>=J._chunkSize)F=J._chunkSize,J._offset=0,J._buffer=Buffer.allocUnsafe(J._chunkSize);if(A===0)return U+=Q-G,Q=G,!0;return!1}w7(this._handle,"zlib binding closed");let O;do O=this._handle.writeSync(q,$,U,Q,this._buffer,this._offset,F),O=O||this._writeState;while(!this._hadError&&E(O[0],O[1]));if(this._hadError)throw Y;if(H>=f7)throw C7(this),RangeError("Cannot create final Buffer. It would be larger than 0x"+f7.toString(16)+" bytes");let X=Buffer.concat(R,H);return C7(this),X};bq.inherits(c,r.Inflate);function xq($,q){if(typeof q==="string")q=Buffer.from(q);if(!(q instanceof Buffer))throw TypeError("Not a string or buffer");let Z=$._finishFlushFlag;if(Z==null)Z=r.Z_FINISH;return $._processChunk(q,Z)}function y7($,q){return xq(new c(q),$)}g7.exports=$0=y7;$0.Inflate=c;$0.createInflate=mq;$0.inflateSync=y7});var o0=T((q$,h7)=>{var D7=h7.exports=function($){this._buffer=$,this._reads=[]};D7.prototype.read=function($,q){this._reads.push({length:Math.abs($),allowLess:$<0,func:q})};D7.prototype.process=function(){while(this._reads.length>0&&this._buffer.length){let $=this._reads[0];if(this._buffer.length&&(this._buffer.length>=$.length||$.allowLess)){this._reads.shift();let q=this._buffer;this._buffer=q.slice($.length),$.func.call(this,q.slice(0,$.length))}else break}if(this._reads.length>0)return Error("There are some read requests waitng on finished stream");if(this._buffer.length>0)return Error("unrecognised content at end of stream")}});var P7=T((pq)=>{var lq=o0(),nq=m0();pq.process=function($,q){let Z=[],J=new lq($);return new nq(q,{read:J.read.bind(J),write:function(F){Z.push(F)},complete:function(){}}).start(),J.process(),Buffer.concat(Z)}});var m7=T((Z$,b7)=>{var v7=!0,c7=M("zlib"),rq=u7();if(!c7.deflateSync)v7=!1;var iq=o0(),sq=P7(),oq=p0(),tq=d0(),eq=r0();b7.exports=function($,q){if(!v7)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let Z;function J(I){Z=I}let Q;function F(I){Q=I}function K(I){Q.transColor=I}function U(I){Q.palette=I}function R(){Q.alpha=!0}let H;function Y(I){H=I}let E=[];function O(I){E.push(I)}let X=new iq($);if(new oq(q,{read:X.read.bind(X),error:J,metadata:F,gamma:Y,palette:U,transColor:K,inflateData:O,simpleTransparency:R}).start(),X.process(),Z)throw Z;let A=Buffer.concat(E);E.length=0;let V;if(Q.interlace)V=c7.inflateSync(A);else{let z=((Q.width*Q.bpp*Q.depth+7>>3)+1)*Q.height;V=rq(A,{chunkSize:z,maxLength:z})}if(A=null,!V||!V.length)throw Error("bad png - invalid inflate data response");let W=sq.process(V,Q);A=null;let E0=tq.dataToBitMap(W,Q);W=null;let i=eq(E0,Q);return Q.data=i,Q.gamma=H||0,Q}});var p7=T((J$,n7)=>{var x7=!0,l7=M("zlib");if(!l7.deflateSync)x7=!1;var aq=d(),q4=s0();n7.exports=function($,q){if(!x7)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let J=new q4(q||{}),Q=[];if(Q.push(Buffer.from(aq.PNG_SIGNATURE)),Q.push(J.packIHDR($.width,$.height)),$.gamma)Q.push(J.packGAMA($.gamma));let F=J.filterData($.data,$.width,$.height),K=l7.deflateSync(F,J.getDeflateOptions());if(F=null,!K||!K.length)throw Error("bad png - invalid compressed data response");return Q.push(J.packIDAT(K)),Q.push(J.packIEND()),Buffer.concat(Q)}});var d7=T((J4)=>{var $4=m7(),Z4=p7();J4.read=function($,q){return $4($,q||{})};J4.write=function($,q){return Z4($,q)}});var i7=T((Y4)=>{var K4=M("util"),r7=M("stream"),U4=N7(),R4=S7(),H4=d7(),L=Y4.PNG=function($){if(r7.call(this),$=$||{},this.width=$.width|0,this.height=$.height|0,this.data=this.width>0&&this.height>0?Buffer.alloc(4*this.width*this.height):null,$.fill&&this.data)this.data.fill(0);this.gamma=0,this.readable=this.writable=!0,this._parser=new U4($),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(q){this.data=q,this.emit("parsed",q)}.bind(this)),this._packer=new R4($),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};K4.inherits(L,r7);L.sync=H4;L.prototype.pack=function(){if(!this.data||!this.data.length)return this.emit("error","No data provided"),this;return process.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this};L.prototype.parse=function($,q){if(q){let Z,J;Z=function(Q){this.removeListener("error",J),this.data=Q,q(null,this)}.bind(this),J=function(Q){this.removeListener("parsed",Z),q(Q,null)}.bind(this),this.once("parsed",Z),this.once("error",J)}return this.end($),this};L.prototype.write=function($){return this._parser.write($),!0};L.prototype.end=function($){this._parser.end($)};L.prototype._metadata=function($){this.width=$.width,this.height=$.height,this.emit("metadata",$)};L.prototype._gamma=function($){this.gamma=$};L.prototype._handleClose=function(){if(!this._parser.writable&&!this._packer.readable)this.emit("close")};L.bitblt=function($,q,Z,J,Q,F,K,U){if(Z|=0,J|=0,Q|=0,F|=0,K|=0,U|=0,Z>$.width||J>$.height||Z+Q>$.width||J+F>$.height)throw Error("bitblt reading outside image");if(K>q.width||U>q.height||K+Q>q.width||U+F>q.height)throw Error("bitblt writing outside image");for(let R=0;R<F;R++)$.data.copy(q.data,(U+R)*q.width+K<<2,(J+R)*$.width+Z<<2,(J+R)*$.width+Z+Q<<2)};L.prototype.bitblt=function($,q,Z,J,Q,F,K){return L.bitblt(this,$,q,Z,J,Q,F,K),this};L.adjustGamma=function($){if($.gamma){for(let q=0;q<$.height;q++)for(let Z=0;Z<$.width;Z++){let J=$.width*q+Z<<2;for(let Q=0;Q<3;Q++){let F=$.data[J+Q]/255;F=Math.pow(F,0.45454545454545453/$.gamma),$.data[J+Q]=Math.round(F*255)}}$.gamma=0}};L.prototype.adjustGamma=function(){L.adjustGamma(this)}});var Z0=T((E4)=>{function s7($){if(typeof $==="number")$=$.toString();if(typeof $!=="string")throw Error("Color should be defined as hex string");let q=$.slice().replace("#","").split("");if(q.length<3||q.length===5||q.length>8)throw Error("Invalid hex color: "+$);if(q.length===3||q.length===4)q=Array.prototype.concat.apply([],q.map(function(J){return[J,J]}));if(q.length===6)q.push("F","F");let Z=parseInt(q.join(""),16);return{r:Z>>24&255,g:Z>>16&255,b:Z>>8&255,a:Z&255,hex:"#"+q.slice(0,6).join("")}}E4.getOptions=function(q){if(!q)q={};if(!q.color)q.color={};let Z=typeof q.margin>"u"||q.margin===null||q.margin<0?4:q.margin,J=q.width&&q.width>=21?q.width:void 0,Q=q.scale||4;return{width:J,scale:J?4:Q,margin:Z,color:{dark:s7(q.color.dark||"#000000ff"),light:s7(q.color.light||"#ffffffff")},type:q.type,rendererOpts:q.rendererOpts||{}}};E4.getScale=function(q,Z){return Z.width&&Z.width>=q+Z.margin*2?Z.width/(q+Z.margin*2):Z.scale};E4.getImageWidth=function(q,Z){let J=E4.getScale(q,Z);return Math.floor((q+Z.margin*2)*J)};E4.qrToImageData=function(q,Z,J){let Q=Z.modules.size,F=Z.modules.data,K=E4.getScale(Q,J),U=Math.floor((Q+J.margin*2)*K),R=J.margin*K,H=[J.color.light,J.color.dark];for(let Y=0;Y<U;Y++)for(let E=0;E<U;E++){let O=(Y*U+E)*4,X=J.color.light;if(Y>=R&&E>=R&&Y<U-R&&E<U-R){let G=Math.floor((Y-R)/K),A=Math.floor((E-R)/K);X=H[F[G*Q+A]?1:0]}q[O++]=X.r,q[O++]=X.g,q[O++]=X.b,q[O]=X.a}}});var o7=T((A4)=>{var G4=M("fs"),V4=i7().PNG,e0=Z0();A4.render=function(q,Z){let J=e0.getOptions(Z),Q=J.rendererOpts,F=e0.getImageWidth(q.modules.size,J);Q.width=F,Q.height=F;let K=new V4(Q);return e0.qrToImageData(K.data,q,J),K};A4.renderToDataURL=function(q,Z,J){if(typeof J>"u")J=Z,Z=void 0;A4.renderToBuffer(q,Z,function(Q,F){if(Q)J(Q);let K="data:image/png;base64,";K+=F.toString("base64"),J(null,K)})};A4.renderToBuffer=function(q,Z,J){if(typeof J>"u")J=Z,Z=void 0;let Q=A4.render(q,Z),F=[];Q.on("error",J),Q.on("data",function(K){F.push(K)}),Q.on("end",function(){J(null,Buffer.concat(F))}),Q.pack()};A4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=!1,K=(...R)=>{if(F)return;F=!0,Q.apply(null,R)},U=G4.createWriteStream(q);U.on("error",K),U.on("close",K),A4.renderToFileStream(U,Z,J)};A4.renderToFileStream=function(q,Z,J){A4.render(Z,J).pack().pipe(q)}});var e7=T((z4)=>{var _4=Z0(),B4={WW:" ",WB:"▄",BB:"█",BW:"▀"},I4={BB:" ",BW:"▄",WW:"█",WB:"▀"};function L4($,q,Z){if($&&q)return Z.BB;if($&&!q)return Z.BW;if(!$&&q)return Z.WB;return Z.WW}z4.render=function($,q,Z){let J=_4.getOptions(q),Q=B4;if(J.color.dark.hex==="#ffffff"||J.color.light.hex==="#000000")Q=I4;let F=$.modules.size,K=$.modules.data,U="",R=Array(F+J.margin*2+1).join(Q.WW);R=Array(J.margin/2+1).join(R+`
8
- `);let H=Array(J.margin+1).join(Q.WW);U+=R;for(let Y=0;Y<F;Y+=2){U+=H;for(let E=0;E<F;E++){let O=K[Y*F+E],X=K[(Y+1)*F+E];U+=L4(O,X,Q)}U+=H+`
9
- `}if(U+=R.slice(0,-1),typeof Z==="function")Z(null,U);return U};z4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=M("fs"),K=z4.render(Z,J);F.writeFile(q,K,Q)}});var a7=T((S4)=>{S4.render=function($,q,Z){let J=$.modules.size,Q=$.modules.data,F="\x1B[40m \x1B[0m",K="\x1B[47m \x1B[0m",U="",R=Array(J+3).join("\x1B[47m \x1B[0m"),H=Array(2).join("\x1B[47m \x1B[0m");U+=R+`
10
- `;for(let Y=0;Y<J;++Y){U+="\x1B[47m \x1B[0m";for(let E=0;E<J;E++)U+=Q[Y*J+E]?"\x1B[40m \x1B[0m":"\x1B[47m \x1B[0m";U+=H+`
11
- `}if(U+=R+`
12
- `,typeof Z==="function")Z(null,U);return U}});var Z2=T((g4)=>{var f4="\x1B[47m\x1B[30m",C4="\x1B[40m\x1B[37m",y4=function($,q,Z){return{"00":"\x1B[0m "+$,"01":"\x1B[0m"+q+"▄"+$,"02":"\x1B[0m"+Z+"▄"+$,10:"\x1B[0m"+q+"▀"+$,11:" ",12:"▄",20:"\x1B[0m"+Z+"▀"+$,21:"▀",22:"█"}},q2=function($,q,Z,J){let Q=q+1;if(Z>=Q||J>=Q||J<-1||Z<-1)return"0";if(Z>=q||J>=q||J<0||Z<0)return"1";let F=J*q+Z;return $[F]?"2":"1"},$2=function($,q,Z,J){return q2($,q,Z,J)+q2($,q,Z,J+1)};g4.render=function($,q,Z){let J=$.modules.size,Q=$.modules.data,F=!!(q&&q.inverse),K=q&&q.inverse?C4:f4,H=y4(K,F?"\x1B[30m":"\x1B[37m",F?"\x1B[37m":"\x1B[30m"),Y=`\x1B[0m
13
- `+K,E=K;for(let O=-1;O<J+1;O+=2){for(let X=-1;X<J;X++)E+=H[$2(Q,J,X,O)];E+=H[$2(Q,J,J,O)]+Y}if(E+="\x1B[0m",typeof Z==="function")Z(null,E);return E}});var J2=T((P4)=>{var D4=a7(),h4=Z2();P4.render=function($,q,Z){if(q&&q.small)return h4.render($,q,Z);return D4.render($,q,Z)}});var $1=T((m4)=>{var c4=Z0();function Q2($,q){let Z=$.a/255,J=q+'="'+$.hex+'"';return Z<1?J+" "+q+'-opacity="'+Z.toFixed(2).slice(1)+'"':J}function q1($,q,Z){let J=$+q;if(typeof Z<"u")J+=" "+Z;return J}function b4($,q,Z){let J="",Q=0,F=!1,K=0;for(let U=0;U<$.length;U++){let R=Math.floor(U%q),H=Math.floor(U/q);if(!R&&!F)F=!0;if($[U]){if(K++,!(U>0&&R>0&&$[U-1]))J+=F?q1("M",R+Z,0.5+H+Z):q1("m",Q,0),Q=0,F=!1;if(!(R+1<q&&$[U+1]))J+=q1("h",K),K=0}else Q++}return J}m4.render=function(q,Z,J){let Q=c4.getOptions(Z),F=q.modules.size,K=q.modules.data,U=F+Q.margin*2,R=!Q.color.light.a?"":"<path "+Q2(Q.color.light,"fill")+' d="M0 0h'+U+"v"+U+'H0z"/>',H="<path "+Q2(Q.color.dark,"stroke")+' d="'+b4(K,F,Q.margin)+'"/>',Y='viewBox="0 0 '+U+" "+U+'"',O='<svg xmlns="http://www.w3.org/2000/svg" '+(!Q.width?"":'width="'+Q.width+'" height="'+Q.width+'" ')+Y+' shape-rendering="crispEdges">'+R+H+`</svg>
14
- `;if(typeof J==="function")J(null,O);return O}});var K2=T((n4)=>{var l4=$1();n4.render=l4.render;n4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=M("fs"),U='<?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'+n4.render(Z,J);F.writeFile(q,U,Q)}});var R2=T((i4)=>{var Z1=Z0();function d4($,q,Z){if($.clearRect(0,0,q.width,q.height),!q.style)q.style={};q.height=Z,q.width=Z,q.style.height=Z+"px",q.style.width=Z+"px"}function r4(){try{return document.createElement("canvas")}catch($){throw Error("You need to specify a canvas element")}}i4.render=function(q,Z,J){let Q=J,F=Z;if(typeof Q>"u"&&(!Z||!Z.getContext))Q=Z,Z=void 0;if(!Z)F=r4();Q=Z1.getOptions(Q);let K=Z1.getImageWidth(q.modules.size,Q),U=F.getContext("2d"),R=U.createImageData(K,K);return Z1.qrToImageData(R.data,q,Q),d4(U,F,K),U.putImageData(R,0,0),F};i4.renderToDataURL=function(q,Z,J){let Q=J;if(typeof Q>"u"&&(!Z||!Z.getContext))Q=Z,Z=void 0;if(!Q)Q={};let F=i4.render(q,Z,Q),K=Q.type||"image/png",U=Q.rendererOpts||{};return F.toDataURL(K,U.quality)}});var Y2=T((e4)=>{var o4=T0(),J1=P0(),H2=R2(),t4=$1();function Q1($,q,Z,J,Q){let F=[].slice.call(arguments,1),K=F.length,U=typeof F[K-1]==="function";if(!U&&!o4())throw Error("Callback required as last argument");if(U){if(K<2)throw Error("Too few arguments provided");if(K===2)Q=Z,Z=q,q=J=void 0;else if(K===3)if(q.getContext&&typeof Q>"u")Q=J,J=void 0;else Q=J,J=Z,Z=q,q=void 0}else{if(K<1)throw Error("Too few arguments provided");if(K===1)Z=q,q=J=void 0;else if(K===2&&!q.getContext)J=Z,Z=q,q=void 0;return new Promise(function(R,H){try{let Y=J1.create(Z,J);R($(Y,q,J))}catch(Y){H(Y)}})}try{let R=J1.create(Z,J);Q(null,$(R,q,J))}catch(R){Q(R)}}e4.create=J1.create;e4.toCanvas=Q1.bind(null,H2.render);e4.toDataURL=Q1.bind(null,H2.renderToDataURL);e4.toString=Q1.bind(null,function($,q,Z){return t4.render($,Z)})});function R5($,q,Z){if(typeof $>"u")throw Error("String required as first argument");if(typeof Z>"u")Z=q,q={};if(typeof Z!=="function")if(!Q5())throw Error("Callback required as last argument");else q=Z||{},Z=null;return{opts:q,cb:Z}}function H5($){switch($){case"svg":return U5;case"terminal":return K5;case"utf8":default:return F5}}function Y5($,q,Z){if(!Z.cb)return new Promise(function(J,Q){try{let F=F1.create(q,Z.opts);return $(F,Z.opts,function(K,U){return K?Q(K):J(U)})}catch(F){Q(F)}});try{let J=F1.create(q,Z.opts);return $(J,Z.opts,Z.cb)}catch(J){Z.cb(J)}}var Q5,F1,A$,F5,K5,U5,E5,O5,T5=function(q,Z,J){let Q=R5(q,Z,J),F=Q.opts?Q.opts.type:void 0,K=H5(F);return Y5(K.render,q,Q)};var X5=J5(()=>{Q5=T0(),F1=P0(),A$=o7(),F5=e7(),K5=J2(),U5=K2();E5=F1.create,O5=Y2().toCanvas});
15
- export{T5 as _e,X5 as $e};