zevairouter 1.0.124 → 1.0.125

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 (1422) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/cli/app/.next-cli-build/BUILD_ID +1 -1
  3. package/cli/app/.next-cli-build/app-path-routes-manifest.json +9 -9
  4. package/cli/app/.next-cli-build/build-manifest.json +6 -6
  5. package/cli/app/.next-cli-build/react-loadable-manifest.json +2 -2
  6. package/cli/app/.next-cli-build/required-server-files.json +0 -1
  7. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js +2 -2
  8. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js.nft.json +1 -1
  9. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page_client-reference-manifest.js +1 -1
  10. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  11. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  12. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  13. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +3 -3
  14. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  15. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  16. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  17. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  18. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  19. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  20. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  21. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  22. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  23. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  24. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  25. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js +2 -2
  26. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js.nft.json +1 -1
  27. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page_client-reference-manifest.js +1 -1
  28. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  29. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  30. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  31. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +3 -3
  32. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  33. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  34. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  35. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  36. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  37. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +3 -3
  38. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  39. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  40. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  41. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  42. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  43. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  44. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  45. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  46. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
  47. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  48. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  49. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js +2 -2
  50. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js.nft.json +1 -1
  51. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page_client-reference-manifest.js +1 -1
  52. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  53. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  54. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  55. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +3 -3
  56. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  57. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  58. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  59. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  60. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  61. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  62. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  63. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  64. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +3 -3
  65. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  66. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  67. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +2 -2
  68. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  69. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  70. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  71. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  72. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  73. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js +4 -4
  74. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js.nft.json +1 -1
  75. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page_client-reference-manifest.js +1 -1
  76. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
  77. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  78. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  79. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  80. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  81. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  82. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  83. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  84. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  85. package/cli/app/.next-cli-build/server/app/_global-error/page.js +3 -3
  86. package/cli/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  87. package/cli/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  88. package/cli/app/.next-cli-build/server/app/_global-error.html +1 -1
  89. package/cli/app/.next-cli-build/server/app/_global-error.rsc +7 -7
  90. package/cli/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +7 -7
  91. package/cli/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +2 -2
  92. package/cli/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +3 -3
  93. package/cli/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +3 -3
  94. package/cli/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +3 -3
  95. package/cli/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  96. package/cli/app/.next-cli-build/server/app/_not-found/page.js +2 -2
  97. package/cli/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  98. package/cli/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  99. package/cli/app/.next-cli-build/server/app/_not-found.html +1 -1
  100. package/cli/app/.next-cli-build/server/app/_not-found.rsc +12 -12
  101. package/cli/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +12 -12
  102. package/cli/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +4 -4
  103. package/cli/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +7 -7
  104. package/cli/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  105. package/cli/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  106. package/cli/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +3 -3
  107. package/cli/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  108. package/cli/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  109. package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  110. package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  111. package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  112. package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  113. package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  114. package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  115. package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  116. package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  117. package/cli/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  118. package/cli/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  119. package/cli/app/.next-cli-build/server/app/api/cache/stats/route.js +1 -1
  120. package/cli/app/.next-cli-build/server/app/api/cache/stats/route.js.nft.json +1 -1
  121. package/cli/app/.next-cli-build/server/app/api/changelog/route.js +1 -1
  122. package/cli/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
  123. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +4 -4
  124. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  125. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  126. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  127. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  128. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  129. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  130. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  131. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
  132. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  133. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js +1 -1
  134. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js.nft.json +1 -1
  135. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  136. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  137. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  138. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  139. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  140. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  141. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  142. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  143. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +2 -2
  144. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  145. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
  146. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  147. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  148. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  149. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +3 -3
  150. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  151. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  152. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  153. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  154. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  155. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  156. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  157. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  158. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  159. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  160. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  161. package/cli/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  162. package/cli/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  163. package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js +1 -1
  164. package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js.nft.json +1 -1
  165. package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js +1 -1
  166. package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js.nft.json +1 -1
  167. package/cli/app/.next-cli-build/server/app/api/context/route.js +1 -1
  168. package/cli/app/.next-cli-build/server/app/api/context/route.js.nft.json +1 -1
  169. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js +1 -1
  170. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js.nft.json +1 -1
  171. package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  172. package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  173. package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  174. package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  175. package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  176. package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  177. package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  178. package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  179. package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  180. package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  181. package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  182. package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  183. package/cli/app/.next-cli-build/server/app/api/health/ready/route.js +1 -1
  184. package/cli/app/.next-cli-build/server/app/api/health/ready/route.js.nft.json +1 -1
  185. package/cli/app/.next-cli-build/server/app/api/health/route.js +1 -1
  186. package/cli/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  187. package/cli/app/.next-cli-build/server/app/api/init/route.js +1 -1
  188. package/cli/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  189. package/cli/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js +1 -1
  190. package/cli/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js.nft.json +1 -1
  191. package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  192. package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  193. package/cli/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  194. package/cli/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  195. package/cli/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  196. package/cli/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  197. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +2 -2
  198. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  199. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +2 -2
  200. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  201. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  202. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  203. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  204. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  205. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  206. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  207. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  208. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  209. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  210. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  211. package/cli/app/.next-cli-build/server/app/api/metrics/route.js +2 -2
  212. package/cli/app/.next-cli-build/server/app/api/metrics/route.js.nft.json +1 -1
  213. package/cli/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  214. package/cli/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  215. package/cli/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  216. package/cli/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  217. package/cli/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  218. package/cli/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  219. package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  220. package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  221. package/cli/app/.next-cli-build/server/app/api/models/route.js +1 -1
  222. package/cli/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  223. package/cli/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  224. package/cli/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  225. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  226. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  227. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js +1 -1
  228. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  229. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  230. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  231. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js +1 -1
  232. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js.nft.json +1 -1
  233. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js +1 -1
  234. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js.nft.json +1 -1
  235. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js +1 -1
  236. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js.nft.json +1 -1
  237. package/cli/app/.next-cli-build/server/app/api/oauth/autoclaw/bulk-import/[jobId]/cancel/route.js +1 -1
  238. package/cli/app/.next-cli-build/server/app/api/oauth/autoclaw/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  239. package/cli/app/.next-cli-build/server/app/api/oauth/autoclaw/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  240. package/cli/app/.next-cli-build/server/app/api/oauth/autoclaw/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  241. package/cli/app/.next-cli-build/server/app/api/oauth/autoclaw/bulk-import/[jobId]/route.js +1 -1
  242. package/cli/app/.next-cli-build/server/app/api/oauth/autoclaw/bulk-import/[jobId]/route.js.nft.json +1 -1
  243. package/cli/app/.next-cli-build/server/app/api/oauth/autoclaw/bulk-import/latest/route.js +1 -1
  244. package/cli/app/.next-cli-build/server/app/api/oauth/autoclaw/bulk-import/latest/route.js.nft.json +1 -1
  245. package/cli/app/.next-cli-build/server/app/api/oauth/autoclaw/bulk-import/route.js +1 -1
  246. package/cli/app/.next-cli-build/server/app/api/oauth/autoclaw/bulk-import/route.js.nft.json +1 -1
  247. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route.js +1 -1
  248. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  249. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  250. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  251. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route.js +1 -1
  252. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route.js.nft.json +1 -1
  253. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/latest/route.js +1 -1
  254. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/latest/route.js.nft.json +1 -1
  255. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/route.js +1 -1
  256. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/route.js.nft.json +1 -1
  257. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js +1 -1
  258. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  259. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  260. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  261. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js +1 -1
  262. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js.nft.json +1 -1
  263. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js +1 -1
  264. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js.nft.json +1 -1
  265. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js +1 -1
  266. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js.nft.json +1 -1
  267. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js +1 -1
  268. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js.nft.json +1 -1
  269. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js +1 -1
  270. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js.nft.json +1 -1
  271. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js +1 -1
  272. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  273. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  274. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  275. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js +1 -1
  276. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js.nft.json +1 -1
  277. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js +1 -1
  278. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js.nft.json +1 -1
  279. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js +1 -1
  280. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
  281. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js +1 -1
  282. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js.nft.json +1 -1
  283. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js +1 -1
  284. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js.nft.json +1 -1
  285. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  286. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  287. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  288. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  289. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  290. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  291. package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  292. package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  293. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js +1 -1
  294. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  295. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  296. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  297. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js +1 -1
  298. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js.nft.json +1 -1
  299. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route.js +1 -1
  300. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route.js.nft.json +1 -1
  301. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
  302. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  303. package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  304. package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  305. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  306. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  307. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js +1 -1
  308. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  309. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  310. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  311. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js +1 -1
  312. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js.nft.json +1 -1
  313. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js +1 -1
  314. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js.nft.json +1 -1
  315. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js +1 -1
  316. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js.nft.json +1 -1
  317. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  318. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  319. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  320. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  321. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  322. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  323. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js +1 -1
  324. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  325. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  326. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  327. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js +1 -1
  328. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js.nft.json +1 -1
  329. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js +1 -1
  330. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js.nft.json +1 -1
  331. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js +1 -1
  332. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js.nft.json +1 -1
  333. package/cli/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  334. package/cli/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  335. package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  336. package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  337. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  338. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  339. package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  340. package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  341. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  342. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  343. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  344. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  345. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  346. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  347. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  348. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  349. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js +1 -1
  350. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js.nft.json +1 -1
  351. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  352. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  353. package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  354. package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  355. package/cli/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  356. package/cli/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  357. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  358. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  359. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  360. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  361. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js +2 -2
  362. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  363. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  364. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  365. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  366. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  367. package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  368. package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  369. package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  370. package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  371. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  372. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  373. package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  374. package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  375. package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  376. package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  377. package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  378. package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  379. package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  380. package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  381. package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  382. package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  383. package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  384. package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  385. package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  386. package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  387. package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  388. package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  389. package/cli/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  390. package/cli/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  391. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  392. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  393. package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  394. package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  395. package/cli/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  396. package/cli/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  397. package/cli/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  398. package/cli/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  399. package/cli/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  400. package/cli/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  401. package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js +1 -1
  402. package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js.nft.json +1 -1
  403. package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js +1 -1
  404. package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js.nft.json +1 -1
  405. package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js +1 -1
  406. package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js.nft.json +1 -1
  407. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js +1 -1
  408. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js.nft.json +1 -1
  409. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js +1 -1
  410. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js.nft.json +1 -1
  411. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js +1 -1
  412. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js.nft.json +1 -1
  413. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js +2 -2
  414. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js.nft.json +1 -1
  415. package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js +1 -1
  416. package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js.nft.json +1 -1
  417. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  418. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  419. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  420. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  421. package/cli/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  422. package/cli/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  423. package/cli/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  424. package/cli/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  425. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  426. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  427. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  428. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  429. package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  430. package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  431. package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  432. package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  433. package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  434. package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  435. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  436. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  437. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  438. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  439. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  440. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  441. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +3 -3
  442. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  443. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  444. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  445. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js +1 -1
  446. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js.nft.json +1 -1
  447. package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  448. package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  449. package/cli/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  450. package/cli/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  451. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  452. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  453. package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  454. package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  455. package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  456. package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  457. package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  458. package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  459. package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
  460. package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  461. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  462. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  463. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  464. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  465. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  466. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  467. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  468. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  469. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  470. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  471. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  472. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  473. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js +2 -2
  474. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  475. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  476. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  477. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  478. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  479. package/cli/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  480. package/cli/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  481. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  482. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  483. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  484. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  485. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  486. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  487. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  488. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  489. package/cli/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  490. package/cli/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  491. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  492. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  493. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  494. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  495. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  496. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  497. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  498. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  499. package/cli/app/.next-cli-build/server/app/api/version/route.js +1 -1
  500. package/cli/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  501. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  502. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  503. package/cli/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  504. package/cli/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  505. package/cli/app/.next-cli-build/server/app/callback/page.js +2 -2
  506. package/cli/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  507. package/cli/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  508. package/cli/app/.next-cli-build/server/app/callback.html +1 -1
  509. package/cli/app/.next-cli-build/server/app/callback.rsc +14 -14
  510. package/cli/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +14 -14
  511. package/cli/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +4 -4
  512. package/cli/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +7 -7
  513. package/cli/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +3 -3
  514. package/cli/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +4 -4
  515. package/cli/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +3 -3
  516. package/cli/app/.next-cli-build/server/app/dashboard/automation.html +1 -1
  517. package/cli/app/.next-cli-build/server/app/dashboard/automation.rsc +16 -16
  518. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation/__PAGE__.segment.rsc +4 -4
  519. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation.segment.rsc +3 -3
  520. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
  521. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk.segment.rsc +5 -5
  522. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_full.segment.rsc +16 -16
  523. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_head.segment.rsc +4 -4
  524. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_index.segment.rsc +7 -7
  525. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_tree.segment.rsc +4 -4
  526. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  527. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +15 -15
  528. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +3 -3
  529. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +3 -3
  530. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
  531. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +5 -5
  532. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +15 -15
  533. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +4 -4
  534. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +7 -7
  535. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +4 -4
  536. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  537. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +15 -15
  538. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +3 -3
  539. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +3 -3
  540. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
  541. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +5 -5
  542. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +15 -15
  543. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +4 -4
  544. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +7 -7
  545. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +4 -4
  546. package/cli/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  547. package/cli/app/.next-cli-build/server/app/dashboard/combos.rsc +16 -16
  548. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +4 -4
  549. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +3 -3
  550. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
  551. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +5 -5
  552. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +16 -16
  553. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +4 -4
  554. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +7 -7
  555. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +4 -4
  556. package/cli/app/.next-cli-build/server/app/dashboard/context.html +1 -1
  557. package/cli/app/.next-cli-build/server/app/dashboard/context.rsc +16 -16
  558. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context/__PAGE__.segment.rsc +4 -4
  559. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context.segment.rsc +3 -3
  560. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
  561. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk.segment.rsc +5 -5
  562. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_full.segment.rsc +16 -16
  563. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_head.segment.rsc +4 -4
  564. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_index.segment.rsc +7 -7
  565. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_tree.segment.rsc +4 -4
  566. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  567. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.rsc +15 -15
  568. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +3 -3
  569. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +3 -3
  570. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
  571. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +5 -5
  572. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +15 -15
  573. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +4 -4
  574. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +7 -7
  575. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +4 -4
  576. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  577. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +16 -16
  578. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +4 -4
  579. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +3 -3
  580. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +3 -3
  581. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
  582. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +5 -5
  583. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +16 -16
  584. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +4 -4
  585. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +7 -7
  586. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +4 -4
  587. package/cli/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  588. package/cli/app/.next-cli-build/server/app/dashboard/mitm.rsc +15 -15
  589. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +3 -3
  590. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +3 -3
  591. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
  592. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +5 -5
  593. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +15 -15
  594. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +4 -4
  595. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +7 -7
  596. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +4 -4
  597. package/cli/app/.next-cli-build/server/app/dashboard/playground.html +1 -1
  598. package/cli/app/.next-cli-build/server/app/dashboard/playground.rsc +15 -15
  599. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground/__PAGE__.segment.rsc +3 -3
  600. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground.segment.rsc +3 -3
  601. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
  602. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk.segment.rsc +5 -5
  603. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_full.segment.rsc +15 -15
  604. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_head.segment.rsc +4 -4
  605. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_index.segment.rsc +7 -7
  606. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_tree.segment.rsc +4 -4
  607. package/cli/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  608. package/cli/app/.next-cli-build/server/app/dashboard/profile.rsc +16 -16
  609. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +4 -4
  610. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +3 -3
  611. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
  612. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +5 -5
  613. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +16 -16
  614. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +4 -4
  615. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +7 -7
  616. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +4 -4
  617. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  618. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.rsc +16 -16
  619. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +4 -4
  620. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +3 -3
  621. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +3 -3
  622. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
  623. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +5 -5
  624. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +16 -16
  625. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +4 -4
  626. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +7 -7
  627. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +4 -4
  628. package/cli/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  629. package/cli/app/.next-cli-build/server/app/dashboard/providers.rsc +16 -16
  630. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +4 -4
  631. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +3 -3
  632. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
  633. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +5 -5
  634. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +16 -16
  635. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +4 -4
  636. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +7 -7
  637. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +4 -4
  638. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  639. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +16 -16
  640. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +4 -4
  641. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +3 -3
  642. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
  643. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +5 -5
  644. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +16 -16
  645. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +4 -4
  646. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +7 -7
  647. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +4 -4
  648. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  649. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +15 -15
  650. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +3 -3
  651. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +3 -3
  652. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
  653. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +5 -5
  654. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +15 -15
  655. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_head.segment.rsc +4 -4
  656. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_index.segment.rsc +7 -7
  657. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +4 -4
  658. package/cli/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  659. package/cli/app/.next-cli-build/server/app/dashboard/quota.rsc +16 -16
  660. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +4 -4
  661. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +3 -3
  662. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
  663. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +5 -5
  664. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +16 -16
  665. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +4 -4
  666. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +7 -7
  667. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +4 -4
  668. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
  669. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  670. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  671. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  672. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +14 -14
  673. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +14 -14
  674. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +4 -4
  675. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +7 -7
  676. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +3 -3
  677. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +4 -4
  678. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +3 -3
  679. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +3 -3
  680. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +3 -3
  681. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  682. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.rsc +15 -15
  683. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +3 -3
  684. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +3 -3
  685. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
  686. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +5 -5
  687. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +15 -15
  688. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +4 -4
  689. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +7 -7
  690. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +4 -4
  691. package/cli/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  692. package/cli/app/.next-cli-build/server/app/dashboard/translator.rsc +16 -16
  693. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +4 -4
  694. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +3 -3
  695. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
  696. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +5 -5
  697. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +16 -16
  698. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +4 -4
  699. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +7 -7
  700. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +4 -4
  701. package/cli/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  702. package/cli/app/.next-cli-build/server/app/dashboard/usage.rsc +16 -16
  703. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +4 -4
  704. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +3 -3
  705. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
  706. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +5 -5
  707. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +16 -16
  708. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +4 -4
  709. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +7 -7
  710. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +4 -4
  711. package/cli/app/.next-cli-build/server/app/dashboard.html +1 -1
  712. package/cli/app/.next-cli-build/server/app/dashboard.rsc +15 -15
  713. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +3 -3
  714. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
  715. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +5 -5
  716. package/cli/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +15 -15
  717. package/cli/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +4 -4
  718. package/cli/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +7 -7
  719. package/cli/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +4 -4
  720. package/cli/app/.next-cli-build/server/app/index.html +1 -1
  721. package/cli/app/.next-cli-build/server/app/index.rsc +12 -12
  722. package/cli/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  723. package/cli/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +12 -12
  724. package/cli/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +4 -4
  725. package/cli/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +7 -7
  726. package/cli/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +3 -3
  727. package/cli/app/.next-cli-build/server/app/landing/page.js +2 -2
  728. package/cli/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  729. package/cli/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  730. package/cli/app/.next-cli-build/server/app/landing.html +1 -1
  731. package/cli/app/.next-cli-build/server/app/landing.rsc +14 -14
  732. package/cli/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +14 -14
  733. package/cli/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +4 -4
  734. package/cli/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +7 -7
  735. package/cli/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +3 -3
  736. package/cli/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +4 -4
  737. package/cli/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +3 -3
  738. package/cli/app/.next-cli-build/server/app/login/page.js +2 -2
  739. package/cli/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  740. package/cli/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  741. package/cli/app/.next-cli-build/server/app/login.html +1 -1
  742. package/cli/app/.next-cli-build/server/app/login.rsc +15 -15
  743. package/cli/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +15 -15
  744. package/cli/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +4 -4
  745. package/cli/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +7 -7
  746. package/cli/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +4 -4
  747. package/cli/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +5 -5
  748. package/cli/app/.next-cli-build/server/app/login.segments/login.segment.rsc +3 -3
  749. package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  750. package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  751. package/cli/app/.next-cli-build/server/app/page.js +2 -2
  752. package/cli/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  753. package/cli/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  754. package/cli/app/.next-cli-build/server/app-paths-manifest.json +9 -9
  755. package/cli/app/.next-cli-build/server/chunks/{1779.js → 1019.js} +1 -1
  756. package/cli/app/.next-cli-build/server/chunks/1188.js +1 -0
  757. package/cli/app/.next-cli-build/server/chunks/1396.js +1 -0
  758. package/cli/app/.next-cli-build/server/chunks/{7667.js → 1531.js} +1 -1
  759. package/cli/app/.next-cli-build/server/chunks/1656.js +1 -0
  760. package/cli/app/.next-cli-build/server/chunks/1671.js +1 -0
  761. package/cli/app/.next-cli-build/server/chunks/1813.js +1 -0
  762. package/cli/app/.next-cli-build/server/chunks/1818.js +1 -0
  763. package/cli/app/.next-cli-build/server/chunks/{4934.js → 1998.js} +1 -1
  764. package/cli/app/.next-cli-build/server/chunks/{8031.js → 2007.js} +1 -1
  765. package/cli/app/.next-cli-build/server/chunks/2130.js +1 -0
  766. package/cli/app/.next-cli-build/server/chunks/2409.js +1 -0
  767. package/cli/app/.next-cli-build/server/chunks/241.js +1 -0
  768. package/cli/app/.next-cli-build/server/chunks/2478.js +1 -0
  769. package/cli/app/.next-cli-build/server/chunks/2540.js +1 -0
  770. package/cli/app/.next-cli-build/server/chunks/{4493.js → 2693.js} +1 -1
  771. package/cli/app/.next-cli-build/server/chunks/{9293.js → 2722.js} +25 -25
  772. package/cli/app/.next-cli-build/server/chunks/3104.js +43 -0
  773. package/cli/app/.next-cli-build/server/chunks/3110.js +19 -0
  774. package/cli/app/.next-cli-build/server/chunks/3155.js +60 -0
  775. package/cli/app/.next-cli-build/server/chunks/{1023.js → 3159.js} +1 -1
  776. package/cli/app/.next-cli-build/server/chunks/318.js +183 -0
  777. package/cli/app/.next-cli-build/server/chunks/319.js +45 -0
  778. package/cli/app/.next-cli-build/server/chunks/{4619.js → 3331.js} +1 -1
  779. package/cli/app/.next-cli-build/server/chunks/3407.js +1 -0
  780. package/cli/app/.next-cli-build/server/chunks/3487.js +1 -0
  781. package/cli/app/.next-cli-build/server/chunks/{2417.js → 3593.js} +1 -1
  782. package/cli/app/.next-cli-build/server/chunks/{8953.js → 4013.js} +1 -1
  783. package/cli/app/.next-cli-build/server/chunks/{1167.js → 4055.js} +1 -1
  784. package/cli/app/.next-cli-build/server/chunks/412.js +7 -0
  785. package/cli/app/.next-cli-build/server/chunks/{3552.js → 4136.js} +1 -1
  786. package/cli/app/.next-cli-build/server/chunks/415.js +1 -0
  787. package/cli/app/.next-cli-build/server/chunks/4177.js +1 -0
  788. package/cli/app/.next-cli-build/server/chunks/{1776.js → 4229.js} +1 -1
  789. package/cli/app/.next-cli-build/server/chunks/4253.js +3 -0
  790. package/cli/app/.next-cli-build/server/chunks/4404.js +1 -0
  791. package/cli/app/.next-cli-build/server/chunks/4491.js +1 -0
  792. package/cli/app/.next-cli-build/server/chunks/4632.js +1 -0
  793. package/cli/app/.next-cli-build/server/chunks/4650.js +17 -0
  794. package/cli/app/.next-cli-build/server/chunks/{4395.js → 4739.js} +1 -1
  795. package/cli/app/.next-cli-build/server/chunks/4741.js +20 -0
  796. package/cli/app/.next-cli-build/server/chunks/4746.js +7 -0
  797. package/cli/app/.next-cli-build/server/chunks/4765.js +24 -0
  798. package/cli/app/.next-cli-build/server/chunks/4780.js +1 -0
  799. package/cli/app/.next-cli-build/server/chunks/{4499.js → 5000.js} +2 -2
  800. package/cli/app/.next-cli-build/server/chunks/5024.js +1 -0
  801. package/cli/app/.next-cli-build/server/chunks/507.js +1 -0
  802. package/cli/app/.next-cli-build/server/chunks/5217.js +1 -0
  803. package/cli/app/.next-cli-build/server/chunks/{3580.js → 5236.js} +1 -1
  804. package/cli/app/.next-cli-build/server/chunks/{9570.js → 5258.js} +1 -1
  805. package/cli/app/.next-cli-build/server/chunks/5373.js +66 -0
  806. package/cli/app/.next-cli-build/server/chunks/5433.js +1 -0
  807. package/cli/app/.next-cli-build/server/chunks/5573.js +1 -0
  808. package/cli/app/.next-cli-build/server/chunks/{3881.js → 5681.js} +1 -1
  809. package/cli/app/.next-cli-build/server/chunks/5852.js +8 -0
  810. package/cli/app/.next-cli-build/server/chunks/5949.js +51 -0
  811. package/cli/app/.next-cli-build/server/chunks/{2909.js → 6036.js} +1 -1
  812. package/cli/app/.next-cli-build/server/chunks/{6744.js → 6108.js} +1 -1
  813. package/cli/app/.next-cli-build/server/chunks/{8578.js → 6457.js} +2 -2
  814. package/cli/app/.next-cli-build/server/chunks/6652.js +1 -0
  815. package/cli/app/.next-cli-build/server/chunks/{5370.js → 6802.js} +1 -1
  816. package/cli/app/.next-cli-build/server/chunks/{1469.js → 6844.js} +1 -1
  817. package/cli/app/.next-cli-build/server/chunks/6935.js +1 -0
  818. package/cli/app/.next-cli-build/server/chunks/698.js +1 -0
  819. package/cli/app/.next-cli-build/server/chunks/{4341.js → 7341.js} +1 -1
  820. package/cli/app/.next-cli-build/server/chunks/7774.js +121 -0
  821. package/cli/app/.next-cli-build/server/chunks/7828.js +1 -0
  822. package/cli/app/.next-cli-build/server/chunks/{4880.js → 7965.js} +1 -1
  823. package/cli/app/.next-cli-build/server/chunks/7967.js +1 -0
  824. package/cli/app/.next-cli-build/server/chunks/8157.js +1 -0
  825. package/cli/app/.next-cli-build/server/chunks/8255.js +1 -0
  826. package/cli/app/.next-cli-build/server/chunks/8371.js +1 -0
  827. package/cli/app/.next-cli-build/server/chunks/8450.js +1 -0
  828. package/cli/app/.next-cli-build/server/chunks/8520.js +1 -0
  829. package/cli/app/.next-cli-build/server/chunks/8590.js +1 -0
  830. package/cli/app/.next-cli-build/server/chunks/8895.js +67 -0
  831. package/cli/app/.next-cli-build/server/chunks/891.js +1 -0
  832. package/cli/app/.next-cli-build/server/chunks/8920.js +1 -0
  833. package/cli/app/.next-cli-build/server/chunks/8971.js +1 -0
  834. package/cli/app/.next-cli-build/server/chunks/915.js +63 -0
  835. package/cli/app/.next-cli-build/server/chunks/9489.js +1 -0
  836. package/cli/app/.next-cli-build/server/chunks/{7741.js → 9528.js} +3 -3
  837. package/cli/app/.next-cli-build/server/chunks/9609.js +1 -0
  838. package/cli/app/.next-cli-build/server/chunks/9613.js +1 -0
  839. package/cli/app/.next-cli-build/server/chunks/9858.js +3 -0
  840. package/cli/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  841. package/cli/app/.next-cli-build/server/middleware-react-loadable-manifest.js +1 -1
  842. package/cli/app/.next-cli-build/server/middleware.js +22 -22
  843. package/cli/app/.next-cli-build/server/pages/404.html +1 -1
  844. package/cli/app/.next-cli-build/server/pages/500.html +1 -1
  845. package/cli/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  846. package/cli/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  847. package/cli/app/.next-cli-build/static/chunks/{8434-db0f0049d0262e2e.js → 1992-b492aa3235a8c259.js} +1 -1
  848. package/cli/app/.next-cli-build/static/chunks/1a258343-33aee1e7d9aa500f.js +1 -0
  849. package/cli/app/.next-cli-build/static/chunks/2018-ef32f3ab3ea35dcd.js +66 -0
  850. package/cli/app/.next-cli-build/static/chunks/3794-907785a527d8128b.js +32 -0
  851. package/cli/app/.next-cli-build/static/chunks/{0937d497-33e2049988b7c22e.js → 4bd1b696-e356ca5ba0218e27.js} +1 -1
  852. package/cli/app/.next-cli-build/static/chunks/5242-bb1a1a7ec3bfb62f.js +1 -0
  853. package/cli/app/.next-cli-build/static/chunks/5472-544ea4e7aa338d84.js +1 -0
  854. package/cli/app/.next-cli-build/static/chunks/5497-7d1ff94cc58ff88b.js +7 -0
  855. package/cli/app/.next-cli-build/static/chunks/5950-482b14a8d993bcca.js +1 -0
  856. package/cli/app/.next-cli-build/static/chunks/{3539-25f16e696f32ccdf.js → 6069-6bce779705f69e62.js} +5 -5
  857. package/cli/app/.next-cli-build/static/chunks/7055-e60e20f43bfbe5f8.js +1 -0
  858. package/cli/app/.next-cli-build/static/chunks/{1768.ad4675e8c839dd60.js → 8202.1ffc6ce531e066ce.js} +1 -1
  859. package/cli/app/.next-cli-build/static/chunks/85-5e354ca6c25978b9.js +1 -0
  860. package/cli/app/.next-cli-build/static/chunks/979-224d95321cf78dbd.js +3 -0
  861. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/automation/{page-2ee85b86d7597651.js → page-cc9b0f9ef537c311.js} +1 -1
  862. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/page-c4a2045a626b6173.js +1 -0
  863. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-78f688c92bfd33f8.js +1 -0
  864. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/page-1fd20c51954e29a9.js +1 -0
  865. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-6b0b9cd44867512c.js +1 -0
  866. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/page-d07a4d1d78007f2f.js +1 -0
  867. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/context/page-327a9c6b4894c269.js +1 -0
  868. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-4444a33464a1d419.js +1 -0
  869. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-2365f7b85dd8967d.js → page-27ae2ac497b5fb7a.js} +2 -2
  870. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/page-104279ff16950493.js +1 -0
  871. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-939421769eec6d3b.js → page-599568329c50bcc8.js} +2 -2
  872. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/page-717f8f942951b934.js +1 -0
  873. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/page-f399c8cbafcff3cd.js +1 -0
  874. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-b5aa3e2a4b3c0b17.js +1 -0
  875. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/playground/page-c7ac7e59cdef2ce8.js +1 -0
  876. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-ff8862b4d59f7c46.js +1 -0
  877. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-4bfe29eb86322368.js → page-845cebfee9c2a45f.js} +2 -2
  878. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/page-499682de2c626a83.js +1 -0
  879. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-52ea5f73e4c01b92.js +1 -0
  880. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/{page-69eefaf477523b7d.js → page-e08a36cec64b2567.js} +2 -2
  881. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/pxpipe/{page-930e38c563b5c8a1.js → page-636747e49448e0e8.js} +1 -1
  882. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-c1d6f8802c5c874d.js +1 -0
  883. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/terminal/{page-8da3399a4ed0af0d.js → page-d78611694b7915c0.js} +2 -2
  884. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/page-59f3cc8f19b08fa6.js +1 -0
  885. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-da741d27517645b1.js +1 -0
  886. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-26780f3f0df0345f.js +1 -0
  887. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/layout-ded3017c321c14e3.js +1 -0
  888. package/cli/app/.next-cli-build/static/chunks/app/_global-error/{page-63a0542d75a38025.js → page-0958b3b629c68bd2.js} +1 -1
  889. package/cli/app/.next-cli-build/static/chunks/app/_not-found/page-311966a4d78dec6d.js +1 -0
  890. package/cli/app/.next-cli-build/static/chunks/app/api/auth/login/{route-63a0542d75a38025.js → route-0958b3b629c68bd2.js} +1 -1
  891. package/cli/app/.next-cli-build/static/chunks/app/api/auth/logout/{route-63a0542d75a38025.js → route-0958b3b629c68bd2.js} +1 -1
  892. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/{route-63a0542d75a38025.js → route-0958b3b629c68bd2.js} +1 -1
  893. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-0958b3b629c68bd2.js +1 -0
  894. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-0958b3b629c68bd2.js +1 -0
  895. package/cli/app/.next-cli-build/static/chunks/app/api/auth/status/route-0958b3b629c68bd2.js +1 -0
  896. package/cli/app/.next-cli-build/static/chunks/app/api/cache/stats/route-0958b3b629c68bd2.js +1 -0
  897. package/cli/app/.next-cli-build/static/chunks/app/api/changelog/route-0958b3b629c68bd2.js +1 -0
  898. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-0958b3b629c68bd2.js +1 -0
  899. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-0958b3b629c68bd2.js +1 -0
  900. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-0958b3b629c68bd2.js +1 -0
  901. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-0958b3b629c68bd2.js +1 -0
  902. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-0958b3b629c68bd2.js +1 -0
  903. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-gateway/accounts/route-0958b3b629c68bd2.js +1 -0
  904. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-0958b3b629c68bd2.js +1 -0
  905. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-0958b3b629c68bd2.js +1 -0
  906. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-0958b3b629c68bd2.js +1 -0
  907. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-0958b3b629c68bd2.js +1 -0
  908. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-0958b3b629c68bd2.js +1 -0
  909. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-0958b3b629c68bd2.js +1 -0
  910. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-0958b3b629c68bd2.js +1 -0
  911. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-0958b3b629c68bd2.js +1 -0
  912. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-0958b3b629c68bd2.js +1 -0
  913. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-0958b3b629c68bd2.js +1 -0
  914. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-0958b3b629c68bd2.js +1 -0
  915. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-0958b3b629c68bd2.js +1 -0
  916. package/cli/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-0958b3b629c68bd2.js +1 -0
  917. package/cli/app/.next-cli-build/static/chunks/app/api/combos/route-0958b3b629c68bd2.js +1 -0
  918. package/cli/app/.next-cli-build/static/chunks/app/api/context/[id]/route-0958b3b629c68bd2.js +1 -0
  919. package/cli/app/.next-cli-build/static/chunks/app/api/context/bulk/route-0958b3b629c68bd2.js +1 -0
  920. package/cli/app/.next-cli-build/static/chunks/app/api/context/route-0958b3b629c68bd2.js +1 -0
  921. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/chat/completions/route-0958b3b629c68bd2.js +1 -0
  922. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-0958b3b629c68bd2.js +1 -0
  923. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-0958b3b629c68bd2.js +1 -0
  924. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-0958b3b629c68bd2.js +1 -0
  925. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/start/route-0958b3b629c68bd2.js +1 -0
  926. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/status/route-0958b3b629c68bd2.js +1 -0
  927. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-0958b3b629c68bd2.js +1 -0
  928. package/cli/app/.next-cli-build/static/chunks/app/api/health/ready/route-0958b3b629c68bd2.js +1 -0
  929. package/cli/app/.next-cli-build/static/chunks/app/api/health/route-0958b3b629c68bd2.js +1 -0
  930. package/cli/app/.next-cli-build/static/chunks/app/api/init/route-0958b3b629c68bd2.js +1 -0
  931. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/rotate/route-0958b3b629c68bd2.js +1 -0
  932. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-0958b3b629c68bd2.js +1 -0
  933. package/cli/app/.next-cli-build/static/chunks/app/api/keys/route-0958b3b629c68bd2.js +1 -0
  934. package/cli/app/.next-cli-build/static/chunks/app/api/locale/route-0958b3b629c68bd2.js +1 -0
  935. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-0958b3b629c68bd2.js +1 -0
  936. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-0958b3b629c68bd2.js +1 -0
  937. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-0958b3b629c68bd2.js +1 -0
  938. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-0958b3b629c68bd2.js +1 -0
  939. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-0958b3b629c68bd2.js +1 -0
  940. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-0958b3b629c68bd2.js +1 -0
  941. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-0958b3b629c68bd2.js +1 -0
  942. package/cli/app/.next-cli-build/static/chunks/app/api/metrics/route-0958b3b629c68bd2.js +1 -0
  943. package/cli/app/.next-cli-build/static/chunks/app/api/models/alias/route-0958b3b629c68bd2.js +1 -0
  944. package/cli/app/.next-cli-build/static/chunks/app/api/models/availability/route-0958b3b629c68bd2.js +1 -0
  945. package/cli/app/.next-cli-build/static/chunks/app/api/models/custom/route-0958b3b629c68bd2.js +1 -0
  946. package/cli/app/.next-cli-build/static/chunks/app/api/models/disabled/route-0958b3b629c68bd2.js +1 -0
  947. package/cli/app/.next-cli-build/static/chunks/app/api/models/route-0958b3b629c68bd2.js +1 -0
  948. package/cli/app/.next-cli-build/static/chunks/app/api/models/test/route-0958b3b629c68bd2.js +1 -0
  949. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-0958b3b629c68bd2.js +1 -0
  950. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route-0958b3b629c68bd2.js +1 -0
  951. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route-0958b3b629c68bd2.js +1 -0
  952. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/route-0958b3b629c68bd2.js +1 -0
  953. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/latest/route-0958b3b629c68bd2.js +1 -0
  954. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/route-0958b3b629c68bd2.js +1 -0
  955. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/autoclaw/bulk-import/[jobId]/cancel/route-0958b3b629c68bd2.js +1 -0
  956. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/autoclaw/bulk-import/[jobId]/manual/[workerId]/route-0958b3b629c68bd2.js +1 -0
  957. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/autoclaw/bulk-import/[jobId]/route-0958b3b629c68bd2.js +1 -0
  958. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/autoclaw/bulk-import/latest/route-0958b3b629c68bd2.js +1 -0
  959. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/autoclaw/bulk-import/route-0958b3b629c68bd2.js +1 -0
  960. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route-0958b3b629c68bd2.js +1 -0
  961. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route-0958b3b629c68bd2.js +1 -0
  962. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route-0958b3b629c68bd2.js +1 -0
  963. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/latest/route-0958b3b629c68bd2.js +1 -0
  964. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/route-0958b3b629c68bd2.js +1 -0
  965. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route-0958b3b629c68bd2.js +1 -0
  966. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route-0958b3b629c68bd2.js +1 -0
  967. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/route-0958b3b629c68bd2.js +1 -0
  968. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/latest/route-0958b3b629c68bd2.js +1 -0
  969. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/route-0958b3b629c68bd2.js +1 -0
  970. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-token/route-0958b3b629c68bd2.js +1 -0
  971. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/quota-cookie/route-0958b3b629c68bd2.js +1 -0
  972. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route-0958b3b629c68bd2.js +1 -0
  973. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route-0958b3b629c68bd2.js +1 -0
  974. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route-0958b3b629c68bd2.js +1 -0
  975. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/latest/route-0958b3b629c68bd2.js +1 -0
  976. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-0958b3b629c68bd2.js +1 -0
  977. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-token/route-0958b3b629c68bd2.js +1 -0
  978. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/quota-cookie/route-0958b3b629c68bd2.js +1 -0
  979. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-0958b3b629c68bd2.js +1 -0
  980. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-0958b3b629c68bd2.js +1 -0
  981. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-0958b3b629c68bd2.js +1 -0
  982. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-0958b3b629c68bd2.js +1 -0
  983. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route-0958b3b629c68bd2.js +1 -0
  984. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route-0958b3b629c68bd2.js +1 -0
  985. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/route-0958b3b629c68bd2.js +1 -0
  986. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/latest/route-0958b3b629c68bd2.js +1 -0
  987. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-0958b3b629c68bd2.js +1 -0
  988. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-0958b3b629c68bd2.js +1 -0
  989. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-0958b3b629c68bd2.js +1 -0
  990. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route-0958b3b629c68bd2.js +1 -0
  991. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route-0958b3b629c68bd2.js +1 -0
  992. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/route-0958b3b629c68bd2.js +1 -0
  993. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/latest/route-0958b3b629c68bd2.js +1 -0
  994. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/route-0958b3b629c68bd2.js +1 -0
  995. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-0958b3b629c68bd2.js +1 -0
  996. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-0958b3b629c68bd2.js +1 -0
  997. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-0958b3b629c68bd2.js +1 -0
  998. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route-0958b3b629c68bd2.js +1 -0
  999. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route-0958b3b629c68bd2.js +1 -0
  1000. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/route-0958b3b629c68bd2.js +1 -0
  1001. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/latest/route-0958b3b629c68bd2.js +1 -0
  1002. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/route-0958b3b629c68bd2.js +1 -0
  1003. package/cli/app/.next-cli-build/static/chunks/app/api/pricing/route-0958b3b629c68bd2.js +1 -0
  1004. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-0958b3b629c68bd2.js +1 -0
  1005. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-0958b3b629c68bd2.js +1 -0
  1006. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-0958b3b629c68bd2.js +1 -0
  1007. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-0958b3b629c68bd2.js +1 -0
  1008. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-0958b3b629c68bd2.js +1 -0
  1009. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-0958b3b629c68bd2.js +1 -0
  1010. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-0958b3b629c68bd2.js +1 -0
  1011. package/cli/app/.next-cli-build/static/chunks/app/api/providers/bulk-delete/route-0958b3b629c68bd2.js +1 -0
  1012. package/cli/app/.next-cli-build/static/chunks/app/api/providers/client/route-0958b3b629c68bd2.js +1 -0
  1013. package/cli/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-0958b3b629c68bd2.js +1 -0
  1014. package/cli/app/.next-cli-build/static/chunks/app/api/providers/route-0958b3b629c68bd2.js +1 -0
  1015. package/cli/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-0958b3b629c68bd2.js +1 -0
  1016. package/cli/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-0958b3b629c68bd2.js +1 -0
  1017. package/cli/app/.next-cli-build/static/chunks/app/api/providers/validate/route-0958b3b629c68bd2.js +1 -0
  1018. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-0958b3b629c68bd2.js +1 -0
  1019. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-0958b3b629c68bd2.js +1 -0
  1020. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-0958b3b629c68bd2.js +1 -0
  1021. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-0958b3b629c68bd2.js +1 -0
  1022. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-0958b3b629c68bd2.js +1 -0
  1023. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-0958b3b629c68bd2.js +1 -0
  1024. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-0958b3b629c68bd2.js +1 -0
  1025. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-0958b3b629c68bd2.js +1 -0
  1026. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-0958b3b629c68bd2.js +1 -0
  1027. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-0958b3b629c68bd2.js +1 -0
  1028. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-0958b3b629c68bd2.js +1 -0
  1029. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-0958b3b629c68bd2.js +1 -0
  1030. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-0958b3b629c68bd2.js +1 -0
  1031. package/cli/app/.next-cli-build/static/chunks/app/api/settings/database/route-0958b3b629c68bd2.js +1 -0
  1032. package/cli/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-0958b3b629c68bd2.js +1 -0
  1033. package/cli/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-0958b3b629c68bd2.js +1 -0
  1034. package/cli/app/.next-cli-build/static/chunks/app/api/settings/route-0958b3b629c68bd2.js +1 -0
  1035. package/cli/app/.next-cli-build/static/chunks/app/api/shutdown/route-0958b3b629c68bd2.js +1 -0
  1036. package/cli/app/.next-cli-build/static/chunks/app/api/tags/route-0958b3b629c68bd2.js +1 -0
  1037. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/setup/route-0958b3b629c68bd2.js +1 -0
  1038. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/status/route-0958b3b629c68bd2.js +1 -0
  1039. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/unlock/route-0958b3b629c68bd2.js +1 -0
  1040. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/input/route-0958b3b629c68bd2.js +1 -0
  1041. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/resize/route-0958b3b629c68bd2.js +1 -0
  1042. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/route-0958b3b629c68bd2.js +1 -0
  1043. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/stream/route-0958b3b629c68bd2.js +1 -0
  1044. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/route-0958b3b629c68bd2.js +1 -0
  1045. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-0958b3b629c68bd2.js +1 -0
  1046. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-0958b3b629c68bd2.js +1 -0
  1047. package/cli/app/.next-cli-build/static/chunks/app/api/translator/load/route-0958b3b629c68bd2.js +1 -0
  1048. package/cli/app/.next-cli-build/static/chunks/app/api/translator/save/route-0958b3b629c68bd2.js +1 -0
  1049. package/cli/app/.next-cli-build/static/chunks/app/api/translator/send/route-0958b3b629c68bd2.js +1 -0
  1050. package/cli/app/.next-cli-build/static/chunks/app/api/translator/translate/route-0958b3b629c68bd2.js +1 -0
  1051. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-0958b3b629c68bd2.js +1 -0
  1052. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-0958b3b629c68bd2.js +1 -0
  1053. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-0958b3b629c68bd2.js +1 -0
  1054. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-0958b3b629c68bd2.js +1 -0
  1055. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-0958b3b629c68bd2.js +1 -0
  1056. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-0958b3b629c68bd2.js +1 -0
  1057. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-0958b3b629c68bd2.js +1 -0
  1058. package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-0958b3b629c68bd2.js +1 -0
  1059. package/cli/app/.next-cli-build/static/chunks/app/api/usage/aggregate/route-0958b3b629c68bd2.js +1 -0
  1060. package/cli/app/.next-cli-build/static/chunks/app/api/usage/chart/route-0958b3b629c68bd2.js +1 -0
  1061. package/cli/app/.next-cli-build/static/chunks/app/api/usage/history/route-0958b3b629c68bd2.js +1 -0
  1062. package/cli/app/.next-cli-build/static/chunks/app/api/usage/providers/route-0958b3b629c68bd2.js +1 -0
  1063. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-0958b3b629c68bd2.js +1 -0
  1064. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-0958b3b629c68bd2.js +1 -0
  1065. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stats/route-0958b3b629c68bd2.js +1 -0
  1066. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stream/route-0958b3b629c68bd2.js +1 -0
  1067. package/cli/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-0958b3b629c68bd2.js +1 -0
  1068. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-0958b3b629c68bd2.js +1 -0
  1069. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-0958b3b629c68bd2.js +1 -0
  1070. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-0958b3b629c68bd2.js +1 -0
  1071. package/cli/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-0958b3b629c68bd2.js +1 -0
  1072. package/cli/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-0958b3b629c68bd2.js +1 -0
  1073. package/cli/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-0958b3b629c68bd2.js +1 -0
  1074. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-0958b3b629c68bd2.js +1 -0
  1075. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/route-0958b3b629c68bd2.js +1 -0
  1076. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-0958b3b629c68bd2.js +1 -0
  1077. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-0958b3b629c68bd2.js +1 -0
  1078. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/route-0958b3b629c68bd2.js +1 -0
  1079. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-0958b3b629c68bd2.js +1 -0
  1080. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/route-0958b3b629c68bd2.js +1 -0
  1081. package/cli/app/.next-cli-build/static/chunks/app/api/v1/route-0958b3b629c68bd2.js +1 -0
  1082. package/cli/app/.next-cli-build/static/chunks/app/api/v1/search/route-0958b3b629c68bd2.js +1 -0
  1083. package/cli/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-0958b3b629c68bd2.js +1 -0
  1084. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-0958b3b629c68bd2.js +1 -0
  1085. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-0958b3b629c68bd2.js +1 -0
  1086. package/cli/app/.next-cli-build/static/chunks/app/api/version/route-0958b3b629c68bd2.js +1 -0
  1087. package/cli/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-0958b3b629c68bd2.js +1 -0
  1088. package/cli/app/.next-cli-build/static/chunks/app/api/version/update/route-0958b3b629c68bd2.js +1 -0
  1089. package/cli/app/.next-cli-build/static/chunks/app/callback/page-46f416e4d9761459.js +1 -0
  1090. package/cli/app/.next-cli-build/static/chunks/app/dashboard/settings/pricing/page-73d3a4f63b04d3b7.js +1 -0
  1091. package/cli/app/.next-cli-build/static/chunks/app/landing/page-c25b710b30674c8b.js +1 -0
  1092. package/cli/app/.next-cli-build/static/chunks/app/layout-877a5e197a59de85.js +1 -0
  1093. package/cli/app/.next-cli-build/static/chunks/app/login/page-6d5463b29f4c2091.js +1 -0
  1094. package/cli/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-0958b3b629c68bd2.js +1 -0
  1095. package/cli/app/.next-cli-build/static/chunks/app/page-0958b3b629c68bd2.js +1 -0
  1096. package/cli/app/.next-cli-build/static/chunks/{fcafe1ac-fb00beefde649e9f.js → e868780c-9fd397bedad188d4.js} +1 -1
  1097. package/cli/app/.next-cli-build/static/chunks/framework-711ef29bc66f648c.js +1 -0
  1098. package/cli/app/.next-cli-build/static/chunks/main-1539aac2075bb2e7.js +5 -0
  1099. package/cli/app/.next-cli-build/static/chunks/main-app-19158719aba2802f.js +1 -0
  1100. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-0958b3b629c68bd2.js +1 -0
  1101. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-0958b3b629c68bd2.js +1 -0
  1102. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/global-error-af60171a653b28c7.js +1 -0
  1103. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-0958b3b629c68bd2.js +1 -0
  1104. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-0958b3b629c68bd2.js +1 -0
  1105. package/cli/app/.next-cli-build/static/chunks/{webpack-9c203f4468cc2f7c.js → webpack-948b910ed7afd0b8.js} +1 -1
  1106. package/cli/app/.next-cli-build/static/css/1f0d0f24ab2983b7.css +1 -0
  1107. package/cli/app/.next-cli-build/static/css/{f0a349c70ab9fca8.css → 30eaa31d38376b4f.css} +1 -1
  1108. package/cli/app/.next-cli-build/static/css/{008a05b0ad6b854a.css → e07f2bf4fa519943.css} +1 -1
  1109. package/cli/app/.next-cli-build/static/media/material-symbols-outlined.5445fd89.woff2 +0 -0
  1110. package/cli/app/CHANGELOG.md +9 -0
  1111. package/cli/app/package.json +1 -1
  1112. package/cli/app/server.js +1 -1
  1113. package/cli/package.json +1 -1
  1114. package/open-sse/config/providerModels.js +5 -2
  1115. package/open-sse/services/usage.js +8 -7
  1116. package/package.json +1 -1
  1117. package/src/shared/components/BulkAccountAutomationModal.js +15 -6
  1118. package/cli/app/.next-cli-build/server/chunks/1046.js +0 -1
  1119. package/cli/app/.next-cli-build/server/chunks/1237.js +0 -51
  1120. package/cli/app/.next-cli-build/server/chunks/1500.js +0 -1
  1121. package/cli/app/.next-cli-build/server/chunks/1536.js +0 -1
  1122. package/cli/app/.next-cli-build/server/chunks/1586.js +0 -7
  1123. package/cli/app/.next-cli-build/server/chunks/1637.js +0 -3
  1124. package/cli/app/.next-cli-build/server/chunks/2027.js +0 -1
  1125. package/cli/app/.next-cli-build/server/chunks/2282.js +0 -1
  1126. package/cli/app/.next-cli-build/server/chunks/23.js +0 -63
  1127. package/cli/app/.next-cli-build/server/chunks/2423.js +0 -1
  1128. package/cli/app/.next-cli-build/server/chunks/2674.js +0 -121
  1129. package/cli/app/.next-cli-build/server/chunks/3174.js +0 -19
  1130. package/cli/app/.next-cli-build/server/chunks/3538.js +0 -1
  1131. package/cli/app/.next-cli-build/server/chunks/3560.js +0 -7
  1132. package/cli/app/.next-cli-build/server/chunks/3833.js +0 -1
  1133. package/cli/app/.next-cli-build/server/chunks/3871.js +0 -60
  1134. package/cli/app/.next-cli-build/server/chunks/3972.js +0 -1
  1135. package/cli/app/.next-cli-build/server/chunks/4014.js +0 -1
  1136. package/cli/app/.next-cli-build/server/chunks/4088.js +0 -1
  1137. package/cli/app/.next-cli-build/server/chunks/4293.js +0 -1
  1138. package/cli/app/.next-cli-build/server/chunks/4350.js +0 -1
  1139. package/cli/app/.next-cli-build/server/chunks/4441.js +0 -24
  1140. package/cli/app/.next-cli-build/server/chunks/4539.js +0 -1
  1141. package/cli/app/.next-cli-build/server/chunks/46.js +0 -17
  1142. package/cli/app/.next-cli-build/server/chunks/4607.js +0 -18
  1143. package/cli/app/.next-cli-build/server/chunks/4693.js +0 -1
  1144. package/cli/app/.next-cli-build/server/chunks/4959.js +0 -1
  1145. package/cli/app/.next-cli-build/server/chunks/497.js +0 -1
  1146. package/cli/app/.next-cli-build/server/chunks/5015.js +0 -67
  1147. package/cli/app/.next-cli-build/server/chunks/5337.js +0 -1
  1148. package/cli/app/.next-cli-build/server/chunks/5614.js +0 -8
  1149. package/cli/app/.next-cli-build/server/chunks/5747.js +0 -1
  1150. package/cli/app/.next-cli-build/server/chunks/5956.js +0 -1
  1151. package/cli/app/.next-cli-build/server/chunks/6041.js +0 -1
  1152. package/cli/app/.next-cli-build/server/chunks/6170.js +0 -3
  1153. package/cli/app/.next-cli-build/server/chunks/6220.js +0 -1
  1154. package/cli/app/.next-cli-build/server/chunks/6372.js +0 -1
  1155. package/cli/app/.next-cli-build/server/chunks/6408.js +0 -43
  1156. package/cli/app/.next-cli-build/server/chunks/6673.js +0 -1
  1157. package/cli/app/.next-cli-build/server/chunks/6714.js +0 -1
  1158. package/cli/app/.next-cli-build/server/chunks/733.js +0 -1
  1159. package/cli/app/.next-cli-build/server/chunks/7716.js +0 -1
  1160. package/cli/app/.next-cli-build/server/chunks/7729.js +0 -1
  1161. package/cli/app/.next-cli-build/server/chunks/7806.js +0 -1
  1162. package/cli/app/.next-cli-build/server/chunks/7870.js +0 -1
  1163. package/cli/app/.next-cli-build/server/chunks/8180.js +0 -1
  1164. package/cli/app/.next-cli-build/server/chunks/8182.js +0 -1
  1165. package/cli/app/.next-cli-build/server/chunks/8183.js +0 -1
  1166. package/cli/app/.next-cli-build/server/chunks/8227.js +0 -1
  1167. package/cli/app/.next-cli-build/server/chunks/83.js +0 -45
  1168. package/cli/app/.next-cli-build/server/chunks/8341.js +0 -1
  1169. package/cli/app/.next-cli-build/server/chunks/857.js +0 -1
  1170. package/cli/app/.next-cli-build/server/chunks/8669.js +0 -1
  1171. package/cli/app/.next-cli-build/server/chunks/8779.js +0 -1
  1172. package/cli/app/.next-cli-build/server/chunks/9001.js +0 -1
  1173. package/cli/app/.next-cli-build/server/chunks/906.js +0 -183
  1174. package/cli/app/.next-cli-build/server/chunks/9345.js +0 -1
  1175. package/cli/app/.next-cli-build/server/chunks/9901.js +0 -1
  1176. package/cli/app/.next-cli-build/server/chunks/9992.js +0 -66
  1177. package/cli/app/.next-cli-build/static/chunks/1096-6d775ecc28cf6340.js +0 -1
  1178. package/cli/app/.next-cli-build/static/chunks/1554-f9422191725f4f61.js +0 -1
  1179. package/cli/app/.next-cli-build/static/chunks/1858-5de22f4a0f7873ea.js +0 -32
  1180. package/cli/app/.next-cli-build/static/chunks/2b9ff8ee-8330dc76023de107.js +0 -1
  1181. package/cli/app/.next-cli-build/static/chunks/4391-0e471d2e761014ea.js +0 -3
  1182. package/cli/app/.next-cli-build/static/chunks/6656-0ca5257ec474f863.js +0 -66
  1183. package/cli/app/.next-cli-build/static/chunks/7783-7a4ed0063ec0fecc.js +0 -7
  1184. package/cli/app/.next-cli-build/static/chunks/7813-e1ba7449a3791419.js +0 -1
  1185. package/cli/app/.next-cli-build/static/chunks/8689-ee86215b9a3eb108.js +0 -1
  1186. package/cli/app/.next-cli-build/static/chunks/888-1894db92ff847dbb.js +0 -1
  1187. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/page-bad8ff5503e4f0b7.js +0 -1
  1188. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-3fb4f7227c4ab57f.js +0 -1
  1189. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/page-9459e82acdd078ac.js +0 -1
  1190. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-f411959991f96990.js +0 -1
  1191. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/page-1a77fd86f2a4922a.js +0 -1
  1192. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/context/page-63e5ceb81d87c300.js +0 -1
  1193. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-1a097de73412d440.js +0 -1
  1194. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/page-7427ee87015d1113.js +0 -1
  1195. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/page-ca761e638d38dae4.js +0 -1
  1196. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/page-eeb71d37d39b3586.js +0 -1
  1197. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-1c1a986664906bea.js +0 -1
  1198. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/playground/page-284542c819665387.js +0 -1
  1199. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-30229a682f3cb8df.js +0 -1
  1200. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/page-71ca5c61fe011c5b.js +0 -1
  1201. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-fa8e4cba2691a844.js +0 -1
  1202. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-fb96c1c4474868b3.js +0 -1
  1203. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/page-ef6d294917d01201.js +0 -1
  1204. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-86b61948afed34e8.js +0 -1
  1205. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-b4939c80e73c7dfd.js +0 -1
  1206. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/layout-2e14da9e57c3e171.js +0 -1
  1207. package/cli/app/.next-cli-build/static/chunks/app/_not-found/page-85ef61223793be87.js +0 -1
  1208. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-63a0542d75a38025.js +0 -1
  1209. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-63a0542d75a38025.js +0 -1
  1210. package/cli/app/.next-cli-build/static/chunks/app/api/auth/status/route-63a0542d75a38025.js +0 -1
  1211. package/cli/app/.next-cli-build/static/chunks/app/api/cache/stats/route-63a0542d75a38025.js +0 -1
  1212. package/cli/app/.next-cli-build/static/chunks/app/api/changelog/route-63a0542d75a38025.js +0 -1
  1213. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-63a0542d75a38025.js +0 -1
  1214. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-63a0542d75a38025.js +0 -1
  1215. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-63a0542d75a38025.js +0 -1
  1216. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-63a0542d75a38025.js +0 -1
  1217. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-63a0542d75a38025.js +0 -1
  1218. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-gateway/accounts/route-63a0542d75a38025.js +0 -1
  1219. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-63a0542d75a38025.js +0 -1
  1220. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-63a0542d75a38025.js +0 -1
  1221. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-63a0542d75a38025.js +0 -1
  1222. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-63a0542d75a38025.js +0 -1
  1223. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-63a0542d75a38025.js +0 -1
  1224. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-63a0542d75a38025.js +0 -1
  1225. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-63a0542d75a38025.js +0 -1
  1226. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-63a0542d75a38025.js +0 -1
  1227. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-63a0542d75a38025.js +0 -1
  1228. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-63a0542d75a38025.js +0 -1
  1229. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-63a0542d75a38025.js +0 -1
  1230. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-63a0542d75a38025.js +0 -1
  1231. package/cli/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-63a0542d75a38025.js +0 -1
  1232. package/cli/app/.next-cli-build/static/chunks/app/api/combos/route-63a0542d75a38025.js +0 -1
  1233. package/cli/app/.next-cli-build/static/chunks/app/api/context/[id]/route-63a0542d75a38025.js +0 -1
  1234. package/cli/app/.next-cli-build/static/chunks/app/api/context/bulk/route-63a0542d75a38025.js +0 -1
  1235. package/cli/app/.next-cli-build/static/chunks/app/api/context/route-63a0542d75a38025.js +0 -1
  1236. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/chat/completions/route-63a0542d75a38025.js +0 -1
  1237. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-63a0542d75a38025.js +0 -1
  1238. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-63a0542d75a38025.js +0 -1
  1239. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-63a0542d75a38025.js +0 -1
  1240. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/start/route-63a0542d75a38025.js +0 -1
  1241. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/status/route-63a0542d75a38025.js +0 -1
  1242. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-63a0542d75a38025.js +0 -1
  1243. package/cli/app/.next-cli-build/static/chunks/app/api/health/ready/route-63a0542d75a38025.js +0 -1
  1244. package/cli/app/.next-cli-build/static/chunks/app/api/health/route-63a0542d75a38025.js +0 -1
  1245. package/cli/app/.next-cli-build/static/chunks/app/api/init/route-63a0542d75a38025.js +0 -1
  1246. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/rotate/route-63a0542d75a38025.js +0 -1
  1247. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-63a0542d75a38025.js +0 -1
  1248. package/cli/app/.next-cli-build/static/chunks/app/api/keys/route-63a0542d75a38025.js +0 -1
  1249. package/cli/app/.next-cli-build/static/chunks/app/api/locale/route-63a0542d75a38025.js +0 -1
  1250. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-63a0542d75a38025.js +0 -1
  1251. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-63a0542d75a38025.js +0 -1
  1252. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-63a0542d75a38025.js +0 -1
  1253. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-63a0542d75a38025.js +0 -1
  1254. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-63a0542d75a38025.js +0 -1
  1255. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-63a0542d75a38025.js +0 -1
  1256. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-63a0542d75a38025.js +0 -1
  1257. package/cli/app/.next-cli-build/static/chunks/app/api/metrics/route-63a0542d75a38025.js +0 -1
  1258. package/cli/app/.next-cli-build/static/chunks/app/api/models/alias/route-63a0542d75a38025.js +0 -1
  1259. package/cli/app/.next-cli-build/static/chunks/app/api/models/availability/route-63a0542d75a38025.js +0 -1
  1260. package/cli/app/.next-cli-build/static/chunks/app/api/models/custom/route-63a0542d75a38025.js +0 -1
  1261. package/cli/app/.next-cli-build/static/chunks/app/api/models/disabled/route-63a0542d75a38025.js +0 -1
  1262. package/cli/app/.next-cli-build/static/chunks/app/api/models/route-63a0542d75a38025.js +0 -1
  1263. package/cli/app/.next-cli-build/static/chunks/app/api/models/test/route-63a0542d75a38025.js +0 -1
  1264. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-63a0542d75a38025.js +0 -1
  1265. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route-63a0542d75a38025.js +0 -1
  1266. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route-63a0542d75a38025.js +0 -1
  1267. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/route-63a0542d75a38025.js +0 -1
  1268. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/latest/route-63a0542d75a38025.js +0 -1
  1269. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/route-63a0542d75a38025.js +0 -1
  1270. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/autoclaw/bulk-import/[jobId]/cancel/route-63a0542d75a38025.js +0 -1
  1271. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/autoclaw/bulk-import/[jobId]/manual/[workerId]/route-63a0542d75a38025.js +0 -1
  1272. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/autoclaw/bulk-import/[jobId]/route-63a0542d75a38025.js +0 -1
  1273. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/autoclaw/bulk-import/latest/route-63a0542d75a38025.js +0 -1
  1274. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/autoclaw/bulk-import/route-63a0542d75a38025.js +0 -1
  1275. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route-63a0542d75a38025.js +0 -1
  1276. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route-63a0542d75a38025.js +0 -1
  1277. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route-63a0542d75a38025.js +0 -1
  1278. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/latest/route-63a0542d75a38025.js +0 -1
  1279. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/route-63a0542d75a38025.js +0 -1
  1280. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route-63a0542d75a38025.js +0 -1
  1281. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route-63a0542d75a38025.js +0 -1
  1282. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/route-63a0542d75a38025.js +0 -1
  1283. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/latest/route-63a0542d75a38025.js +0 -1
  1284. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/route-63a0542d75a38025.js +0 -1
  1285. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-token/route-63a0542d75a38025.js +0 -1
  1286. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/quota-cookie/route-63a0542d75a38025.js +0 -1
  1287. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route-63a0542d75a38025.js +0 -1
  1288. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route-63a0542d75a38025.js +0 -1
  1289. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route-63a0542d75a38025.js +0 -1
  1290. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/latest/route-63a0542d75a38025.js +0 -1
  1291. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-63a0542d75a38025.js +0 -1
  1292. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-token/route-63a0542d75a38025.js +0 -1
  1293. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/quota-cookie/route-63a0542d75a38025.js +0 -1
  1294. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-63a0542d75a38025.js +0 -1
  1295. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-63a0542d75a38025.js +0 -1
  1296. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-63a0542d75a38025.js +0 -1
  1297. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-63a0542d75a38025.js +0 -1
  1298. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route-63a0542d75a38025.js +0 -1
  1299. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route-63a0542d75a38025.js +0 -1
  1300. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/route-63a0542d75a38025.js +0 -1
  1301. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/latest/route-63a0542d75a38025.js +0 -1
  1302. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-63a0542d75a38025.js +0 -1
  1303. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-63a0542d75a38025.js +0 -1
  1304. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-63a0542d75a38025.js +0 -1
  1305. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route-63a0542d75a38025.js +0 -1
  1306. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route-63a0542d75a38025.js +0 -1
  1307. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/route-63a0542d75a38025.js +0 -1
  1308. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/latest/route-63a0542d75a38025.js +0 -1
  1309. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/route-63a0542d75a38025.js +0 -1
  1310. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-63a0542d75a38025.js +0 -1
  1311. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-63a0542d75a38025.js +0 -1
  1312. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-63a0542d75a38025.js +0 -1
  1313. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route-63a0542d75a38025.js +0 -1
  1314. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route-63a0542d75a38025.js +0 -1
  1315. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/route-63a0542d75a38025.js +0 -1
  1316. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/latest/route-63a0542d75a38025.js +0 -1
  1317. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/route-63a0542d75a38025.js +0 -1
  1318. package/cli/app/.next-cli-build/static/chunks/app/api/pricing/route-63a0542d75a38025.js +0 -1
  1319. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-63a0542d75a38025.js +0 -1
  1320. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-63a0542d75a38025.js +0 -1
  1321. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-63a0542d75a38025.js +0 -1
  1322. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-63a0542d75a38025.js +0 -1
  1323. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-63a0542d75a38025.js +0 -1
  1324. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-63a0542d75a38025.js +0 -1
  1325. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-63a0542d75a38025.js +0 -1
  1326. package/cli/app/.next-cli-build/static/chunks/app/api/providers/bulk-delete/route-63a0542d75a38025.js +0 -1
  1327. package/cli/app/.next-cli-build/static/chunks/app/api/providers/client/route-63a0542d75a38025.js +0 -1
  1328. package/cli/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-63a0542d75a38025.js +0 -1
  1329. package/cli/app/.next-cli-build/static/chunks/app/api/providers/route-63a0542d75a38025.js +0 -1
  1330. package/cli/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-63a0542d75a38025.js +0 -1
  1331. package/cli/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-63a0542d75a38025.js +0 -1
  1332. package/cli/app/.next-cli-build/static/chunks/app/api/providers/validate/route-63a0542d75a38025.js +0 -1
  1333. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-63a0542d75a38025.js +0 -1
  1334. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-63a0542d75a38025.js +0 -1
  1335. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-63a0542d75a38025.js +0 -1
  1336. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-63a0542d75a38025.js +0 -1
  1337. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-63a0542d75a38025.js +0 -1
  1338. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-63a0542d75a38025.js +0 -1
  1339. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-63a0542d75a38025.js +0 -1
  1340. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-63a0542d75a38025.js +0 -1
  1341. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-63a0542d75a38025.js +0 -1
  1342. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-63a0542d75a38025.js +0 -1
  1343. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-63a0542d75a38025.js +0 -1
  1344. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-63a0542d75a38025.js +0 -1
  1345. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-63a0542d75a38025.js +0 -1
  1346. package/cli/app/.next-cli-build/static/chunks/app/api/settings/database/route-63a0542d75a38025.js +0 -1
  1347. package/cli/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-63a0542d75a38025.js +0 -1
  1348. package/cli/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-63a0542d75a38025.js +0 -1
  1349. package/cli/app/.next-cli-build/static/chunks/app/api/settings/route-63a0542d75a38025.js +0 -1
  1350. package/cli/app/.next-cli-build/static/chunks/app/api/shutdown/route-63a0542d75a38025.js +0 -1
  1351. package/cli/app/.next-cli-build/static/chunks/app/api/tags/route-63a0542d75a38025.js +0 -1
  1352. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/setup/route-63a0542d75a38025.js +0 -1
  1353. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/status/route-63a0542d75a38025.js +0 -1
  1354. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/unlock/route-63a0542d75a38025.js +0 -1
  1355. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/input/route-63a0542d75a38025.js +0 -1
  1356. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/resize/route-63a0542d75a38025.js +0 -1
  1357. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/route-63a0542d75a38025.js +0 -1
  1358. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/stream/route-63a0542d75a38025.js +0 -1
  1359. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/route-63a0542d75a38025.js +0 -1
  1360. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-63a0542d75a38025.js +0 -1
  1361. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-63a0542d75a38025.js +0 -1
  1362. package/cli/app/.next-cli-build/static/chunks/app/api/translator/load/route-63a0542d75a38025.js +0 -1
  1363. package/cli/app/.next-cli-build/static/chunks/app/api/translator/save/route-63a0542d75a38025.js +0 -1
  1364. package/cli/app/.next-cli-build/static/chunks/app/api/translator/send/route-63a0542d75a38025.js +0 -1
  1365. package/cli/app/.next-cli-build/static/chunks/app/api/translator/translate/route-63a0542d75a38025.js +0 -1
  1366. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-63a0542d75a38025.js +0 -1
  1367. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-63a0542d75a38025.js +0 -1
  1368. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-63a0542d75a38025.js +0 -1
  1369. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-63a0542d75a38025.js +0 -1
  1370. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-63a0542d75a38025.js +0 -1
  1371. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-63a0542d75a38025.js +0 -1
  1372. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-63a0542d75a38025.js +0 -1
  1373. package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-63a0542d75a38025.js +0 -1
  1374. package/cli/app/.next-cli-build/static/chunks/app/api/usage/aggregate/route-63a0542d75a38025.js +0 -1
  1375. package/cli/app/.next-cli-build/static/chunks/app/api/usage/chart/route-63a0542d75a38025.js +0 -1
  1376. package/cli/app/.next-cli-build/static/chunks/app/api/usage/history/route-63a0542d75a38025.js +0 -1
  1377. package/cli/app/.next-cli-build/static/chunks/app/api/usage/providers/route-63a0542d75a38025.js +0 -1
  1378. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-63a0542d75a38025.js +0 -1
  1379. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-63a0542d75a38025.js +0 -1
  1380. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stats/route-63a0542d75a38025.js +0 -1
  1381. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stream/route-63a0542d75a38025.js +0 -1
  1382. package/cli/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-63a0542d75a38025.js +0 -1
  1383. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-63a0542d75a38025.js +0 -1
  1384. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-63a0542d75a38025.js +0 -1
  1385. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-63a0542d75a38025.js +0 -1
  1386. package/cli/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-63a0542d75a38025.js +0 -1
  1387. package/cli/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-63a0542d75a38025.js +0 -1
  1388. package/cli/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-63a0542d75a38025.js +0 -1
  1389. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-63a0542d75a38025.js +0 -1
  1390. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/route-63a0542d75a38025.js +0 -1
  1391. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-63a0542d75a38025.js +0 -1
  1392. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-63a0542d75a38025.js +0 -1
  1393. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/route-63a0542d75a38025.js +0 -1
  1394. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-63a0542d75a38025.js +0 -1
  1395. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/route-63a0542d75a38025.js +0 -1
  1396. package/cli/app/.next-cli-build/static/chunks/app/api/v1/route-63a0542d75a38025.js +0 -1
  1397. package/cli/app/.next-cli-build/static/chunks/app/api/v1/search/route-63a0542d75a38025.js +0 -1
  1398. package/cli/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-63a0542d75a38025.js +0 -1
  1399. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-63a0542d75a38025.js +0 -1
  1400. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-63a0542d75a38025.js +0 -1
  1401. package/cli/app/.next-cli-build/static/chunks/app/api/version/route-63a0542d75a38025.js +0 -1
  1402. package/cli/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-63a0542d75a38025.js +0 -1
  1403. package/cli/app/.next-cli-build/static/chunks/app/api/version/update/route-63a0542d75a38025.js +0 -1
  1404. package/cli/app/.next-cli-build/static/chunks/app/callback/page-747616215eaffcc5.js +0 -1
  1405. package/cli/app/.next-cli-build/static/chunks/app/dashboard/settings/pricing/page-fc0526db0d6faea4.js +0 -1
  1406. package/cli/app/.next-cli-build/static/chunks/app/landing/page-a972ff4fc204488f.js +0 -1
  1407. package/cli/app/.next-cli-build/static/chunks/app/layout-195d8bc39318cb3f.js +0 -1
  1408. package/cli/app/.next-cli-build/static/chunks/app/login/page-ec9730458515625e.js +0 -1
  1409. package/cli/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-63a0542d75a38025.js +0 -1
  1410. package/cli/app/.next-cli-build/static/chunks/app/page-63a0542d75a38025.js +0 -1
  1411. package/cli/app/.next-cli-build/static/chunks/framework-6b10028fc45b4fba.js +0 -1
  1412. package/cli/app/.next-cli-build/static/chunks/main-af2e4cf487829313.js +0 -5
  1413. package/cli/app/.next-cli-build/static/chunks/main-app-5349704f9863330d.js +0 -1
  1414. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-63a0542d75a38025.js +0 -1
  1415. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-63a0542d75a38025.js +0 -1
  1416. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/global-error-79da82ac351d0af0.js +0 -1
  1417. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-63a0542d75a38025.js +0 -1
  1418. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-63a0542d75a38025.js +0 -1
  1419. package/cli/app/.next-cli-build/static/css/e42a53c7486ca4f0.css +0 -1
  1420. package/cli/app/.next-cli-build/static/media/material-symbols-outlined.cf1f75f5.woff2 +0 -0
  1421. /package/cli/app/.next-cli-build/static/{YyXkaMCJ50p0A8GqlWRS_ → 8vSaSRSThP87Z7Kx5wAce}/_buildManifest.js +0 -0
  1422. /package/cli/app/.next-cli-build/static/{YyXkaMCJ50p0A8GqlWRS_ → 8vSaSRSThP87Z7Kx5wAce}/_ssgManifest.js +0 -0
@@ -1,7 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7783],{2735:(e,t,r)=>{r.d(t,{default:()=>o});var s=r(94799),a=r(34023),l=r(78525),n=r.n(l),i=r(77783);function o({isOpen:e,onSuccess:t,onClose:r}){let[l,n]=(0,a.useState)(""),[d,c]=(0,a.useState)(""),[m,u]=(0,a.useState)(null),[x,p]=(0,a.useState)(!1),[h,b]=(0,a.useState)(!1),[f,g]=(0,a.useState)(!1),[j,v]=(0,a.useState)(!1),y=async()=>{b(!0),u(null),g(!1),v(!1);try{let e=await fetch("/api/oauth/cursor/auto-import"),t=await e.json();t.found?(n(t.accessToken),c(t.machineId),g(!0)):t.windowsManual?v(!0):u(t.error||"Could not auto-detect tokens")}catch(e){u("Failed to auto-detect tokens")}finally{b(!1)}};(0,a.useEffect)(()=>{e&&y()},[e]);let N=async()=>{if(!l.trim())return void u("Please enter an access token");if(!d.trim())return void u("Please enter a machine ID");p(!0),u(null);try{let e=await fetch("/api/oauth/cursor/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accessToken:l.trim(),machineId:d.trim()})}),s=await e.json();if(!e.ok)throw Error(s.error||"Import failed");t?.(),r()}catch(e){u(e.message)}finally{p(!1)}};return(0,s.jsx)(i.aF,{isOpen:e,title:"Connect Cursor IDE",onClose:r,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[h&&(0,s.jsxs)("div",{className:"text-center py-6",children:[(0,s.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-primary/10 flex items-center justify-center",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-3xl text-primary animate-spin",children:"progress_activity"})}),(0,s.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Auto-detecting tokens..."}),(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Reading from Cursor IDE database"})]}),!h&&(0,s.jsxs)(s.Fragment,{children:[f&&(0,s.jsx)("div",{className:"bg-green-50 dark:bg-green-900/20 p-3 rounded-lg border border-green-200 dark:border-green-800",children:(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-green-600 dark:text-green-400",children:"check_circle"}),(0,s.jsx)("p",{className:"text-sm text-green-800 dark:text-green-200",children:"Tokens auto-detected from Cursor IDE successfully!"})]})}),j&&(0,s.jsxs)("div",{className:"bg-amber-50 dark:bg-amber-900/20 p-3 rounded-lg border border-amber-200 dark:border-amber-800 flex flex-col gap-2",children:[(0,s.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-amber-600 dark:text-amber-400",children:"info"}),(0,s.jsx)("p",{className:"text-sm font-medium text-amber-800 dark:text-amber-200",children:"Could not read Cursor database automatically."})]}),(0,s.jsxs)("p",{className:"text-xs text-amber-700 dark:text-amber-300",children:["Make sure Cursor IDE has been opened at least once, then click ",(0,s.jsx)("strong",{children:"Retry"}),". If the problem persists, paste your tokens manually below."]}),(0,s.jsx)(i.$n,{onClick:y,variant:"outline",fullWidth:!0,children:"Retry"})]}),!f&&!j&&!m&&(0,s.jsx)("div",{className:"bg-blue-50 dark:bg-blue-900/20 p-3 rounded-lg border border-blue-200 dark:border-blue-800",children:(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-blue-600 dark:text-blue-400",children:"info"}),(0,s.jsx)("p",{className:"text-sm text-blue-800 dark:text-blue-200",children:"Cursor IDE not detected. Please paste your tokens manually."})]})}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{className:"block text-sm font-medium mb-2",children:["Access Token ",(0,s.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,s.jsx)("textarea",{value:l,onChange:e=>n(e.target.value),placeholder:"Access token will be auto-filled...",rows:3,className:"w-full px-3 py-2 text-sm font-mono border border-border rounded-lg bg-background focus:outline-none focus:border-primary resize-none"})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{className:"block text-sm font-medium mb-2",children:["Machine ID ",(0,s.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,s.jsx)(i.pd,{value:d,onChange:e=>c(e.target.value),placeholder:"Machine ID will be auto-filled...",className:"font-mono text-sm"})]}),m&&(0,s.jsx)("div",{className:"bg-red-50 dark:bg-red-900/20 p-3 rounded-lg border border-red-200 dark:border-red-800",children:(0,s.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400",children:m})}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:N,fullWidth:!0,disabled:x||!l.trim()||!d.trim(),children:x?"Importing...":"Import Token"}),(0,s.jsx)(i.$n,{onClick:r,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})})}o.propTypes={isOpen:n().bool.isRequired,onSuccess:n().func,onClose:n().func.isRequired}},5296:(e,t,r)=>{r.d(t,{default:()=>o});var s=r(94799),a=r(34023),l=r(78525),n=r.n(l),i=r(77783);function o({isOpen:e,onSuccess:t,onClose:r}){let[l,n]=(0,a.useState)(""),[d,c]=(0,a.useState)(!1),[m,u]=(0,a.useState)(null),[x,p]=(0,a.useState)(!1),h=async()=>{if(!l.trim())return void u("Please paste your cookie");c(!0),u(null);try{let e=await fetch("/api/oauth/iflow/cookie",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cookie:l.trim()})}),r=await e.json();if(!e.ok)throw Error(r.error||"Authentication failed");p(!0),setTimeout(()=>{t?.(),b()},1500)}catch(e){u(e.message)}finally{c(!1)}},b=()=>{n(""),u(null),p(!1),r?.()};return(0,s.jsx)(i.aF,{isOpen:e,onClose:b,title:"iFlow Cookie Authentication",children:(0,s.jsx)("div",{className:"space-y-4",children:x?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)("div",{className:"text-6xl mb-4",children:"✅"}),(0,s.jsx)("p",{className:"text-lg font-medium text-text-primary",children:"Authentication Successful!"}),(0,s.jsx)("p",{className:"text-sm text-text-muted mt-2",children:"Fresh API key obtained"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("p",{className:"text-sm text-text-muted",children:["To get a fresh API key, paste your browser cookie from"," ",(0,s.jsx)("a",{href:"https://platform.iflow.cn",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"platform.iflow.cn"})]}),(0,s.jsxs)("div",{className:"bg-surface-secondary p-3 rounded-lg text-xs space-y-2",children:[(0,s.jsx)("p",{className:"font-medium text-text-primary",children:"How to get cookie:"}),(0,s.jsxs)("ol",{className:"list-decimal list-inside space-y-1 text-text-muted",children:[(0,s.jsx)("li",{children:"Open platform.iflow.cn in your browser"}),(0,s.jsx)("li",{children:"Login to your account"}),(0,s.jsx)("li",{children:"Open DevTools (F12) → Application/Storage → Cookies"}),(0,s.jsx)("li",{children:"Copy the entire cookie string (must include BXAuth)"}),(0,s.jsx)("li",{children:"Paste it below"})]})]})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-text-primary",children:"Cookie String"}),(0,s.jsx)("textarea",{value:l,onChange:e=>n(e.target.value),placeholder:"BXAuth=xxx; ...",className:"w-full px-3 py-2 bg-surface-secondary border border-border rounded-lg text-sm text-text-primary placeholder-text-muted focus:outline-none focus:ring-2 focus:ring-primary resize-none",rows:4,disabled:d})]}),m&&(0,s.jsx)("div",{className:"p-3 bg-error/10 border border-error/20 rounded-lg",children:(0,s.jsx)("p",{className:"text-sm text-error",children:m})}),(0,s.jsxs)("div",{className:"flex gap-3 pt-2",children:[(0,s.jsx)(i.$n,{variant:"secondary",onClick:b,disabled:d,fullWidth:!0,children:"Cancel"}),(0,s.jsx)(i.$n,{onClick:h,loading:d,fullWidth:!0,children:"Authenticate"})]})]})})})}o.propTypes={isOpen:n().bool.isRequired,onSuccess:n().func,onClose:n().func}},5531:(e,t,r)=>{r.d(t,{default:()=>u});var s=r(94799),a=r(34023),l=r(78525),n=r.n(l),i=r(16983),o=r(81462),d=r(72078),c=r(39725),m=r(45303);function u({isOpen:e,connection:t,proxyPools:r,onSave:l,onClose:n}){let[x,p]=(0,a.useState)({name:"",priority:1,apiKey:""}),[h,b]=(0,a.useState)({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),[f,g]=(0,a.useState)({accountId:""}),[j,v]=(0,a.useState)(!1),[y,N]=(0,a.useState)(null),[k,w]=(0,a.useState)(!1),[C,S]=(0,a.useState)(null),[I,T]=(0,a.useState)(!1);(0,a.useEffect)(()=>{t&&(p({name:t.name||"",priority:t.priority||1,apiKey:""}),"azure"===t.provider&&t.providerSpecificData&&b({azureEndpoint:t.providerSpecificData.azureEndpoint||"",apiVersion:t.providerSpecificData.apiVersion||"2024-10-01-preview",deployment:t.providerSpecificData.deployment||"",organization:t.providerSpecificData.organization||""}),"cloudflare-ai"===t.provider&&t.providerSpecificData&&g({accountId:t.providerSpecificData.accountId||""}),N(null),S(null))},[t]);let $=t?.authType==="oauth",A=t?.provider==="azure",P=t?.provider==="cloudflare-ai",O=!!t&&((0,m.mq)(t.provider)||(0,m.gb)(t.provider)),R=async()=>{if(t?.provider){v(!0),N(null);try{let e=await fetch(`/api/providers/${t.id}/test`,{method:"POST"}),r=await e.json();N(r.valid?"success":"failed")}catch{N("failed")}finally{v(!1)}}},E=async()=>{if(t?.provider&&x.apiKey){w(!0),S(null);try{let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t.provider,apiKey:x.apiKey,...A?{providerSpecificData:h}:{},...P?{providerSpecificData:f}:{}})}),r=await e.json();S(r.valid?"success":"failed")}catch{S("failed")}finally{w(!1)}}},M=async()=>{if(t){T(!0);try{let e={name:x.name,priority:x.priority};if(!$&&x.apiKey){e.apiKey=x.apiKey;let r="success"===C;if(!r)try{w(!0),S(null);let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t.provider,apiKey:x.apiKey,...A?{providerSpecificData:h}:{},...P?{providerSpecificData:f}:{}})});r=!!(await e.json()).valid,S(r?"success":"failed")}catch{S("failed")}finally{w(!1)}r&&(e.testStatus="active",e.lastError=null,e.lastErrorAt=null)}A&&(e.providerSpecificData={azureEndpoint:h.azureEndpoint,apiVersion:h.apiVersion,deployment:h.deployment,organization:h.organization}),P&&(e.providerSpecificData={accountId:f.accountId}),await l(e)}finally{T(!1)}}};return t?(0,s.jsx)(i.default,{isOpen:e,title:"Edit Connection",onClose:n,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)(o.default,{label:"Name",value:x.name,onChange:e=>p({...x,name:e.target.value}),placeholder:$?"Account name":"Production Key"}),$&&t.email&&(0,s.jsxs)("div",{className:"bg-sidebar/50 p-3 rounded-lg",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted mb-1",children:"Email"}),(0,s.jsx)("p",{className:"font-medium",children:t.email})]}),(0,s.jsx)(o.default,{label:"Priority",type:"number",value:x.priority,onChange:e=>p({...x,priority:Number.parseInt(e.target.value,10)||1})}),!$&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.default,{label:"API Key",type:"password",value:x.apiKey,onChange:e=>p({...x,apiKey:e.target.value}),placeholder:"Enter new API key",hint:"Leave blank to keep the current API key.",className:"flex-1"}),(0,s.jsx)("div",{className:"pt-6",children:(0,s.jsx)(d.default,{onClick:E,disabled:!x.apiKey||k||I,variant:"secondary",children:k?"Checking...":"Check"})})]}),C&&(0,s.jsx)(c.default,{variant:"success"===C?"success":"error",children:"success"===C?"Valid":"Invalid"})]}),A&&(0,s.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,s.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Azure OpenAI Configuration"}),(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(o.default,{label:"Azure Endpoint",value:h.azureEndpoint,onChange:e=>b({...h,azureEndpoint:e.target.value}),placeholder:"https://your-resource.openai.azure.com",hint:"Your Azure OpenAI resource endpoint URL"}),(0,s.jsx)(o.default,{label:"Deployment Name",value:h.deployment,onChange:e=>b({...h,deployment:e.target.value}),placeholder:"gpt-4",hint:"The deployment name in your Azure resource"}),(0,s.jsx)(o.default,{label:"API Version",value:h.apiVersion,onChange:e=>b({...h,apiVersion:e.target.value}),placeholder:"2024-10-01-preview",hint:"Azure OpenAI API version to use"}),(0,s.jsx)(o.default,{label:"Organization",value:h.organization,onChange:e=>b({...h,organization:e.target.value}),placeholder:"Organization ID",hint:"Required for billing"})]})]}),!O&&!A&&!P&&(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(d.default,{onClick:R,variant:"secondary",disabled:j,children:j?"Testing...":"Test Connection"}),y&&(0,s.jsx)(c.default,{variant:"success"===y?"success":"error",children:"success"===y?"Valid":"Failed"})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(d.default,{onClick:M,fullWidth:!0,disabled:I,children:I?"Saving...":"Save"}),(0,s.jsx)(d.default,{onClick:n,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}u.propTypes={isOpen:n().bool.isRequired,connection:n().shape({id:n().string,name:n().string,email:n().string,priority:n().number,authType:n().string,provider:n().string,providerSpecificData:n().object}),proxyPools:n().arrayOf(n().shape({id:n().string,name:n().string})),onSave:n().func.isRequired,onClose:n().func.isRequired}},7364:(e,t,r)=>{r.d(t,{D:()=>o});var s=r(34023),a=r(77813);function l(e){let t=window.matchMedia("(prefers-color-scheme: dark)");return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}function n(){return window.matchMedia("(prefers-color-scheme: dark)").matches}function i(){return!1}function o(){let{theme:e,setTheme:t,toggleTheme:r,initTheme:o}=(0,a.A)(),d=(0,s.useSyncExternalStore)(l,n,i);(0,s.useEffect)(()=>{o()},[o]),(0,s.useEffect)(()=>{if("system"!==e)return;let t=window.matchMedia("(prefers-color-scheme: dark)"),r=()=>o();return t.addEventListener("change",r),()=>t.removeEventListener("change",r)},[e,o]);let c="dark"===e||"system"===e&&d;return{theme:e,setTheme:t,toggleTheme:r,isDark:c}}},7945:(e,t,r)=>{r.d(t,{default:()=>y});var s=r(94799),a=r(34023),l=r(1727),n=r(68202),i=r.n(n),o=r(78525),d=r.n(o),c=r(94994),m=r(81888),u=r(64172),x=r(16778),p=r(39835);function h(){let[e,t]=(0,a.useState)(!1),[r,l]=(0,a.useState)("en");return(0,a.useEffect)(()=>{l(function(){if("u"<typeof document)return"en";let e=document.cookie.split(";").find(e=>e.trim().startsWith(`${u.CL}=`)),t=e?decodeURIComponent(e.split("=")[1]):"en";return(0,u.QC)(t)}())},[e]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{onClick:()=>t(!0),className:"flex items-center justify-center p-2 rounded-lg text-text-muted hover:text-text-main hover:bg-black/5 dark:hover:bg-white/5 transition-all",title:"Language","data-i18n-skip":"true",children:(0,s.jsx)("span",{className:"text-lg leading-none",children:x.h[r]||"\uD83C\uDF10"})}),(0,s.jsx)(p.default,{hideTrigger:!0,isOpen:e,onClose:e=>{t(!1),l(e)}})]})}var b=r(27275),f=r(96579),g=r(65418),j=r(45303),v=r(99646);function y({onMenuClick:e,showMenuButton:t=!0}){let r=(0,l.usePathname)(),n=(0,l.useRouter)(),[o,d]=(0,a.useState)(""),[u,x]=(0,a.useState)(""),{title:p,description:f,icon:k,breadcrumbs:w}=(0,a.useMemo)(()=>(e=>{if(!e)return{title:"",description:"",breadcrumbs:[]};let t=e.match(/\/media-providers\/([^/]+)\/([^/]+)$/);if(t){let e=t[1],r=t[2],s=j.rj.find(t=>t.id===e),a=j.Q2[r];return{title:a?.name||r,description:"",breadcrumbs:[{label:"Media Providers",href:`/dashboard/media-providers/${e}`},{label:s?.label||e,href:`/dashboard/media-providers/${e}`},{label:a?.name||r,image:`/providers/${r}.png`}]}}let r=e.match(/\/media-providers\/([^/]+)$/);if(r){let e=r[1],t=j.rj.find(t=>t.id===e);return{title:t?.label||e,description:`Manage your ${t?.label||e} providers`,icon:t?.icon||"perm_media",breadcrumbs:[]}}let s=e.match(/\/providers\/([^/]+)$/);if(s){let e=s[1],t=g.zN[e]||g.fg[e];if(t)return{title:t.name,description:"",breadcrumbs:[{label:"Providers",href:"/dashboard/providers"},{label:t.name,image:`/providers/${t.id}.png`}]}}return e.includes("/providers")&&!e.includes("/media-providers")?{title:"Providers",description:"Manage your AI provider connections",icon:"dns",breadcrumbs:[]}:e.includes("/combos")?{title:"Combos",description:"Model combos with fallback",icon:"layers",breadcrumbs:[]}:e.includes("/usage")?{title:"Usage & Analytics",description:"Monitor your API usage, token consumption, and request logs",icon:"bar_chart",breadcrumbs:[]}:e.includes("/auth-files")?{title:"Auth Files",description:"Map provider credentials stored in the local database",icon:"vpn_key",breadcrumbs:[]}:e.includes("/quota")?{title:"Quota Tracker",description:"Track and manage your API quota limits",icon:"data_usage",breadcrumbs:[]}:e.includes("/mitm")?{title:"MITM Proxy",description:"Intercept CLI tool traffic and route through ZevaiRouter",icon:"security",breadcrumbs:[]}:e.includes("/cli-tools")?{title:"CLI Tools",description:"Configure CLI tools",icon:"handyman",breadcrumbs:[]}:e.includes("/terminal")?{title:"Terminal",description:"Host web shell — requires a second password",icon:"terminal",breadcrumbs:[]}:e.includes("/automation")?{title:"Automation",description:"Bulk account and workflow automation",icon:"automation",breadcrumbs:[]}:e.includes("/token-saver")?{title:"Token Saver",description:"Reduce prompt tokens before they hit providers",icon:"savings",breadcrumbs:[]}:e.includes("/context")?{title:"Context Inject",description:"Inject shared context into routed requests",icon:"psychology",breadcrumbs:[]}:e.includes("/pxpipe")?{title:"PxPipe",description:"Proxy pipeline status and controls",icon:"cable",breadcrumbs:[]}:e.includes("/proxy-pools")?{title:"Proxy Pools",description:"Manage your proxy pool configurations",icon:"lan",breadcrumbs:[]}:e.includes("/skills")?{title:"Agent Skills",description:"Copy a link and paste to your AI to use ZevaiRouter — no install needed",icon:"extension",breadcrumbs:[]}:e.includes("/endpoint")?{title:"Endpoint",description:"API endpoint configuration",icon:"api",breadcrumbs:[]}:e.includes("/profile")?{title:"Settings",description:"Manage your preferences",icon:"settings",breadcrumbs:[]}:e.includes("/translator")?{title:"Translator",description:"Debug translation flow between formats",icon:"translate",breadcrumbs:[]}:e.includes("/console-log")?{title:"Console Log",description:"Live server console output",icon:"monitor",breadcrumbs:[]}:e.includes("/playground")||e.includes("/basic-chat")?{title:"Playground",description:"Chat with any connected model through ZevaiRouter",icon:"forum",breadcrumbs:[]}:"/dashboard"===e?{title:"Endpoint",description:"API endpoint configuration",icon:"api",breadcrumbs:[]}:{title:"",description:"",breadcrumbs:[]}})(r),[r]);(0,a.useEffect)(()=>{let e=!1;return async function(){try{let t=await fetch("/api/auth/status",{cache:"no-store"});if(!t.ok)return;let r=await t.json();e||(d(r?.displayName||r?.oidcName||r?.oidcEmail||""),x(r?.loginMethod||""))}catch{e||(d(""),x(""))}}(),()=>{e=!0}},[]);let C=async()=>{try{(await fetch("/api/auth/logout",{method:"POST"})).ok&&(n.push("/login"),n.refresh())}catch(e){console.error("Failed to logout:",e)}};return(0,s.jsxs)("header",{className:"shrink-0 flex min-h-16 flex-wrap items-center justify-between gap-2 px-3 py-2.5 sm:gap-3 sm:px-4 sm:py-3 lg:px-8 border-b border-border-subtle bg-surface/80 backdrop-blur-xl z-20",children:[(0,s.jsx)("div",{className:"flex items-center gap-2 lg:hidden shrink-0",children:t&&(0,s.jsx)("button",{onClick:e,className:"flex size-10 items-center justify-center rounded-lg text-text-main hover:bg-surface-2 hover:text-primary transition-colors",children:(0,s.jsx)("span",{className:"material-symbols-outlined",children:"menu"})})}),(0,s.jsx)("div",{className:"flex flex-col min-w-0 flex-1",children:w.length>0?(0,s.jsx)("div",{className:"flex items-center gap-2",children:w.map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[t>0&&(0,s.jsx)("span",{className:"material-symbols-outlined text-text-muted text-base",children:"chevron_right"}),e.href?(0,s.jsx)(i(),{href:e.href,className:"text-text-muted hover:text-primary transition-colors",children:e.label}):(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[e.image&&(0,s.jsx)(c.A,{src:e.image,alt:e.label,size:28,className:"object-contain rounded max-w-[28px] max-h-[28px]",fallbackText:e.label.slice(0,2).toUpperCase()}),(0,s.jsx)("h1",{className:"text-base lg:text-2xl font-semibold text-text-main tracking-tight truncate",children:(0,v.Tl)(e.label)})]})]},`${e.label}-${e.href||"current"}`))}):p?(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[k&&(0,s.jsx)("span",{className:"material-symbols-outlined text-primary text-xl lg:text-2xl",children:k}),(0,s.jsx)("h1",{className:"text-base lg:text-2xl font-semibold tracking-tight truncate",children:(0,v.Tl)(p)})]}),f&&(0,s.jsx)("p",{className:"hidden lg:block text-sm text-text-muted truncate",children:(0,v.Tl)(f)})]}):null}),(0,s.jsxs)("div",{className:"order-2 flex items-center gap-0.5 shrink-0 sm:order-none sm:gap-1",children:[o&&"OIDC"===u&&(0,s.jsxs)("div",{className:"hidden sm:flex items-center max-w-[220px] px-3 py-1.5 rounded-full border border-border bg-surface/70 text-xs text-text-muted truncate",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1.5 text-primary",children:"person"}),(0,s.jsx)("span",{className:"truncate",children:o}),(0,s.jsx)("span",{className:"ml-2 shrink-0 rounded-full bg-primary/10 px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-primary",children:"OIDC"})]}),(0,s.jsx)(b.default,{className:"size-9 sm:size-10"}),(0,s.jsx)(h,{}),(0,s.jsx)(m.default,{onLogout:C})]}),(0,s.jsx)(N,{})]})}function N(){let e=(0,f.C)(e=>e.visible),t=(0,f.C)(e=>e.query),r=(0,f.C)(e=>e.placeholder),a=(0,f.C)(e=>e.setQuery);return e?(0,s.jsxs)("div",{className:"relative order-3 w-full sm:order-none sm:w-[220px]",children:[(0,s.jsx)("span",{className:"material-symbols-outlined absolute left-2 top-1/2 -translate-y-1/2 text-text-muted text-[16px] pointer-events-none",children:"search"}),(0,s.jsx)("input",{type:"text",value:t,onChange:e=>a(e.target.value),placeholder:r,className:"w-full h-8 pl-7 pr-7 rounded-lg border border-border bg-surface/60 text-sm focus:outline-none focus:border-primary/50 transition-colors"}),t&&(0,s.jsx)("button",{type:"button",onClick:()=>a(""),className:"absolute right-1 top-1/2 -translate-y-1/2 text-text-muted hover:text-text-main p-0.5 rounded","aria-label":"Clear search",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"close"})})]}):null}y.propTypes={onMenuClick:d().func,showMenuButton:d().bool}},11359:(e,t,r)=>{r.d(t,{default:()=>m});var s=r(94799),a=r(34023),l=r(16983),n=r(81462),i=r(72078),o=r(64604);let d=/^[a-zA-Z0-9_.\-]+$/;function c({index:e,model:t,isFirst:r,isLast:l,onEdit:n,onMoveUp:i,onMoveDown:o,onRemove:d}){let[m,u]=(0,a.useState)(!1),[x,p]=(0,a.useState)(t),h=()=>{let e=x.trim();e&&e!==t?n(e):p(t),u(!1)};return(0,s.jsxs)("div",{className:"group flex min-w-0 items-center gap-1.5 rounded-md bg-black/[0.02] px-2 py-1 transition-colors hover:bg-black/[0.04] dark:bg-white/[0.02] dark:hover:bg-white/[0.04]",children:[(0,s.jsx)("span",{className:"text-[10px] font-medium text-text-muted w-3 text-center shrink-0",children:e+1}),m?(0,s.jsx)("input",{autoFocus:!0,value:x,onChange:e=>p(e.target.value),onBlur:h,onKeyDown:e=>{"Enter"===e.key&&h(),"Escape"===e.key&&(p(t),u(!1))},className:"min-w-0 flex-1 rounded border border-primary/40 bg-white px-1.5 py-0.5 font-mono text-xs text-text-main outline-none dark:bg-black/20"}):(0,s.jsx)("div",{className:"min-w-0 flex-1 cursor-text truncate rounded px-1.5 py-0.5 font-mono text-xs text-text-main hover:bg-black/5 dark:hover:bg-white/5",onClick:()=>u(!0),title:"Click to edit",children:t}),(0,s.jsxs)("div",{className:"flex shrink-0 items-center gap-0.5",children:[(0,s.jsx)("button",{onClick:i,disabled:r,className:`p-0.5 rounded ${r?"text-text-muted/20 cursor-not-allowed":"text-text-muted hover:text-primary hover:bg-black/5 dark:hover:bg-white/5"}`,title:"Move up",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"arrow_upward"})}),(0,s.jsx)("button",{onClick:o,disabled:l,className:`p-0.5 rounded ${l?"text-text-muted/20 cursor-not-allowed":"text-text-muted hover:text-primary hover:bg-black/5 dark:hover:bg-white/5"}`,title:"Move down",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"arrow_downward"})})]}),(0,s.jsx)("button",{onClick:d,className:"p-0.5 hover:bg-red-500/10 rounded text-text-muted hover:text-red-500 transition-all",title:"Remove",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"close"})})]})}function m({isOpen:e,combo:t,onClose:r,onSave:u,activeProviders:x,kindFilter:p=null,forcePrefix:h="",title:b}){let f=t?.name?h&&t.name.startsWith(h)?t.name.slice(h.length):t.name:"",[g,j]=(0,a.useState)(f),[v,y]=(0,a.useState)(t?.models||[]),[N,k]=(0,a.useState)(!1),[w,C]=(0,a.useState)(!1),[S,I]=(0,a.useState)(""),[T,$]=(0,a.useState)({});(0,a.useEffect)(()=>{e&&fetch("/api/models/alias").then(e=>e.ok?e.json():null).then(e=>e&&$(e.aliases||{})).catch(()=>{})},[e]);let A=e=>{if(!e.trim())return I("Name is required"),!1;let t=h+e;return d.test(t)?(I(""),!0):(I("Only letters, numbers, -, _ and . allowed"),!1)},P=e=>{let t=e.target.value;h&&t.startsWith(h)&&(t=t.slice(h.length)),j(t),t?A(t):I("")},O=async()=>{A(g)&&(C(!0),await u({name:h+g.trim(),models:v}),C(!1))},R=!!t;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.default,{isOpen:e,onClose:r,title:b||(R?"Edit Combo":"Create Combo"),children:(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsxs)("div",{children:[h?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("label",{className:"text-sm font-medium mb-1 block",children:"Combo Name"}),(0,s.jsxs)("div",{className:"flex items-stretch",children:[(0,s.jsx)("span",{className:"inline-flex items-center px-2 rounded-l border border-r-0 border-black/10 dark:border-white/10 bg-black/[0.04] dark:bg-white/[0.04] text-text-muted font-mono text-sm",children:h}),(0,s.jsx)("input",{value:g,onChange:P,placeholder:"my-combo",className:"flex-1 min-w-0 rounded-r border border-black/10 dark:border-white/10 bg-white dark:bg-black/20 px-2 py-1.5 font-mono text-sm outline-none focus:border-primary"})]}),S&&(0,s.jsx)("p",{className:"text-[11px] text-red-500 mt-0.5",children:S})]}):(0,s.jsx)(n.default,{label:"Combo Name",value:g,onChange:P,placeholder:"my-combo",error:S}),(0,s.jsxs)("p",{className:"text-[10px] text-text-muted mt-0.5",children:[h?`Auto-prefixed with "${h}". `:"","Only letters, numbers, -, _ and . allowed"]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Models"}),0===v.length?(0,s.jsxs)("div",{className:"text-center py-4 border border-dashed border-black/10 dark:border-white/10 rounded-lg bg-black/[0.01] dark:bg-white/[0.01]",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-text-muted text-xl mb-1",children:"layers"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"No models added yet"})]}):(0,s.jsx)("div",{className:"flex max-h-[55vh] min-w-0 flex-col gap-1 overflow-y-auto sm:max-h-[350px]",children:v.map((e,t)=>(0,s.jsx)(c,{index:t,model:e,isFirst:0===t,isLast:t===v.length-1,onEdit:e=>{let r=[...v];r[t]=e,y(r)},onMoveUp:()=>(e=>{if(0===e)return;let t=[...v];[t[e-1],t[e]]=[t[e],t[e-1]],y(t)})(t),onMoveDown:()=>(e=>{if(e===v.length-1)return;let t=[...v];[t[e],t[e+1]]=[t[e+1],t[e]],y(t)})(t),onRemove:()=>y(v.filter((e,r)=>r!==t))},t))}),(0,s.jsxs)("button",{onClick:()=>k(!0),className:"w-full mt-2 py-2 border border-dashed border-black/10 dark:border-white/10 rounded-lg text-xs text-primary font-medium hover:text-primary hover:border-primary/50 transition-colors flex items-center justify-center gap-1",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"add"}),"Add Model"]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2 pt-1 sm:flex-row",children:[(0,s.jsx)(i.default,{onClick:r,variant:"ghost",fullWidth:!0,size:"sm",children:"Cancel"}),(0,s.jsx)(i.default,{onClick:O,fullWidth:!0,size:"sm",disabled:!g.trim()||!!S||w,children:w?"Saving...":R?"Save":"Create"})]})]})}),(0,s.jsx)(o.default,{isOpen:N,onClose:()=>k(!1),onSelect:e=>{v.includes(e.value)||y([...v,e.value])},onDeselect:e=>{y(v.filter(t=>t!==e.value))},activeProviders:x,modelAliases:T,title:"Add Model to Combo",kindFilter:p,addedModelValues:v,closeOnSelect:!1})]})}},16778:(e,t,r)=>{r.d(t,{h:()=>s});let s={en:"\uD83C\uDDFA\uD83C\uDDF8",vi:"\uD83C\uDDFB\uD83C\uDDF3","zh-CN":"\uD83C\uDDE8\uD83C\uDDF3","zh-TW":"\uD83C\uDDF9\uD83C\uDDFC",ja:"\uD83C\uDDEF\uD83C\uDDF5","pt-BR":"\uD83C\uDDE7\uD83C\uDDF7","pt-PT":"\uD83C\uDDF5\uD83C\uDDF9",ko:"\uD83C\uDDF0\uD83C\uDDF7",es:"\uD83C\uDDEA\uD83C\uDDF8",de:"\uD83C\uDDE9\uD83C\uDDEA",fr:"\uD83C\uDDEB\uD83C\uDDF7",he:"\uD83C\uDDEE\uD83C\uDDF1",ar:"\uD83C\uDDF8\uD83C\uDDE6",ru:"\uD83C\uDDF7\uD83C\uDDFA",pl:"\uD83C\uDDF5\uD83C\uDDF1",cs:"\uD83C\uDDE8\uD83C\uDDFF",nl:"\uD83C\uDDF3\uD83C\uDDF1",tr:"\uD83C\uDDF9\uD83C\uDDF7",uk:"\uD83C\uDDFA\uD83C\uDDE6",tl:"\uD83C\uDDF5\uD83C\uDDED",id:"\uD83C\uDDEE\uD83C\uDDE9",th:"\uD83C\uDDF9\uD83C\uDDED",hi:"\uD83C\uDDEE\uD83C\uDDF3",bn:"\uD83C\uDDE7\uD83C\uDDE9",ur:"\uD83C\uDDF5\uD83C\uDDF0",ro:"\uD83C\uDDF7\uD83C\uDDF4",sv:"\uD83C\uDDF8\uD83C\uDDEA",it:"\uD83C\uDDEE\uD83C\uDDF9",el:"\uD83C\uDDEC\uD83C\uDDF7",hu:"\uD83C\uDDED\uD83C\uDDFA",fi:"\uD83C\uDDEB\uD83C\uDDEE",da:"\uD83C\uDDE9\uD83C\uDDF0",no:"\uD83C\uDDF3\uD83C\uDDF4"}},16983:(e,t,r)=>{r.d(t,{ConfirmModal:()=>d,default:()=>o});var s=r(94799),a=r(34023),l=r(28834),n=r(72078),i=r(51357);function o({isOpen:e,onClose:t,title:r,children:n,footer:d,size:c="md",closeOnOverlay:m=!0,showTrafficLights:u=!0,className:x}){let p=(0,a.useId)(),h=(0,a.useRef)(null),b=(0,a.useRef)(null);return((0,a.useEffect)(()=>{if(!e)return;let r=document.body.style.overflow;b.current=document.activeElement,document.body.style.overflow="hidden";let s=h.current,a=s?.querySelector('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])');(a||s)?.focus();let l=e=>{if("Escape"===e.key)return void t();if("Tab"!==e.key||!s)return;let r=[...s.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')];if(!r.length){e.preventDefault(),s.focus();return}let a=r[0],l=r[r.length-1];e.shiftKey&&document.activeElement===a?(e.preventDefault(),l.focus()):e.shiftKey||document.activeElement!==l||(e.preventDefault(),a.focus())};return document.addEventListener("keydown",l),()=>{document.body.style.overflow=r,document.removeEventListener("keydown",l),b.current?.focus()}},[e,t]),e)?(0,s.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-[2px] fade-in",onClick:m?t:void 0}),(0,s.jsxs)("div",{ref:h,role:"dialog","aria-modal":"true","aria-labelledby":r?p:void 0,"aria-label":r?void 0:"Dialog",tabIndex:-1,className:(0,l.cn)("relative w-full max-h-[calc(100dvh-2rem)] overflow-hidden bg-surface","border border-border-subtle","rounded-[14px] shadow-[var(--shadow-elev)]","fade-in",{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl",full:"max-w-4xl"}[c],x),children:[(r||u)&&(0,s.jsxs)("div",{className:"flex items-center justify-between p-2 border-b border-border-subtle",children:[(0,s.jsxs)("div",{className:"flex items-center",children:[u&&(0,s.jsxs)("div",{className:"hidden md:flex items-center gap-2 mr-4 ml-2",children:[(0,s.jsx)(i.default,{text:"Close",position:"top",color:"#FF5F56",children:(0,s.jsx)("button",{onClick:t,"aria-label":"Close",title:"Close",className:"w-4 h-4 rounded-full bg-[#FF5F56] hover:brightness-90 transition-all cursor-pointer flex items-center justify-center group/dot",children:(0,s.jsx)("span",{className:"text-[9px] font-bold text-white opacity-0 group-hover/dot:opacity-100 transition-opacity leading-none",children:"✕"})})}),(0,s.jsx)("div",{className:"w-4 h-4 rounded-full bg-[#3a3a3a]/20 dark:bg-white/15 cursor-not-allowed"}),(0,s.jsx)("div",{className:"w-4 h-4 rounded-full bg-[#3a3a3a]/20 dark:bg-white/15 cursor-not-allowed"})]}),r&&(0,s.jsx)("h2",{id:p,className:"text-lg font-semibold text-text-main",children:r})]}),(0,s.jsx)("button",{onClick:t,"aria-label":"Close",className:"md:hidden p-1.5 rounded-[10px] text-text-muted hover:bg-surface-2 hover:text-text-main transition-colors",children:(0,s.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,s.jsx)("div",{className:"p-6 max-h-[calc(85vh-100px)] overflow-y-auto custom-scrollbar",children:n}),d&&(0,s.jsx)("div",{className:"flex items-center justify-end gap-3 p-6 border-t border-border-subtle",children:d})]})]}):null}function d({isOpen:e,onClose:t,onConfirm:r,title:a="Confirm",message:l,confirmText:i="Confirm",cancelText:c="Cancel",variant:m="danger",loading:u=!1}){return(0,s.jsx)(o,{isOpen:e,onClose:t,title:a,size:"sm",footer:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.default,{variant:"ghost",onClick:t,disabled:u,children:c}),(0,s.jsx)(n.default,{variant:m,onClick:r,loading:u,children:i})]}),children:(0,s.jsx)("p",{className:"text-text-muted",children:l})})}},18126:(e,t,r)=>{r.d(t,{CardSkeleton:()=>o,PageLoading:()=>n,Skeleton:()=>i,Spinner:()=>l,default:()=>d});var s=r(94799),a=r(28834);function l({size:e="md",className:t}){return(0,s.jsx)("span",{className:(0,a.cn)("material-symbols-outlined animate-spin text-brand-500",{sm:"size-4",md:"size-6",lg:"size-8",xl:"size-12"}[e],t),children:"progress_activity"})}function n({message:e="Loading..."}){return(0,s.jsxs)("div",{className:"fixed inset-0 z-50 flex flex-col items-center justify-center bg-bg",children:[(0,s.jsx)(l,{size:"xl"}),(0,s.jsx)("p",{className:"mt-4 text-text-muted",children:e})]})}function i({className:e,...t}){return(0,s.jsx)("div",{className:(0,a.cn)("animate-pulse rounded-[10px] bg-surface-2",e),...t})}function o(){return(0,s.jsxs)("div",{className:"p-6 rounded-[14px] border border-border-subtle bg-surface shadow-[var(--shadow-soft)]",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,s.jsx)(i,{className:"h-4 w-24"}),(0,s.jsx)(i,{className:"size-10 rounded-[10px]"})]}),(0,s.jsx)(i,{className:"h-8 w-16 mb-2"}),(0,s.jsx)(i,{className:"h-3 w-20"})]})}function d({type:e="spinner",...t}){switch(e){case"page":return(0,s.jsx)(n,{...t});case"skeleton":return(0,s.jsx)(i,{...t});case"card":return(0,s.jsx)(o,{...t});default:return(0,s.jsx)(l,{...t})}}},27007:(e,t,r)=>{r.d(t,{default:()=>o});var s=r(94799),a=r(34023),l=r(16983),n=r(72078),i=r(33379);function o({isOpen:e,onClose:t,title:r="Manual Configuration",configs:d=[]}){let{copy:c}=(0,i.C)(),[m,u]=(0,a.useState)(null);return(0,s.jsx)(l.default,{isOpen:e,onClose:t,title:r,size:"xl",children:(0,s.jsx)("div",{className:"flex flex-col gap-4",children:d.map((e,t)=>(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{className:"text-sm font-medium text-text-main",children:e.filename}),(0,s.jsxs)(n.default,{variant:"ghost",size:"sm",onClick:()=>{var r;return r=e.content,void(c(r,`manualconfig-${t}`),u(t),setTimeout(()=>u(null),2e3))},children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:m===t?"check":"content_copy"}),m===t?"Copied!":"Copy"]})]}),(0,s.jsx)("pre",{className:"px-3 py-2 bg-black/5 dark:bg-white/5 rounded font-mono text-xs overflow-x-auto whitespace-pre-wrap break-all max-h-60 overflow-y-auto border border-border",children:e.content})]},t))})})}},27275:(e,t,r)=>{r.d(t,{default:()=>n});var s=r(94799),a=r(7364),l=r(28834);function n({className:e,variant:t="default"}){let{isDark:r,toggleTheme:i}=(0,a.D)(),o={default:(0,l.cn)("flex items-center justify-center size-10 rounded-full","text-text-muted hover:text-text-main","hover:bg-surface-2 transition-colors"),card:(0,l.cn)("flex items-center justify-center size-11 rounded-full","bg-surface/60 hover:bg-surface","border border-border","backdrop-blur-md shadow-sm hover:shadow-[var(--shadow-warm)]","text-text-muted hover:text-brand-500","transition-all group")};return(0,s.jsx)("button",{onClick:i,className:(0,l.cn)(o[t],e),"aria-label":`Switch to ${r?"light":"dark"} mode`,title:`Switch to ${r?"light":"dark"} mode`,children:(0,s.jsx)("span",{className:(0,l.cn)("material-symbols-outlined text-[22px]","card"===t&&"transition-transform duration-300 group-hover:rotate-12"),children:r?"light_mode":"dark_mode"})})}},28834:(e,t,r)=>{r.d(t,{cn:()=>s});function s(...e){return e.filter(Boolean).join(" ").replace(/\s+/g," ").trim()}},29327:(e,t,r)=>{r.d(t,{default:()=>n});var s=r(94799),a=r(34023),l=r(47420);function n(){let[e,t]=(0,a.useState)([]),[r,n]=(0,a.useState)(!0),[i,o]=(0,a.useState)(!0);(0,a.useEffect)(()=>{d()},[]),(0,a.useEffect)(()=>{let e;return i&&(e=setInterval(()=>{d(!1)},3e3)),()=>clearInterval(e)},[i]);let d=async(e=!0)=>{e&&n(!0);try{let e=await fetch("/api/usage/request-logs");if(e.ok){let r=await e.json();t(r)}}catch(e){console.error("Failed to fetch logs:",e)}finally{e&&n(!1)}};return(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("h2",{className:"text-xl font-semibold",children:"Request Logs"}),(0,s.jsx)("div",{className:"flex items-center gap-2",children:(0,s.jsxs)("label",{className:"text-sm font-medium text-text-muted flex items-center gap-2 cursor-pointer",children:[(0,s.jsx)("span",{children:"Auto Refresh (3s)"}),(0,s.jsx)("div",{onClick:()=>o(!i),className:`relative inline-flex h-5 w-9 items-center rounded-full transition-colors focus:outline-none ${i?"bg-primary":"bg-bg-subtle border border-border"}`,children:(0,s.jsx)("span",{className:`inline-block h-3 w-3 transform rounded-full bg-white transition-transform ${i?"translate-x-5":"translate-x-1"}`})})]})})]}),(0,s.jsx)(l.default,{className:"overflow-hidden bg-black/5 dark:bg-black/20",children:(0,s.jsx)("div",{className:"p-0 overflow-x-auto max-h-[600px] overflow-y-auto font-mono text-xs",children:r&&0===e.length?(0,s.jsx)("div",{className:"p-8 text-center text-text-muted",children:"Loading logs..."}):0===e.length?(0,s.jsx)("div",{className:"p-8 text-center text-text-muted",children:"No logs recorded yet."}):(0,s.jsxs)("table",{className:"w-full text-left border-collapse whitespace-nowrap",children:[(0,s.jsx)("thead",{className:"sticky top-0 bg-bg-subtle border-b border-border z-10",children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"DateTime"}),(0,s.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"Model"}),(0,s.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"Provider"}),(0,s.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"Account"}),(0,s.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"In"}),(0,s.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"Out"}),(0,s.jsx)("th",{className:"px-3 py-2",children:"Status"})]})}),(0,s.jsx)("tbody",{className:"divide-y divide-border/50",children:e.map((e,t)=>{let r=e.split(" | ");if(r.length<7)return null;let a=r[6],l=a.includes("PENDING"),n=a.includes("FAILED"),i=a.includes("OK");return(0,s.jsxs)("tr",{className:`hover:bg-primary/5 transition-colors ${l?"bg-primary/5":""}`,children:[(0,s.jsx)("td",{className:"px-3 py-1.5 border-r border-border text-text-muted",children:r[0]}),(0,s.jsx)("td",{className:"px-3 py-1.5 border-r border-border font-medium",children:r[1]}),(0,s.jsx)("td",{className:"px-3 py-1.5 border-r border-border",children:(0,s.jsx)("span",{className:"px-1.5 py-0.5 rounded bg-bg-subtle border border-border text-[10px] uppercase font-bold",children:r[2]})}),(0,s.jsx)("td",{className:"px-3 py-1.5 border-r border-border truncate max-w-[150px]",title:r[3],children:r[3]}),(0,s.jsx)("td",{className:"px-3 py-1.5 border-r border-border text-right text-primary",children:r[4]}),(0,s.jsx)("td",{className:"px-3 py-1.5 border-r border-border text-right text-success",children:r[5]}),(0,s.jsx)("td",{className:`px-3 py-1.5 font-bold ${i?"text-success":n?"text-error":"text-primary animate-pulse"}`,children:a})]},t)})})]})})}),(0,s.jsx)("div",{className:"text-[10px] text-text-muted italic",children:"Logs are loaded from the request history database."})]})}},29874:(e,t,r)=>{r.d(t,{default:()=>d});var s=r(94799),a=r(34023),l=r(78525),n=r.n(l),i=r(77783),o=r(33379);function d({isOpen:e,provider:t,providerInfo:r,onSuccess:l,onClose:n,oauthMeta:c,idcConfig:m}){let[u,x]=(0,a.useState)("waiting"),[p,h]=(0,a.useState)(null),[b,f]=(0,a.useState)(""),[g,j]=(0,a.useState)(null),[v,y]=(0,a.useState)(!1),[N,k]=(0,a.useState)(null),[w,C]=(0,a.useState)(!1),S=(0,a.useRef)(null),I=(0,a.useRef)(!1),{copied:T,copy:$}=(0,o.C)(),[A,P]=(0,a.useState)(!1),[O,R]=(0,a.useState)("/callback?code=..."),E=(0,a.useRef)(!1);(0,a.useEffect)(()=>{P("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname),R(`${window.location.origin}/callback?code=...`)},[]);let M=(0,a.useCallback)(async(e,r)=>{if(p)try{let s=await fetch(`/api/oauth/${t}/exchange`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,redirectUri:p.redirectUri,codeVerifier:p.codeVerifier,state:r,...c?{meta:c}:{}})}),a=await s.json();if(!s.ok)throw Error(a.error);x("success"),l?.()}catch(e){j(e.message),x("error")}},[p,t,l,c]),_=(0,a.useCallback)(async e=>{if(p?.state)try{let t=await fetch("/api/oauth/xai/manual-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,state:p.state})}),r=await t.json();if(!t.ok)throw Error(r.error);x("success"),l?.()}catch(e){j(e.message),x("error")}},[p,l]),z=(0,a.useCallback)(async(e,r,s,a,n)=>{I.current=!1,C(!0);let i=Date.now()+(Number.isFinite(n)&&n>0?n:12e4);for(;Date.now()<i;){if(I.current){console.log("[OAuthModal] Polling aborted"),C(!1);return}if(await new Promise(e=>setTimeout(e,1e3*s)),I.current){console.log("[OAuthModal] Polling aborted after sleep"),C(!1);return}try{let n=await fetch(`/api/oauth/${t}/poll`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deviceCode:e,codeVerifier:r,extraData:a})}),i=await n.json();if(i.success){I.current=!0,x("success"),C(!1),l?.();return}if("expired_token"===i.error||"access_denied"===i.error)throw Error(i.errorDescription||i.error);"slow_down"===i.error&&(s=Math.min(s+5,30))}catch(e){j(e.message),x("error"),C(!1);return}}j("Authorization timeout"),x("error"),C(!1)},[t,l]),L=(0,a.useCallback)(async()=>{if(t)try{let e;if(j(null),["github","qwen","kiro","kimi-coding","kilocode","codebuddy","codebuddy-cn","qoder","grok-cli"].includes(t)){y(!0),x("waiting");let e=new URL(`/api/oauth/${t}/device-code`,window.location.origin);"kiro"===t&&m?.startUrl&&(e.searchParams.set("start_url",m.startUrl),m.region&&e.searchParams.set("region",m.region),e.searchParams.set("auth_method","idc"));let r=await fetch(e.toString()),s=await r.json();if(!r.ok)throw Error(s.error);k(s);let a=s.verification_uri_complete||s.verification_uri;a&&window.open(a,"_blank","noopener,noreferrer");let l="kiro"===t?{_clientId:s._clientId,_clientSecret:s._clientSecret,_region:s._region,_authMethod:s._authMethod,_startUrl:s._startUrl}:"qoder"===t?{_qoderNonce:s._qoderNonce,_qoderMachineId:s._qoderMachineId,_qoderVerifier:s.codeVerifier}:null;z(s.device_code,s.codeVerifier,s.interval||5,l,Number.isFinite(s.expires_in)&&s.expires_in>0?1e3*s.expires_in:void 0);return}let r=window.location.port||("https:"===window.location.protocol?"443":"80");e="codex"===t?"http://localhost:1455/auth/callback":"xai"===t?"http://127.0.0.1:56121/callback":`http://localhost:${r}/callback`;let s=new URL(`/api/oauth/${t}/authorize`,window.location.origin);s.searchParams.set("redirect_uri",e),c&&Object.entries(c).forEach(([e,t])=>{t&&s.searchParams.set(e,t)});let a=await fetch(s.toString()),l=await a.json();if(!a.ok)throw Error(l.error);let n=!1,i=!1;if("codex"===t)try{let t=await fetch("/api/oauth/codex/start-proxy",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({appPort:r,state:l.state,codeVerifier:l.codeVerifier,redirectUri:e})}),s=await t.json();n=s.success,i=!!s.serverSide}catch{n=!1}let o=!1,d=!1;if("xai"===t)try{let t=await fetch("/api/oauth/xai/start-proxy",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({appPort:r,state:l.state,codeVerifier:l.codeVerifier,redirectUri:e})}),s=await t.json();if(o=s.success,d=!!s.serverSide,!o&&"port_busy"===s.reason)throw Error("Port 56121 in use; close the conflicting process and retry")}catch(e){if(e?.message)throw e;o=!1}h({...l,redirectUri:e,codexServerSide:i,xaiServerSide:d}),"codex"===t&&n||"xai"===t&&o||A&&"codex"!==t&&"xai"!==t?(x("waiting"),S.current=window.open(l.authUrl,"oauth_popup","width=600,height=700"),S.current||x("input")):(x("input"),window.open(l.authUrl,"_blank"))}catch(e){j(e.message),x("error")}},[t,A,z,c,m]);(0,a.useEffect)(()=>{e&&t?(h(null),f(""),j(null),y(!1),k(null),C(!1),I.current=!1,L()):e||(I.current=!0,"codex"===t?fetch("/api/oauth/codex/stop-proxy",{method:"POST"}).catch(()=>{}):"xai"===t&&fetch("/api/oauth/xai/stop-proxy",{method:"POST"}).catch(()=>{}))},[e,t,L]),(0,a.useEffect)(()=>{let e=p?.codexServerSide?"codex":p?.xaiServerSide?"xai":null;if(!e||!p?.state||E.current)return;let t=!1,r=0,s=async()=>{if(!t&&!E.current){r+=1;try{let r=await fetch(`/api/oauth/${e}/poll-status?state=${encodeURIComponent(p.state)}`),s=await r.json();if(t||E.current)return;if("done"===s.status){E.current=!0,x("success"),l?.();return}if("error"===s.status){E.current=!0,j(s.error||"Authentication failed"),x("error");return}}catch{}if(r>=200){E.current=!0,j("Authentication timeout"),x("error");return}setTimeout(s,1500)}};return setTimeout(s,1500),()=>{t=!0}},[p,l]),(0,a.useEffect)(()=>{let e;if(!p)return;E.current=!1;let t=async e=>{if(E.current)return;let{code:t,state:r,error:s,errorDescription:a}=e;if(s){E.current=!0,j(a||s),x("error");return}t&&(E.current=!0,await M(t,r))},r=e=>{let r=e.origin.includes("localhost")||e.origin.includes("127.0.0.1"),s=e.origin===window.location.origin;(r||s)&&e.data?.type==="oauth_callback"&&t(e.data.data)};window.addEventListener("message",r);try{(e=new BroadcastChannel("oauth_callback")).onmessage=e=>t(e.data)}catch(e){console.log("BroadcastChannel not supported")}let s=e=>{if("oauth_callback"===e.key&&e.newValue)try{let r=JSON.parse(e.newValue);t(r),localStorage.removeItem("oauth_callback")}catch(e){console.log("Failed to parse localStorage data")}};window.addEventListener("storage",s);try{let e=localStorage.getItem("oauth_callback");if(e){let r=JSON.parse(e);r.timestamp&&Date.now()-r.timestamp<3e4&&t(r),localStorage.removeItem("oauth_callback")}}catch{}return()=>{window.removeEventListener("message",r),window.removeEventListener("storage",s),e&&e.close()}},[p,M]);let q=async()=>{try{j(null);let e=b.trim();if(e.startsWith("eyJ")&&e.includes("."))return void await M(e,null);if("xai"===t&&e&&!e.includes("://")&&!e.includes("?")&&!e.includes("code="))return void await _(e);if("kimchi"===t&&e&&!e.includes("://")&&!e.includes("?"))return void await M(e,null);let r=new URL(e),s=r.searchParams.get("code"),a=r.searchParams.get("token"),l=r.searchParams.get("state"),n=r.searchParams.get("error");if(n)throw Error(r.searchParams.get("error_description")||n);if(!s&&!a)throw Error("xai"===t?"Paste the callback URL or copied xAI code":"kimchi"===t?"No Kimchi token found in URL":"No authorization code found in URL");await M(a||s,l)}catch(e){j(e.message),x("error")}},U=(0,a.useCallback)(()=>{"codex"===t?fetch("/api/oauth/codex/stop-proxy",{method:"POST"}).catch(()=>{}):"xai"===t&&fetch("/api/oauth/xai/stop-proxy",{method:"POST"}).catch(()=>{}),n()},[n,t]);if(!t||!r)return null;let F="xai"===t,D="kimchi"===t,W=N?.verification_uri_complete||N?.verification_uri||"",B=F?"Connect Grok Build OAuth":`Connect ${r.name}`,K=F?"http://127.0.0.1:56121/callback?code=... or copied code":D?`${O.replace("code=...","token=...")} or copied token`:O;return(0,s.jsx)(i.aF,{isOpen:e,title:B,onClose:U,size:"lg",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[("waiting"===u||"input"===u)&&!v&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 border border-border rounded-lg bg-sidebar/50",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-base text-primary animate-spin",children:"progress_activity"}),(0,s.jsx)("span",{className:"text-sm",children:F?"Waiting for Grok Build OAuth…":"Waiting for popup authorization…"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3 my-1",children:[(0,s.jsx)("div",{className:"flex-1 h-px bg-border"}),(0,s.jsx)("span",{className:"text-xs text-text-muted uppercase tracking-wider",children:"Or paste callback URL manually"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-border"})]}),(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("p",{className:"text-sm font-medium mb-2",children:["Step 1: Open this ",F?"Grok Build OAuth URL":"URL"," in your browser"]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.pd,{value:p?.authUrl||"",readOnly:!0,className:"flex-1 font-mono text-xs"}),(0,s.jsx)(i.$n,{variant:"secondary",icon:"auth_url"===T?"check":"content_copy",onClick:()=>$(p?.authUrl,"auth_url"),disabled:!p?.authUrl,children:"Copy"})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("p",{className:"text-sm font-medium mb-2",children:["Step 2: Paste the ","xai"===t?"callback URL or copied code":"kimchi"===t?"callback URL or token":"callback URL"," here"]}),(0,s.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"xai"===t?"If xAI shows a code instead of redirecting, paste that code here.":"kimchi"===t?"After authorization, paste the callback URL (with token=…) or the raw Kimchi token.":"After authorization, copy the full URL from your browser."}),(0,s.jsx)(i.pd,{value:b,onChange:e=>f(e.target.value),placeholder:K,className:"font-mono text-xs"})]})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:q,fullWidth:!0,disabled:!b,children:"Connect"}),(0,s.jsx)(i.$n,{onClick:U,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"waiting"===u&&v&&N&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"text-center py-4",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Visit the login URL below and authorize:"}),(0,s.jsxs)("div",{className:"bg-sidebar p-4 rounded-lg mb-4",children:[(0,s.jsx)("p",{className:"text-xs text-text-muted mb-1",children:"Login URL"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("code",{className:"flex-1 text-sm break-all",children:W}),(0,s.jsx)(i.$n,{size:"sm",variant:"ghost",icon:"login_url"===T?"check":"content_copy",onClick:()=>$(W,"login_url"),disabled:!W}),(0,s.jsx)(i.$n,{size:"sm",variant:"ghost",icon:"open_in_new",onClick:()=>window.open(W,"_blank","noopener,noreferrer"),disabled:!W,children:"Open"})]})]}),(0,s.jsxs)("div",{className:"bg-primary/10 p-4 rounded-lg",children:[(0,s.jsx)("p",{className:"text-xs text-text-muted mb-1",children:"Your Code"}),(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,s.jsx)("p",{className:"text-2xl font-mono font-bold text-primary",children:N.user_code}),(0,s.jsx)(i.$n,{size:"sm",variant:"ghost",icon:"user_code"===T?"check":"content_copy",onClick:()=>$(N.user_code,"user_code")})]})]})]}),w&&(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2 text-sm text-text-muted",children:[(0,s.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),"Waiting for authorization..."]})]}),"success"===u&&(0,s.jsxs)("div",{className:"text-center py-6",children:[(0,s.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-3xl text-green-600",children:"check_circle"})}),(0,s.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connected Successfully!"}),(0,s.jsxs)("p",{className:"text-sm text-text-muted mb-4",children:["Your ",r.name," account has been connected."]}),(0,s.jsx)(i.$n,{onClick:U,fullWidth:!0,children:"Done"})]}),"error"===u&&(0,s.jsxs)("div",{className:"text-center py-6",children:[(0,s.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-3xl text-red-600",children:"error"})}),(0,s.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connection Failed"}),(0,s.jsx)("p",{className:"text-sm text-red-600 mb-4",children:g}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:L,variant:"secondary",fullWidth:!0,children:"Try Again"}),(0,s.jsx)(i.$n,{onClick:U,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})})}d.propTypes={isOpen:n().bool.isRequired,provider:n().string,providerInfo:n().shape({name:n().string}),onSuccess:n().func,onClose:n().func.isRequired,oauthMeta:n().object,idcConfig:n().shape({startUrl:n().string,region:n().string})}},31052:(e,t,r)=>{r.d(t,{default:()=>f});var s=r(94799),a=r(34023),l=r(99870),n=r(78525),i=r.n(n),o=r(77783);let d="kiro-bulk-import-active-job",c="Bulk import progress could not be restored. The previous job session was cleared.";function m(e){return["completed","cancelled","failed"].includes(e)}function u(e){return e?e.replaceAll("_"," "):"waiting"}function x(e){if(!e)return"--:--:--";try{return new Date(e).toLocaleTimeString("id-ID",{hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch{return e}}async function p(e){if(!e)return null;let t=await fetch(`/api/oauth/kiro/bulk-import/${e}`,{cache:"no-store"}),r=await t.json();return{res:t,data:r}}async function h(e="active"){let t=await fetch(`/api/oauth/kiro/bulk-import/latest?scope=${encodeURIComponent(e)}`,{cache:"no-store"}),r=await t.json();return{res:t,data:r}}function b({status:e}){let t={queued:"bg-slate-100 text-slate-700 dark:bg-slate-800 dark:text-slate-200",running:"bg-blue-100 text-blue-700 dark:bg-blue-900/40 dark:text-blue-300",success:"bg-green-100 text-green-700 dark:bg-green-900/40 dark:text-green-300",failed:"bg-red-100 text-red-700 dark:bg-red-900/40 dark:text-red-300",failed_invalid_credentials:"bg-red-100 text-red-700 dark:bg-red-900/40 dark:text-red-300",failed_exchange:"bg-red-100 text-red-700 dark:bg-red-900/40 dark:text-red-300",failed_timeout:"bg-red-100 text-red-700 dark:bg-red-900/40 dark:text-red-300",needs_manual:"bg-amber-100 text-amber-700 dark:bg-amber-900/40 dark:text-amber-300",cancelled:"bg-slate-100 text-slate-700 dark:bg-slate-800 dark:text-slate-200"};return(0,s.jsx)("span",{className:`rounded-full px-2 py-1 text-[11px] font-medium ${t[e]||t.queued}`,children:e.replaceAll("_"," ")})}function f({isOpen:e,onMethodSelect:t,onImportSuccess:r,onClose:n,initialJobId:i,initialSelectedMethod:g,initialImportMode:j,initialFlowKey:v,onBulkJobChange:y}){let[N,k]=(0,a.useState)(null),[w,C]=(0,a.useState)(""),[S,I]=(0,a.useState)("us-east-1"),[T,$]=(0,a.useState)(""),[A,P]=(0,a.useState)("single-token"),[O,R]=(0,a.useState)(""),[E,M]=(0,a.useState)(String(4)),[_,z]=(0,a.useState)(null),[L,q]=(0,a.useState)(null),[U,F]=(0,a.useState)(null),[D,W]=(0,a.useState)(null),[B,K]=(0,a.useState)(!1),[J,V]=(0,a.useState)(!1),[G,H]=(0,a.useState)(!1),Q=(0,a.useRef)(new Set),X=(0,a.useRef)(0),Z=e?i||window.localStorage.getItem(d):null,Y=N||(Z?"import":null),ee="import"===Y&&Z&&!N?"bulk-account":A;(0,a.useEffect)(()=>{!e||g&&(k(g),P(j||"single-token"),z(null),F(null))},[v,j,g,e]),(0,a.useEffect)(()=>{"import"===Y&&"single-token"===ee&&e&&(async()=>{V(!0),F(null),H(!1);try{let e=await fetch("/api/oauth/kiro/auto-import"),t=await e.json();t.found?($(t.refreshToken),H(!0)):F(t.error||"Could not auto-detect token")}catch{F("Failed to auto-detect token")}finally{V(!1)}})()},[Y,ee,e]),(0,a.useEffect)(()=>{e&&"import"===Y&&"bulk-account"===ee&&(async()=>{if(!L?.jobId)try{W(null);let t=i||null;if(t){let e=await p(t);if(e.res.ok&&e.data?.job)return void q(e.data.job)}let r=await h();if(r.res.ok&&r.data?.job){q(r.data.job),window.localStorage.setItem(d,r.data.job.jobId);return}if(Z){var e;let t=await p(Z);if(t.res.ok&&t.data?.job&&(e=t.data.job.status,["queued","running","needs_manual"].includes(e)))return void q(t.data.job);window.localStorage.removeItem(d),y?.(null),W(c)}}catch{W(c)}})()},[L?.jobId,ee,Y,i,e,y,Z]),(0,a.useEffect)(()=>{if(!L?.jobId){X.current=0;return}let e=L.summary?.success||0;e>X.current&&r?.(),X.current=e},[L,r]),(0,a.useEffect)(()=>{L?.jobId&&(window.localStorage.setItem(d,L.jobId),y?.(L))},[L,y]),(0,a.useEffect)(()=>{if(!e||!L?.jobId||m(L.status))return;let t=window.setInterval(async()=>{try{let e=await p(L.jobId);if(e.res.ok&&e.data?.job){W(null),q(e.data.job);return}if(404===e.res.status){let e=await h();if(e.res.ok&&e.data?.job){W(null),q(e.data.job),window.localStorage.setItem(d,e.data.job.jobId);return}window.localStorage.removeItem(d),y?.(null),q(null),W("Bulk import progress expired or was cleared.")}}catch{}},1500);return()=>window.clearInterval(t)},[L?.jobId,L?.status,e,y]),(0,a.useEffect)(()=>{!e||"bulk-account"!==ee||!L?.jobId||!m(L.status)||0>=(L.summary?.success||0)||Q.current.has(L.jobId)||(Q.current.add(L.jobId),r?.())},[L,ee,e,r]);let et="bulk-account"===ee&&L&&!m(L.status),er="bulk-account"===ee&&L&&m(L.status),es=(0,a.useMemo)(()=>L?.summary?[["Total",L.summary.total],["Queued",L.summary.queued],["Running",L.summary.running],["Success",L.summary.success],["Failed",L.summary.failed],["Manual",L.summary.needs_manual]]:[],[L]),ea=(0,a.useMemo)(()=>Array.isArray(L?.activity)?[...L.activity].reverse():[],[L]),el=(0,a.useMemo)(()=>(function(e=[]){let t=new Map;return e.forEach(e=>{let r=e.status||"queued";t.has(r)||t.set(r,[]),t.get(r).push(e)}),["running","queued","needs_manual","success","failed","failed_invalid_credentials","failed_exchange","failed_timeout","cancelled"].filter(e=>t.has(e)).map(e=>({status:e,accounts:t.get(e)}))})(L?.accounts||[]),[L]),en=(0,a.useMemo)(()=>L?.accounts?.length?L.accounts.find(e=>"running"===e.status)||L.accounts.find(e=>"needs_manual"===e.status)||L.accounts.find(e=>"success"===e.status)||L.accounts[0]:null,[L]),ei=e=>{k(e),F(null)},eo=()=>{$(""),R(""),z(null),M(String(4)),F(null),W(null),H(!1),q(null),X.current=0,window.localStorage.removeItem(d),y?.(null)},ed=()=>{et?n?.():(k(null),P("single-token"),eo())},ec=async()=>{if(!T.trim())return void F("Please enter a refresh token");K(!0),F(null);try{let e=await fetch("/api/oauth/kiro/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:"token",refreshToken:T.trim()})}),t=await e.json();if(!e.ok)throw Error(t.error||"Import failed");r?.()}catch(e){F(e.message)}finally{K(!1)}},em=async e=>{let t=await fetch("/api/oauth/kiro/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:"token",refreshTokens:e})}),s=await t.json();if(!t.ok)throw Error(s.error||"Bulk import failed");z({success:s.imported||0,failed:s.failed||0}),r?.()},eu=async e=>{let t=await fetch("/api/oauth/kiro/bulk-import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accounts:e,concurrency:Number.parseInt(E,10)||4})}),r=await t.json();if(!t.ok){let e=Array.isArray(r.invalidLines)&&r.invalidLines.length>0?` Invalid lines: ${r.invalidLines.join(", ")}`:"";throw Error((r.error||"Bulk account import failed")+e)}q(r.job||null),W(null),r.job?.jobId&&Q.current.delete(r.job.jobId),z(null)},ex=async()=>{let e=O.split("\n").map(e=>e.trim()).filter(Boolean);if(!e.length)return void F("bulk-account"===ee?"Please enter at least one gmail|password line":"Please enter at least one refresh token line");K(!0),F(null),z(null);try{"bulk-account"===ee?await eu(e):await em(e)}catch(e){F(e.message)}finally{K(!1)}},ep=async()=>{if(L?.jobId)try{let e=await fetch(`/api/oauth/kiro/bulk-import/${L.jobId}/cancel`,{method:"POST"}),t=await e.json();if(!e.ok)throw Error(t.error||"Failed to cancel job");t.job&&q(t.job)}catch(e){F(e.message)}},eh=()=>{eo(),r?.()},eb=async e=>{if(L?.jobId&&e)try{let t=await fetch(`/api/oauth/kiro/bulk-import/${L.jobId}/manual/${e}`,{method:"POST"}),r=await t.json();if(!t.ok)throw Error(r.error||"Failed to open manual session");r.job&&q(r.job)}catch(e){F(e.message)}},ef=e=>{t("social",{provider:e})};return(0,s.jsx)(o.aF,{isOpen:e,title:"Connect Kiro",onClose:n,size:"full",className:"max-w-[min(96vw,1540px)]",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[!Y&&(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("p",{className:"mb-4 text-sm text-text-muted",children:"Choose your authentication method:"}),(0,s.jsx)("button",{onClick:()=>t("builder-id"),className:"w-full rounded-lg border border-border p-4 text-left transition-colors hover:bg-sidebar",children:(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)("span",{className:"material-symbols-outlined mt-0.5 text-primary",children:"shield"}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("h3",{className:"mb-1 font-semibold",children:"AWS Builder ID"}),(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Recommended for most users. Free AWS account required."})]})]})}),(0,s.jsx)("button",{onClick:()=>ei("idc"),className:"w-full rounded-lg border border-border p-4 text-left transition-colors hover:bg-sidebar",children:(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)("span",{className:"material-symbols-outlined mt-0.5 text-primary",children:"business"}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("h3",{className:"mb-1 font-semibold",children:"AWS IAM Identity Center"}),(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"For enterprise users with custom AWS IAM Identity Center."})]})]})}),(0,s.jsx)("button",{onClick:()=>ei("social-google"),className:"hidden w-full rounded-lg border border-border p-4 text-left transition-colors hover:bg-sidebar",children:(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)("span",{className:"material-symbols-outlined mt-0.5 text-primary",children:"account_circle"}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("h3",{className:"mb-1 font-semibold",children:"Google Account"}),(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Login with your Google account (manual callback)."})]})]})}),(0,s.jsx)("button",{onClick:()=>ei("social-github"),className:"hidden w-full rounded-lg border border-border p-4 text-left transition-colors hover:bg-sidebar",children:(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)("span",{className:"material-symbols-outlined mt-0.5 text-primary",children:"code"}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("h3",{className:"mb-1 font-semibold",children:"GitHub Account"}),(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Login with your GitHub account (manual callback)."})]})]})}),(0,s.jsx)("button",{onClick:()=>ei("import"),className:"w-full rounded-lg border border-border p-4 text-left transition-colors hover:bg-sidebar",children:(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)("span",{className:"material-symbols-outlined mt-0.5 text-primary",children:"file_upload"}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("h3",{className:"mb-1 font-semibold",children:"Bulk Option"}),(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Import a single token, bulk tokens, or bulk Google accounts."})]})]})})]}),"idc"===Y&&(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{className:"mb-2 block text-sm font-medium",children:["IDC Start URL ",(0,s.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,s.jsx)(o.pd,{value:w,onChange:e=>C(e.target.value),placeholder:"https://your-org.awsapps.com/start",className:"font-mono text-sm"}),(0,s.jsx)("p",{className:"mt-1 text-xs text-text-muted",children:"Your organization's AWS IAM Identity Center URL"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"mb-2 block text-sm font-medium",children:"AWS Region"}),(0,s.jsx)(o.pd,{value:S,onChange:e=>I(e.target.value),placeholder:"us-east-1",className:"font-mono text-sm"}),(0,s.jsx)("p",{className:"mt-1 text-xs text-text-muted",children:"AWS region for your Identity Center (default: us-east-1)"})]}),U&&(0,s.jsx)("p",{className:"text-sm text-red-600",children:U}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.$n,{onClick:()=>{w.trim()?t("idc",{startUrl:w.trim(),region:S}):F("Please enter your IDC start URL")},fullWidth:!0,children:"Continue"}),(0,s.jsx)(o.$n,{onClick:ed,variant:"ghost",fullWidth:!0,children:"Back"})]})]}),"social-google"===Y&&(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)("div",{className:"rounded-lg border border-amber-200 bg-amber-50 p-4 dark:border-amber-800 dark:bg-amber-900/20",children:(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-amber-600 dark:text-amber-400",children:"info"}),(0,s.jsxs)("div",{className:"flex-1 text-sm",children:[(0,s.jsx)("p",{className:"mb-1 font-medium text-amber-900 dark:text-amber-100",children:"Manual Callback Required"}),(0,s.jsx)("p",{className:"text-amber-800 dark:text-amber-200",children:"After login, you'll need to copy the callback URL from your browser and paste it back here."})]})]})}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.$n,{onClick:()=>ef("google"),fullWidth:!0,children:"Continue with Google"}),(0,s.jsx)(o.$n,{onClick:ed,variant:"ghost",fullWidth:!0,children:"Back"})]})]}),"social-github"===Y&&(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)("div",{className:"rounded-lg border border-amber-200 bg-amber-50 p-4 dark:border-amber-800 dark:bg-amber-900/20",children:(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-amber-600 dark:text-amber-400",children:"info"}),(0,s.jsxs)("div",{className:"flex-1 text-sm",children:[(0,s.jsx)("p",{className:"mb-1 font-medium text-amber-900 dark:text-amber-100",children:"Manual Callback Required"}),(0,s.jsx)("p",{className:"text-amber-800 dark:text-amber-200",children:"After login, you'll need to copy the callback URL from your browser and paste it back here."})]})]})}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.$n,{onClick:()=>ef("github"),fullWidth:!0,children:"Continue with GitHub"}),(0,s.jsx)(o.$n,{onClick:ed,variant:"ghost",fullWidth:!0,children:"Back"})]})]}),"import"===Y&&(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,s.jsx)(o.$n,{size:"sm",variant:"single-token"===ee?"primary":"ghost",onClick:()=>{P("single-token"),z(null),F(null)},disabled:et,children:"Single Token"}),(0,s.jsx)(o.$n,{size:"sm",variant:"bulk-token"===ee?"primary":"ghost",onClick:()=>{P("bulk-token"),z(null),F(null)},disabled:et,children:"Bulk Token"}),(0,s.jsx)(o.$n,{size:"sm",variant:"bulk-account"===ee?"primary":"ghost",onClick:()=>{P("bulk-account"),z(null),F(null)},children:"Bulk Account"})]}),"single-token"===ee&&(0,s.jsxs)(s.Fragment,{children:[J&&(0,s.jsxs)("div",{className:"py-6 text-center",children:[(0,s.jsx)("div",{className:"mx-auto mb-4 flex size-16 items-center justify-center rounded-full bg-primary/10",children:(0,s.jsx)("span",{className:"material-symbols-outlined animate-spin text-3xl text-primary",children:"progress_activity"})}),(0,s.jsx)("h3",{className:"mb-2 text-lg font-semibold",children:"Auto-detecting token..."}),(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Reading from AWS SSO cache"})]}),!J&&(0,s.jsxs)(s.Fragment,{children:[G&&(0,s.jsx)("div",{className:"rounded-lg border border-green-200 bg-green-50 p-3 dark:border-green-800 dark:bg-green-900/20",children:(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-green-600 dark:text-green-400",children:"check_circle"}),(0,s.jsx)("p",{className:"text-sm text-green-800 dark:text-green-200",children:"Token auto-detected from Kiro IDE successfully!"})]})}),!G&&!U&&(0,s.jsx)("div",{className:"rounded-lg border border-blue-200 bg-blue-50 p-3 dark:border-blue-800 dark:bg-blue-900/20",children:(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-blue-600 dark:text-blue-400",children:"info"}),(0,s.jsx)("p",{className:"text-sm text-blue-800 dark:text-blue-200",children:"Kiro IDE not detected. Please paste your refresh token manually."})]})}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{className:"mb-2 block text-sm font-medium",children:["Refresh Token ",(0,s.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,s.jsx)(o.pd,{value:T,onChange:e=>$(e.target.value),placeholder:"Token will be auto-filled...",className:"font-mono text-sm"})]}),U&&(0,s.jsx)("div",{className:"rounded-lg border border-red-200 bg-red-50 p-3 dark:border-red-800 dark:bg-red-900/20",children:(0,s.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400",children:U})}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.$n,{onClick:ec,fullWidth:!0,disabled:B||!T.trim(),children:B?"Importing...":"Import Token"}),(0,s.jsx)(o.$n,{onClick:ed,variant:"ghost",fullWidth:!0,children:"Back"})]})]})]}),"bulk-token"===ee&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"rounded-lg border border-blue-200 bg-blue-50 p-3 dark:border-blue-800 dark:bg-blue-900/20",children:(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-blue-600 dark:text-blue-400",children:"info"}),(0,s.jsx)("p",{className:"text-sm text-blue-800 dark:text-blue-200",children:"Bulk token import accepts one refresh token per line."})]})}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{className:"mb-2 block text-sm font-medium",children:["Bulk Refresh Tokens ",(0,s.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,s.jsx)("textarea",{value:O,onChange:e=>R(e.target.value),placeholder:"aorAAAAAG...\naorAAAAAG...",className:"min-h-[160px] w-full resize-y rounded-lg border border-border bg-background px-3 py-2 font-mono text-sm focus:outline-none focus:ring-1 focus:ring-primary"}),(0,s.jsx)("p",{className:"mt-1 text-xs text-text-muted",children:"One refresh token per line."})]}),_&&(0,s.jsx)("div",{className:`text-sm font-medium ${_.failed>0?"text-yellow-600 dark:text-yellow-400":"text-green-600 dark:text-green-400"}`,children:`Success: ${_.success} imported${_.failed>0?`, ${_.failed} failed`:""}`}),U&&(0,s.jsx)("div",{className:"rounded-lg border border-red-200 bg-red-50 p-3 dark:border-red-800 dark:bg-red-900/20",children:(0,s.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400",children:U})}),D&&(0,s.jsx)("div",{className:"rounded-lg border border-amber-200 bg-amber-50 p-3 dark:border-amber-800 dark:bg-amber-900/20",children:(0,s.jsx)("p",{className:"text-sm text-amber-700 dark:text-amber-300",children:D})}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.$n,{onClick:ex,fullWidth:!0,disabled:B||!O.trim(),children:B?"Importing...":"Import Tokens"}),(0,s.jsx)(o.$n,{onClick:ed,variant:"ghost",fullWidth:!0,children:"Back"})]})]}),"bulk-account"===ee&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"rounded-lg border border-blue-200 bg-blue-50 p-3 dark:border-blue-800 dark:bg-blue-900/20",children:(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-blue-600 dark:text-blue-400",children:"info"}),(0,s.jsx)("p",{className:"text-sm text-blue-800 dark:text-blue-200",children:"Bulk account import runs Playwright in the background, keeps passwords in memory only, and only needs manual action when Google or Kiro blocks a worker. Recommended worker count for a 24 GB machine: 4."})]})}),!L&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{className:"mb-2 block text-sm font-medium",children:["Bulk Accounts ",(0,s.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,s.jsx)("textarea",{value:O,onChange:e=>R(e.target.value),placeholder:"gmail1@example.com|password1\ngmail2@example.com|password2",className:"min-h-[180px] w-full resize-y rounded-lg border border-border bg-background px-3 py-2 font-mono text-sm focus:outline-none focus:ring-1 focus:ring-primary"}),(0,s.jsx)("p",{className:"mt-1 text-xs text-text-muted",children:"One account per line in the format gmail|password."})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"mb-2 block text-sm font-medium",children:"Concurrent Workers"}),(0,s.jsx)(o.pd,{type:"number",min:"1",max:"8",value:E,onChange:e=>M(e.target.value),placeholder:"4"}),(0,s.jsx)("p",{className:"mt-1 text-xs text-text-muted",children:"Default 4. Allowed range: 1 to 8 workers."})]})]}),L&&(0,s.jsxs)("div",{className:"space-y-4 rounded-xl border border-border p-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"font-semibold",children:"Bulk Import Job"}),(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:["Job ID: ",(0,s.jsx)("span",{className:"font-mono",children:L.jobId})]}),(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:["Status: ",(0,s.jsx)("span",{className:"font-medium",children:L.status})," | Workers: ",L.concurrency]}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Browser workers run in the background. Close this modal if needed and reopen it later from the provider page with Resume Bulk Progress."})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[et&&(0,s.jsx)(o.$n,{size:"sm",variant:"secondary",onClick:ep,children:"Cancel Job"}),er&&(0,s.jsx)(o.$n,{size:"sm",onClick:eh,children:"Done & Refresh"})]})]}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-3",children:es.map(([e,t])=>(0,s.jsxs)("div",{className:"rounded-lg bg-sidebar px-3 py-2",children:[(0,s.jsx)("p",{className:"text-[11px] uppercase tracking-wide text-text-muted",children:e}),(0,s.jsx)("p",{className:"text-lg font-semibold",children:t})]},e))}),L.error&&(0,s.jsx)("div",{className:"rounded-lg border border-red-200 bg-red-50 p-3 text-sm text-red-700 dark:border-red-800 dark:bg-red-900/20 dark:text-red-300",children:L.error}),L.summary?.needs_manual>0&&(0,s.jsx)("div",{className:"rounded-lg border border-amber-200 bg-amber-50 p-3 text-sm text-amber-800 dark:border-amber-800 dark:bg-amber-900/20 dark:text-amber-200",children:"Some accounts need manual assist. Open the blocked worker session below, finish the Google or Kiro prompts, and the job will continue updating automatically."}),(0,s.jsxs)("div",{className:"grid gap-4 lg:grid-cols-[minmax(0,7fr)_minmax(320px,3fr)]",children:[(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"overflow-hidden rounded-xl border border-border bg-sidebar",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 border-b border-border px-4 py-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-semibold",children:"Live Browser Preview"}),(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:[L.preview?.email||en?.email||"Waiting for worker",L.preview?.workerId?` | Worker ${L.preview.workerId}`:""]})]}),(0,s.jsxs)("div",{className:"text-right text-xs text-text-muted",children:[(0,s.jsx)("p",{children:u(L.preview?.step||en?.currentStep)}),(0,s.jsxs)("p",{children:["Updated ",x(L.preview?.updatedAt||en?.updatedAt)]})]})]}),(0,s.jsx)("div",{className:"relative bg-black/90",children:L.preview?.imageData?(0,s.jsx)(l.default,{src:L.preview.imageData,alt:`Live worker preview for ${L.preview.email||"Kiro import"}`,width:1440,height:900,unoptimized:!0,className:"h-[420px] w-full object-contain"}):(0,s.jsxs)("div",{className:"flex h-[420px] flex-col items-center justify-center gap-3 px-6 text-center text-slate-200",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-5xl text-primary/80",children:"browser_updated"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-base font-medium",children:"Preview will appear when a worker opens Google or Kiro"}),(0,s.jsx)("p",{className:"mt-1 text-sm text-slate-400",children:"The import keeps running in the background even if the screenshot is not available yet."})]})]})})]}),(0,s.jsx)("div",{className:"space-y-4",children:el.map(e=>{var t;let r;return(0,s.jsxs)("div",{className:`rounded-xl border p-4 ${(t=e.status,(r={queued:"border-slate-200 bg-slate-50/80 dark:border-slate-800 dark:bg-slate-900/20",running:"border-blue-200 bg-blue-50/80 dark:border-blue-900/50 dark:bg-blue-950/20",success:"border-green-200 bg-green-50/80 dark:border-green-900/50 dark:bg-green-950/20",failed:"border-red-200 bg-red-50/80 dark:border-red-900/50 dark:bg-red-950/20",failed_invalid_credentials:"border-red-200 bg-red-50/80 dark:border-red-900/50 dark:bg-red-950/20",failed_exchange:"border-red-200 bg-red-50/80 dark:border-red-900/50 dark:bg-red-950/20",failed_timeout:"border-red-200 bg-red-50/80 dark:border-red-900/50 dark:bg-red-950/20",needs_manual:"border-amber-200 bg-amber-50/80 dark:border-amber-900/50 dark:bg-amber-950/20",cancelled:"border-slate-200 bg-slate-50/80 dark:border-slate-800 dark:bg-slate-900/20"})[t]||r.queued)}`,children:[(0,s.jsxs)("div",{className:"mb-3 flex items-center justify-between gap-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(b,{status:e.status}),(0,s.jsx)("p",{className:"text-sm font-semibold capitalize",children:u(e.status)})]}),(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:[e.accounts.length," account",e.accounts.length>1?"s":""]})]}),(0,s.jsx)("div",{className:"grid gap-3 xl:grid-cols-2",children:e.accounts.map(e=>(0,s.jsxs)("div",{className:"rounded-xl border border-border bg-background/80 p-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-start sm:justify-between",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("p",{className:"truncate text-sm font-semibold",children:e.email}),(0,s.jsxs)("p",{className:"text-[11px] text-text-muted",children:["Line ",e.line,e.workerId?` | Worker ${e.workerId}`:""," | ",x(e.updatedAt)]})]}),(0,s.jsx)(b,{status:e.status})]}),(0,s.jsxs)("div",{className:"mt-3 rounded-lg border border-border/70 bg-sidebar/70 px-3 py-2",children:[(0,s.jsx)("p",{className:"text-[11px] uppercase tracking-wide text-text-muted",children:"Current Step"}),(0,s.jsx)("p",{className:"mt-1 text-sm font-medium capitalize",children:u(e.currentStep)})]}),e.logs?.length>0&&(0,s.jsx)("div",{className:"mt-3 space-y-2",children:e.logs.slice(-3).reverse().map(e=>(0,s.jsxs)("div",{className:"rounded-lg bg-sidebar/60 px-3 py-2",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,s.jsx)("p",{className:"text-xs font-medium capitalize",children:u(e.step)}),(0,s.jsx)("span",{className:"text-[11px] text-text-muted",children:x(e.at)})]}),(0,s.jsx)("p",{className:"mt-1 text-xs text-text-muted",children:e.message})]},e.id))}),e.error&&(0,s.jsx)("p",{className:"mt-3 text-xs text-red-500",children:e.error}),e.manualSessionAvailable&&e.workerId?(0,s.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[(0,s.jsx)(o.$n,{size:"sm",variant:e.manualSessionOpened?"secondary":"primary",onClick:()=>eb(e.workerId),children:e.manualSessionOpened?"Re-open Manual Session":"Open Manual Session"}),(0,s.jsx)("p",{className:"text-[11px] text-text-muted",children:"Open only if this worker is blocked by CAPTCHA, 2FA, or recovery prompts."})]}):null]},`${e.email}-${e.line}`))})]},e.status)})})]}),(0,s.jsxs)("div",{className:"rounded-xl border border-border bg-sidebar/70",children:[(0,s.jsxs)("div",{className:"border-b border-border px-4 py-3",children:[(0,s.jsx)("p",{className:"text-sm font-semibold",children:"Live Activity Log"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Every worker step is recorded here in near real time."})]}),(0,s.jsxs)("div",{className:"max-h-[720px] space-y-3 overflow-y-auto p-4",children:[0===ea.length&&(0,s.jsx)("div",{className:"rounded-lg bg-background/70 px-3 py-4 text-sm text-text-muted",children:"Waiting for the first worker event..."}),ea.map(e=>(0,s.jsxs)("div",{className:"rounded-lg border border-border/70 bg-background/80 px-3 py-3",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("p",{className:"truncate text-sm font-semibold",children:e.email}),(0,s.jsxs)("p",{className:"text-[11px] text-text-muted",children:[e.workerId?`Worker ${e.workerId}`:"Waiting"," | ",u(e.step)]})]}),(0,s.jsx)("span",{className:"shrink-0 text-[11px] text-text-muted",children:x(e.at)})]}),(0,s.jsx)("p",{className:"mt-2 text-xs text-text-muted",children:e.message})]},e.id))]})]})]})]}),U&&(0,s.jsx)("div",{className:"rounded-lg border border-red-200 bg-red-50 p-3 dark:border-red-800 dark:bg-red-900/20",children:(0,s.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400",children:U})}),(0,s.jsxs)("div",{className:"flex gap-2",children:[!L&&(0,s.jsx)(o.$n,{onClick:ex,fullWidth:!0,disabled:B||!O.trim(),children:B?"Starting...":"Start Bulk Import"}),L&&!er&&(0,s.jsx)(o.$n,{onClick:ep,fullWidth:!0,variant:"secondary",disabled:!et,children:et?"Cancel Running Job":"Job Stopped"}),er&&(0,s.jsx)(o.$n,{onClick:eh,fullWidth:!0,children:"Done & Refresh Connections"}),(0,s.jsx)(o.$n,{onClick:ed,variant:"ghost",fullWidth:!0,children:L?"Back":"Cancel"})]})]})]})]})})}b.propTypes={status:i().string.isRequired},f.propTypes={isOpen:i().bool.isRequired,onMethodSelect:i().func.isRequired,onImportSuccess:i().func,initialJobId:i().string,initialSelectedMethod:i().string,initialImportMode:i().string,initialFlowKey:i().oneOfType([i().string,i().number]),onBulkJobChange:i().func,onClose:i().func.isRequired}},33379:(e,t,r)=>{r.d(t,{C:()=>a});var s=r(34023);function a(e=2e3){let[t,r]=(0,s.useState)(null),l=(0,s.useRef)(null);return{copied:t,copy:(0,s.useCallback)((t,s="default")=>{(async()=>{if(navigator?.clipboard?.writeText)await navigator.clipboard.writeText(t);else{let e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.opacity="0",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}})(),r(s),l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{r(null)},e)},[e])}}},34694:(e,t,r)=>{r.d(t,{default:()=>d});var s=r(94799),a=r(34023),l=r(78525),n=r.n(l),i=r(77783),o=r(33379);function d({isOpen:e,provider:t,onSuccess:r,onClose:l}){let[n,c]=(0,a.useState)("loading"),[m,u]=(0,a.useState)(""),[x,p]=(0,a.useState)(null),[h,b]=(0,a.useState)(""),[f,g]=(0,a.useState)(null),{copied:j,copy:v}=(0,o.C)();(0,a.useEffect)(()=>{e&&t&&(async()=>{try{g(null),c("loading");let e=await fetch(`/api/oauth/kiro/social-authorize?provider=${t}`),r=await e.json();if(!e.ok)throw Error(r.error);p(r),u(r.authUrl),c("input"),window.open(r.authUrl,"_blank")}catch(e){g(e.message),c("error")}})()},[e,t]);let y=async()=>{try{let e;g(null);try{e=new URL(h)}catch(e){throw Error("Invalid callback URL format")}let s=e.searchParams.get("code");e.searchParams.get("state");let a=e.searchParams.get("error");if(a)throw Error(e.searchParams.get("error_description")||a);if(!s)throw Error("No authorization code found in URL");let l=await fetch("/api/oauth/kiro/social-exchange",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:s,codeVerifier:x.codeVerifier,provider:t})}),n=await l.json();if(!l.ok)throw Error(n.error);c("success"),r?.()}catch(e){g(e.message),c("error")}},N="google"===t?"Google":"GitHub";return(0,s.jsx)(i.aF,{isOpen:e,title:`Connect Kiro via ${N}`,onClose:l,size:"lg",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:["loading"===n&&(0,s.jsxs)("div",{className:"text-center py-6",children:[(0,s.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-primary/10 flex items-center justify-center",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-3xl text-primary animate-spin",children:"progress_activity"})}),(0,s.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Initializing..."}),(0,s.jsxs)("p",{className:"text-sm text-text-muted",children:["Setting up ",N," authentication"]})]}),"input"===n&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium mb-2",children:"Step 1: Open this URL in your browser"}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.pd,{value:m,readOnly:!0,className:"flex-1 font-mono text-xs"}),(0,s.jsx)(i.$n,{variant:"secondary",icon:"auth_url"===j?"check":"content_copy",onClick:()=>v(m,"auth_url"),children:"Copy"})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium mb-2",children:"Step 2: Paste the callback URL here"}),(0,s.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"After authorization, copy the full URL from your browser address bar."}),(0,s.jsx)(i.pd,{value:h,onChange:e=>b(e.target.value),placeholder:"kiro://kiro.kiroAgent/authenticate-success?code=...",className:"font-mono text-xs"})]})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:y,fullWidth:!0,disabled:!h,children:"Connect"}),(0,s.jsx)(i.$n,{onClick:l,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"success"===n&&(0,s.jsxs)("div",{className:"text-center py-6",children:[(0,s.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-3xl text-green-600",children:"check_circle"})}),(0,s.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connected Successfully!"}),(0,s.jsxs)("p",{className:"text-sm text-text-muted mb-4",children:["Your Kiro account via ",N," has been connected."]}),(0,s.jsx)(i.$n,{onClick:l,fullWidth:!0,children:"Done"})]}),"error"===n&&(0,s.jsxs)("div",{className:"text-center py-6",children:[(0,s.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-3xl text-red-600",children:"error"})}),(0,s.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connection Failed"}),(0,s.jsx)("p",{className:"text-sm text-red-600 mb-4",children:f}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:()=>c("input"),variant:"secondary",fullWidth:!0,children:"Try Again"}),(0,s.jsx)(i.$n,{onClick:l,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})})}d.propTypes={isOpen:n().bool.isRequired,provider:n().oneOf(["google","github"]).isRequired,onSuccess:n().func,onClose:n().func.isRequired}},35499:(e,t,r)=>{r.d(t,{default:()=>y});var s=r(94799),a=r(34023),l=r(99870),n=r(78525),i=r.n(n),o=r(39725),d=r(72078),c=r(81462),m=r(16983),u=r(74674);let x=new Set(["queued","running","needs_manual"]),p=new Set(["completed","failed","cancelled"]),h="chromium";function b(e){return String(e||"waiting").replaceAll("_"," ")}function f(e){if(!e)return"now";let t=new Date(e);return Number.isNaN(t.getTime())?"now":t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}function g({status:e}){return(0,s.jsx)(o.default,{variant:"success"===e||"completed"===e?"success":"needs_manual"===e?"warning":"running"===e||"queued"===e?"info":"cancelled"===e?"default":"danger",size:"sm",children:b(e)})}async function j(e,t){let r=await fetch(`/api/oauth/${e}/bulk-import/${t}`,{cache:"no-store"}),s=await r.json();return{res:r,data:s}}async function v(e,t="recoverable"){let r=await fetch(`/api/oauth/${e}/bulk-import/latest?scope=${encodeURIComponent(t)}`,{cache:"no-store"}),s=await r.json();return{res:r,data:s}}function y({isOpen:e,onClose:t,onSuccess:r,provider:n,title:i,serviceName:o,defaultEngine:N=h,accountsPlaceholder:k}){let w=`${n}-bulk-import-active-job`,C=`${n}-bulk-import-accounts-draft`,S=(0,a.useRef)(new Set),I=(0,a.useRef)(""),[T,$]=(0,a.useState)(""),A=(0,a.useCallback)(e=>{let t="function"==typeof e?e(I.current):e;I.current=t,$(t);try{t?window.localStorage.setItem(C,t):window.localStorage.removeItem(C)}catch{}},[C]),[P,O]=(0,a.useState)(String(4)),[R,E]=(0,a.useState)(!0),[M,_]=(0,a.useState)(""),[z,L]=(0,a.useState)([]),[q,U]=(0,a.useState)(null),[F,D]=(0,a.useState)(null),[W,B]=(0,a.useState)(!1),[K,J]=(0,a.useState)(null),V=q&&x.has(q.status),G=q&&p.has(q.status);(0,a.useEffect)(()=>{try{let e=window.localStorage.getItem(C);e&&(I.current=e,$(e))}catch{}},[C]),(0,a.useEffect)(()=>{if(!e)return;let t=!1;return(async()=>{try{let e=await fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}),r=await e.json();!t&&e.ok&&L(r.proxyPools||[])}catch{}})(),()=>{t=!0}},[e]);let H=(0,a.useMemo)(()=>{let e=new Map;for(let t of q?.accounts||[]){let r=t.status||"unknown";e.has(r)||e.set(r,[]),e.get(r).push(t)}return[...e.entries()].map(([e,t])=>({status:e,accounts:t}))},[q]),Q=(0,a.useMemo)(()=>[...q?.activity||[]].reverse(),[q]),X=(0,a.useCallback)(()=>{A(""),O(String(4)),E(!0),setEngine(N||h),_(""),U(null),D(null),B(!1),J(null),window.localStorage.removeItem(w)},[w,N,A]);(0,a.useEffect)(()=>{if(!e)return;let t=!1;return(async()=>{D(null),J(null);try{let e=window.localStorage.getItem(w);if(e){let{res:r,data:s}=await j(n,e);if(!t&&r.ok&&s?.job&&s.recoverable){U(s.job),J("Restored the active bulk login job.");return}}let r=await v(n,"recoverable");!t&&r.res.ok&&r.data?.job&&(U(r.data.job),J("Restored the latest recoverable bulk login job."),window.localStorage.setItem(w,r.data.job.jobId))}catch{t||J(null)}})(),()=>{t=!0}},[e,n,w]),(0,a.useEffect)(()=>{if(!e||!q?.jobId||G)return;let t=window.setInterval(async()=>{try{let{res:e,data:t}=await j(n,q.jobId);e.ok&&t?.job&&(U(t.job),window.localStorage.setItem(w,t.job.jobId),p.has(t.job.status)&&!S.current.has(t.job.jobId)&&(S.current.add(t.job.jobId),r?.()))}catch{}},2e3);return()=>window.clearInterval(t)},[q?.jobId,G,e,r,n,w]);let Z=async()=>{let e=T.split("\n").map(e=>e.trim()).filter(Boolean);if(!e.length)return void D("Please enter at least one gmail|password line");B(!0),D(null),J(null);try{let t="none",r=null;"all"===M?t="all":M&&""!==M&&(t="single",r=M);let s=await fetch(`/api/oauth/${n}/bulk-import`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accounts:e,concurrency:R?"auto":Number.parseInt(P,10)||4,engine:h,proxyPoolMode:t,proxyPoolId:r})}),a=await s.json();if(!s.ok){let e=Array.isArray(a.invalidLines)&&a.invalidLines.length>0?` Invalid lines: ${a.invalidLines.join(", ")}`:"";throw Error((a.error||"Bulk account import failed")+e)}if(U(a.job||null),a.job?.jobId){S.current.delete(a.job.jobId),window.localStorage.setItem(w,a.job.jobId);try{window.localStorage.removeItem(C)}catch{}}}catch(e){D(e.message)}finally{B(!1)}},Y=async()=>{if(q?.jobId)try{let e=await fetch(`/api/oauth/${n}/bulk-import/${q.jobId}/cancel`,{method:"POST"}),t=await e.json();if(!e.ok)throw Error(t.error||"Failed to cancel job");t.job&&U(t.job)}catch(e){D(e.message)}},ee=async e=>{if(q?.jobId&&e)try{let t=await fetch(`/api/oauth/${n}/bulk-import/${q.jobId}/manual/${e}`,{method:"POST"}),r=await t.json();if(!t.ok)throw Error(r.error||"Failed to open manual session");r.job&&U(r.job)}catch(e){D(e.message)}},et=()=>{X(),r?.()};return(0,s.jsx)(m.default,{isOpen:e,title:i,onClose:t,size:"full",className:"max-w-[min(96vw,1320px)]",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[!q&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"rounded-lg border border-blue-200 bg-blue-50 p-3 dark:border-blue-800 dark:bg-blue-900/20",children:(0,s.jsx)("p",{className:"text-sm text-blue-800 dark:text-blue-200",children:"Bulk GSuite login runs browser workers in the background. Use one account per line in gmail|password format. Accounts that hit CAPTCHA, 2FA, or recovery prompts move to manual assist."})}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{className:"mb-2 block text-sm font-medium",children:["Bulk Accounts ",(0,s.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,s.jsx)("textarea",{value:T,onChange:e=>A(e.target.value),placeholder:k||"gmail1@example.com|password1\ngmail2@example.com|password2",className:"min-h-[180px] w-full resize-y rounded-lg border border-border bg-background px-3 py-2 font-mono text-sm focus:outline-none focus:ring-1 focus:ring-primary"}),(0,s.jsx)("p",{className:"mt-1 text-xs text-text-muted",children:"One account per line in the format gmail|password."})]}),(0,s.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"mb-2 flex items-center justify-between gap-2",children:[(0,s.jsx)("label",{className:"block text-sm font-medium",children:"Concurrent Workers"}),(0,s.jsxs)("label",{className:"flex cursor-pointer items-center gap-1.5 text-xs text-text-muted",children:[(0,s.jsx)("input",{type:"checkbox",checked:R,onChange:e=>E(e.target.checked),className:"size-3.5 rounded border-black/20 dark:border-white/20"}),"Auto-detect"]})]}),(0,s.jsx)(c.default,{type:"number",min:"1",max:"8",value:R?"":P,onChange:e=>O(e.target.value),placeholder:R?"Auto":"4",disabled:R}),(0,s.jsx)("p",{className:"mt-1 text-xs text-text-muted",children:R?"Workers auto-detected from server CPU/RAM, clamped to 1 to 8.":"Default 4. Allowed range: 1 to 8 workers."})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"mb-2 block text-sm font-medium",children:"Browser Engine"}),(0,s.jsx)("p",{className:"rounded-lg border border-border bg-background px-3 py-2 text-sm",children:"Chromium"})]})]}),(0,s.jsx)(u.default,{label:"Proxy Pool",value:M,onChange:e=>_(e.target.value),placeholder:"No Proxy (direct connection)",hint:"all"===M?`Round-robin across ${z.length} active pool${1===z.length?"":"s"}. Each account gets a different proxy.`:M?"All accounts will use this proxy.":"Optional. Assign proxies to accounts for IP rotation.",options:[{value:"all",label:`All Active Pools (${z.length})`},...z.map(e=>({value:e.id,label:e.name||e.proxyUrl}))]})]}),q&&(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 rounded-xl border border-border p-4 sm:flex-row sm:items-start sm:justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("h3",{className:"font-semibold",children:[o," Bulk Login Job"]}),(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:["Job ID: ",(0,s.jsx)("span",{className:"font-mono",children:q.jobId})]}),(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:["Status: ",(0,s.jsx)("span",{className:"font-medium",children:q.status})," | Workers: ",q.concurrency]})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[V&&(0,s.jsx)(d.default,{size:"sm",variant:"secondary",onClick:Y,children:"Cancel Job"}),G&&(0,s.jsx)(d.default,{size:"sm",onClick:et,children:"Done & Refresh"})]})]}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-3 lg:grid-cols-6",children:Object.entries(q.summary||{}).map(([e,t])=>(0,s.jsxs)("div",{className:"rounded-lg bg-sidebar px-3 py-2",children:[(0,s.jsx)("p",{className:"text-[11px] uppercase tracking-wide text-text-muted",children:b(e)}),(0,s.jsx)("p",{className:"text-lg font-semibold",children:t})]},e))}),q.error&&(0,s.jsx)("div",{className:"rounded-lg border border-red-200 bg-red-50 p-3 text-sm text-red-700 dark:border-red-800 dark:bg-red-900/20 dark:text-red-300",children:q.error}),q.summary?.needs_manual>0&&(0,s.jsxs)("div",{className:"rounded-lg border border-amber-200 bg-amber-50 p-3 text-sm text-amber-800 dark:border-amber-800 dark:bg-amber-900/20 dark:text-amber-200",children:["Some accounts need manual assist. Open the worker session, finish the Google or ",o," prompts, and the job will keep polling."]}),(0,s.jsxs)("div",{className:"grid gap-4 lg:grid-cols-[minmax(0,7fr)_minmax(300px,3fr)]",children:[(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"overflow-hidden rounded-xl border border-border bg-sidebar",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 border-b border-border px-4 py-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-semibold",children:"Live Browser Preview"}),(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:[q.preview?.email||"Waiting for worker",q.preview?.workerId?` | Worker ${q.preview.workerId}`:""]})]}),(0,s.jsxs)("div",{className:"text-right text-xs text-text-muted",children:[(0,s.jsx)("p",{children:b(q.preview?.step)}),(0,s.jsxs)("p",{children:["Updated ",f(q.preview?.updatedAt)]})]})]}),(0,s.jsx)("div",{className:"relative bg-black/90",children:q.preview?.imageData?(0,s.jsx)(l.default,{src:q.preview.imageData,alt:`Live worker preview for ${q.preview.email||o}`,width:1440,height:900,unoptimized:!0,className:"h-[340px] w-full object-contain"}):(0,s.jsxs)("div",{className:"flex h-[340px] flex-col items-center justify-center gap-3 px-6 text-center text-slate-200",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-5xl text-primary/80",children:"browser_updated"}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("p",{className:"text-base font-medium",children:["Preview will appear when a worker opens Google or ",o]}),(0,s.jsx)("p",{className:"mt-1 text-sm text-slate-400",children:"The job keeps running even when a screenshot is not available yet."})]})]})})]}),H.map(e=>(0,s.jsxs)("div",{className:"rounded-xl border border-border p-4",children:[(0,s.jsxs)("div",{className:"mb-3 flex items-center justify-between gap-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(g,{status:e.status}),(0,s.jsx)("p",{className:"text-sm font-semibold capitalize",children:b(e.status)})]}),(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:[e.accounts.length," account",1===e.accounts.length?"":"s"]})]}),(0,s.jsx)("div",{className:"grid gap-3 xl:grid-cols-2",children:e.accounts.map(e=>(0,s.jsxs)("div",{className:"rounded-xl border border-border bg-background/80 p-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-start sm:justify-between",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("p",{className:"truncate text-sm font-semibold",children:e.email}),(0,s.jsxs)("p",{className:"text-[11px] text-text-muted",children:["Line ",e.line,e.workerId?` | Worker ${e.workerId}`:""," | ",f(e.updatedAt)]})]}),(0,s.jsx)(g,{status:e.status})]}),(0,s.jsxs)("div",{className:"mt-3 rounded-lg border border-border/70 bg-sidebar/70 px-3 py-2",children:[(0,s.jsx)("p",{className:"text-[11px] uppercase tracking-wide text-text-muted",children:"Current Step"}),(0,s.jsx)("p",{className:"mt-1 text-sm font-medium capitalize",children:b(e.currentStep)})]}),e.proxyUrl&&(0,s.jsxs)("div",{className:"mt-2 flex items-center gap-1.5",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"vpn_lock"}),(0,s.jsx)("p",{className:"truncate font-mono text-[11px] text-text-muted",children:e.proxyUrl})]}),e.error&&(0,s.jsx)("p",{className:"mt-3 text-xs text-red-500",children:e.error}),e.manualSessionAvailable&&e.workerId?(0,s.jsxs)("div",{className:"mt-3 flex flex-col gap-2 sm:flex-row sm:items-center",children:[(0,s.jsx)(d.default,{size:"sm",variant:e.manualSessionOpened?"secondary":"primary",onClick:()=>ee(e.workerId),children:e.manualSessionOpened?"Re-open Manual Session":"Open Manual Session"}),(0,s.jsx)("p",{className:"text-[11px] text-text-muted",children:"Use this only for CAPTCHA, 2FA, or recovery prompts."})]}):null]},`${e.email}-${e.line}`))})]},e.status))]}),(0,s.jsxs)("div",{className:"rounded-xl border border-border bg-sidebar/70",children:[(0,s.jsxs)("div",{className:"border-b border-border px-4 py-3",children:[(0,s.jsx)("p",{className:"text-sm font-semibold",children:"Live Activity Log"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Worker steps update in near real time."})]}),(0,s.jsxs)("div",{className:"max-h-[640px] space-y-3 overflow-y-auto p-4",children:[0===Q.length&&(0,s.jsx)("div",{className:"rounded-lg bg-background/70 px-3 py-4 text-sm text-text-muted",children:"Waiting for the first worker event..."}),Q.map(e=>(0,s.jsxs)("div",{className:"rounded-lg border border-border/70 bg-background/80 px-3 py-3",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("p",{className:"truncate text-sm font-semibold",children:e.email}),(0,s.jsxs)("p",{className:"text-[11px] text-text-muted",children:[e.workerId?`Worker ${e.workerId}`:"Waiting"," | ",b(e.step)]})]}),(0,s.jsx)("span",{className:"shrink-0 text-[11px] text-text-muted",children:f(e.at)})]}),(0,s.jsx)("p",{className:"mt-2 text-xs text-text-muted",children:e.message})]},e.id))]})]})]})]}),K&&(0,s.jsx)("div",{className:"rounded-lg border border-amber-200 bg-amber-50 p-3 dark:border-amber-800 dark:bg-amber-900/20",children:(0,s.jsx)("p",{className:"text-sm text-amber-700 dark:text-amber-300",children:K})}),F&&(0,s.jsx)("div",{className:"rounded-lg border border-red-200 bg-red-50 p-3 dark:border-red-800 dark:bg-red-900/20",children:(0,s.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400",children:F})}),(0,s.jsxs)("div",{className:"flex gap-2",children:[!q&&(0,s.jsx)(d.default,{onClick:Z,fullWidth:!0,disabled:W||!T.trim(),children:W?"Starting...":"Start Bulk Login"}),q&&!G&&(0,s.jsx)(d.default,{onClick:Y,fullWidth:!0,variant:"secondary",disabled:!V,children:V?"Cancel Running Job":"Job Stopped"}),G&&(0,s.jsx)(d.default,{onClick:et,fullWidth:!0,children:"Done & Refresh Connections"}),(0,s.jsx)(d.default,{onClick:q?X:t,variant:"ghost",fullWidth:!0,children:q?"Clear":"Cancel"})]})]})})}g.propTypes={status:i().string},y.propTypes={isOpen:i().bool.isRequired,onClose:i().func.isRequired,onSuccess:i().func,provider:i().string.isRequired,title:i().string.isRequired,serviceName:i().string.isRequired,defaultEngine:i().string,accountsPlaceholder:i().string}},37251:(e,t,r)=>{r.d(t,{default:()=>c});var s=r(94799),a=r(34023),l=r(78525),n=r.n(l),i=r(29874),o=r(31052),d=r(34694);function c({isOpen:e,providerInfo:t,onSuccess:r,onRefresh:l,onClose:n,initialBulkJobId:m,initialFlow:u,onBulkJobChange:x}){let[p,h]=(0,a.useState)(null),[b,f]=(0,a.useState)(null),[g,j]=(0,a.useState)(null);(0,a.useEffect)(()=>{if(e&&u){if("builder-id"===u.method)return void h("builder-id");if("social"===u.method){h("social"),f(u.provider||"google");return}h(null),f(null),j(null)}},[u,e]);let v=(0,a.useCallback)((e,t)=>{"builder-id"===e?h("builder-id"):"idc"===e?(h("idc"),j(t)):"social"===e?(h("social"),f(t.provider)):"import"===e&&r?.()},[r]),y=()=>{h(null),f(null),j(null)};return p?"builder-id"===p||"idc"===p?(0,s.jsx)(i.default,{isOpen:e,provider:"kiro",providerInfo:t,onSuccess:()=>{h(null),j(null),r?.(),n?.()},onClose:y,idcConfig:g}):"social"===p&&b?(0,s.jsx)(d.default,{isOpen:e,provider:b,onSuccess:()=>{h(null),f(null),r?.(),n?.()},onClose:y}):null:(0,s.jsx)(o.default,{isOpen:e,onMethodSelect:v,onImportSuccess:l||r,initialJobId:m,initialSelectedMethod:u?.method==="import"?"import":u?.method==="idc"?"idc":void 0,initialImportMode:u?.method==="import"?u.importMode:void 0,initialFlowKey:u?.key,onBulkJobChange:x,onClose:n})}c.propTypes={isOpen:n().bool.isRequired,providerInfo:n().shape({name:n().string}),initialBulkJobId:n().string,initialFlow:n().shape({key:n().oneOfType([n().string,n().number]),method:n().string,importMode:n().string,provider:n().string}),onBulkJobChange:n().func,onRefresh:n().func,onSuccess:n().func,onClose:n().func.isRequired}},39725:(e,t,r)=>{r.d(t,{default:()=>i});var s=r(94799),a=r(28834);let l={default:"bg-surface-2 text-text-muted",primary:"bg-brand-500/10 text-brand-600 dark:text-brand-300",success:"bg-green-500/10 text-green-600 dark:text-green-400",warning:"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400",error:"bg-red-500/10 text-red-600 dark:text-red-400",info:"bg-blue-500/10 text-blue-600 dark:text-blue-400"},n={sm:"px-2 py-0.5 text-[10px]",md:"px-2.5 py-1 text-xs",lg:"px-3 py-1.5 text-sm"};function i({children:e,variant:t="default",size:r="md",dot:o=!1,icon:d,className:c}){return(0,s.jsxs)("span",{className:(0,a.cn)("inline-flex items-center gap-1.5 rounded-full font-semibold",l[t],n[r],c),children:[o&&(0,s.jsx)("span",{className:(0,a.cn)("size-1.5 rounded-full","success"===t&&"bg-green-500","warning"===t&&"bg-yellow-500","error"===t&&"bg-red-500","info"===t&&"bg-blue-500","primary"===t&&"bg-brand-500","default"===t&&"bg-gray-500")}),d&&(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:d}),e]})}},39774:(e,t,r)=>{r.d(t,{default:()=>n});var s=r(94799),a=r(34023),l=r(28834);function n({checked:e=!1,onChange:t,label:r,description:i,disabled:o=!1,size:d="md",className:c,busy:m=!1,...u}){let x=(0,a.useId)(),p=(0,a.useId)(),h={sm:{track:"w-8 h-4",thumb:"size-3",translate:"translate-x-4"},md:{track:"w-11 h-6",thumb:"size-5",translate:"translate-x-5"},lg:{track:"w-14 h-7",thumb:"size-6",translate:"translate-x-7"}},b=()=>{o||m||!t||t(!e)};return(0,s.jsxs)("div",{className:(0,l.cn)("flex items-center gap-3",o&&"opacity-50 cursor-not-allowed",c),children:[(0,s.jsx)("button",{type:"button",role:"switch","aria-checked":e,"aria-busy":m||void 0,"aria-labelledby":r?x:void 0,"aria-describedby":i?p:void 0,"aria-label":r?void 0:u["aria-label"],disabled:o||m,onClick:b,...u,className:(0,l.cn)("relative inline-flex shrink-0 cursor-pointer rounded-full","transition-colors duration-200 ease-in-out","focus:outline-none focus:ring-2 focus:ring-brand-500/30",e?"bg-brand-500":"bg-surface-3",h[d].track,o&&"cursor-not-allowed"),children:(0,s.jsx)("span",{className:(0,l.cn)("pointer-events-none inline-block rounded-full bg-white shadow-sm","transform transition duration-200 ease-in-out",e?h[d].translate:"translate-x-0.5",h[d].thumb,"mt-0.5")})}),(r||i)&&(0,s.jsxs)("div",{className:"flex flex-col",children:[r&&(0,s.jsx)("label",{id:x,onClick:b,className:"text-sm font-medium text-text-main cursor-pointer",children:r}),i&&(0,s.jsx)("span",{id:p,className:"text-xs text-text-muted",children:i})]})]})}},39798:(e,t,r)=>{r.d(t,{default:()=>o});var s=r(94799),a=r(34023),l=r(78525),n=r.n(l),i=r(77783);function o({isOpen:e,connectionIds:t,onSuccess:r,onClose:l}){let[n,d]=(0,a.useState)(""),[c,m]=(0,a.useState)(!1),[u,x]=(0,a.useState)(""),[p,h]=(0,a.useState)(!1),b=async()=>{if(!n.trim())return void x("Paste your CodeBuddy web cookie first.");m(!0),x("");try{let e=await fetch("/api/oauth/codebuddy/quota-cookie",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cookie:n.trim(),connectionIds:t})}),s=await e.json().catch(()=>({}));if(!e.ok)throw Error(s.error||"Failed to save CodeBuddy quota cookie.");h(!0),setTimeout(()=>{r?.(),f()},900)}catch(e){x(e.message||"Failed to save CodeBuddy quota cookie.")}finally{m(!1)}},f=()=>{d(""),x(""),h(!1),l?.()};return(0,s.jsx)(i.aF,{isOpen:e,onClose:f,title:"CodeBuddy Quota Cookie",children:(0,s.jsx)("div",{className:"space-y-4",children:p?(0,s.jsxs)("div",{className:"py-6 text-center",children:[(0,s.jsx)("p",{className:"text-lg font-medium text-text-primary",children:"Quota cookie saved."}),(0,s.jsx)("p",{className:"mt-2 text-sm text-text-muted",children:"Quota Tracker can now read CodeBuddy credits for the selected connection."})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"space-y-2 text-sm text-text-muted",children:[(0,s.jsx)("p",{children:"Paste the cookie string from a logged-in CodeBuddy web session. This is only used for the quota endpoint; your existing OAuth token still handles chat."}),(0,s.jsx)("div",{className:"rounded-lg bg-surface-secondary p-3 text-xs",children:"Open codebuddy.ai, sign in, then copy the request cookie from DevTools Network for a request to codebuddy.ai."})]}),(0,s.jsx)("textarea",{value:n,onChange:e=>d(e.target.value),placeholder:"session=...; AUTH_SESSION_ID=...; ...",className:"h-28 w-full resize-none rounded-lg border border-border bg-surface-secondary px-3 py-2 text-sm text-text-primary placeholder-text-muted focus:outline-none focus:ring-2 focus:ring-primary",disabled:c}),u&&(0,s.jsx)("div",{className:"rounded-lg border border-error/20 bg-error/10 p-3",children:(0,s.jsx)("p",{className:"text-sm text-error",children:u})}),(0,s.jsxs)("div",{className:"flex gap-3 pt-2",children:[(0,s.jsx)(i.$n,{variant:"secondary",onClick:f,disabled:c,fullWidth:!0,children:"Cancel"}),(0,s.jsx)(i.$n,{onClick:b,loading:c,fullWidth:!0,children:"Save Cookie"})]})]})})})}o.propTypes={isOpen:n().bool.isRequired,connectionIds:n().arrayOf(n().string).isRequired,onSuccess:n().func,onClose:n().func}},39835:(e,t,r)=>{r.d(t,{default:()=>d});var s=r(94799),a=r(34023),l=r(56742),n=r(64172),i=r(99646);let o=e=>({en:{name:"English",flag:"\uD83C\uDDFA\uD83C\uDDF8"},vi:{name:"Tiếng Việt",flag:"\uD83C\uDDFB\uD83C\uDDF3"},"zh-CN":{name:"简体中文",flag:"\uD83C\uDDE8\uD83C\uDDF3"},"zh-TW":{name:"繁體中文",flag:"\uD83C\uDDF9\uD83C\uDDFC"},ja:{name:"日本語",flag:"\uD83C\uDDEF\uD83C\uDDF5"},"pt-BR":{name:"Portugu\xeas (Brasil)",flag:"\uD83C\uDDE7\uD83C\uDDF7"},"pt-PT":{name:"Portugu\xeas (Portugal)",flag:"\uD83C\uDDF5\uD83C\uDDF9"},ko:{name:"한국어",flag:"\uD83C\uDDF0\uD83C\uDDF7"},es:{name:"Espa\xf1ol",flag:"\uD83C\uDDEA\uD83C\uDDF8"},de:{name:"Deutsch",flag:"\uD83C\uDDE9\uD83C\uDDEA"},fr:{name:"Fran\xe7ais",flag:"\uD83C\uDDEB\uD83C\uDDF7"},he:{name:"עברית",flag:"\uD83C\uDDEE\uD83C\uDDF1"},ar:{name:"العربية",flag:"\uD83C\uDDF8\uD83C\uDDE6"},ru:{name:"Русский",flag:"\uD83C\uDDF7\uD83C\uDDFA"},pl:{name:"Polski",flag:"\uD83C\uDDF5\uD83C\uDDF1"},cs:{name:"Čeština",flag:"\uD83C\uDDE8\uD83C\uDDFF"},nl:{name:"Nederlands",flag:"\uD83C\uDDF3\uD83C\uDDF1"},tr:{name:"T\xfcrk\xe7e",flag:"\uD83C\uDDF9\uD83C\uDDF7"},uk:{name:"Українська",flag:"\uD83C\uDDFA\uD83C\uDDE6"},tl:{name:"Tagalog",flag:"\uD83C\uDDF5\uD83C\uDDED"},id:{name:"Indonesia",flag:"\uD83C\uDDEE\uD83C\uDDE9"},th:{name:"ไทย",flag:"\uD83C\uDDF9\uD83C\uDDED"},hi:{name:"हिन्दी",flag:"\uD83C\uDDEE\uD83C\uDDF3"},bn:{name:"বাংলা",flag:"\uD83C\uDDE7\uD83C\uDDE9"},ur:{name:"اردو",flag:"\uD83C\uDDF5\uD83C\uDDF0"},ro:{name:"Rom\xe2nă",flag:"\uD83C\uDDF7\uD83C\uDDF4"},sv:{name:"Svenska",flag:"\uD83C\uDDF8\uD83C\uDDEA"},it:{name:"Italiano",flag:"\uD83C\uDDEE\uD83C\uDDF9"},el:{name:"Ελληνικά",flag:"\uD83C\uDDEC\uD83C\uDDF7"},hu:{name:"Magyar",flag:"\uD83C\uDDED\uD83C\uDDFA"},fi:{name:"Suomi",flag:"\uD83C\uDDEB\uD83C\uDDEE"},da:{name:"Dansk",flag:"\uD83C\uDDE9\uD83C\uDDF0"},no:{name:"Norsk",flag:"\uD83C\uDDF3\uD83C\uDDF4"}})[e]||{name:e,flag:"\uD83C\uDF10"};function d({className:e="",isOpen:t,onClose:r,hideTrigger:c=!1}){let[m,u]=(0,a.useState)("en"),[x,p]=(0,a.useState)(!1),[h,b]=(0,a.useState)(!1),f=(0,a.useRef)(null),g="boolean"==typeof t,j=g?t:h,v=e=>{g?!e&&r&&r(m):b(e)};(0,a.useEffect)(()=>{u(function(){if("u"<typeof document)return"en";let e=document.cookie.split(";").find(e=>e.trim().startsWith(`${n.CL}=`)),t=e?decodeURIComponent(e.split("=")[1]):"en";return(0,n.QC)(t)}())},[]),(0,a.useEffect)(()=>{function e(e){f.current&&!f.current.contains(e.target)&&v(!1)}if(j)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[j]);let y=async e=>{if(e!==m&&!x){p(!0),v(!1);try{await fetch("/api/locale",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({locale:e})}),await (0,i.wn)(),u(e)}catch(e){console.error("Failed to set locale:",e)}finally{p(!1)}}};return(0,s.jsxs)("div",{className:e,children:[!c&&(0,s.jsxs)("button",{onClick:()=>v(!j),disabled:x,className:"flex items-center gap-2 px-3 py-2 rounded-lg text-text-muted hover:text-text-main hover:bg-surface/60 transition-colors",title:"Language","data-i18n-skip":"true",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"language"}),(0,s.jsx)("span",{className:"text-sm font-medium",children:o(m).name}),(0,s.jsx)("span",{className:"text-lg",children:o(m).flag})]}),j&&(0,l.createPortal)((0,s.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4","data-i18n-skip":"true",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/30 backdrop-blur-sm",onClick:()=>v(!1)}),(0,s.jsxs)("div",{ref:f,className:"relative w-full bg-surface border border-black/10 dark:border-white/10 rounded-xl shadow-2xl animate-in fade-in zoom-in-95 duration-200 max-w-2xl flex flex-col max-h-[80vh]",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between p-3 border-b border-black/5 dark:border-white/5",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:"Select Language"}),(0,s.jsx)("button",{onClick:()=>v(!1),className:"p-1.5 rounded-lg text-text-muted hover:bg-black/5 dark:hover:bg-white/5 transition-colors","aria-label":"Close",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,s.jsx)("div",{className:"p-6 overflow-y-auto flex-1",children:(0,s.jsx)("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(100px,1fr))] gap-2",children:n.YZ.map(e=>{let t=m===e,r=o(e);return(0,s.jsxs)("button",{onClick:()=>y(e),disabled:x,className:`flex flex-col items-center justify-start gap-1 px-2 py-3 rounded-lg text-xs font-medium transition-colors w-full ${t?"bg-primary/15 text-primary ring-2 ring-primary":"text-text-main hover:bg-black/5 dark:hover:bg-white/5"} ${x?"opacity-70 cursor-wait":""}`,title:r.name,children:[(0,s.jsx)("span",{className:"text-2xl",children:r.flag}),(0,s.jsx)("span",{className:"text-center leading-tight line-clamp-2 h-8 flex items-center",children:r.name}),t&&(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"check"})]},e)})})})]})]}),document.body)]})}},41981:(e,t,r)=>{r.d(t,{default:()=>c});var s=r(94799),a=r(68202),l=r.n(a),n=r(65418);let i=[{label:"Features",href:"#features"},{label:"Pricing",href:"#pricing"},{label:"Changelog",href:"#"}],o=[{label:"Documentation",href:"#"},{label:"API Reference",href:"#"},{label:"Help Center",href:"#"}],d=[{label:"About",href:"#"},{label:"Blog",href:"#"},{label:"Contact",href:"#"}];function c(){return(0,s.jsx)("footer",{className:"bg-bg border-t border-border pt-16 pb-12",children:(0,s.jsxs)("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:[(0,s.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-10 mb-12",children:[(0,s.jsxs)("div",{className:"col-span-2 lg:col-span-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-6",children:[(0,s.jsx)("div",{className:"size-6 text-primary",children:(0,s.jsx)("svg",{className:"w-full h-full",fill:"currentColor",viewBox:"0 0 48 48",children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M12.0799 24L4 19.2479L9.95537 8.75216L18.04 13.4961L18.0446 4H29.9554L29.96 13.4961L38.0446 8.75216L44 19.2479L35.92 24L44 28.7521L38.0446 39.2479L29.96 34.5039L29.9554 44H18.0446L18.04 34.5039L9.95537 39.2479L4 28.7521L12.0799 24Z",fillRule:"evenodd"})})}),(0,s.jsx)("span",{className:"text-xl font-bold text-text-main",children:n.vQ.name})]}),(0,s.jsx)("p",{className:"text-text-muted mb-6 max-w-sm font-light",children:"The unified interface for modern AI infrastructure. Secure, observable, and scalable."}),(0,s.jsxs)("div",{className:"flex gap-4",children:[(0,s.jsx)("a",{href:"#",className:"text-gray-400 hover:text-primary transition-colors","aria-label":"Twitter",children:(0,s.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07 4.28 4.28 0 0 0 4 2.98 8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21 16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23z"})})}),(0,s.jsx)("a",{href:"#",className:"text-gray-400 hover:text-primary transition-colors","aria-label":"GitHub",children:(0,s.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0 1 12 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0 0 22 12.017C22 6.484 17.522 2 12 2z"})})})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Product"}),(0,s.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:i.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(l(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Resources"}),(0,s.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:o.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(l(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Company"}),(0,s.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:d.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(l(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]})]}),(0,s.jsxs)("div",{className:"border-t border-border pt-8 flex flex-col md:flex-row justify-between items-center gap-4",children:[(0,s.jsxs)("p",{className:"text-sm text-text-muted",children:["\xa9 ",new Date().getFullYear()," ",n.vQ.name," Inc. All rights reserved."]}),(0,s.jsxs)("div",{className:"flex gap-6 text-sm text-text-muted",children:[(0,s.jsx)(l(),{href:"#",className:"hover:text-primary transition-colors",children:"Privacy Policy"}),(0,s.jsx)(l(),{href:"#",className:"hover:text-primary transition-colors",children:"Terms of Service"})]})]})]})})}},46817:(e,t,r)=>{r.d(t,{default:()=>n});var s=r(94799),a=r(47420);let l={mode:{label:"Mode",format:e=>e},defaultModel:{label:"Model",format:e=>e,mono:!0},baseUrl:{label:"Endpoint",format:e=>e,isLink:!0,mono:!0},costPerQuery:{label:"Cost / call",format:e=>0===e?"Free":`$${e.toFixed(4)}`},pricingUrl:{label:"Pricing",format:()=>"View pricing",isLink:!0},freeTier:{label:"Free tier",format:e=>e},freeMonthlyQuota:{label:"Free quota",format:e=>0===e?"—":e>=999999?"Unlimited":`${e.toLocaleString()} / mo`},searchTypes:{label:"Types",format:e=>e.join(", ")},formats:{label:"Formats",format:e=>e.join(", ")},maxMaxResults:{label:"Max results",format:e=>e},maxCharacters:{label:"Max chars",format:e=>e.toLocaleString()}};function n({config:e,provider:t,title:r="Provider Info"}){if(!e)return null;let i=Object.entries(l).filter(([t])=>void 0!==e[t]&&null!==e[t]&&""!==e[t]).map(([t,r])=>({key:t,label:r.label,value:r.format(e[t]),isLink:r.isLink,mono:r.mono,raw:e[t]})),o=t?.notice?.apiKeyUrl||t?.website,d=t?.notice?.text;return(0,s.jsxs)(a.default,{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold",children:r}),o&&(0,s.jsxs)("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline inline-flex items-center gap-1",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"open_in_new"}),"Get API Key"]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-2",children:[i.map(e=>(0,s.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,s.jsx)("span",{className:"text-xs text-text-muted w-28 shrink-0",children:e.label}),e.isLink?(0,s.jsx)("a",{href:e.raw,target:"_blank",rel:"noopener noreferrer",className:`text-sm text-primary hover:underline truncate ${e.mono?"font-mono":""}`,children:e.value}):(0,s.jsx)("span",{className:`text-sm text-text-main truncate ${e.mono?"font-mono":""}`,children:e.value})]},e.key)),d&&(0,s.jsxs)("div",{className:"flex items-start gap-3 min-w-0 sm:col-span-2",children:[(0,s.jsx)("span",{className:"text-xs text-text-muted w-28 shrink-0 mt-0.5",children:"Notice"}),(0,s.jsx)("span",{className:"text-sm text-text-main leading-relaxed",children:d})]})]})]})}},47420:(e,t,r)=>{r.d(t,{default:()=>l});var s=r(94799),a=r(28834);function l({children:e,title:t,subtitle:r,icon:n,action:i,padding:o="md",hover:d=!1,elev:c=!1,className:m,...u}){return(0,s.jsxs)("div",{className:(0,a.cn)("card-3d border border-border-subtle rounded-[14px] transition-[border-color,box-shadow,transform] duration-200",c&&"card-3d-elev",d&&"hover:-translate-y-0.5 hover:border-brand-500/30 hover:shadow-[var(--shadow-warm)] cursor-pointer",{none:"",xs:"p-3",sm:"p-4",md:"p-6",lg:"p-8"}[o],m),...u,children:[(t||i)&&(0,s.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[n&&(0,s.jsx)("div",{className:"p-2 rounded-[10px] bg-bg text-text-muted",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:n})}),(0,s.jsxs)("div",{children:[t&&(0,s.jsx)("h3",{className:"text-text-main font-semibold",children:t}),r&&(0,s.jsx)("p",{className:"text-sm text-text-muted",children:r})]})]}),i]}),e]})}l.Section=function({children:e,className:t,...r}){return(0,s.jsx)("div",{className:(0,a.cn)("p-4 rounded-[10px]","bg-bg border border-border-subtle",t),...r,children:e})},l.Row=function({children:e,className:t,...r}){return(0,s.jsx)("div",{className:(0,a.cn)("p-3 -mx-3 px-3 transition-colors","border-b border-border-subtle last:border-b-0","hover:bg-surface-2/50",t),...r,children:e})},l.ListItem=function({children:e,actions:t,className:r,...l}){return(0,s.jsxs)("div",{className:(0,a.cn)("group flex items-center justify-between p-3 -mx-3 px-3","border-b border-border-subtle last:border-b-0","hover:bg-surface-2/50 transition-colors",r),...l,children:[(0,s.jsx)("div",{className:"flex-1 min-w-0",children:e}),t&&(0,s.jsx)("div",{className:"flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:t})]})}},49050:(e,t,r)=>{r.d(t,{default:()=>n});var s=r(94799),a=r(28834),l=r(72078);function n({currentPage:e,pageSize:t,totalItems:r,onPageChange:i,onPageSizeChange:o,className:d}){let c=Math.ceil(r/t),m=r>0?(e-1)*t+1:0,u=Math.min(e*t,r),x=(()=>{let t=[],r=Math.max(1,e-2),s=Math.min(c,r+5-1);s-r+1<5&&(r=Math.max(1,s-5+1));for(let e=r;e<=s;e++)t.push(e);return t})();return(0,s.jsxs)("div",{className:(0,a.cn)("flex flex-col sm:flex-row items-center justify-between gap-4 py-4 px-2",d),children:[r>0&&(0,s.jsxs)("div",{className:"text-sm text-text-muted",children:["Showing ",(0,s.jsx)("span",{className:"font-medium text-text-main",children:m})," to"," ",(0,s.jsx)("span",{className:"font-medium text-text-main",children:u})," of"," ",(0,s.jsx)("span",{className:"font-medium text-text-main",children:r})," results"]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-2 sm:gap-4",children:[o&&(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"text-sm text-text-muted",children:"Rows:"}),(0,s.jsx)("select",{value:t,onChange:e=>o(Number(e.target.value)),className:(0,a.cn)("h-9 rounded-lg border border-black/10 dark:border-white/10 bg-surface","text-sm text-text-main focus:outline-none focus:ring-2 focus:ring-primary/20","cursor-pointer"),style:{colorScheme:"auto"},children:[10,20,50].map(e=>(0,s.jsx)("option",{value:e,children:e},e))})]}),c>1&&(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsx)(l.default,{variant:"outline",size:"sm",onClick:()=>i(e-1),disabled:1===e,className:"w-9 px-0",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"chevron_left"})}),x[0]>1&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.default,{variant:"ghost",size:"sm",onClick:()=>i(1),className:"w-9 px-0 hidden sm:inline-flex",children:"1"}),x[0]>2&&(0,s.jsx)("span",{className:"text-text-muted px-1 hidden sm:inline",children:"..."})]}),x.map(t=>(0,s.jsx)(l.default,{variant:e===t?"primary":"ghost",size:"sm",onClick:()=>i(t),className:(0,a.cn)("w-9 px-0",e===t?"inline-flex":"hidden sm:inline-flex"),children:t},t)),x[x.length-1]<c&&(0,s.jsxs)(s.Fragment,{children:[x[x.length-1]<c-1&&(0,s.jsx)("span",{className:"text-text-muted px-1 hidden sm:inline",children:"..."}),(0,s.jsx)(l.default,{variant:"ghost",size:"sm",onClick:()=>i(c),className:"w-9 px-0 hidden sm:inline-flex",children:c})]}),(0,s.jsx)(l.default,{variant:"outline",size:"sm",onClick:()=>i(e+1),disabled:e===c,className:"w-9 px-0",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"chevron_right"})})]})]})]})}},51357:(e,t,r)=>{r.d(t,{default:()=>a});var s=r(94799);function a({text:e,children:t,position:r="top",color:l}){let n=l?"":"bg-gray-900";return(0,s.jsxs)("div",{className:"relative inline-flex group",children:[t,(0,s.jsx)("div",{className:`pointer-events-none absolute ${{top:"bottom-full left-1/2 -translate-x-1/2 mb-1.5",bottom:"top-full left-1/2 -translate-x-1/2 mt-1.5",left:"right-full top-1/2 -translate-y-1/2 mr-1.5",right:"left-full top-1/2 -translate-y-1/2 ml-1.5"}[r]} z-50 w-max max-w-56 rounded px-2 py-1 text-[11px] leading-snug ${n} text-white opacity-0 group-hover:opacity-100 transition-opacity duration-150 whitespace-normal`,style:l?{backgroundColor:l}:{},children:e})]})}},51774:(e,t,r)=>{r.d(t,{default:()=>f});var s=r(94799),a=r(34023),l=r(78525),n=r.n(l),i=r(39725),o=r(72078);let d="codebuddy-cn",c=new Set(["queued","running","needs_manual"]),m=new Set(["completed","failed","cancelled"]),u=[{value:"camoufox",label:"Camoufox (recommended for CN)"},{value:"chromium",label:"Chromium"}],x=[{value:"hongkong",label:"Hong Kong (+852)"},{value:"china",label:"China (+86)"},{value:"any",label:"Any (cheapest available)"}];function p(e){return String(e||"waiting").replaceAll("_"," ")}function h(e){if(!e)return"now";let t=new Date(e);return Number.isNaN(t.getTime())?"now":t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}function b({status:e}){return(0,s.jsx)(i.default,{variant:"success"===e||"completed"===e?"success":"needs_manual"===e?"warning":"running"===e||"queued"===e?"info":"cancelled"===e?"default":"danger",size:"sm",children:p(e)})}function f({isOpen:e,onClose:t,onSuccess:r}){let l=`${d}-bulk-import-active-job`,n=(0,a.useRef)(new Set),[g,j]=(0,a.useState)("1"),[v,y]=(0,a.useState)("hongkong"),[N,k]=(0,a.useState)(String(2)),[w,C]=(0,a.useState)("camoufox"),[S,I]=(0,a.useState)(""),[T,$]=(0,a.useState)([]),[A,P]=(0,a.useState)(""),[O,R]=(0,a.useState)(""),[E,M]=(0,a.useState)(!1),[_,z]=(0,a.useState)(!1),[L,q]=(0,a.useState)(null),[U,F]=(0,a.useState)(null),[D,W]=(0,a.useState)(!1),[B,K]=(0,a.useState)(null),J=L&&c.has(L.status);(0,a.useEffect)(()=>{e&&fetch("/api/proxy-pools?isActive=true").then(e=>e.json()).then(e=>$(e.proxyPools||[])).catch(()=>{})},[e]),(0,a.useEffect)(()=>{e&&fetch("/api/settings").then(e=>e.json()).then(e=>M(!!e.fiveSimApiKeyConfigured)).catch(()=>{})},[e]);let V=(0,a.useCallback)(async()=>{if(O.trim()){z(!0),F(null);try{let e=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({fiveSimApiKey:O.trim()})}),t=await e.json();if(!e.ok)throw Error(t.error||"Failed to save 5sim API key");M(!0),R("")}catch(e){F(e.message)}finally{z(!1)}}},[O]),G=(0,a.useCallback)(async e=>{let t=await fetch(`/api/oauth/${d}/bulk-import/${e}`,{cache:"no-store"}),r=await t.json();return{res:t,data:r}},[]);(0,a.useEffect)(()=>{if(!L||!J)return;let e=L.jobId,t=setInterval(async()=>{try{let{res:t,data:s}=await G(e);t.ok&&s?.job&&(q(s.job),m.has(s.job.status)&&!n.current.has(s.job.jobId)&&(n.current.add(s.job.jobId),r?.()))}catch{}},2e3);return()=>clearInterval(t)},[L,J,G,r]),(0,a.useEffect)(()=>{if(!e)return;let t=window.localStorage.getItem(l);t&&G(t).then(({res:e,data:t})=>{e.ok&&t?.job&&c.has(t.job.status)?(q(t.job),K("Restored the active CodeBuddy CN bulk registration job")):fetch(`/api/oauth/${d}/bulk-import/latest?scope=recoverable`).then(e=>e.json()).then(e=>{let t=e?.job||e;t?.jobId&&c.has(t.status)&&(q(t),K("Restored the latest CodeBuddy CN bulk registration job"))}).catch(()=>{})}).catch(()=>{})},[e,l,G]);let H=(0,a.useRef)(!1),Q=(0,a.useCallback)(async()=>{if(H.current||D)return;if(J)return void F("A job is already running. Cancel it first or wait until it finishes.");let e=Number.parseInt(g,10);if(!e||e<1)return void F("Enter a valid number of accounts to register");if(!E)return void F("Configure your 5sim API key first");H.current=!0,W(!0),F(null);let t="none",r=null,s=A.trim();"all"===S?t="all":S&&""!==S&&(t="single",r=S);try{let a=await fetch(`/api/oauth/${d}/bulk-import`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({count:e,concurrency:Number.parseInt(N,10)||2,engine:w,proxyPoolMode:t,proxyPoolId:r,manualProxyUrl:s||null,region:v})}),n=await a.json();if(!a.ok)throw Error(n.error||"Failed to start bulk registration");q(n.job),window.localStorage.setItem(l,n.job.jobId)}catch(e){F(e.message)}finally{H.current=!1,W(!1)}},[g,v,N,w,S,A,E,l,D,J]),X=(0,a.useCallback)(async()=>{if(!L?.jobId)return;let e=L.jobId;try{await fetch(`/api/oauth/${d}/bulk-import/${e}/cancel`,{method:"POST"})}catch{}},[L]),Z=(0,a.useCallback)(async e=>{if(!L?.jobId||!e)return;let t=L.jobId;try{await fetch(`/api/oauth/${d}/bulk-import/${t}/manual/${e}`,{method:"POST"})}catch{}},[L]),Y=(0,a.useMemo)(()=>{let e=new Map;for(let t of L?.accounts||[]){let r=t.status||"unknown";e.has(r)||e.set(r,[]),e.get(r).push(t)}return[...e.entries()].map(([e,t])=>({status:e,accounts:t}))},[L]);if(!e)return null;let ee=L?.summary||{},et=L?.preview;return(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",onClick:t,children:(0,s.jsxs)("div",{className:"flex max-h-[90vh] w-full max-w-4xl flex-col overflow-hidden rounded-xl border border-border bg-surface shadow-xl",onClick:e=>e.stopPropagation(),children:[(0,s.jsxs)("div",{className:"flex items-center justify-between border-b border-border px-6 py-4",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:"CodeBuddy CN — Phone Auto-Register"}),(0,s.jsx)("button",{type:"button",onClick:t,className:"rounded-lg p-1 text-text-muted hover:bg-border/50",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,s.jsxs)("div",{className:"flex-1 overflow-y-auto p-6",children:[(0,s.jsxs)("div",{className:"mb-4 rounded-lg border border-border bg-background/50 p-4",children:[(0,s.jsxs)("div",{className:"mb-2 flex items-center gap-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px] text-primary",children:"vpn_key"}),(0,s.jsx)("span",{className:"text-sm font-medium text-text-main",children:"5sim API Key"}),E&&(0,s.jsx)(i.default,{variant:"success",size:"sm",children:"Configured ✓"})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("input",{type:"password",className:"flex-1 rounded-lg border border-border bg-background px-3 py-2 text-sm text-text-main placeholder:text-text-muted focus:border-primary focus:outline-none",placeholder:E?"Enter new key to replace...":"Paste your 5sim API key...",value:O,onChange:e=>R(e.target.value),disabled:_}),(0,s.jsx)(o.default,{variant:"secondary",size:"sm",onClick:V,disabled:_||!O.trim(),children:_?"Saving...":"Save"})]}),(0,s.jsxs)("p",{className:"mt-1 text-xs text-text-muted",children:["Get your API key from"," ",(0,s.jsx)("a",{href:"https://5sim.net",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"5sim.net"})," ","→ Profile → API. Used to order HK phone numbers and receive SMS codes."]})]}),!L&&(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"mb-1 block text-xs font-medium text-text-muted",children:"Number of Accounts"}),(0,s.jsx)("input",{type:"number",min:"1",max:"200",className:"w-full rounded-lg border border-border bg-background px-3 py-2 text-sm text-text-main focus:border-primary focus:outline-none",value:g,onChange:e=>j(e.target.value),disabled:D}),(0,s.jsx)("p",{className:"mt-1 text-xs text-text-muted",children:"Each account costs ~$0.70 per HK number on 5sim"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"mb-1 block text-xs font-medium text-text-muted",children:"Phone Region"}),(0,s.jsx)("select",{className:"w-full rounded-lg border border-border bg-background px-3 py-2 text-sm text-text-main focus:border-primary focus:outline-none",value:v,onChange:e=>y(e.target.value),disabled:D,children:x.map(e=>(0,s.jsx)("option",{value:e.value,children:e.label},e.value))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"mb-1 block text-xs font-medium text-text-muted",children:"Concurrent Workers"}),(0,s.jsx)("input",{type:"number",min:"1",max:"8",className:"w-full rounded-lg border border-border bg-background px-3 py-2 text-sm text-text-main focus:border-primary focus:outline-none",value:N,onChange:e=>k(e.target.value),disabled:D}),(0,s.jsx)("p",{className:"mt-1 text-xs text-text-muted",children:"Default 2 (5sim rating-safe). Higher = faster but riskier."})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"mb-1 block text-xs font-medium text-text-muted",children:"Browser Engine"}),(0,s.jsx)("select",{className:"w-full rounded-lg border border-border bg-background px-3 py-2 text-sm text-text-main focus:border-primary focus:outline-none",value:w,onChange:e=>C(e.target.value),disabled:D,children:u.map(e=>(0,s.jsx)("option",{value:e.value,children:e.label},e.value))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"mb-1 block text-xs font-medium text-text-muted",children:"Proxy Pool (optional)"}),(0,s.jsxs)("select",{className:"w-full rounded-lg border border-border bg-background px-3 py-2 text-sm text-text-main focus:border-primary focus:outline-none",value:S,onChange:e=>I(e.target.value),disabled:D||!!A.trim(),children:[(0,s.jsx)("option",{value:"",children:"None"}),(0,s.jsx)("option",{value:"all",children:"All Active Pools (round-robin)"}),T.map(e=>(0,s.jsx)("option",{value:e.id,children:e.name||e.id},e.id))]})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"mb-1 block text-xs font-medium text-text-muted",children:"Manual Proxy URL (optional, overrides pool)"}),(0,s.jsx)("input",{type:"text",className:"w-full rounded-lg border border-border bg-background px-3 py-2 text-sm text-text-main focus:border-primary focus:outline-none",placeholder:"http://user:pass@host:port or socks5://host:port",value:A,onChange:e=>P(e.target.value),disabled:D})]}),U&&(0,s.jsx)("div",{className:"rounded-lg bg-red-500/10 p-3 text-sm text-red-400",children:U}),(0,s.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,s.jsx)(o.default,{variant:"ghost",onClick:t,children:"Cancel"}),(0,s.jsx)(o.default,{onClick:Q,disabled:D||J||!E,children:D?"Starting...":J?"Job Running...":"Start Registration"})]})]}),L&&(0,s.jsxs)("div",{className:"space-y-4",children:[B&&(0,s.jsx)("div",{className:"rounded-lg bg-amber-500/10 p-3 text-xs text-amber-400",children:B}),(0,s.jsxs)("div",{className:"flex items-center justify-between rounded-lg border border-border bg-background/50 p-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(i.default,{variant:J?"info":"default",size:"sm",children:L.status}),(0,s.jsxs)("span",{className:"font-mono text-xs text-text-muted",children:["Job: ",L.jobId.substring(0,8),"..."]}),(0,s.jsxs)("span",{className:"text-xs text-text-muted",children:[L.accounts?.length||0," accounts"]})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[J&&(0,s.jsx)(o.default,{variant:"danger",size:"sm",onClick:X,children:"Cancel Job"}),!J&&(0,s.jsx)(o.default,{variant:"secondary",size:"sm",onClick:()=>{q(null),r?.()},children:"Done & Refresh"})]})]}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-4",children:[{label:"Completed",value:ee.completed||0,variant:"success"},{label:"Running",value:ee.running||0,variant:"info"},{label:"Manual",value:ee.needs_manual||0,variant:"warning"},{label:"Failed",value:ee.failed||0,variant:"danger"}].map(e=>(0,s.jsxs)("div",{className:"rounded-lg border border-border bg-background/50 p-3 text-center",children:[(0,s.jsx)("div",{className:"text-2xl font-bold text-text-main",children:e.value}),(0,s.jsx)("div",{className:"text-xs text-text-muted",children:e.label})]},e.label))}),U&&(0,s.jsx)("div",{className:"rounded-lg bg-red-500/10 p-3 text-sm text-red-400",children:U}),(0,s.jsxs)("div",{className:"overflow-hidden rounded-xl border border-border bg-sidebar",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 border-b border-border px-4 py-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-semibold text-text-main",children:"Live Browser Preview"}),(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:[et?.phone||et?.email||"Waiting for worker",et?.workerId?` | Worker ${et.workerId}`:""," \xb7 Small Camoufox window opens on the server desktop"]})]}),(0,s.jsxs)("div",{className:"text-right text-xs text-text-muted",children:[(0,s.jsx)("p",{children:p(et?.step)}),(0,s.jsxs)("p",{children:["Updated ",h(et?.updatedAt)]})]})]}),(0,s.jsx)("div",{className:"relative bg-black/90",children:et?.imageData?(0,s.jsx)("img",{src:et.imageData,alt:"Live CodeBuddy CN worker preview",className:"h-[340px] w-full object-contain"}):(0,s.jsxs)("div",{className:"flex h-[340px] flex-col items-center justify-center gap-3 px-6 text-center text-slate-200",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-5xl text-primary/80",children:"browser_updated"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-base font-medium",children:"Preview appears when Camoufox opens codebuddy.cn"}),(0,s.jsx)("p",{className:"mt-1 text-sm text-slate-400",children:"A small headed browser window also opens on the host machine."})]})]})})]}),(0,s.jsxs)("div",{className:"grid gap-4 lg:grid-cols-[7fr_3fr]",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("h3",{className:"text-sm font-medium text-text-main",children:"Accounts"}),0===Y.length&&(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"No accounts yet."}),Y.map(({status:e,accounts:t})=>(0,s.jsx)("div",{className:"space-y-1",children:t.map(e=>(0,s.jsxs)("div",{className:"rounded-lg border border-border bg-background/30 p-2 text-xs",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,s.jsxs)("span",{className:"font-mono text-text-muted",children:["#",e.line," ",e.phone?`\xb7 ${e.phone}`:""]}),(0,s.jsx)(b,{status:e.status})]}),e.currentStep&&(0,s.jsx)("div",{className:"mt-1 text-text-muted",children:p(e.currentStep)}),e.error&&(0,s.jsx)("div",{className:"mt-1 text-red-400",children:e.error}),e.manualSessionAvailable&&e.workerId&&(0,s.jsx)("button",{type:"button",onClick:()=>Z(e.workerId),className:"mt-1 text-xs text-primary hover:underline",children:"Open Manual Session"})]},e.line))},e))]}),(0,s.jsxs)("div",{className:"space-y-1",children:[(0,s.jsx)("h3",{className:"text-sm font-medium text-text-main",children:"Activity"}),(0,s.jsxs)("div",{className:"max-h-[400px] space-y-1 overflow-y-auto rounded-lg border border-border bg-background/30 p-2",children:[(()=>{let e=[];for(let t of L.accounts||[])for(let r of t.logs||[])e.push({...r,phone:t.phone,line:t.line});return e.sort((e,t)=>new Date(t.at||0)-new Date(e.at||0)),e.slice(0,50).map((e,t)=>(0,s.jsxs)("div",{className:"border-b border-border/30 pb-1 text-xs",children:[(0,s.jsx)("span",{className:"text-text-muted",children:h(e.at)})," ",(0,s.jsx)("span",{className:"text-text-main",children:e.message||p(e.step)})]},t))})(),(!L.accounts||0===L.accounts.length)&&(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Waiting for activity..."})]})]})]})]})]})]})})}f.propTypes={isOpen:n().bool.isRequired,onClose:n().func.isRequired,onSuccess:n().func}},57406:(e,t,r)=>{r.d(t,{default:()=>N});var s=r(94799),a=r(34023),l=r(78525),n=r.n(l),i=r(68202),o=r.n(i),d=r(1727),c=r(28834),m=r(65418),u=r(45303),x=r(33379),p=r(72078),h=r(16983);let b=["embedding","image","tts","stt"],f="/dashboard/media-providers/web",g=[{href:"/dashboard/endpoint",label:"Endpoint",icon:"api"},{href:"/dashboard/providers",label:"Providers",icon:"dns"},{href:"/dashboard/playground",label:"Playground",icon:"forum"},{href:"/dashboard/usage",label:"Usage",icon:"bar_chart"},{href:"/dashboard/quota",label:"Quota Tracker",icon:"data_usage"}],j=[{href:"/dashboard/combos",label:"Combos",icon:"layers"},{href:"/dashboard/cli-tools",label:"CLI Tools",icon:"handyman"},{href:"/dashboard/mitm",label:"MITM",icon:"security"},{href:"/dashboard/automation",label:"Automation",icon:"automation"},{href:"/dashboard/token-saver",label:"Token Saver",icon:"savings"},{href:"/dashboard/terminal",label:"Terminal",icon:"terminal"}],v=[{href:"/dashboard/console-log",label:"Console Log",icon:"receipt_long"},{href:"/dashboard/translator",label:"Translator",icon:"translate"}],y=[{href:"/dashboard/proxy-pools",label:"Proxy Pools",icon:"lan"},{href:"/dashboard/context",label:"Context Inject",icon:"psychology"}];function N({onClose:e}){let t=(0,d.usePathname)(),r=j.some(e=>t===e.href||t.startsWith(`${e.href}/`)),[l,n]=(0,a.useState)(!1),[i,w]=(0,a.useState)(r),[C,S]=(0,a.useState)(!1),[I,T]=(0,a.useState)(null),[$,A]=(0,a.useState)(!1),[P,O]=(0,a.useState)(!1),[R,E]=(0,a.useState)(0),[M,_]=(0,a.useState)(!1),{copied:z,copy:L}=(0,x.C)(2e3),q=m.h0.installCmdLatest;(0,a.useEffect)(()=>{fetch("/api/settings").then(e=>e.json()).then(e=>{e.enableTranslator&&_(!0)}).catch(()=>{})},[]),(0,a.useEffect)(()=>{fetch("/api/version",{cache:"no-store"}).then(e=>e.json()).then(e=>{e?.hasUpdate?T(e):T(null)}).catch(()=>{})},[]),(0,a.useEffect)(()=>{r&&w(!0)},[r]);let U=e=>"/dashboard/endpoint"===e?"/dashboard"===t||t.startsWith("/dashboard/endpoint"):t.startsWith(e),F=async()=>{try{await navigator.clipboard.writeText(q)}catch{}L(q);let e=m.h0.shutdownCountdownSec;E(e);let t=setInterval(()=>{E(e-=1),e<=0&&(clearInterval(t),fetch("/api/version/shutdown",{method:"POST"}).catch(()=>{}),S(!0))},1e3)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("aside",{className:"flex w-[min(18rem,86vw)] flex-col border-r border-border-subtle bg-vibrancy backdrop-blur-xl shadow-[8px_0_30px_-28px_rgba(0,0,0,0.45)] transition-colors duration-300 min-h-full lg:w-72",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-6 pt-5 pb-2",children:[(0,s.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#FF5F56]"}),(0,s.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#FFBD2E]"}),(0,s.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#27C93F]"})]}),(0,s.jsxs)("div",{className:"px-6 py-4 flex flex-col gap-2",children:[(0,s.jsxs)(o(),{href:"/dashboard",className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"flex items-center justify-center size-9 rounded-[10px] bg-gradient-to-br from-[#FF9A52] via-[#F56A2A] to-[#D94716] shadow-[var(--shadow-warm)] ring-1 ring-white/20",children:(0,s.jsx)("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-6 h-6",children:(0,s.jsx)("path",{d:"M9 10H23L9 22H23",stroke:"white",strokeWidth:"3.25",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("h1",{className:"text-lg font-semibold tracking-tight text-text-main",children:m.vQ.name}),(0,s.jsxs)("span",{className:"text-xs text-text-muted",children:["v",m.vQ.version]})]})]}),I&&(0,s.jsxs)("div",{className:"flex flex-col gap-1.5 rounded p-1 -m-1",children:[(0,s.jsxs)("span",{className:"text-xs font-semibold text-green-600 dark:text-amber-500",children:["↑ New version available: v",I.latestVersion]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("button",{onClick:()=>A(!0),className:"px-2 py-1 rounded bg-green-600 hover:bg-green-700 dark:bg-amber-500 dark:hover:bg-amber-600 text-white text-[11px] font-semibold transition-colors cursor-pointer",children:"Update now"}),(0,s.jsx)("button",{onClick:()=>L(q),title:"Copy install command",className:"flex-1 text-left hover:opacity-80 transition-opacity cursor-pointer min-w-0",children:(0,s.jsx)("code",{className:"block text-[10px] text-green-600/80 dark:text-amber-400/70 font-mono truncate",children:z?"✓ copied!":q})})]})]})]}),(0,s.jsxs)("nav",{"aria-label":"Main navigation",className:"flex-1 px-4 py-2 space-y-0.5 overflow-y-auto custom-scrollbar",children:[(0,s.jsx)("p",{className:"px-3 pt-1 pb-1 text-[10px] font-semibold uppercase tracking-wider text-text-muted/55",children:"Core"}),g.map(t=>(0,s.jsxs)(o(),{href:t.href,onClick:e,"aria-current":U(t.href)?"page":void 0,className:(0,c.cn)("flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",U(t.href)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,s.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[18px]",U(t.href)?"fill-1":"group-hover:text-primary transition-colors"),children:t.icon}),(0,s.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href)),(0,s.jsxs)("div",{className:"pt-3 mt-1 space-y-0.5",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>w(e=>!e),className:(0,c.cn)("w-full flex items-center gap-2 px-3 py-1 rounded-lg transition-all group",r?"text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),"aria-expanded":i,children:[(0,s.jsx)("p",{className:"flex-1 text-left text-[10px] font-semibold uppercase tracking-wider text-text-muted/55",children:"Advanced"}),(0,s.jsx)("span",{className:"text-[10px] font-medium text-text-subtle tabular-nums",children:j.length}),(0,s.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[14px] transition-transform",i&&"rotate-180"),children:"expand_more"})]}),i&&j.map(t=>(0,s.jsxs)(o(),{href:t.href,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",U(t.href)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,s.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[18px]",U(t.href)?"fill-1":"group-hover:text-primary transition-colors"),children:t.icon}),(0,s.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href))]}),(0,s.jsxs)("div",{className:"pt-3 mt-2 space-y-0.5",children:[(0,s.jsx)("p",{className:"px-3 text-[10px] font-semibold text-text-muted/55 uppercase tracking-wider mb-1",children:"System"}),(0,s.jsxs)("button",{onClick:()=>n(e=>!e),className:(0,c.cn)("w-full flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",t.startsWith("/dashboard/media-providers")?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"perm_media"}),(0,s.jsx)("span",{className:"text-[13px] font-medium flex-1 text-left",children:"Media Providers"}),(0,s.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[14px] transition-transform",l&&"rotate-180"),children:"expand_more"})]}),l&&(0,s.jsxs)("div",{className:"pl-4",children:[u.rj.filter(e=>b.includes(e.id)).map(r=>(0,s.jsxs)(o(),{href:`/dashboard/media-providers/${r.id}`,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-4 py-1 rounded-lg transition-all group",t.startsWith(`/dashboard/media-providers/${r.id}`)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:r.icon}),(0,s.jsx)("span",{className:"text-sm",children:r.label})]},r.id)),(0,s.jsxs)(o(),{href:f,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-4 py-1 rounded-lg transition-all group",t.startsWith(f)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"travel_explore"}),(0,s.jsx)("span",{className:"text-sm",children:"Web Fetch & Search"})]},"web")]}),y.map(t=>(0,s.jsxs)(o(),{href:t.href,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",U(t.href)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,s.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[18px]",U(t.href)?"fill-1":"group-hover:text-primary transition-colors"),children:t.icon}),(0,s.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href)),v.map(t=>"/dashboard/translator"!==t.href||M?(0,s.jsxs)(o(),{href:t.href,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",U(t.href)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,s.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[18px]",U(t.href)?"fill-1":"group-hover:text-primary transition-colors"),children:t.icon}),(0,s.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href):null),(0,s.jsxs)(o(),{href:"/dashboard/profile",onClick:e,className:(0,c.cn)("flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",U("/dashboard/profile")?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,s.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[18px]",U("/dashboard/profile")?"fill-1":"group-hover:text-primary transition-colors"),children:"settings"}),(0,s.jsx)("span",{className:"text-[13px] font-medium",children:"Settings"})]})]})]})]}),(0,s.jsx)(h.ConfirmModal,{isOpen:$,onClose:()=>A(!1),onConfirm:()=>{A(!1),O(!0)},title:"Update ZevaiRouter",message:`Show install command for v${I?.latestVersion||""}? You can copy it and shutdown to install manually.`,confirmText:"Show Command",cancelText:"Cancel",variant:"primary"}),(C||P)&&(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/80 backdrop-blur-sm p-6",children:P?(0,s.jsx)(k,{latestVersion:I?.latestVersion,installCmd:q,copied:z,onCopyAndShutdown:F,onCancel:()=>{O(!1),E(0)},countdown:R,isDisconnected:C}):(0,s.jsxs)("div",{className:"text-center p-8",children:[(0,s.jsx)("div",{className:"flex items-center justify-center size-16 rounded-full bg-red-500/20 text-red-500 mx-auto mb-4",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[32px]",children:"power_off"})}),(0,s.jsx)("h2",{className:"text-xl font-semibold text-white mb-2",children:"Server Disconnected"}),(0,s.jsx)("p",{className:"text-text-muted mb-6",children:"The proxy server has been stopped."}),(0,s.jsx)(p.default,{variant:"secondary",onClick:()=>globalThis.location.reload(),children:"Reload Page"})]})})]})}function k({latestVersion:e,installCmd:t,copied:r,onCopyAndShutdown:a,onCancel:l,countdown:n,isDisconnected:i}){let o=n>0;return(0,s.jsxs)("div",{className:"w-full max-w-lg rounded-xl bg-neutral-900/95 border border-white/10 p-6 text-white",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,s.jsx)("div",{className:"flex items-center justify-center size-11 rounded-full bg-amber-500/20 text-amber-400",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[24px]",children:"content_copy"})}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("h2",{className:"text-lg font-semibold",children:["Update ZevaiRouter",e?` to v${e}`:""]}),(0,s.jsx)("p",{className:"text-xs text-white/60",children:i?"Server stopped. Paste the command into a terminal to install.":o?`Command copied. Server will stop in ${n}s...`:"Click the button below to copy the install command and shutdown."})]})]}),(0,s.jsx)("p",{className:"text-sm text-white/80 mb-2",children:"Install command:"}),(0,s.jsx)("div",{className:"w-full px-3 py-2 rounded bg-white/5 mb-4",children:(0,s.jsx)("code",{className:"text-xs font-mono text-amber-400 break-all",children:t})}),(0,s.jsxs)("ol",{className:"text-xs text-white/70 space-y-1 list-decimal list-inside mb-4",children:[(0,s.jsxs)("li",{children:["Click ",(0,s.jsx)("strong",{children:"Copy & Shutdown"})," below."]}),(0,s.jsx)("li",{children:"Paste the command into your terminal and press Enter."}),(0,s.jsxs)("li",{children:["Run ",(0,s.jsx)("code",{className:"px-1 rounded bg-white/10 text-green-400",children:"zevai"})," again after install."]})]}),i?(0,s.jsx)(p.default,{variant:"secondary",fullWidth:!0,onClick:()=>globalThis.location.reload(),children:"Reload Page"}):(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(p.default,{variant:"secondary",onClick:l,disabled:o,children:"Cancel"}),(0,s.jsx)(p.default,{variant:"primary",fullWidth:!0,onClick:a,disabled:o,children:r?"✓ Copied — shutting down...":o?`Shutting down in ${n}s`:"Copy & Shutdown"})]})]})}N.propTypes={onClose:n().func},k.propTypes={latestVersion:n().string,installCmd:n().string.isRequired,copied:n().bool,onCopyAndShutdown:n().func.isRequired,onCancel:n().func.isRequired,countdown:n().number,isDisconnected:n().bool}},60373:(e,t,r)=>{r.d(t,{default:()=>c});var s=r(94799),a=r(34023),l=r(56742),n=r(78525),i=r.n(n),o=r(60719),d=r(65418);function c({isOpen:e,onClose:t}){let[r,n]=(0,a.useState)(""),[i,m]=(0,a.useState)(!1),[u,x]=(0,a.useState)(""),p=(0,a.useRef)(null);return((0,a.useEffect)(()=>{!e||r||(m(!0),x(""),fetch(`/api/changelog?t=${Date.now()}`,{cache:"no-store"}).then(e=>{if(!e.ok)throw Error(`local ${e.status}`);return e.text()}).catch(()=>fetch(`${d.Nu.changelogUrl}?t=${Date.now()}`,{cache:"no-store"}).then(e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);return e.text()})).then(e=>n(o.xI.parse(e))).catch(e=>x(e.message||"Failed to load")).finally(()=>m(!1)))},[e,r]),(0,a.useEffect)(()=>{let r=e=>{p.current&&!p.current.contains(e.target)&&t()};if(e)return document.addEventListener("mousedown",r),()=>document.removeEventListener("mousedown",r)},[e,t]),!e||"u"<typeof document)?null:(0,l.createPortal)((0,s.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/30 backdrop-blur-sm",onClick:t}),(0,s.jsxs)("div",{ref:p,className:"relative w-full bg-surface border border-black/10 dark:border-white/10 rounded-xl shadow-2xl animate-in fade-in zoom-in-95 duration-200 max-w-3xl flex flex-col max-h-[85vh]",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between p-3 border-b border-black/5 dark:border-white/5",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:"Change Log"}),(0,s.jsx)("button",{onClick:t,className:"p-1.5 rounded-lg text-text-muted hover:bg-black/5 dark:hover:bg-white/5 transition-colors","aria-label":"Close",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,s.jsxs)("div",{className:"p-6 overflow-y-auto flex-1",children:[i&&(0,s.jsxs)("div",{className:"flex items-center justify-center py-10 text-text-muted",children:[(0,s.jsx)("span",{className:"material-symbols-outlined animate-spin mr-2",children:"progress_activity"}),"Loading..."]}),u&&(0,s.jsxs)("div",{className:"text-red-500 py-4",children:["Failed to load changelog: ",u]}),!i&&!u&&r&&(0,s.jsx)("div",{className:"changelog-body text-text-main",dangerouslySetInnerHTML:{__html:r}})]})]})]}),document.body)}o.xI.setOptions({gfm:!0,breaks:!0}),c.propTypes={isOpen:i().bool.isRequired,onClose:i().func.isRequired}},63814:(e,t,r)=>{r.d(t,{ThemeProvider:()=>n});var s=r(94799),a=r(34023),l=r(77813);function n({children:e}){let{initTheme:t}=(0,l.A)();return(0,a.useEffect)(()=>{t()},[t]),(0,s.jsx)(s.Fragment,{children:e})}},64172:(e,t,r)=>{r.d(t,{CL:()=>l,QC:()=>n,Xn:()=>a,YZ:()=>s});let s=["en","vi","zh-CN","zh-TW","ja","pt-BR","pt-PT","ko","es","de","fr","he","ar","ru","pl","cs","nl","tr","uk","tl","id","th","hi","bn","ur","ro","sv","it","el","hu","fi","da","no"],a="en",l="locale";function n(e){return"zh"===e||"zh-CN"===e?"zh-CN":"en"===e?"en":"vi"===e?"vi":"zh-TW"===e?"zh-TW":"ja"===e?"ja":"pt-BR"===e?"pt-BR":"pt-PT"===e?"pt-PT":"ko"===e?"ko":"es"===e?"es":"de"===e?"de":"fr"===e?"fr":"he"===e?"he":"ar"===e?"ar":"ru"===e?"ru":"pl"===e?"pl":"cs"===e?"cs":"nl"===e?"nl":"tr"===e?"tr":"uk"===e?"uk":"tl"===e?"tl":"id"===e?"id":"th"===e?"th":"hi"===e?"hi":"bn"===e?"bn":"ur"===e?"ur":"ro"===e?"ro":"sv"===e?"sv":"it"===e?"it":"el"===e?"el":"hu"===e?"hu":"fi"===e?"fi":"da"===e?"da":"no"===e?"no":a}},64604:(e,t,r)=>{r.d(t,{default:()=>x});var s=r(94799),a=r(34023),l=r(78525),n=r.n(l),i=r(16983),o=r(94994),d=r(31225),c=r(45303);let m=[...Object.keys(c.zN),...Object.keys(c.IS),...Object.keys(c.nJ),...Object.keys(c.fg)],u=Object.keys(c.IS).filter(e=>c.IS[e].noAuth);function x({isOpen:e,onClose:t,onSelect:r,onDeselect:l,selectedModel:n,activeProviders:p=[],title:h="Select Model",modelAliases:b={},kindFilter:f=null,addedModelValues:g=[],closeOnSelect:j=!0}){let v=(0,a.useMemo)(()=>f?p.filter(e=>{let t=c.Q2[e.provider];return(t?.serviceKinds||["llm"]).includes(f)}):p,[p,f]),[y,N]=(0,a.useState)(""),[k,w]=(0,a.useState)([]),[C,S]=(0,a.useState)([]),[I,T]=(0,a.useState)([]),[$,A]=(0,a.useState)({}),P=async()=>{try{let e=await fetch("/api/combos");if(!e.ok)throw Error(`Failed to fetch combos: ${e.status}`);let t=await e.json();w(t.combos||[])}catch(e){console.error("Error fetching combos:",e),w([])}};(0,a.useEffect)(()=>{e&&P()},[e]);let O=async()=>{try{let e=await fetch("/api/provider-nodes");if(!e.ok)throw Error(`Failed to fetch provider nodes: ${e.status}`);let t=await e.json();S(t.nodes||[])}catch(e){console.error("Error fetching provider nodes:",e),S([])}};(0,a.useEffect)(()=>{e&&O()},[e]);let R=async()=>{try{let e=await fetch("/api/models/custom");if(!e.ok)throw Error(`Failed to fetch custom models: ${e.status}`);let t=await e.json();T(t.models||[])}catch(e){console.error("Error fetching custom models:",e),T([])}};(0,a.useEffect)(()=>{e&&R()},[e]);let E=async()=>{try{let e=await fetch("/api/models/disabled");if(!e.ok)throw Error(`Failed to fetch disabled models: ${e.status}`);let t=await e.json();A(t.disabled||{})}catch(e){console.error("Error fetching disabled models:",e),A({})}};(0,a.useEffect)(()=>{e&&E()},[e]);let M=(0,a.useMemo)(()=>({...c.zN,...c.IS,...c.nJ,...c.fg}),[]),_=(0,a.useMemo)(()=>{let t={};if(!e)return t;let r=new Set(["webSearch","webFetch"]),s=new Set(["image","tts","stt","embedding","imageToText"]),a=new Set(["tts","image","webFetch"]);return[...new Set([...v.map(e=>e.provider),...f?u.filter(e=>(c.Q2[e]?.serviceKinds||["llm"]).includes(f)):u])].sort((e,t)=>{let r=m.indexOf(e),s=m.indexOf(t);return(-1===r?999:r)-(-1===s?999:s)}).forEach(e=>{let l=(0,c.wG)(e),n=M[e]||{name:e,color:"#666"},i=(0,c.mq)(e)||(0,c.gb)(e);if(f&&r.has(f)){t[e]={name:n.name,alias:l,color:n.color,models:[{id:e,name:n.name,value:e}]};return}if(n.passthroughModels){let r=Object.entries(b).filter(([,e])=>e.startsWith(`${l}/`)).map(([e,t])=>({id:t.replace(`${l}/`,""),name:e,value:t}));if(f&&s.has(f)&&0===(r=(0,d.KC)(e).filter(e=>e.type===f).map(e=>({id:e.id,name:e.name,value:`${l}/${e.id}`,type:e.type}))).length&&a.has(f)&&(n.serviceKinds||["llm"]).includes(f)&&(r=[{id:e,name:n.name,value:l}]),r.length>0){let s=C.find(t=>t.id===e),a=s?.name||n.name;t[e]={name:a,alias:l,color:n.color,models:r}}}else if(i){if(f&&s.has(f))return;let r=p.find(t=>t.provider===e),a=C.find(t=>t.id===e),l=r?.name||a?.name||n.name,i=r?.providerSpecificData?.prefix||a?.prefix||e,o=Object.entries(b).filter(([,t])=>t.startsWith(`${e}/`)).map(([t,r])=>({id:r.replace(`${e}/`,""),name:t,value:`${i}/${r.replace(`${e}/`,"")}`})),d=o.length>0?o:[{id:`__placeholder__${e}`,name:`${i}/model-id`,value:`${i}/model-id`,isPlaceholder:!0}];t[e]={name:l,alias:i,color:n.color,models:d,isCustom:!0,hasModels:o.length>0}}else{var o;let r=(0,d.KC)(e),i=new Set(r.map(e=>e.id)),c=r.length>0,m=Object.entries(b).filter(([e,t])=>t.startsWith(`${l}/`)&&(!c||e===t.replace(`${l}/`,""))&&!i.has(t.replace(`${l}/`,""))).map(([e,t])=>({id:t.replace(`${l}/`,""),name:e,value:t,isCustom:!0})),u=new Set(m.map(e=>e.id)),x=I.filter(e=>e.providerAlias===l&&!i.has(e.id)&&!u.has(e.id)).map(e=>({id:e.id,name:e.name||e.id,value:`${l}/${e.id}`,isCustom:!0})),p=[...r.map(e=>({id:e.id,name:e.name,value:`${l}/${e.id}`,type:e.type})),...m,...x],h=new Set,g=(o=p.filter(e=>!h.has(e.value)&&(h.add(e.value),!0)),f?s.has(f)?o.filter(e=>e.isPlaceholder||e.type===f):o:o.filter(e=>e.isPlaceholder||!e.type||"llm"===e.type));0===g.length&&f&&a.has(f)&&(n.serviceKinds||["llm"]).includes(f)&&(g=[{id:e,name:n.name,value:l}]),g.length>0&&(t[e]={name:n.name,alias:l,color:n.color,models:g})}}),Object.entries(t).forEach(([e,r])=>{let s=new Set([...$[(0,c.wG)(e)]||[],...$[e]||[]]);0!==s.size&&(r.models=r.models.filter(e=>!s.has(e.id)),0===r.models.length&&delete t[e])}),t},[e,v,b,M,C,I,$,f,p]),z=(0,a.useMemo)(()=>{if(f)return[];if(!y.trim())return k;let e=y.toLowerCase();return k.filter(t=>t.name.toLowerCase().includes(e))},[k,y,f]),L=(0,a.useMemo)(()=>{let e=y.trim().toLowerCase(),t={};return Object.entries(_).forEach(([r,s])=>{var a;let l=s.models;if(e){let t=s.name.toLowerCase().includes(e);if(0===(l=l.filter(t=>t.name.toLowerCase().includes(e)||t.id.toLowerCase().includes(e))).length&&!t)return}t[r]={...s,models:[...(a=l).filter(e=>g.includes(e.value)).sort((e,t)=>e.name.localeCompare(t.name)),...a.filter(e=>!g.includes(e.value)).sort((e,t)=>e.name.localeCompare(t.name))]}}),t},[_,y,g]),q=e=>{let s=e?.value||e?.name||e;g.includes(s)&&l?l(e):r(e),j&&(t(),N(""))};return(0,s.jsxs)(i.default,{isOpen:e,onClose:()=>{t(),N("")},title:h,size:"md",className:"p-4!",footer:null,children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-3 px-2.5 py-2 bg-primary/8 border border-primary/20 rounded-lg text-xs text-text-muted",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-primary shrink-0",style:{fontSize:"14px"},children:"info"}),(0,s.jsx)("span",{children:"Click to add, click again to remove. Changes are saved automatically."})]}),(0,s.jsx)("div",{className:"mb-3",children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("span",{className:"material-symbols-outlined absolute left-2.5 top-1/2 -translate-y-1/2 text-text-muted text-[16px]",children:"search"}),(0,s.jsx)("input",{type:"text",placeholder:"Search...",value:y,onChange:e=>N(e.target.value),className:"w-full pl-8 pr-3 py-1.5 bg-surface border border-border rounded text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"})]})}),(0,s.jsxs)("div",{className:"max-h-[400px] overflow-y-auto space-y-3",children:[z.length>0&&(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 mb-1.5 sticky top-0 bg-surface py-0.5",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-primary text-[14px]",children:"layers"}),(0,s.jsx)("span",{className:"text-xs font-medium text-primary",children:"Combos"}),(0,s.jsxs)("span",{className:"text-[10px] text-text-muted",children:["(",z.length,")"]})]}),(0,s.jsx)("div",{className:"flex flex-wrap gap-1.5",children:z.map(e=>{let t=n===e.name;return(0,s.jsxs)("button",{onClick:()=>q({id:e.name,name:e.name,value:e.name}),className:`
2
- px-2 py-1 rounded-xl text-xs font-medium transition-all border hover:cursor-pointer flex items-center gap-1
3
- ${t?"bg-primary text-white border-primary":g.includes(e.name)?"bg-primary border-primary text-white hover:bg-primary-hover":"bg-surface border-border text-text-main hover:border-primary/50 hover:bg-primary/5"}
4
- `,children:[g.includes(e.name)&&(0,s.jsx)("span",{className:"material-symbols-outlined leading-none",style:{fontSize:"10px"},children:"check"}),e.name]},e.id)})})]}),Object.entries(L).map(([e,t])=>(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 mb-1.5 sticky top-0 bg-surface py-0.5",children:[(0,s.jsx)(o.A,{src:`/providers/${e}.png`,alt:t.name,size:14,fallbackText:(t.name||e).slice(0,2).toUpperCase(),fallbackColor:t.color}),(0,s.jsx)("span",{className:"text-xs font-medium text-primary",children:t.name}),(0,s.jsxs)("span",{className:"text-[10px] text-text-muted",children:["(",t.models.length,")"]})]}),(0,s.jsx)("div",{className:"flex flex-wrap gap-1.5",children:t.models.map(e=>{let t=n===e.value,r=e.isPlaceholder;return(0,s.jsx)("button",{onClick:()=>q(e),title:r?"Select to pre-fill, then edit model ID in the input":void 0,className:`
5
- px-2 py-1 rounded-xl text-xs font-medium transition-all border hover:cursor-pointer
6
- ${r?"border-dashed border-border text-text-muted hover:border-primary/50 hover:text-primary bg-surface italic":t?"bg-primary text-white border-primary":g.includes(e.value)?"bg-primary border-primary text-white hover:bg-primary-hover":"bg-surface border-border text-text-main hover:border-primary/50 hover:bg-primary/5"}
7
- `,children:(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[g.includes(e.value)&&!r&&(0,s.jsx)("span",{className:"material-symbols-outlined leading-none",style:{fontSize:"10px"},children:"check"}),r?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[11px]",children:"edit"}),e.name]}):e.isCustom?(0,s.jsxs)(s.Fragment,{children:[e.name,(0,s.jsx)("span",{className:"text-[9px] opacity-60 font-normal",children:"custom"})]}):e.name]})},e.value)})})]},e)),0===Object.keys(L).length&&0===z.length&&(0,s.jsxs)("div",{className:"text-center py-4 text-text-muted",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-2xl mb-1 block",children:"search_off"}),(0,s.jsx)("p",{className:"text-xs",children:"No models found"})]})]})]})}x.propTypes={isOpen:n().bool.isRequired,onClose:n().func.isRequired,onSelect:n().func.isRequired,onDeselect:n().func,selectedModel:n().string,activeProviders:n().arrayOf(n().shape({provider:n().string.isRequired})),title:n().string,modelAliases:n().object,kindFilter:n().string,addedModelValues:n().arrayOf(n().string),closeOnSelect:n().bool}},68305:(e,t,r)=>{r.d(t,{i:()=>l});var s=r(80916);let a=0,l=(0,s.v)((e,t)=>({notifications:[],addNotification:r=>{let s=++a,l={id:s,type:r.type||"info",message:r.message,title:r.title||null,duration:r.duration??5e3,dismissible:r.dismissible??!0,createdAt:Date.now()};return e(e=>({notifications:[...e.notifications,l]})),l.duration>0&&setTimeout(()=>t().removeNotification(s),l.duration),s},removeNotification:t=>{e(e=>({notifications:e.notifications.filter(e=>e.id!==t)}))},clearAll:()=>e({notifications:[]}),success:(e,r)=>t().addNotification({type:"success",message:e,title:r}),error:(e,r)=>t().addNotification({type:"error",message:e,title:r,duration:8e3}),warning:(e,r)=>t().addNotification({type:"warning",message:e,title:r}),info:(e,r)=>t().addNotification({type:"info",message:e,title:r})}))},68624:(e,t,r)=>{r.d(t,{default:()=>d});var s=r(94799),a=r(34023),l=r(1727),n=r(68305),i=r(57406),o=r(7945);function d({children:e}){let[t,r]=(0,a.useState)(!1),c=(0,l.usePathname)(),m=(0,n.i)(e=>e.notifications),u=(0,n.i)(e=>e.removeNotification),x="/dashboard/playground"===c||"/dashboard/basic-chat"===c,p="/dashboard/terminal"===c,h=x||p;return(0,s.jsxs)("div",{className:"flex h-screen w-full overflow-hidden bg-bg",children:[(0,s.jsx)("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:fixed focus:top-4 focus:left-4 focus:z-[100] focus:rounded-lg focus:bg-surface focus:px-4 focus:py-2 focus:text-text-main focus:shadow-lg",children:"Skip to main content"}),(0,s.jsx)("div",{className:"fixed top-4 right-4 z-[80] flex w-[min(92vw,380px)] flex-col gap-2",children:m.map(e=>{var t;let r="success"===(t=e.type)?{wrapper:"border-green-500/30 bg-green-500/10 text-green-600 dark:text-green-400",icon:"check_circle"}:"error"===t?{wrapper:"border-red-500/30 bg-red-500/10 text-red-600 dark:text-red-400",icon:"error"}:"warning"===t?{wrapper:"border-amber-500/30 bg-amber-500/10 text-amber-600 dark:text-amber-400",icon:"warning"}:{wrapper:"border-blue-500/30 bg-blue-500/10 text-blue-600 dark:text-blue-400",icon:"info"};return(0,s.jsx)("div",{className:`rounded-lg border px-3 py-2 shadow-lg backdrop-blur-sm ${r.wrapper}`,children:(0,s.jsxs)("div",{className:"flex items-start gap-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px] leading-5",children:r.icon}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[e.title?(0,s.jsx)("p",{className:"text-xs font-semibold mb-0.5",children:e.title}):null,(0,s.jsx)("p",{className:"text-xs whitespace-pre-wrap break-words",children:e.message})]}),e.dismissible?(0,s.jsx)("button",{type:"button",onClick:()=>u(e.id),className:"text-current/70 hover:text-current","aria-label":"Dismiss notification",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"close"})}):null]})},e.id)})}),t&&(0,s.jsx)("div",{className:"fixed inset-0 z-40 bg-black/20 lg:hidden",onClick:()=>r(!1)}),(0,s.jsx)("div",{className:"hidden lg:flex",children:(0,s.jsx)(i.default,{})}),(0,s.jsx)("div",{className:`fixed inset-y-0 left-0 z-50 transform lg:hidden transition-transform duration-300 ease-in-out ${t?"translate-x-0":"-translate-x-full"}`,children:(0,s.jsx)(i.default,{onClose:()=>r(!1)})}),(0,s.jsxs)("main",{id:"main-content",tabIndex:-1,className:"flex flex-col flex-1 h-full min-w-0 relative transition-colors duration-300 isolate",children:[(0,s.jsx)("div",{className:"landing-grid absolute inset-0 pointer-events-none -z-10","aria-hidden":"true"}),h?(0,s.jsxs)("div",{className:"lg:hidden shrink-0 flex min-h-12 items-center gap-2 px-2 py-1 border-b border-border-subtle bg-surface/60",children:[(0,s.jsx)("button",{type:"button",onClick:()=>r(!0),className:"flex size-11 shrink-0 items-center justify-center rounded-lg text-text-main hover:bg-surface-2","aria-label":"Open dashboard navigation",children:(0,s.jsx)("span",{className:"material-symbols-outlined",children:"menu"})}),(0,s.jsx)("span",{className:"text-sm font-semibold",children:p?"Terminal":"Playground"})]}):(0,s.jsx)(o.default,{onMenuClick:()=>r(!0)},c),(0,s.jsx)("div",{className:`flex-1 overflow-y-auto custom-scrollbar ${h?"":"px-3 py-4 sm:px-6 sm:py-7 lg:px-10 lg:py-8"} ${h?"flex flex-col overflow-hidden":""}`,children:(0,s.jsx)("div",{className:`${h?"flex-1 w-full h-full flex flex-col min-h-0":"w-full min-w-0 max-w-6xl mx-auto"}`,children:e})})]})]})}},71335:(e,t,r)=>{r.d(t,{default:()=>u});var s=r(94799),a=r(34023),l=r(78525),n=r.n(l),i=r(47420),o=r(74674),d=r(39725);let c="__none__",m=[{value:"none",label:"None (single pool)"},{value:"round-robin",label:"Round-robin"},{value:"random",label:"Random"}];function u({providerId:e}){let[t,r]=(0,a.useState)([]),[l,n]=(0,a.useState)(c),[x,p]=(0,a.useState)("none"),[h,b]=(0,a.useState)(!1),[f,g]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let t=!1;return Promise.all([fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}).then(e=>e.ok?e.json():{proxyPools:[]}),fetch("/api/settings",{cache:"no-store"}).then(e=>e.ok?e.json():{})]).then(([s,a])=>{if(t)return;r(s.proxyPools||[]);let l=(a.providerStrategies||{})[e]||{};n(l.proxyPoolId||c),p(l.rotateStrategy||"none")}).catch(()=>{}),()=>{t=!0}},[e]);let j=(0,a.useCallback)(async(t,r)=>{b(!0);try{let s=await fetch("/api/settings",{cache:"no-store"}),a=(s.ok?await s.json():{}).providerStrategies||{},l={...a[e]||{}};t===c?delete l.proxyPoolId:l.proxyPoolId=t,"none"===r?delete l.rotateStrategy:l.rotateStrategy=r;let n={...a};0===Object.keys(l).length?delete n[e]:n[e]=l,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:n})}),g(!0),setTimeout(()=>g(!1),1500)}catch(e){console.log("Save proxy config error:",e)}finally{b(!1)}},[e]),v=t.length>=2,y="none"!==x;return(0,s.jsxs)(i.default,{children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,s.jsx)("div",{className:"inline-flex items-center justify-center w-10 h-10 rounded-full bg-green-500/10 text-green-500",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"lock_open"})}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:"No authentication required"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"This provider is ready to use. Optionally route requests through a proxy pool to bypass IP-based limits."})]}),f&&(0,s.jsx)(d.default,{variant:"success",size:"sm",children:"Saved"})]}),(0,s.jsx)(o.default,{label:"Proxy Pool",value:l,onChange:e=>{var t;n(t=e.target.value),j(t,x)},disabled:h||y,options:[{value:c,label:"None (direct)"},...t.map(e=>({value:e.id,label:e.name}))],hint:y?"Pool selector is ignored when rotation is active — all active pools are used.":void 0}),(0,s.jsxs)("div",{className:"flex flex-col gap-2 mt-4",children:[(0,s.jsx)("label",{className:"text-sm font-medium text-text-main",children:"Rotation Strategy"}),(0,s.jsx)("select",{value:x,onChange:e=>{var t;p(t=e.target.value),j(l,t)},disabled:h,className:"py-2 px-3 text-sm text-text-main bg-white dark:bg-white/5 border border-black/10 dark:border-white/10 rounded-md focus:ring-1 focus:ring-primary/30 focus:border-primary/50 focus:outline-none transition-all disabled:opacity-50",children:m.map(e=>(0,s.jsx)("option",{value:e.value,disabled:"none"!==e.value&&!v,children:e.label},e.value))}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:v?y?"round-robin"===x?`Rotating through all ${t.length} active pools in order. State is in-memory (resets on restart).`:`Picking a random pool from ${t.length} active pools each request.`:"Uses the selected pool above. Set to Round-robin or Random to rotate across all active pools.":"Need at least 2 active proxy pools for rotation."})]})]})}u.propTypes={providerId:n().string.isRequired}},72078:(e,t,r)=>{r.d(t,{default:()=>i});var s=r(94799),a=r(28834);let l={primary:"bg-brand-500 hover:bg-brand-600 text-white shadow-sm disabled:bg-surface-3 disabled:text-text-muted",secondary:"bg-surface-2 hover:bg-surface-3 text-text-main border border-border disabled:opacity-50",outline:"border border-border text-text-main hover:bg-surface-2 hover:border-brand-500/40",ghost:"text-text-muted hover:bg-surface-2 hover:text-text-main",danger:"bg-red-500 hover:bg-red-600 text-white shadow-sm disabled:bg-surface-3 disabled:text-text-muted",success:"bg-green-600 hover:bg-green-700 text-white shadow-sm disabled:bg-surface-3 disabled:text-text-muted"},n={sm:"h-7 px-3 text-xs rounded-[8px]",md:"h-9 px-4 text-sm rounded-[10px]",lg:"h-11 px-6 text-sm rounded-[10px]"};function i({children:e,variant:t="primary",size:r="md",icon:o,iconRight:d,disabled:c=!1,loading:m=!1,fullWidth:u=!1,className:x,...p}){return(0,s.jsxs)("button",{className:(0,a.cn)("inline-flex items-center justify-center gap-2 font-semibold transition-all duration-150 ease-out cursor-pointer","active:scale-[0.97] disabled:opacity-50 disabled:cursor-not-allowed disabled:active:scale-100",l[t],n[r],u&&"w-full",x),disabled:c||m,"aria-busy":m||void 0,...p,children:[m?(0,s.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined animate-spin text-[18px]",children:"progress_activity"}):o?(0,s.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[18px]",children:o}):null,e,d&&!m&&(0,s.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[18px]",children:d})]})}},72128:(e,t,r)=>{r.d(t,{default:()=>d});var s=r(94799),a=r(34023),l=r(78525),n=r.n(l),i=r(77783);let o="https://gitlab.com";function d({isOpen:e,providerInfo:t,onSuccess:r,onClose:l}){let n,[c,m]=(0,a.useState)(null),[u,x]=(0,a.useState)(o),[p,h]=(0,a.useState)(""),[b,f]=(0,a.useState)(""),[g,j]=(0,a.useState)(""),[v,y]=(0,a.useState)(!1),[N,k]=(0,a.useState)(null),[w,C]=(0,a.useState)(!1),[S,I]=(0,a.useState)(null),T=()=>{m(null),x(o),h(""),f(""),j(""),k(null),y(!1),C(!1),I(null),l()},$=async()=>{if(!g.trim())return void k("Personal Access Token is required");y(!0),k(null);try{let e=await fetch("/api/oauth/gitlab/pat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:g.trim(),baseUrl:u.trim()||o})}),t=await e.json();if(!e.ok)throw Error(t.error||"Authentication failed");r?.(),T()}catch(e){k(e.message)}finally{y(!1)}};return e?w&&S?(0,s.jsx)(i.LF,{isOpen:!0,provider:"gitlab",providerInfo:t,oauthMeta:S,onSuccess:()=>{r?.(),T()},onClose:()=>{C(!1),I(null)}}):(0,s.jsx)(i.aF,{isOpen:e,title:"Connect GitLab Duo",onClose:T,size:"lg",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[!c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Choose how to authenticate with GitLab Duo:"}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,s.jsxs)("button",{onClick:()=>m("oauth"),className:"flex flex-col items-center gap-2 p-4 rounded-lg border border-border hover:border-primary hover:bg-primary/5 transition-colors text-left",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-2xl text-primary",children:"lock_open"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:"OAuth App"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Use a GitLab OAuth application"})]})]}),(0,s.jsxs)("button",{onClick:()=>m("pat"),className:"flex flex-col items-center gap-2 p-4 rounded-lg border border-border hover:border-primary hover:bg-primary/5 transition-colors text-left",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-2xl text-primary",children:"key"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:"Personal Access Token"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Use a GitLab PAT with api scope"})]})]})]})]}),"oauth"===c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:["Create an OAuth app at"," ",(0,s.jsx)("a",{href:`${u.trim()||o}/-/profile/applications`,target:"_blank",rel:"noreferrer",className:"text-primary underline",children:"GitLab Applications"})," ","with redirect URI"," ",(0,s.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:(n=window.location.port||("https:"===window.location.protocol?"443":"80"),`http://localhost:${n}/callback`)})]}),(0,s.jsx)(i.pd,{label:"GitLab Base URL",value:u,onChange:e=>x(e.target.value),placeholder:o}),(0,s.jsx)(i.pd,{label:"Client ID",value:p,onChange:e=>h(e.target.value),placeholder:"Your OAuth application client ID"}),(0,s.jsx)(i.pd,{label:"Client Secret (optional for PKCE)",value:b,onChange:e=>f(e.target.value),placeholder:"Leave empty for public PKCE app"}),N&&(0,s.jsx)("p",{className:"text-sm text-red-500",children:N}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:()=>{p.trim()?(k(null),I({baseUrl:u.trim()||o,clientId:p.trim(),clientSecret:b.trim()}),C(!0)):k("Client ID is required")},fullWidth:!0,disabled:!p.trim(),children:"Authorize"}),(0,s.jsx)(i.$n,{onClick:()=>{m(null),k(null)},variant:"ghost",fullWidth:!0,children:"Back"})]})]}),"pat"===c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:["Create a PAT at"," ",(0,s.jsx)("a",{href:`${u.trim()||o}/-/user_settings/personal_access_tokens`,target:"_blank",rel:"noreferrer",className:"text-primary underline",children:"GitLab Access Tokens"})," ","with scopes: ",(0,s.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"api"}),","," ",(0,s.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"read_user"}),", and"," ",(0,s.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"ai_features"}),"."]}),(0,s.jsx)(i.pd,{label:"GitLab Base URL",value:u,onChange:e=>x(e.target.value),placeholder:o}),(0,s.jsx)(i.pd,{label:"Personal Access Token",value:g,onChange:e=>j(e.target.value),placeholder:"glpat-xxxxxxxxxxxxxxxxxxxx",type:"password"}),N&&(0,s.jsx)("p",{className:"text-sm text-red-500",children:N}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:$,fullWidth:!0,disabled:!g.trim()||v,loading:v,children:"Connect"}),(0,s.jsx)(i.$n,{onClick:()=>{m(null),k(null)},variant:"ghost",fullWidth:!0,children:"Back"})]})]})]})}):null}d.propTypes={isOpen:n().bool.isRequired,providerInfo:n().shape({name:n().string}),onSuccess:n().func,onClose:n().func.isRequired}},74674:(e,t,r)=>{r.d(t,{default:()=>l});var s=r(94799),a=r(28834);function l({label:e,options:t=[],value:r,onChange:n,placeholder:i="Select an option",error:o,hint:d,disabled:c=!1,required:m=!1,className:u,selectClassName:x,...p}){return(0,s.jsxs)("div",{className:(0,a.cn)("flex flex-col gap-1.5",u),children:[e&&(0,s.jsxs)("label",{className:"text-sm font-medium text-text-main",children:[e,m&&(0,s.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsxs)("select",{value:r,onChange:n,disabled:c,className:(0,a.cn)("w-full py-2.5 px-3 pr-10 text-sm text-text-main","bg-surface-2 border border-transparent rounded-[10px] appearance-none","focus:outline-none focus:ring-2 focus:ring-brand-500/30 focus:border-brand-500/40","transition-all duration-150 disabled:opacity-50 disabled:cursor-not-allowed","text-[16px] sm:text-sm",o&&"ring-1 ring-red-500 focus:ring-2 focus:ring-red-500/40 border-red-500/40",x),...p,children:[(0,s.jsx)("option",{value:"",disabled:!0,children:i}),t.map(e=>(0,s.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,s.jsx)("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none text-text-muted",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"expand_more"})})]}),o&&(0,s.jsxs)("p",{className:"text-xs text-red-500 flex items-center gap-1",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),o]}),d&&!o&&(0,s.jsx)("p",{className:"text-xs text-text-muted",children:d})]})}},77783:(e,t,r)=>{r.d(t,{x0:()=>S.default,Ex:()=>d.default,Go:()=>c.default,$n:()=>s.default,Zp:()=>n.default,Qv:()=>o.CardSkeleton,zE:()=>k.default,xl:()=>N.default,CK:()=>h.default,uo:()=>i.ConfirmModal,G9:()=>v.default,wI:()=>C.default,vj:()=>w.default,vE:()=>y.default,pd:()=>a.default,Mh:()=>j.default,uR:()=>p.default,Nf:()=>b.default,aF:()=>i.default,rq:()=>x.default,gw:()=>I.default,LF:()=>u.default,dK:()=>P.default,Wx:()=>A.default,gM:()=>g.default,Iz:()=>T.default,l6:()=>l.default,lM:()=>m.default,m_:()=>$.default,jK:()=>f.default});var s=r(72078),a=r(81462),l=r(74674),n=r(47420),i=r(16983),o=r(18126);r(97519);var d=r(39725),c=r(35499),m=r(39774);r(27275),r(63814),r(57406),r(7945),r(41981);var u=r(29874),x=r(64604),p=r(27007),h=r(11359),b=r(97930),f=r(89761);r(39835),r(81888),r(60373);var g=r(29327);r(31052);var j=r(37251);r(34694);var v=r(2735),y=r(5296),N=r(39798),k=r(51774),w=r(72128),C=r(5531),S=r(81852),I=r(71335),T=r(80659),$=r(51357),A=r(46817),P=r(49050);r(68624),r(95818)},80659:(e,t,r)=>{r.d(t,{default:()=>l});var s=r(94799),a=r(28834);function l({options:e=[],value:t,onChange:r,size:n="md",className:i,...o}){let d={sm:"h-7 text-xs",md:"h-9 text-sm",lg:"h-11 text-base"};return(0,s.jsx)("div",{role:"group",...o,className:(0,a.cn)("inline-flex items-center p-1 rounded-[10px] overflow-x-auto","bg-surface-2",i),children:e.map(e=>(0,s.jsxs)("button",{type:"button","aria-pressed":t===e.value,onClick:()=>r(e.value),className:(0,a.cn)("shrink-0 px-4 rounded-[8px] font-medium transition-all",d[n],t===e.value?"bg-surface text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:[e.icon&&(0,s.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[16px] mr-1.5",children:e.icon}),e.label]},e.value))})}},81462:(e,t,r)=>{r.d(t,{default:()=>n});var s=r(94799),a=r(34023),l=r(28834);function n({label:e,type:t="text",placeholder:r,value:i,onChange:o,error:d,hint:c,icon:m,disabled:u=!1,required:x=!1,className:p,inputClassName:h,...b}){let f=(0,a.useId)(),g=b.id||f,j=`${g}-error`,v=`${g}-hint`,y=[b["aria-describedby"],d&&j,c&&v].filter(Boolean).join(" ")||void 0;return(0,s.jsxs)("div",{className:(0,l.cn)("flex flex-col gap-1.5",p),children:[e&&(0,s.jsxs)("label",{htmlFor:g,className:"text-sm font-medium text-text-main",children:[e,x&&(0,s.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,s.jsxs)("div",{className:"relative",children:[m&&(0,s.jsx)("div",{className:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none text-text-muted",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:m})}),(0,s.jsx)("input",{id:g,type:t,placeholder:r,value:i,onChange:o,disabled:u,required:x,"aria-invalid":!!d||void 0,"aria-describedby":y,className:(0,l.cn)("w-full py-2.5 px-3 text-sm text-text-main bg-surface-2 rounded-[10px]","border border-transparent placeholder-text-muted/70","focus:outline-none focus:ring-2 focus:ring-brand-500/30 focus:border-brand-500/40","transition-all duration-150 ease-out disabled:opacity-50 disabled:cursor-not-allowed","text-[16px] sm:text-sm",m&&"pl-10",d&&"ring-1 ring-red-500 focus:ring-2 focus:ring-red-500/40 border-red-500/40",h),...b})]}),d&&(0,s.jsxs)("p",{id:j,role:"alert",className:"text-xs text-red-500 flex items-center gap-1",children:[(0,s.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[14px]",children:"error"}),d]}),c&&!d&&(0,s.jsx)("p",{id:v,className:"text-xs text-text-muted",children:c})]})}},81852:(e,t,r)=>{r.d(t,{default:()=>d});var s=r(94799),a=r(34023),l=r(78525),n=r.n(l),i=r(77783);let o="https://api.openai.com/v1";function d({isOpen:e,onClose:t,onCreated:r,onSaved:l,node:n}){let c=!!n,[m,u]=(0,a.useState)({name:"",prefix:"",baseUrl:o}),[x,p]=(0,a.useState)(!1),[h,b]=(0,a.useState)(""),[f,g]=(0,a.useState)(""),[j,v]=(0,a.useState)(!1),[y,N]=(0,a.useState)(null);(0,a.useEffect)(()=>{e&&(N(null),b(""),g(""),c?u({name:n.name||"",prefix:n.prefix||"",baseUrl:n.baseUrl||o}):u({name:"",prefix:"",baseUrl:o}))},[e,c,n]);let k=async()=>{if(m.name.trim()&&m.prefix.trim()&&m.baseUrl.trim()){p(!0);try{let e=c?`/api/provider-nodes/${n.id}`:"/api/provider-nodes",t=c?"PUT":"POST",s={name:m.name,prefix:m.prefix,baseUrl:m.baseUrl};c||(s.type="custom-embedding");let a=await fetch(e,{method:t,headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}),i=await a.json();a.ok&&(c?l?.(i.node):r?.(i.node))}catch(e){console.log("Error saving custom embedding node:",e)}finally{p(!1)}}},w=async()=>{v(!0);try{let e=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:m.baseUrl,apiKey:h,type:"custom-embedding",modelId:f.trim()||void 0})}),t=await e.json();N(t)}catch{N({valid:!1,error:"Network error"})}finally{v(!1)}};return(0,s.jsx)(i.aF,{isOpen:e,title:c?"Edit Custom Embedding":"Add Custom Embedding",onClose:t,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)(i.pd,{label:"Name",value:m.name,onChange:e=>u({...m,name:e.target.value}),placeholder:"Voyage AI",hint:"Required. A friendly label for this embedding provider."}),(0,s.jsx)(i.pd,{label:"Prefix",value:m.prefix,onChange:e=>u({...m,prefix:e.target.value}),placeholder:"voyage",hint:"Required. Used as the provider prefix for model IDs (e.g. voyage/voyage-3)."}),(0,s.jsx)(i.pd,{label:"Base URL",value:m.baseUrl,onChange:e=>u({...m,baseUrl:e.target.value}),placeholder:"https://api.voyageai.com/v1",hint:"Most embedding APIs are OpenAI-compatible: Voyage, Cohere, Jina, Mistral, Together..."}),(0,s.jsx)(i.pd,{label:"API Key (for Check)",type:"password",value:h,onChange:e=>b(e.target.value)}),(0,s.jsx)(i.pd,{label:"Model ID (for Check)",value:f,onChange:e=>g(e.target.value),placeholder:"e.g. voyage-3, embed-english-v3.0, text-embedding-3-small",hint:"Required for validation. Will send a test embeddings request."}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(i.$n,{onClick:w,disabled:!h||!f.trim()||j||!m.baseUrl.trim(),variant:"secondary",children:j?"Checking...":"Check"}),(()=>{if(!y)return null;let{valid:e,error:t,dimensions:r}=y;return e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.Ex,{variant:"success",children:"Valid"}),r&&(0,s.jsxs)("span",{className:"text-sm text-text-muted",children:[r," dims"]})]}):(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)(i.Ex,{variant:"error",children:"Invalid"}),t&&(0,s.jsx)("span",{className:"text-sm text-red-500",children:t})]})})()]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:k,fullWidth:!0,disabled:!m.name.trim()||!m.prefix.trim()||!m.baseUrl.trim()||x,children:x?c?"Saving...":"Creating...":c?"Save":"Create"}),(0,s.jsx)(i.$n,{onClick:t,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})}d.propTypes={isOpen:n().bool.isRequired,onClose:n().func.isRequired,onCreated:n().func,onSaved:n().func,node:n().shape({id:n().string,name:n().string,prefix:n().string,baseUrl:n().string})}},81888:(e,t,r)=>{r.d(t,{default:()=>m});var s=r(94799),a=r(34023),l=r(78525),n=r.n(l),i=r(7364),o=r(60373),d=r(16983);function c({icon:e,label:t,onClick:r,trailing:a,danger:l}){return(0,s.jsxs)("button",{onClick:r,className:`flex items-center gap-3 w-full px-4 py-2.5 text-sm transition-colors ${l?"text-red-500 hover:bg-red-500/10":"text-text-main hover:bg-black/5 dark:hover:bg-white/5"}`,children:[(0,s.jsx)("span",{className:`material-symbols-outlined text-[20px] ${l?"":"text-text-muted"}`,children:e}),(0,s.jsx)("span",{className:"flex-1 text-left",children:t}),a&&(0,s.jsx)("span",{className:"text-base",children:a})]})}function m({onLogout:e}){let[t,r]=(0,a.useState)(!1),[l,n]=(0,a.useState)(!1),[u,x]=(0,a.useState)(!1),[p,h]=(0,a.useState)(!1),{toggleTheme:b,isDark:f}=(0,i.D)(),g=(0,a.useRef)(null),j=async()=>{h(!0);try{await fetch("/api/version/shutdown",{method:"POST"})}catch(e){}h(!1),x(!1)};return(0,a.useEffect)(()=>{let e=e=>{g.current&&!g.current.contains(e.target)&&r(!1)};if(t)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[t]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"relative",ref:g,children:[(0,s.jsx)("button",{onClick:()=>r(e=>!e),className:"flex items-center justify-center p-2 rounded-lg text-text-muted hover:text-text-main hover:bg-black/5 dark:hover:bg-white/5 transition-all",title:"Menu",children:(0,s.jsx)("span",{className:"material-symbols-outlined",children:"grid_view"})}),t&&(0,s.jsxs)("div",{className:"absolute right-0 top-full mt-2 w-60 bg-surface border border-black/10 dark:border-white/10 rounded-xl shadow-2xl z-50 animate-in fade-in zoom-in-95 duration-150 overflow-hidden py-1",children:[(0,s.jsx)(c,{icon:"history",label:"Change Log",onClick:()=>{r(!1),n(!0)}}),(0,s.jsx)(c,{icon:f?"light_mode":"dark_mode",label:"Theme",onClick:()=>{b(),r(!1)}}),(0,s.jsx)(c,{icon:"power_settings_new",label:"Shutdown",danger:!0,onClick:()=>{r(!1),x(!0)}}),(0,s.jsx)(c,{icon:"logout",label:"Logout",danger:!0,onClick:()=>{r(!1),e()}})]})]}),(0,s.jsx)(o.default,{isOpen:l,onClose:()=>n(!1)}),(0,s.jsx)(d.ConfirmModal,{isOpen:u,onClose:()=>x(!1),onConfirm:j,title:"Close Proxy",message:"Are you sure you want to close the proxy server?",confirmText:"Close",cancelText:"Cancel",variant:"danger",loading:p})]})}c.propTypes={icon:n().string.isRequired,label:n().string.isRequired,onClick:n().func.isRequired,trailing:n().node,danger:n().bool},m.propTypes={onLogout:n().func.isRequired}},89761:(e,t,r)=>{r.d(t,{default:()=>V});var s=r(94799),a=r(34023),l=r(1727),n=r(45303),i=r(39725),o=r(47420),d=r(78525),c=r.n(d);let m=e=>new Intl.NumberFormat().format(e||0);function u({stats:e}){let t,r=e.totalCachedTokens||0,a=e.totalPromptTokens>0?Math.min(100,r/e.totalPromptTokens*100):0;return(0,s.jsxs)("div",{className:"grid min-w-0 grid-cols-1 gap-3 sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-5 sm:gap-4",children:[(0,s.jsxs)(o.default,{className:"flex min-w-0 flex-col gap-1 px-4 py-3",children:[(0,s.jsx)("span",{className:"text-text-muted text-sm uppercase font-semibold",children:"Total Requests"}),(0,s.jsx)("span",{className:"truncate text-2xl font-bold",children:m(e.totalRequests)})]}),(0,s.jsxs)(o.default,{className:"flex min-w-0 flex-col gap-1 px-4 py-3",children:[(0,s.jsx)("span",{className:"text-text-muted text-sm uppercase font-semibold",children:"Total Input Tokens"}),(0,s.jsx)("span",{className:"truncate text-2xl font-bold text-primary",children:m(e.totalPromptTokens)})]}),(0,s.jsxs)(o.default,{className:"flex min-w-0 flex-col gap-1 px-4 py-3",children:[(0,s.jsx)("span",{className:"text-text-muted text-sm uppercase font-semibold",children:"Cached Tokens"}),(0,s.jsx)("span",{className:"truncate text-2xl font-bold text-info",children:m(r)}),(0,s.jsx)("span",{className:"text-[10px] text-text-muted",children:r>0?`${a.toFixed(1)}% of input \xb7 billed at cache rate`:"No cache hits yet"})]}),(0,s.jsxs)(o.default,{className:"flex min-w-0 flex-col gap-1 px-4 py-3",children:[(0,s.jsx)("span",{className:"text-text-muted text-sm uppercase font-semibold",children:"Output Tokens"}),(0,s.jsx)("span",{className:"truncate text-2xl font-bold text-success",children:m(e.totalCompletionTokens)})]}),(0,s.jsxs)(o.default,{className:"flex min-w-0 flex-col gap-1 px-4 py-3",children:[(0,s.jsx)("span",{className:"text-text-muted text-sm uppercase font-semibold",children:"Est. Cost"}),(0,s.jsxs)("span",{className:"truncate text-2xl font-bold text-warning",children:["~",(t=e.totalCost,`$${(t||0).toFixed(2)}`)]}),(0,s.jsx)("span",{className:"text-[10px] text-text-muted",children:"Estimated, not actual billing"})]})]})}u.propTypes={stats:c().object.isRequired};let x=e=>new Intl.NumberFormat().format(e||0),p=e=>`$${(e||0).toFixed(2)}`;function h(e){if(!e)return"Never";let t=Math.floor((Date.now()-new Date(e))/6e4);return t<1?"Just now":t<60?`${t}m ago`:t<1440?`${Math.floor(t/60)}h ago`:new Date(e).toLocaleDateString()}function b({field:e,currentSort:t,currentOrder:r}){return t!==e?(0,s.jsx)("span",{className:"ml-1 opacity-20",children:"↕"}):(0,s.jsx)("span",{className:"ml-1",children:"asc"===r?"↑":"↓"})}function f({item:e,viewMode:t,isSummary:r=!1}){if("tokens"===t){let t=e.cachedTokens;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("td",{className:"px-6 py-3 text-right text-text-muted",children:r&&void 0===e.promptTokens?"—":x(e.promptTokens)}),(0,s.jsx)("td",{className:"px-6 py-3 text-right text-info",children:null==t?"—":x(t)}),(0,s.jsx)("td",{className:"px-6 py-3 text-right text-text-muted",children:r&&void 0===e.completionTokens?"—":x(e.completionTokens)}),(0,s.jsx)("td",{className:"px-6 py-3 text-right font-medium",children:x(e.totalTokens)})]})}return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("td",{className:"px-6 py-3 text-right text-text-muted",children:r&&void 0===e.inputCost?"—":p(e.inputCost)}),(0,s.jsx)("td",{className:"px-6 py-3 text-right text-text-muted",children:r&&void 0===e.outputCost?"—":p(e.outputCost)}),(0,s.jsx)("td",{className:"px-6 py-3 text-right font-medium text-warning",children:p(e.totalCost||e.cost)})]})}function g({title:e,columns:t,groupedData:r,tableType:l,sortBy:n,sortOrder:i,onToggleSort:d,viewMode:c,storageKey:m,renderDetailCells:u,renderSummaryCells:x,emptyMessage:p}){let[h,j]=(0,a.useState)(new Set);(0,a.useEffect)(()=>{try{let e=localStorage.getItem(m);e&&j(new Set(JSON.parse(e)))}catch(e){console.error(`Failed to load ${m}:`,e)}},[m]),(0,a.useEffect)(()=>{try{localStorage.setItem(m,JSON.stringify([...h]))}catch(e){console.error(`Failed to save ${m}:`,e)}},[h,m]);let v=(0,a.useCallback)(e=>{j(t=>{let r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r})},[]),y=(0,a.useMemo)(()=>"tokens"===c?[{field:"promptTokens",label:"Input Tokens"},{field:"cachedTokens",label:"Cached"},{field:"completionTokens",label:"Output Tokens"},{field:"totalTokens",label:"Total Tokens"}]:[{field:"promptTokens",label:"Input Cost"},{field:"completionTokens",label:"Output Cost"},{field:"cost",label:"Total Cost"}],[c]),N=t.length+y.length;return(0,s.jsxs)(o.default,{className:"overflow-hidden",children:[(0,s.jsx)("div",{className:"p-4 border-b border-border bg-bg-subtle/50",children:(0,s.jsx)("h3",{className:"font-semibold",children:e})}),(0,s.jsx)("div",{className:"overflow-x-auto",children:(0,s.jsxs)("table",{className:"w-full text-sm text-left",children:[(0,s.jsx)("thead",{className:"bg-bg-subtle/30 text-text-muted uppercase text-xs",children:(0,s.jsxs)("tr",{children:[t.map(e=>(0,s.jsxs)("th",{className:`px-6 py-3 cursor-pointer hover:bg-bg-subtle/50 ${"right"===e.align?"text-right":""}`,onClick:()=>d(l,e.field),children:[e.label," ",(0,s.jsx)(b,{field:e.field,currentSort:n,currentOrder:i})]},e.field)),y.map(e=>(0,s.jsxs)("th",{className:"px-6 py-3 text-right cursor-pointer hover:bg-bg-subtle/50",onClick:()=>d(l,e.field),children:[e.label," ",(0,s.jsx)(b,{field:e.field,currentSort:n,currentOrder:i})]},e.field))]})}),(0,s.jsxs)("tbody",{className:"divide-y divide-border",children:[r.map(e=>(0,s.jsxs)(a.Fragment,{children:[(0,s.jsxs)("tr",{className:"group-summary cursor-pointer hover:bg-bg-subtle/50 transition-colors",onClick:()=>v(e.groupKey),children:[(0,s.jsx)("td",{className:"px-6 py-3",children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:`material-symbols-outlined text-[18px] text-text-muted transition-transform ${h.has(e.groupKey)?"rotate-90":""}`,children:"chevron_right"}),(0,s.jsx)("span",{className:`font-medium transition-colors ${e.summary.pending>0?"text-primary":""}`,children:e.groupKey})]})}),x(e),(0,s.jsx)(f,{item:e.summary,viewMode:c,isSummary:!0})]}),h.has(e.groupKey)&&e.items.map(e=>(0,s.jsxs)("tr",{className:"group-detail hover:bg-bg-subtle/20 transition-colors",children:[u(e),(0,s.jsx)(f,{item:e,viewMode:c})]},`detail-${e.key}`))]},e.groupKey)),0===r.length&&(0,s.jsx)("tr",{children:(0,s.jsx)("td",{colSpan:N,className:"px-6 py-8 text-center text-text-muted",children:p})})]})]})})]})}b.propTypes={field:c().string.isRequired,currentSort:c().string.isRequired,currentOrder:c().string.isRequired},f.propTypes={item:c().object.isRequired,viewMode:c().string.isRequired,isSummary:c().bool},g.propTypes={title:c().string.isRequired,columns:c().arrayOf(c().shape({field:c().string.isRequired,label:c().string.isRequired,align:c().string})).isRequired,groupedData:c().array.isRequired,tableType:c().string.isRequired,sortBy:c().string.isRequired,sortOrder:c().string.isRequired,onToggleSort:c().func.isRequired,viewMode:c().string.isRequired,storageKey:c().string.isRequired,renderDetailCells:c().func.isRequired,renderSummaryCells:c().func.isRequired,emptyMessage:c().string.isRequired};var j=r(19388),v=r(53811);r(6447);let y={padding:.2,duration:200};function N({data:e}){let{label:t,color:r,imageUrl:l,textIcon:n,active:i}=e,[o,d]=(0,a.useState)(!1);return(0,s.jsxs)("div",{className:"flex items-center gap-2.5 px-4 py-2.5 rounded-lg border-2 transition-all duration-300 bg-bg",style:{borderColor:i?r:"var(--color-border)",boxShadow:i?`0 0 16px ${r}40`:"none",minWidth:"150px"},children:[(0,s.jsx)(j.h7,{type:"target",position:v.yX.Top,id:"top",className:"!bg-transparent !border-0 !w-0 !h-0"}),(0,s.jsx)(j.h7,{type:"target",position:v.yX.Bottom,id:"bottom",className:"!bg-transparent !border-0 !w-0 !h-0"}),(0,s.jsx)(j.h7,{type:"target",position:v.yX.Left,id:"left",className:"!bg-transparent !border-0 !w-0 !h-0"}),(0,s.jsx)(j.h7,{type:"target",position:v.yX.Right,id:"right",className:"!bg-transparent !border-0 !w-0 !h-0"}),(0,s.jsx)("div",{className:"w-8 h-8 rounded-md flex items-center justify-center shrink-0",style:{backgroundColor:`${r}15`},children:o?(0,s.jsx)("span",{className:"text-sm font-bold",style:{color:r},children:n}):(0,s.jsx)("img",{src:l,alt:t,className:"w-6 h-6 rounded-sm object-contain",onError:()=>d(!0)})}),(0,s.jsx)("span",{className:"text-base font-medium truncate",style:{color:i?r:"var(--color-text)"},children:t}),i&&(0,s.jsxs)("span",{className:"relative flex h-2 w-2 shrink-0",children:[(0,s.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full opacity-75",style:{backgroundColor:r}}),(0,s.jsx)("span",{className:"relative inline-flex rounded-full h-2 w-2",style:{backgroundColor:r}})]})]})}function k({data:e}){return(0,s.jsxs)("div",{className:"flex items-center justify-center px-5 py-3 rounded-xl border-2 border-primary bg-primary/5 shadow-md min-w-[130px]",children:[(0,s.jsx)(j.h7,{type:"source",position:v.yX.Top,id:"top",className:"!bg-transparent !border-0 !w-0 !h-0"}),(0,s.jsx)(j.h7,{type:"source",position:v.yX.Bottom,id:"bottom",className:"!bg-transparent !border-0 !w-0 !h-0"}),(0,s.jsx)(j.h7,{type:"source",position:v.yX.Left,id:"left",className:"!bg-transparent !border-0 !w-0 !h-0"}),(0,s.jsx)(j.h7,{type:"source",position:v.yX.Right,id:"right",className:"!bg-transparent !border-0 !w-0 !h-0"}),(0,s.jsx)("img",{src:"/favicon.svg",alt:"ZevaiRouter",className:"w-6 h-6 mr-2"}),(0,s.jsx)("span",{className:"text-sm font-bold text-primary",children:"ZevaiRouter"}),e.activeCount>0&&(0,s.jsx)("span",{className:"ml-2 px-1.5 py-0.5 rounded-full bg-primary text-white text-xs font-bold",children:e.activeCount})]})}N.propTypes={data:c().object.isRequired},k.propTypes={data:c().object.isRequired};let w={provider:N,router:k};function C({providers:e=[],activeRequests:t=[],lastProvider:r="",errorProvider:l=""}){let i=(0,a.useMemo)(()=>t.map(e=>e.provider?.toLowerCase()).filter(Boolean).sort().join(","),[t]),o=r?.toLowerCase()||"",d=l?.toLowerCase()||"",c=(0,a.useMemo)(()=>new Set(i?i.split(","):[]),[i]),m=(0,a.useMemo)(()=>new Set(o?[o]:[]),[o]),u=(0,a.useMemo)(()=>new Set(d?[d]:[]),[d]),x=(0,a.useRef)({}),[p,h]=(0,a.useState)(0);(0,a.useEffect)(()=>{let e=x.current,t=Date.now();for(let r of c)e[r]||(e[r]=t);for(let t of Object.keys(e))c.has(t)||delete e[t]},[c]),(0,a.useEffect)(()=>{if(0===c.size)return;let e=setInterval(()=>h(e=>e+1),1e3);return()=>clearInterval(e)},[c]);let b=(0,a.useMemo)(()=>{let e=Date.now(),t=new Set;for(let r of c){let s=x.current[r];(!s||e-s<6e4)&&t.add(r)}return t},[c,p]),{nodes:f,edges:g}=(0,a.useMemo)(()=>(function(e,t,r,s){let a=e.length,l=Math.max(320,204*a/(2*Math.PI)),i=Math.max(200,.55*l);if(0===a)return{nodes:[{id:"router",type:"router",position:{x:0,y:0},data:{activeCount:0},draggable:!1}],edges:[]};let o=[],d=[];return o.push({id:"router",type:"router",position:{x:-60,y:-22},data:{activeCount:t.size},draggable:!1}),e.forEach((e,c)=>{var m,u;let x,p,h=(m=e.provider,n.Q2[m]||{color:"#6b7280",name:m}),b=t.has(e.provider?.toLowerCase()),f=!b&&r.has(e.provider?.toLowerCase()),g=!b&&s.has(e.provider?.toLowerCase()),j=`provider-${e.provider}`,v={label:(h.name!==e.provider?h.name:null)||e.name||e.provider,color:h.color||"#6b7280",imageUrl:(u=e.provider,`/providers/${u}.png`),textIcon:h.textIcon||(e.provider||"?").slice(0,2).toUpperCase(),active:b},y=-Math.PI/2+2*Math.PI*c/a,N=l*Math.cos(y),k=i*Math.sin(y);Math.abs(y+Math.PI/2)<Math.PI/4||Math.abs(y-3*Math.PI/2)<Math.PI/4?(x="top",p="bottom"):Math.abs(y-Math.PI/2)<Math.PI/4?(x="bottom",p="top"):N>0?(x="right",p="left"):(x="left",p="right"),o.push({id:j,type:"provider",position:{x:N-90,y:k-15},data:v,draggable:!1}),d.push({id:`e-${j}`,source:"router",sourceHandle:x,target:j,targetHandle:p,animated:b,style:(h.color,g?{stroke:"#ef4444",strokeWidth:2.5,opacity:.9}:b?{stroke:"#22c55e",strokeWidth:2.5,opacity:.9}:f?{stroke:"#f59e0b",strokeWidth:2,opacity:.7}:{stroke:"var(--color-border)",strokeWidth:1,opacity:.3})})}),{nodes:o,edges:d}})(e,b,m,u),[e,b,m,u]),v=(0,a.useMemo)(()=>e.map(e=>e.provider).sort().join(","),[e]),N=(0,a.useRef)(null),k=(0,a.useRef)(null),S=(0,a.useCallback)(e=>{N.current=e,setTimeout(()=>e.fitView(y),50)},[]);return(0,a.useEffect)(()=>{let e=k.current;if(!e)return;let t=new ResizeObserver(()=>{N.current&&N.current.fitView(y)});return t.observe(e),()=>t.disconnect()},[]),(0,a.useEffect)(()=>{if(N.current){let e=setTimeout(()=>N.current.fitView(y),50);return()=>clearTimeout(e)}},[f.length]),(0,s.jsx)("div",{ref:k,className:"h-[320px] w-full min-w-0 rounded-lg border border-border bg-bg-subtle/30 sm:h-[480px]",children:0===e.length?(0,s.jsx)("div",{className:"h-full flex items-center justify-center text-text-muted text-sm",children:"No providers connected"}):(0,s.jsx)(j.Gc,{nodes:f,edges:g,nodeTypes:w,fitView:!0,fitViewOptions:y,minZoom:.1,maxZoom:2,onInit:S,proOptions:{hideAttribution:!0},panOnDrag:!0,zoomOnScroll:!0,zoomOnPinch:!0,zoomOnDoubleClick:!0,preventScrolling:!1,nodesDraggable:!1,nodesConnectable:!1,elementsSelectable:!1,children:(0,s.jsx)(j.H2,{showInteractive:!1,className:"react-flow-controls-custom"})},v)})}C.propTypes={providers:c().arrayOf(c().shape({id:c().string,provider:c().string,name:c().string})),activeRequests:c().arrayOf(c().shape({provider:c().string,model:c().string,account:c().string})),lastProvider:c().string,errorProvider:c().string};var S=r(37888),I=r(76020),T=r(29746),$=r(47497),A=r(29406),P=r(52939),O=r(67370);let R=e=>e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(e||0),E=e=>`$${(e||0).toFixed(4)}`;function M({period:e="7d"}){let[t,r]=(0,a.useState)([]),[l,n]=(0,a.useState)(!0),[i,d]=(0,a.useState)("tokens"),c=(0,a.useCallback)(async()=>{n(!0);try{let t=await fetch(`/api/usage/chart?period=${e}`);if(t.ok){let e=await t.json();r(e)}}catch(e){console.error("Failed to fetch chart data:",e)}finally{n(!1)}},[e]);(0,a.useEffect)(()=>{c()},[c]);let m=t.some(e=>e.tokens>0||e.cost>0);return(0,s.jsxs)(o.default,{className:"flex min-w-0 flex-col gap-3 p-3 sm:p-4",children:[(0,s.jsxs)("div",{className:"grid w-full grid-cols-2 items-center gap-1 rounded-lg border border-border bg-bg-subtle p-1 sm:w-auto sm:self-start",children:[(0,s.jsx)("button",{onClick:()=>d("tokens"),className:`px-3 py-1 rounded-md text-sm font-medium transition-colors ${"tokens"===i?"bg-primary text-white shadow-sm":"text-text-muted hover:text-text hover:bg-bg-hover"}`,children:"Tokens"}),(0,s.jsx)("button",{onClick:()=>d("cost"),className:`px-3 py-1 rounded-md text-sm font-medium transition-colors ${"cost"===i?"bg-primary text-white shadow-sm":"text-text-muted hover:text-text hover:bg-bg-hover"}`,children:"Cost"})]}),l?(0,s.jsx)("div",{className:"h-48 flex items-center justify-center text-text-muted text-sm",children:"Loading..."}):m?(0,s.jsx)(S.u,{width:"100%",height:220,children:(0,s.jsxs)(I.Q,{data:t,margin:{top:4,right:8,left:0,bottom:0},children:[(0,s.jsxs)("defs",{children:[(0,s.jsxs)("linearGradient",{id:"gradTokens",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,s.jsx)("stop",{offset:"5%",stopColor:"#6366f1",stopOpacity:.25}),(0,s.jsx)("stop",{offset:"95%",stopColor:"#6366f1",stopOpacity:0})]}),(0,s.jsxs)("linearGradient",{id:"gradCost",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,s.jsx)("stop",{offset:"5%",stopColor:"#f59e0b",stopOpacity:.25}),(0,s.jsx)("stop",{offset:"95%",stopColor:"#f59e0b",stopOpacity:0})]})]}),(0,s.jsx)(T.d,{strokeDasharray:"3 3",strokeOpacity:.1}),(0,s.jsx)($.W,{dataKey:"label",tick:{fontSize:10,fill:"currentColor",fillOpacity:.5},tickLine:!1,axisLine:!1,interval:"preserveStartEnd"}),(0,s.jsx)(A.h,{tick:{fontSize:10,fill:"currentColor",fillOpacity:.5},tickLine:!1,axisLine:!1,tickFormatter:"tokens"===i?R:E,width:50}),(0,s.jsx)(P.m,{contentStyle:{backgroundColor:"var(--color-bg)",border:"1px solid var(--color-border)",borderRadius:"8px",fontSize:"12px"},formatter:(e,t)=>"tokens"===t?[R(e),"Tokens"]:[E(e),"Cost"]}),"tokens"===i?(0,s.jsx)(O.Gk,{type:"monotone",dataKey:"tokens",stroke:"#6366f1",strokeWidth:2,fill:"url(#gradTokens)",dot:!1,activeDot:{r:4}}):(0,s.jsx)(O.Gk,{type:"monotone",dataKey:"cost",stroke:"#f59e0b",strokeWidth:2,fill:"url(#gradCost)",dot:!1,activeDot:{r:4}})]})}):(0,s.jsx)("div",{className:"h-48 flex items-center justify-center text-text-muted text-sm",children:"No data for this period"})]})}function _(e){let t=n.Q2[e];return!t?.serviceKinds||t.serviceKinds.includes("llm")}function z({timestamp:e}){let t,[,r]=(0,a.useState)(0);return(0,a.useEffect)(()=>{let e=setInterval(()=>r(e=>e+1),1e3);return()=>clearInterval(e)},[]),(0,s.jsx)(s.Fragment,{children:(t=Math.floor((Date.now()-new Date(e))/1e3))<60?`${t}s ago`:t<3600?`${Math.floor(t/60)}m ago`:t<86400?`${Math.floor(t/3600)}h ago`:`${Math.floor(t/86400)}d ago`})}function L({requests:e=[]}){return(0,s.jsxs)(o.default,{className:"flex min-w-0 flex-col overflow-hidden",padding:"sm",style:{height:480},children:[(0,s.jsx)("div",{className:"px-1 py-2 border-b border-border shrink-0",children:(0,s.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wide",children:"Recent Requests"})}),e.length?(0,s.jsx)("div",{className:"flex-1 overflow-y-auto",children:(0,s.jsxs)("table",{className:"w-full min-w-[300px] border-collapse text-xs",children:[(0,s.jsx)("thead",{className:"sticky top-0 bg-bg z-10",children:(0,s.jsxs)("tr",{className:"border-b border-border",children:[(0,s.jsx)("th",{className:"py-1.5 text-left font-semibold text-text-muted w-2"}),(0,s.jsx)("th",{className:"py-1.5 text-left font-semibold text-text-muted",children:"Model"}),(0,s.jsx)("th",{className:"py-1.5 text-right font-semibold text-text-muted whitespace-nowrap",children:"In / Out"}),(0,s.jsx)("th",{className:"py-1.5 text-right font-semibold text-text-muted",children:"When"})]})}),(0,s.jsx)("tbody",{className:"divide-y divide-border/50",children:e.map((e,t)=>{let r=!e.status||"ok"===e.status||"success"===e.status;return(0,s.jsxs)("tr",{className:"hover:bg-bg-subtle transition-colors",children:[(0,s.jsx)("td",{className:"py-1.5",children:(0,s.jsx)("span",{className:`block w-1.5 h-1.5 rounded-full ${r?"bg-success":"bg-error"}`})}),(0,s.jsx)("td",{className:"py-1.5 font-mono truncate max-w-[120px]",title:e.model,children:e.model}),(0,s.jsxs)("td",{className:"py-1.5 text-right whitespace-nowrap",children:[(0,s.jsxs)("span",{className:"text-primary",children:[x(e.promptTokens),"↑"]})," ",(0,s.jsxs)("span",{className:"text-success",children:[x(e.completionTokens),"↓"]})]}),(0,s.jsx)("td",{className:"py-1.5 text-right text-text-muted whitespace-nowrap",children:(0,s.jsx)(z,{timestamp:e.timestamp})})]},t)})})]})}):(0,s.jsx)("div",{className:"flex-1 flex items-center justify-center text-text-muted text-sm",children:"No requests yet."})]})}function q(e,t={},r,s){return Object.entries(e||{}).map(([e,r])=>{let s=(r.promptTokens||0)+(r.completionTokens||0),a=r.cost||0,l=s>0?(r.promptTokens||0)*(a/s):0,n=s>0?(r.completionTokens||0)*(a/s):0;return{...r,key:e,totalTokens:s,totalCost:a,inputCost:l,outputCost:n,pending:t[e]||0}}).sort((e,t)=>{let a=e[r],l=t[r];return("string"==typeof a&&(a=a.toLowerCase()),"string"==typeof l&&(l=l.toLowerCase()),a<l)?"asc"===s?-1:1:a>l?"asc"===s?1:-1:0})}function U(e,t){if(!Array.isArray(e))return[];let r={};return e.forEach(e=>{let s=function(e,t){switch(t){case"rawModel":return e.rawModel||"Unknown Model";case"accountName":return e.accountName||`Account ${e.connectionId?.slice(0,8)}...`||"Unknown Account";case"keyName":return e.keyName||"Unknown Key";case"endpoint":return e.endpoint||"Unknown Endpoint";default:return e[t]||"Unknown"}}(e,t);r[s]||(r[s]={groupKey:s,summary:{requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,totalTokens:0,cost:0,inputCost:0,outputCost:0,lastUsed:null,pending:0},items:[]});let a=r[s].summary;a.requests+=e.requests||0,a.promptTokens+=e.promptTokens||0,a.completionTokens+=e.completionTokens||0,a.cachedTokens+=e.cachedTokens||0,a.totalTokens+=e.totalTokens||0,a.cost+=e.cost||0,a.inputCost+=e.inputCost||0,a.outputCost+=e.outputCost||0,a.pending+=e.pending||0,e.lastUsed&&(!a.lastUsed||new Date(e.lastUsed)>new Date(a.lastUsed))&&(a.lastUsed=e.lastUsed),r[s].items.push(e)}),Object.values(r)}M.propTypes={period:c().string};let F=[{field:"rawModel",label:"Model"},{field:"provider",label:"Provider"},{field:"requests",label:"Requests",align:"right"},{field:"lastUsed",label:"Last Used",align:"right"}],D=[{field:"rawModel",label:"Model"},{field:"provider",label:"Provider"},{field:"accountName",label:"Account"},{field:"requests",label:"Requests",align:"right"},{field:"lastUsed",label:"Last Used",align:"right"}],W=[{field:"keyName",label:"API Key Name"},{field:"rawModel",label:"Model"},{field:"provider",label:"Provider"},{field:"requests",label:"Requests",align:"right"},{field:"lastUsed",label:"Last Used",align:"right"}],B=[{field:"endpoint",label:"Endpoint"},{field:"rawModel",label:"Model"},{field:"provider",label:"Provider"},{field:"requests",label:"Requests",align:"right"},{field:"lastUsed",label:"Last Used",align:"right"}],K=[{value:"model",label:"Usage by Model"},{value:"account",label:"Usage by Account"},{value:"apiKey",label:"Usage by API Key"},{value:"endpoint",label:"Usage by Endpoint"}],J=[{value:"today",label:"Today"},{value:"24h",label:"24h"},{value:"7d",label:"7D"},{value:"30d",label:"30D"},{value:"60d",label:"60D"}];function V({period:e,setPeriod:t,hidePeriodSelector:r=!1}={}){let o=(0,l.useRouter)(),d=(0,l.useSearchParams)(),c=d.get("sortBy")||"rawModel",m=d.get("sortOrder")||"asc",[p,b]=(0,a.useState)(null),[f,j]=(0,a.useState)(!0),[v,y]=(0,a.useState)(!1),[N,k]=(0,a.useState)("model"),[w,S]=(0,a.useState)("costs"),[I,T]=(0,a.useState)([]),[$,A]=(0,a.useState)("today"),P=(0,a.useRef)(!0),O=e??$,R=t??A;(0,a.useEffect)(()=>{fetch("/api/providers").then(e=>e.ok?e.json():null).then(e=>{let t=new Set;T([...(e?.connections||[]).filter(e=>!(!1===e.isActive||!_(e.provider)||t.has(e.provider))&&(t.add(e.provider),!0)),...Object.values(n.IS).filter(e=>e.noAuth&&!t.has(e.id)&&_(e.id)).map(e=>({provider:e.id,name:e.name}))])}).catch(()=>{})},[]),(0,a.useEffect)(()=>{P.current?(P.current=!1,j(!0)):y(!0),fetch(`/api/usage/stats?period=${O}`).then(e=>e.ok?e.json():null).then(e=>{e&&b(t=>({...t,...e}))}).catch(()=>{}).finally(()=>{j(!1),y(!1)})},[O]),(0,a.useEffect)(()=>{let e=new EventSource("/api/usage/stream");return e.onmessage=e=>{try{let t=JSON.parse(e.data);b(e=>({...e||{},activeRequests:t.activeRequests,recentRequests:t.recentRequests,errorProvider:t.errorProvider,pending:t.pending})),j(!1)}catch(e){console.error("[SSE CLIENT] parse error:",e)}},e.onerror=()=>j(!1),()=>e.close()},[]);let E=(0,a.useCallback)((e,t)=>{let r=new URLSearchParams(d.toString());r.get("sortBy")===t?r.set("sortOrder","asc"===r.get("sortOrder")?"desc":"asc"):(r.set("sortBy",t),r.set("sortOrder","asc")),o.replace(`?${r.toString()}`,{scroll:!1})},[d,o]),z=(0,a.useMemo)(()=>{if(!p)return null;switch(N){case"model":{let e=p.pending?.byModel||{};return{columns:F,groupedData:U(q(p.byModel,e,c,m),"rawModel"),storageKey:"usage-stats:expanded-models",emptyMessage:"No usage recorded yet.",renderSummaryCells:e=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("td",{className:"px-6 py-3 text-text-muted",children:"—"}),(0,s.jsx)("td",{className:"px-6 py-3 text-right",children:x(e.summary.requests)}),(0,s.jsx)("td",{className:"px-6 py-3 text-right text-text-muted whitespace-nowrap",children:h(e.summary.lastUsed)})]}),renderDetailCells:e=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("td",{className:`px-6 py-3 font-medium transition-colors ${e.pending>0?"text-primary":""}`,children:e.rawModel}),(0,s.jsx)("td",{className:"px-6 py-3",children:(0,s.jsx)(i.default,{variant:e.pending>0?"primary":"neutral",size:"sm",children:e.provider})}),(0,s.jsx)("td",{className:"px-6 py-3 text-right",children:x(e.requests)}),(0,s.jsx)("td",{className:"px-6 py-3 text-right text-text-muted whitespace-nowrap",children:h(e.lastUsed)})]})}}case"account":{let e={};return p?.pending?.byAccount&&Object.entries(p.byAccount||{}).forEach(([t,r])=>{let s=p.pending.byAccount[r.connectionId];if(s){let a=r.provider?`${r.rawModel} (${r.provider})`:r.rawModel;e[t]=s[a]||0}}),{columns:D,groupedData:U(q(p.byAccount,e,c,m),"accountName"),storageKey:"usage-stats:expanded-accounts",emptyMessage:"No account-specific usage recorded yet.",renderSummaryCells:e=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("td",{className:"px-6 py-3 text-text-muted",children:"—"}),(0,s.jsx)("td",{className:"px-6 py-3 text-text-muted",children:"—"}),(0,s.jsx)("td",{className:"px-6 py-3 text-right",children:x(e.summary.requests)}),(0,s.jsx)("td",{className:"px-6 py-3 text-right text-text-muted whitespace-nowrap",children:h(e.summary.lastUsed)})]}),renderDetailCells:e=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("td",{className:`px-6 py-3 font-medium transition-colors ${e.pending>0?"text-primary":""}`,children:e.accountName||`Account ${e.connectionId?.slice(0,8)}...`}),(0,s.jsx)("td",{className:`px-6 py-3 font-medium transition-colors ${e.pending>0?"text-primary":""}`,children:e.rawModel}),(0,s.jsx)("td",{className:"px-6 py-3",children:(0,s.jsx)(i.default,{variant:e.pending>0?"primary":"neutral",size:"sm",children:e.provider})}),(0,s.jsx)("td",{className:"px-6 py-3 text-right",children:x(e.requests)}),(0,s.jsx)("td",{className:"px-6 py-3 text-right text-text-muted whitespace-nowrap",children:h(e.lastUsed)})]})}}case"apiKey":return{columns:W,groupedData:U(q(p.byApiKey,{},c,m),"keyName"),storageKey:"usage-stats:expanded-apikeys",emptyMessage:"No API key usage recorded yet.",renderSummaryCells:e=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("td",{className:"px-6 py-3 text-text-muted",children:"—"}),(0,s.jsx)("td",{className:"px-6 py-3 text-text-muted",children:"—"}),(0,s.jsx)("td",{className:"px-6 py-3 text-right",children:x(e.summary.requests)}),(0,s.jsx)("td",{className:"px-6 py-3 text-right text-text-muted whitespace-nowrap",children:h(e.summary.lastUsed)})]}),renderDetailCells:e=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("td",{className:"px-6 py-3 font-medium",children:e.keyName}),(0,s.jsx)("td",{className:"px-6 py-3",children:e.rawModel}),(0,s.jsx)("td",{className:"px-6 py-3",children:(0,s.jsx)(i.default,{variant:"neutral",size:"sm",children:e.provider})}),(0,s.jsx)("td",{className:"px-6 py-3 text-right",children:x(e.requests)}),(0,s.jsx)("td",{className:"px-6 py-3 text-right text-text-muted whitespace-nowrap",children:h(e.lastUsed)})]})};default:return{columns:B,groupedData:U(q(p.byEndpoint,{},c,m),"endpoint"),storageKey:"usage-stats:expanded-endpoints",emptyMessage:"No endpoint usage recorded yet.",renderSummaryCells:e=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("td",{className:"px-6 py-3 text-text-muted",children:"—"}),(0,s.jsx)("td",{className:"px-6 py-3 text-text-muted",children:"—"}),(0,s.jsx)("td",{className:"px-6 py-3 text-right",children:x(e.summary.requests)}),(0,s.jsx)("td",{className:"px-6 py-3 text-right text-text-muted whitespace-nowrap",children:h(e.summary.lastUsed)})]}),renderDetailCells:e=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("td",{className:"px-6 py-3 font-medium font-mono text-sm",children:e.endpoint}),(0,s.jsx)("td",{className:"px-6 py-3",children:e.rawModel}),(0,s.jsx)("td",{className:"px-6 py-3",children:(0,s.jsx)(i.default,{variant:"neutral",size:"sm",children:e.provider})}),(0,s.jsx)("td",{className:"px-6 py-3 text-right",children:x(e.requests)}),(0,s.jsx)("td",{className:"px-6 py-3 text-right text-text-muted whitespace-nowrap",children:h(e.lastUsed)})]})}}},[p,N,c,m]);if(!p&&!f)return(0,s.jsx)("div",{className:"text-text-muted",children:"Failed to load usage statistics."});let G=(0,s.jsx)("div",{className:"flex items-center justify-center py-12 text-text-muted",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[32px] animate-spin",children:"progress_activity"})});return(0,s.jsxs)("div",{className:"flex min-w-0 flex-col gap-6",children:[!r&&(0,s.jsxs)("div",{className:"flex w-full items-center gap-2 sm:w-auto sm:self-end",children:[(0,s.jsx)("div",{className:"grid flex-1 grid-cols-5 items-center gap-1 rounded-lg border border-border bg-bg-subtle p-1 sm:flex sm:flex-none",children:J.map(e=>(0,s.jsx)("button",{onClick:()=>R(e.value),disabled:v,className:`rounded-md px-3 py-1 text-sm font-medium transition-colors ${O===e.value?"bg-primary text-white shadow-sm":"text-text-muted hover:bg-bg-hover hover:text-text"}`,children:e.label},e.value))}),v&&(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px] text-text-muted animate-spin",children:"progress_activity"})]}),f?G:(0,s.jsx)(u,{stats:p}),f?G:(0,s.jsxs)("div",{className:"grid min-w-0 grid-cols-1 items-stretch gap-2 lg:grid-cols-[minmax(0,2fr)_minmax(280px,1fr)]",children:[(0,s.jsx)(C,{providers:I,activeRequests:p.activeRequests||[],lastProvider:p.recentRequests?.[0]?.provider||"",errorProvider:p.errorProvider||""}),(0,s.jsx)(L,{requests:p.recentRequests||[]})]}),f?G:(0,s.jsx)(M,{period:O}),(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsx)("select",{value:N,onChange:e=>k(e.target.value),className:"w-full rounded-lg border border-border bg-surface px-3 py-1.5 text-sm font-medium text-text-main focus:outline-none focus:ring-2 focus:ring-primary/50 sm:w-auto",style:{colorScheme:"auto"},children:K.map(e=>(0,s.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,s.jsxs)("div",{className:"grid grid-cols-2 items-center gap-1 rounded-lg border border-border bg-bg-subtle p-1 sm:flex",children:[(0,s.jsx)("button",{onClick:()=>S("costs"),className:`px-3 py-1 rounded-md text-sm font-medium transition-colors ${"costs"===w?"bg-primary text-white shadow-sm":"text-text-muted hover:text-text hover:bg-bg-hover"}`,children:"Costs"}),(0,s.jsx)("button",{onClick:()=>S("tokens"),className:`px-3 py-1 rounded-md text-sm font-medium transition-colors ${"tokens"===w?"bg-primary text-white shadow-sm":"text-text-muted hover:text-text hover:bg-bg-hover"}`,children:"Tokens"})]})]}),f?G:z&&(0,s.jsx)(g,{title:"",columns:z.columns,groupedData:z.groupedData,tableType:N,sortBy:c,sortOrder:m,onToggleSort:E,viewMode:w,storageKey:z.storageKey,renderSummaryCells:z.renderSummaryCells,renderDetailCells:z.renderDetailCells,emptyMessage:z.emptyMessage})]})]})}},94994:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(94799),a=r(34023),l=r(78525),n=r.n(l);function i({src:e,alt:t,size:r=32,className:l="",fallbackText:n="?",fallbackColor:o}){let[d,c]=(0,a.useState)(!1),[m,u]=(0,a.useState)(e),[x,p]=(0,a.useState)(e);return(x!==e&&(p(e),c(!1),u(e)),!m||d)?(0,s.jsx)("span",{className:`inline-flex items-center justify-center font-bold rounded-lg ${l}`.trim(),style:{width:r,height:r,color:o,fontSize:Math.max(10,Math.floor(.38*r))},children:n}):(0,s.jsx)("img",{src:m,alt:t,width:r,height:r,className:l,onError:()=>{"string"==typeof m&&m.endsWith(".png")?u(`${m.slice(0,-4)}.svg`):c(!0)}})}i.propTypes={src:n().string,alt:n().string,size:n().number,className:n().string,fallbackText:n().string,fallbackColor:n().string}},95818:(e,t,r)=>{r.d(t,{default:()=>i});var s=r(94799),a=r(78525),l=r.n(a),n=r(27275);function i({children:e}){return(0,s.jsxs)("div",{className:"min-h-screen flex flex-col relative bg-bg transition-colors duration-500 overflow-x-hidden selection:bg-primary/20 selection:text-primary",children:[(0,s.jsx)("div",{className:"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[800px] h-[800px] bg-primary/5 dark:bg-primary/5 rounded-full blur-[100px] pointer-events-none z-0"}),(0,s.jsx)("div",{className:"fixed bottom-0 right-0 w-[600px] h-[600px] bg-orange-200/20 dark:bg-orange-900/10 rounded-full blur-[120px] pointer-events-none z-0 translate-y-1/3 translate-x-1/3"}),(0,s.jsx)("div",{className:"absolute top-6 right-6 z-20",children:(0,s.jsx)(n.default,{variant:"card"})}),(0,s.jsx)("main",{className:"flex-1 flex flex-col items-center justify-center p-4 sm:p-6 z-10 w-full h-full",children:e})]})}i.propTypes={children:l().node.isRequired}},96579:(e,t,r)=>{r.d(t,{C:()=>s});let s=(0,r(80916).v)(e=>({query:"",placeholder:"",visible:!1,setQuery:t=>e({query:t}),register:(t="Search...")=>e({visible:!0,placeholder:t,query:""}),unregister:()=>e({visible:!1,placeholder:"",query:""})}))},97519:(e,t,r)=>{r.d(t,{default:()=>l});var s=r(94799),a=r(28834);function l({src:e,alt:t="Avatar",name:r,size:n="md",className:i}){let o={xs:"size-6 text-xs",sm:"size-8 text-sm",md:"size-10 text-base",lg:"size-12 text-lg",xl:"size-16 text-xl"};return e?(0,s.jsx)("div",{className:(0,a.cn)("rounded-full bg-cover bg-center bg-no-repeat","ring-2 ring-white dark:ring-surface-dark shadow-sm",o[n],i),style:{backgroundImage:`url(${e})`},role:"img","aria-label":t}):(0,s.jsx)("div",{className:(0,a.cn)("rounded-full flex items-center justify-center font-semibold text-white","ring-2 ring-white dark:ring-surface-dark shadow-sm",o[n],(e=>{if(!e)return"bg-primary";let t=["bg-red-500","bg-orange-500","bg-amber-500","bg-yellow-500","bg-lime-500","bg-green-500","bg-emerald-500","bg-teal-500","bg-cyan-500","bg-sky-500","bg-blue-500","bg-indigo-500","bg-violet-500","bg-purple-500","bg-fuchsia-500","bg-pink-500","bg-rose-500"],r=e.charCodeAt(0)%t.length;return t[r]})(r),i),role:"img","aria-label":t,children:(e=>{if(!e)return"?";let t=e.split(" ");return t.length>=2?`${t[0][0]}${t[1][0]}`.toUpperCase():e.substring(0,2).toUpperCase()})(r)})}},97930:(e,t,r)=>{r.d(t,{default:()=>n});var s=r(94799),a=r(34023),l=r(16983);function n({isOpen:e,onClose:t,onAdd:r,addedNames:i=[]}){let[o,d]=(0,a.useState)([]),[c,m]=(0,a.useState)(!1),[u,x]=(0,a.useState)(""),[p,h]=(0,a.useState)("all"),[b,f]=(0,a.useState)(null),[g,j]=(0,a.useState)(null),[v,y]=(0,a.useState)({}),[N,k]=(0,a.useState)({}),[w,C]=(0,a.useState)({});(0,a.useEffect)(()=>{!e||o.length>0||(m(!0),fetch("/api/cli-tools/cowork-mcp-registry").then(e=>e.json()).then(e=>{e.error?f(e.error):d(e.servers||[])}).catch(e=>f(e.message)).finally(()=>m(!1)))},[e,o.length]);let S=(0,a.useMemo)(()=>new Set(i),[i]),I=(0,a.useMemo)(()=>{let e=u.trim().toLowerCase();return o.filter(t=>("authless"!==p||!t.oauth)&&("oauth"!==p||!!t.oauth)&&(!e||(t.title||"").toLowerCase().includes(e)||(t.description||"").toLowerCase().includes(e)||(t.name||"").toLowerCase().includes(e)))},[o,u,p]),T=async e=>{if(!v[e.url]){k(t=>({...t,[e.url]:!0}));try{let t=await fetch("/api/cli-tools/cowork-mcp-tools",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e.url})}),r=await t.json(),s=r.tools||[],a=Array.isArray(e.toolNames)?e.toolNames:[],l=s.length>0?s.map(e=>e.name):a;y(t=>({...t,[e.url]:{tools:s,requiresAuth:!!r.requiresAuth,error:r.error}})),C(t=>({...t,[e.url]:Object.fromEntries(l.map(e=>[e,!0]))}))}catch(t){y(r=>({...r,[e.url]:{tools:[],error:t.message}}))}finally{k(t=>({...t,[e.url]:!1}))}}},$=(e,t)=>{let r=w[e]||{};C(s=>({...s,[e]:Object.fromEntries(Object.keys(r).map(e=>[e,t]))}))};return(0,s.jsx)(l.default,{isOpen:e,onClose:t,title:"Browse MCP Marketplace",size:"lg",children:(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("input",{type:"text",value:u,onChange:e=>x(e.target.value),placeholder:"Search by name or description...",className:"flex-1 px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,s.jsxs)("select",{value:p,onChange:e=>h(e.target.value),className:"px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:[(0,s.jsx)("option",{value:"all",children:"All"}),(0,s.jsx)("option",{value:"authless",children:"Authless"}),(0,s.jsx)("option",{value:"oauth",children:"OAuth"})]})]}),b&&(0,s.jsx)("div",{className:"px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600",children:b}),c&&(0,s.jsxs)("div",{className:"flex items-center gap-2 text-text-muted text-xs py-4 justify-center",children:[(0,s.jsx)("span",{className:"material-symbols-outlined animate-spin text-[18px]",children:"progress_activity"}),(0,s.jsx)("span",{children:"Loading registry..."})]}),!c&&(0,s.jsxs)("div",{className:"flex flex-col gap-1 max-h-[60vh] overflow-y-auto",children:[0===I.length&&(0,s.jsx)("div",{className:"text-center text-xs text-text-muted py-6",children:"No servers match filter"}),I.map(e=>{let t=S.has(e.slug||e.name),a=g===e.url,l=v[e.url],n=N[e.url],i=w[e.url]||{},o=Object.keys(i),d=Object.values(i).filter(Boolean).length;return(0,s.jsxs)("div",{className:"rounded border border-transparent hover:border-border",children:[(0,s.jsxs)("div",{className:"flex items-start gap-2 px-2 py-2 hover:bg-black/5 dark:hover:bg-white/5",children:[e.iconUrl?(0,s.jsx)("img",{src:e.iconUrl,alt:"",className:"size-7 rounded shrink-0 object-contain",onError:e=>{e.target.style.display="none"}}):(0,s.jsx)("div",{className:"size-7 rounded bg-surface shrink-0"}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 flex-wrap",children:[(0,s.jsx)("span",{className:"font-medium text-xs",children:e.title}),e.oauth?(0,s.jsx)("span",{className:"px-1 py-0.5 text-[9px] rounded bg-amber-500/10 text-amber-600",children:"OAuth"}):(0,s.jsx)("span",{className:"px-1 py-0.5 text-[9px] rounded bg-green-500/10 text-green-600",children:"Authless"}),e.toolCount>0&&(0,s.jsxs)("span",{className:"text-[10px] text-text-muted",children:[e.toolCount," tools"]})]}),e.description&&(0,s.jsx)("p",{className:"text-[10px] text-text-muted line-clamp-2 mt-0.5",children:e.description})]}),(0,s.jsx)("button",{onClick:()=>t?null:void(g===e.url?j(null):(j(e.url),T(e))),disabled:t,className:`shrink-0 px-2 py-1 rounded text-[10px] font-medium transition-colors ${t?"bg-green-500/10 text-green-600 cursor-default":a?"bg-surface border border-border text-text-muted hover:bg-black/5":"bg-primary/10 border border-primary/40 text-primary hover:bg-primary/20"}`,children:t?"Added":a?"Cancel":"+ Add"})]}),a&&(0,s.jsxs)("div",{className:"px-3 py-2 bg-surface/40 border-t border-border flex flex-col gap-2",children:[n&&(0,s.jsxs)("div",{className:"flex items-center gap-2 text-text-muted text-[10px] py-1",children:[(0,s.jsx)("span",{className:"material-symbols-outlined animate-spin text-[14px]",children:"progress_activity"}),(0,s.jsx)("span",{children:"Probing server for tools..."})]}),!n&&l?.requiresAuth&&(0,s.jsx)("p",{className:"text-[10px] text-amber-600 bg-amber-500/10 px-2 py-1 rounded",children:"\uD83D\uDD10 OAuth required. Add now and authenticate after Apply; tool list will be discovered after first connect."}),!n&&l?.error&&!l?.requiresAuth&&(0,s.jsxs)("p",{className:"text-[10px] text-red-600 bg-red-500/10 px-2 py-1 rounded",children:["Probe failed: ",l.error]}),!n&&0===o.length&&!l?.requiresAuth&&!l?.error&&(0,s.jsx)("p",{className:"text-[10px] text-text-muted",children:"No tools advertised by server."}),!n&&o.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("span",{className:"text-[10px] text-text-muted",children:[d,"/",o.length," tools enabled"]}),(0,s.jsxs)("div",{className:"flex gap-1",children:[(0,s.jsx)("button",{onClick:()=>$(e.url,!0),className:"text-[10px] text-primary hover:underline",children:"All"}),(0,s.jsx)("span",{className:"text-[10px] text-text-muted",children:"\xb7"}),(0,s.jsx)("button",{onClick:()=>$(e.url,!1),className:"text-[10px] text-primary hover:underline",children:"None"})]})]}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-1 max-h-40 overflow-y-auto",children:o.map(t=>(0,s.jsxs)("label",{className:"flex items-center gap-1.5 text-[10px] cursor-pointer hover:bg-black/5 dark:hover:bg-white/5 px-1 rounded",children:[(0,s.jsx)("input",{type:"checkbox",checked:!!i[t],onChange:()=>{var r;return r=e.url,void C(e=>({...e,[r]:{...e[r],[t]:!e[r]?.[t]}}))},className:"size-3"}),(0,s.jsx)("span",{className:"truncate",children:t})]},t))})]}),(0,s.jsx)("button",{onClick:()=>{let t,s;return s=Object.keys(t=w[e.url]||{}).filter(e=>t[e]),void(r?.({name:e.slug||e.name,title:e.title,description:e.description,url:e.url,transport:e.transport,oauth:e.oauth,toolNames:s}),j(null))},className:"self-end px-2 py-1 rounded text-[10px] font-medium bg-primary text-white hover:bg-primary/90",children:"✓ Confirm Add"})]})]},e.url)})]}),(0,s.jsxs)("div",{className:"text-[10px] text-text-muted text-right",children:[I.length," of ",o.length," servers"]})]})})}},99646:(e,t,r)=>{r.d(t,{FE:()=>p,Tl:()=>d,kk:()=>c,oQ:()=>m,wn:()=>h});var s=r(64172);let a={},l=s.Xn,n=[];function i(){if("u"<typeof document)return s.Xn;let e=document.cookie.split(";").find(e=>e.trim().startsWith(`${s.CL}=`)),t=e?decodeURIComponent(e.split("=")[1]):s.Xn;return(0,s.QC)(t)}async function o(e){if("en"===e){a={};return}try{let t=await fetch(`/i18n/literals/${e}.json`);a=await t.json()}catch(e){console.error("Failed to load translations:",e),a={}}}function d(e){if(!e||"string"!=typeof e)return e;let t=e.trim();return t&&"en"!==l&&a[t]||e}function c(){return l}function m(e){return n.push(e),()=>{n=n.filter(t=>t!==e)}}function u(e){if(!e.nodeValue||!e.nodeValue.trim())return;let t=e.parentElement;if(!t)return;let r=t;for(;r;){if(r.hasAttribute&&r.hasAttribute("data-i18n-skip"))return;r=r.parentElement}if(["script","style","code","pre","colgroup","table","thead","tbody","tfoot","tr","select","datalist","optgroup"].includes(t.tagName?.toLowerCase()))return;e._originalText||(e._originalText=e.nodeValue);let s=d(e._originalText);s!==e.nodeValue&&(e.nodeValue=s)}function x(e){let t;if(!e)return;let r=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null,!1),s=[];for(;t=r.nextNode();)s.push(t);s.forEach(u)}async function p(){l=i(),await o(l),x(document.body),new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{e.nodeType===Node.ELEMENT_NODE?x(e):e.nodeType===Node.TEXT_NODE&&u(e)})})}).observe(document.body,{childList:!0,subtree:!0})}async function h(){l=i(),await o(l),n.forEach(e=>e()),x(document.body)}}}]);