9router 0.5.18 → 0.5.25

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 (1033) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +21 -9
  3. package/app/.next-cli-build/build-manifest.json +3 -3
  4. package/app/.next-cli-build/prerender-manifest.json +24 -0
  5. package/app/.next-cli-build/react-loadable-manifest.json +9 -0
  6. package/app/.next-cli-build/required-server-files.json +5 -0
  7. package/app/.next-cli-build/routes-manifest.json +74 -0
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +3 -3
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +3 -3
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +3 -3
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +6 -4
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +2 -0
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -0
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -0
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +2 -2
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  75. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  76. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  77. package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
  78. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  79. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  80. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  81. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  82. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  83. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  84. package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  85. package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
  86. package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
  87. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  88. package/app/.next-cli-build/server/app/_not-found/page.js +2 -2
  89. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  90. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  91. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  92. package/app/.next-cli-build/server/app/_not-found.rsc +5 -5
  93. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +5 -5
  94. package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
  95. package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +5 -5
  96. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  97. package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  98. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  99. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  100. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  101. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  102. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  103. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  104. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  105. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  106. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  107. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  108. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  109. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  110. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  111. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  112. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  113. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +2 -2
  114. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  115. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  116. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  117. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  118. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  119. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +1 -1
  120. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  121. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
  122. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  123. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  124. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  125. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  126. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  127. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  128. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  129. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  130. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  131. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  132. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  133. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  134. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  135. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  136. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  137. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  138. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  140. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +1 -1
  142. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  143. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +1 -1
  144. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  146. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  148. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  150. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  151. package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -0
  152. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -0
  153. package/app/.next-cli-build/server/app/api/headroom/extras/route_client-reference-manifest.js +1 -0
  154. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -0
  155. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -0
  156. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route_client-reference-manifest.js +1 -0
  157. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -0
  158. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -0
  159. package/app/.next-cli-build/server/app/api/headroom/restart/route_client-reference-manifest.js +1 -0
  160. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  161. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  162. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  163. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  164. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  165. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  166. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  167. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  168. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  169. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  170. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  171. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  172. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  173. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  174. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  175. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  176. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +2 -2
  177. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  178. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +3 -3
  179. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  180. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  181. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  182. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  183. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  184. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  185. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  186. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  187. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  188. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  189. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  190. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  191. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  192. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  193. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  194. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  195. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  196. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  197. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  198. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  199. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  200. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  201. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  202. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  203. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  204. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  205. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  206. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  207. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  208. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  209. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  210. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  211. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  212. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  213. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  214. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  215. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  216. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  217. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  218. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  219. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  220. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  221. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  222. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  223. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  224. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  225. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  226. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  227. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  228. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  229. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  230. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  231. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  232. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  233. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  234. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  235. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  236. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  237. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  238. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  239. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  240. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  241. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  242. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  243. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  244. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  245. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  246. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  247. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  248. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  249. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  250. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  251. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  252. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  253. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  254. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  255. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  256. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  257. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  258. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  259. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  260. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  261. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  262. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  263. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  264. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  265. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  266. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  267. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  268. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +3 -0
  269. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -0
  270. package/app/.next-cli-build/server/app/api/pxpipe/health/route_client-reference-manifest.js +1 -0
  271. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +3 -0
  272. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -0
  273. package/app/.next-cli-build/server/app/api/pxpipe/install/route_client-reference-manifest.js +1 -0
  274. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +3 -0
  275. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -0
  276. package/app/.next-cli-build/server/app/api/pxpipe/logs/route_client-reference-manifest.js +1 -0
  277. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +3 -0
  278. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -0
  279. package/app/.next-cli-build/server/app/api/pxpipe/restart/route_client-reference-manifest.js +1 -0
  280. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +3 -0
  281. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -0
  282. package/app/.next-cli-build/server/app/api/pxpipe/start/route_client-reference-manifest.js +1 -0
  283. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +3 -0
  284. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -0
  285. package/app/.next-cli-build/server/app/api/pxpipe/stats/route_client-reference-manifest.js +1 -0
  286. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +3 -0
  287. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -0
  288. package/app/.next-cli-build/server/app/api/pxpipe/status/route_client-reference-manifest.js +1 -0
  289. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +3 -0
  290. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -0
  291. package/app/.next-cli-build/server/app/api/pxpipe/stop/route_client-reference-manifest.js +1 -0
  292. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  293. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  294. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  295. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  296. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  297. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  298. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  299. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  300. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  301. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  302. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  303. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  304. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  305. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  306. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  307. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  308. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  309. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  310. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  311. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  312. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  313. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  314. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  315. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  316. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  317. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  318. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  319. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  320. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  321. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  322. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  323. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  324. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  325. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  326. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  327. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  328. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +3 -3
  329. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  330. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  331. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  332. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  333. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  334. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  335. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  336. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  337. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  338. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  339. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  340. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  341. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  342. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  343. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  344. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  345. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  346. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  347. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  348. package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
  349. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  350. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  351. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  352. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  353. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  354. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  355. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  356. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  357. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  358. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  359. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  360. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  361. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  362. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  363. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  364. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  365. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  366. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  367. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  368. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  369. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  370. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  371. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  372. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  373. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  374. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  375. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  376. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  377. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  378. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  379. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  380. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  381. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  382. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  383. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  384. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  385. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  386. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  387. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  388. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  389. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  390. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  391. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  392. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  393. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  394. package/app/.next-cli-build/server/app/callback/page.js +2 -2
  395. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  396. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  397. package/app/.next-cli-build/server/app/callback.html +1 -1
  398. package/app/.next-cli-build/server/app/callback.rsc +5 -5
  399. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +5 -5
  400. package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
  401. package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +5 -5
  402. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  403. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  404. package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
  405. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  406. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +7 -8
  407. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  408. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  409. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  410. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -3
  411. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +7 -8
  412. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  413. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +5 -5
  414. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -3
  415. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  416. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +7 -8
  417. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  418. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  419. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  420. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -3
  421. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +7 -8
  422. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  423. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +5 -5
  424. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -3
  425. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  426. package/app/.next-cli-build/server/app/dashboard/combos.rsc +7 -8
  427. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  428. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  429. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  430. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -3
  431. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +7 -8
  432. package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  433. package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +5 -5
  434. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -3
  435. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  436. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +7 -8
  437. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  438. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  439. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  440. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -3
  441. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +7 -8
  442. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  443. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +5 -5
  444. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -3
  445. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  446. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +7 -8
  447. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  448. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  449. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  450. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  451. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -3
  452. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +7 -8
  453. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  454. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +5 -5
  455. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -3
  456. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  457. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +7 -8
  458. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  459. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  460. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  461. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -3
  462. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +7 -8
  463. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  464. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +5 -5
  465. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -3
  466. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  467. package/app/.next-cli-build/server/app/dashboard/profile.rsc +7 -8
  468. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  469. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  470. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  471. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -3
  472. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +7 -8
  473. package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  474. package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +5 -5
  475. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -3
  476. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  477. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +7 -8
  478. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  479. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  480. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  481. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  482. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -3
  483. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +7 -8
  484. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  485. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +5 -5
  486. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -3
  487. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  488. package/app/.next-cli-build/server/app/dashboard/providers.rsc +7 -8
  489. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  490. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  491. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  492. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -3
  493. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +7 -8
  494. package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  495. package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +5 -5
  496. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -3
  497. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  498. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +7 -8
  499. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  500. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  501. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  502. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -3
  503. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +7 -8
  504. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  505. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +5 -5
  506. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -3
  507. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -0
  508. package/app/.next-cli-build/server/app/dashboard/pxpipe.meta +17 -0
  509. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +23 -0
  510. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +6 -0
  511. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +5 -0
  512. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +5 -0
  513. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +5 -0
  514. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +23 -0
  515. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_head.segment.rsc +6 -0
  516. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_index.segment.rsc +9 -0
  517. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +4 -0
  518. package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  519. package/app/.next-cli-build/server/app/dashboard/quota.rsc +8 -9
  520. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  521. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  522. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  523. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -3
  524. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +8 -9
  525. package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  526. package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +5 -5
  527. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -3
  528. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
  529. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  530. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  531. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  532. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +5 -5
  533. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +5 -5
  534. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  535. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +5 -5
  536. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  537. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  538. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  539. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  540. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  541. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  542. package/app/.next-cli-build/server/app/dashboard/skills.rsc +7 -8
  543. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  544. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
  545. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  546. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -3
  547. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +7 -8
  548. package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
  549. package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +5 -5
  550. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -3
  551. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  552. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +7 -8
  553. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
  554. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
  555. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  556. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -3
  557. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +7 -8
  558. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
  559. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +5 -5
  560. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -3
  561. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  562. package/app/.next-cli-build/server/app/dashboard/translator.rsc +7 -8
  563. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  564. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  565. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  566. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -3
  567. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +7 -8
  568. package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  569. package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +5 -5
  570. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -3
  571. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  572. package/app/.next-cli-build/server/app/dashboard/usage.rsc +7 -8
  573. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  574. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  575. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  576. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -3
  577. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +7 -8
  578. package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  579. package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +5 -5
  580. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -3
  581. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  582. package/app/.next-cli-build/server/app/dashboard.rsc +7 -8
  583. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  584. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  585. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -3
  586. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +7 -8
  587. package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
  588. package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +5 -5
  589. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -3
  590. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  591. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  592. package/app/.next-cli-build/server/app/index.html +1 -1
  593. package/app/.next-cli-build/server/app/index.rsc +5 -5
  594. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  595. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +5 -5
  596. package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
  597. package/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +5 -5
  598. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  599. package/app/.next-cli-build/server/app/landing/page.js +2 -2
  600. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  601. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  602. package/app/.next-cli-build/server/app/landing.html +1 -1
  603. package/app/.next-cli-build/server/app/landing.rsc +5 -5
  604. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +5 -5
  605. package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
  606. package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +5 -5
  607. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  608. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
  609. package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
  610. package/app/.next-cli-build/server/app/login/page.js +2 -2
  611. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  612. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  613. package/app/.next-cli-build/server/app/login.html +1 -1
  614. package/app/.next-cli-build/server/app/login.rsc +6 -7
  615. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +6 -7
  616. package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
  617. package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +5 -5
  618. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -3
  619. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -3
  620. package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
  621. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  622. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  623. package/app/.next-cli-build/server/app/page.js +2 -2
  624. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  625. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  626. package/app/.next-cli-build/server/app-paths-manifest.json +21 -9
  627. package/app/.next-cli-build/server/chunks/1051.js +1 -1
  628. package/app/.next-cli-build/server/chunks/155.js +11 -0
  629. package/app/.next-cli-build/server/chunks/2056.js +1 -0
  630. package/app/.next-cli-build/server/chunks/212.js +1 -1
  631. package/app/.next-cli-build/server/chunks/2231.js +1 -1
  632. package/app/.next-cli-build/server/chunks/2701.js +1 -1
  633. package/app/.next-cli-build/server/chunks/2722.js +1 -1
  634. package/app/.next-cli-build/server/chunks/28.js +1 -1
  635. package/app/.next-cli-build/server/chunks/318.js +3 -3
  636. package/app/.next-cli-build/server/chunks/3535.js +1 -1
  637. package/app/.next-cli-build/server/chunks/3593.js +2 -2
  638. package/app/.next-cli-build/server/chunks/4055.js +2 -2
  639. package/app/.next-cli-build/server/chunks/412.js +2 -2
  640. package/app/.next-cli-build/server/chunks/4177.js +1 -0
  641. package/app/.next-cli-build/server/chunks/4380.js +1 -0
  642. package/app/.next-cli-build/server/chunks/4739.js +2 -2
  643. package/app/.next-cli-build/server/chunks/4746.js +1 -1
  644. package/app/.next-cli-build/server/chunks/4780.js +2 -2
  645. package/app/.next-cli-build/server/chunks/4827.js +1 -1
  646. package/app/.next-cli-build/server/chunks/4884.js +2 -2
  647. package/app/.next-cli-build/server/chunks/507.js +2 -2
  648. package/app/.next-cli-build/server/chunks/5217.js +2 -2
  649. package/app/.next-cli-build/server/chunks/5258.js +2 -2
  650. package/app/.next-cli-build/server/chunks/5433.js +1 -0
  651. package/app/.next-cli-build/server/chunks/5612.js +1 -1
  652. package/app/.next-cli-build/server/chunks/5615.js +1 -1
  653. package/app/.next-cli-build/server/chunks/5699.js +1 -1
  654. package/app/.next-cli-build/server/chunks/6070.js +1 -1
  655. package/app/.next-cli-build/server/chunks/615.js +1 -1
  656. package/app/.next-cli-build/server/chunks/6182.js +1 -1
  657. package/app/.next-cli-build/server/chunks/6306.js +1 -1
  658. package/app/.next-cli-build/server/chunks/6763.js +1 -1
  659. package/app/.next-cli-build/server/chunks/6936.js +7 -1
  660. package/app/.next-cli-build/server/chunks/698.js +2 -2
  661. package/app/.next-cli-build/server/chunks/7108.js +64 -0
  662. package/app/.next-cli-build/server/chunks/7965.js +2 -2
  663. package/app/.next-cli-build/server/chunks/8238.js +1 -1
  664. package/app/.next-cli-build/server/chunks/8271.js +1 -1
  665. package/app/.next-cli-build/server/chunks/8520.js +2 -2
  666. package/app/.next-cli-build/server/chunks/8833.js +19 -15
  667. package/app/.next-cli-build/server/chunks/8895.js +14 -14
  668. package/app/.next-cli-build/server/chunks/8920.js +1 -1
  669. package/app/.next-cli-build/server/chunks/9489.js +3 -0
  670. package/app/.next-cli-build/server/chunks/9630.js +1 -1
  671. package/app/.next-cli-build/server/functions-config-manifest.json +6 -0
  672. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  673. package/app/.next-cli-build/server/middleware-react-loadable-manifest.js +1 -1
  674. package/app/.next-cli-build/server/middleware.js +5 -5
  675. package/app/.next-cli-build/server/pages/404.html +1 -1
  676. package/app/.next-cli-build/server/pages/500.html +1 -1
  677. package/app/.next-cli-build/static/-hFqHCVcIObuHXejH3KwI/_buildManifest.js +1 -0
  678. package/app/.next-cli-build/static/chunks/1321-b3edac382b1936fd.js +1 -0
  679. package/app/.next-cli-build/static/chunks/3521.8dce45f121472d5c.js +1 -0
  680. package/app/.next-cli-build/static/chunks/{7055-e60e20f43bfbe5f8.js → 5353-d31cc8d476bc534e.js} +1 -1
  681. package/app/.next-cli-build/static/chunks/5497-cdb1fade98fffc78.js +7 -0
  682. package/app/.next-cli-build/static/chunks/{6069-3d38ee5bebefdc91.js → 6069-d1368320cca656fb.js} +1 -1
  683. package/app/.next-cli-build/static/chunks/6357.a3077111f8160c08.js +1 -0
  684. package/app/.next-cli-build/static/chunks/918-0aacd40626f8e4d4.js +64 -0
  685. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-8ee5e31272f7892c.js → page-21c0ade53f5f4d61.js} +1 -1
  686. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-d51be3d3bd57417a.js → page-f4e60f97eb85e23a.js} +1 -1
  687. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-9ddb019b546bcbba.js → page-4628a6c5aef221c0.js} +1 -1
  688. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-eb595f3eac502b64.js +1 -0
  689. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/{page-35001475ad7e170c.js → page-2509a0787c2da4d8.js} +1 -1
  690. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-edae7c2bb81bb9ed.js +1 -0
  691. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-39f27df3486a01a2.js → page-72fef93e917346a1.js} +1 -1
  692. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/{page-2c067b98b7f56068.js → page-efea2cc0f6765959.js} +1 -1
  693. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-2f8b58c042f39540.js → page-bc5b2ec7d129a7ba.js} +1 -1
  694. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/{page-73fb8942bb7fa117.js → page-1371953933419a98.js} +1 -1
  695. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/{page-c9ccbe661325f70b.js → page-3da9be46b9b86651.js} +1 -1
  696. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-04208adab928df43.js +1 -0
  697. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/{page-b295d109cf51dacf.js → page-14ed582242156c00.js} +1 -1
  698. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-c4036664eb48f412.js +12 -0
  699. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/{page-e1d9bab947553056.js → page-a8cdd70f494ec78a.js} +1 -1
  700. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/{page-48377e2f21dbeb44.js → page-9b6201eae096c221.js} +1 -1
  701. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/{page-ab3911903c69147a.js → page-96de3ba27d43a550.js} +1 -1
  702. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/pxpipe/page-224a4fded27e3267.js +1 -0
  703. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-5dcceb20e5aa06cf.js +1 -0
  704. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/{page-0346bcad05ea40a4.js → page-d15cc86cf8f6061a.js} +1 -1
  705. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/page-bd933ec4d974a606.js +1 -0
  706. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-72ee583cf658dbeb.js +1 -0
  707. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/{page-181dcf89550efe27.js → page-00d4fa5a93de9944.js} +1 -1
  708. package/app/.next-cli-build/static/chunks/app/(dashboard)/{layout-db0c91ee7e56c647.js → layout-6a47b27423489d9e.js} +1 -1
  709. package/app/.next-cli-build/static/chunks/app/_global-error/page-766442d23beca874.js +1 -0
  710. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-766442d23beca874.js +1 -0
  711. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-766442d23beca874.js +1 -0
  712. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-766442d23beca874.js +1 -0
  713. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-766442d23beca874.js +1 -0
  714. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-766442d23beca874.js +1 -0
  715. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-766442d23beca874.js +1 -0
  716. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-766442d23beca874.js +1 -0
  717. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-766442d23beca874.js +1 -0
  718. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-766442d23beca874.js +1 -0
  719. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-766442d23beca874.js +1 -0
  720. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-766442d23beca874.js +1 -0
  721. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-766442d23beca874.js +1 -0
  722. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-766442d23beca874.js +1 -0
  723. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-766442d23beca874.js +1 -0
  724. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-766442d23beca874.js +1 -0
  725. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-766442d23beca874.js +1 -0
  726. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-766442d23beca874.js +1 -0
  727. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-766442d23beca874.js +1 -0
  728. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-766442d23beca874.js +1 -0
  729. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-766442d23beca874.js +1 -0
  730. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-766442d23beca874.js +1 -0
  731. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-766442d23beca874.js +1 -0
  732. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-766442d23beca874.js +1 -0
  733. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-766442d23beca874.js +1 -0
  734. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-766442d23beca874.js +1 -0
  735. package/app/.next-cli-build/static/chunks/app/api/combos/route-766442d23beca874.js +1 -0
  736. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-766442d23beca874.js +1 -0
  737. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-766442d23beca874.js +1 -0
  738. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-766442d23beca874.js +1 -0
  739. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-766442d23beca874.js +1 -0
  740. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-766442d23beca874.js +1 -0
  741. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-766442d23beca874.js +1 -0
  742. package/app/.next-cli-build/static/chunks/app/api/health/route-766442d23beca874.js +1 -0
  743. package/app/.next-cli-build/static/chunks/app/api/init/route-766442d23beca874.js +1 -0
  744. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-766442d23beca874.js +1 -0
  745. package/app/.next-cli-build/static/chunks/app/api/keys/route-766442d23beca874.js +1 -0
  746. package/app/.next-cli-build/static/chunks/app/api/locale/route-766442d23beca874.js +1 -0
  747. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-766442d23beca874.js +1 -0
  748. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-766442d23beca874.js +1 -0
  749. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-766442d23beca874.js +1 -0
  750. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-766442d23beca874.js +1 -0
  751. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-766442d23beca874.js +1 -0
  752. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-766442d23beca874.js +1 -0
  753. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-766442d23beca874.js +1 -0
  754. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-766442d23beca874.js +1 -0
  755. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-766442d23beca874.js +1 -0
  756. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-766442d23beca874.js +1 -0
  757. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-766442d23beca874.js +1 -0
  758. package/app/.next-cli-build/static/chunks/app/api/models/route-766442d23beca874.js +1 -0
  759. package/app/.next-cli-build/static/chunks/app/api/models/test/route-766442d23beca874.js +1 -0
  760. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-766442d23beca874.js +1 -0
  761. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-766442d23beca874.js +1 -0
  762. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-766442d23beca874.js +1 -0
  763. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-766442d23beca874.js +1 -0
  764. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-766442d23beca874.js +1 -0
  765. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-766442d23beca874.js +1 -0
  766. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-766442d23beca874.js +1 -0
  767. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-766442d23beca874.js +1 -0
  768. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-766442d23beca874.js +1 -0
  769. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-766442d23beca874.js +1 -0
  770. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-766442d23beca874.js +1 -0
  771. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-766442d23beca874.js +1 -0
  772. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-766442d23beca874.js +1 -0
  773. package/app/.next-cli-build/static/chunks/app/api/pricing/route-766442d23beca874.js +1 -0
  774. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-766442d23beca874.js +1 -0
  775. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-766442d23beca874.js +1 -0
  776. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-766442d23beca874.js +1 -0
  777. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-766442d23beca874.js +1 -0
  778. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-766442d23beca874.js +1 -0
  779. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-766442d23beca874.js +1 -0
  780. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-766442d23beca874.js +1 -0
  781. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-766442d23beca874.js +1 -0
  782. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-766442d23beca874.js +1 -0
  783. package/app/.next-cli-build/static/chunks/app/api/providers/route-766442d23beca874.js +1 -0
  784. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-766442d23beca874.js +1 -0
  785. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-766442d23beca874.js +1 -0
  786. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-766442d23beca874.js +1 -0
  787. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-766442d23beca874.js +1 -0
  788. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-766442d23beca874.js +1 -0
  789. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-766442d23beca874.js +1 -0
  790. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-766442d23beca874.js +1 -0
  791. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-766442d23beca874.js +1 -0
  792. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-766442d23beca874.js +1 -0
  793. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-766442d23beca874.js +1 -0
  794. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-766442d23beca874.js +1 -0
  795. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-766442d23beca874.js +1 -0
  796. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-766442d23beca874.js +1 -0
  797. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-766442d23beca874.js +1 -0
  798. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-766442d23beca874.js +1 -0
  799. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-766442d23beca874.js +1 -0
  800. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-766442d23beca874.js +1 -0
  801. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-766442d23beca874.js +1 -0
  802. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-766442d23beca874.js +1 -0
  803. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-766442d23beca874.js +1 -0
  804. package/app/.next-cli-build/static/chunks/app/api/settings/route-766442d23beca874.js +1 -0
  805. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-766442d23beca874.js +1 -0
  806. package/app/.next-cli-build/static/chunks/app/api/tags/route-766442d23beca874.js +1 -0
  807. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-766442d23beca874.js +1 -0
  808. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-766442d23beca874.js +1 -0
  809. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-766442d23beca874.js +1 -0
  810. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-766442d23beca874.js +1 -0
  811. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-766442d23beca874.js +1 -0
  812. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-766442d23beca874.js +1 -0
  813. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-766442d23beca874.js +1 -0
  814. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-766442d23beca874.js +1 -0
  815. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-766442d23beca874.js +1 -0
  816. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-766442d23beca874.js +1 -0
  817. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-766442d23beca874.js +1 -0
  818. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-766442d23beca874.js +1 -0
  819. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-766442d23beca874.js +1 -0
  820. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-766442d23beca874.js +1 -0
  821. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-766442d23beca874.js +1 -0
  822. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-766442d23beca874.js +1 -0
  823. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-766442d23beca874.js +1 -0
  824. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-766442d23beca874.js +1 -0
  825. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-766442d23beca874.js +1 -0
  826. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-766442d23beca874.js +1 -0
  827. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-766442d23beca874.js +1 -0
  828. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-766442d23beca874.js +1 -0
  829. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-766442d23beca874.js +1 -0
  830. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-766442d23beca874.js +1 -0
  831. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-766442d23beca874.js +1 -0
  832. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-766442d23beca874.js +1 -0
  833. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-766442d23beca874.js +1 -0
  834. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-766442d23beca874.js +1 -0
  835. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-766442d23beca874.js +1 -0
  836. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-766442d23beca874.js +1 -0
  837. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-766442d23beca874.js +1 -0
  838. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-766442d23beca874.js +1 -0
  839. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-766442d23beca874.js +1 -0
  840. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-766442d23beca874.js +1 -0
  841. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-766442d23beca874.js +1 -0
  842. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-766442d23beca874.js +1 -0
  843. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-766442d23beca874.js +1 -0
  844. package/app/.next-cli-build/static/chunks/app/api/v1/route-766442d23beca874.js +1 -0
  845. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-766442d23beca874.js +1 -0
  846. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-766442d23beca874.js +1 -0
  847. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-766442d23beca874.js +1 -0
  848. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-766442d23beca874.js +1 -0
  849. package/app/.next-cli-build/static/chunks/app/api/version/route-766442d23beca874.js +1 -0
  850. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-766442d23beca874.js +1 -0
  851. package/app/.next-cli-build/static/chunks/app/api/version/update/route-766442d23beca874.js +1 -0
  852. package/app/.next-cli-build/static/chunks/app/login/{page-d85ec2350d1528fe.js → page-2a345f69010053f3.js} +1 -1
  853. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-766442d23beca874.js +1 -0
  854. package/app/.next-cli-build/static/chunks/app/page-766442d23beca874.js +1 -0
  855. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-766442d23beca874.js +1 -0
  856. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-766442d23beca874.js +1 -0
  857. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-766442d23beca874.js +1 -0
  858. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-766442d23beca874.js +1 -0
  859. package/app/.next-cli-build/static/chunks/webpack-9f85387c1012d8a6.js +1 -0
  860. package/app/.next-cli-build/static/css/62914796a44dcc37.css +1 -0
  861. package/app/cli/.build-home/.9router/db/backups/schema-0-to-1-0.5.20-20260710-131610/data.sqlite +0 -0
  862. package/app/cli/.build-home/.9router/db/backups/{upgrade-0.5.12-to-0.5.15-0.5.15-20260629-161043 → upgrade-0.5.18-to-0.5.20-0.5.20-20260707-130114}/data.sqlite +0 -0
  863. package/app/cli/.build-home/.9router/db/data.sqlite +0 -0
  864. package/app/package.json +4 -4
  865. package/app/public/i18n/literals/fa.json +195 -0
  866. package/app/public/i18n/literals/zh-CN.json +941 -323
  867. package/app/public/providers/grok-cli.png +0 -0
  868. package/app/server.js +1 -1
  869. package/app/src/lib/db/migrate.js +33 -22
  870. package/cli.js +42 -20
  871. package/package.json +1 -1
  872. package/app/.next-cli-build/server/chunks/1241.js +0 -1
  873. package/app/.next-cli-build/server/chunks/1260.js +0 -1
  874. package/app/.next-cli-build/server/chunks/2280.js +0 -1
  875. package/app/.next-cli-build/server/chunks/3913.js +0 -64
  876. package/app/.next-cli-build/server/chunks/5961.js +0 -1
  877. package/app/.next-cli-build/server/chunks/6482.js +0 -11
  878. package/app/.next-cli-build/static/HY5oJLpzIFrg6r5EeB2xx/_buildManifest.js +0 -1
  879. package/app/.next-cli-build/static/chunks/1051-eb9b83e9f5c9533e.js +0 -64
  880. package/app/.next-cli-build/static/chunks/1321-ba0695aeb6346c8d.js +0 -1
  881. package/app/.next-cli-build/static/chunks/5497-09b5b34c1bf27a6d.js +0 -7
  882. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-f172b328f6511b37.js +0 -1
  883. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-b2d5d55248dcd3d3.js +0 -1
  884. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-bad276eb75372477.js +0 -1
  885. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-1d548eea0e82af6b.js +0 -10
  886. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-c2d3bd88b46b55e4.js +0 -1
  887. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/page-d37d65694bbb71a0.js +0 -1
  888. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-38349afd23d063e2.js +0 -1
  889. package/app/.next-cli-build/static/chunks/app/_global-error/page-82541f42a58850f8.js +0 -1
  890. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-82541f42a58850f8.js +0 -1
  891. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-82541f42a58850f8.js +0 -1
  892. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-82541f42a58850f8.js +0 -1
  893. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-82541f42a58850f8.js +0 -1
  894. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-82541f42a58850f8.js +0 -1
  895. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-82541f42a58850f8.js +0 -1
  896. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-82541f42a58850f8.js +0 -1
  897. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-82541f42a58850f8.js +0 -1
  898. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-82541f42a58850f8.js +0 -1
  899. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-82541f42a58850f8.js +0 -1
  900. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-82541f42a58850f8.js +0 -1
  901. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-82541f42a58850f8.js +0 -1
  902. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-82541f42a58850f8.js +0 -1
  903. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-82541f42a58850f8.js +0 -1
  904. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-82541f42a58850f8.js +0 -1
  905. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-82541f42a58850f8.js +0 -1
  906. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-82541f42a58850f8.js +0 -1
  907. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-82541f42a58850f8.js +0 -1
  908. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-82541f42a58850f8.js +0 -1
  909. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-82541f42a58850f8.js +0 -1
  910. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-82541f42a58850f8.js +0 -1
  911. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-82541f42a58850f8.js +0 -1
  912. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-82541f42a58850f8.js +0 -1
  913. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-82541f42a58850f8.js +0 -1
  914. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-82541f42a58850f8.js +0 -1
  915. package/app/.next-cli-build/static/chunks/app/api/combos/route-82541f42a58850f8.js +0 -1
  916. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-82541f42a58850f8.js +0 -1
  917. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-82541f42a58850f8.js +0 -1
  918. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-82541f42a58850f8.js +0 -1
  919. package/app/.next-cli-build/static/chunks/app/api/health/route-82541f42a58850f8.js +0 -1
  920. package/app/.next-cli-build/static/chunks/app/api/init/route-82541f42a58850f8.js +0 -1
  921. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-82541f42a58850f8.js +0 -1
  922. package/app/.next-cli-build/static/chunks/app/api/keys/route-82541f42a58850f8.js +0 -1
  923. package/app/.next-cli-build/static/chunks/app/api/locale/route-82541f42a58850f8.js +0 -1
  924. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-82541f42a58850f8.js +0 -1
  925. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-82541f42a58850f8.js +0 -1
  926. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-82541f42a58850f8.js +0 -1
  927. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-82541f42a58850f8.js +0 -1
  928. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-82541f42a58850f8.js +0 -1
  929. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-82541f42a58850f8.js +0 -1
  930. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-82541f42a58850f8.js +0 -1
  931. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-82541f42a58850f8.js +0 -1
  932. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-82541f42a58850f8.js +0 -1
  933. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-82541f42a58850f8.js +0 -1
  934. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-82541f42a58850f8.js +0 -1
  935. package/app/.next-cli-build/static/chunks/app/api/models/route-82541f42a58850f8.js +0 -1
  936. package/app/.next-cli-build/static/chunks/app/api/models/test/route-82541f42a58850f8.js +0 -1
  937. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-82541f42a58850f8.js +0 -1
  938. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-82541f42a58850f8.js +0 -1
  939. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-82541f42a58850f8.js +0 -1
  940. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-82541f42a58850f8.js +0 -1
  941. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-82541f42a58850f8.js +0 -1
  942. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-82541f42a58850f8.js +0 -1
  943. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-82541f42a58850f8.js +0 -1
  944. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-82541f42a58850f8.js +0 -1
  945. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-82541f42a58850f8.js +0 -1
  946. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-82541f42a58850f8.js +0 -1
  947. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-82541f42a58850f8.js +0 -1
  948. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-82541f42a58850f8.js +0 -1
  949. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-82541f42a58850f8.js +0 -1
  950. package/app/.next-cli-build/static/chunks/app/api/pricing/route-82541f42a58850f8.js +0 -1
  951. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-82541f42a58850f8.js +0 -1
  952. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-82541f42a58850f8.js +0 -1
  953. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-82541f42a58850f8.js +0 -1
  954. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-82541f42a58850f8.js +0 -1
  955. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-82541f42a58850f8.js +0 -1
  956. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-82541f42a58850f8.js +0 -1
  957. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-82541f42a58850f8.js +0 -1
  958. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-82541f42a58850f8.js +0 -1
  959. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-82541f42a58850f8.js +0 -1
  960. package/app/.next-cli-build/static/chunks/app/api/providers/route-82541f42a58850f8.js +0 -1
  961. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-82541f42a58850f8.js +0 -1
  962. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-82541f42a58850f8.js +0 -1
  963. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-82541f42a58850f8.js +0 -1
  964. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-82541f42a58850f8.js +0 -1
  965. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-82541f42a58850f8.js +0 -1
  966. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-82541f42a58850f8.js +0 -1
  967. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-82541f42a58850f8.js +0 -1
  968. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-82541f42a58850f8.js +0 -1
  969. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-82541f42a58850f8.js +0 -1
  970. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-82541f42a58850f8.js +0 -1
  971. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-82541f42a58850f8.js +0 -1
  972. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-82541f42a58850f8.js +0 -1
  973. package/app/.next-cli-build/static/chunks/app/api/settings/route-82541f42a58850f8.js +0 -1
  974. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-82541f42a58850f8.js +0 -1
  975. package/app/.next-cli-build/static/chunks/app/api/tags/route-82541f42a58850f8.js +0 -1
  976. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-82541f42a58850f8.js +0 -1
  977. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-82541f42a58850f8.js +0 -1
  978. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-82541f42a58850f8.js +0 -1
  979. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-82541f42a58850f8.js +0 -1
  980. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-82541f42a58850f8.js +0 -1
  981. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-82541f42a58850f8.js +0 -1
  982. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-82541f42a58850f8.js +0 -1
  983. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-82541f42a58850f8.js +0 -1
  984. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-82541f42a58850f8.js +0 -1
  985. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-82541f42a58850f8.js +0 -1
  986. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-82541f42a58850f8.js +0 -1
  987. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-82541f42a58850f8.js +0 -1
  988. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-82541f42a58850f8.js +0 -1
  989. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-82541f42a58850f8.js +0 -1
  990. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-82541f42a58850f8.js +0 -1
  991. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-82541f42a58850f8.js +0 -1
  992. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-82541f42a58850f8.js +0 -1
  993. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-82541f42a58850f8.js +0 -1
  994. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-82541f42a58850f8.js +0 -1
  995. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-82541f42a58850f8.js +0 -1
  996. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-82541f42a58850f8.js +0 -1
  997. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-82541f42a58850f8.js +0 -1
  998. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-82541f42a58850f8.js +0 -1
  999. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-82541f42a58850f8.js +0 -1
  1000. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-82541f42a58850f8.js +0 -1
  1001. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-82541f42a58850f8.js +0 -1
  1002. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-82541f42a58850f8.js +0 -1
  1003. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-82541f42a58850f8.js +0 -1
  1004. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-82541f42a58850f8.js +0 -1
  1005. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-82541f42a58850f8.js +0 -1
  1006. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-82541f42a58850f8.js +0 -1
  1007. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-82541f42a58850f8.js +0 -1
  1008. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-82541f42a58850f8.js +0 -1
  1009. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-82541f42a58850f8.js +0 -1
  1010. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-82541f42a58850f8.js +0 -1
  1011. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-82541f42a58850f8.js +0 -1
  1012. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-82541f42a58850f8.js +0 -1
  1013. package/app/.next-cli-build/static/chunks/app/api/v1/route-82541f42a58850f8.js +0 -1
  1014. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-82541f42a58850f8.js +0 -1
  1015. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-82541f42a58850f8.js +0 -1
  1016. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-82541f42a58850f8.js +0 -1
  1017. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-82541f42a58850f8.js +0 -1
  1018. package/app/.next-cli-build/static/chunks/app/api/version/route-82541f42a58850f8.js +0 -1
  1019. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-82541f42a58850f8.js +0 -1
  1020. package/app/.next-cli-build/static/chunks/app/api/version/update/route-82541f42a58850f8.js +0 -1
  1021. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-82541f42a58850f8.js +0 -1
  1022. package/app/.next-cli-build/static/chunks/app/page-82541f42a58850f8.js +0 -1
  1023. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-82541f42a58850f8.js +0 -1
  1024. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-82541f42a58850f8.js +0 -1
  1025. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-82541f42a58850f8.js +0 -1
  1026. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-82541f42a58850f8.js +0 -1
  1027. package/app/.next-cli-build/static/chunks/webpack-f482ccef6733ebcc.js +0 -1
  1028. package/app/.next-cli-build/static/css/b4c8bea393be3991.css +0 -1
  1029. package/app/cli/.build-home/.9router/db/backups/upgrade-0.5.11-to-0.5.12-0.5.12-20260626-180200/data.sqlite +0 -0
  1030. package/app/cli/.build-home/.9router/db/backups/upgrade-0.5.7-to-0.5.8-0.5.8-20260621-180504/data.sqlite +0 -0
  1031. package/app/cli/.build-home/.9router/db/backups/upgrade-0.5.8-to-0.5.11-0.5.11-20260626-121703/data.sqlite +0 -0
  1032. /package/app/.next-cli-build/static/{HY5oJLpzIFrg6r5EeB2xx → -hFqHCVcIObuHXejH3KwI}/_ssgManifest.js +0 -0
  1033. /package/app/.next-cli-build/static/chunks/{1a258343-5938f676ed376386.js → 1a258343.5938f676ed376386.js} +0 -0
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3649],{47295:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>x});var l=s(95155),a=s(12115),r=s(44923),o=s(87256),i=s(39768),n=s(5020),d=s(35497),c=s(11059);s(88105);let m=/^[a-zA-Z0-9_.\-]+$/;function x(){let[e,t]=(0,a.useState)([]),[s,r]=(0,a.useState)(!0),[o,i]=(0,a.useState)(!1),[n,m]=(0,a.useState)(null),[x,u]=(0,a.useState)([]),[p,f]=(0,a.useState)({}),[g,j]=(0,a.useState)({}),[y,v]=(0,a.useState)(null),{copied:N,copy:w}=(0,c.C)();(0,a.useEffect)(()=>{k()},[]);let k=async()=>{try{let[e,s,l,a]=await Promise.all([fetch("/api/combos"),fetch("/api/providers"),fetch("/api/settings"),fetch("/api/models")]),r=await e.json(),o=await s.json(),i=l.ok?await l.json():{};if(e.ok&&t((r.combos||[]).filter(e=>!e.kind||"llm"===e.kind)),s.ok&&u(o.connections||[]),a.ok){let e=await a.json(),t={};for(let s of e.models||[])s.caps&&(t[s.fullModel]=s.caps);j(t)}f(i.comboStrategies||{})}catch(e){console.log("Error fetching data:",e)}finally{r(!1)}},C=async e=>{try{let t=await fetch("/api/combos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(t.ok)await k(),i(!1);else{let e=await t.json();alert(e.error||"Failed to create combo")}}catch(e){console.log("Error creating combo:",e)}},S=async(e,t)=>{try{let s=await fetch(`/api/combos/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(s.ok)await k(),m(null);else{let e=await s.json();alert(e.error||"Failed to update combo")}}catch(e){console.log("Error updating combo:",e)}},E=async s=>{v({title:"Delete Combo",message:"Delete this combo?",onConfirm:async()=>{v(null);try{(await fetch(`/api/combos/${s}`,{method:"DELETE"})).ok&&t(e.filter(e=>e.id!==s))}catch(e){console.log("Error deleting combo:",e)}}})},M=async(e,t)=>{try{let s={...p},l={...s[e]||{},...t};l.fallbackStrategy&&"fallback"!==l.fallbackStrategy?s[e]=l:delete s[e],await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({comboStrategies:s})}),f(s)}catch(e){console.log("Error updating combo strategy:",e)}};return s?(0,l.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,l.jsx)(d.Qv,{}),(0,l.jsx)(d.Qv,{})]}):(0,l.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:px-0",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("p",{className:"text-sm text-text-muted mt-1",children:"Group models under one name, then pick a strategy per combo:"}),(0,l.jsxs)("ul",{className:"text-sm text-text-muted mt-2 flex flex-col gap-1",children:[(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:"font-medium text-text-main",children:"Fallback"})," — tries models in order (next on failure)"]}),(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:"font-medium text-text-main",children:"Round Robin"})," — rotates models across requests to spread load"]}),(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:"font-medium text-text-main",children:"Fusion"})," — queries all models in parallel, then a judge synthesizes one answer. Best quality, but costs the most: every request bills all panel models + the judge (N+1 calls)"]}),(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:"font-medium text-text-main",children:"Capacity auto-switch"})," — sends image/PDF/audio requests to a model that supports them first"]})]})]}),(0,l.jsx)(d.$n,{icon:"add",onClick:()=>i(!0),className:"w-full sm:w-auto whitespace-nowrap",children:"Create Combo"})]}),0===e.length?(0,l.jsx)(d.Zp,{children:(0,l.jsxs)("div",{className:"text-center py-12",children:[(0,l.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-primary/10 text-primary mb-4",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[32px]",children:"layers"})}),(0,l.jsx)("p",{className:"text-text-main font-medium mb-1",children:"No combos yet"}),(0,l.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Create model combos with fallback support"}),(0,l.jsx)(d.$n,{icon:"add",onClick:()=>i(!0),className:"w-full sm:w-auto",children:"Create Combo"})]})}):(0,l.jsx)("div",{className:"flex flex-col gap-4",children:e.map(e=>(0,l.jsx)(h,{combo:e,modelCaps:g,activeProviders:x,copied:N,onCopy:w,onEdit:()=>m(e),onDelete:()=>E(e.id),strategy:p[e.name]||{},onSetStrategy:t=>M(e.name,t)},e.id))}),(0,l.jsx)(b,{isOpen:o,onClose:()=>i(!1),onSave:C,activeProviders:x},"create"),(0,l.jsx)(b,{isOpen:!!n,combo:n,onClose:()=>m(null),onSave:e=>S(n.id,e),activeProviders:x},n?.id||"new"),(0,l.jsx)(d.uo,{isOpen:!!y,onClose:()=>v(null),onConfirm:y?.onConfirm,title:y?.title||"Confirm",message:y?.message,variant:"danger"})]})}let u=[{value:"fallback",label:"Fallback — try in order"},{value:"round-robin",label:"Round Robin — rotate"},{value:"fusion",label:"Fusion — panel + judge"}];function h({combo:e,modelCaps:t={},activeProviders:s=[],copied:r,onCopy:o,onEdit:i,onDelete:n,strategy:c={},onSetStrategy:m}){let[x,p]=(0,a.useState)(!1),b=c.fallbackStrategy||"fallback",f=c.judgeModel||"";return(0,l.jsxs)(d.Zp,{padding:"sm",className:"group",children:[(0,l.jsxs)("div",{className:"flex min-w-0 flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,l.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-3 sm:items-center",children:[(0,l.jsx)("div",{className:"size-8 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-primary text-[18px]",children:"layers"})}),(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsx)("code",{className:"block truncate font-mono text-sm font-medium",children:e.name}),(0,l.jsxs)("div",{className:"mt-1 flex min-w-0 flex-wrap items-center gap-1",children:[0===e.models.length?(0,l.jsx)("span",{className:"text-xs text-text-muted italic",children:"No models"}):e.models.slice(0,3).map((e,s)=>(0,l.jsxs)("code",{className:"inline-flex items-center gap-1 rounded bg-black/5 px-1.5 py-0.5 font-mono text-xs text-text-muted dark:bg-white/5",children:[(0,l.jsx)("span",{children:e}),(0,l.jsx)(d.nh,{caps:t[e]})]},s)),e.models.length>3&&(0,l.jsxs)("span",{className:"text-[10px] text-text-muted",children:["+",e.models.length-3," more"]})]}),"fusion"===b&&(0,l.jsxs)("div",{className:"mt-2 flex min-w-0 flex-wrap items-center gap-1.5",children:[(0,l.jsx)("span",{className:"text-[11px] font-medium text-text-muted",children:"Judge"}),(0,l.jsxs)("button",{onClick:()=>p(!0),className:"inline-flex max-w-full items-center gap-1 rounded border border-dashed border-primary/40 px-1.5 py-0.5 font-mono text-[11px] text-primary hover:border-primary hover:bg-primary/5 transition-colors",title:"Pick the model that fuses panel answers",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"gavel"}),(0,l.jsx)("span",{className:"truncate",children:f||`Auto — ${e.models[0]||"first model"}`})]}),f&&(0,l.jsx)("button",{onClick:()=>m({judgeModel:""}),className:"p-0.5 rounded text-text-muted hover:text-red-500 hover:bg-red-500/10 transition-colors",title:"Reset judge to Auto",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"close"})})]})]})]}),(0,l.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center sm:gap-3 sm:shrink-0",children:[(0,l.jsx)("div",{className:"w-full sm:w-[200px]",children:(0,l.jsx)(d.l6,{options:u,value:b,onChange:e=>m({fallbackStrategy:e.target.value}),selectClassName:"py-1.5 text-xs"})}),(0,l.jsxs)("div",{className:"grid grid-cols-3 gap-1 sm:flex",children:[(0,l.jsxs)("button",{onClick:t=>{t.stopPropagation(),o(e.name,`combo-${e.id}`)},className:"flex flex-col items-center rounded px-2 py-1 text-text-muted transition-colors hover:bg-black/5 hover:text-primary dark:hover:bg-white/5",title:"Copy combo name",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:r===`combo-${e.id}`?"check":"content_copy"}),(0,l.jsx)("span",{className:"text-[10px] leading-tight",children:"Copy"})]}),(0,l.jsxs)("button",{onClick:i,className:"flex flex-col items-center rounded px-2 py-1 text-text-muted transition-colors hover:bg-black/5 hover:text-primary dark:hover:bg-white/5",title:"Edit",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,l.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,l.jsxs)("button",{onClick:n,className:"flex flex-col items-center rounded px-2 py-1 text-red-500 transition-colors hover:bg-red-500/10",title:"Delete",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,l.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]})]})]}),(0,l.jsx)(d.rq,{isOpen:x,onClose:()=>p(!1),onSelect:e=>{m({judgeModel:e?.value||""}),p(!1)},activeProviders:s,title:"Select Judge Model",addedModelValues:f?[f]:[],closeOnSelect:!0})]})}function p({id:e,index:t,model:s,isFirst:r,isLast:n,onEdit:d,onMoveUp:c,onMoveDown:m,onRemove:x}){let{attributes:u,listeners:h,setNodeRef:b,transform:f,isDragging:g}=(0,o.gl)({id:e}),j={transform:i.Ks.Transform.toString(f),opacity:g?.4:1,zIndex:g?999:void 0},[y,v]=(0,a.useState)(!1),[N,w]=(0,a.useState)(s),k=()=>{let e=N.trim();e&&e!==s?d(e):w(s),v(!1)};return(0,l.jsxs)("div",{ref:b,style:j,className:`group flex min-w-0 items-center gap-1.5 rounded-md px-2 py-1 bg-black/[0.02] hover:bg-black/[0.04] dark:bg-white/[0.02] dark:hover:bg-white/[0.04] transition-colors ${g?"shadow-md ring-1 ring-primary/30":""}`,children:[(0,l.jsx)("button",{...u,...h,type:"button",className:"cursor-grab touch-none p-0.5 rounded text-text-muted hover:text-primary active:cursor-grabbing shrink-0",title:"Drag to reorder",children:(0,l.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,l.jsx)("circle",{cx:"9",cy:"4",r:"2"}),(0,l.jsx)("circle",{cx:"15",cy:"4",r:"2"}),(0,l.jsx)("circle",{cx:"9",cy:"12",r:"2"}),(0,l.jsx)("circle",{cx:"15",cy:"12",r:"2"}),(0,l.jsx)("circle",{cx:"9",cy:"20",r:"2"}),(0,l.jsx)("circle",{cx:"15",cy:"20",r:"2"})]})}),(0,l.jsx)("span",{className:"text-[10px] font-medium text-text-muted w-3 text-center shrink-0",children:t+1}),y?(0,l.jsx)("input",{autoFocus:!0,value:N,onChange:e=>w(e.target.value),onBlur:k,onKeyDown:e=>{"Enter"===e.key&&k(),"Escape"===e.key&&(w(s),v(!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,l.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:()=>v(!0),title:"Click to edit",children:s}),(0,l.jsxs)("div",{className:"flex shrink-0 items-center gap-0.5",children:[(0,l.jsx)("button",{onClick:c,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,l.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"arrow_upward"})}),(0,l.jsx)("button",{onClick:m,disabled:n,className:`p-0.5 rounded ${n?"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,l.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"arrow_downward"})})]}),(0,l.jsx)("button",{onClick:x,className:"p-0.5 hover:bg-red-500/10 rounded text-text-muted hover:text-red-500 transition-all",title:"Remove",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"close"})})]})}function b({isOpen:e,combo:t,onClose:s,onSave:i,activeProviders:c,kindFilter:x=null}){let[u,h]=(0,a.useState)(t?.name||""),[f,g]=(0,a.useState)(t?.models||[]),[j,y]=(0,a.useState)(!1),[v,N]=(0,a.useState)(!1),[w,k]=(0,a.useState)(""),[C,S]=(0,a.useState)({}),E=(0,r.FR)((0,r.MS)(r.AN,{activationConstraint:{distance:5}}),(0,r.MS)(r.uN,{coordinateGetter:o.JR})),M=f.map((e,t)=>({uid:`item-${t}`,model:e})),O=async()=>{try{let e=await fetch("/api/models/alias");if(!e.ok)return;let t=await e.json();S(t.aliases||{})}catch(e){console.error("Error fetching modal data:",e)}};(0,a.useEffect)(()=>{e&&O()},[e]);let F=e=>e.trim()?m.test(e)?(k(""),!0):(k("Only letters, numbers, -, _ and . allowed"),!1):(k("Name is required"),!1),$=async()=>{F(u)&&(N(!0),await i({name:u.trim(),models:f}),N(!1))},D=!!t;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.aF,{isOpen:e,onClose:s,title:D?"Edit Combo":"Create Combo",children:(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(d.pd,{label:"Combo Name",value:u,onChange:e=>{let t=e.target.value;h(t),t?F(t):k("")},placeholder:"my-combo",error:w}),(0,l.jsx)("p",{className:"text-[10px] text-text-muted mt-0.5",children:"Only letters, numbers, -, _ and . allowed"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Models"}),0===f.length?(0,l.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,l.jsx)("span",{className:"material-symbols-outlined text-text-muted text-xl mb-1",children:"layers"}),(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"No models added yet"})]}):(0,l.jsx)(r.Mp,{sensors:E,collisionDetection:r.fp,onDragEnd:e=>{let{active:t,over:s}=e;if(s&&t.id!==s.id){let e=M.findIndex(e=>e.uid===t.id),l=M.findIndex(e=>e.uid===s.id);-1!==e&&-1!==l&&g(t=>(0,o.be)(t,e,l))}},modifiers:[n.FN,n.gj],children:(0,l.jsx)(o.gB,{items:M.map(e=>e.uid),strategy:o._G,children:(0,l.jsx)("div",{className:"flex max-h-[55vh] min-w-0 flex-col gap-1 overflow-y-auto sm:max-h-[350px]",children:M.map(({uid:e,model:t},s)=>(0,l.jsx)(p,{id:e,index:s,model:t,isFirst:0===s,isLast:s===M.length-1,onEdit:e=>{let t=[...f];t[s]=e,g(t)},onMoveUp:()=>(e=>{if(0===e)return;let t=[...f];[t[e-1],t[e]]=[t[e],t[e-1]],g(t)})(s),onMoveDown:()=>(e=>{if(e===f.length-1)return;let t=[...f];[t[e],t[e+1]]=[t[e+1],t[e]],g(t)})(s),onRemove:()=>{g(f.filter((e,t)=>t!==s))}},e))})})}),(0,l.jsxs)("button",{onClick:()=>y(!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,l.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"add"}),"Add Model"]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2 pt-1 sm:flex-row",children:[(0,l.jsx)(d.$n,{onClick:s,variant:"ghost",fullWidth:!0,size:"sm",children:"Cancel"}),(0,l.jsx)(d.$n,{onClick:$,fullWidth:!0,size:"sm",disabled:!u.trim()||!!w||v,children:v?"Saving...":D?"Save":"Create"})]})]})}),(0,l.jsx)(d.rq,{isOpen:j,onClose:()=>y(!1),onSelect:e=>{f.includes(e.value)||g([...f,e.value])},onDeselect:e=>{g(f.filter(t=>t!==e.value))},activeProviders:c,modelAliases:C,title:"Add Model to Combo",kindFilter:x,addedModelValues:f,closeOnSelect:!1})]})}},73822:(e,t,s)=>{Promise.resolve().then(s.bind(s,47295))}},e=>{e.O(0,[2574,3862,1051,7055,1321,705,5497,8441,3794,7358],()=>e(e.s=73822)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6099],{},_=>{_.O(0,[2574,3862,1051,1321,705,5497,1393,8441,3794,7358],()=>_(_.s=51393)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6337],{},_=>{_.O(0,[2574,3862,1051,1321,705,5497,1393,8441,3794,7358],()=>_(_.s=51393)),_N_E=_.O()}]);
@@ -1,10 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2134],{52397:(e,t,s)=>{Promise.resolve().then(s.bind(s,78907))},70217:(e,t,s)=>{"use strict";function a(e,t){return!1===e?"default":"active"===t||"success"===t?"success":"error"===t||"expired"===t||"unavailable"===t?"error":"default"}s.d(t,{g:()=>a})},78907:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>I});var a=s(95155),i=s(12115),l=s(73321),r=s(98500),o=s.n(r),n=s(5772),d=s(35497),c=s(88105),m=s(28777),p=s(11059),x=s(53593),u=s(73006);let h=new Map;async function f(e){if(!e?.url||!e?.type)return[];let t=h.get(e.url);if(t&&Date.now()<t.expiresAt)return t.data;try{let t=new URLSearchParams({url:e.url,type:e.type}),s=await fetch(`/api/providers/suggested-models?${t}`);if(!s.ok)return[];let a=(await s.json()).data??[];return h.set(e.url,{data:a,expiresAt:Date.now()+6e5}),a}catch{return[]}}function g({customModels:e=[],modelAliases:t={},providerAlias:s,builtInModels:a=[],type:i="llm",includeLegacyAliases:l=!0}){let r=new Set(a.map(e=>e.id)),o=new Set,n=[];for(let t of e){if(!t?.id||t.providerAlias!==s)continue;let e=t?.kind||t?.type||"llm";if(i&&e!==i||r.has(t.id))continue;let a=`${s}/${t.id}`;o.has(a)||(o.add(a),n.push({id:t.id,name:t.name||t.id,fullModel:a,source:"custom",type:e}))}if(!l)return n;let d=`${s}/`;for(let[e,s]of Object.entries(t||{})){if("string"!=typeof s||!s.startsWith(d))continue;let t=s.slice(d.length);!t||r.has(t)||o.has(s)||(o.add(s),n.push({id:t,alias:e,fullModel:s,source:"legacyAlias",type:i||"llm"}))}return n}var y=s(14051),b=s.n(y);function v({model:e,fullModel:t,alias:s,copied:i,onCopy:l,testStatus:r,isCustom:o,isFree:n,onDeleteAlias:c,onTest:m,isTesting:p,onDisable:x,caps:u}){let h="ok"===r?"#22c55e":"error"===r?"#ef4444":void 0;return(0,a.jsx)("div",{className:`group min-w-0 max-w-full rounded-lg border px-3 py-2 ${"ok"===r?"border-green-500/40":"error"===r?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:(0,a.jsxs)("div",{className:"flex min-w-0 items-start gap-2 sm:items-center",children:[(0,a.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base",style:h?{color:h}:void 0,children:"ok"===r?"check_circle":"error"===r?"cancel":"smart_toy"}),(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,a.jsx)("code",{className:"max-w-[72vw] truncate rounded bg-sidebar px-1.5 py-0.5 font-mono text-xs text-text-muted sm:max-w-[360px]",children:t}),(0,a.jsxs)("span",{className:"flex min-w-0 items-center text-[9px] gap-1 pl-1",children:[e.name&&(0,a.jsx)("span",{className:"truncate text-[9px] italic text-text-muted/70",children:e.name}),(0,a.jsx)(d.nh,{caps:u,colorOverride:"text-text-muted/70",size:12})]})]}),m&&(0,a.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,a.jsx)("button",{onClick:m,disabled:p,className:`rounded p-0.5 text-text-muted transition-opacity hover:bg-sidebar hover:text-primary ${p?"opacity-100":"opacity-100 sm:opacity-0 sm:group-hover:opacity-100"}`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",style:p?{animation:"spin 1s linear infinite"}:void 0,children:p?"progress_activity":"science"})}),(0,a.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:p?"Testing...":"Test"})]}),(0,a.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,a.jsx)("button",{onClick:()=>l(t,`model-${e.id}`),className:"rounded p-0.5 text-text-muted hover:bg-sidebar hover:text-primary",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:i===`model-${e.id}`?"check":"content_copy"})}),(0,a.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:i===`model-${e.id}`?"Copied!":"Copy"})]}),o?(0,a.jsx)("button",{onClick:c,className:"ml-auto rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Remove custom model",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):x?(0,a.jsx)("button",{onClick:x,className:"ml-auto rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Disable this model",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):null]})})}function j({modelId:e,fullModel:t,copied:s,onCopy:i,onDeleteAlias:l,onTest:r,testStatus:o,isTesting:n}){let d="ok"===o?"#22c55e":"error"===o?"#ef4444":void 0;return(0,a.jsxs)("div",{className:`flex items-center gap-3 p-3 rounded-lg border ${"ok"===o?"border-green-500/40":"error"===o?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",style:d?{color:d}:void 0,children:"ok"===o?"check_circle":"error"===o?"cancel":"smart_toy"}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-medium truncate",children:e}),(0,a.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[(0,a.jsx)("code",{className:"text-xs text-text-muted font-mono bg-sidebar px-1.5 py-0.5 rounded",children:t}),(0,a.jsxs)("div",{className:"relative group/btn",children:[(0,a.jsx)("button",{onClick:()=>i(t,`model-${e}`),className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:s===`model-${e}`?"check":"content_copy"})}),(0,a.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:s===`model-${e}`?"Copied!":"Copy"})]}),r&&(0,a.jsxs)("div",{className:"relative group/btn",children:[(0,a.jsx)("button",{onClick:r,disabled:n,className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary transition-colors",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",style:n?{animation:"spin 1s linear infinite"}:void 0,children:n?"progress_activity":"science"})}),(0,a.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:n?"Testing...":"Test"})]})]})]}),(0,a.jsx)("button",{onClick:l,className:"p-1 hover:bg-red-50 rounded text-red-500",title:"Remove model",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"delete"})})]})}function w({providerStorageAlias:e,providerDisplayAlias:t,modelAliases:s,customModels:l,copied:r,onCopy:o,onDeleteAlias:n,onAddCustomModel:c,onDeleteCustomModel:m,connections:p,isAnthropic:x}){let[u,h]=(0,i.useState)(""),[f,y]=(0,i.useState)(!1),[b,v]=(0,i.useState)(!1),[N,k]=(0,i.useState)(null),[C,S]=(0,i.useState)({}),A=async t=>{if(!N){k(t);try{let s=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${e}/${t}`})}),a=await s.json();S(e=>({...e,[t]:a.ok?"ok":"error"}))}catch{S(e=>({...e,[t]:"error"}))}finally{k(null)}}},$=g({customModels:l,modelAliases:s,providerAlias:e,type:"llm"}),T=async()=>{if(!u.trim()||f)return;let e=u.trim();if($.some(t=>t.id===e))return void alert("Model already exists for this provider.");y(!0);try{await c(e),h("")}catch(e){console.log("Error adding model:",e)}finally{y(!1)}},O=async()=>{if(b)return;let e=p.find(e=>!1!==e.isActive);if(e){v(!0);try{let t=await fetch(`/api/providers/${e.id}/models`),s=await t.json();if(!t.ok)return void alert(s.error||"Failed to import models");let a=s.models||[];if(0===a.length)return void alert("No models returned from /models.");let i=0;for(let e of a){let t=e.id||e.name||e.model;t&&($.some(e=>e.id===t)||(await c(t),i+=1))}0===i&&alert("No new models were added.")}catch(e){console.log("Error importing models:",e)}finally{v(!1)}}},P=p.some(e=>!1!==e.isActive);return(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("p",{className:"text-sm text-text-muted",children:["Add ",x?"Anthropic":"OpenAI","-compatible models manually or import them from the /models endpoint."]}),(0,a.jsxs)("div",{className:"flex items-end gap-2 flex-wrap",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-[240px]",children:[(0,a.jsx)("label",{htmlFor:"new-compatible-model-input",className:"text-xs text-text-muted mb-1 block",children:"Model ID"}),(0,a.jsx)("input",{id:"new-compatible-model-input",type:"text",value:u,onChange:e=>h(e.target.value),onKeyDown:e=>"Enter"===e.key&&T(),placeholder:x?"claude-3-opus-20240229":"gpt-4o",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})]}),(0,a.jsx)(d.$n,{size:"sm",icon:"add",onClick:T,disabled:!u.trim()||f,children:f?"Adding...":"Add"}),(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"download",onClick:O,disabled:!P||b,children:b?"Importing...":"Import from /models"})]}),!P&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Add a connection to enable importing models."}),$.length>0&&(0,a.jsx)("div",{className:"flex flex-col gap-3",children:$.map(({id:s,alias:i,source:l})=>(0,a.jsx)(j,{modelId:s,fullModel:`${t}/${s}`,copied:r,onCopy:o,onDeleteAlias:()=>"custom"===l?m(s):n(i),onTest:p.length>0?()=>A(s):void 0,testStatus:C[s],isTesting:N===s},`${l}-${e}/${s}`))})]})}v.propTypes={model:b().shape({id:b().string.isRequired}).isRequired,fullModel:b().string.isRequired,alias:b().string,copied:b().string,onCopy:b().func.isRequired,testStatus:b().oneOf(["ok","error"]),isCustom:b().bool,isFree:b().bool,onDeleteAlias:b().func,onTest:b().func,isTesting:b().bool,onDisable:b().func,caps:b().object},b().string.isRequired,b().string.isRequired,b().string,b().func.isRequired,b().func.isRequired,b().func,b().oneOf(["ok","error"]),b().bool,b().string.isRequired,b().object.isRequired,b().arrayOf(b().object),b().string,b().func.isRequired,b().func.isRequired,b().func.isRequired,b().func.isRequired,w.propTypes={providerStorageAlias:b().string.isRequired,providerDisplayAlias:b().string.isRequired,modelAliases:b().object.isRequired,customModels:b().arrayOf(b().object),copied:b().string,onCopy:b().func.isRequired,onDeleteAlias:b().func.isRequired,onAddCustomModel:b().func.isRequired,onDeleteCustomModel:b().func.isRequired,connections:b().arrayOf(b().shape({id:b().string,isActive:b().bool})).isRequired,isAnthropic:b().bool};var N=s(70217);function k({until:e}){let[t,s]=(0,i.useState)("");return((0,i.useEffect)(()=>{let t=()=>{let t=new Date(e).getTime()-Date.now();if(t<=0)return void s("");let a=Math.floor(t/1e3);if(a<60)s(`${a}s`);else if(a<3600)s(`${Math.floor(a/60)}m ${a%60}s`);else{let e=Math.floor(a/3600),t=Math.floor(a%3600/60);s(`${e}h ${t}m`)}};t();let a=setInterval(t,1e3);return()=>clearInterval(a)},[e]),t)?(0,a.jsxs)("span",{className:"text-xs text-orange-500 font-mono",children:["⏱ ",t]}):null}function C({connection:e,proxyPools:t,isOAuth:s,isFirst:l,isLast:r,onMoveUp:o,onMoveDown:n,onToggleActive:c,onUpdateProxy:m,onEdit:p,onDelete:x,oneByOneStatus:u=null,autoPing:h=null}){let[f,g]=(0,i.useState)(!1),[y,b]=(0,i.useState)(!1),v=(0,i.useRef)(null),j=new Map((t||[]).map(e=>[e.id,e])),w=e.providerSpecificData?.proxyPoolId||null,S=w?j.get(w):null,A=e.providerSpecificData?.connectionProxyEnabled===!0&&!!e.providerSpecificData?.connectionProxyUrl,$=!!w||A,T=S?`Pool: ${S.name}`:w?`Pool: ${w} (inactive/missing)`:A?`Legacy: ${e.providerSpecificData?.connectionProxyUrl}`:"",O=h?.provider==="codex"?"Auto-starts the next 5h Codex window after reset by sending a tiny gpt-5.5 request. Consumes a small amount of quota.":"When your 5h quota runs out, auto-sends a request the moment it resets so a new window starts right away.",P="";if(S?.proxyUrl||e.providerSpecificData?.connectionProxyUrl){let t=S?.proxyUrl||e.providerSpecificData?.connectionProxyUrl;try{let e=new URL(t);P=`${e.protocol}//${e.hostname}${e.port?`:${e.port}`:""}`}catch{P=t}}let E=S?.noProxy||e.providerSpecificData?.connectionNoProxy||"",I="default";S?.isActive===!0?I="success":(w||A)&&(I="error"),(0,i.useEffect)(()=>{if(!f)return;let e=e=>{v.current&&!v.current.contains(e.target)&&g(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[f]);let R=async e=>{b(!0);try{await m("__none__"===e?null:e)}finally{b(!1),g(!1)}},D=e.authType||(s?"oauth":"apikey"),U="oauth"===D,_="cookie"===D,q=e.name?.trim()||e.email?.trim()||e.displayName?.trim()||(U?"OAuth Account":_?"Cookie Account":"API Key"),z=e.name?.trim()&&e.email?.trim()&&e.name.trim()!==e.email.trim()?e.email.trim():e.name?.trim()&&e.displayName?.trim()&&e.name.trim()!==e.displayName.trim()?e.displayName.trim():null,[M,F]=(0,i.useState)(!1),K=Object.entries(e).filter(([e])=>e.startsWith("modelLock_")).map(([,e])=>e).filter(e=>!!e).sort()[0]||null;(0,i.useEffect)(()=>{let t=()=>{F(!!Object.entries(e).filter(([e])=>e.startsWith("modelLock_")).map(([,e])=>e).filter(e=>e&&new Date(e).getTime()>Date.now()).sort()[0])};t();let s=K?setInterval(t,1e3):null;return()=>{s&&clearInterval(s)}},[K]);let L="unavailable"!==e.testStatus||M?e.testStatus:"active",J=()=>u?"queued"===u.state?"queued":"testing"===u.state?"testing":"success"===u.state?"success":"failed"===u.state?u.error?`failed: ${u.error}`:"failed":null:null;return(0,a.jsxs)("div",{className:`group flex min-w-0 flex-col gap-3 rounded-lg p-2 transition-colors hover:bg-black/[0.02] dark:hover:bg-white/[0.02] sm:flex-row sm:items-center sm:justify-between ${!1===e.isActive?"opacity-60":""}`,children:[(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-2 sm:items-center sm:gap-3",children:[(0,a.jsxs)("div",{className:"flex shrink-0 flex-col",children:[(0,a.jsx)("button",{onClick:o,disabled:l,className:`p-0.5 rounded ${l?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_up"})}),(0,a.jsx)("button",{onClick:n,disabled:r,className:`p-0.5 rounded ${r?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_down"})})]}),(0,a.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base text-text-muted",children:_?"cookie":U?"lock":"key"}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-medium truncate",children:q}),z&&(0,a.jsx)("p",{className:"text-xs text-text-muted truncate",children:z}),(0,a.jsxs)("div",{className:"mt-1 flex min-w-0 flex-wrap items-center gap-1.5 sm:gap-2",children:[(0,a.jsx)(d.Ex,{variant:(0,N.g)(e.isActive,L),size:"sm",dot:!0,children:!1===e.isActive?"disabled":L||"Unknown"}),(0,a.jsx)(d.Ex,{variant:"default",size:"sm",children:U?"OAuth":_?"Cookie":"API Key"}),$&&(0,a.jsx)(d.Ex,{variant:I,size:"sm",children:"Proxy"}),M&&!1!==e.isActive&&(0,a.jsx)(k,{until:K}),e.lastError&&!1!==e.isActive&&(0,a.jsx)("span",{className:"max-w-full truncate text-xs text-red-500 sm:max-w-[300px]",title:e.lastError,children:e.lastError}),(0,a.jsxs)("span",{className:"text-xs text-text-muted",children:["#",e.priority]}),e.globalPriority&&(0,a.jsxs)("span",{className:"text-xs text-text-muted",children:["Auto: ",e.globalPriority]}),J()&&(0,a.jsx)(d.Ex,{variant:u?"success"===u.state?"success":"failed"===u.state?"error":"testing"===u.state?"primary":"default":"default",size:"sm",children:J()})]}),$&&(0,a.jsxs)("div",{className:"mt-1 flex items-center gap-2 flex-wrap",children:[(0,a.jsx)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[420px]",title:T,children:T}),P&&(0,a.jsx)("code",{className:"max-w-full truncate rounded bg-black/5 px-1 py-0.5 font-mono text-[10px] text-text-muted dark:bg-white/5 sm:max-w-[260px]",children:P}),E&&(0,a.jsxs)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[320px]",title:E,children:["no_proxy: ",E]})]})]})]}),(0,a.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 sm:w-auto sm:justify-end",children:[(0,a.jsxs)("div",{className:"grid flex-1 grid-cols-3 gap-1 sm:flex sm:flex-none",children:[(t||[]).length>0&&(0,a.jsxs)("div",{className:"relative",ref:v,children:[(0,a.jsxs)("button",{onClick:()=>g(e=>!e),className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${$?"text-primary":"text-text-muted hover:text-primary"}`,disabled:y,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:y?"progress_activity":"lan"}),(0,a.jsx)("span",{className:"text-[10px] leading-tight",children:"Proxy"})]}),f&&(0,a.jsxs)("div",{className:"absolute right-0 top-full z-50 mt-1 max-w-[78vw] min-w-[160px] rounded-lg border border-border bg-bg py-1 shadow-lg",children:[(0,a.jsx)("button",{onClick:()=>R("__none__"),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${!w?"text-primary font-medium":"text-text-main"}`,children:"None"}),(t||[]).map(e=>(0,a.jsx)("button",{onClick:()=>R(e.id),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${w===e.id?"text-primary font-medium":"text-text-main"}`,children:e.name},e.id))]})]}),h&&(0,a.jsx)(d.m_,{text:O,children:(0,a.jsxs)("button",{onClick:()=>h.onToggle(!h.on),className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${h.on?"text-primary":"text-text-muted hover:text-primary"}`,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"bolt"}),(0,a.jsx)("span",{className:"text-[10px] leading-tight",children:"Auto-ping"})]})}),(0,a.jsxs)("button",{onClick:p,className:"flex flex-col items-center rounded px-2 py-1 text-text-muted hover:bg-black/5 hover:text-primary dark:hover:bg-white/5",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,a.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,a.jsxs)("button",{onClick:x,className:"flex flex-col items-center rounded px-2 py-1 text-red-500 hover:bg-red-500/10",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,a.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]}),(0,a.jsx)(d.lM,{size:"sm",checked:e.isActive??!0,onChange:c,title:e.isActive??!0?"Disable connection":"Enable connection"})]})]})}k.propTypes={until:b().string.isRequired},C.propTypes={connection:b().shape({id:b().string,name:b().string,email:b().string,displayName:b().string,modelLockUntil:b().string,testStatus:b().string,isActive:b().bool,lastError:b().string,priority:b().number,globalPriority:b().number}).isRequired,proxyPools:b().arrayOf(b().shape({id:b().string,name:b().string,proxyUrl:b().string,noProxy:b().string,isActive:b().bool})),isOAuth:b().bool.isRequired,isFirst:b().bool.isRequired,isLast:b().bool.isRequired,onMoveUp:b().func.isRequired,onMoveDown:b().func.isRequired,onToggleActive:b().func.isRequired,onUpdateProxy:b().func,onEdit:b().func.isRequired,onDelete:b().func.isRequired,oneByOneStatus:b().shape({state:b().string,error:b().string}),autoPing:b().shape({on:b().bool,onToggle:b().func,provider:b().string})};let S=`name1|sk-key1
2
- name2|sk-key2
3
- sk-key-only-auto-named`;function A({isOpen:e,provider:t,providerName:s,isCompatible:l,isAnthropic:r,authType:o,authHint:n,website:m,proxyPools:p,error:x,onSave:u,onBulkDone:h,onClose:f}){let g="__none__",y="ollama-local"===t,b="cookie"===o,v="xai"===t&&!b,j=b?"Cookie Value":"API Key",w="azure"===t,N="cloudflare-ai"===t,k=c.Q2?.[t]?.regions||null,C=c.Q2?.[t]?.defaultRegion||k?.[0]?.id||"",[$,T]=(0,i.useState)({name:"",apiKey:"",defaultModel:"",priority:1,proxyPoolId:g,ollamaHostUrl:""}),[O,P]=(0,i.useState)({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),[E,I]=(0,i.useState)({accountId:""}),[R,D]=(0,i.useState)(C),[U,_]=(0,i.useState)(!1),[q,z]=(0,i.useState)(null),[M,F]=(0,i.useState)(!1),[K,L]=(0,i.useState)("single"),[J,W]=(0,i.useState)(""),[B,H]=(0,i.useState)(null),G=()=>y&&$.ollamaHostUrl.trim()?{baseUrl:$.ollamaHostUrl.trim()}:w?{azureEndpoint:O.azureEndpoint,apiVersion:O.apiVersion,deployment:O.deployment,organization:O.organization}:N?{accountId:E.accountId}:k&&R?{region:R}:void 0,V=async()=>{_(!0);try{let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:$.apiKey,providerSpecificData:G()})}),s=await e.json();z(s.valid?"success":"failed")}catch{z("failed")}finally{_(!1)}},Q=async()=>{if(t&&(y||$.apiKey)&&(y||$.name)&&(!l||$.defaultModel.trim())){F(!0);try{let e=!1;try{_(!0),z(null);let s=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:$.apiKey,providerSpecificData:G()})});e=!!(await s.json()).valid,z(e?"success":"failed")}catch{z("failed")}finally{_(!1)}await u({name:$.name||(y?"Ollama Local":""),apiKey:$.apiKey,defaultModel:l?$.defaultModel.trim():void 0,priority:$.priority,proxyPoolId:$.proxyPoolId===g?null:$.proxyPoolId,testStatus:e?"active":"unknown",providerSpecificData:G()})}finally{F(!1)}}},Z=async()=>{let e=J.split("\n").map(e=>e.trim()).filter(Boolean);if(!e.length)return;F(!0),H(null);let s=0,a=0;for(let i=0;i<e.length;i++){let l=e[i].split("|"),r=l.length>=2?l.slice(1).join("|").trim():l[0].trim(),o=l.length>=2?l[0].trim():"Key",n=`${o} ${i+1}`;try{(await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:r,name:n,priority:1,testStatus:"unknown"})})).ok?s++:a++}catch{a++}}F(!1),H({success:s,failed:a}),s>0&&h&&h()};return t?(0,a.jsx)(d.aF,{isOpen:e,title:`Add ${s||t} ${j}`,onClose:f,children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.$n,{size:"sm",variant:"single"===K?"primary":"ghost",onClick:()=>{L("single"),H(null)},children:"Single"}),(0,a.jsx)(d.$n,{size:"sm",variant:"bulk"===K?"primary":"ghost",onClick:()=>{L("bulk"),H(null)},children:"Bulk Add"})]}),"bulk"===K&&(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:["One key per line. Format: ",(0,a.jsx)("code",{children:"name|apiKey"})," or just ",(0,a.jsx)("code",{children:"apiKey"})," (auto-named by index)."]}),(0,a.jsx)("textarea",{className:"w-full rounded border border-accent/30 bg-sidebar p-2 text-sm font-mono resize-y min-h-[140px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:S,value:J,onChange:e=>W(e.target.value)}),B&&(0,a.jsxs)("div",{className:`text-sm font-medium ${B.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",B.success," added",B.failed>0?`, ✗ ${B.failed} failed`:""]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.$n,{onClick:Z,fullWidth:!0,disabled:M||!J.trim(),children:M?"Adding...":"Add All Keys"}),(0,a.jsx)(d.$n,{onClick:f,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"single"===K&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.pd,{label:"Name",value:$.name,onChange:e=>T({...$,name:e.target.value}),placeholder:y?"Ollama Local":"Production Key"}),y&&(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.pd,{label:"Ollama Host URL",value:$.ollamaHostUrl,onChange:e=>T({...$,ollamaHostUrl:e.target.value}),placeholder:"http://localhost:11434",className:"flex-1"}),(0,a.jsx)("div",{className:"pt-6",children:(0,a.jsx)(d.$n,{onClick:V,disabled:U||M,variant:"secondary",children:U?"Checking...":"Check"})})]}),!y&&(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.pd,{label:j,type:b?"text":"password",value:$.apiKey,onChange:e=>T({...$,apiKey:e.target.value}),placeholder:b?"grok-web"===t?"sso=xxxxx... or just the raw value":"eyJhbGciOi...":v?"xai-...":"",className:"flex-1"}),(0,a.jsx)("div",{className:"pt-6",children:(0,a.jsx)(d.$n,{onClick:V,disabled:!$.apiKey||U||M,variant:"secondary",children:U?"Checking...":"Check"})})]}),v&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Use a direct xAI API key from console.x.ai. This is separate from Grok Build OAuth."}),b&&n&&(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:[n,m&&(0,a.jsxs)(a.Fragment,{children:[" ",(0,a.jsxs)("a",{href:m,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:["Open ",m.replace(/^https?:\/\//,"")]})]})]}),k&&(0,a.jsx)(d.l6,{label:"Region",value:R,onChange:e=>D(e.target.value),options:k.map(e=>({value:e.id,label:e.label}))}),l&&(0,a.jsx)(d.pd,{label:"Default Model",value:$.defaultModel,onChange:e=>T({...$,defaultModel:e.target.value}),placeholder:r?"claude-3-5-sonnet-latest":"gpt-4o-mini"}),y&&(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:["Leave blank to use ",(0,a.jsx)("code",{children:"http://localhost:11434"}),". For remote Ollama, enter the full host URL (e.g. ",(0,a.jsx)("code",{children:"http://192.168.1.10:11434"}),")."]}),q&&(0,a.jsx)(d.Ex,{variant:"success"===q?"success":"error",children:"success"===q?"Valid":"Invalid"}),x&&(0,a.jsx)("p",{className:"text-xs text-red-500 break-words",children:x}),l&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Enter the model ID exactly as your compatible endpoint expects it. This model will be saved as the connection default."}),N&&(0,a.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,a.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Cloudflare Workers AI"}),(0,a.jsx)(d.pd,{label:"Account ID",value:E.accountId,onChange:e=>I({...E,accountId:e.target.value}),placeholder:"abc123def456..."}),(0,a.jsxs)("p",{className:"text-xs text-text-muted mt-2",children:["Find your Account ID in the right sidebar of ",(0,a.jsx)("a",{href:"https://dash.cloudflare.com",target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:"dash.cloudflare.com"})]})]}),w&&(0,a.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,a.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Azure OpenAI Configuration"}),(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsx)(d.pd,{label:"Azure Endpoint",value:O.azureEndpoint,onChange:e=>P({...O,azureEndpoint:e.target.value}),placeholder:"https://your-resource.openai.azure.com"}),(0,a.jsx)(d.pd,{label:"Deployment Name",value:O.deployment,onChange:e=>P({...O,deployment:e.target.value}),placeholder:"gpt-4"}),(0,a.jsx)(d.pd,{label:"API Version",value:O.apiVersion,onChange:e=>P({...O,apiVersion:e.target.value}),placeholder:"2024-10-01-preview"}),(0,a.jsx)(d.pd,{label:"Organization",value:O.organization,onChange:e=>P({...O,organization:e.target.value}),placeholder:"Organization ID"})]})]}),(0,a.jsx)(d.pd,{label:"Priority",type:"number",value:$.priority,onChange:e=>T({...$,priority:Number.parseInt(e.target.value)||1})}),(0,a.jsx)(d.l6,{label:"Proxy Pool",value:$.proxyPoolId,onChange:e=>T({...$,proxyPoolId:e.target.value}),options:[{value:g,label:"None"},...(p||[]).map(e=>({value:e.id,label:e.name}))],placeholder:"None"}),0===(p||[]).length&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"No active proxy pools available. Create one in Proxy Pools page first."}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Legacy manual proxy fields are still accepted by API for backward compatibility."}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.$n,{onClick:Q,fullWidth:!0,disabled:M||!y&&(!$.name||!$.apiKey)||l&&!$.defaultModel.trim()||w&&(!O.azureEndpoint||!O.deployment||!O.organization)||N&&!E.accountId,children:M?"Saving...":"Save"}),(0,a.jsx)(d.$n,{onClick:f,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})}):null}function $({isOpen:e,node:t,onSave:s,onClose:l,isAnthropic:r}){let[o,n]=(0,i.useState)({name:"",prefix:"",apiType:"chat",baseUrl:"https://api.openai.com/v1"}),[c,m]=(0,i.useState)(!1),[p,x]=(0,i.useState)(""),[u,h]=(0,i.useState)(""),[f,g]=(0,i.useState)(!1),[y,b]=(0,i.useState)(null);(0,i.useEffect)(()=>{t&&n({name:t.name||"",prefix:t.prefix||"",apiType:t.apiType||"chat",baseUrl:t.baseUrl||(r?"https://api.anthropic.com/v1":"https://api.openai.com/v1")})},[t,r]);let v=async()=>{if(o.name.trim()&&o.prefix.trim()&&o.baseUrl.trim()){m(!0);try{let e={name:o.name,prefix:o.prefix,baseUrl:o.baseUrl};r||(e.apiType=o.apiType),await s(e)}finally{m(!1)}}},j=async()=>{g(!0);try{let e=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:o.baseUrl,apiKey:p,type:r?"anthropic-compatible":"openai-compatible",modelId:u.trim()||void 0})}),t=await e.json();b(t.valid?"success":"failed")}catch{b("failed")}finally{g(!1)}};return t?(0,a.jsx)(d.aF,{isOpen:e,title:`Edit ${r?"Anthropic":"OpenAI"} Compatible`,onClose:l,children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(d.pd,{label:"Name",value:o.name,onChange:e=>n({...o,name:e.target.value}),placeholder:`${r?"Anthropic":"OpenAI"} Compatible (Prod)`,hint:"Required. A friendly label for this node."}),(0,a.jsx)(d.pd,{label:"Prefix",value:o.prefix,onChange:e=>n({...o,prefix:e.target.value}),placeholder:r?"ac-prod":"oc-prod",hint:"Required. Used as the provider prefix for model IDs."}),!r&&(0,a.jsx)(d.l6,{label:"API Type",options:[{value:"chat",label:"Chat Completions"},{value:"responses",label:"Responses API"}],value:o.apiType,onChange:e=>n({...o,apiType:e.target.value})}),(0,a.jsx)(d.pd,{label:"Base URL",value:o.baseUrl,onChange:e=>n({...o,baseUrl:e.target.value}),placeholder:r?"https://api.anthropic.com/v1":"https://api.openai.com/v1",hint:`Use the base URL (ending in /v1) for your ${r?"Anthropic":"OpenAI"}-compatible API.`}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.pd,{label:"API Key (for Check)",type:"password",value:p,onChange:e=>x(e.target.value),className:"flex-1"}),(0,a.jsx)("div",{className:"pt-6",children:(0,a.jsx)(d.$n,{onClick:j,disabled:!p||f||!o.baseUrl.trim(),variant:"secondary",children:f?"Checking...":"Check"})})]}),(0,a.jsx)(d.pd,{label:"Model ID (optional)",value:u,onChange:e=>h(e.target.value),placeholder:"e.g. my-model-id",hint:"If provider lacks /models endpoint, enter a model ID to validate via chat/completions instead."}),y&&(0,a.jsx)(d.Ex,{variant:"success"===y?"success":"error",children:"success"===y?"Valid":"Invalid"}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.$n,{onClick:v,fullWidth:!0,disabled:!o.name.trim()||!o.prefix.trim()||!o.baseUrl.trim()||c,children:c?"Saving...":"Save"}),(0,a.jsx)(d.$n,{onClick:l,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}function T({isOpen:e,providerAlias:t,providerDisplayAlias:s,onSave:l,onClose:r}){let[o,n]=(0,i.useState)(""),[c,m]=(0,i.useState)(null),[p,x]=(0,i.useState)(""),[u,h]=(0,i.useState)(!1);(0,i.useEffect)(()=>{e&&(n(""),m(null),x(""))},[e]);let f=e=>{let s=`${t}/`;return e.startsWith(s)?e.slice(s.length):e},g=async()=>{let e=f(o.trim());if(e){m("testing"),x("");try{let s=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${t}/${e}`})}),a=await s.json();m(a.ok?"ok":"error"),x(a.error||"")}catch(e){m("error"),x(e.message)}}},y=async()=>{let e=f(o.trim());if(e&&!u){h(!0);try{await l(e)}finally{h(!1)}}};return(0,a.jsx)(d.aF,{isOpen:e,onClose:r,title:"Add Custom Model",children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Model ID"}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)("input",{type:"text",value:o,onChange:e=>{n(e.target.value),m(null),x("")},onKeyDown:e=>{"Enter"===e.key&&g()},placeholder:"e.g. claude-opus-4-5",className:"flex-1 px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",autoFocus:!0}),(0,a.jsx)(d.$n,{variant:"secondary",icon:"science",loading:"testing"===c,onClick:g,disabled:!o.trim()||"testing"===c,children:"testing"===c?"Testing...":"Test"})]}),(0,a.jsxs)("p",{className:"text-xs text-text-muted mt-1",children:["Sent to provider as: ",(0,a.jsx)("code",{className:"font-mono bg-sidebar px-1 rounded",children:f(o.trim())||"model-id"})]})]}),"ok"===c&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-green-600",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-base",children:"check_circle"}),"Model is reachable"]}),"error"===c&&(0,a.jsxs)("div",{className:"flex items-start gap-2 text-sm text-red-500",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-base shrink-0",children:"cancel"}),(0,a.jsx)("span",{children:p||"Model not reachable"})]}),(0,a.jsxs)("div",{className:"flex gap-2 pt-1",children:[(0,a.jsx)(d.$n,{onClick:r,variant:"ghost",fullWidth:!0,size:"sm",children:"Cancel"}),(0,a.jsx)(d.$n,{onClick:y,fullWidth:!0,size:"sm",disabled:!o.trim()||u,children:u?"Adding...":"Add Model"})]})]})})}A.propTypes={isOpen:b().bool.isRequired,provider:b().string,providerName:b().string,isCompatible:b().bool,isAnthropic:b().bool,authType:b().string,authHint:b().string,website:b().string,proxyPools:b().arrayOf(b().shape({id:b().string,name:b().string})),error:b().string,onSave:b().func.isRequired,onBulkDone:b().func,onClose:b().func.isRequired},$.propTypes={isOpen:b().bool.isRequired,node:b().shape({id:b().string,name:b().string,prefix:b().string,apiType:b().string,baseUrl:b().string}),onSave:b().func.isRequired,onClose:b().func.isRequired,isAnthropic:b().bool},T.propTypes={isOpen:b().bool.isRequired,providerAlias:b().string.isRequired,providerDisplayAlias:b().string.isRequired,onSave:b().func.isRequired,onClose:b().func.isRequired};let O=`[
4
- {
5
- "accessToken": "eyJhbGc...",
6
- "refreshToken": "rt_...",
7
- "idToken": "eyJhbGc...",
8
- "email": "user@example.com"
9
- }
10
- ]`;function P({isOpen:e,onClose:t,onSuccess:s}){let[l,r]=(0,i.useState)(""),[o,n]=(0,i.useState)(!1),[c,m]=(0,i.useState)(""),[p,x]=(0,i.useState)(null),h=()=>{o||(r(""),m(""),x(null),t())},f=async()=>{var e;let t;m(""),x(null);let a=l.trim();if(!a)return;try{t=JSON.parse(a)}catch(e){m(`${(0,u.Tl)("Invalid JSON")}: ${e.message}`);return}let i=Array.isArray(e=t)?e:e&&"object"==typeof e?Array.isArray(e.accounts)?e.accounts:[e]:null;if(!i||0===i.length)return void m((0,u.Tl)("No accounts found in input"));n(!0);try{let e=await fetch("/api/oauth/codex/bulk-import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accounts:i})}),t=await e.json();if(!e.ok)return void m(t?.error||`Request failed: ${e.status}`);x(t),t.success>0&&"function"==typeof s&&s()}catch(e){m(e.message||(0,u.Tl)("Request failed"))}finally{n(!1)}},g=p?.results?.filter(e=>!e.ok)||[];return(0,a.jsx)(d.aF,{isOpen:e,title:(0,u.Tl)("Bulk Add Codex Accounts"),onClose:h,children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)("p",{className:"text-xs text-text-muted",children:(0,u.Tl)("Paste an array of codex account JSON objects. Each must include accessToken (and ideally refreshToken, idToken).")}),(0,a.jsx)("textarea",{className:"w-full rounded border border-accent/30 bg-sidebar p-2 text-sm font-mono resize-y min-h-[240px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:O,value:l,onChange:e=>r(e.target.value),disabled:o}),c&&(0,a.jsx)("p",{className:"text-xs text-red-500 break-words",children:c}),p&&(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsxs)("div",{className:`text-sm font-medium ${p.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",p.success," ",(0,u.Tl)("added"),p.failed>0?`, ✗ ${p.failed} ${(0,u.Tl)("failed")}`:""]}),g.length>0&&(0,a.jsx)("ul",{className:"rounded border border-accent/20 bg-sidebar/50 p-2 text-xs font-mono max-h-40 overflow-y-auto",children:g.map(e=>(0,a.jsxs)("li",{className:"text-red-400",children:["[",e.index,"] ",e.error]},e.index))})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.$n,{onClick:f,fullWidth:!0,disabled:o||!l.trim(),children:o?(0,u.Tl)("Importing..."):(0,u.Tl)("Import All")}),(0,a.jsx)(d.$n,{onClick:h,variant:"ghost",fullWidth:!0,disabled:o,children:(0,u.Tl)("Close")})]})]})})}P.propTypes={isOpen:b().bool.isRequired,onClose:b().func.isRequired,onSuccess:b().func};let E={claude:"claudeAutoPing",codex:"codexAutoPing"};function I(){let e,t=(0,l.useParams)(),s=(0,l.useRouter)(),r=t.id,{getCaps:h}=(0,x.y)(),[y,b]=(0,i.useState)([]),[j,N]=(0,i.useState)(!0),[k,S]=(0,i.useState)(null),[O,I]=(0,i.useState)([]),[R,D]=(0,i.useState)(!1),[U,_]=(0,i.useState)(!1),[q,z]=(0,i.useState)(!1),[M,F]=(0,i.useState)(""),[K,L]=(0,i.useState)(!1),[J,W]=(0,i.useState)(!1),[B,H]=(0,i.useState)(!1),[G,V]=(0,i.useState)(!1),[Q,Z]=(0,i.useState)(null),[X,Y]=(0,i.useState)({}),[ee,et]=(0,i.useState)([]),[es,ea]=(0,i.useState)(!1),[ei,el]=(0,i.useState)({}),[er,eo]=(0,i.useState)(""),[en,ed]=(0,i.useState)(()=>new Set),[ec,em]=(0,i.useState)(!1),[ep,ex]=(0,i.useState)([]),[eu,eh]=(0,i.useState)("__none__"),[ef,eg]=(0,i.useState)(!1),[ey,eb]=(0,i.useState)(null),[ev,ej]=(0,i.useState)(""),[ew,eN]=(0,i.useState)("auto"),[ek,eC]=(0,i.useState)({enabled:!1,connections:{}}),[eS,eA]=(0,i.useState)([]),[e$,eT]=(0,i.useState)([]),[eO,eP]=(0,i.useState)([]),[eE,eI]=(0,i.useState)(null),[eR,eD]=(0,i.useState)(!1),[eU,e_]=(0,i.useState)(!1),[eq,ez]=(0,i.useState)(!1),[eM,eF]=(0,i.useState)(null),[eK,eL]=(0,i.useState)({}),[eJ,eW]=(0,i.useState)(null),eB=(0,i.useRef)(!1),[eH,eG]=(0,i.useState)(!1),{copied:eV,copy:eQ}=(0,p.C)(),eZ="ag_risk_confirmed",eX=()=>{D(!0)},eY=()=>{"antigravity"===r&&"true"!==window.localStorage.getItem(eZ)?eD(!0):e3?eX():(F(""),z(!0))},e0=()=>{F(""),z(!0)},e1=()=>{e3?eY():e0()},e2=k?{id:k.id,name:k.name||("anthropic-compatible"===k.type?"Anthropic Compatible":"OpenAI Compatible"),color:"anthropic-compatible"===k.type?"#D97757":"#10A37F",textIcon:"anthropic-compatible"===k.type?"AC":"OC",apiType:k.apiType,baseUrl:k.baseUrl,type:k.type}:c.zN[r]||c.fg[r]||c.IS[r]||c.nJ[r]||c.br[r],e5=e2?.authModes||[],e3=!!c.zN[r]||!!c.IS[r]||e5.includes("oauth"),e4=!!c.fg[r]||e5.includes("apikey"),e7=!!c.IS[r]?.noAuth,e6=(0,m.KC)(r),e8=(0,c.wG)(r),e9=(0,c.mq)(r),te=(0,c.gb)(r),tt=e9||te,ts=!tt&&e3&&e4,ta="xai"===r?"Grok Build OAuth":"OAuth",ti="xai"===r?"xAI API Key":"API Key";c.Q2[r]?.thinkingConfig||c.s9.extended;let tl=tt?r:e8,tr=tt?k?.prefix||r:e8,to=(0,i.useCallback)(async()=>{try{let e=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(tl)}`,{cache:"no-store"}),t=await e.json();e.ok&&eP(t.ids||[])}catch(e){console.log("Error fetching disabled models:",e)}},[tl]),tn=async e=>{try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:tl,ids:[e]})})).ok&&await to()}catch(e){console.log("Error disabling model:",e)}},td=async e=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(tl)}&id=${encodeURIComponent(e)}`,{method:"DELETE"})).ok&&await to()}catch(e){console.log("Error enabling model:",e)}},tc=async e=>{e.length&&eI({title:"Disable All Models",message:`Disable all ${e.length} model(s)?`,onConfirm:async()=>{eI(null);try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:tl,ids:e})})).ok&&await to()}catch(e){console.log("Error disabling all models:",e)}}})},tm=async()=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(tl)}`,{method:"DELETE"})).ok&&await to()}catch(e){console.log("Error enabling all models:",e)}},tp=(0,i.useCallback)(async()=>{try{let e=await fetch("/api/models/alias"),t=await e.json();e.ok&&Y(t.aliases||{})}catch(e){console.log("Error fetching aliases:",e)}},[]),tx=(0,i.useCallback)(async()=>{try{let e=await fetch("/api/models/custom",{cache:"no-store"}),t=await e.json();e.ok&&et(t.models||[])}catch(e){console.log("Error fetching custom models:",e)}},[]);(0,i.useEffect)(()=>{"kilocode"===r&&fetch("/api/providers/kilo/free-models").then(e=>e.json()).then(e=>{e.models?.length&&eT(e.models)}).catch(()=>{})},[r]);let tu=(0,i.useCallback)(async()=>{try{let[e,t,s,a]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/provider-nodes",{cache:"no-store"}),fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}),fetch("/api/settings",{cache:"no-store"})]),i=await e.json(),l=await t.json(),o=await s.json(),n=a.ok?await a.json():{};if(e.ok){let e=(i.connections||[]).filter(e=>e.provider===r);b(e)}s.ok&&I(o.proxyPools||[]);let d=(n.providerStrategies||{})[r]||{};eb(d.fallbackStrategy||null),ej(null!=d.stickyRoundRobinLimit?String(d.stickyRoundRobinLimit):"1");let c=(n.providerThinking||{})[r]||{};eN(c.mode||"auto");let m=E[r],p=m&&n[m]||{};if(eC({enabled:!0===p.enabled,connections:p.connections||{}}),t.ok){let e=(l.nodes||[]).find(e=>e.id===r)||null;if(!e&&tt)for(let t=0;t<3;t+=1){await new Promise(e=>setTimeout(e,150));let t=await fetch("/api/provider-nodes",{cache:"no-store"});if(t.ok&&(e=((await t.json()).nodes||[]).find(e=>e.id===r)||null))break}S(e)}}catch(e){console.log("Error fetching connections:",e)}finally{N(!1)}},[r,tt]),th=async e=>{try{let t=await fetch(`/api/provider-nodes/${r}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),s=await t.json();t.ok&&(S(s.node),await tu(),H(!1))}catch(e){console.log("Error updating provider node:",e)}},tf=async(e,t)=>{try{let s=await fetch("/api/settings",{cache:"no-store"}),a=(s.ok?await s.json():{}).providerStrategies||{},i={};e&&(i.fallbackStrategy=e),"round-robin"===e&&""!==t&&(i.stickyRoundRobinLimit=Number(t)||3);let l={...a};0===Object.keys(i).length?delete l[r]:l[r]=i,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:l})})}catch(e){console.log("Error saving provider strategy:",e)}},tg=async e=>{let t=E[r];if(t){eC(e);try{await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[t]:e})})}catch(e){console.log("Error saving auto-ping config:",e)}}};(0,i.useEffect)(()=>{tu(),tp(),tx(),to()},[tu,tp,tx,to]),(0,i.useEffect)(()=>{let e=(c.zN[r]||c.fg[r]||c.IS[r]||c.nJ[r])?.modelsFetcher;e&&f(e).then(eA)},[r]);let ty=async(e,t,s=e8)=>{let a=`${s}/${e}`;try{let e=await fetch("/api/models/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:a,alias:t})});if(e.ok)await tp();else{let t=await e.json();alert(t.error||"Failed to set alias")}}catch(e){console.log("Error setting alias:",e)}},tb=async e=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(e)}`,{method:"DELETE"})).ok&&await tp()}catch(e){console.log("Error deleting alias:",e)}},tv=async(e,t="llm",s=tl)=>{try{let a=await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:s,id:e,type:t})});if(a.ok)await tx(),window.dispatchEvent(new CustomEvent("customModelChanged"));else{let e=await a.json();alert(e.error||"Failed to add custom model")}}catch(e){console.log("Error adding custom model:",e)}},tj=async(e,t="llm",s=tl)=>{try{let a=new URLSearchParams({providerAlias:s,id:e,type:t});(await fetch(`/api/models/custom?${a}`,{method:"DELETE"})).ok&&(await tx(),window.dispatchEvent(new CustomEvent("customModelChanged")))}catch(e){console.log("Error deleting custom model:",e)}},tw=async()=>{if(eH)return;let e=y.find(e=>!1!==e.isActive);if(!e)return void alert((0,u.Tl)("Please add an active Qoder connection first"));eG(!0);try{let t=await fetch(`/api/providers/${e.id}/models`),s=await t.json();if(!t.ok)return void alert(s.error||(0,u.Tl)("Failed to fetch models"));let a=s.models||[];if(0===a.length)return void alert((0,u.Tl)("No models returned"));let i=0;for(let e of a){let t=e.id||e.name;if(!t)continue;let s=t.replace(/^qoder\//,"");ee.some(e=>e.providerAlias===tl&&e.id===s&&"llm"===(e.kind||e.type||"llm"))||Object.values(X).includes(`${tl}/${s}`)||(await tv(s,"llm",tl),i+=1)}0===i?alert((0,u.Tl)("All models already exist, no new models added")):alert((0,u.Tl)("Successfully added")+` ${i} `+(0,u.Tl)("models"))}catch(e){console.log("Error importing Qoder models:",e),alert((0,u.Tl)("Error fetching models")+": "+e.message)}finally{eG(!1)}},tN=async()=>{if(eU||0===y.length)return;let e=Object.fromEntries(y.map(e=>[e.id,{state:"queued",error:null}]));eB.current=!1,e_(!0),ez(!1),eF(null),eL(e),eW({total:y.length,completed:0,passed:0,failed:0,stopped:!1});let t=0,s=0;try{for(let e=0;e<y.length;e+=1){if(eB.current){eW({total:y.length,completed:e,passed:t,failed:s,stopped:!0});break}let a=y[e];eF(a.id),eL(e=>({...e,[a.id]:{state:"testing",error:null}}));try{let e=await fetch(`/api/providers/${a.id}/test`,{method:"POST"}),i=await e.json(),l=!!i.valid;l?t+=1:s+=1,eL(e=>({...e,[a.id]:{state:l?"success":"failed",error:l?null:i.error||null}}))}catch(e){s+=1,eL(t=>({...t,[a.id]:{state:"failed",error:e.message||"Test failed"}}))}eW({total:y.length,completed:e+1,passed:t,failed:s,stopped:!1}),e<y.length-1&&await new Promise(e=>setTimeout(e,1e3))}}finally{eF(null),e_(!1),ez(!1),eB.current=!1}},tk=async e=>{eI({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{eI(null);try{(await fetch(`/api/providers/${e}`,{method:"DELETE"})).ok&&b(t=>t.filter(t=>t.id!==e))}catch(e){console.log("Error deleting connection:",e)}}})},tC=()=>{tu(),D(!1)},tS=async e=>{F("");try{let t=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:r,...e})}),s=null;try{s=await t.json()}catch{s=null}if(t.ok){await tu(),z(!1);return}F(s?.error||"Failed to save connection")}catch(e){console.log("Error saving connection:",e),F("Failed to save connection")}},tA=async e=>{try{(await fetch(`/api/providers/${Q.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok&&(await tu(),W(!1))}catch(e){console.log("Error updating connection:",e)}},t$=async(e,t)=>{try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok&&b(s=>s.map(s=>s.id===e?{...s,isActive:t}:s))}catch(e){console.log("Error updating connection status:",e)}},tT=async(e,t)=>{let s=[...y];[s[e],s[t]]=[s[t],s[e]],b(s);try{await Promise.all([fetch(`/api/providers/${s[e].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:e})}),fetch(`/api/providers/${s[t].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:t})})])}catch(e){console.log("Error swapping priority:",e),await tu()}},tO=y.filter(e=>ep.includes(e.id)),tP=y.length>0&&ep.length===y.length;(0,i.useEffect)(()=>{ex(e=>e.filter(e=>y.some(t=>t.id===e)))},[y]),(()=>{if(0===tO.length)return;let e=new Set(tO.map(e=>e.providerSpecificData?.proxyPoolId||"__none__"));if(1===e.size){let t=[...e][0];if("__none__"===t)return;let s=O.find(e=>e.id===t);return s?.name}})();let tE=()=>{ef||V(!1)},tI=async e=>{eg(!0);try{let t=0;for(let{connectionId:s,proxyPoolId:a}of e)try{(await fetch(`/api/providers/${s}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:a})})).ok||(t+=1)}catch(e){console.log("Error applying proxy for",s,e),t+=1}t>0&&alert(`Updated with ${t} failed request(s).`),await tu(),V(!1)}finally{eg(!1)}},tR=e=>tI(y.map(t=>({connectionId:t.id,proxyPoolId:e}))),tD=(0,a.jsx)("div",{className:"flex min-w-0 flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03]",children:y.map((e,t)=>{let s;return(0,a.jsxs)("div",{className:"flex min-w-0 items-stretch",children:[(0,a.jsx)("div",{className:"flex shrink-0 items-center pl-1 sm:pl-2",children:(0,a.jsx)("input",{type:"checkbox",checked:(s=e.id,ep.includes(s)),onChange:()=>{var t;return t=e.id,void ex(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])},className:"h-4 w-4 rounded border-gray-300 text-primary focus:ring-primary"})}),(0,a.jsx)("div",{className:"flex-1 min-w-0",children:(0,a.jsx)(C,{connection:e,proxyPools:O,isOAuth:e3,isFirst:0===t,isLast:t===y.length-1,onMoveUp:()=>tT(t,t-1),onMoveDown:()=>tT(t,t+1),onToggleActive:t=>t$(e.id,t),autoPing:E[r]&&"oauth"===e.authType?{on:!0===ek.connections[e.id],onToggle:t=>{var s;return s=e.id,void tg({...ek,connections:{...ek.connections,[s]:t}})},provider:r}:null,onUpdateProxy:async t=>{try{(await fetch(`/api/providers/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:t||null})})).ok&&b(s=>s.map(s=>s.id===e.id?{...s,providerSpecificData:{...s.providerSpecificData,proxyPoolId:t||null}}:s))}catch(e){console.log("Error updating proxy:",e)}},onEdit:()=>{Z(e),W(!0)},onDelete:()=>tk(e.id),oneByOneStatus:eK[e.id]||null})})]},e.id)})}),tU=O.filter(e=>!0===e.isActive),t_=(0,a.jsx)(d.aF,{isOpen:G,onClose:tE,title:`Apply Proxy (${y.length} connections)`,children:(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("button",{onClick:()=>{let e=O.filter(e=>!0===e.isActive);return 0===e.length?void alert("No active proxy pools available."):tI(y.map((t,s)=>({connectionId:t.id,proxyPoolId:e[s%e.length].id})))},disabled:ef||0===tU.length,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"sync_alt"}),(0,a.jsx)("span",{className:"text-sm text-text-main",children:"One-to-one (rotate)"})]}),(0,a.jsxs)("button",{onClick:()=>tR(null),disabled:ef,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"link_off"}),(0,a.jsx)("span",{className:"text-sm text-text-main",children:"None (unbind all)"})]}),O.map(e=>(0,a.jsxs)("button",{onClick:()=>tR(e.id),disabled:ef||!0!==e.isActive,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"lan"}),(0,a.jsx)("span",{className:"truncate text-sm text-text-main",children:e.name}),!0!==e.isActive&&(0,a.jsx)("span",{className:"text-[10px] text-text-muted",children:"(inactive)"})]},e.id))]}),ef&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Applying..."}),(0,a.jsx)(d.$n,{onClick:tE,variant:"ghost",fullWidth:!0,disabled:ef,children:"Cancel"})]})}),tq=async e=>{if(!en.has(e)){ed(t=>new Set(t).add(e));try{let t=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${tl}/${e}`})}),s=await t.json();el(t=>({...t,[e]:s.ok?"ok":"error"})),eo(s.ok?"":s.error||"Model not reachable")}catch{el(t=>({...t,[e]:"error"})),eo("Network error")}finally{ed(t=>{let s=new Set(t);return s.delete(e),s})}}};return j?(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsx)(d.Qv,{}),(0,a.jsx)(d.Qv,{})]}):e2?(0,a.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:gap-8 sm:px-0",children:[(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsxs)(o(),{href:"/dashboard/providers",className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors mb-4",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),"Back to Providers"]}),(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-3 sm:gap-4",children:[(0,a.jsx)("div",{className:"flex size-12 shrink-0 items-center justify-center rounded-lg",style:{backgroundColor:`${e2.color}15`},children:es?(0,a.jsx)("span",{className:"text-sm font-bold",style:{color:e2.color},children:e2.textIcon||e2.id.slice(0,2).toUpperCase()}):(0,a.jsx)(n.default,{src:e9&&e2.apiType?"responses"===e2.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":te?"/providers/anthropic-m.png":`/providers/${e2.id}.png`,alt:e2.name,width:48,height:48,className:"max-h-12 max-w-12 rounded-lg object-contain",sizes:"48px",onError:()=>ea(!0)})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,a.jsx)("h1",{className:"truncate text-2xl font-semibold tracking-tight sm:text-3xl",children:e2.name}),(e2.notice?.apiKeyUrl||e2.notice?.signupUrl||e2.website)&&(0,a.jsxs)("a",{href:e2.notice?.apiKeyUrl||e2.notice?.signupUrl||e2.website,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline inline-flex items-center gap-1",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"open_in_new"}),e2.notice?.apiKeyUrl?"Get API Key":"Sign up / Learn more"]})]}),(0,a.jsxs)("p",{className:"text-text-muted",children:[y.length," connection",1===y.length?"":"s"]})]})]})]}),e2.deprecated&&(0,a.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-yellow-500/10 border border-yellow-500/30",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px] text-yellow-500 mt-0.5 shrink-0",children:"warning"}),(0,a.jsx)("p",{className:"text-xs text-red-600 dark:text-yellow-400 leading-relaxed",children:e2.deprecationNotice})]}),e2.notice?.text&&!e2.deprecated&&(0,a.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-blue-500/30 bg-blue-500/10 px-3 py-2 sm:flex-row sm:items-center",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px] text-blue-500 shrink-0",children:"info"}),(0,a.jsx)("p",{className:"min-w-0 flex-1 text-xs leading-relaxed text-blue-600 dark:text-blue-400",children:e2.notice.text}),e2.notice.apiKeyUrl&&(0,a.jsx)("a",{href:e2.notice.apiKeyUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex justify-center rounded bg-blue-500 px-2 py-1 text-xs font-medium text-white transition-colors hover:bg-blue-600 sm:py-0.5",children:"Get API Key →"})]}),tt&&k&&(0,a.jsx)(d.Zp,{children:(0,a.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("h2",{className:"text-lg font-semibold",children:te?"Anthropic Compatible Details":"OpenAI Compatible Details"}),(0,a.jsxs)("p",{className:"break-all text-sm text-text-muted",children:[te?"Messages API":"responses"===k.apiType?"Responses API":"Chat Completions"," \xb7 ",(k.baseUrl||"").replace(/\/$/,""),"/",te?"messages":"responses"===k.apiType?"responses":"chat/completions"]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,a.jsx)(d.$n,{size:"sm",icon:"add",onClick:()=>{F(""),z(!0)},className:"w-full sm:w-auto",children:"Add API Key"}),(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>H(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{eI({title:"Delete Compatible Node",message:`Delete this ${te?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{eI(null);try{(await fetch(`/api/provider-nodes/${r}`,{method:"DELETE"})).ok&&s.push("/dashboard/providers")}catch(e){console.log("Error deleting provider node:",e)}}})},className:"w-full sm:w-auto",children:"Delete"})]})]})}),e7?(0,a.jsx)(d.gw,{providerId:r}):(0,a.jsxs)(d.Zp,{children:[(0,a.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsx)("h2",{className:"text-lg font-semibold",children:"Connections"}),(0,a.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[y.length>0&&O.length>0&&(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"lan",onClick:()=>V(!0),children:"Apply Proxy"}),y.length>0&&(0,a.jsxs)(a.Fragment,{children:[ep.length>0&&(0,a.jsxs)(d.$n,{size:"sm",variant:"danger",icon:"delete",onClick:()=>{let e=ep.length;0!==e&&eI({title:`Delete ${e} Connection${e>1?"s":""}`,message:`Delete ${e} connection${e>1?"s":""}? This cannot be undone.`,onConfirm:async()=>{eI(null);let e=0,t=[...ep];for(let s of t)try{(await fetch(`/api/providers/${s}`,{method:"DELETE"})).ok||(e+=1)}catch(t){console.log("Error deleting connection:",t),e+=1}b(e=>e.filter(e=>!t.includes(e.id))),ex([]),e>0&&alert(`Deleted ${t.length-e} connection(s), ${e} failed.`)}})},children:["Delete Selected (",ep.length,")"]}),(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"sync",onClick:tN,disabled:eU,children:eU?"Testing Connection One-by-One...":"Test Connection One-by-One"}),eU&&(0,a.jsx)(d.$n,{size:"sm",variant:"ghost",icon:"stop",onClick:()=>{eU&&(eB.current=!0,ez(!0))},disabled:eq,children:eq?"Stopping...":"Stop"})]}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsx)("span",{className:"text-xs text-text-muted font-medium",children:"Round Robin"}),(0,a.jsx)(d.lM,{checked:"round-robin"===ey,onChange:e=>{let t=e?"round-robin":null,s=e?ev||"1":ev;e&&!ev&&ej("1"),eb(t),tf(t,s)}}),"round-robin"===ey&&(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("span",{className:"text-xs text-text-muted",children:"Sticky:"}),(0,a.jsx)("input",{type:"number",min:1,value:ev,onChange:e=>{var t;ej(t=e.target.value),tf("round-robin",t)},placeholder:"1",className:"w-14 px-2 py-1 text-xs border border-border rounded-md bg-background focus:outline-none focus:border-primary"})]})]})]})]}),0===y.length?(0,a.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"inline-flex items-center justify-center w-9 h-9 rounded-full bg-primary/10 text-primary shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:e3?"lock":"key"})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"No connections yet"}),ts&&(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:["Choose ",ta," or ",ti,"."]})]})]}),(0,a.jsx)("div",{className:"flex gap-2",children:ts?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:eY,children:ta}),(0,a.jsx)(d.$n,{size:"sm",icon:"key",onClick:e0,children:ti})]}):(0,a.jsxs)(a.Fragment,{children:[!tt&&"iflow"===r&&(0,a.jsx)(d.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>_(!0),children:"Cookie"}),"codex"===r&&(0,a.jsx)(d.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>L(!0),children:(0,u.Tl)("Bulk Add")}),(0,a.jsx)(d.$n,{size:"sm",icon:"add",onClick:e1,children:tt?"Add API Key":"iflow"===r?"OAuth":"Add Connection"})]})})]}):(0,a.jsxs)(a.Fragment,{children:[eJ&&(0,a.jsx)("div",{className:"mb-4 rounded-lg border border-black/10 bg-black/[0.02] px-3 py-2 text-xs text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,a.jsxs)("span",{children:["Total: ",eJ.total]}),(0,a.jsxs)("span",{children:["Completed: ",eJ.completed]}),(0,a.jsxs)("span",{children:["Passed: ",eJ.passed]}),(0,a.jsxs)("span",{children:["Failed: ",eJ.failed]}),eJ.stopped&&(0,a.jsx)("span",{className:"text-amber-600 dark:text-amber-400",children:"Stopped"}),eU&&eM&&(0,a.jsxs)("span",{children:["Running: ",y.find(e=>e.id===eM)?.name||eM]})]})}),y.length>0&&(0,a.jsx)("div",{className:"mb-3 flex items-center gap-2 border-b border-black/[0.03] pb-2 dark:border-white/[0.03]",children:(0,a.jsxs)("label",{className:"flex cursor-pointer items-center gap-1.5 text-xs text-text-muted hover:text-primary",children:[(0,a.jsx)("input",{type:"checkbox",checked:tP,onChange:()=>{tP?ex([]):ex(y.map(e=>e.id))},className:"h-3.5 w-3.5 rounded border-gray-300 text-primary focus:ring-primary"}),"Select All"]})}),tD,!tt&&(0,a.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-2 sm:flex",children:["iflow"===r&&(0,a.jsx)(d.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>_(!0),title:"Add connection using browser cookie",className:"w-full sm:w-auto",children:"Cookie"}),"codex"===r&&(0,a.jsx)(d.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>L(!0),title:(0,u.Tl)("Bulk import codex accounts from JSON"),className:"w-full sm:w-auto",children:(0,u.Tl)("Bulk Add")}),ts?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:eY,className:"w-full sm:w-auto",children:ta}),(0,a.jsx)(d.$n,{size:"sm",icon:"key",onClick:e0,className:"w-full sm:w-auto",children:ti})]}):(0,a.jsx)(d.$n,{size:"sm",icon:"add",onClick:e1,className:"w-full sm:w-auto",children:"Add"})]})]})]}),(0,a.jsxs)(d.Zp,{children:[(0,a.jsxs)("div",{className:"mb-4 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsx)("h2",{className:"text-lg font-semibold",children:"Available Models"}),!tt&&(e=[...e6,...e$.filter(e=>!e6.some(t=>t.id===e.id))].filter(e=>{let t=(0,m.CP)(e);return!t||"llm"===t}).map(e=>e.id).filter(e=>!eO.includes(e)),(0,a.jsxs)("div",{className:"flex gap-2",children:[eO.length>0&&(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:tm,children:"Active All"}),e.length>0&&(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>tc(e),children:"Disable All"})]}))]}),!!er&&(0,a.jsx)("p",{className:"text-xs text-red-500 mb-3 break-words",children:er}),(()=>{let e,t,s;if(tt)return(0,a.jsx)(w,{providerStorageAlias:tl,providerDisplayAlias:tr,modelAliases:X,customModels:ee,copied:eV,onCopy:eQ,onSetAlias:ty,onDeleteAlias:tb,onAddCustomModel:e=>tv(e,"llm",tl),onDeleteCustomModel:e=>tj(e,"llm",tl),connections:y,isAnthropic:te});let i=[...e6,...e$.filter(e=>!e6.some(t=>t.id===e.id))].filter(e=>{let t=(0,m.CP)(e);return!t||"llm"===t}),l=new Set(eO),o=i.filter(e=>!l.has(e.id)),n=i.filter(e=>l.has(e.id)),d=g({customModels:ee,modelAliases:X,providerAlias:tl,builtInModels:e6,type:"llm"});return(0,a.jsxs)("div",{className:"flex flex-wrap gap-3",children:[d.map(e=>(0,a.jsx)(v,{model:{id:e.id,name:e.name},fullModel:`${tr}/${e.id}`,alias:e.alias,copied:eV,onCopy:eQ,onSetAlias:()=>{},onDeleteAlias:()=>{"custom"===e.source?tj(e.id,"llm",tl):tb(e.alias)},testStatus:ei[e.id],onTest:y.length>0||e7?()=>tq(e.id):void 0,isTesting:en.has(e.id),isCustom:!0,isFree:!1,caps:h(`${r}/${e.id}`)},`${e.source}-${e.fullModel}`)),o.map(e=>{let t=`${tl}/${e.id}`,s=`${r}/${e.id}`,i=Object.entries(X).find(([,e])=>e===t||e===s)?.[0];return(0,a.jsx)(v,{model:e,fullModel:`${tr}/${e.id}`,alias:i,copied:eV,onCopy:eQ,onSetAlias:t=>ty(e.id,t,tl),onDeleteAlias:()=>tb(i),testStatus:ei[e.id],onTest:y.length>0||e7?()=>tq(e.id):void 0,isTesting:en.has(e.id),isFree:e.isFree,onDisable:()=>tn(e.id),caps:h(`${r}/${e.id}`)},e.id)}),(0,a.jsxs)("button",{onClick:()=>em(!0),className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-primary/40 px-3 py-2 text-xs text-primary transition-colors hover:border-primary hover:bg-primary/5 sm:w-auto",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"add"}),"Add Model"]}),"qoder"===r&&y.some(e=>!1!==e.isActive)&&(0,a.jsxs)("button",{onClick:tw,disabled:eH,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-blue-500/40 px-3 py-2 text-xs text-blue-600 dark:text-blue-400 transition-colors hover:border-blue-500 hover:bg-blue-500/5 sm:w-auto disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",style:eH?{animation:"spin 1s linear infinite"}:void 0,children:eH?"progress_activity":"download"}),eH?(0,u.Tl)("Fetching..."):(0,u.Tl)("Fetch Qoder Models")]}),eS.length>0&&(e=new Set([...Object.values(X),...d.map(e=>e.fullModel)]),t=new Set(e6.map(e=>e.id)),0===(s=eS.filter(s=>!e.has(`${tl}/${s.id}`)&&!t.has(s.id))).length?null:(0,a.jsxs)("div",{className:"w-full mt-2",children:[(0,a.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"Suggested free models (≥200k context):"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:s.map(e=>(0,a.jsxs)("button",{onClick:async()=>{await tv(e.id,"llm",tl)},className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:`${e.name} \xb7 ${(e.contextLength/1e3).toFixed(0)}k ctx`,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),e.id.split("/").pop()]},e.id))})]})),n.length>0&&(0,a.jsxs)("div",{className:"w-full mt-2",children:[(0,a.jsxs)("p",{className:"text-xs text-text-muted mb-2",children:["Disabled models (",n.length,"):"]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:n.map(e=>(0,a.jsxs)("button",{onClick:()=>td(e.id),className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-dashed border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:"Restore model",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),e.id]},e.id))})]})]})})()]}),t_,"kiro"===r?(0,a.jsx)(d.Mh,{isOpen:R,providerInfo:e2,onSuccess:tC,onClose:()=>D(!1)}):"cursor"===r?(0,a.jsx)(d.G9,{isOpen:R,onSuccess:tC,onClose:()=>D(!1)}):"gitlab"===r?(0,a.jsx)(d.vj,{isOpen:R,providerInfo:e2,onSuccess:tC,onClose:()=>D(!1)}):(0,a.jsx)(d.LF,{isOpen:R,provider:r,providerInfo:e2,onSuccess:tC,onClose:()=>D(!1)}),"iflow"===r&&(0,a.jsx)(d.vE,{isOpen:U,onSuccess:()=>{tu(),_(!1)},onClose:()=>_(!1)}),(0,a.jsx)(A,{isOpen:q,provider:r,providerName:e2.name,isCompatible:tt,isAnthropic:te,authType:e2?.authType,authHint:e2?.authHint,website:e2?.website,proxyPools:O,error:M,onSave:tS,onBulkDone:tu,onClose:()=>{F(""),z(!1)}}),(0,a.jsx)(d.wI,{isOpen:J,connection:Q,proxyPools:O,onSave:tA,onClose:()=>W(!1)}),tt&&(0,a.jsx)($,{isOpen:B,node:k,onSave:th,onClose:()=>H(!1),isAnthropic:te}),!tt&&(0,a.jsx)(T,{isOpen:ec,providerAlias:tl,providerDisplayAlias:tr,onSave:async e=>{await tv(e,"llm",tl),em(!1)},onClose:()=>em(!1)}),"codex"===r&&(0,a.jsx)(P,{isOpen:K,onClose:()=>L(!1),onSuccess:tu}),(0,a.jsx)(d.uo,{isOpen:eR,onClose:()=>eD(!1),onConfirm:()=>{(window.localStorage.setItem(eZ,"true"),eD(!1),e3)?eX():e0()},title:"Risk Notice",message:e2?.deprecationNotice,confirmText:"I Understand, Continue",cancelText:"Cancel",variant:"danger"}),(0,a.jsx)(d.uo,{isOpen:!!eE,onClose:()=>eI(null),onConfirm:eE?.onConfirm,title:eE?.title||"Confirm",message:eE?.message,variant:"danger"})]}):(0,a.jsxs)("div",{className:"text-center py-20",children:[(0,a.jsx)("p",{className:"text-text-muted",children:"Provider not found"}),(0,a.jsx)(o(),{href:"/dashboard/providers",className:"text-primary mt-4 inline-block",children:"Back to Providers"})]})}}},e=>{e.O(0,[2574,3862,1051,5772,1321,705,5497,8441,3794,7358],()=>e(e.s=52397)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3826],{15546:(e,t,r)=>{Promise.resolve().then(r.bind(r,75095)),Promise.resolve().then(r.bind(r,25086))},75095:(e,t,r)=>{"use strict";r.d(t,{default:()=>T});var a=r(95155),s=r(12115),i=r(57250),l=r(70778);let n="quotaCacheData",o="quotaAutoRefresh",d=[10,20,50,100],c=[{value:"all",label:"All accounts"},{value:"active",label:"Active"},{value:"inactive",label:"Turned off"}],u=[{value:"default",label:"Default quota order"},{value:"remaining-asc",label:"% quota: low to high"},{value:"remaining-desc",label:"% quota: high to low"}];function x(e){return e.name?.trim()||e.email?.trim()||e.displayName?.trim()||null}function m(e,t){let r=t[e.id]?.quotas?.[0];return r&&"number"==typeof r.remaining?r.remaining:1/0}function h(e){let t={};return e.forEach(e=>{t[e.id]=!0}),t}function p(e,t){let r=new Set(t.map(e=>e.id));return Object.fromEntries(Object.entries(e).filter(([e])=>r.has(e)))}async function b(e,t){return await e(t)}function g(){try{let e=window.localStorage.getItem(n);return e?JSON.parse(e):{}}catch(e){return console.error("Error reading quota cache:",e),{}}}function f(e,t){try{let r=g();r[e]={...t,cachedAt:new Date().toISOString()},window.localStorage.setItem(n,JSON.stringify(r))}catch(e){console.error("Error writing quota cache:",e)}}function y(e,t){return t&&0!==t?!e||e<0?100:e>=t?0:Math.round((t-e)/t*100):0}function v({quotas:e=[],compact:t=!1,sortMode:r="default",showSortLabel:i=!1}){let[l,n]=(0,s.useState)(1),o=(0,s.useMemo)(()=>e.map((e,t)=>({...e,index:t,remaining:e?.remaining!==void 0?Math.max(0,Math.round(e.remaining)):e?.remainingPercentage!==void 0?Math.round(e.remainingPercentage):y(e?.used,e?.total)})),[e]),d=(0,s.useMemo)(()=>"remaining-asc"===r?[...o].sort((e,t)=>e.remaining-t.remaining||e.name.localeCompare(t.name)):"remaining-desc"===r?[...o].sort((e,t)=>t.remaining-e.remaining||e.name.localeCompare(t.name)):o,[o,r]),c=Math.max(1,Math.ceil(d.length/10));if((0,s.useEffect)(()=>{n(1)},[r,e]),(0,s.useEffect)(()=>{n(e=>Math.min(e,c))},[c]),!e||0===e.length)return null;let u=d.slice((l-1)*10,10*l),x=0===d.length?0:(l-1)*10+1,m=Math.min(10*l,d.length),h=t?"py-1 px-1.5":"py-2 px-3",p=t?"text-[11px]":"text-sm",b=t?"text-[11px]":"text-sm",g=t?"text-[10px] leading-tight":"text-xs";return(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsxs)("div",{className:"text-[10px] text-text-muted",children:[d.length," quota",d.length>1?"s":""]}),i&&(0,a.jsx)("div",{className:"rounded-md border border-black/10 bg-black/[0.02] px-2 py-1 text-[10px] text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:"Sorted by account remaining"})]}),(0,a.jsx)("div",{className:"overflow-x-auto",children:(0,a.jsx)("table",{className:"w-full table-fixed text-left",children:(0,a.jsx)("tbody",{children:u.map(e=>{var r;let s=(r=e.remaining)>70?{text:"text-green-600 dark:text-green-400",bg:"bg-green-500",bgLight:"bg-green-500/10",emoji:"\uD83D\uDFE2"}:r>=30?{text:"text-yellow-600 dark:text-yellow-400",bg:"bg-yellow-500",bgLight:"bg-yellow-500/10",emoji:"\uD83D\uDFE1"}:{text:"text-red-600 dark:text-red-400",bg:"bg-red-500",bgLight:"bg-red-500/10",emoji:"\uD83D\uDD34"},i=function(e){if(!e)return"-";try{let t="string"==typeof e?new Date(e):e,r=new Date,a=t-r;if(a<=0)return"-";let s=Math.ceil(a/6e4);if(s<60)return`${s}m`;let i=Math.floor(s/60),l=s%60;if(i<24)return`${i}h ${l}m`;let n=Math.floor(i/24);return`${n}d ${i%24}h ${l}m`}catch(e){return"-"}}(e.resetAt),l=function(e){if(!e)return null;try{let t=new Date(e),r=new Date,a=new Date(r.getFullYear(),r.getMonth(),r.getDate()),s=new Date(a);s.setDate(s.getDate()+1);let i="";i=t>=a&&t<s?"Today":t>=s&&t<new Date(s.getTime()+864e5)?"Tomorrow":t.toLocaleDateString("en-US",{month:"short",day:"numeric"});let l=t.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0});return`${i}, ${l}`}catch{return null}}(e.resetAt),n=!1!==e.recurring?`in ${i}`:`expires in ${i}`;return(0,a.jsxs)("tr",{className:"border-b border-black/5 dark:border-white/5 hover:bg-black/[0.02] dark:hover:bg-white/[0.02] transition-colors",children:[(0,a.jsx)("td",{className:`${h} w-[30%]`,children:(0,a.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,a.jsx)("span",{className:"text-[10px] shrink-0",children:s.emoji}),(0,a.jsx)("span",{className:`${p} font-medium text-text-primary truncate`,children:e.name})]})}),(0,a.jsx)("td",{className:`${h} w-[45%]`,children:(0,a.jsxs)("div",{className:t?"space-y-1":"space-y-1.5",children:[(0,a.jsx)("div",{className:`${t?"h-1":"h-1.5"} rounded-full overflow-hidden border ${s.bgLight} ${0===e.remaining?"border-black/10 dark:border-white/10":"border-transparent"}`,children:(0,a.jsx)("div",{className:`h-full transition-all duration-300 ${s.bg}`,style:{width:`${Math.min(e.remaining,100)}%`}})}),(0,a.jsxs)("div",{className:`flex items-center justify-between ${t?"text-[10px]":"text-xs"}`,children:[(0,a.jsxs)("span",{className:"text-text-muted",children:[e.used.toLocaleString()," / ",e.total>0?e.total.toLocaleString():"∞"]}),(0,a.jsxs)("span",{className:`font-medium ${s.text}`,children:[e.remaining,"%"]})]})]})}),(0,a.jsx)("td",{className:`${h} w-[25%]`,children:"-"!==i||l?t?(0,a.jsx)("div",{className:`${b} text-text-primary font-medium truncate`,title:l||"",children:"-"!==i?n:l}):(0,a.jsxs)("div",{className:"space-y-0.5",children:["-"!==i&&(0,a.jsx)("div",{className:`${b} text-text-primary font-medium`,children:n}),l&&(0,a.jsx)("div",{className:`${g} text-text-muted`,children:l})]}):(0,a.jsx)("div",{className:`${b} text-text-muted italic`,children:"N/A"})})]},`${e.name}-${e.index}`)})})})}),c>1&&(0,a.jsxs)("div",{className:"rounded-md border border-black/10 bg-black/[0.02] px-2 py-1.5 dark:border-white/10 dark:bg-white/[0.03]",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2 text-[10px] text-text-muted",children:[(0,a.jsxs)("span",{children:["Showing ",x,"-",m," of ",d.length]}),(0,a.jsxs)("span",{children:["Page ",l," / ",c]})]}),(0,a.jsxs)("div",{className:"mt-1.5 flex items-center justify-end gap-1",children:[(0,a.jsx)("button",{type:"button",onClick:()=>n(e=>Math.max(1,e-1)),disabled:1===l,className:"flex h-6 items-center rounded-md border border-black/10 px-2 text-[10px] text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5",children:"Prev"}),(0,a.jsx)("button",{type:"button",onClick:()=>n(e=>Math.min(c,e+1)),disabled:l===c,className:"flex h-6 items-center rounded-md border border-black/10 px-2 text-[10px] text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5",children:"Next"})]})]})]})}var j=r(98542),w=r(97677),k=r(84588),N=r(35497),C=r(88105),S=r(11059);let A={"builder-id":"AWS Builder ID",idc:"IAM Identity Center",google:"Google",github:"GitHub",imported:"Imported Token",api_key:"API Key"},$={claude:"claudeAutoPing",codex:"codexAutoPing"},E={claude:"When your 5h quota runs out, auto-sends a request the moment it resets so a new window starts right away.",codex:"Auto-starts the next 5h Codex window after reset by sending a tiny gpt-5.5 request. Consumes a small amount of quota."};function P(e){return e.name?.trim()&&e.email?.trim()&&e.name.trim()!==e.email.trim()?e.email.trim():e.name?.trim()&&e.displayName?.trim()&&e.name.trim()!==e.displayName.trim()?e.displayName.trim():null}function q(e){let t=e.providerSpecificData?.region;if(t)return t;let r=e.providerSpecificData?.profileArn;return("string"==typeof r?r.split(":")[3]:"")||""}function D(e){if(!e)return"N/A";let t=new Date(e);return Number.isFinite(t.getTime())?t.toLocaleString(void 0,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}):"N/A"}function T(){let{copied:e,copy:t}=(0,S.C)(),[r,T]=(0,s.useState)([]),[M,O]=(0,s.useState)({}),[I,_]=(0,s.useState)({}),[F,L]=(0,s.useState)({}),[z,R]=(0,s.useState)(!0),[U,J]=(0,s.useState)({claude:{},codex:{}}),[K,G]=(0,s.useState)(null),[H,B]=(0,s.useState)(!1),[V,W]=(0,s.useState)(!1),[Y,Q]=(0,s.useState)(60),[X,Z]=(0,s.useState)(!0),[ee,et]=(0,s.useState)(null),[er,ea]=(0,s.useState)(null),[es,ei]=(0,s.useState)(null),[el,en]=(0,s.useState)(null),[eo,ed]=(0,s.useState)(null),[ec,eu]=(0,s.useState)(!1),[ex,em]=(0,s.useState)(null),[eh,ep]=(0,s.useState)([]),[eb,eg]=(0,s.useState)("all"),[ef,ey]=(0,s.useState)([]),[ev,ej]=(0,s.useState)("all"),[ew,ek]=(0,s.useState)("default"),[eN,eC]=(0,s.useState)(!1),[eS,eA]=(0,s.useState)(!1),[e$,eE]=(0,s.useState)(!1),[eP,eq]=(0,s.useState)(1),[eD,eT]=(0,s.useState)(20),[eM,eO]=(0,s.useState)(String(20)),[eI,e_]=(0,s.useState)({page:1,pageSize:20,total:0,totalPages:1}),[eF,eL]=(0,s.useState)({eligibleConnections:0,providerFilteredConnections:0}),ez=(0,s.useRef)(null),eR=(0,s.useRef)(null),eU=(0,s.useRef)(0),eJ=(0,s.useCallback)(async(e=eP)=>{try{var t,r;let a=new URLSearchParams({page:String(e),pageSize:String(eD),accountStatus:ev,sort:"priority"});"all"!==eb&&a.set("provider",eb);let s=await fetch(`/api/providers/client?${a.toString()}`);if(!s.ok)throw Error("Failed to fetch connections");let i=await s.json(),l=i.connections||[],n=(t=i.pagination,t||{page:1,pageSize:eD,total:0,totalPages:1}),o=function(e,t=0){return e||{eligibleConnections:t,providerFilteredConnections:t}}(i.totals,l.length);return T(l),ey(i.providerOptions||[]),e_(n),eL(o),eq((r=i.pagination,r?.page||e)),l}catch(e){return console.error("Error fetching connections:",e),T([]),ey([]),e_({page:1,pageSize:eD,total:0,totalPages:1}),eL({eligibleConnections:0,providerFilteredConnections:0}),[]}},[ev,eN,eP,eD,eb]),eK=(0,s.useCallback)(async(e,t)=>{_(t=>({...t,[e]:!0})),L(t=>({...t,[e]:null}));try{console.log(`[ProviderLimits] Fetching quota for ${t} (${e})`);let r=await fetch(`/api/usage/${e}`);if(!r.ok){let a=(await r.json().catch(()=>({}))).error||r.statusText;if(404===r.status)return void console.warn(`[ProviderLimits] Connection not found for ${t}, skipping`);if(401===r.status){console.warn(`[ProviderLimits] Auth error for ${t}:`,a);let r={quotas:[],message:a};O(t=>({...t,[e]:r})),f(e,r);return}throw Error(`HTTP ${r.status}: ${a}`)}let a=await r.json();console.log(`[ProviderLimits] Got quota for ${t}:`,a);let s={quotas:function(e,t){if(!t||"object"!=typeof t)return[];let r=[];try{switch(e.toLowerCase()){case"github":default:t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null})});break;case"antigravity":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:t.displayName||e,modelKey:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});break;case"codex":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,remaining:t.remaining,resetAt:t.resetAt||null})});break;case"kiro":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null})});break;case"qoder":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{("organization"!==e||t&&0!==(Number(t.total)||0))&&r.push({name:"user"===e?"Personal":"organization"===e?"Organization":e,used:t.used||0,total:t.total||0,unit:t.unit,resetAt:t.resetAt||null})});break;case"claude":t.message?r.push({name:"error",used:0,total:0,resetAt:null,message:t.message}):t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null})});break;case"vercel-ai-gateway":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});break;case"codebuddy-cn":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,recurring:!1!==t.recurring})})}}catch(t){return console.error(`Error parsing quota data for ${e}:`,t),[]}let a=(0,l.KC)(e);if(a.length>0){let e=new Map(a.map((e,t)=>[e.id,t]));r.sort((t,r)=>{let a=t.modelKey||t.name,s=r.modelKey||r.name;return(e.get(a)??999)-(e.get(s)??999)})}return r}(t,a),plan:a.plan||null,message:a.message||null,raw:a};O(t=>({...t,[e]:s})),f(e,s)}catch(r){console.error(`[ProviderLimits] Error fetching quota for ${t} (${e}):`,r),L(t=>({...t,[e]:r.message||"Failed to fetch quota"}))}finally{_(t=>({...t,[e]:!1}))}},[]),eG=(0,s.useCallback)(async(e,t)=>{await eK(e,t),G(new Date)},[eK]),eH=(0,s.useCallback)(async(e,t)=>{if("codex"===t&&!es){ei(e),L(t=>({...t,[e]:null}));try{let r=await fetch(`/api/usage/${e}/codex-reset-credits`,{method:"POST"}),a=await r.json().catch(()=>({}));if(!r.ok)throw Error(a.message||a.error||a.code||"Failed to reset Codex limit");await eK(e,t),G(new Date)}catch(t){L(r=>({...r,[e]:t.message||"Failed to reset Codex limit"}))}finally{ei(null)}}},[eK,es]),eB=(0,s.useCallback)(async e=>{ed({connection:e,loading:!0,error:null,data:null});try{let t=await fetch(`/api/usage/${e.id}/codex-reset-credits`,{cache:"no-store"}),r=await t.json().catch(()=>({}));if(!t.ok)throw Error(r.error||r.message||"Failed to load Codex reset credits");let a=Array.isArray(r.credits)?[...r.credits]:[];a.sort((e,t)=>{let r=e.expiresAt?new Date(e.expiresAt).getTime():1/0,a=t.expiresAt?new Date(t.expiresAt).getTime():1/0;return r-a}),ed({connection:e,loading:!1,error:null,data:{...r,credits:a}})}catch(t){ed({connection:e,loading:!1,error:t.message||"Failed to load Codex reset credits",data:null})}},[]),eV=(0,s.useCallback)(async e=>{if(confirm("Delete this connection?")){et(e);try{if((await fetch(`/api/providers/${e}`,{method:"DELETE"})).ok){O(t=>{let r={...t};return delete r[e],r}),_(t=>{let r={...t};return delete r[e],r}),L(t=>{let r={...t};return delete r[e],r});try{let t=g();t[e]&&(delete t[e],window.localStorage.setItem(n,JSON.stringify(t)))}catch(e){console.error("Error deleting cache entry:",e)}await b(eJ,eP)}}catch(e){console.error("Error deleting connection:",e)}finally{et(null)}}},[eJ,eP]),eW=(0,s.useCallback)(async(e,t)=>{ea(e);try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok&&(O(e=>({...e})),await b(eJ,eP))}catch(e){console.error("Error updating connection status:",e)}finally{ea(null)}},[eJ,eP]),eY=(0,s.useCallback)(async e=>{if(!ex?.id)return;let t=ex.id,r=ex.provider;try{(await fetch(`/api/providers/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok&&(await eJ(),eu(!1),em(null),C.wb.includes(r)&&await eK(t,r))}catch(e){console.error("Error saving connection:",e)}},[ex,eJ,eK]);(0,s.useEffect)(()=>{let e=!1;return fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}).then(e=>e.json()).then(t=>{!e&&t?.proxyPools&&ep(t.proxyPools)}).catch(()=>{}),()=>{e=!0}},[]);let eQ=(0,s.useCallback)(async(e=!1)=>{if(V)return;W(!0),Q(60);let t=eU.current+=1,r=Math.round(3);try{let a=await eJ(eP);_(h(a)),L(e=>p(e,a)),O(e=>p(e,a)),await Promise.all(a.filter(a=>e||"claude"!==a.provider||t%r==0).map(e=>eK(e.id,e.provider))),G(new Date)}catch(e){console.error("Error refreshing all providers:",e)}finally{W(!1)}},[V,eJ,eK,eP]);(0,s.useEffect)(()=>{(async()=>{Z(!0);let e=await eJ(eP);Z(!1),_(h(e)),L(t=>p(t,e)),O(t=>p(t,e)),await Promise.all(e.map(e=>eK(e.id,e.provider))),G(new Date)})()},[eJ,eK,eP]),(0,s.useEffect)(()=>{let e=window.localStorage.getItem(o);R(null===e||"true"===e),B(!0)},[]),(0,s.useEffect)(()=>{H&&window.localStorage.setItem(o,String(z))},[z,H]),(0,s.useEffect)(()=>{fetch("/api/settings",{cache:"no-store"}).then(e=>e.ok?e.json():{}).then(e=>J({claude:e?.claudeAutoPing?.connections||{},codex:e?.codexAutoPing?.connections||{}})).catch(()=>{})},[]);let eX=(0,s.useCallback)(async(e,t,r)=>{let a=$[t];if(!a)return;let s={...U[t]||{},[e]:r};J({...U,[t]:s});try{let e=await fetch("/api/settings",{cache:"no-store"}),t={...(e.ok?await e.json():{})[a]||{},connections:s};await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[a]:t})})}catch{J(U)}},[U]);(0,s.useEffect)(()=>{if(!H||!z){ez.current&&(clearInterval(ez.current),ez.current=null),eR.current&&(clearInterval(eR.current),eR.current=null);return}return ez.current=setInterval(()=>{eQ()},6e4),eR.current=setInterval(()=>{Q(e=>e<=1?60:e-1)},1e3),()=>{ez.current&&clearInterval(ez.current),eR.current&&clearInterval(eR.current)}},[z,eQ,H]),(0,s.useEffect)(()=>{let e=()=>{document.hidden?(ez.current&&(clearInterval(ez.current),ez.current=null),eR.current&&(clearInterval(eR.current),eR.current=null)):z&&H&&(ez.current=setInterval(()=>eQ(),6e4),eR.current=setInterval(()=>{Q(e=>e<=1?60:e-1)},1e3))};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[z,eQ,H]);let eZ=(0,s.useMemo)(()=>(function(e,t,r,a,s){if("codex"===a&&"default"!==s)return[...e].sort((e,r)=>{let a=m(e,t),i=m(r,t),l="remaining-asc"===s?a-i:i-a;return 0!==l?l:(x(e)||"").localeCompare(x(r)||"")});if(!r)return e;let i=e=>{let r=(t[e.id]?.quotas||[]).map(e=>e.resetAt?new Date(e.resetAt).getTime():1/0).filter(e=>Number.isFinite(e));return r.length>0?Math.min(...r):1/0};return[...e].sort((e,t)=>{let r=i(e)-i(t);return 0!==r?r:(e.provider||"").localeCompare(t.provider||"")||(x(e)||"").localeCompare(x(t)||"")})})(r,M,eN,eb,ew),[r,M,eN,eb,ew]),e0=e=>{let t=M[e.id]?.quotas;return!!t?.length&&t.some(e=>!!e.total&&!(e.total<=0)&&5>=y(e.used,e.total))},e1=(0,s.useCallback)(async(e,t)=>{if(e.length&&!e$){eE(!0);try{await Promise.all(e.map(e=>fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})}))),await b(eJ,eP)}catch(e){console.error("Error bulk toggling connections:",e)}finally{eE(!1)}}},[e$,eJ,eP]),e5="all"===eb?"All providers":eb,e2=eF.eligibleConnections>0,e3=eZ.length>0,e4=eF.eligibleConnections?eF.providerFilteredConnections?{icon:"filter_alt_off",title:"No Accounts On This Page",description:"Try moving to another page or refreshing the current filters."}:{icon:"filter_alt_off",title:"No Accounts Match Current Filters",description:"all"===eb?"Try changing the account status filter to see more quota trackers.":`No ${"inactive"===ev?"turned off":"active"===ev?"active":"matching"} accounts found for ${eb}.`}:{icon:"cloud_off",title:"No Providers Connected",description:"Connect to providers with OAuth to track your API quota limits and usage."},e8=function(e){var t;let{start:r,end:a}=(t=e).total?{start:(t.page-1)*t.pageSize+1,end:Math.min(t.page*t.pageSize,t.total)}:{start:0,end:0};return`Showing ${r}-${a} of ${e.total}`}(eI),e6=!d.includes(eD);return X||e2?X||e3?(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-end",children:(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>eA(e=>!e),className:"flex h-8 items-center justify-between gap-1 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text-primary transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-haspopup":"menu","aria-expanded":eS,title:"Filter quota providers",children:[(0,a.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:["all"===eb?(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"apps"}):(0,a.jsx)(i.A,{src:`/providers/${eb}.png`,alt:eb,size:18,className:"size-[18px] rounded object-contain",fallbackText:eb.slice(0,2).toUpperCase()}),(0,a.jsx)("span",{className:"truncate capitalize hidden lg:inline",children:e5})]}),(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"expand_more"})]}),eS&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button",className:"fixed inset-0 z-30 bg-transparent","aria-label":"Close provider filter",onClick:()=>eA(!1)}),(0,a.jsxs)("div",{className:"absolute left-0 z-40 mt-2 w-64 overflow-hidden rounded-2xl border border-black/10 bg-surface/95 p-1.5 shadow-xl shadow-black/10 backdrop-blur dark:border-white/10 dark:bg-surface/95 sm:w-72",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>{"all"!==eb&&eq(1),eg("all"),eA(!1)},className:`flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left text-sm transition-colors ${"all"===eb?"bg-primary/10 text-primary":"text-text-primary hover:bg-black/5 dark:hover:bg-white/10"}`,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[22px]",children:"apps"}),(0,a.jsx)("span",{className:"font-medium",children:"All providers"}),"all"===eb&&(0,a.jsx)("span",{className:"material-symbols-outlined ml-auto text-[20px]",children:"check"})]}),(0,a.jsx)("div",{className:"my-1 h-px bg-black/10 dark:bg-white/10"}),(0,a.jsx)("div",{className:"max-h-72 overflow-y-auto pr-1",children:ef.map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>{eb!==e&&eq(1),eg(e),eA(!1)},className:`flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left text-sm transition-colors ${eb===e?"bg-primary/10 text-primary":"text-text-primary hover:bg-black/5 dark:hover:bg-white/10"}`,children:[(0,a.jsx)(i.A,{src:`/providers/${e}.png`,alt:e,size:24,className:"size-6 rounded-md object-contain",fallbackText:e.slice(0,2).toUpperCase()}),(0,a.jsx)("span",{className:"font-medium capitalize",children:e}),eb===e&&(0,a.jsx)("span",{className:"material-symbols-outlined ml-auto text-[20px]",children:"check"})]},e))})]})]})]}),(0,a.jsx)("select",{value:ev,onChange:e=>{let t=e.target.value;ev!==t&&eq(1),ej(t)},className:"h-8 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text-primary outline-none transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-label":"Filter accounts by status",children:c.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))}),"codex"===eb&&(0,a.jsx)("select",{value:ew,onChange:e=>ek(e.target.value),className:"h-8 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text-primary outline-none transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-label":"Sort Codex quotas by remaining",children:u.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,a.jsxs)("button",{type:"button",onClick:()=>eC(e=>!e),"aria-pressed":eN,className:`flex h-8 shrink-0 items-center gap-1 rounded-lg border px-2 text-xs transition-colors ${eN?"border-amber-500/40 bg-amber-500/10 text-amber-500":"border-black/10 text-text-primary hover:bg-black/5 dark:border-white/10 dark:hover:bg-white/5"}`,title:"Sort accounts by earliest quota reset time",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"hourglass_top"}),(0,a.jsx)("span",{className:"hidden sm:inline",children:"Expiring first"})]}),(0,a.jsxs)("button",{type:"button",onClick:()=>{e1(eZ.filter(e=>(e.isActive??!0)&&e0(e)).map(e=>e.id),!1)},disabled:e$,className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-red-500/30 px-2 text-xs text-red-500 transition-colors hover:bg-red-500/10 disabled:opacity-50",title:"Disable connections with depleted quota on the current page",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"block"}),(0,a.jsx)("span",{className:"hidden sm:inline",children:"Turn off Empty"})]}),(0,a.jsxs)("button",{type:"button",onClick:()=>{e1(eZ.filter(e=>!(e.isActive??!0)&&!e0(e)).map(e=>e.id),!0)},disabled:e$,className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-emerald-500/30 px-2 text-xs text-emerald-500 transition-colors hover:bg-emerald-500/10 disabled:opacity-50",title:"Enable connections that still have quota on the current page",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"check_circle"}),(0,a.jsx)("span",{className:"hidden sm:inline",children:"Turn on Available"})]}),(0,a.jsxs)("button",{onClick:()=>R(e=>!e),className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-black/10 px-2 text-xs transition-colors hover:bg-black/5 dark:border-white/10 dark:hover:bg-white/5",title:z?"Disable auto-refresh":"Enable auto-refresh",children:[(0,a.jsx)("span",{className:`material-symbols-outlined text-[14px] ${z?"text-primary":"text-text-muted"}`,children:z?"toggle_on":"toggle_off"}),(0,a.jsx)("span",{className:"hidden text-text-primary sm:inline",children:"Auto-refresh"}),z&&(0,a.jsxs)("span",{className:"text-[10px] text-text-muted tabular-nums",children:["(",Y,"s)"]})]}),(0,a.jsx)("button",{type:"button",onClick:()=>eQ(!0),disabled:V,className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-black/10 px-2 text-xs text-text-primary transition-colors hover:bg-black/5 dark:border-white/10 dark:hover:bg-white/5 disabled:opacity-50",title:"Refresh all",children:(0,a.jsx)("span",{className:`material-symbols-outlined text-[14px] ${V?"animate-spin":""}`,children:"refresh"})})]})}),eN&&(0,a.jsx)("div",{className:"rounded-xl border border-amber-500/20 bg-amber-500/10 px-3 py-2 text-xs text-amber-700 dark:text-amber-300",children:"Expiring-first currently reorders accounts inside the current page. Cross-page ordering still follows backend pagination."}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:eZ.map(r=>{let s,l,n,o=M[r.id],d=I[r.id],c=F[r.id],u=!1===r.isActive,m="codex"===r.provider,h=Number.isFinite(l="number"==typeof(s=o?.raw?.resetCredits?.availableCount)?s:Number(s))?Math.max(0,l):0,p=es===r.id,b=ee===r.id||er===r.id||p;return(0,a.jsxs)(k.default,{padding:"none",className:`min-w-0 ${u?"opacity-60":""}`,children:[(0,a.jsx)("div",{className:"px-3 py-2 border-b border-black/10 dark:border-white/10",children:(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,a.jsx)("div",{className:"w-8 h-8 shrink-0 rounded-md flex items-center justify-center overflow-hidden",children:(0,a.jsx)(i.A,{src:`/providers/${r.provider}.png`,alt:r.provider,size:32,className:"object-contain",fallbackText:r.provider?.slice(0,2).toUpperCase()||"PR"})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-text-primary capitalize truncate",children:r.provider}),x(r)?(0,a.jsx)("p",{className:"text-xs text-text-muted truncate",children:x(r)}):null,P(r)?(0,a.jsx)("p",{className:"text-[11px] text-text-muted/80 truncate",children:P(r)}):null,"kiro"===r.provider&&(0,a.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-1",children:[(0,a.jsx)("span",{className:"rounded-full bg-brand-500/10 px-2 py-0.5 text-[10px] font-semibold text-brand-600 dark:text-brand-300",children:(n=r.providerSpecificData?.authMethod)&&A[n]?A[n]:"api_key"===r.authType?"API Key":"OAuth"}),q(r)&&(0,a.jsx)("span",{className:"rounded-full bg-blue-500/10 px-2 py-0.5 text-[10px] font-semibold text-blue-600 dark:text-blue-400",children:q(r)}),(0,a.jsx)("span",{className:`rounded-full px-2 py-0.5 text-[10px] font-semibold ${u?"bg-surface-2 text-text-muted":"active"===r.testStatus||"success"===r.testStatus?"bg-green-500/10 text-green-600 dark:text-green-400":"error"===r.testStatus||"expired"===r.testStatus||"unavailable"===r.testStatus?"bg-red-500/10 text-red-600 dark:text-red-400":"bg-surface-2 text-text-muted"}`,children:u?"disabled":r.testStatus||"unknown"}),r.providerSpecificData?.profileArn&&(0,a.jsxs)("button",{type:"button",onClick:()=>t(r.providerSpecificData.profileArn,r.id),title:r.providerSpecificData.profileArn,className:"inline-flex max-w-full items-center gap-1 rounded-full border border-border-subtle px-2 py-0.5 text-[10px] text-text-muted transition-colors hover:text-primary",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:e===r.id?"check":"content_copy"}),(0,a.jsx)("code",{className:"truncate font-mono",children:r.providerSpecificData.profileArn})]})]})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[m&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(w.default,{text:h>0?`Use one Codex reset credit. Available: ${h}`:"No Codex reset credits available",children:(0,a.jsxs)("button",{type:"button",onClick:()=>en({connection:r,resetCreditCount:h}),disabled:h<=0||d||b,"aria-label":h>0?`Use one Codex reset credit. ${h} available.`:"No Codex reset credits available",className:`flex h-8 min-w-10 items-center justify-center gap-1 rounded-lg border px-2 text-[11px] font-medium tabular-nums transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary/60 disabled:cursor-not-allowed disabled:opacity-60 ${h>0?"border-primary/30 bg-primary/5 text-primary hover:bg-primary/10":"border-black/10 bg-black/[0.02] text-text-muted dark:border-white/10 dark:bg-white/[0.03]"}`,children:[(0,a.jsx)("span",{className:`material-symbols-outlined text-[15px] ${p?"animate-spin":""}`,children:p?"progress_activity":"restart_alt"}),(0,a.jsx)("span",{children:h})]})}),(0,a.jsx)(w.default,{text:"View Codex reset credit expiry",children:(0,a.jsx)("button",{type:"button",onClick:()=>eB(r),disabled:d||b,"aria-label":"View Codex reset credit expiry",className:"flex h-8 w-8 items-center justify-center rounded-lg border border-black/10 text-text-muted transition-colors hover:bg-black/5 hover:text-primary disabled:cursor-not-allowed disabled:opacity-50 dark:border-white/10 dark:hover:bg-white/5",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[17px]",children:"schedule"})})})]}),$[r.provider]&&"oauth"===r.authType&&(0,a.jsx)(w.default,{text:E[r.provider],children:(0,a.jsx)("button",{type:"button",onClick:()=>eX(r.id,r.provider,U[r.provider]?.[r.id]!==!0),"aria-label":"Toggle auto-ping",className:`flex h-8 w-8 items-center justify-center rounded-lg transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${U[r.provider]?.[r.id]===!0?"text-primary":"text-text-muted"}`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"bolt"})})}),(0,a.jsx)(w.default,{text:"Refresh quota",children:(0,a.jsx)("button",{type:"button",onClick:()=>eG(r.id,r.provider),disabled:d||b,"aria-label":"Refresh quota",className:"flex h-8 w-8 items-center justify-center rounded-lg hover:bg-black/5 dark:hover:bg-white/5 transition-colors disabled:opacity-50",children:(0,a.jsx)("span",{className:`material-symbols-outlined text-[18px] text-text-muted ${d?"animate-spin":""}`,children:"refresh"})})}),(0,a.jsx)(w.default,{text:"Edit connection",children:(0,a.jsx)("button",{type:"button",onClick:()=>{em(r),eu(!0)},disabled:b,"aria-label":"Edit connection",className:"flex h-8 w-8 items-center justify-center rounded-lg hover:bg-black/5 dark:hover:bg-white/5 text-text-muted hover:text-primary transition-colors disabled:opacity-50",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"})})}),(0,a.jsx)(w.default,{text:"Delete connection",children:(0,a.jsx)("button",{type:"button",onClick:()=>eV(r.id),disabled:b,"aria-label":"Delete connection",className:"flex h-8 w-8 items-center justify-center rounded-lg hover:bg-red-500/10 text-red-500 transition-colors disabled:opacity-50",children:(0,a.jsx)("span",{className:`material-symbols-outlined text-[18px] ${ee===r.id?"animate-pulse":""}`,children:"delete"})})}),(0,a.jsx)("div",{className:"inline-flex items-center pl-0.5",title:r.isActive??!0?"Disable connection":"Enable connection",children:(0,a.jsx)(j.default,{size:"sm",checked:r.isActive??!0,disabled:b,onChange:e=>eW(r.id,e)})})]})]})}),(0,a.jsx)("div",{className:"px-2 py-1.5",children:d?(0,a.jsx)("div",{className:"text-center py-5 text-text-muted",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[28px] animate-spin",children:"progress_activity"})}):c?(0,a.jsxs)("div",{className:"text-center py-5",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[28px] text-red-500",children:"error"}),(0,a.jsx)("p",{className:"mt-1.5 text-xs text-text-muted",children:c})]}):o?.message?(0,a.jsx)("div",{className:"text-center py-5",children:(0,a.jsx)("p",{className:"text-xs text-text-muted",children:o.message})}):(0,a.jsx)(v,{quotas:o?.quotas,compact:!0,sortMode:"default",showSortLabel:"codex"===r.provider&&"default"!==ew})})]},r.id)})}),(0,a.jsx)("div",{className:"rounded-xl border border-black/10 bg-black/[0.02] px-3 py-2 dark:border-white/10 dark:bg-white/[0.03]",children:(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,a.jsx)("span",{className:"text-xs text-text-muted",children:e8}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsxs)("select",{value:e6?"custom":String(eD),onChange:e=>{let t=e.target.value;if("custom"===t)return;let r=Number.parseInt(t,10);Number.isFinite(r)&&(eq(1),eT(r),eO(String(r)))},className:"h-8 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text-primary outline-none transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-label":"Accounts per page",children:[d.map(e=>(0,a.jsxs)("option",{value:String(e),children:[e," / page"]},e)),(0,a.jsx)("option",{value:"custom",children:"Custom"})]}),(0,a.jsx)("input",{type:"number",min:"1",max:String(500),inputMode:"numeric",value:eM,onChange:e=>eO(e.target.value),onBlur:()=>{let e=Number.parseInt(eM,10);if(!Number.isFinite(e))return void eO(String(eD));let t=Math.min(500,Math.max(1,e));eq(1),eT(t),eO(String(t))},onKeyDown:e=>{if("Enter"!==e.key)return;let t=Number.parseInt(eM,10);if(!Number.isFinite(t))return void eO(String(eD));let r=Math.min(500,Math.max(1,t));eq(1),eT(r),eO(String(r))},className:"h-8 w-20 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text-primary outline-none transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-label":"Custom accounts per page",placeholder:"Custom"}),(0,a.jsxs)("span",{className:"text-xs text-text-muted",children:["Page ",eI.page," / ",eI.totalPages]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("button",{type:"button",onClick:()=>eq(1),disabled:eI.page<=1||X||V,className:"flex h-8 items-center rounded-lg border border-black/10 px-3 text-xs text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5",children:"First Page"}),(0,a.jsx)("button",{type:"button",onClick:()=>eq(e=>Math.max(1,e-1)),disabled:eI.page<=1||X||V,className:"flex h-8 w-8 items-center justify-center rounded-lg border border-black/10 text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5","aria-label":"Previous accounts page",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"chevron_left"})}),(0,a.jsx)("button",{type:"button",onClick:()=>eq(e=>Math.min(eI.totalPages,e+1)),disabled:eI.page>=eI.totalPages||X||V,className:"flex h-8 w-8 items-center justify-center rounded-lg border border-black/10 text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5","aria-label":"Next accounts page",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"chevron_right"})}),(0,a.jsx)("button",{type:"button",onClick:()=>eq(eI.totalPages),disabled:eI.page>=eI.totalPages||X||V,className:"flex h-8 items-center rounded-lg border border-black/10 px-3 text-xs text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5",children:"Last Page"})]})]})}),(0,a.jsx)(N.uo,{isOpen:!!el,onClose:()=>{es||en(null)},onConfirm:async()=>{let e=el?.connection;e&&(await eH(e.id,e.provider),en(null))},title:"Reset Codex limit?",message:`Use 1 Codex reset credit for ${x(el?.connection||{})||"this account"}. This cannot be undone. Remaining credits: ${el?.resetCreditCount??0}.`,confirmText:"Reset limit",cancelText:"Cancel",variant:"danger",loading:!!es}),eo&&(0,a.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 px-4 backdrop-blur-sm",children:(0,a.jsxs)("div",{className:"w-full max-w-2xl overflow-hidden rounded-2xl border border-black/15 bg-white shadow-2xl ring-1 ring-black/10 dark:border-white/15 dark:bg-neutral-950 dark:ring-white/10",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-3 border-b border-black/10 bg-black/[0.03] px-4 py-3 dark:border-white/10 dark:bg-white/[0.04]",children:[(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("h3",{className:"text-base font-semibold text-text-primary",children:"Codex Reset Credit Expiry"}),(0,a.jsx)("p",{className:"mt-0.5 truncate text-xs text-text-muted",children:x(eo.connection)||"Codex account"})]}),(0,a.jsx)("button",{type:"button",onClick:()=>ed(null),className:"flex h-8 w-8 items-center justify-center rounded-lg text-text-muted transition-colors hover:bg-black/5 hover:text-text-primary dark:hover:bg-white/5","aria-label":"Close reset credit expiry modal",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"close"})})]}),(0,a.jsx)("div",{className:"max-h-[70vh] overflow-auto bg-white p-4 dark:bg-neutral-950",children:eo.loading?(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2 py-10 text-sm text-text-muted",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-[20px]",children:"progress_activity"}),"Loading reset credits..."]}):eo.error?(0,a.jsx)("div",{className:"rounded-xl border border-red-500/20 bg-red-500/10 px-3 py-2 text-sm text-red-600 dark:text-red-300",children:eo.error}):eo.data?.credits?.length?(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between rounded-xl border border-black/10 bg-black/[0.02] px-3 py-2 text-xs text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:[(0,a.jsxs)("span",{children:[eo.data.credits.length," reset credit",1===eo.data.credits.length?"":"s"]}),(0,a.jsxs)("span",{children:[eo.data.availableCount??0," available"]})]}),(0,a.jsx)("div",{className:"overflow-x-auto rounded-xl border border-black/10 dark:border-white/10",children:(0,a.jsxs)("table",{className:"w-full min-w-[560px] text-left text-sm",children:[(0,a.jsx)("thead",{className:"bg-black/[0.03] text-xs uppercase tracking-wide text-text-muted dark:bg-white/[0.04]",children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Status"}),(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Granted At"}),(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Expires At"}),(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Remaining"})]})}),(0,a.jsx)("tbody",{children:eo.data.credits.map((e,t)=>(0,a.jsxs)("tr",{className:"border-t border-black/5 dark:border-white/5",children:[(0,a.jsx)("td",{className:"px-3 py-2",children:(0,a.jsx)("span",{className:"rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium text-primary",children:e.status||"unknown"})}),(0,a.jsx)("td",{className:"px-3 py-2 text-text-muted",children:D(e.grantedAt)}),(0,a.jsx)("td",{className:"px-3 py-2 text-text-primary",children:D(e.expiresAt)}),(0,a.jsx)("td",{className:"px-3 py-2 font-medium text-text-primary",children:function(e){if(!e)return"N/A";let t=new Date(e).getTime()-Date.now();if(!Number.isFinite(t))return"N/A";if(t<=0)return"Expired";let r=Math.ceil(t/36e5),a=Math.floor(r/24),s=r%24;return a>0?`${a}d ${s}h`:`${s}h`}(e.expiresAt)})]},`${e.status}-${e.expiresAt||t}`))})]})})]}):(0,a.jsx)("div",{className:"rounded-xl border border-black/10 bg-black/[0.02] px-3 py-8 text-center text-sm text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:"No reset credit details returned for this account."})})]})}),(0,a.jsx)(N.wI,{isOpen:ec,connection:ex,proxyPools:eh,onSave:eY,onClose:()=>{eu(!1),em(null)}})]}):(0,a.jsx)(k.default,{padding:"lg",children:(0,a.jsxs)("div",{className:"text-center py-12",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[64px] text-text-muted opacity-20",children:e4.icon}),(0,a.jsx)("h3",{className:"mt-4 text-lg font-semibold text-text-primary",children:e4.title}),(0,a.jsx)("p",{className:"mt-2 text-sm text-text-muted max-w-md mx-auto",children:e4.description})]})}):(0,a.jsx)(k.default,{padding:"lg",children:(0,a.jsxs)("div",{className:"text-center py-12",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[64px] text-text-muted opacity-20",children:"cloud_off"}),(0,a.jsx)("h3",{className:"mt-4 text-lg font-semibold text-text-primary",children:"No Providers Connected"}),(0,a.jsx)("p",{className:"mt-2 text-sm text-text-muted max-w-md mx-auto",children:"Connect to providers with OAuth to track your API quota limits and usage."})]})})}}},e=>{e.O(0,[2574,3862,1051,1321,705,5497,8441,3794,7358],()=>e(e.s=15546)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9839],{15536:(e,t,a)=>{"use strict";a.d(t,{Cp:()=>n,Hx:()=>r,Iv:()=>d,Nv:()=>x,RL:()=>c,ev:()=>m,fl:()=>i,hT:()=>s,oX:()=>l,t6:()=>o});let s=["zh-CN","zh-TW"],l=[{icon:"public",title:"Access Anywhere",desc:"Use your API from any network"},{icon:"group",title:"Share Endpoint",desc:"Share URL with team members"},{icon:"code",title:"Use in Cursor/Cline",desc:"Connect AI tools remotely"},{icon:"lock",title:"Encrypted",desc:"End-to-end TLS via Cloudflare"}],r=2e3,n=3e5,i=5e3,o=5,c=1e4,d=5e3,m=[{id:"lite",label:"Lite",desc:"Drop filler, keep grammar"},{id:"full",label:"Full",desc:"Drop articles, fragments OK"},{id:"ultra",label:"Ultra",desc:"Telegraphic, max compression"},{id:"wenyan-lite",label:"文 Lite",desc:"Classical Chinese, light compression",wenyan:!0},{id:"wenyan",label:"文 Full",desc:"Maximum 文言文, 80-90% reduction",wenyan:!0},{id:"wenyan-ultra",label:"文 Ultra",desc:"Extreme classical compression",wenyan:!0}],x=[{id:"lite",label:"Lite",desc:"Build asked, name lazier option"},{id:"full",label:"Full",desc:"Ladder enforced: stdlib/native first"},{id:"ultra",label:"Ultra",desc:"YAGNI extremist, deletion first"}]},21091:(e,t,a)=>{Promise.resolve().then(a.bind(a,61203))},61203:(e,t,a)=>{"use strict";a.d(t,{default:()=>c});var s=a(95155),l=a(12115),r=a(35497),n=a(11059),i=a(73006),o=a(15536);function c(){let[e,t]=(0,l.useState)(!0),[a,c]=(0,l.useState)(!1),[d,m]=(0,l.useState)("http://localhost:8787"),[x,h]=(0,l.useState)({installed:!1,running:!1,python:null,loading:!0}),[p,u]=(0,l.useState)(!1),[f,b]=(0,l.useState)(!1),[g,y]=(0,l.useState)(""),[j,v]=(0,l.useState)(!1),[N,k]=(0,l.useState)("full"),[w,C]=(0,l.useState)(!1),[S,E]=(0,l.useState)("full"),[L,U]=(0,l.useState)("en"),{copied:T,copy:P}=(0,n.C)();(0,l.useEffect)(()=>(U((0,i.kk)()),(0,i.oQ)(()=>U((0,i.kk)()))),[]);let H=o.hT.includes(L),_=H?o.ev:o.ev.filter(e=>!e.wenyan);(0,l.useEffect)(()=>{let e=o.ev.find(e=>e.id===N);e?.wenyan&&!H&&(k("ultra"),A({cavemanLevel:"ultra"}))},[H,N]);let A=async e=>{try{await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}catch(e){console.log("Error updating setting:",e)}},O=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({rtkEnabled:e})})).ok&&t(e)}catch(e){console.log("Error updating rtkEnabled:",e)}},R=async()=>{let e=d.trim()||"http://localhost:8787";m(e),await A({headroomUrl:e}),$()},$=(0,l.useCallback)(async()=>{h(e=>({...e,loading:!0}));try{let e=await fetch("/api/headroom/status",{headers:{"Cache-Control":"no-store"}}),t=await e.json();h({...t,loading:!1})}catch{h({installed:!1,running:!1,python:null,loading:!1})}},[]),I=(0,l.useCallback)(async()=>{y(""),b(!0);try{let e=await fetch("/api/headroom/start",{method:"POST"}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error||"Failed to start proxy");await $()}catch(e){y(e.message)}finally{b(!1)}},[$]),M=(0,l.useCallback)(async()=>{b(!0);try{await fetch("/api/headroom/stop",{method:"POST"}),await $()}finally{b(!1)}},[$]);(0,l.useEffect)(()=>{(async()=>{try{let e=await fetch("/api/settings");if(e.ok){let a=await e.json();t(!1!==a.rtkEnabled),c(!!a.headroomEnabled),m(a.headroomUrl||"http://localhost:8787"),v(!!a.cavemanEnabled),k(a.cavemanLevel||"full"),C(!!a.ponytailEnabled),E(a.ponytailLevel||"full"),$()}}catch{}})()},[$]);let z=!!x.running,D=x.loading?"Checking…":z?"Running":!1===x.localUrl||x.installed?!1!==x.localUrl?"Stopped":"External":"Not installed",F=!1!==x.localUrl,W=!!x.canStart,B=F&&!!x.managedPid;return(0,s.jsxs)("div",{className:"space-y-6 p-6",children:[(0,s.jsxs)(r.Zp,{id:"rtk",children:[(0,s.jsx)("div",{className:"flex items-center justify-between mb-2",children:(0,s.jsxs)("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-primary",children:"bolt"}),"Token Saver"]})}),(0,s.jsxs)("div",{className:"flex items-center justify-between pt-2 pb-4 border-b border-border gap-4",children:[(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("p",{className:"font-medium",children:["Compress tool output"," ",(0,s.jsx)("a",{href:"https://github.com/rtk-ai/rtk",target:"_blank",rel:"noreferrer",className:"text-xs font-normal text-primary underline hover:opacity-80",children:"(RTK)"})]}),(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"git/grep/ls/tree/logs → 60-90% fewer input tokens"})]}),(0,s.jsx)(r.lM,{checked:e,onChange:()=>O(!e)})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between py-4 border-b border-border gap-4 flex-wrap",children:[(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,s.jsxs)("p",{className:"font-medium",children:["Compress context"," ",(0,s.jsx)("a",{href:"https://github.com/chopratejas/headroom",target:"_blank",rel:"noreferrer",className:"text-xs font-normal text-primary underline hover:opacity-80",children:"(Headroom)"})]}),(0,s.jsx)("span",{className:`text-xs px-2 py-0.5 rounded ${z?"bg-success/15 text-success":"bg-warning/15 text-warning"}`,children:D}),(0,s.jsx)("button",{type:"button",onClick:()=>u(!0),className:"text-xs text-primary underline hover:opacity-80",children:z?"Manage":"Setup"})]}),(0,s.jsx)("p",{className:"text-sm text-text-muted mt-1",children:"Compress prompts via /v1/compress before routing to the model"})]}),(0,s.jsx)(r.lM,{checked:a&&z,disabled:!z,onChange:()=>{var e;let t;return e=!a,void(m(t=d.trim()||"http://localhost:8787"),c(e),A({headroomEnabled:e,headroomUrl:t}))}})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between pt-4 gap-4 flex-wrap",children:[(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("p",{className:"font-medium",children:["Compress LLM output"," ",(0,s.jsx)("a",{href:"https://github.com/JuliusBrussee/caveman",target:"_blank",rel:"noreferrer",className:"text-xs font-normal text-primary underline hover:opacity-80",children:"(Caveman)"})]}),(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Terse-style system prompt → ~65% fewer output tokens (up to 87%)"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3 shrink-0",children:[j&&(0,s.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,s.jsx)("div",{className:"flex items-center gap-1.5",children:_.map(e=>(0,s.jsx)("button",{onClick:()=>{var t;k(t=e.id),A({cavemanLevel:t})},className:`px-3 py-1.5 rounded text-xs font-medium border transition-colors ${N===e.id?"bg-primary text-white border-primary":"bg-transparent border-border text-text-muted hover:bg-surface-2"}`,title:e.desc,children:e.label},e.id))}),(0,s.jsx)("p",{className:"text-xs text-primary",children:o.ev.find(e=>e.id===N)?.desc})]}),(0,s.jsx)(r.lM,{checked:j,onChange:()=>{var e;v(e=!j),A({cavemanEnabled:e})}})]})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between pt-4 mt-4 border-t border-border gap-4 flex-wrap",children:[(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("p",{className:"font-medium",children:["Lazy senior dev"," ",(0,s.jsx)("a",{href:"https://github.com/DietrichGebert/ponytail",target:"_blank",rel:"noreferrer",className:"text-xs font-normal text-primary underline hover:opacity-80",children:"(Ponytail)"})]}),(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Bias the model toward minimal code: YAGNI, reuse stdlib, deletion over addition"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3 shrink-0",children:[w&&(0,s.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,s.jsx)("div",{className:"flex items-center gap-1.5",children:o.Nv.map(e=>(0,s.jsx)("button",{onClick:()=>{var t;E(t=e.id),A({ponytailLevel:t})},className:`px-3 py-1.5 rounded text-xs font-medium border transition-colors ${S===e.id?"bg-primary text-white border-primary":"bg-transparent border-border text-text-muted hover:bg-surface-2"}`,title:e.desc,children:e.label},e.id))}),(0,s.jsx)("p",{className:"text-xs text-primary",children:o.Nv.find(e=>e.id===S)?.desc})]}),(0,s.jsx)(r.lM,{checked:w,onChange:()=>{var e;C(e=!w),A({ponytailEnabled:e})}})]})]})]}),(0,s.jsx)(r.aF,{isOpen:p,title:z?"Headroom":"Setup Headroom",onClose:()=>u(!1),children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,s.jsx)("span",{children:"Status"}),(0,s.jsx)("span",{className:z?"text-success":"text-warning",children:D})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:"Proxy URL"}),(0,s.jsx)(r.pd,{value:d,onChange:e=>m(e.target.value),onBlur:R,placeholder:"http://localhost:8787",className:"font-mono text-sm"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Use a local proxy for Start/Stop, or an external Docker sidecar like http://headroom:8787."})]}),B?(0,s.jsx)(r.$n,{onClick:M,variant:"ghost",fullWidth:!0,disabled:f,children:f?"Stopping…":"Stop Headroom"}):z?(0,s.jsx)("p",{className:"text-sm text-success",children:"Headroom proxy is reachable. You can enable the token saver."}):W?(0,s.jsx)(r.$n,{onClick:I,fullWidth:!0,disabled:f,children:f?"Starting…":"Start Headroom"}):F?x.python?(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:"Install then click Start:"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("pre",{className:"flex-1 rounded bg-black/5 dark:bg-white/5 p-2 text-xs font-mono overflow-x-auto",children:'pip install "headroom-ai[proxy]"'}),(0,s.jsx)(r.$n,{size:"sm",variant:"ghost",onClick:()=>P('pip install "headroom-ai[proxy]"'),children:T?"Copied":"Copy"})]})]}):(0,s.jsx)("p",{className:"text-sm text-warning",children:"Python ≥ 3.10 required for local managed mode. Install Python first, or use an external proxy URL."}):(0,s.jsx)("p",{className:"text-sm text-warning",children:"Start Headroom separately at the configured URL, then recheck."}),g&&(0,s.jsx)("p",{className:"text-sm text-warning",children:g}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(r.$n,{onClick:()=>$(),variant:"ghost",fullWidth:!0,children:"Recheck"}),(0,s.jsx)(r.$n,{onClick:()=>u(!1),fullWidth:!0,children:"Done"})]})]})})]})}}},e=>{e.O(0,[2574,3862,1051,1321,705,5497,8441,3794,7358],()=>e(e.s=21091)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3528],{5214:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return r.workAsyncStorageInstance}});let r=n(17828)},17828:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return r}});let r=(0,n(64054).createAsyncLocalStorage)()},21957:(e,t,n)=>{"use strict";function r({moduleIds:e}){return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return r}}),n(95155),n(47650),n(5214),n(2451),n(53887)},41112:(e,t,n)=>{"use strict";function r({reason:e,children:t}){return t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return r}}),n(1980)},52723:(e,t,n)=>{Promise.resolve().then(n.bind(n,69472))},64054:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={bindSnapshot:function(){return i},createAsyncLocalStorage:function(){return o},createSnapshot:function(){return d}};for(var r in n)Object.defineProperty(t,r,{enumerable:!0,get:n[r]});let a=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class s{disable(){throw a}getStore(){}run(){throw a}exit(){throw a}enterWith(){throw a}static bind(e){return e}}let l="u">typeof globalThis&&globalThis.AsyncLocalStorage;function o(){return l?new l:new s}function i(e){return l?l.bind(e):s.bind(e)}function d(){return l?l.snapshot():function(e,...t){return e(...t)}}},68635:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=n(95155),a=n(12115),s=n(41112);function l(e){return{default:e&&"default"in e?e.default:e}}n(21957);let o={loader:()=>Promise.resolve(l(()=>null)),loading:null,ssr:!0},i=function(e){let t={...o,...e},n=(0,a.lazy)(()=>t.loader().then(l)),i=t.loading;function d(e){let l=i?(0,r.jsx)(i,{isLoading:!0,pastDelay:!0,error:null}):null,o=!t.ssr||!!t.loading,d=o?a.Suspense:a.Fragment,c=t.ssr?(0,r.jsxs)(r.Fragment,{children:[null,(0,r.jsx)(n,{...e})]}):(0,r.jsx)(s.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(n,{...e})});return(0,r.jsx)(d,{...o?{fallback:l}:{},children:c})}return d.displayName="LoadableComponent",d}},69472:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(95155),a=n(12115),s=n(35497),l=n(11059),o=n(75707);let i=n.n(o)()(()=>n.e(8202).then(n.bind(n,28202)),{loadableGenerated:{webpack:()=>[28202]},ssr:!1}),d=[{id:1,label:"Client Request",file:"1_req_client.json",lang:"json",desc:"Raw request from client"},{id:2,label:"Source Body",file:"2_req_source.json",lang:"json",desc:"After initial conversion"},{id:3,label:"OpenAI Intermediate",file:"3_req_openai.json",lang:"json",desc:"source → openai"},{id:4,label:"Target Request",file:"4_req_target.json",lang:"json",desc:"openai → target + URL + headers"},{id:5,label:"Provider Response",file:"5_res_provider.txt",lang:"text",desc:"Raw SSE from provider"},{id:6,label:"OpenAI Response",file:"6_res_openai.txt",lang:"text",desc:"target → openai (response)"},{id:7,label:"Client Response",file:"7_res_client.txt",lang:"text",desc:"Final response to client"}],c={minimap:{enabled:!1},fontSize:12,lineNumbers:"on",scrollBeyondLastLine:!1,wordWrap:"on",automaticLayout:!0};function u(){let[e,t]=(0,a.useState)({}),[n,o]=(0,a.useState)({1:!0}),[u,f]=(0,a.useState)({}),[m,x]=(0,a.useState)(null),g=(e,t)=>f(n=>({...n,[e]:t})),h=(e,n)=>t(t=>({...t,[e]:n})),b=e=>o(t=>{let n={};return d.forEach(e=>{n[e.id]=!1}),n[e]=!0,n}),y=async e=>{let t=d.find(t=>t.id===e);g(`load-${e}`,!0);try{let n=await fetch(`/api/translator/load?file=${t.file}`),r=await n.json();r.success?(h(e,r.content),1===e&&await j(r.content)):alert(r.error||"File not found")}catch(e){alert(e.message)}g(`load-${e}`,!1)},j=async e=>{try{let t="string"==typeof e?JSON.parse(e):e,n=await fetch("/api/translator/translate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({step:1,body:t})}),r=await n.json();r.success&&x(r.result)}catch{}},_=(e,t)=>fetch("/api/translator/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({file:e,content:t})}).catch(()=>{}),v=async()=>{g("toOpenAI",!0);try{let t=e[1],n=JSON.parse(t);_("1_req_client.json",t),_("2_req_source.json",JSON.stringify({timestamp:new Date().toISOString(),headers:{},body:n.body||n},null,2));let r=await fetch("/api/translator/translate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({step:2,body:n})}),a=await r.json();if(!a.success)return void alert(a.error);let s=JSON.stringify(a.result.body,null,2);h(3,s),b(3)}catch(e){alert(e.message)}g("toOpenAI",!1)},O=async()=>{g("toTarget",!0);try{let t=e[3],n=JSON.parse(t);_("3_req_openai.json",t);let r=await fetch("/api/translator/translate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({step:3,body:{...n,provider:m?.provider,model:m?.model}})}),a=await r.json();if(!a.success)return void alert(a.error);let s={...a.result,provider:m?.provider,model:m?.model};h(4,JSON.stringify(s,null,2)),b(4)}catch(e){alert(e.message)}g("toTarget",!1)},S=async()=>{g("send",!0);try{let t=e[4],n=JSON.parse(t);_("4_req_target.json",t);let r=n.provider||m?.provider,a=n.model||m?.model;if(!r||!a)return void alert("Missing provider or model. Please run step 1 first to detect them.");let s=await fetch("/api/translator/send",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:r,model:a,body:n.body||n})});if(!s.ok){let e=await s.json().catch(()=>({error:s.statusText}));alert(e.error||"Send failed");return}let l=s.body.getReader(),o=new TextDecoder,i="";for(;;){let{done:e,value:t}=await l.read();if(e)break;i+=o.decode(t,{stream:!0})}h(5,i),b(5),await fetch("/api/translator/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({file:"5_res_provider.txt",content:i})})}catch(e){alert(e.message)}finally{g("send",!1)}},{copy:w}=(0,l.C)(),N=async t=>{e[t]&&w(e[t],`translator-step-${t}`)};return(0,r.jsxs)("div",{className:"p-8 space-y-3",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-2xl font-bold text-text-main",children:"Translator Debug"}),(0,r.jsx)("p",{className:"text-sm text-text-muted mt-1",children:"Replay request flow — matches log files"})]}),m&&(0,r.jsxs)("div",{className:"flex items-center gap-2 flex-wrap justify-end",children:[(0,r.jsx)(p,{label:"src",value:m.sourceFormat,color:"blue"}),(0,r.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,r.jsx)(p,{label:"dst",value:m.targetFormat,color:"orange"}),(0,r.jsx)(p,{label:"provider",value:m.provider,color:"green"}),(0,r.jsx)(p,{label:"model",value:m.model,color:"purple"})]})]}),d.map(t=>{var a;let l=1===(a=t.id)?(0,r.jsx)(s.$n,{size:"sm",icon:"arrow_forward",loading:u.toOpenAI,onClick:v,children:"→ OpenAI"}):3===a?(0,r.jsx)(s.$n,{size:"sm",icon:"arrow_forward",loading:u.toTarget,onClick:O,children:"→ Target"}):4===a?(0,r.jsx)(s.$n,{size:"sm",icon:"send",loading:u.send,onClick:S,children:"Send"}):null,d=!!n[t.id],p=e[t.id]||"";return(0,r.jsx)(s.Zp,{children:(0,r.jsxs)("div",{className:"p-4 space-y-3",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("button",{onClick:()=>{let e;return e=t.id,o(t=>({...t,[e]:!t[e]}))},className:"flex items-center gap-2 flex-1 text-left group",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[20px] text-text-muted group-hover:text-primary transition-colors",children:d?"expand_more":"chevron_right"}),(0,r.jsx)("span",{className:"text-xs font-mono text-text-muted/60 w-4",children:t.id}),(0,r.jsx)("h3",{className:"text-sm font-semibold text-text-main",children:t.label}),(0,r.jsx)("span",{className:"text-xs text-text-muted/60 font-mono",children:t.file}),p&&(0,r.jsxs)("span",{className:"text-xs text-green-500",children:["(",p.length," chars)"]})]}),!d&&(0,r.jsxs)("div",{className:"flex gap-1 shrink-0",children:[(0,r.jsx)(s.$n,{size:"sm",variant:"ghost",icon:"folder_open",loading:u[`load-${t.id}`],onClick:()=>y(t.id)}),l]})]}),d&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"border border-border rounded-lg overflow-hidden",children:(0,r.jsx)(i,{height:"400px",defaultLanguage:"text"===t.lang?"plaintext":"json",value:p,onChange:e=>{h(t.id,e||""),1===t.id&&j(e||"")},theme:"vs-dark",options:c})}),(0,r.jsxs)("div",{className:"flex gap-2 flex-wrap",children:[(0,r.jsx)(s.$n,{size:"sm",variant:"outline",icon:"folder_open",loading:u[`load-${t.id}`],onClick:()=>y(t.id),children:"Load"}),(0,r.jsx)(s.$n,{size:"sm",variant:"outline",icon:"data_object",onClick:()=>(t=>{try{let n=JSON.parse(e[t]);h(t,JSON.stringify(n,null,2))}catch{}})(t.id),children:"Format"}),(0,r.jsx)(s.$n,{size:"sm",variant:"outline",icon:"content_copy",onClick:()=>N(t.id),children:"Copy"}),l]})]})]})},t.id)})]})}function p({label:e,value:t,color:n}){return(0,r.jsxs)("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs font-mono ${{blue:"bg-blue-500/10 text-blue-500",orange:"bg-orange-500/10 text-orange-500",green:"bg-green-500/10 text-green-500",purple:"bg-purple-500/10 text-purple-500"}[n]}`,children:[(0,r.jsxs)("span",{className:"text-text-muted/70 font-sans text-[10px]",children:[e,":"]}),t]})}},75707:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(73623)._(n(68635));function a(e,t){let n={};"function"==typeof e&&(n.loader=e);let a={...n,...t};return(0,r.default)({...a,modules:a.loadableGenerated?.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},e=>{e.O(0,[2574,3862,1051,1321,705,5497,8441,3794,7358],()=>e(e.s=52723)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3883,3888,4010,4061,4245,4286,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,6091,6107,6121,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3883,3888,4010,4061,4245,4286,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,6091,6107,6121,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3883,3888,4010,4061,4245,4286,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,6091,6107,6121,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3883,3888,4010,4061,4245,4286,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,6091,6107,6121,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3883,3888,4010,4061,4245,4286,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,6091,6107,6121,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3883,3888,4010,4061,4245,4286,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,6091,6107,6121,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3883,3888,4010,4061,4245,4286,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,6091,6107,6121,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3883,3888,4010,4061,4245,4286,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,6091,6107,6121,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3883,3888,4010,4061,4245,4286,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,6091,6107,6121,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3883,3888,4010,4061,4245,4286,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,6091,6107,6121,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3883,3888,4010,4061,4245,4286,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,6091,6107,6121,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3883,3888,4010,4061,4245,4286,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,6091,6107,6121,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3883,3888,4010,4061,4245,4286,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,6091,6107,6121,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3883,3888,4010,4061,4245,4286,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,6091,6107,6121,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3883,3888,4010,4061,4245,4286,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,6091,6107,6121,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3883,3888,4010,4061,4245,4286,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,6091,6107,6121,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3883,3888,4010,4061,4245,4286,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,6091,6107,6121,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3883,3888,4010,4061,4245,4286,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,6091,6107,6121,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3883,3888,4010,4061,4245,4286,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,6091,6107,6121,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3883,3888,4010,4061,4245,4286,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,6091,6107,6121,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3883,3888,4010,4061,4245,4286,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,6091,6107,6121,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3883,3888,4010,4061,4245,4286,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,6091,6107,6121,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3883,3888,4010,4061,4245,4286,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,6091,6107,6121,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3883,3888,4010,4061,4245,4286,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,6091,6107,6121,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3883,3888,4010,4061,4245,4286,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,6091,6107,6121,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3883,3888,4010,4061,4245,4286,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,6091,6107,6121,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3883,3888,4010,4061,4245,4286,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,6091,6107,6121,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2198,2284,2296,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3883,3888,4010,4061,4245,4286,4422,4444,4612,4648,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5466,5637,5685,5745,5922,6091,6107,6121,6268,6319,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,7131,7158,7241,7311,7429,7445,7473,7508,7520,7758,7824,7851,8026,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8835,8870,8948,8974,8975,9027,9036,9056,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);