@techysy/10router 1.3.5 → 1.3.6

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 (778) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +10 -9
  3. package/app/.next-cli-build/build-manifest.json +2 -2
  4. package/app/.next-cli-build/routes-manifest.json +6 -0
  5. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
  6. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -2
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page.js +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page_client-reference-manifest.js +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +3 -3
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  53. package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
  54. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  55. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  56. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  57. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  58. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  59. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  60. package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  61. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  62. package/app/.next-cli-build/server/app/_not-found.html +2 -2
  63. package/app/.next-cli-build/server/app/_not-found.rsc +6 -6
  64. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +6 -6
  65. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +6 -6
  66. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  67. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  68. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  69. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  70. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  71. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  72. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  73. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
  74. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
  75. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
  76. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
  77. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  78. package/app/.next-cli-build/server/app/api/auth/verify-password/route.js +1 -1
  79. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +2 -2
  80. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
  81. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  82. package/app/.next-cli-build/server/app/api/cli-tools/claude-profiles/route.js +2 -2
  83. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  84. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
  85. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js +1 -1
  86. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  87. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +1 -1
  88. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  89. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  90. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  91. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
  92. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +1 -1
  93. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
  94. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +1 -1
  95. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  96. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +1 -1
  97. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +1 -1
  98. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  99. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
  100. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  101. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  102. package/app/.next-cli-build/server/app/api/gateway-probe/route.js +1 -0
  103. package/app/.next-cli-build/server/app/api/gateway-probe/route.js.nft.json +1 -0
  104. package/app/.next-cli-build/server/app/api/gateway-probe/route_client-reference-manifest.js +1 -0
  105. package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  106. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  107. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  108. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  109. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  110. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  111. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  112. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  113. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  114. package/app/.next-cli-build/server/app/api/keys/rotate/route.js +1 -1
  115. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  116. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  117. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +2 -2
  118. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
  119. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  120. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  121. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  122. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  123. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  124. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  125. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  126. package/app/.next-cli-build/server/app/api/models/caps/route.js +1 -1
  127. package/app/.next-cli-build/server/app/api/models/custom/bulk/route.js +1 -1
  128. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  129. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  130. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  131. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  132. package/app/.next-cli-build/server/app/api/network/egress-region/route.js +1 -1
  133. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  134. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js +1 -1
  135. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/checkin/route.js +1 -1
  136. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/export/route.js +1 -1
  137. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  138. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  139. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +1 -1
  140. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  141. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  142. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  143. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  144. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  145. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  146. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  147. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  148. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  149. package/app/.next-cli-build/server/app/api/oauth/qoder/checkin/route.js +1 -1
  150. package/app/.next-cli-build/server/app/api/oauth/qoder-cn/checkin/route.js +1 -1
  151. package/app/.next-cli-build/server/app/api/oauth/transfer/export/route.js +1 -1
  152. package/app/.next-cli-build/server/app/api/oauth/transfer/import/route.js +1 -1
  153. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
  154. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +2 -2
  155. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-kill/route.js +1 -1
  156. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-status/route.js +1 -1
  157. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js +2 -2
  158. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
  159. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  160. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  161. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  162. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  163. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  164. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  165. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  166. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  167. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  168. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  169. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  170. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  171. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  172. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  173. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  174. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  175. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  176. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  177. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  178. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  179. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  180. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  181. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
  182. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  183. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  184. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  185. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  186. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  187. package/app/.next-cli-build/server/app/api/security/status/route.js +1 -1
  188. package/app/.next-cli-build/server/app/api/settings/database/import-usage/route.js +1 -1
  189. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  190. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  191. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  192. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  193. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  194. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  195. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  196. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  197. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  198. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  199. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  200. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  201. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  202. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  203. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  204. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  205. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  206. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  207. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +1 -1
  208. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
  209. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  210. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  211. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  212. package/app/.next-cli-build/server/app/api/usage/dashboard/route.js +1 -1
  213. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  214. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  215. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  216. package/app/.next-cli-build/server/app/api/usage/quotas/route.js +1 -1
  217. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  218. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  219. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  220. package/app/.next-cli-build/server/app/api/usage/stream/route.js +1 -1
  221. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  222. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  223. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  224. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  225. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  226. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  227. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  228. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  229. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  230. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  231. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  232. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  233. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  234. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  235. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  236. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  237. package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
  238. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  239. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  240. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  241. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  242. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  243. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  244. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  245. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  246. package/app/.next-cli-build/server/app/api/version/shell-update/route.js +1 -1
  247. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  248. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  249. package/app/.next-cli-build/server/app/callback/page.js +1 -1
  250. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  251. package/app/.next-cli-build/server/app/callback.html +2 -2
  252. package/app/.next-cli-build/server/app/callback.rsc +6 -6
  253. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +6 -6
  254. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  255. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +6 -6
  256. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +2 -2
  257. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +8 -8
  258. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +8 -8
  259. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +8 -8
  260. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  261. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +2 -2
  262. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +8 -8
  263. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +8 -8
  264. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +8 -8
  265. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  266. package/app/.next-cli-build/server/app/dashboard/combos.html +2 -2
  267. package/app/.next-cli-build/server/app/dashboard/combos.rsc +8 -8
  268. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +8 -8
  269. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +8 -8
  270. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  271. package/app/.next-cli-build/server/app/dashboard/endpoint.html +2 -2
  272. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +8 -8
  273. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +8 -8
  274. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +8 -8
  275. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  276. package/app/.next-cli-build/server/app/dashboard/experimental.html +2 -2
  277. package/app/.next-cli-build/server/app/dashboard/experimental.rsc +8 -8
  278. package/app/.next-cli-build/server/app/dashboard/experimental.segments/!KGRhc2hib2FyZCk/dashboard/experimental/__PAGE__.segment.rsc +8 -8
  279. package/app/.next-cli-build/server/app/dashboard/experimental.segments/_full.segment.rsc +8 -8
  280. package/app/.next-cli-build/server/app/dashboard/experimental.segments/_tree.segment.rsc +2 -2
  281. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +2 -2
  282. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +8 -8
  283. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +8 -8
  284. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +8 -8
  285. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  286. package/app/.next-cli-build/server/app/dashboard/mitm.html +2 -2
  287. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +8 -8
  288. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +8 -8
  289. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +8 -8
  290. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  291. package/app/.next-cli-build/server/app/dashboard/profile.html +2 -2
  292. package/app/.next-cli-build/server/app/dashboard/profile.rsc +8 -8
  293. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +8 -8
  294. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +8 -8
  295. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  296. package/app/.next-cli-build/server/app/dashboard/providers/new.html +2 -2
  297. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +8 -8
  298. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +8 -8
  299. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +8 -8
  300. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  301. package/app/.next-cli-build/server/app/dashboard/providers.html +2 -2
  302. package/app/.next-cli-build/server/app/dashboard/providers.rsc +8 -8
  303. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +8 -8
  304. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +8 -8
  305. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  306. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +2 -2
  307. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +8 -8
  308. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +8 -8
  309. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +8 -8
  310. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  311. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +2 -2
  312. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +8 -8
  313. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +8 -8
  314. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +8 -8
  315. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  316. package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  317. package/app/.next-cli-build/server/app/dashboard/quota.rsc +9 -9
  318. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +9 -9
  319. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +9 -9
  320. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  321. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
  322. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  323. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +2 -2
  324. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +6 -6
  325. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +6 -6
  326. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  327. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +6 -6
  328. package/app/.next-cli-build/server/app/dashboard/skills.html +2 -2
  329. package/app/.next-cli-build/server/app/dashboard/skills.rsc +8 -8
  330. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +8 -8
  331. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +8 -8
  332. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  333. package/app/.next-cli-build/server/app/dashboard/token-saver.html +2 -2
  334. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +8 -8
  335. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +8 -8
  336. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +8 -8
  337. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  338. package/app/.next-cli-build/server/app/dashboard/translator.html +2 -2
  339. package/app/.next-cli-build/server/app/dashboard/translator.rsc +8 -8
  340. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +8 -8
  341. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +8 -8
  342. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  343. package/app/.next-cli-build/server/app/dashboard/usage.html +2 -2
  344. package/app/.next-cli-build/server/app/dashboard/usage.rsc +8 -8
  345. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +8 -8
  346. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +8 -8
  347. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  348. package/app/.next-cli-build/server/app/dashboard.html +2 -2
  349. package/app/.next-cli-build/server/app/dashboard.rsc +8 -8
  350. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +8 -8
  351. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +8 -8
  352. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  353. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  354. package/app/.next-cli-build/server/app/index.html +1 -1
  355. package/app/.next-cli-build/server/app/index.rsc +6 -6
  356. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +6 -6
  357. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +6 -6
  358. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  359. package/app/.next-cli-build/server/app/landing/page.js +1 -1
  360. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  361. package/app/.next-cli-build/server/app/landing.html +2 -2
  362. package/app/.next-cli-build/server/app/landing.rsc +6 -6
  363. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +6 -6
  364. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  365. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +6 -6
  366. package/app/.next-cli-build/server/app/login/page.js +1 -1
  367. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  368. package/app/.next-cli-build/server/app/login.html +2 -2
  369. package/app/.next-cli-build/server/app/login.rsc +7 -7
  370. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +7 -7
  371. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  372. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +7 -7
  373. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  374. package/app/.next-cli-build/server/app/page.js +1 -1
  375. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  376. package/app/.next-cli-build/server/app-paths-manifest.json +10 -9
  377. package/app/.next-cli-build/server/chunks/3433.js +12 -12
  378. package/app/.next-cli-build/server/chunks/4746.js +1 -1
  379. package/app/.next-cli-build/server/chunks/5210.js +9 -9
  380. package/app/.next-cli-build/server/chunks/6492.js +1 -1
  381. package/app/.next-cli-build/server/chunks/6960.js +1 -1
  382. package/app/.next-cli-build/server/chunks/7274.js +1 -1
  383. package/app/.next-cli-build/server/chunks/8172.js +1 -1
  384. package/app/.next-cli-build/server/chunks/8410.js +1 -1
  385. package/app/.next-cli-build/server/chunks/8595.js +1 -1
  386. package/app/.next-cli-build/server/chunks/8749.js +3 -3
  387. package/app/.next-cli-build/server/chunks/9046.js +1 -1
  388. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  389. package/app/.next-cli-build/server/pages/404.html +2 -2
  390. package/app/.next-cli-build/server/pages/500.html +1 -1
  391. package/app/.next-cli-build/static/chunks/{1321-daa1cffb0e36b547.js → 1321-7d951e8069135f2f.js} +1 -1
  392. package/app/.next-cli-build/static/chunks/5497-dce0ac54d3e8f165.js +7 -0
  393. package/app/.next-cli-build/static/chunks/app/_global-error/page-7a2b8ef7454a1a22.js +1 -0
  394. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-7a2b8ef7454a1a22.js +1 -0
  395. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-7a2b8ef7454a1a22.js +1 -0
  396. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-7a2b8ef7454a1a22.js +1 -0
  397. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-7a2b8ef7454a1a22.js +1 -0
  398. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-7a2b8ef7454a1a22.js +1 -0
  399. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-7a2b8ef7454a1a22.js +1 -0
  400. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-7a2b8ef7454a1a22.js +1 -0
  401. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-7a2b8ef7454a1a22.js +1 -0
  402. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-7a2b8ef7454a1a22.js +1 -0
  403. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-7a2b8ef7454a1a22.js +1 -0
  404. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-7a2b8ef7454a1a22.js +1 -0
  405. package/app/.next-cli-build/static/chunks/app/api/auth/verify-password/route-7a2b8ef7454a1a22.js +1 -0
  406. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-7a2b8ef7454a1a22.js +1 -0
  407. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-7a2b8ef7454a1a22.js +1 -0
  408. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-7a2b8ef7454a1a22.js +1 -0
  409. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-profiles/route-7a2b8ef7454a1a22.js +1 -0
  410. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-7a2b8ef7454a1a22.js +1 -0
  411. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-7a2b8ef7454a1a22.js +1 -0
  412. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-7a2b8ef7454a1a22.js +1 -0
  413. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-7a2b8ef7454a1a22.js +1 -0
  414. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-7a2b8ef7454a1a22.js +1 -0
  415. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-7a2b8ef7454a1a22.js +1 -0
  416. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-7a2b8ef7454a1a22.js +1 -0
  417. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-7a2b8ef7454a1a22.js +1 -0
  418. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-7a2b8ef7454a1a22.js +1 -0
  419. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-7a2b8ef7454a1a22.js +1 -0
  420. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-7a2b8ef7454a1a22.js +1 -0
  421. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-7a2b8ef7454a1a22.js +1 -0
  422. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-7a2b8ef7454a1a22.js +1 -0
  423. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-7a2b8ef7454a1a22.js +1 -0
  424. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-7a2b8ef7454a1a22.js +1 -0
  425. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-7a2b8ef7454a1a22.js +1 -0
  426. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-7a2b8ef7454a1a22.js +1 -0
  427. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-7a2b8ef7454a1a22.js +1 -0
  428. package/app/.next-cli-build/static/chunks/app/api/combos/route-7a2b8ef7454a1a22.js +1 -0
  429. package/app/.next-cli-build/static/chunks/app/api/gateway-probe/route-7a2b8ef7454a1a22.js +1 -0
  430. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-7a2b8ef7454a1a22.js +1 -0
  431. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-7a2b8ef7454a1a22.js +1 -0
  432. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-7a2b8ef7454a1a22.js +1 -0
  433. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-7a2b8ef7454a1a22.js +1 -0
  434. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-7a2b8ef7454a1a22.js +1 -0
  435. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-7a2b8ef7454a1a22.js +1 -0
  436. package/app/.next-cli-build/static/chunks/app/api/health/route-7a2b8ef7454a1a22.js +1 -0
  437. package/app/.next-cli-build/static/chunks/app/api/init/route-7a2b8ef7454a1a22.js +1 -0
  438. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-7a2b8ef7454a1a22.js +1 -0
  439. package/app/.next-cli-build/static/chunks/app/api/keys/rotate/route-7a2b8ef7454a1a22.js +1 -0
  440. package/app/.next-cli-build/static/chunks/app/api/keys/route-7a2b8ef7454a1a22.js +1 -0
  441. package/app/.next-cli-build/static/chunks/app/api/locale/route-7a2b8ef7454a1a22.js +1 -0
  442. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-7a2b8ef7454a1a22.js +1 -0
  443. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-7a2b8ef7454a1a22.js +1 -0
  444. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-7a2b8ef7454a1a22.js +1 -0
  445. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-7a2b8ef7454a1a22.js +1 -0
  446. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-7a2b8ef7454a1a22.js +1 -0
  447. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-7a2b8ef7454a1a22.js +1 -0
  448. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-7a2b8ef7454a1a22.js +1 -0
  449. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-7a2b8ef7454a1a22.js +1 -0
  450. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-7a2b8ef7454a1a22.js +1 -0
  451. package/app/.next-cli-build/static/chunks/app/api/models/caps/route-7a2b8ef7454a1a22.js +1 -0
  452. package/app/.next-cli-build/static/chunks/app/api/models/custom/bulk/route-7a2b8ef7454a1a22.js +1 -0
  453. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-7a2b8ef7454a1a22.js +1 -0
  454. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-7a2b8ef7454a1a22.js +1 -0
  455. package/app/.next-cli-build/static/chunks/app/api/models/route-7a2b8ef7454a1a22.js +1 -0
  456. package/app/.next-cli-build/static/chunks/app/api/models/test/route-7a2b8ef7454a1a22.js +1 -0
  457. package/app/.next-cli-build/static/chunks/app/api/network/egress-region/route-7a2b8ef7454a1a22.js +1 -0
  458. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-7a2b8ef7454a1a22.js +1 -0
  459. package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-7a2b8ef7454a1a22.js +1 -0
  460. package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/checkin/route-7a2b8ef7454a1a22.js +1 -0
  461. package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/export/route-7a2b8ef7454a1a22.js +1 -0
  462. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-7a2b8ef7454a1a22.js +1 -0
  463. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-7a2b8ef7454a1a22.js +1 -0
  464. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-7a2b8ef7454a1a22.js +1 -0
  465. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-7a2b8ef7454a1a22.js +1 -0
  466. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-7a2b8ef7454a1a22.js +1 -0
  467. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-7a2b8ef7454a1a22.js +1 -0
  468. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-7a2b8ef7454a1a22.js +1 -0
  469. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-7a2b8ef7454a1a22.js +1 -0
  470. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-7a2b8ef7454a1a22.js +1 -0
  471. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-7a2b8ef7454a1a22.js +1 -0
  472. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-7a2b8ef7454a1a22.js +1 -0
  473. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-7a2b8ef7454a1a22.js +1 -0
  474. package/app/.next-cli-build/static/chunks/app/api/oauth/qoder/checkin/route-7a2b8ef7454a1a22.js +1 -0
  475. package/app/.next-cli-build/static/chunks/app/api/oauth/qoder-cn/checkin/route-7a2b8ef7454a1a22.js +1 -0
  476. package/app/.next-cli-build/static/chunks/app/api/oauth/transfer/export/route-7a2b8ef7454a1a22.js +1 -0
  477. package/app/.next-cli-build/static/chunks/app/api/oauth/transfer/import/route-7a2b8ef7454a1a22.js +1 -0
  478. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-7a2b8ef7454a1a22.js +1 -0
  479. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-7a2b8ef7454a1a22.js +1 -0
  480. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/desktop-kill/route-7a2b8ef7454a1a22.js +1 -0
  481. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/desktop-status/route-7a2b8ef7454a1a22.js +1 -0
  482. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-7a2b8ef7454a1a22.js +1 -0
  483. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-7a2b8ef7454a1a22.js +1 -0
  484. package/app/.next-cli-build/static/chunks/app/api/pricing/route-7a2b8ef7454a1a22.js +1 -0
  485. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-7a2b8ef7454a1a22.js +1 -0
  486. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-7a2b8ef7454a1a22.js +1 -0
  487. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-7a2b8ef7454a1a22.js +1 -0
  488. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-7a2b8ef7454a1a22.js +1 -0
  489. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-7a2b8ef7454a1a22.js +1 -0
  490. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-7a2b8ef7454a1a22.js +1 -0
  491. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-7a2b8ef7454a1a22.js +1 -0
  492. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-7a2b8ef7454a1a22.js +1 -0
  493. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-7a2b8ef7454a1a22.js +1 -0
  494. package/app/.next-cli-build/static/chunks/app/api/providers/route-7a2b8ef7454a1a22.js +1 -0
  495. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-7a2b8ef7454a1a22.js +1 -0
  496. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-7a2b8ef7454a1a22.js +1 -0
  497. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-7a2b8ef7454a1a22.js +1 -0
  498. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-7a2b8ef7454a1a22.js +1 -0
  499. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-7a2b8ef7454a1a22.js +1 -0
  500. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-7a2b8ef7454a1a22.js +1 -0
  501. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-7a2b8ef7454a1a22.js +1 -0
  502. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-7a2b8ef7454a1a22.js +1 -0
  503. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-7a2b8ef7454a1a22.js +1 -0
  504. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-7a2b8ef7454a1a22.js +1 -0
  505. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-7a2b8ef7454a1a22.js +1 -0
  506. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-7a2b8ef7454a1a22.js +1 -0
  507. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-7a2b8ef7454a1a22.js +1 -0
  508. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-7a2b8ef7454a1a22.js +1 -0
  509. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-7a2b8ef7454a1a22.js +1 -0
  510. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-7a2b8ef7454a1a22.js +1 -0
  511. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-7a2b8ef7454a1a22.js +1 -0
  512. package/app/.next-cli-build/static/chunks/app/api/security/status/route-7a2b8ef7454a1a22.js +1 -0
  513. package/app/.next-cli-build/static/chunks/app/api/settings/database/import-usage/route-7a2b8ef7454a1a22.js +1 -0
  514. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-7a2b8ef7454a1a22.js +1 -0
  515. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-7a2b8ef7454a1a22.js +1 -0
  516. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-7a2b8ef7454a1a22.js +1 -0
  517. package/app/.next-cli-build/static/chunks/app/api/settings/route-7a2b8ef7454a1a22.js +1 -0
  518. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-7a2b8ef7454a1a22.js +1 -0
  519. package/app/.next-cli-build/static/chunks/app/api/tags/route-7a2b8ef7454a1a22.js +1 -0
  520. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-7a2b8ef7454a1a22.js +1 -0
  521. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-7a2b8ef7454a1a22.js +1 -0
  522. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-7a2b8ef7454a1a22.js +1 -0
  523. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-7a2b8ef7454a1a22.js +1 -0
  524. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-7a2b8ef7454a1a22.js +1 -0
  525. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-7a2b8ef7454a1a22.js +1 -0
  526. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-7a2b8ef7454a1a22.js +1 -0
  527. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-7a2b8ef7454a1a22.js +1 -0
  528. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-7a2b8ef7454a1a22.js +1 -0
  529. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-7a2b8ef7454a1a22.js +1 -0
  530. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-7a2b8ef7454a1a22.js +1 -0
  531. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-7a2b8ef7454a1a22.js +1 -0
  532. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-7a2b8ef7454a1a22.js +1 -0
  533. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-7a2b8ef7454a1a22.js +1 -0
  534. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-7a2b8ef7454a1a22.js +1 -0
  535. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-7a2b8ef7454a1a22.js +1 -0
  536. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-7a2b8ef7454a1a22.js +1 -0
  537. package/app/.next-cli-build/static/chunks/app/api/usage/dashboard/route-7a2b8ef7454a1a22.js +1 -0
  538. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-7a2b8ef7454a1a22.js +1 -0
  539. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-7a2b8ef7454a1a22.js +1 -0
  540. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-7a2b8ef7454a1a22.js +1 -0
  541. package/app/.next-cli-build/static/chunks/app/api/usage/quotas/route-7a2b8ef7454a1a22.js +1 -0
  542. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-7a2b8ef7454a1a22.js +1 -0
  543. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-7a2b8ef7454a1a22.js +1 -0
  544. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-7a2b8ef7454a1a22.js +1 -0
  545. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-7a2b8ef7454a1a22.js +1 -0
  546. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-7a2b8ef7454a1a22.js +1 -0
  547. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-7a2b8ef7454a1a22.js +1 -0
  548. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-7a2b8ef7454a1a22.js +1 -0
  549. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-7a2b8ef7454a1a22.js +1 -0
  550. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-7a2b8ef7454a1a22.js +1 -0
  551. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-7a2b8ef7454a1a22.js +1 -0
  552. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-7a2b8ef7454a1a22.js +1 -0
  553. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-7a2b8ef7454a1a22.js +1 -0
  554. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-7a2b8ef7454a1a22.js +1 -0
  555. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-7a2b8ef7454a1a22.js +1 -0
  556. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-7a2b8ef7454a1a22.js +1 -0
  557. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-7a2b8ef7454a1a22.js +1 -0
  558. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-7a2b8ef7454a1a22.js +1 -0
  559. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-7a2b8ef7454a1a22.js +1 -0
  560. package/app/.next-cli-build/static/chunks/app/api/v1/route-7a2b8ef7454a1a22.js +1 -0
  561. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-7a2b8ef7454a1a22.js +1 -0
  562. package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-7a2b8ef7454a1a22.js +1 -0
  563. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-7a2b8ef7454a1a22.js +1 -0
  564. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-7a2b8ef7454a1a22.js +1 -0
  565. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-7a2b8ef7454a1a22.js +1 -0
  566. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-7a2b8ef7454a1a22.js +1 -0
  567. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-7a2b8ef7454a1a22.js +1 -0
  568. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-7a2b8ef7454a1a22.js +1 -0
  569. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-7a2b8ef7454a1a22.js +1 -0
  570. package/app/.next-cli-build/static/chunks/app/api/version/route-7a2b8ef7454a1a22.js +1 -0
  571. package/app/.next-cli-build/static/chunks/app/api/version/shell-update/route-7a2b8ef7454a1a22.js +1 -0
  572. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-7a2b8ef7454a1a22.js +1 -0
  573. package/app/.next-cli-build/static/chunks/app/api/version/update/route-7a2b8ef7454a1a22.js +1 -0
  574. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-7a2b8ef7454a1a22.js +1 -0
  575. package/app/.next-cli-build/static/chunks/app/page-7a2b8ef7454a1a22.js +1 -0
  576. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-7a2b8ef7454a1a22.js +1 -0
  577. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-7a2b8ef7454a1a22.js +1 -0
  578. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-7a2b8ef7454a1a22.js +1 -0
  579. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-7a2b8ef7454a1a22.js +1 -0
  580. package/app/.next-cli-build/static/css/b80ae6e58b63fd53.css +1 -0
  581. package/app/.next-cli-build/static/eqWYkzNeaSBj4mkYsjYbh/_buildManifest.js +1 -0
  582. package/app/package.json +1 -1
  583. package/app/public/i18n/changelog/en.md +10 -0
  584. package/app/public/i18n/changelog/zh-CN.md +10 -0
  585. package/app/public/i18n/changelog/zh-TW.md +10 -0
  586. package/app/public/i18n/literals/zh-CN.json +6 -0
  587. package/app/public/i18n/literals/zh-TW.json +6 -0
  588. package/package.json +1 -1
  589. package/app/.next-cli-build/static/chunks/5497-1b7804fcf8283e96.js +0 -7
  590. package/app/.next-cli-build/static/chunks/app/_global-error/page-1058a44b968ee535.js +0 -1
  591. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-1058a44b968ee535.js +0 -1
  592. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-1058a44b968ee535.js +0 -1
  593. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-1058a44b968ee535.js +0 -1
  594. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-1058a44b968ee535.js +0 -1
  595. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-1058a44b968ee535.js +0 -1
  596. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-1058a44b968ee535.js +0 -1
  597. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-1058a44b968ee535.js +0 -1
  598. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-1058a44b968ee535.js +0 -1
  599. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-1058a44b968ee535.js +0 -1
  600. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-1058a44b968ee535.js +0 -1
  601. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-1058a44b968ee535.js +0 -1
  602. package/app/.next-cli-build/static/chunks/app/api/auth/verify-password/route-1058a44b968ee535.js +0 -1
  603. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-1058a44b968ee535.js +0 -1
  604. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-1058a44b968ee535.js +0 -1
  605. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-1058a44b968ee535.js +0 -1
  606. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-profiles/route-1058a44b968ee535.js +0 -1
  607. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-1058a44b968ee535.js +0 -1
  608. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-1058a44b968ee535.js +0 -1
  609. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-1058a44b968ee535.js +0 -1
  610. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-1058a44b968ee535.js +0 -1
  611. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-1058a44b968ee535.js +0 -1
  612. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-1058a44b968ee535.js +0 -1
  613. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-1058a44b968ee535.js +0 -1
  614. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-1058a44b968ee535.js +0 -1
  615. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-1058a44b968ee535.js +0 -1
  616. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-1058a44b968ee535.js +0 -1
  617. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-1058a44b968ee535.js +0 -1
  618. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-1058a44b968ee535.js +0 -1
  619. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-1058a44b968ee535.js +0 -1
  620. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-1058a44b968ee535.js +0 -1
  621. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-1058a44b968ee535.js +0 -1
  622. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-1058a44b968ee535.js +0 -1
  623. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-1058a44b968ee535.js +0 -1
  624. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-1058a44b968ee535.js +0 -1
  625. package/app/.next-cli-build/static/chunks/app/api/combos/route-1058a44b968ee535.js +0 -1
  626. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-1058a44b968ee535.js +0 -1
  627. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-1058a44b968ee535.js +0 -1
  628. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-1058a44b968ee535.js +0 -1
  629. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-1058a44b968ee535.js +0 -1
  630. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-1058a44b968ee535.js +0 -1
  631. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-1058a44b968ee535.js +0 -1
  632. package/app/.next-cli-build/static/chunks/app/api/health/route-1058a44b968ee535.js +0 -1
  633. package/app/.next-cli-build/static/chunks/app/api/init/route-1058a44b968ee535.js +0 -1
  634. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-1058a44b968ee535.js +0 -1
  635. package/app/.next-cli-build/static/chunks/app/api/keys/rotate/route-1058a44b968ee535.js +0 -1
  636. package/app/.next-cli-build/static/chunks/app/api/keys/route-1058a44b968ee535.js +0 -1
  637. package/app/.next-cli-build/static/chunks/app/api/locale/route-1058a44b968ee535.js +0 -1
  638. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-1058a44b968ee535.js +0 -1
  639. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-1058a44b968ee535.js +0 -1
  640. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-1058a44b968ee535.js +0 -1
  641. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-1058a44b968ee535.js +0 -1
  642. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-1058a44b968ee535.js +0 -1
  643. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-1058a44b968ee535.js +0 -1
  644. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-1058a44b968ee535.js +0 -1
  645. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-1058a44b968ee535.js +0 -1
  646. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-1058a44b968ee535.js +0 -1
  647. package/app/.next-cli-build/static/chunks/app/api/models/caps/route-1058a44b968ee535.js +0 -1
  648. package/app/.next-cli-build/static/chunks/app/api/models/custom/bulk/route-1058a44b968ee535.js +0 -1
  649. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-1058a44b968ee535.js +0 -1
  650. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-1058a44b968ee535.js +0 -1
  651. package/app/.next-cli-build/static/chunks/app/api/models/route-1058a44b968ee535.js +0 -1
  652. package/app/.next-cli-build/static/chunks/app/api/models/test/route-1058a44b968ee535.js +0 -1
  653. package/app/.next-cli-build/static/chunks/app/api/network/egress-region/route-1058a44b968ee535.js +0 -1
  654. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-1058a44b968ee535.js +0 -1
  655. package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-1058a44b968ee535.js +0 -1
  656. package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/checkin/route-1058a44b968ee535.js +0 -1
  657. package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/export/route-1058a44b968ee535.js +0 -1
  658. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-1058a44b968ee535.js +0 -1
  659. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-1058a44b968ee535.js +0 -1
  660. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-1058a44b968ee535.js +0 -1
  661. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-1058a44b968ee535.js +0 -1
  662. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-1058a44b968ee535.js +0 -1
  663. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-1058a44b968ee535.js +0 -1
  664. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-1058a44b968ee535.js +0 -1
  665. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-1058a44b968ee535.js +0 -1
  666. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-1058a44b968ee535.js +0 -1
  667. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-1058a44b968ee535.js +0 -1
  668. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-1058a44b968ee535.js +0 -1
  669. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-1058a44b968ee535.js +0 -1
  670. package/app/.next-cli-build/static/chunks/app/api/oauth/qoder/checkin/route-1058a44b968ee535.js +0 -1
  671. package/app/.next-cli-build/static/chunks/app/api/oauth/qoder-cn/checkin/route-1058a44b968ee535.js +0 -1
  672. package/app/.next-cli-build/static/chunks/app/api/oauth/transfer/export/route-1058a44b968ee535.js +0 -1
  673. package/app/.next-cli-build/static/chunks/app/api/oauth/transfer/import/route-1058a44b968ee535.js +0 -1
  674. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-1058a44b968ee535.js +0 -1
  675. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-1058a44b968ee535.js +0 -1
  676. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/desktop-kill/route-1058a44b968ee535.js +0 -1
  677. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/desktop-status/route-1058a44b968ee535.js +0 -1
  678. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-1058a44b968ee535.js +0 -1
  679. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-1058a44b968ee535.js +0 -1
  680. package/app/.next-cli-build/static/chunks/app/api/pricing/route-1058a44b968ee535.js +0 -1
  681. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-1058a44b968ee535.js +0 -1
  682. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-1058a44b968ee535.js +0 -1
  683. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-1058a44b968ee535.js +0 -1
  684. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-1058a44b968ee535.js +0 -1
  685. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-1058a44b968ee535.js +0 -1
  686. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-1058a44b968ee535.js +0 -1
  687. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-1058a44b968ee535.js +0 -1
  688. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-1058a44b968ee535.js +0 -1
  689. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-1058a44b968ee535.js +0 -1
  690. package/app/.next-cli-build/static/chunks/app/api/providers/route-1058a44b968ee535.js +0 -1
  691. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-1058a44b968ee535.js +0 -1
  692. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-1058a44b968ee535.js +0 -1
  693. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-1058a44b968ee535.js +0 -1
  694. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-1058a44b968ee535.js +0 -1
  695. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-1058a44b968ee535.js +0 -1
  696. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-1058a44b968ee535.js +0 -1
  697. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-1058a44b968ee535.js +0 -1
  698. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-1058a44b968ee535.js +0 -1
  699. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-1058a44b968ee535.js +0 -1
  700. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-1058a44b968ee535.js +0 -1
  701. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-1058a44b968ee535.js +0 -1
  702. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-1058a44b968ee535.js +0 -1
  703. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-1058a44b968ee535.js +0 -1
  704. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-1058a44b968ee535.js +0 -1
  705. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-1058a44b968ee535.js +0 -1
  706. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-1058a44b968ee535.js +0 -1
  707. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-1058a44b968ee535.js +0 -1
  708. package/app/.next-cli-build/static/chunks/app/api/security/status/route-1058a44b968ee535.js +0 -1
  709. package/app/.next-cli-build/static/chunks/app/api/settings/database/import-usage/route-1058a44b968ee535.js +0 -1
  710. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-1058a44b968ee535.js +0 -1
  711. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-1058a44b968ee535.js +0 -1
  712. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-1058a44b968ee535.js +0 -1
  713. package/app/.next-cli-build/static/chunks/app/api/settings/route-1058a44b968ee535.js +0 -1
  714. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-1058a44b968ee535.js +0 -1
  715. package/app/.next-cli-build/static/chunks/app/api/tags/route-1058a44b968ee535.js +0 -1
  716. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-1058a44b968ee535.js +0 -1
  717. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-1058a44b968ee535.js +0 -1
  718. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-1058a44b968ee535.js +0 -1
  719. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-1058a44b968ee535.js +0 -1
  720. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-1058a44b968ee535.js +0 -1
  721. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-1058a44b968ee535.js +0 -1
  722. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-1058a44b968ee535.js +0 -1
  723. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-1058a44b968ee535.js +0 -1
  724. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-1058a44b968ee535.js +0 -1
  725. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-1058a44b968ee535.js +0 -1
  726. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-1058a44b968ee535.js +0 -1
  727. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-1058a44b968ee535.js +0 -1
  728. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-1058a44b968ee535.js +0 -1
  729. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-1058a44b968ee535.js +0 -1
  730. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-1058a44b968ee535.js +0 -1
  731. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-1058a44b968ee535.js +0 -1
  732. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-1058a44b968ee535.js +0 -1
  733. package/app/.next-cli-build/static/chunks/app/api/usage/dashboard/route-1058a44b968ee535.js +0 -1
  734. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-1058a44b968ee535.js +0 -1
  735. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-1058a44b968ee535.js +0 -1
  736. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-1058a44b968ee535.js +0 -1
  737. package/app/.next-cli-build/static/chunks/app/api/usage/quotas/route-1058a44b968ee535.js +0 -1
  738. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-1058a44b968ee535.js +0 -1
  739. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-1058a44b968ee535.js +0 -1
  740. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-1058a44b968ee535.js +0 -1
  741. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-1058a44b968ee535.js +0 -1
  742. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-1058a44b968ee535.js +0 -1
  743. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-1058a44b968ee535.js +0 -1
  744. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-1058a44b968ee535.js +0 -1
  745. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-1058a44b968ee535.js +0 -1
  746. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-1058a44b968ee535.js +0 -1
  747. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-1058a44b968ee535.js +0 -1
  748. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-1058a44b968ee535.js +0 -1
  749. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-1058a44b968ee535.js +0 -1
  750. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-1058a44b968ee535.js +0 -1
  751. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-1058a44b968ee535.js +0 -1
  752. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-1058a44b968ee535.js +0 -1
  753. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-1058a44b968ee535.js +0 -1
  754. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-1058a44b968ee535.js +0 -1
  755. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-1058a44b968ee535.js +0 -1
  756. package/app/.next-cli-build/static/chunks/app/api/v1/route-1058a44b968ee535.js +0 -1
  757. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-1058a44b968ee535.js +0 -1
  758. package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-1058a44b968ee535.js +0 -1
  759. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-1058a44b968ee535.js +0 -1
  760. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-1058a44b968ee535.js +0 -1
  761. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-1058a44b968ee535.js +0 -1
  762. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-1058a44b968ee535.js +0 -1
  763. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-1058a44b968ee535.js +0 -1
  764. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-1058a44b968ee535.js +0 -1
  765. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-1058a44b968ee535.js +0 -1
  766. package/app/.next-cli-build/static/chunks/app/api/version/route-1058a44b968ee535.js +0 -1
  767. package/app/.next-cli-build/static/chunks/app/api/version/shell-update/route-1058a44b968ee535.js +0 -1
  768. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-1058a44b968ee535.js +0 -1
  769. package/app/.next-cli-build/static/chunks/app/api/version/update/route-1058a44b968ee535.js +0 -1
  770. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-1058a44b968ee535.js +0 -1
  771. package/app/.next-cli-build/static/chunks/app/page-1058a44b968ee535.js +0 -1
  772. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-1058a44b968ee535.js +0 -1
  773. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-1058a44b968ee535.js +0 -1
  774. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-1058a44b968ee535.js +0 -1
  775. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-1058a44b968ee535.js +0 -1
  776. package/app/.next-cli-build/static/css/29b44146dde595c6.css +0 -1
  777. package/app/.next-cli-build/static/nGfjkKzxmtvk6d_Zhtya7/_buildManifest.js +0 -1
  778. /package/app/.next-cli-build/static/{nGfjkKzxmtvk6d_Zhtya7 → eqWYkzNeaSBj4mkYsjYbh}/_ssgManifest.js +0 -0
@@ -5,7 +5,7 @@
5
5
  VALUES(?, ?, ?, ?, ?, ?)
6
6
  ON CONFLICT(id) DO UPDATE SET
7
7
  isActive=excluded.isActive, testStatus=excluded.testStatus,
8
- data=excluded.data, updatedAt=excluded.updatedAt`,[c.id,c.isActive,c.testStatus,c.data,c.createdAt,c.updatedAt])}async function m(a={}){let b=await (0,d.cK)(),c=[],e=[];void 0!==a.isActive&&(c.push("isActive = ?"),e.push(+!!a.isActive)),a.testStatus&&(c.push("testStatus = ?"),e.push(a.testStatus));let f=`SELECT * FROM proxyPools${c.length?` WHERE ${c.join(" AND ")}`:""}`,g=b.all(f,e).map(k);return g.sort((a,b)=>new Date(b.updatedAt||0)-new Date(a.updatedAt||0)),g}async function n(a){return k((await (0,d.cK)()).get("SELECT * FROM proxyPools WHERE id = ?",[a]))}async function o(a){let b=await (0,d.cK)(),c=new Date().toISOString(),e={id:a.id||(0,j.A)(),name:a.name,proxyUrl:a.proxyUrl,noProxy:a.noProxy||"",type:a.type||"http",isActive:void 0===a.isActive||a.isActive,strictProxy:!0===a.strictProxy,testStatus:a.testStatus||"unknown",lastTestedAt:a.lastTestedAt||null,lastError:a.lastError||null,createdAt:c,updatedAt:c};return l(b,e),e}async function p(a,b){let c=await (0,d.cK)(),e=null;return c.transaction(()=>{let d=c.get("SELECT * FROM proxyPools WHERE id = ?",[a]);if(!d)return;let f={...k(d),...b,updatedAt:new Date().toISOString()};l(c,f),e=f}),e}async function q(a){let b=await (0,d.cK)(),c=null;return b.transaction(()=>{let d=b.get("SELECT * FROM proxyPools WHERE id = ?",[a]);d&&(c=k(d),b.run("DELETE FROM proxyPools WHERE id = ?",[a]))}),c}var r=c(74452);function s(a){return a?{id:a.id,name:a.name,kind:a.kind,models:(0,e.q)(a.models,[]),createdAt:a.createdAt,updatedAt:a.updatedAt}:null}async function t(){return(await (0,d.cK)()).all("SELECT * FROM combos ORDER BY createdAt ASC").map(s)}async function u(a){return s((await (0,d.cK)()).get("SELECT * FROM combos WHERE id = ?",[a]))}async function v(a){return s((await (0,d.cK)()).get("SELECT * FROM combos WHERE name = ?",[a]))}async function w(a){let b=await (0,d.cK)(),c=new Date().toISOString(),f={id:(0,j.A)(),name:a.name,kind:a.kind||null,models:a.models||[],createdAt:c,updatedAt:c};return b.run("INSERT INTO combos(id, name, kind, models, createdAt, updatedAt) VALUES(?, ?, ?, ?, ?, ?)",[f.id,f.name,f.kind,(0,e.s)(f.models),f.createdAt,f.updatedAt]),f}async function x(a,b){let c=await (0,d.cK)(),f=null;return c.transaction(()=>{let d=c.get("SELECT * FROM combos WHERE id = ?",[a]);if(!d)return;let g={...s(d),...b,updatedAt:new Date().toISOString()};c.run("UPDATE combos SET name = ?, kind = ?, models = ?, updatedAt = ? WHERE id = ?",[g.name,g.kind,(0,e.s)(g.models||[]),g.updatedAt,a]),f=g}),f}async function y(a){let b=(await (0,d.cK)()).run("DELETE FROM combos WHERE id = ?",[a]);return(b?.changes??0)>0}var z=c(9460),A=c(97914),B=c(29424);let C="modelCaps",D=a=>{let b="string"==typeof a?Number(a):a;return Number.isFinite(b)&&b>0?Math.floor(b):null};async function E(a){let{toCanonical:b}=await (0,B.qi)();return b.get(a)||a}async function F(a){if(!a)return{};let b=await (0,d.cK)(),c=await E(a),f=b.all("SELECT key, value FROM kv WHERE scope = ?",[C]),g={};for(let a of f){let b=a.key.indexOf("|");if(b<=0)continue;let d=a.key.slice(0,b),f=a.key.slice(b+1);if(await E(d)!==c)continue;let h=(0,e.q)(a.value,null);h&&(Number.isFinite(h.contextWindow)||Number.isFinite(h.maxOutput))&&(g[f]=h)}return g}async function G(){let a=(await (0,d.cK)()).all("SELECT key, value FROM kv WHERE scope = ?",[C]),{toCanonical:b,byCanonical:c}=await (0,B.qi)(),f=new Map;for(let c of a){let a=c.key.indexOf("|");if(a<=0)continue;let d=c.key.slice(0,a),g=c.key.slice(a+1),h=b.get(d)||d,i=(0,e.q)(c.value,null);if(!g||!i||!(Number.isFinite(i.contextWindow)||Number.isFinite(i.maxOutput)))continue;let j=f.get(h)||{};j[g]=i,f.set(h,j)}let g={};for(let[a,b]of f)for(let d of new Set([a,...c.get(a)||[]]))g[d]={...g[d]||{},...b};return g}async function H(a,b,c){let f,g;if(!a||!b)throw Error("provider and modelId are required");let h=await (0,d.cK)(),i=(f=await E(a),g=String(b).trim(),`${f}|${g}`),j=function({contextWindow:a,maxOutput:b}={}){let c=D(a),d=D(b);if(!c&&!d)return null;let e={};return c&&(e.contextWindow=c),d&&(e.maxOutput=d),e}(c);return j?(h.run("INSERT INTO kv(scope, key, value) VALUES(?, ?, ?) ON CONFLICT(scope, key) DO UPDATE SET value = excluded.value",[C,i,(0,e.s)(j)]),j):(h.run("DELETE FROM kv WHERE scope = ? AND key = ?",[C,i]),{})}var I=c(99703);let J=null,K=0;async function L(){if(J&&Date.now()-K<5e3)return J;try{let{getSettings:a}=await Promise.resolve().then(c.bind(c,42655)),b=await a(),d=process.env.ENABLE_REQUEST_LOGS;if(void 0!==d)return J={enabled:"true"===d.toLowerCase(),maxRecords:b.observabilityMaxRecords||parseInt(process.env.OBSERVABILITY_MAX_RECORDS||String(200),10),batchSize:b.observabilityBatchSize||parseInt(process.env.OBSERVABILITY_BATCH_SIZE||String(20),10),flushIntervalMs:b.observabilityFlushIntervalMs||parseInt(process.env.OBSERVABILITY_FLUSH_INTERVAL_MS||String(5e3),10),maxJsonSize:1024*(b.observabilityMaxJsonSize||parseInt(process.env.OBSERVABILITY_MAX_JSON_SIZE||"5",10))},K=Date.now(),J;let e="false"!==process.env.OBSERVABILITY_ENABLED;J={enabled:"boolean"==typeof b.enableObservability?b.enableObservability:e,maxRecords:b.observabilityMaxRecords||parseInt(process.env.OBSERVABILITY_MAX_RECORDS||String(200),10),batchSize:b.observabilityBatchSize||parseInt(process.env.OBSERVABILITY_BATCH_SIZE||String(20),10),flushIntervalMs:b.observabilityFlushIntervalMs||parseInt(process.env.OBSERVABILITY_FLUSH_INTERVAL_MS||String(5e3),10),maxJsonSize:1024*(b.observabilityMaxJsonSize||parseInt(process.env.OBSERVABILITY_MAX_JSON_SIZE||"5",10))}}catch{J={enabled:!1,maxRecords:200,batchSize:20,flushIntervalMs:5e3,maxJsonSize:5120}}return K=Date.now(),J}let M=[],N=null,O=!1;function P(a,b){let c=JSON.stringify(a||{});return c.length>b?{_truncated:!0,_originalSize:c.length,_preview:c.substring(0,200)}:a||{}}async function Q(){if(!O&&0!==M.length){O=!0;try{for(;M.length>0;){let a=M.splice(0,M.length),b=await (0,d.cK)(),c=await L();b.transaction(()=>{for(let d of a){d.id||(d.id=function(a){let b=new Date().toISOString(),c=Math.random().toString(36).substring(2,8),d=a?a.replace(/[^a-zA-Z0-9-]/g,"-"):"unknown";return`${b}-${c}-${d}`}(d.model)),d.timestamp||(d.timestamp=new Date().toISOString()),d.request?.headers&&(d.request.headers=function(a){if(!a||"object"!=typeof a)return{};let b=["authorization","x-api-key","cookie","token","api-key"],c={...a};for(let a of Object.keys(c))b.some(b=>a.toLowerCase().includes(b))&&delete c[a];return c}(d.request.headers));let a={id:d.id,provider:d.provider||null,model:d.model||null,connectionId:d.connectionId||null,timestamp:d.timestamp,status:d.status||null,latency:d.latency||{},tokens:d.tokens||{},request:P(d.request,c.maxJsonSize),providerRequest:P(d.providerRequest,c.maxJsonSize),providerResponse:P(d.providerResponse,c.maxJsonSize),response:P(d.response,c.maxJsonSize),pxpipe:d.pxpipe||void 0};b.run("INSERT INTO requestDetails(id, timestamp, provider, model, connectionId, status, data) VALUES(?, ?, ?, ?, ?, ?, ?) ON CONFLICT(id) DO UPDATE SET timestamp = excluded.timestamp, provider = excluded.provider, model = excluded.model, connectionId = excluded.connectionId, status = excluded.status, data = excluded.data",[a.id,a.timestamp,a.provider,a.model,a.connectionId,a.status,(0,e.s)(a)])}let d=b.get("SELECT COUNT(*) as c FROM requestDetails");d&&d.c>c.maxRecords&&b.run("DELETE FROM requestDetails WHERE id IN (SELECT id FROM requestDetails ORDER BY timestamp ASC LIMIT ?)",[d.c-c.maxRecords])})}}catch(a){console.error("[requestDetailsRepo] Batch write failed:",a)}finally{O=!1}}}async function R(a){let b=await L();b.enabled&&(M.push(a),M.length>=b.batchSize?(N&&(clearTimeout(N),N=null),Q().catch(a=>console.error("[requestDetailsRepo] flush err:",a))):N||(N=setTimeout(()=>{N=null,Q().catch(()=>{})},b.flushIntervalMs)))}async function S(a={}){let b=await (0,d.cK)(),c=[],f=[];a.provider&&(c.push("provider = ?"),f.push(a.provider)),a.model&&(c.push("model = ?"),f.push(a.model)),a.connectionId&&(c.push("connectionId = ?"),f.push(a.connectionId)),a.status&&(c.push("status = ?"),f.push(a.status)),a.startDate&&(c.push("timestamp >= ?"),f.push(new Date(a.startDate).toISOString())),a.endDate&&(c.push("timestamp <= ?"),f.push(new Date(a.endDate).toISOString()));let g=c.length?`WHERE ${c.join(" AND ")}`:"",h=b.get(`SELECT COUNT(*) as c FROM requestDetails ${g}`,f),i=h?h.c:0,j=a.page||1,k=a.pageSize||50,l=(j-1)*k,m=i+function(a,b){try{let{conds:c,params:d}=T(b);return a.get(`SELECT COUNT(*) as c FROM usageHistory WHERE ${c.join(" AND ")}`,d)?.c||0}catch{return 0}}(b,a),n=l+k,o=[...b.all(`SELECT data FROM requestDetails ${g} ORDER BY timestamp DESC LIMIT ?`,[...f,n]).map(a=>(0,e.q)(a.data,{})),...function(a,b,c){try{let{conds:d,params:f}=T(b);return a.all(`SELECT timestamp, provider, model, connectionId, endpoint, promptTokens, completionTokens, cost, status, tokens, meta FROM usageHistory WHERE ${d.join(" AND ")} ORDER BY id DESC LIMIT ?`,[...f,c]).map(a=>({id:`imported-${a.timestamp}-${a.provider}-${a.model}`,imported:!0,provider:a.provider||"unknown",model:a.model||"unknown",connectionId:a.connectionId||void 0,timestamp:a.timestamp,latency:{ttft:0,total:0},tokens:(0,e.q)(a.tokens,{})||{},status:"ok"===a.status?"success":"error",request:{endpoint:a.endpoint||null,promptTokens:a.promptTokens||0,completionTokens:a.completionTokens||0,cost:a.cost||0},response:{}}))}catch{return[]}}(b,a,n)].sort((a,b)=>new Date(b.timestamp)-new Date(a.timestamp)).slice(l,l+k);return{details:o,pagination:{page:j,pageSize:k,totalItems:m,totalPages:Math.ceil(m/k),hasNext:l+o.length<m,hasPrev:j>1}}}function T(a){let b=["meta LIKE '%\"imported\":true%'"],c=[];return a.provider&&(b.push("provider = ?"),c.push(a.provider)),a.status&&(b.push("status = ?"),c.push(a.status)),a.startDate&&(b.push("timestamp >= ?"),c.push(new Date(a.startDate).toISOString())),a.endDate&&(b.push("timestamp <= ?"),c.push(new Date(a.endDate).toISOString())),{conds:b.concat(a.model?["model = ?"]:[]),params:a.model?[...c,a.model]:c}}async function U(){return(await (0,d.cK)()).all("SELECT DISTINCT provider FROM requestDetails WHERE provider IS NOT NULL ORDER BY provider ASC").map(a=>a.provider)}let V=async()=>{N&&(clearTimeout(N),N=null),M.length>0&&await Q()};async function W(){let a=await (0,d.cK)(),{exportSettings:b}=await Promise.resolve().then(c.bind(c,42655)),g=[],h=a.all("SELECT * FROM providerConnections").map(a=>{let{data:b,error:c,unreadable:d}=(0,f.decryptConnectionData)((0,e.q)(a.data,{})),h=c?(0,f.restoreUnreadableCredentials)({...b,[f.UNREADABLE_CREDENTIALS_KEY]:d}):b;return c&&g.push(a.id),{...h,id:a.id,provider:a.provider,authType:a.authType,name:a.name,email:a.email,priority:a.priority,isActive:1===a.isActive,createdAt:a.createdAt,updatedAt:a.updatedAt}}),i={settings:await b(),providerConnections:h,credentialErrors:g,providerNodes:a.all("SELECT * FROM providerNodes").map(a=>({...(0,e.q)(a.data,{}),id:a.id,type:a.type,name:a.name,createdAt:a.createdAt,updatedAt:a.updatedAt})),proxyPools:a.all("SELECT * FROM proxyPools").map(a=>({...(0,e.q)(a.data,{}),id:a.id,isActive:1===a.isActive,testStatus:a.testStatus,createdAt:a.createdAt,updatedAt:a.updatedAt})),apiKeys:a.all("SELECT * FROM apiKeys").map(a=>({id:a.id,key:a.key,name:a.name,machineId:a.machineId,isActive:1===a.isActive,createdAt:a.createdAt})),combos:a.all("SELECT * FROM combos").map(a=>({id:a.id,name:a.name,kind:a.kind,models:(0,e.q)(a.models,[]),createdAt:a.createdAt,updatedAt:a.updatedAt})),modelAliases:{},customModels:[],mitmAlias:{},pricing:{}};for(let b of a.all("SELECT key, value FROM kv WHERE scope = 'modelAliases'"))i.modelAliases[b.key]=(0,e.q)(b.value);for(let b of a.all("SELECT key, value FROM kv WHERE scope = 'customModels'"))i.customModels.push((0,e.q)(b.value));for(let b of a.all("SELECT key, value FROM kv WHERE scope = 'mitmAlias'"))i.mitmAlias[b.key]=(0,e.q)(b.value);for(let b of a.all("SELECT key, value FROM kv WHERE scope = 'pricing'"))i.pricing[b.key]=(0,e.q)(b.value);return i}async function X(a){if(!a||"object"!=typeof a||Array.isArray(a))throw Error("Invalid database payload");let b=await (0,d.cK)();return b.transaction(()=>{for(let c of(b.run("DELETE FROM settings"),b.run("DELETE FROM providerConnections"),b.run("DELETE FROM providerNodes"),b.run("DELETE FROM proxyPools"),b.run("DELETE FROM apiKeys"),b.run("DELETE FROM combos"),b.run("DELETE FROM kv WHERE scope IN ('modelAliases', 'customModels', 'mitmAlias', 'pricing')"),a.settings&&b.run("INSERT INTO settings(id, data) VALUES(1, ?) ON CONFLICT(id) DO UPDATE SET data = excluded.data",[(0,e.s)(a.settings)]),a.providerConnections||[])){let{id:a,provider:d,authType:g,name:h,email:i,priority:j,isActive:k,createdAt:l,updatedAt:m,...n}=c;b.run("INSERT OR REPLACE INTO providerConnections(id, provider, authType, name, email, priority, isActive, data, createdAt, updatedAt) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",[a,d,g||"oauth",h||null,i||null,j||null,+(!1!==k),(0,e.s)((0,f.encryptConnectionData)(n)),l||new Date().toISOString(),m||new Date().toISOString()])}for(let c of a.providerNodes||[]){let{id:a,type:d,name:f,createdAt:g,updatedAt:h,...i}=c;b.run("INSERT OR REPLACE INTO providerNodes(id, type, name, data, createdAt, updatedAt) VALUES(?, ?, ?, ?, ?, ?)",[a,d||null,f||null,(0,e.s)(i),g||new Date().toISOString(),h||new Date().toISOString()])}for(let c of a.proxyPools||[]){let{id:a,isActive:d,testStatus:f,createdAt:g,updatedAt:h,...i}=c;b.run("INSERT OR REPLACE INTO proxyPools(id, isActive, testStatus, data, createdAt, updatedAt) VALUES(?, ?, ?, ?, ?, ?)",[a,+(!1!==d),f||"unknown",(0,e.s)(i),g||new Date().toISOString(),h||new Date().toISOString()])}for(let c of a.apiKeys||[])b.run("INSERT OR REPLACE INTO apiKeys(id, key, name, machineId, isActive, createdAt) VALUES(?, ?, ?, ?, ?, ?)",[c.id,c.key,c.name||null,c.machineId||null,+(!1!==c.isActive),c.createdAt||new Date().toISOString()]);for(let c of a.combos||[])b.run("INSERT OR REPLACE INTO combos(id, name, kind, models, createdAt, updatedAt) VALUES(?, ?, ?, ?, ?, ?)",[c.id,c.name,c.kind||null,(0,e.s)(c.models||[]),c.createdAt||new Date().toISOString(),c.updatedAt||new Date().toISOString()]);for(let[c,d]of Object.entries(a.modelAliases||{}))b.run("INSERT OR REPLACE INTO kv(scope, key, value) VALUES('modelAliases', ?, ?)",[c,(0,e.s)(d)]);for(let c of a.customModels||[]){let a=`${c.providerAlias}|${c.id}|${c.type||"llm"}`;b.run("INSERT OR REPLACE INTO kv(scope, key, value) VALUES('customModels', ?, ?)",[a,(0,e.s)(c)])}for(let[c,d]of Object.entries(a.mitmAlias||{}))b.run("INSERT OR REPLACE INTO kv(scope, key, value) VALUES('mitmAlias', ?, ?)",[c,(0,e.s)(d||{})]);for(let[c,d]of Object.entries(a.pricing||{}))b.run("INSERT OR REPLACE INTO kv(scope, key, value) VALUES('pricing', ?, ?)",[c,(0,e.s)(d||{})])}),await W()}process.off("beforeExit",V),process.off("SIGINT",V),process.off("SIGTERM",V),process.off("exit",V),process.on("beforeExit",V),process.on("SIGINT",V),process.on("SIGTERM",V),process.on("exit",V)},30869:(a,b,c)=>{c.d(b,{Nu:()=>h,UY:()=>j,eh:()=>f.eh,fg:()=>e.fg,h0:()=>i,oc:()=>k,vQ:()=>g});var d=c(39006),e=c(40615),f=c(81329);let g={name:"10Router",description:"AI Infrastructure Management",version:d.rE},h={repoUrl:"https://github.com/techysy/10router",donateUrl:"https://raw.githubusercontent.com/techysy/10router/refs/heads/main/donate.json",changelogUrlBase:"https://raw.githubusercontent.com/techysy/10router/refs/heads/main/public/i18n/changelog/",changelogUrlFallbackBase:"https://gitee.com/techysy/10router/raw/main/public/i18n/changelog/"},i={npmPackageName:"@techysy/10router",installCmd:"npm i -g @techysy/10router",installCmdLatest:"npm i -g @techysy/10router@latest --prefer-online",shutdownCountdownSec:3,exitDelayMs:500,statusPort:20129,statusPollIntervalMs:1e3,statusLogTailLines:8,installRetries:3,installRetryDelayMs:5e3,lingerAfterDoneMs:3e4,waitForExitMinMs:5e3,waitForExitMaxMs:2e4,waitForExitCheckMs:500,appPort:20128},j={maxLines:200,pollIntervalMs:1e3},k={tickIntervalMs:6e4,pingLeadMs:5e3,refreshAheadMs:3e5,failureCooldownMs:9e5,providers:{claude:{settingsKey:"claudeAutoPing",quotaKey:"session (5h)",pingModel:"claude-haiku-4-5-20251001",pingText:"hi",pingMaxTokens:1},codex:{settingsKey:"codexAutoPing",quotaKey:"session",pingWhenResetAtSlides:!0,resetAtDriftMs:3e4,minPingIntervalMs:6e5,skipWhenBlockingQuotaExhausted:!0,pingModel:"gpt-5.5",pingText:"hi",pingInstructions:"Reply with OK.",pingReasoningEffort:"none"}}}},39006:a=>{a.exports={rE:"1.3.5"}},42655:(a,b,c)=>{c.d(b,{Bf:()=>l,Um:()=>n,Xx:()=>j,exportSettings:()=>o,getSettings:()=>i,hj:()=>m});var d=c(36366),e=c(644);let f={cloudEnabled:!1,tunnelEnabled:!1,tunnelUrl:"",tunnelProvider:"cloudflare",tailscaleEnabled:!1,tailscaleUrl:"",stickyRoundRobinLimit:3,providerStrategies:{},quotaVisibility:{},topologyVisibility:{},comboStrategy:"fallback",comboStickyRoundRobinLimit:1,comboStrategies:{},comboRetryOnEmpty:!1,comboRetryOnEmptyLimit:2,capacityAdapter:{vision:{enabled:!0,roundRobin:!1,models:[]},pdf:{enabled:!1,roundRobin:!1,models:[]},audioInput:{enabled:!0,roundRobin:!1,models:[]},videoInput:{enabled:!1,roundRobin:!1,models:[]}},requireLogin:!0,hideLoginOffBanner:!1,autoUpdateCheck:!0,requireApiKey:!0,autoCompactEnabled:!0,autoCompactRatio:.95,autoCompactKeepMessages:8,apiKeyRotation:!1,tunnelDashboardAccess:!0,authMode:"password",ssoType:"oidc",oidcIssuerUrl:"",oidcClientId:"",oidcClientSecret:"",oidcScopes:"openid profile email",oidcLoginLabel:"Sign in with OIDC",samlEntryPoint:"",samlIssuer:"urn:10router:sp",samlCert:"",samlLoginLabel:"Sign in with SAML SSO",samlAttributeEmail:"email",samlAttributeName:"name",enableObservability:!1,observabilityMaxRecords:1e3,observabilityBatchSize:20,observabilityFlushIntervalMs:5e3,observabilityMaxJsonSize:5,outboundProxyEnabled:!1,outboundProxyUrl:"",outboundNoProxy:"",mitmRouterBaseUrl:"http://localhost:20128",dnsToolEnabled:{},rtkEnabled:!0,headroomEnabled:!1,headroomUrl:process.env.HEADROOM_URL||"http://localhost:8787",headroomCompressUserMessages:!1,cavemanEnabled:!1,cavemanLevel:"full",ponytailEnabled:!1,ponytailLevel:"full",pxpipeEnabled:!1,pxpipeAutoInstall:!0,pxpipeMinChars:25e3,pxpipeTimeoutMs:15e3,codeBuddyCheckin:!1,codeBuddyIntlSession:!1,codeBuddyDailyDone:{},qoderCheckin:!1,qoderDailyDone:{},channelBlocks:{}};async function g(){let a=(await (0,d.cK)()).get("SELECT data FROM settings WHERE id = 1");return a?(0,e.q)(a.data,{}):{}}function h(a){let b={...f,...a||{}};for(let[a,c]of Object.entries(f))void 0===b[a]&&("outboundProxyEnabled"===a&&"string"==typeof b.outboundProxyUrl&&b.outboundProxyUrl.trim()?b[a]=!0:b[a]=c);return b}async function i(){return h(await g())}async function j(a){let b,c=await (0,d.cK)();return c.transaction(function(){let d=c.get("SELECT data FROM settings WHERE id = 1");b={...d?(0,e.q)(d.data,{}):{},...a},c.run("INSERT INTO settings(id, data) VALUES(1, ?) ON CONFLICT(id) DO UPDATE SET data = excluded.data",[(0,e.s)(b)])}),h(b)}async function k(a){let b=await (0,d.cK)(),c=null,f=null;return b.transaction(function(){let d=b.get("SELECT data FROM settings WHERE id = 1"),g=a(f=d?(0,e.q)(d.data,{}):{});g&&(c={...f,...g},b.run("INSERT INTO settings(id, data) VALUES(1, ?) ON CONFLICT(id) DO UPDATE SET data = excluded.data",[(0,e.s)(c)]))}),h(c||f||{})}async function l(a){let b=await i();return b.channelBlocks?.[a]||null}async function m(a,b){return await k(c=>({channelBlocks:{...c.channelBlocks||{},[a]:b}})),b}async function n(a){return await k(b=>{if(!(a in(b.channelBlocks||{})))return null;let c={...b.channelBlocks};return delete c[a],{channelBlocks:c}}),null}async function o(){return await g()}},62674:(a,b,c)=>{c.d(b,{IQ:()=>e,dy:()=>g,iZ:()=>f,np:()=>h});var d=c(36366);async function e(a,b=null){let c=(await (0,d.cK)()).get("SELECT value FROM _meta WHERE key = ?",[a]);return c?c.value:b}async function f(a,b){(await (0,d.cK)()).run("INSERT INTO _meta(key, value) VALUES(?, ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value",[a,String(b)])}function g(a,b,c=null){let d=a.get("SELECT value FROM _meta WHERE key = ?",[b]);return d?d.value:c}function h(a,b,c){a.run("INSERT INTO _meta(key, value) VALUES(?, ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value",[b,String(c)])}},74452:(a,b,c)=>{c.r(b),c.d(b,{createApiKey:()=>i,deleteApiKey:()=>k,getApiKeyById:()=>h,getApiKeys:()=>g,updateApiKey:()=>j,validateApiKey:()=>l});var d=c(94755),e=c(36366);function f(a){return a?{id:a.id,key:a.key,name:a.name,machineId:a.machineId,isActive:1===a.isActive||!0===a.isActive,createdAt:a.createdAt}:null}async function g(){return(await (0,e.cK)()).all("SELECT * FROM apiKeys ORDER BY createdAt ASC").map(f)}async function h(a){return f((await (0,e.cK)()).get("SELECT * FROM apiKeys WHERE id = ?",[a]))}async function i(a,b){if(!b)throw Error("machineId is required");let f=await (0,e.cK)(),{generateApiKeyWithMachine:g}=await c.e(6844).then(c.bind(c,86844)),h=await g(b),i={id:(0,d.A)(),name:a,key:h.key,machineId:b,isActive:!0,createdAt:new Date().toISOString()};return f.run("INSERT INTO apiKeys(id, key, name, machineId, isActive, createdAt) VALUES(?, ?, ?, ?, ?, ?)",[i.id,i.key,i.name,i.machineId,1,i.createdAt]),i}async function j(a,b){let c=await (0,e.cK)(),d=null;return c.transaction(()=>{let e=c.get("SELECT * FROM apiKeys WHERE id = ?",[a]);if(!e)return;let g={...f(e),...b};c.run("UPDATE apiKeys SET key = ?, name = ?, machineId = ?, isActive = ? WHERE id = ?",[g.key,g.name,g.machineId,+!!g.isActive,a]),d=g}),d}async function k(a){let b=(await (0,e.cK)()).run("DELETE FROM apiKeys WHERE id = ?",[a]);return(b?.changes??0)>0}async function l(a){let b=(await (0,e.cK)()).get("SELECT isActive FROM apiKeys WHERE key = ?",[a]);return!!b&&(1===b.isActive||!0===b.isActive)}},97914:(a,b,c)=>{c.d(b,{KJ:()=>l,VT:()=>n,getPricingForModel:()=>k,r4:()=>j,yF:()=>m});var d=c(36366),e=c(644);let f=(0,c(22846).U)("pricing"),g={value:null,expiresAt:0};function h(){g={value:null,expiresAt:0}}async function i(){return await f.getAll()}async function j(){let a=Date.now();if(g.value&&g.expiresAt>a)return g.value;let b=await i(),{PROVIDER_PRICING:d}=await c.e(8920).then(c.bind(c,58920)),e={};for(let[a,c]of Object.entries(d))if(e[a]={...c},b[a])for(let[c,d]of Object.entries(b[a]))e[a][c]=e[a][c]?{...e[a][c],...d}:d;for(let[a,c]of Object.entries(b))if(e[a])for(let[b,d]of Object.entries(c))e[a][b]||(e[a][b]=d);else e[a]={...c};return g={value:e,expiresAt:a+5e3},e}async function k(a,b){if(!b)return null;let d=await i();if(a&&d[a]?.[b])return d[a][b];let{getPricingForModel:e}=await c.e(8920).then(c.bind(c,58920));return e(a,b)}async function l(a){let b=await (0,d.cK)();return b.transaction(()=>{for(let[c,d]of Object.entries(a)){let a=b.get("SELECT value FROM kv WHERE scope = 'pricing' AND key = ?",[c]),f={...a&&(0,e.q)(a.value,{})||{}};for(let[a,b]of Object.entries(d))f[a]=b;b.run("INSERT INTO kv(scope, key, value) VALUES('pricing', ?, ?) ON CONFLICT(scope, key) DO UPDATE SET value = excluded.value",[c,(0,e.s)(f)])}}),h(),await i()}async function m(a,b){if(!a)return await i();let c=await (0,d.cK)();return c.transaction(()=>{if(!b)return void c.run("DELETE FROM kv WHERE scope = 'pricing' AND key = ?",[a]);let d=c.get("SELECT value FROM kv WHERE scope = 'pricing' AND key = ?",[a]),f=d&&(0,e.q)(d.value,{})||{};delete f[b],0===Object.keys(f).length?c.run("DELETE FROM kv WHERE scope = 'pricing' AND key = ?",[a]):c.run("INSERT INTO kv(scope, key, value) VALUES('pricing', ?, ?) ON CONFLICT(scope, key) DO UPDATE SET value = excluded.value",[a,(0,e.s)(f)])}),h(),await i()}async function n(){return await f.clear(),h(),{}}},99703:(a,b,c)=>{c.d(b,{BY:()=>B,E5:()=>K,Zx:()=>L,_V:()=>p,cV:()=>Q,importUsageRows:()=>N,j$:()=>G,rg:()=>y,sZ:()=>z,sy:()=>J,uw:()=>x});var d=c(94735),e=c(36366),f=c(644),g=c(62674),h=c(2521),i=c(30869);global._pendingRequests||(global._pendingRequests={byModel:{},byAccount:{}}),global._lastErrorProvider||(global._lastErrorProvider={provider:"",ts:0}),global._statsEmitter||(global._statsEmitter=new d.EventEmitter,global._statsEmitter.setMaxListeners(50)),global._pendingTimers||(global._pendingTimers={}),global._recentRing||(global._recentRing={items:[],initialized:!1}),global._connectionMapCache||(global._connectionMapCache={map:{},ts:0}),global._statsEmitTimers||(global._statsEmitTimers={pending:null,update:null});let j=global._pendingRequests,k=global._lastErrorProvider,l=global._pendingTimers,m=global._recentRing,n=global._connectionMapCache,o=global._statsEmitTimers,p=global._statsEmitter;function q(a,b=150){let c="update"===a?"update":"pending";o[c]||(o[c]=setTimeout(()=>{o[c]=null,p.emit(a)},b),o[c]?.unref?.())}function r(a){let b=a?new Date(a):new Date;return`${b.getFullYear()}-${String(b.getMonth()+1).padStart(2,"0")}-${String(b.getDate()).padStart(2,"0")}`}function s(a,b,c){a[b]||(a[b]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0}),a[b].requests+=c.requests||1,a[b].promptTokens+=c.promptTokens||0,a[b].completionTokens+=c.completionTokens||0,a[b].cachedTokens+=c.cachedTokens||0,a[b].cost+=c.cost||0,c.meta&&Object.assign(a[b],c.meta)}function t(a,b){let c=b.tokens?.prompt_tokens||b.tokens?.input_tokens||0,d=b.tokens?.completion_tokens||b.tokens?.output_tokens||0,e=b.tokens?.cached_tokens||b.tokens?.cache_read_input_tokens||0,f=b.cost||0,g={promptTokens:c,completionTokens:d,cachedTokens:e,cost:f};a.requests=(a.requests||0)+1,a.promptTokens=(a.promptTokens||0)+c,a.completionTokens=(a.completionTokens||0)+d,a.cachedTokens=(a.cachedTokens||0)+e,a.cost=(a.cost||0)+f,a.byProvider||={},a.byModel||={},a.byAccount||={},a.byApiKey||={},a.byEndpoint||={},b.provider&&s(a.byProvider,b.provider,g);let i=b.provider?`${b.model}|${b.provider}`:b.model;s(a.byModel,i,{...g,meta:{rawModel:b.model,provider:b.provider}}),b.connectionId&&s(a.byAccount,b.connectionId,{...g,meta:{rawModel:b.model,provider:b.provider}}),b.apiKey&&"string"==typeof b.apiKey&&b.apiKey;let j=(0,h.kk)(b.apiKey),k=`${j||"local-no-key"}|${b.model}|${b.provider||"unknown"}`;s(a.byApiKey,k,{...g,meta:{rawModel:b.model,provider:b.provider,apiKeyHash:j,apiKeyMasked:(0,h.oO)(b.apiKey)}});let l=b.endpoint||"Unknown",m=`${l}|${b.model}|${b.provider||"unknown"}`;s(a.byEndpoint,m,{...g,meta:{endpoint:l,rawModel:b.model,provider:b.provider}})}async function u(){if(Date.now()-n.ts<3e4)return n.map;try{let{getProviderConnections:a}=await Promise.resolve().then(c.bind(c,5781)),b=await a(),d={};for(let a of b)d[a.id]=a.name||a.email||a.id;n.map=d,n.ts=Date.now()}catch{}return n.map}async function v(){if(!m.initialized){m.initialized=!0;try{m.items=(await (0,e.cK)()).all("SELECT timestamp, provider, model, connectionId, apiKey, endpoint, cost, status, tokens FROM usageHistory ORDER BY id DESC LIMIT ?",[50]).reverse().map(a=>({timestamp:a.timestamp,provider:a.provider,model:a.model,connectionId:a.connectionId,apiKey:a.apiKey,endpoint:a.endpoint,cost:a.cost,status:a.status,tokens:(0,f.q)(a.tokens,{})}))}catch{}}}async function w(a,b,d){if(!d||!a||!b)return 0;try{let{getPricingForModel:e}=await Promise.resolve().then(c.bind(c,97914)),f=await e(a,b);if(!f)return 0;let{calculateCostFromTokens:g}=await c.e(8920).then(c.bind(c,58920));return g(d,f)}catch(a){return console.error("Error calculating cost:",a),0}}function x(a,b,c,d,e=!1){let f=b?`${a} (${b})`:a,g=`${c}|${f}`;j.byModel[f]||(j.byModel[f]=0),j.byModel[f]=Math.max(0,j.byModel[f]+(d?1:-1)),0===j.byModel[f]&&delete j.byModel[f],c&&(j.byAccount[c]||(j.byAccount[c]={}),j.byAccount[c][f]||(j.byAccount[c][f]=0),j.byAccount[c][f]=Math.max(0,j.byAccount[c][f]+(d?1:-1)),0===j.byAccount[c][f]&&(delete j.byAccount[c][f],0===Object.keys(j.byAccount[c]).length&&delete j.byAccount[c])),d?(clearTimeout(l[g]),l[g]=setTimeout(()=>{delete l[g],j.byModel[f]>0&&(j.byModel[f]=0),c&&j.byAccount[c]?.[f]>0&&(j.byAccount[c][f]=0),q("pending")},6e4)):(clearTimeout(l[g]),delete l[g]),!d&&e&&b&&(k.provider=b.toLowerCase(),k.ts=Date.now()),q("pending")}async function y(){let a=[],b=await u();for(let[c,d]of Object.entries(j.byAccount))for(let[e,f]of Object.entries(d))if(f>0){let d=b[c]||`Account ${c.slice(0,8)}...`,g=e.match(/^(.*) \((.*)\)$/);a.push({model:g?g[1]:e,provider:g?g[2]:"unknown",account:d,count:f})}await v();let c=new Set;return{activeRequests:a,recentRequests:[...m.items].sort((a,b)=>new Date(b.timestamp)-new Date(a.timestamp)).map(a=>{let b=a.tokens||{};return{timestamp:a.timestamp,model:a.model,provider:a.provider||"",promptTokens:b.prompt_tokens||b.input_tokens||0,completionTokens:b.completion_tokens||b.output_tokens||0,status:a.status||"ok"}}).filter(a=>{if(0===a.promptTokens&&0===a.completionTokens)return!1;let b=a.timestamp?a.timestamp.slice(0,16):"",d=`${a.model}|${a.provider}|${a.promptTokens}|${a.completionTokens}|${b}`;return!c.has(d)&&(c.add(d),!0)}).slice(0,20),errorProvider:Date.now()-k.ts<1e4?k.provider:""}}async function z(a){try{let b=await (0,e.cK)();a.timestamp||(a.timestamp=new Date().toISOString()),a.cost=await w(a.provider,a.model,a.tokens);let c=a.tokens||{},d=c.prompt_tokens||c.input_tokens||0,g=c.completion_tokens||c.output_tokens||0,i=!1;(b.transaction(()=>{let e=b.get(`SELECT id, endpoint, meta FROM usageHistory
8
+ data=excluded.data, updatedAt=excluded.updatedAt`,[c.id,c.isActive,c.testStatus,c.data,c.createdAt,c.updatedAt])}async function m(a={}){let b=await (0,d.cK)(),c=[],e=[];void 0!==a.isActive&&(c.push("isActive = ?"),e.push(+!!a.isActive)),a.testStatus&&(c.push("testStatus = ?"),e.push(a.testStatus));let f=`SELECT * FROM proxyPools${c.length?` WHERE ${c.join(" AND ")}`:""}`,g=b.all(f,e).map(k);return g.sort((a,b)=>new Date(b.updatedAt||0)-new Date(a.updatedAt||0)),g}async function n(a){return k((await (0,d.cK)()).get("SELECT * FROM proxyPools WHERE id = ?",[a]))}async function o(a){let b=await (0,d.cK)(),c=new Date().toISOString(),e={id:a.id||(0,j.A)(),name:a.name,proxyUrl:a.proxyUrl,noProxy:a.noProxy||"",type:a.type||"http",isActive:void 0===a.isActive||a.isActive,strictProxy:!0===a.strictProxy,testStatus:a.testStatus||"unknown",lastTestedAt:a.lastTestedAt||null,lastError:a.lastError||null,createdAt:c,updatedAt:c};return l(b,e),e}async function p(a,b){let c=await (0,d.cK)(),e=null;return c.transaction(()=>{let d=c.get("SELECT * FROM proxyPools WHERE id = ?",[a]);if(!d)return;let f={...k(d),...b,updatedAt:new Date().toISOString()};l(c,f),e=f}),e}async function q(a){let b=await (0,d.cK)(),c=null;return b.transaction(()=>{let d=b.get("SELECT * FROM proxyPools WHERE id = ?",[a]);d&&(c=k(d),b.run("DELETE FROM proxyPools WHERE id = ?",[a]))}),c}var r=c(74452);function s(a){return a?{id:a.id,name:a.name,kind:a.kind,models:(0,e.q)(a.models,[]),createdAt:a.createdAt,updatedAt:a.updatedAt}:null}async function t(){return(await (0,d.cK)()).all("SELECT * FROM combos ORDER BY createdAt ASC").map(s)}async function u(a){return s((await (0,d.cK)()).get("SELECT * FROM combos WHERE id = ?",[a]))}async function v(a){return s((await (0,d.cK)()).get("SELECT * FROM combos WHERE name = ?",[a]))}async function w(a){let b=await (0,d.cK)(),c=new Date().toISOString(),f={id:(0,j.A)(),name:a.name,kind:a.kind||null,models:a.models||[],createdAt:c,updatedAt:c};return b.run("INSERT INTO combos(id, name, kind, models, createdAt, updatedAt) VALUES(?, ?, ?, ?, ?, ?)",[f.id,f.name,f.kind,(0,e.s)(f.models),f.createdAt,f.updatedAt]),f}async function x(a,b){let c=await (0,d.cK)(),f=null;return c.transaction(()=>{let d=c.get("SELECT * FROM combos WHERE id = ?",[a]);if(!d)return;let g={...s(d),...b,updatedAt:new Date().toISOString()};c.run("UPDATE combos SET name = ?, kind = ?, models = ?, updatedAt = ? WHERE id = ?",[g.name,g.kind,(0,e.s)(g.models||[]),g.updatedAt,a]),f=g}),f}async function y(a){let b=(await (0,d.cK)()).run("DELETE FROM combos WHERE id = ?",[a]);return(b?.changes??0)>0}var z=c(9460),A=c(97914),B=c(29424);let C="modelCaps",D=a=>{let b="string"==typeof a?Number(a):a;return Number.isFinite(b)&&b>0?Math.floor(b):null};async function E(a){let{toCanonical:b}=await (0,B.qi)();return b.get(a)||a}async function F(a){if(!a)return{};let b=await (0,d.cK)(),c=await E(a),f=b.all("SELECT key, value FROM kv WHERE scope = ?",[C]),g={};for(let a of f){let b=a.key.indexOf("|");if(b<=0)continue;let d=a.key.slice(0,b),f=a.key.slice(b+1);if(await E(d)!==c)continue;let h=(0,e.q)(a.value,null);h&&(Number.isFinite(h.contextWindow)||Number.isFinite(h.maxOutput))&&(g[f]=h)}return g}async function G(){let a=(await (0,d.cK)()).all("SELECT key, value FROM kv WHERE scope = ?",[C]),{toCanonical:b,byCanonical:c}=await (0,B.qi)(),f=new Map;for(let c of a){let a=c.key.indexOf("|");if(a<=0)continue;let d=c.key.slice(0,a),g=c.key.slice(a+1),h=b.get(d)||d,i=(0,e.q)(c.value,null);if(!g||!i||!(Number.isFinite(i.contextWindow)||Number.isFinite(i.maxOutput)))continue;let j=f.get(h)||{};j[g]=i,f.set(h,j)}let g={};for(let[a,b]of f)for(let d of new Set([a,...c.get(a)||[]]))g[d]={...g[d]||{},...b};return g}async function H(a,b,c){let f,g;if(!a||!b)throw Error("provider and modelId are required");let h=await (0,d.cK)(),i=(f=await E(a),g=String(b).trim(),`${f}|${g}`),j=function({contextWindow:a,maxOutput:b}={}){let c=D(a),d=D(b);if(!c&&!d)return null;let e={};return c&&(e.contextWindow=c),d&&(e.maxOutput=d),e}(c);return j?(h.run("INSERT INTO kv(scope, key, value) VALUES(?, ?, ?) ON CONFLICT(scope, key) DO UPDATE SET value = excluded.value",[C,i,(0,e.s)(j)]),j):(h.run("DELETE FROM kv WHERE scope = ? AND key = ?",[C,i]),{})}var I=c(99703);let J=null,K=0;async function L(){if(J&&Date.now()-K<5e3)return J;try{let{getSettings:a}=await Promise.resolve().then(c.bind(c,42655)),b=await a(),d=process.env.ENABLE_REQUEST_LOGS;if(void 0!==d)return J={enabled:"true"===d.toLowerCase(),maxRecords:b.observabilityMaxRecords||parseInt(process.env.OBSERVABILITY_MAX_RECORDS||String(200),10),batchSize:b.observabilityBatchSize||parseInt(process.env.OBSERVABILITY_BATCH_SIZE||String(20),10),flushIntervalMs:b.observabilityFlushIntervalMs||parseInt(process.env.OBSERVABILITY_FLUSH_INTERVAL_MS||String(5e3),10),maxJsonSize:1024*(b.observabilityMaxJsonSize||parseInt(process.env.OBSERVABILITY_MAX_JSON_SIZE||"5",10))},K=Date.now(),J;let e="false"!==process.env.OBSERVABILITY_ENABLED;J={enabled:"boolean"==typeof b.enableObservability?b.enableObservability:e,maxRecords:b.observabilityMaxRecords||parseInt(process.env.OBSERVABILITY_MAX_RECORDS||String(200),10),batchSize:b.observabilityBatchSize||parseInt(process.env.OBSERVABILITY_BATCH_SIZE||String(20),10),flushIntervalMs:b.observabilityFlushIntervalMs||parseInt(process.env.OBSERVABILITY_FLUSH_INTERVAL_MS||String(5e3),10),maxJsonSize:1024*(b.observabilityMaxJsonSize||parseInt(process.env.OBSERVABILITY_MAX_JSON_SIZE||"5",10))}}catch{J={enabled:!1,maxRecords:200,batchSize:20,flushIntervalMs:5e3,maxJsonSize:5120}}return K=Date.now(),J}let M=[],N=null,O=!1;function P(a,b){let c=JSON.stringify(a||{});return c.length>b?{_truncated:!0,_originalSize:c.length,_preview:c.substring(0,200)}:a||{}}async function Q(){if(!O&&0!==M.length){O=!0;try{for(;M.length>0;){let a=M.splice(0,M.length),b=await (0,d.cK)(),c=await L();b.transaction(()=>{for(let d of a){d.id||(d.id=function(a){let b=new Date().toISOString(),c=Math.random().toString(36).substring(2,8),d=a?a.replace(/[^a-zA-Z0-9-]/g,"-"):"unknown";return`${b}-${c}-${d}`}(d.model)),d.timestamp||(d.timestamp=new Date().toISOString()),d.request?.headers&&(d.request.headers=function(a){if(!a||"object"!=typeof a)return{};let b=["authorization","x-api-key","cookie","token","api-key"],c={...a};for(let a of Object.keys(c))b.some(b=>a.toLowerCase().includes(b))&&delete c[a];return c}(d.request.headers));let a={id:d.id,provider:d.provider||null,model:d.model||null,connectionId:d.connectionId||null,timestamp:d.timestamp,status:d.status||null,latency:d.latency||{},tokens:d.tokens||{},request:P(d.request,c.maxJsonSize),providerRequest:P(d.providerRequest,c.maxJsonSize),providerResponse:P(d.providerResponse,c.maxJsonSize),response:P(d.response,c.maxJsonSize),pxpipe:d.pxpipe||void 0};b.run("INSERT INTO requestDetails(id, timestamp, provider, model, connectionId, status, data) VALUES(?, ?, ?, ?, ?, ?, ?) ON CONFLICT(id) DO UPDATE SET timestamp = excluded.timestamp, provider = excluded.provider, model = excluded.model, connectionId = excluded.connectionId, status = excluded.status, data = excluded.data",[a.id,a.timestamp,a.provider,a.model,a.connectionId,a.status,(0,e.s)(a)])}let d=b.get("SELECT COUNT(*) as c FROM requestDetails");d&&d.c>c.maxRecords&&b.run("DELETE FROM requestDetails WHERE id IN (SELECT id FROM requestDetails ORDER BY timestamp ASC LIMIT ?)",[d.c-c.maxRecords])})}}catch(a){console.error("[requestDetailsRepo] Batch write failed:",a)}finally{O=!1}}}async function R(a){let b=await L();b.enabled&&(M.push(a),M.length>=b.batchSize?(N&&(clearTimeout(N),N=null),Q().catch(a=>console.error("[requestDetailsRepo] flush err:",a))):N||(N=setTimeout(()=>{N=null,Q().catch(()=>{})},b.flushIntervalMs)))}async function S(a={}){let b=await (0,d.cK)(),c=[],f=[];a.provider&&(c.push("provider = ?"),f.push(a.provider)),a.model&&(c.push("model = ?"),f.push(a.model)),a.connectionId&&(c.push("connectionId = ?"),f.push(a.connectionId)),a.status&&(c.push("status = ?"),f.push(a.status)),a.startDate&&(c.push("timestamp >= ?"),f.push(new Date(a.startDate).toISOString())),a.endDate&&(c.push("timestamp <= ?"),f.push(new Date(a.endDate).toISOString()));let g=c.length?`WHERE ${c.join(" AND ")}`:"",h=b.get(`SELECT COUNT(*) as c FROM requestDetails ${g}`,f),i=h?h.c:0,j=a.page||1,k=a.pageSize||50,l=(j-1)*k,m=i+function(a,b){try{let{conds:c,params:d}=T(b);return a.get(`SELECT COUNT(*) as c FROM usageHistory WHERE ${c.join(" AND ")}`,d)?.c||0}catch{return 0}}(b,a),n=l+k,o=[...b.all(`SELECT data FROM requestDetails ${g} ORDER BY timestamp DESC LIMIT ?`,[...f,n]).map(a=>(0,e.q)(a.data,{})),...function(a,b,c){try{let{conds:d,params:f}=T(b);return a.all(`SELECT timestamp, provider, model, connectionId, endpoint, promptTokens, completionTokens, cost, status, tokens, meta FROM usageHistory WHERE ${d.join(" AND ")} ORDER BY id DESC LIMIT ?`,[...f,c]).map(a=>({id:`imported-${a.timestamp}-${a.provider}-${a.model}`,imported:!0,provider:a.provider||"unknown",model:a.model||"unknown",connectionId:a.connectionId||void 0,timestamp:a.timestamp,latency:{ttft:0,total:0},tokens:(0,e.q)(a.tokens,{})||{},status:"ok"===a.status?"success":"error",request:{endpoint:a.endpoint||null,promptTokens:a.promptTokens||0,completionTokens:a.completionTokens||0,cost:a.cost||0},response:{}}))}catch{return[]}}(b,a,n)].sort((a,b)=>new Date(b.timestamp)-new Date(a.timestamp)).slice(l,l+k);return{details:o,pagination:{page:j,pageSize:k,totalItems:m,totalPages:Math.ceil(m/k),hasNext:l+o.length<m,hasPrev:j>1}}}function T(a){let b=["meta LIKE '%\"imported\":true%'"],c=[];return a.provider&&(b.push("provider = ?"),c.push(a.provider)),a.status&&(b.push("status = ?"),c.push(a.status)),a.startDate&&(b.push("timestamp >= ?"),c.push(new Date(a.startDate).toISOString())),a.endDate&&(b.push("timestamp <= ?"),c.push(new Date(a.endDate).toISOString())),{conds:b.concat(a.model?["model = ?"]:[]),params:a.model?[...c,a.model]:c}}async function U(){return(await (0,d.cK)()).all("SELECT DISTINCT provider FROM requestDetails WHERE provider IS NOT NULL ORDER BY provider ASC").map(a=>a.provider)}let V=async()=>{N&&(clearTimeout(N),N=null),M.length>0&&await Q()};async function W(){let a=await (0,d.cK)(),{exportSettings:b}=await Promise.resolve().then(c.bind(c,42655)),g=[],h=a.all("SELECT * FROM providerConnections").map(a=>{let{data:b,error:c,unreadable:d}=(0,f.decryptConnectionData)((0,e.q)(a.data,{})),h=c?(0,f.restoreUnreadableCredentials)({...b,[f.UNREADABLE_CREDENTIALS_KEY]:d}):b;return c&&g.push(a.id),{...h,id:a.id,provider:a.provider,authType:a.authType,name:a.name,email:a.email,priority:a.priority,isActive:1===a.isActive,createdAt:a.createdAt,updatedAt:a.updatedAt}}),i={settings:await b(),providerConnections:h,credentialErrors:g,providerNodes:a.all("SELECT * FROM providerNodes").map(a=>({...(0,e.q)(a.data,{}),id:a.id,type:a.type,name:a.name,createdAt:a.createdAt,updatedAt:a.updatedAt})),proxyPools:a.all("SELECT * FROM proxyPools").map(a=>({...(0,e.q)(a.data,{}),id:a.id,isActive:1===a.isActive,testStatus:a.testStatus,createdAt:a.createdAt,updatedAt:a.updatedAt})),apiKeys:a.all("SELECT * FROM apiKeys").map(a=>({id:a.id,key:a.key,name:a.name,machineId:a.machineId,isActive:1===a.isActive,createdAt:a.createdAt})),combos:a.all("SELECT * FROM combos").map(a=>({id:a.id,name:a.name,kind:a.kind,models:(0,e.q)(a.models,[]),createdAt:a.createdAt,updatedAt:a.updatedAt})),modelAliases:{},customModels:[],mitmAlias:{},pricing:{}};for(let b of a.all("SELECT key, value FROM kv WHERE scope = 'modelAliases'"))i.modelAliases[b.key]=(0,e.q)(b.value);for(let b of a.all("SELECT key, value FROM kv WHERE scope = 'customModels'"))i.customModels.push((0,e.q)(b.value));for(let b of a.all("SELECT key, value FROM kv WHERE scope = 'mitmAlias'"))i.mitmAlias[b.key]=(0,e.q)(b.value);for(let b of a.all("SELECT key, value FROM kv WHERE scope = 'pricing'"))i.pricing[b.key]=(0,e.q)(b.value);return i}async function X(a){if(!a||"object"!=typeof a||Array.isArray(a))throw Error("Invalid database payload");let b=await (0,d.cK)();return b.transaction(()=>{for(let c of(b.run("DELETE FROM settings"),b.run("DELETE FROM providerConnections"),b.run("DELETE FROM providerNodes"),b.run("DELETE FROM proxyPools"),b.run("DELETE FROM apiKeys"),b.run("DELETE FROM combos"),b.run("DELETE FROM kv WHERE scope IN ('modelAliases', 'customModels', 'mitmAlias', 'pricing')"),a.settings&&b.run("INSERT INTO settings(id, data) VALUES(1, ?) ON CONFLICT(id) DO UPDATE SET data = excluded.data",[(0,e.s)(a.settings)]),a.providerConnections||[])){let{id:a,provider:d,authType:g,name:h,email:i,priority:j,isActive:k,createdAt:l,updatedAt:m,...n}=c;b.run("INSERT OR REPLACE INTO providerConnections(id, provider, authType, name, email, priority, isActive, data, createdAt, updatedAt) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",[a,d,g||"oauth",h||null,i||null,j||null,+(!1!==k),(0,e.s)((0,f.encryptConnectionData)(n)),l||new Date().toISOString(),m||new Date().toISOString()])}for(let c of a.providerNodes||[]){let{id:a,type:d,name:f,createdAt:g,updatedAt:h,...i}=c;b.run("INSERT OR REPLACE INTO providerNodes(id, type, name, data, createdAt, updatedAt) VALUES(?, ?, ?, ?, ?, ?)",[a,d||null,f||null,(0,e.s)(i),g||new Date().toISOString(),h||new Date().toISOString()])}for(let c of a.proxyPools||[]){let{id:a,isActive:d,testStatus:f,createdAt:g,updatedAt:h,...i}=c;b.run("INSERT OR REPLACE INTO proxyPools(id, isActive, testStatus, data, createdAt, updatedAt) VALUES(?, ?, ?, ?, ?, ?)",[a,+(!1!==d),f||"unknown",(0,e.s)(i),g||new Date().toISOString(),h||new Date().toISOString()])}for(let c of a.apiKeys||[])b.run("INSERT OR REPLACE INTO apiKeys(id, key, name, machineId, isActive, createdAt) VALUES(?, ?, ?, ?, ?, ?)",[c.id,c.key,c.name||null,c.machineId||null,+(!1!==c.isActive),c.createdAt||new Date().toISOString()]);for(let c of a.combos||[])b.run("INSERT OR REPLACE INTO combos(id, name, kind, models, createdAt, updatedAt) VALUES(?, ?, ?, ?, ?, ?)",[c.id,c.name,c.kind||null,(0,e.s)(c.models||[]),c.createdAt||new Date().toISOString(),c.updatedAt||new Date().toISOString()]);for(let[c,d]of Object.entries(a.modelAliases||{}))b.run("INSERT OR REPLACE INTO kv(scope, key, value) VALUES('modelAliases', ?, ?)",[c,(0,e.s)(d)]);for(let c of a.customModels||[]){let a=`${c.providerAlias}|${c.id}|${c.type||"llm"}`;b.run("INSERT OR REPLACE INTO kv(scope, key, value) VALUES('customModels', ?, ?)",[a,(0,e.s)(c)])}for(let[c,d]of Object.entries(a.mitmAlias||{}))b.run("INSERT OR REPLACE INTO kv(scope, key, value) VALUES('mitmAlias', ?, ?)",[c,(0,e.s)(d||{})]);for(let[c,d]of Object.entries(a.pricing||{}))b.run("INSERT OR REPLACE INTO kv(scope, key, value) VALUES('pricing', ?, ?)",[c,(0,e.s)(d||{})])}),await W()}process.off("beforeExit",V),process.off("SIGINT",V),process.off("SIGTERM",V),process.off("exit",V),process.on("beforeExit",V),process.on("SIGINT",V),process.on("SIGTERM",V),process.on("exit",V)},30869:(a,b,c)=>{c.d(b,{Nu:()=>h,UY:()=>j,eh:()=>f.eh,fg:()=>e.fg,h0:()=>i,oc:()=>k,vQ:()=>g});var d=c(39006),e=c(40615),f=c(81329);let g={name:"10Router",description:"AI Infrastructure Management",version:d.rE},h={repoUrl:"https://github.com/techysy/10router",donateUrl:"https://raw.githubusercontent.com/techysy/10router/refs/heads/main/donate.json",changelogUrlBase:"https://raw.githubusercontent.com/techysy/10router/refs/heads/main/public/i18n/changelog/",changelogUrlFallbackBase:"https://gitee.com/techysy/10router/raw/main/public/i18n/changelog/"},i={npmPackageName:"@techysy/10router",installCmd:"npm i -g @techysy/10router",installCmdLatest:"npm i -g @techysy/10router@latest --prefer-online",shutdownCountdownSec:3,exitDelayMs:500,statusPort:20129,statusPollIntervalMs:1e3,statusLogTailLines:8,installRetries:3,installRetryDelayMs:5e3,lingerAfterDoneMs:3e4,waitForExitMinMs:5e3,waitForExitMaxMs:2e4,waitForExitCheckMs:500,appPort:20128},j={maxLines:200,pollIntervalMs:1e3},k={tickIntervalMs:6e4,pingLeadMs:5e3,refreshAheadMs:3e5,failureCooldownMs:9e5,providers:{claude:{settingsKey:"claudeAutoPing",quotaKey:"session (5h)",pingModel:"claude-haiku-4-5-20251001",pingText:"hi",pingMaxTokens:1},codex:{settingsKey:"codexAutoPing",quotaKey:"session",pingWhenResetAtSlides:!0,resetAtDriftMs:3e4,minPingIntervalMs:6e5,skipWhenBlockingQuotaExhausted:!0,pingModel:"gpt-5.5",pingText:"hi",pingInstructions:"Reply with OK.",pingReasoningEffort:"none"}}}},39006:a=>{a.exports={rE:"1.3.6"}},42655:(a,b,c)=>{c.d(b,{Bf:()=>l,Um:()=>n,Xx:()=>j,exportSettings:()=>o,getSettings:()=>i,hj:()=>m});var d=c(36366),e=c(644);let f={cloudEnabled:!1,tunnelEnabled:!1,tunnelUrl:"",tunnelProvider:"cloudflare",tailscaleEnabled:!1,tailscaleUrl:"",stickyRoundRobinLimit:3,providerStrategies:{},quotaVisibility:{},topologyVisibility:{},comboStrategy:"fallback",comboStickyRoundRobinLimit:1,comboStrategies:{},comboRetryOnEmpty:!1,comboRetryOnEmptyLimit:2,capacityAdapter:{vision:{enabled:!0,roundRobin:!1,models:[]},pdf:{enabled:!1,roundRobin:!1,models:[]},audioInput:{enabled:!0,roundRobin:!1,models:[]},videoInput:{enabled:!1,roundRobin:!1,models:[]}},requireLogin:!0,hideLoginOffBanner:!1,autoUpdateCheck:!0,requireApiKey:!0,autoCompactEnabled:!0,autoCompactRatio:.95,autoCompactKeepMessages:8,apiKeyRotation:!1,tunnelDashboardAccess:!0,authMode:"password",ssoType:"oidc",oidcIssuerUrl:"",oidcClientId:"",oidcClientSecret:"",oidcScopes:"openid profile email",oidcLoginLabel:"Sign in with OIDC",samlEntryPoint:"",samlIssuer:"urn:10router:sp",samlCert:"",samlLoginLabel:"Sign in with SAML SSO",samlAttributeEmail:"email",samlAttributeName:"name",enableObservability:!1,observabilityMaxRecords:1e3,observabilityBatchSize:20,observabilityFlushIntervalMs:5e3,observabilityMaxJsonSize:5,outboundProxyEnabled:!1,outboundProxyUrl:"",outboundNoProxy:"",mitmRouterBaseUrl:"http://localhost:20128",dnsToolEnabled:{},rtkEnabled:!0,headroomEnabled:!1,headroomUrl:process.env.HEADROOM_URL||"http://localhost:8787",headroomCompressUserMessages:!1,cavemanEnabled:!1,cavemanLevel:"full",ponytailEnabled:!1,ponytailLevel:"full",pxpipeEnabled:!1,pxpipeAutoInstall:!0,pxpipeMinChars:25e3,pxpipeTimeoutMs:15e3,codeBuddyCheckin:!1,codeBuddyIntlSession:!1,codeBuddyDailyDone:{},qoderCheckin:!1,qoderDailyDone:{},channelBlocks:{}};async function g(){let a=(await (0,d.cK)()).get("SELECT data FROM settings WHERE id = 1");return a?(0,e.q)(a.data,{}):{}}function h(a){let b={...f,...a||{}};for(let[a,c]of Object.entries(f))void 0===b[a]&&("outboundProxyEnabled"===a&&"string"==typeof b.outboundProxyUrl&&b.outboundProxyUrl.trim()?b[a]=!0:b[a]=c);return b}async function i(){return h(await g())}async function j(a){let b,c=await (0,d.cK)();return c.transaction(function(){let d=c.get("SELECT data FROM settings WHERE id = 1");b={...d?(0,e.q)(d.data,{}):{},...a},c.run("INSERT INTO settings(id, data) VALUES(1, ?) ON CONFLICT(id) DO UPDATE SET data = excluded.data",[(0,e.s)(b)])}),h(b)}async function k(a){let b=await (0,d.cK)(),c=null,f=null;return b.transaction(function(){let d=b.get("SELECT data FROM settings WHERE id = 1"),g=a(f=d?(0,e.q)(d.data,{}):{});g&&(c={...f,...g},b.run("INSERT INTO settings(id, data) VALUES(1, ?) ON CONFLICT(id) DO UPDATE SET data = excluded.data",[(0,e.s)(c)]))}),h(c||f||{})}async function l(a){let b=await i();return b.channelBlocks?.[a]||null}async function m(a,b){return await k(c=>({channelBlocks:{...c.channelBlocks||{},[a]:b}})),b}async function n(a){return await k(b=>{if(!(a in(b.channelBlocks||{})))return null;let c={...b.channelBlocks};return delete c[a],{channelBlocks:c}}),null}async function o(){return await g()}},62674:(a,b,c)=>{c.d(b,{IQ:()=>e,dy:()=>g,iZ:()=>f,np:()=>h});var d=c(36366);async function e(a,b=null){let c=(await (0,d.cK)()).get("SELECT value FROM _meta WHERE key = ?",[a]);return c?c.value:b}async function f(a,b){(await (0,d.cK)()).run("INSERT INTO _meta(key, value) VALUES(?, ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value",[a,String(b)])}function g(a,b,c=null){let d=a.get("SELECT value FROM _meta WHERE key = ?",[b]);return d?d.value:c}function h(a,b,c){a.run("INSERT INTO _meta(key, value) VALUES(?, ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value",[b,String(c)])}},74452:(a,b,c)=>{c.r(b),c.d(b,{createApiKey:()=>i,deleteApiKey:()=>k,getApiKeyById:()=>h,getApiKeys:()=>g,updateApiKey:()=>j,validateApiKey:()=>l});var d=c(94755),e=c(36366);function f(a){return a?{id:a.id,key:a.key,name:a.name,machineId:a.machineId,isActive:1===a.isActive||!0===a.isActive,createdAt:a.createdAt}:null}async function g(){return(await (0,e.cK)()).all("SELECT * FROM apiKeys ORDER BY createdAt ASC").map(f)}async function h(a){return f((await (0,e.cK)()).get("SELECT * FROM apiKeys WHERE id = ?",[a]))}async function i(a,b){if(!b)throw Error("machineId is required");let f=await (0,e.cK)(),{generateApiKeyWithMachine:g}=await c.e(6844).then(c.bind(c,86844)),h=await g(b),i={id:(0,d.A)(),name:a,key:h.key,machineId:b,isActive:!0,createdAt:new Date().toISOString()};return f.run("INSERT INTO apiKeys(id, key, name, machineId, isActive, createdAt) VALUES(?, ?, ?, ?, ?, ?)",[i.id,i.key,i.name,i.machineId,1,i.createdAt]),i}async function j(a,b){let c=await (0,e.cK)(),d=null;return c.transaction(()=>{let e=c.get("SELECT * FROM apiKeys WHERE id = ?",[a]);if(!e)return;let g={...f(e),...b};c.run("UPDATE apiKeys SET key = ?, name = ?, machineId = ?, isActive = ? WHERE id = ?",[g.key,g.name,g.machineId,+!!g.isActive,a]),d=g}),d}async function k(a){let b=(await (0,e.cK)()).run("DELETE FROM apiKeys WHERE id = ?",[a]);return(b?.changes??0)>0}async function l(a){let b=(await (0,e.cK)()).get("SELECT isActive FROM apiKeys WHERE key = ?",[a]);return!!b&&(1===b.isActive||!0===b.isActive)}},97914:(a,b,c)=>{c.d(b,{KJ:()=>l,VT:()=>n,getPricingForModel:()=>k,r4:()=>j,yF:()=>m});var d=c(36366),e=c(644);let f=(0,c(22846).U)("pricing"),g={value:null,expiresAt:0};function h(){g={value:null,expiresAt:0}}async function i(){return await f.getAll()}async function j(){let a=Date.now();if(g.value&&g.expiresAt>a)return g.value;let b=await i(),{PROVIDER_PRICING:d}=await c.e(8920).then(c.bind(c,58920)),e={};for(let[a,c]of Object.entries(d))if(e[a]={...c},b[a])for(let[c,d]of Object.entries(b[a]))e[a][c]=e[a][c]?{...e[a][c],...d}:d;for(let[a,c]of Object.entries(b))if(e[a])for(let[b,d]of Object.entries(c))e[a][b]||(e[a][b]=d);else e[a]={...c};return g={value:e,expiresAt:a+5e3},e}async function k(a,b){if(!b)return null;let d=await i();if(a&&d[a]?.[b])return d[a][b];let{getPricingForModel:e}=await c.e(8920).then(c.bind(c,58920));return e(a,b)}async function l(a){let b=await (0,d.cK)();return b.transaction(()=>{for(let[c,d]of Object.entries(a)){let a=b.get("SELECT value FROM kv WHERE scope = 'pricing' AND key = ?",[c]),f={...a&&(0,e.q)(a.value,{})||{}};for(let[a,b]of Object.entries(d))f[a]=b;b.run("INSERT INTO kv(scope, key, value) VALUES('pricing', ?, ?) ON CONFLICT(scope, key) DO UPDATE SET value = excluded.value",[c,(0,e.s)(f)])}}),h(),await i()}async function m(a,b){if(!a)return await i();let c=await (0,d.cK)();return c.transaction(()=>{if(!b)return void c.run("DELETE FROM kv WHERE scope = 'pricing' AND key = ?",[a]);let d=c.get("SELECT value FROM kv WHERE scope = 'pricing' AND key = ?",[a]),f=d&&(0,e.q)(d.value,{})||{};delete f[b],0===Object.keys(f).length?c.run("DELETE FROM kv WHERE scope = 'pricing' AND key = ?",[a]):c.run("INSERT INTO kv(scope, key, value) VALUES('pricing', ?, ?) ON CONFLICT(scope, key) DO UPDATE SET value = excluded.value",[a,(0,e.s)(f)])}),h(),await i()}async function n(){return await f.clear(),h(),{}}},99703:(a,b,c)=>{c.d(b,{BY:()=>B,E5:()=>K,Zx:()=>L,_V:()=>p,cV:()=>Q,importUsageRows:()=>N,j$:()=>G,rg:()=>y,sZ:()=>z,sy:()=>J,uw:()=>x});var d=c(94735),e=c(36366),f=c(644),g=c(62674),h=c(2521),i=c(30869);global._pendingRequests||(global._pendingRequests={byModel:{},byAccount:{}}),global._lastErrorProvider||(global._lastErrorProvider={provider:"",ts:0}),global._statsEmitter||(global._statsEmitter=new d.EventEmitter,global._statsEmitter.setMaxListeners(50)),global._pendingTimers||(global._pendingTimers={}),global._recentRing||(global._recentRing={items:[],initialized:!1}),global._connectionMapCache||(global._connectionMapCache={map:{},ts:0}),global._statsEmitTimers||(global._statsEmitTimers={pending:null,update:null});let j=global._pendingRequests,k=global._lastErrorProvider,l=global._pendingTimers,m=global._recentRing,n=global._connectionMapCache,o=global._statsEmitTimers,p=global._statsEmitter;function q(a,b=150){let c="update"===a?"update":"pending";o[c]||(o[c]=setTimeout(()=>{o[c]=null,p.emit(a)},b),o[c]?.unref?.())}function r(a){let b=a?new Date(a):new Date;return`${b.getFullYear()}-${String(b.getMonth()+1).padStart(2,"0")}-${String(b.getDate()).padStart(2,"0")}`}function s(a,b,c){a[b]||(a[b]={requests:0,promptTokens:0,completionTokens:0,cachedTokens:0,cost:0}),a[b].requests+=c.requests||1,a[b].promptTokens+=c.promptTokens||0,a[b].completionTokens+=c.completionTokens||0,a[b].cachedTokens+=c.cachedTokens||0,a[b].cost+=c.cost||0,c.meta&&Object.assign(a[b],c.meta)}function t(a,b){let c=b.tokens?.prompt_tokens||b.tokens?.input_tokens||0,d=b.tokens?.completion_tokens||b.tokens?.output_tokens||0,e=b.tokens?.cached_tokens||b.tokens?.cache_read_input_tokens||0,f=b.cost||0,g={promptTokens:c,completionTokens:d,cachedTokens:e,cost:f};a.requests=(a.requests||0)+1,a.promptTokens=(a.promptTokens||0)+c,a.completionTokens=(a.completionTokens||0)+d,a.cachedTokens=(a.cachedTokens||0)+e,a.cost=(a.cost||0)+f,a.byProvider||={},a.byModel||={},a.byAccount||={},a.byApiKey||={},a.byEndpoint||={},b.provider&&s(a.byProvider,b.provider,g);let i=b.provider?`${b.model}|${b.provider}`:b.model;s(a.byModel,i,{...g,meta:{rawModel:b.model,provider:b.provider}}),b.connectionId&&s(a.byAccount,b.connectionId,{...g,meta:{rawModel:b.model,provider:b.provider}}),b.apiKey&&"string"==typeof b.apiKey&&b.apiKey;let j=(0,h.kk)(b.apiKey),k=`${j||"local-no-key"}|${b.model}|${b.provider||"unknown"}`;s(a.byApiKey,k,{...g,meta:{rawModel:b.model,provider:b.provider,apiKeyHash:j,apiKeyMasked:(0,h.oO)(b.apiKey)}});let l=b.endpoint||"Unknown",m=`${l}|${b.model}|${b.provider||"unknown"}`;s(a.byEndpoint,m,{...g,meta:{endpoint:l,rawModel:b.model,provider:b.provider}})}async function u(){if(Date.now()-n.ts<3e4)return n.map;try{let{getProviderConnections:a}=await Promise.resolve().then(c.bind(c,5781)),b=await a(),d={};for(let a of b)d[a.id]=a.name||a.email||a.id;n.map=d,n.ts=Date.now()}catch{}return n.map}async function v(){if(!m.initialized){m.initialized=!0;try{m.items=(await (0,e.cK)()).all("SELECT timestamp, provider, model, connectionId, apiKey, endpoint, cost, status, tokens FROM usageHistory ORDER BY id DESC LIMIT ?",[50]).reverse().map(a=>({timestamp:a.timestamp,provider:a.provider,model:a.model,connectionId:a.connectionId,apiKey:a.apiKey,endpoint:a.endpoint,cost:a.cost,status:a.status,tokens:(0,f.q)(a.tokens,{})}))}catch{}}}async function w(a,b,d){if(!d||!a||!b)return 0;try{let{getPricingForModel:e}=await Promise.resolve().then(c.bind(c,97914)),f=await e(a,b);if(!f)return 0;let{calculateCostFromTokens:g}=await c.e(8920).then(c.bind(c,58920));return g(d,f)}catch(a){return console.error("Error calculating cost:",a),0}}function x(a,b,c,d,e=!1){let f=b?`${a} (${b})`:a,g=`${c}|${f}`;j.byModel[f]||(j.byModel[f]=0),j.byModel[f]=Math.max(0,j.byModel[f]+(d?1:-1)),0===j.byModel[f]&&delete j.byModel[f],c&&(j.byAccount[c]||(j.byAccount[c]={}),j.byAccount[c][f]||(j.byAccount[c][f]=0),j.byAccount[c][f]=Math.max(0,j.byAccount[c][f]+(d?1:-1)),0===j.byAccount[c][f]&&(delete j.byAccount[c][f],0===Object.keys(j.byAccount[c]).length&&delete j.byAccount[c])),d?(clearTimeout(l[g]),l[g]=setTimeout(()=>{delete l[g],j.byModel[f]>0&&(j.byModel[f]=0),c&&j.byAccount[c]?.[f]>0&&(j.byAccount[c][f]=0),q("pending")},6e4)):(clearTimeout(l[g]),delete l[g]),!d&&e&&b&&(k.provider=b.toLowerCase(),k.ts=Date.now()),q("pending")}async function y(){let a=[],b=await u();for(let[c,d]of Object.entries(j.byAccount))for(let[e,f]of Object.entries(d))if(f>0){let d=b[c]||`Account ${c.slice(0,8)}...`,g=e.match(/^(.*) \((.*)\)$/);a.push({model:g?g[1]:e,provider:g?g[2]:"unknown",account:d,count:f})}await v();let c=new Set;return{activeRequests:a,recentRequests:[...m.items].sort((a,b)=>new Date(b.timestamp)-new Date(a.timestamp)).map(a=>{let b=a.tokens||{};return{timestamp:a.timestamp,model:a.model,provider:a.provider||"",promptTokens:b.prompt_tokens||b.input_tokens||0,completionTokens:b.completion_tokens||b.output_tokens||0,status:a.status||"ok"}}).filter(a=>{if(0===a.promptTokens&&0===a.completionTokens)return!1;let b=a.timestamp?a.timestamp.slice(0,16):"",d=`${a.model}|${a.provider}|${a.promptTokens}|${a.completionTokens}|${b}`;return!c.has(d)&&(c.add(d),!0)}).slice(0,20),errorProvider:Date.now()-k.ts<1e4?k.provider:""}}async function z(a){try{let b=await (0,e.cK)();a.timestamp||(a.timestamp=new Date().toISOString()),a.cost=await w(a.provider,a.model,a.tokens);let c=a.tokens||{},d=c.prompt_tokens||c.input_tokens||0,g=c.completion_tokens||c.output_tokens||0,i=!1;(b.transaction(()=>{let e=b.get(`SELECT id, endpoint, meta FROM usageHistory
9
9
  WHERE timestamp = ?
10
10
  AND COALESCE(provider, '') = COALESCE(?, '')
11
11
  AND COALESCE(model, '') = COALESCE(?, '')
@@ -1,4 +1,4 @@
1
- exports.id=8172,exports.ids=[8172],exports.modules={4249:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,95547,23)),Promise.resolve().then(c.t.bind(c,15098,23)),Promise.resolve().then(c.t.bind(c,47644,23)),Promise.resolve().then(c.t.bind(c,33859,23)),Promise.resolve().then(c.t.bind(c,98099,23)),Promise.resolve().then(c.t.bind(c,16237,23)),Promise.resolve().then(c.t.bind(c,98562,23)),Promise.resolve().then(c.t.bind(c,36675,23))},4717:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,95547,23))},5211:(a,b,c)=>{"use strict";c.d(b,{RuntimeI18nProvider:()=>g});var d=c(48249),e=c(67484),f=c(19099);function g({children:a}){(0,f.usePathname)();let[,b]=(0,e.useState)(0);return(0,d.jsx)(d.Fragment,{children:a})}c(99258)},12020:(a,b,c)=>{"use strict";c.d(b,{Q2:()=>d.Q2,fg:()=>d.fg,vQ:()=>e,MA:()=>d.MA,U5:()=>j,UY:()=>i,Nu:()=>f,zN:()=>d.zN,B2:()=>h,h0:()=>g});var d=c(92592);c(91431);let e={name:"10Router",description:"AI Infrastructure Management",version:"1.3.5"},f={repoUrl:"https://github.com/techysy/10router",donateUrl:"https://raw.githubusercontent.com/techysy/10router/refs/heads/main/donate.json",changelogUrlBase:"https://raw.githubusercontent.com/techysy/10router/refs/heads/main/public/i18n/changelog/",changelogUrlFallbackBase:"https://gitee.com/techysy/10router/raw/main/public/i18n/changelog/"},g={npmPackageName:"@techysy/10router",installCmd:"npm i -g @techysy/10router",installCmdLatest:"npm i -g @techysy/10router@latest --prefer-online",shutdownCountdownSec:3,exitDelayMs:500,statusPort:20129,statusPollIntervalMs:1e3,statusLogTailLines:8,installRetries:3,installRetryDelayMs:5e3,lingerAfterDoneMs:3e4,waitForExitMinMs:5e3,waitForExitMaxMs:2e4,waitForExitCheckMs:500,appPort:20128},h={storageKey:"theme",defaultTheme:"system"},i={maxLines:200,pollIntervalMs:1e3},j=6e4},13033:(a,b,c)=>{"use strict";c.d(b,{A:()=>g});var d=c(31417),e=c(300),f=c(12020);let g=(0,d.v)((0,e.Zr)((a,b)=>({theme:f.B2.defaultTheme,setTheme:b=>{a({theme:b})},toggleTheme:()=>{let c=b().theme,d="system"===c?"light":"light"===c?"dark":"system";a({theme:d})},initTheme:()=>{b().theme}}),{name:f.B2.storageKey}))},15273:(a,b,c)=>{"use strict";c.d(b,{default:()=>e});var d=c(77943);(0,d.registerClientReference)(function(){throw Error("Attempted to call isChunkLoadError() from the server but isChunkLoadError is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"F:\\Files\\GitHub Files\\10router\\src\\shared\\components\\ChunkReloadGuard.js","isChunkLoadError");let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call the default export of \"F:\\\\Files\\\\GitHub Files\\\\10router\\\\src\\\\shared\\\\components\\\\ChunkReloadGuard.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"F:\\Files\\GitHub Files\\10router\\src\\shared\\components\\ChunkReloadGuard.js","default")},19308:(a,b,c)=>{"use strict";c.d(b,{ThemeProvider:()=>f});var d=c(48249);c(67484);var e=c(13033);function f({children:a}){let{initTheme:b}=(0,e.A)();return(0,d.jsx)(d.Fragment,{children:a})}},25334:(a,b,c)=>{"use strict";function d(a){return null==a?"":String(a).trim()}c.d(b,{Go:()=>f,kV:()=>g});let e=["http:","https:","socks5:","socks4:","socks5h:","socks4a:"];function f(a){let b,c=d(a);if(!c)return"Proxy URL is required";if(c.startsWith("enc:v1:"))return"The value looks like an encrypted credential (enc:v1:). Proxy pools store plain proxy URLs — paste the decrypted URL (e.g. http://host:port) instead.";if(c.startsWith("enc://"))return"enc:// is not a supported proxy protocol. This project stores credentials with enc:v1:, not enc://.";if(/[\r\n]/.test(c))return"Invalid proxy URL: must be a single line";let f=!/^[a-z][a-z0-9+.-]*:\/\//i.test(c)&&(c.includes("@")?/^[^@\s]+@[^:/@\s]+(?::\d+)?(\/.*)?$/.test(c):!c.includes(":")||/^[^:/@\s]+:\d+(\/.*)?$/.test(c))?`http://${c}`:c;try{b=new URL(f)}catch{return"Invalid proxy URL"}return e.includes(b.protocol)?null:`Invalid proxy URL: protocol must be one of ${e.join(", ")}`}function g({outboundProxyEnabled:a,outboundProxyUrl:b,outboundNoProxy:c}={}){if("u"<typeof process||!process.env)return;let f=d(b),h=d(c);if(!a){"1"===process.env.NINE_ROUTER_PROXY_MANAGED&&(delete process.env.HTTP_PROXY,delete process.env.HTTPS_PROXY,delete process.env.ALL_PROXY,delete process.env.NO_PROXY,delete process.env.NINE_ROUTER_PROXY_MANAGED,delete process.env.NINE_ROUTER_PROXY_URL,delete process.env.NINE_ROUTER_NO_PROXY);return}let i="1"===process.env.NINE_ROUTER_PROXY_MANAGED,j=!1;if(i&&(f||(delete process.env.HTTP_PROXY,delete process.env.HTTPS_PROXY,delete process.env.ALL_PROXY,delete process.env.NINE_ROUTER_PROXY_URL),h||(delete process.env.NO_PROXY,delete process.env.NINE_ROUTER_NO_PROXY)),f){let a=function(a){if(!a||/[\n\r`$]/.test(a))return null;try{let b=new URL(a);if(!e.includes(b.protocol))return null;return b.href}catch{return null}}(f);if(a){process.env.HTTP_PROXY=a,process.env.HTTPS_PROXY=a,process.env.ALL_PROXY=a,process.env.NINE_ROUTER_PROXY_URL=a,j=!0;let b=[...new Set([...h.split(",").map(a=>a.trim()).filter(Boolean),"127.0.0.1","localhost","::1"])].join(",");process.env.NO_PROXY=b,process.env.NINE_ROUTER_NO_PROXY=b}}h&&!process.env.NO_PROXY&&(process.env.NO_PROXY=h,process.env.NINE_ROUTER_NO_PROXY=h,j=!0),j?process.env.NINE_ROUTER_PROXY_MANAGED="1":i&&delete process.env.NINE_ROUTER_PROXY_MANAGED}},26892:(a,b,c)=>{"use strict";c.d(b,{KM:()=>n,fO:()=>m,up:()=>o,wJ:()=>l});var d=c(94735),e=c(30869);let f=["log","info","warn","error","debug"];global._consoleLogBufferState||(global._consoleLogBufferState={logs:[],patched:!1,originals:{},emitter:new d.EventEmitter},global._consoleLogBufferState.emitter.setMaxListeners(50));let g=global._consoleLogBufferState;function h(){if(g.flushTimer=null,!g.pendingLines.length)return;let a=g.pendingLines.splice(0,g.pendingLines.length);g.emitter.emit("lines",a)}g.emitter||(g.emitter=new d.EventEmitter,g.emitter.setMaxListeners(50)),g.pendingLines||(g.pendingLines=[]),g.flushTimer||(g.flushTimer=null);let i=/\x1b\[[0-9;]*m/g;function j(a){return a.replace(i,"")}function k(a){if("string"==typeof a)return j(a);if(a instanceof Error)return j(a.stack||a.message||String(a));try{return j(JSON.stringify(a))}catch{return j(String(a))}}function l(){if(!g.patched){for(let a of f)g.originals[a]=console[a],console[a]=(...b)=>{!function(a){g.logs.push(a);let b=e.UY.maxLines;g.logs.length>b&&(g.logs=g.logs.slice(-b)),g.pendingLines.push(a),g.pendingLines.length>=50?(g.flushTimer&&(clearTimeout(g.flushTimer),g.flushTimer=null),h()):g.flushTimer||(g.flushTimer=setTimeout(h,100),g.flushTimer?.unref?.())}(b.map(k).join(" ")),g.originals[a](...b)};g.patched=!0}}function m(){return g.logs}function n(){g.logs=[],g.emitter.emit("clear")}function o(){return g.emitter}},30395:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,20349,23)),Promise.resolve().then(c.t.bind(c,31935,23)),Promise.resolve().then(c.t.bind(c,16764,23)),Promise.resolve().then(c.t.bind(c,33071,23)),Promise.resolve().then(c.bind(c,85117)),Promise.resolve().then(c.bind(c,15273)),Promise.resolve().then(c.bind(c,89886))},34973:(a,b,c)=>{"use strict";c.d(b,{I:()=>d});let d=[{id:"af",name:"Afrikaans",type:"tts"},{id:"ar",name:"Arabic",type:"tts"},{id:"bg",name:"Bulgarian",type:"tts"},{id:"bn",name:"Bengali",type:"tts"},{id:"bs",name:"Bosnian",type:"tts"},{id:"ca",name:"Catalan",type:"tts"},{id:"cs",name:"Czech",type:"tts"},{id:"cy",name:"Welsh",type:"tts"},{id:"da",name:"Danish",type:"tts"},{id:"de",name:"German",type:"tts"},{id:"el",name:"Greek",type:"tts"},{id:"en",name:"English",type:"tts"},{id:"eo",name:"Esperanto",type:"tts"},{id:"es",name:"Spanish",type:"tts"},{id:"et",name:"Estonian",type:"tts"},{id:"fi",name:"Finnish",type:"tts"},{id:"fr",name:"French",type:"tts"},{id:"gu",name:"Gujarati",type:"tts"},{id:"hi",name:"Hindi",type:"tts"},{id:"hr",name:"Croatian",type:"tts"},{id:"hu",name:"Hungarian",type:"tts"},{id:"hy",name:"Armenian",type:"tts"},{id:"id",name:"Indonesian",type:"tts"},{id:"is",name:"Icelandic",type:"tts"},{id:"it",name:"Italian",type:"tts"},{id:"ja",name:"Japanese",type:"tts"},{id:"jw",name:"Javanese",type:"tts"},{id:"km",name:"Khmer",type:"tts"},{id:"kn",name:"Kannada",type:"tts"},{id:"ko",name:"Korean",type:"tts"},{id:"la",name:"Latin",type:"tts"},{id:"lv",name:"Latvian",type:"tts"},{id:"mk",name:"Macedonian",type:"tts"},{id:"ml",name:"Malayalam",type:"tts"},{id:"mr",name:"Marathi",type:"tts"},{id:"my",name:"Myanmar (Burmese)",type:"tts"},{id:"ne",name:"Nepali",type:"tts"},{id:"nl",name:"Dutch",type:"tts"},{id:"no",name:"Norwegian",type:"tts"},{id:"pl",name:"Polish",type:"tts"},{id:"pt",name:"Portuguese",type:"tts"},{id:"ro",name:"Romanian",type:"tts"},{id:"ru",name:"Russian",type:"tts"},{id:"si",name:"Sinhala",type:"tts"},{id:"sk",name:"Slovak",type:"tts"},{id:"sq",name:"Albanian",type:"tts"},{id:"sr",name:"Serbian",type:"tts"},{id:"su",name:"Sundanese",type:"tts"},{id:"sv",name:"Swedish",type:"tts"},{id:"sw",name:"Swahili",type:"tts"},{id:"ta",name:"Tamil",type:"tts"},{id:"te",name:"Telugu",type:"tts"},{id:"th",name:"Thai",type:"tts"},{id:"tl",name:"Filipino",type:"tts"},{id:"tr",name:"Turkish",type:"tts"},{id:"uk",name:"Ukrainian",type:"tts"},{id:"ur",name:"Urdu",type:"tts"},{id:"vi",name:"Vietnamese",type:"tts"},{id:"zh-CN",name:"Chinese (Simplified)",type:"tts"},{id:"zh-TW",name:"Chinese (Traditional)",type:"tts"}]},40697:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,81921,23)),Promise.resolve().then(c.t.bind(c,60440,23)),Promise.resolve().then(c.t.bind(c,84342,23)),Promise.resolve().then(c.t.bind(c,82265,23)),Promise.resolve().then(c.t.bind(c,35421,23)),Promise.resolve().then(c.t.bind(c,61335,23)),Promise.resolve().then(c.t.bind(c,70664,23)),Promise.resolve().then(c.bind(c,74661))},41011:(a,b,c)=>{Promise.resolve().then(c.bind(c,82275)),Promise.resolve().then(c.bind(c,74281)),Promise.resolve().then(c.bind(c,78962)),Promise.resolve().then(c.t.bind(c,90929,23)),Promise.resolve().then(c.bind(c,5211)),Promise.resolve().then(c.bind(c,44679)),Promise.resolve().then(c.bind(c,19308))},42889:(a,b,c)=>{"use strict";c.d(b,{Xg:()=>g,vq:()=>d.vq,KC:()=>h});var d=c(87592);d.xq["xiaomi-tokenplan"]?.regions,d.xq["xiaomi-tokenplan"]?.defaultRegion;var e=c(83527);c(43118);let f=Object.fromEntries(e.A.filter(a=>a.alias&&a.alias!==a.id).map(a=>[a.id,a.alias])),g=Object.fromEntries(Object.keys(d.xq).map(a=>[a,f[a]||a]));function h(a){let b=g[a]||a;return d.vq[b]||[]}},43118:(a,b,c)=>{"use strict";function d(a){return a.split(/[-_\s]+/).filter(Boolean).map(a=>/^\d/.test(a)?a:a.charAt(0).toUpperCase()+a.slice(1)).join(" ")}c.d(b,{pk:()=>f});let e=[[/^kimi-k(\d+(?:\.\d+)?)(-thinking)?$/i,a=>`Kimi K${a[1]}${a[2]?" Thinking":""}`],[/^glm-(\d+(?:\.\d+)?)(v)?$/i,a=>`GLM ${a[1]}${a[2]?"V (Vision)":""}`],[/^minimax-m(\d+(?:\.\d+)?)$/i,a=>`MiniMax M${a[1]}`],[/^gpt-(.+)$/i,a=>`GPT ${d(a[1])}`],[/^gemini-(.+)$/i,a=>`Gemini ${d(a[1])}`],[/^grok-(.+)$/i,a=>`Grok ${d(a[1])}`],[/^deepseek-(.+)$/i,a=>`DeepSeek ${d(a[1])}`],[/^qwen([\d.]+.*)$/i,a=>`Qwen ${d(a[1])}`]];function f(a){let b="string"==typeof a?{id:a}:a;return void 0!==b.name?b:{...b,name:function(a){if("string"!=typeof a)return a;for(let[b,c]of e){let d=a.match(b);if(d)return c(d)}return a}(b.id)}}},44679:(a,b,c)=>{"use strict";function d(){return null}c.d(b,{default:()=>d}),c(67484)},47058:(a,b,c)=>{"use strict";function d(a,b){let c=process.env[a];if(null==c||""===c)return b;let d=parseInt(c,10);return Number.isFinite(d)&&d>0?d:b}c.d(b,{Ps:()=>e,cI:()=>g,pH:()=>f}),c(52124);let e=process.env.SEARXNG_URL?.trim()||"http://localhost:8888/search";d("STREAM_STALL_TIMEOUT_MS",12e4),d("STREAM_FIRST_CHUNK_TIMEOUT_MS",2e5);let f=d("FETCH_CONNECT_TIMEOUT_MS",6e4);d("PENDING_COMPLETION_FLUSH_MS",3e3),d("GEMINI_NATIVE_TTS_FETCH_TIMEOUT_MS",45e3);let g={429:{attempts:0,delayMs:0},502:{attempts:3,delayMs:3e3},503:{attempts:3,delayMs:2e3},504:{attempts:2,delayMs:3e3}}},51126:(a,b,c)=>{"use strict";c.d(b,{CL:()=>f,QC:()=>g,Xn:()=>e,YZ:()=>d});let d=["en","vi","zh-CN","zh-TW","ja","pt-BR","pt-PT","ko","es","de","fr","he","ar","ru","pl","cs","nl","tr","uk","tl","id","km","th","hi","bn","ur","ro","sv","it","el","hu","fi","da","no","fa"],e="en",f="locale";function g(a){return"zh"===a||"zh-CN"===a?"zh-CN":"en"===a?"en":"vi"===a?"vi":"zh-TW"===a?"zh-TW":"ja"===a?"ja":"pt-BR"===a?"pt-BR":"pt-PT"===a?"pt-PT":"ko"===a?"ko":"es"===a?"es":"de"===a?"de":"fr"===a?"fr":"he"===a?"he":"ar"===a?"ar":"ru"===a?"ru":"pl"===a?"pl":"cs"===a?"cs":"nl"===a?"nl":"tr"===a?"tr":"uk"===a?"uk":"tl"===a?"tl":"id"===a?"id":"th"===a?"th":"km"===a?"km":"hi"===a?"hi":"bn"===a?"bn":"ur"===a?"ur":"ro"===a?"ro":"sv"===a?"sv":"it"===a?"it":"el"===a?"el":"hu"===a?"hu":"fi"===a?"fi":"da"===a?"da":"no"===a?"no":"fa"===a?"fa":e}},51981:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,81921,23))},52124:(a,b,c)=>{},57529:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>s,metadata:()=>q,viewport:()=>r});var d=c(5735),e=c(5051),f=c.n(e),g=c(59537);c(36497),c(61135);var h=c(89886),i=c(89718),j=c(25334);let k=!1;async function l(){if(k)return!0;try{let a=await (0,i.getSettings)();(0,j.kV)(a),k=!0}catch(a){console.error("[ServerInit] Error initializing outbound proxy:",a)}return k}setImmediate(()=>{l().catch(console.log)});var m=c(94123);"phase-production-build"===process.env.NEXT_PHASE||"phase-export"===process.env.NEXT_PHASE||"phase-static"===process.env.NEXT_PHASE||global.__appBootstrapped||(global.__appBootstrapped=!0,(0,m.Ay)().catch(a=>console.error("[Bootstrap] init failed:",a.message)));var n=c(26892),o=c(85117),p=c(15273);(0,n.wJ)();let q={title:"10Router - AI Infrastructure Management",description:"One endpoint for all your AI providers. Manage keys, monitor usage, and scale effortlessly.",icons:{icon:"/favicon.svg"}},r={themeColor:"#0a0a0a"};function s({children:a}){return(0,d.jsxs)("html",{lang:"en",suppressHydrationWarning:!0,children:[(0,d.jsxs)("head",{children:[(0,d.jsx)("script",{dangerouslySetInnerHTML:{__html:`(function(){try{var raw=null;try{raw=localStorage.getItem('theme')}catch(e){}
1
+ exports.id=8172,exports.ids=[8172],exports.modules={4249:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,95547,23)),Promise.resolve().then(c.t.bind(c,15098,23)),Promise.resolve().then(c.t.bind(c,47644,23)),Promise.resolve().then(c.t.bind(c,33859,23)),Promise.resolve().then(c.t.bind(c,98099,23)),Promise.resolve().then(c.t.bind(c,16237,23)),Promise.resolve().then(c.t.bind(c,98562,23)),Promise.resolve().then(c.t.bind(c,36675,23))},4717:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,95547,23))},5211:(a,b,c)=>{"use strict";c.d(b,{RuntimeI18nProvider:()=>g});var d=c(48249),e=c(67484),f=c(19099);function g({children:a}){(0,f.usePathname)();let[,b]=(0,e.useState)(0);return(0,d.jsx)(d.Fragment,{children:a})}c(99258)},12020:(a,b,c)=>{"use strict";c.d(b,{Q2:()=>d.Q2,fg:()=>d.fg,vQ:()=>e,MA:()=>d.MA,U5:()=>j,UY:()=>i,Nu:()=>f,zN:()=>d.zN,B2:()=>h,h0:()=>g});var d=c(92592);c(91431);let e={name:"10Router",description:"AI Infrastructure Management",version:"1.3.6"},f={repoUrl:"https://github.com/techysy/10router",donateUrl:"https://raw.githubusercontent.com/techysy/10router/refs/heads/main/donate.json",changelogUrlBase:"https://raw.githubusercontent.com/techysy/10router/refs/heads/main/public/i18n/changelog/",changelogUrlFallbackBase:"https://gitee.com/techysy/10router/raw/main/public/i18n/changelog/"},g={npmPackageName:"@techysy/10router",installCmd:"npm i -g @techysy/10router",installCmdLatest:"npm i -g @techysy/10router@latest --prefer-online",shutdownCountdownSec:3,exitDelayMs:500,statusPort:20129,statusPollIntervalMs:1e3,statusLogTailLines:8,installRetries:3,installRetryDelayMs:5e3,lingerAfterDoneMs:3e4,waitForExitMinMs:5e3,waitForExitMaxMs:2e4,waitForExitCheckMs:500,appPort:20128},h={storageKey:"theme",defaultTheme:"system"},i={maxLines:200,pollIntervalMs:1e3},j=6e4},13033:(a,b,c)=>{"use strict";c.d(b,{A:()=>g});var d=c(31417),e=c(300),f=c(12020);let g=(0,d.v)((0,e.Zr)((a,b)=>({theme:f.B2.defaultTheme,setTheme:b=>{a({theme:b})},toggleTheme:()=>{let c=b().theme,d="system"===c?"light":"light"===c?"dark":"system";a({theme:d})},initTheme:()=>{b().theme}}),{name:f.B2.storageKey}))},15273:(a,b,c)=>{"use strict";c.d(b,{default:()=>e});var d=c(77943);(0,d.registerClientReference)(function(){throw Error("Attempted to call isChunkLoadError() from the server but isChunkLoadError is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"F:\\Files\\GitHub Files\\10router\\src\\shared\\components\\ChunkReloadGuard.js","isChunkLoadError");let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call the default export of \"F:\\\\Files\\\\GitHub Files\\\\10router\\\\src\\\\shared\\\\components\\\\ChunkReloadGuard.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"F:\\Files\\GitHub Files\\10router\\src\\shared\\components\\ChunkReloadGuard.js","default")},19308:(a,b,c)=>{"use strict";c.d(b,{ThemeProvider:()=>f});var d=c(48249);c(67484);var e=c(13033);function f({children:a}){let{initTheme:b}=(0,e.A)();return(0,d.jsx)(d.Fragment,{children:a})}},25334:(a,b,c)=>{"use strict";function d(a){return null==a?"":String(a).trim()}c.d(b,{Go:()=>f,kV:()=>g});let e=["http:","https:","socks5:","socks4:","socks5h:","socks4a:"];function f(a){let b,c=d(a);if(!c)return"Proxy URL is required";if(c.startsWith("enc:v1:"))return"The value looks like an encrypted credential (enc:v1:). Proxy pools store plain proxy URLs — paste the decrypted URL (e.g. http://host:port) instead.";if(c.startsWith("enc://"))return"enc:// is not a supported proxy protocol. This project stores credentials with enc:v1:, not enc://.";if(/[\r\n]/.test(c))return"Invalid proxy URL: must be a single line";let f=!/^[a-z][a-z0-9+.-]*:\/\//i.test(c)&&(c.includes("@")?/^[^@\s]+@[^:/@\s]+(?::\d+)?(\/.*)?$/.test(c):!c.includes(":")||/^[^:/@\s]+:\d+(\/.*)?$/.test(c))?`http://${c}`:c;try{b=new URL(f)}catch{return"Invalid proxy URL"}return e.includes(b.protocol)?null:`Invalid proxy URL: protocol must be one of ${e.join(", ")}`}function g({outboundProxyEnabled:a,outboundProxyUrl:b,outboundNoProxy:c}={}){if("u"<typeof process||!process.env)return;let f=d(b),h=d(c);if(!a){"1"===process.env.NINE_ROUTER_PROXY_MANAGED&&(delete process.env.HTTP_PROXY,delete process.env.HTTPS_PROXY,delete process.env.ALL_PROXY,delete process.env.NO_PROXY,delete process.env.NINE_ROUTER_PROXY_MANAGED,delete process.env.NINE_ROUTER_PROXY_URL,delete process.env.NINE_ROUTER_NO_PROXY);return}let i="1"===process.env.NINE_ROUTER_PROXY_MANAGED,j=!1;if(i&&(f||(delete process.env.HTTP_PROXY,delete process.env.HTTPS_PROXY,delete process.env.ALL_PROXY,delete process.env.NINE_ROUTER_PROXY_URL),h||(delete process.env.NO_PROXY,delete process.env.NINE_ROUTER_NO_PROXY)),f){let a=function(a){if(!a||/[\n\r`$]/.test(a))return null;try{let b=new URL(a);if(!e.includes(b.protocol))return null;return b.href}catch{return null}}(f);if(a){process.env.HTTP_PROXY=a,process.env.HTTPS_PROXY=a,process.env.ALL_PROXY=a,process.env.NINE_ROUTER_PROXY_URL=a,j=!0;let b=[...new Set([...h.split(",").map(a=>a.trim()).filter(Boolean),"127.0.0.1","localhost","::1"])].join(",");process.env.NO_PROXY=b,process.env.NINE_ROUTER_NO_PROXY=b}}h&&!process.env.NO_PROXY&&(process.env.NO_PROXY=h,process.env.NINE_ROUTER_NO_PROXY=h,j=!0),j?process.env.NINE_ROUTER_PROXY_MANAGED="1":i&&delete process.env.NINE_ROUTER_PROXY_MANAGED}},26892:(a,b,c)=>{"use strict";c.d(b,{KM:()=>n,fO:()=>m,up:()=>o,wJ:()=>l});var d=c(94735),e=c(30869);let f=["log","info","warn","error","debug"];global._consoleLogBufferState||(global._consoleLogBufferState={logs:[],patched:!1,originals:{},emitter:new d.EventEmitter},global._consoleLogBufferState.emitter.setMaxListeners(50));let g=global._consoleLogBufferState;function h(){if(g.flushTimer=null,!g.pendingLines.length)return;let a=g.pendingLines.splice(0,g.pendingLines.length);g.emitter.emit("lines",a)}g.emitter||(g.emitter=new d.EventEmitter,g.emitter.setMaxListeners(50)),g.pendingLines||(g.pendingLines=[]),g.flushTimer||(g.flushTimer=null);let i=/\x1b\[[0-9;]*m/g;function j(a){return a.replace(i,"")}function k(a){if("string"==typeof a)return j(a);if(a instanceof Error)return j(a.stack||a.message||String(a));try{return j(JSON.stringify(a))}catch{return j(String(a))}}function l(){if(!g.patched){for(let a of f)g.originals[a]=console[a],console[a]=(...b)=>{!function(a){g.logs.push(a);let b=e.UY.maxLines;g.logs.length>b&&(g.logs=g.logs.slice(-b)),g.pendingLines.push(a),g.pendingLines.length>=50?(g.flushTimer&&(clearTimeout(g.flushTimer),g.flushTimer=null),h()):g.flushTimer||(g.flushTimer=setTimeout(h,100),g.flushTimer?.unref?.())}(b.map(k).join(" ")),g.originals[a](...b)};g.patched=!0}}function m(){return g.logs}function n(){g.logs=[],g.emitter.emit("clear")}function o(){return g.emitter}},30395:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,20349,23)),Promise.resolve().then(c.t.bind(c,31935,23)),Promise.resolve().then(c.t.bind(c,16764,23)),Promise.resolve().then(c.t.bind(c,33071,23)),Promise.resolve().then(c.bind(c,85117)),Promise.resolve().then(c.bind(c,15273)),Promise.resolve().then(c.bind(c,89886))},34973:(a,b,c)=>{"use strict";c.d(b,{I:()=>d});let d=[{id:"af",name:"Afrikaans",type:"tts"},{id:"ar",name:"Arabic",type:"tts"},{id:"bg",name:"Bulgarian",type:"tts"},{id:"bn",name:"Bengali",type:"tts"},{id:"bs",name:"Bosnian",type:"tts"},{id:"ca",name:"Catalan",type:"tts"},{id:"cs",name:"Czech",type:"tts"},{id:"cy",name:"Welsh",type:"tts"},{id:"da",name:"Danish",type:"tts"},{id:"de",name:"German",type:"tts"},{id:"el",name:"Greek",type:"tts"},{id:"en",name:"English",type:"tts"},{id:"eo",name:"Esperanto",type:"tts"},{id:"es",name:"Spanish",type:"tts"},{id:"et",name:"Estonian",type:"tts"},{id:"fi",name:"Finnish",type:"tts"},{id:"fr",name:"French",type:"tts"},{id:"gu",name:"Gujarati",type:"tts"},{id:"hi",name:"Hindi",type:"tts"},{id:"hr",name:"Croatian",type:"tts"},{id:"hu",name:"Hungarian",type:"tts"},{id:"hy",name:"Armenian",type:"tts"},{id:"id",name:"Indonesian",type:"tts"},{id:"is",name:"Icelandic",type:"tts"},{id:"it",name:"Italian",type:"tts"},{id:"ja",name:"Japanese",type:"tts"},{id:"jw",name:"Javanese",type:"tts"},{id:"km",name:"Khmer",type:"tts"},{id:"kn",name:"Kannada",type:"tts"},{id:"ko",name:"Korean",type:"tts"},{id:"la",name:"Latin",type:"tts"},{id:"lv",name:"Latvian",type:"tts"},{id:"mk",name:"Macedonian",type:"tts"},{id:"ml",name:"Malayalam",type:"tts"},{id:"mr",name:"Marathi",type:"tts"},{id:"my",name:"Myanmar (Burmese)",type:"tts"},{id:"ne",name:"Nepali",type:"tts"},{id:"nl",name:"Dutch",type:"tts"},{id:"no",name:"Norwegian",type:"tts"},{id:"pl",name:"Polish",type:"tts"},{id:"pt",name:"Portuguese",type:"tts"},{id:"ro",name:"Romanian",type:"tts"},{id:"ru",name:"Russian",type:"tts"},{id:"si",name:"Sinhala",type:"tts"},{id:"sk",name:"Slovak",type:"tts"},{id:"sq",name:"Albanian",type:"tts"},{id:"sr",name:"Serbian",type:"tts"},{id:"su",name:"Sundanese",type:"tts"},{id:"sv",name:"Swedish",type:"tts"},{id:"sw",name:"Swahili",type:"tts"},{id:"ta",name:"Tamil",type:"tts"},{id:"te",name:"Telugu",type:"tts"},{id:"th",name:"Thai",type:"tts"},{id:"tl",name:"Filipino",type:"tts"},{id:"tr",name:"Turkish",type:"tts"},{id:"uk",name:"Ukrainian",type:"tts"},{id:"ur",name:"Urdu",type:"tts"},{id:"vi",name:"Vietnamese",type:"tts"},{id:"zh-CN",name:"Chinese (Simplified)",type:"tts"},{id:"zh-TW",name:"Chinese (Traditional)",type:"tts"}]},40697:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,81921,23)),Promise.resolve().then(c.t.bind(c,60440,23)),Promise.resolve().then(c.t.bind(c,84342,23)),Promise.resolve().then(c.t.bind(c,82265,23)),Promise.resolve().then(c.t.bind(c,35421,23)),Promise.resolve().then(c.t.bind(c,61335,23)),Promise.resolve().then(c.t.bind(c,70664,23)),Promise.resolve().then(c.bind(c,74661))},41011:(a,b,c)=>{Promise.resolve().then(c.bind(c,82275)),Promise.resolve().then(c.bind(c,74281)),Promise.resolve().then(c.bind(c,78962)),Promise.resolve().then(c.t.bind(c,90929,23)),Promise.resolve().then(c.bind(c,5211)),Promise.resolve().then(c.bind(c,44679)),Promise.resolve().then(c.bind(c,19308))},42889:(a,b,c)=>{"use strict";c.d(b,{Xg:()=>g,vq:()=>d.vq,KC:()=>h});var d=c(87592);d.xq["xiaomi-tokenplan"]?.regions,d.xq["xiaomi-tokenplan"]?.defaultRegion;var e=c(83527);c(43118);let f=Object.fromEntries(e.A.filter(a=>a.alias&&a.alias!==a.id).map(a=>[a.id,a.alias])),g=Object.fromEntries(Object.keys(d.xq).map(a=>[a,f[a]||a]));function h(a){let b=g[a]||a;return d.vq[b]||[]}},43118:(a,b,c)=>{"use strict";function d(a){return a.split(/[-_\s]+/).filter(Boolean).map(a=>/^\d/.test(a)?a:a.charAt(0).toUpperCase()+a.slice(1)).join(" ")}c.d(b,{pk:()=>f});let e=[[/^kimi-k(\d+(?:\.\d+)?)(-thinking)?$/i,a=>`Kimi K${a[1]}${a[2]?" Thinking":""}`],[/^glm-(\d+(?:\.\d+)?)(v)?$/i,a=>`GLM ${a[1]}${a[2]?"V (Vision)":""}`],[/^minimax-m(\d+(?:\.\d+)?)$/i,a=>`MiniMax M${a[1]}`],[/^gpt-(.+)$/i,a=>`GPT ${d(a[1])}`],[/^gemini-(.+)$/i,a=>`Gemini ${d(a[1])}`],[/^grok-(.+)$/i,a=>`Grok ${d(a[1])}`],[/^deepseek-(.+)$/i,a=>`DeepSeek ${d(a[1])}`],[/^qwen([\d.]+.*)$/i,a=>`Qwen ${d(a[1])}`]];function f(a){let b="string"==typeof a?{id:a}:a;return void 0!==b.name?b:{...b,name:function(a){if("string"!=typeof a)return a;for(let[b,c]of e){let d=a.match(b);if(d)return c(d)}return a}(b.id)}}},44679:(a,b,c)=>{"use strict";function d(){return null}c.d(b,{default:()=>d}),c(67484)},47058:(a,b,c)=>{"use strict";function d(a,b){let c=process.env[a];if(null==c||""===c)return b;let d=parseInt(c,10);return Number.isFinite(d)&&d>0?d:b}c.d(b,{Ps:()=>e,cI:()=>g,pH:()=>f}),c(52124);let e=process.env.SEARXNG_URL?.trim()||"http://localhost:8888/search";d("STREAM_STALL_TIMEOUT_MS",12e4),d("STREAM_FIRST_CHUNK_TIMEOUT_MS",2e5);let f=d("FETCH_CONNECT_TIMEOUT_MS",6e4);d("PENDING_COMPLETION_FLUSH_MS",3e3),d("GEMINI_NATIVE_TTS_FETCH_TIMEOUT_MS",45e3);let g={429:{attempts:0,delayMs:0},502:{attempts:3,delayMs:3e3},503:{attempts:3,delayMs:2e3},504:{attempts:2,delayMs:3e3}}},51126:(a,b,c)=>{"use strict";c.d(b,{CL:()=>f,QC:()=>g,Xn:()=>e,YZ:()=>d});let d=["en","vi","zh-CN","zh-TW","ja","pt-BR","pt-PT","ko","es","de","fr","he","ar","ru","pl","cs","nl","tr","uk","tl","id","km","th","hi","bn","ur","ro","sv","it","el","hu","fi","da","no","fa"],e="en",f="locale";function g(a){return"zh"===a||"zh-CN"===a?"zh-CN":"en"===a?"en":"vi"===a?"vi":"zh-TW"===a?"zh-TW":"ja"===a?"ja":"pt-BR"===a?"pt-BR":"pt-PT"===a?"pt-PT":"ko"===a?"ko":"es"===a?"es":"de"===a?"de":"fr"===a?"fr":"he"===a?"he":"ar"===a?"ar":"ru"===a?"ru":"pl"===a?"pl":"cs"===a?"cs":"nl"===a?"nl":"tr"===a?"tr":"uk"===a?"uk":"tl"===a?"tl":"id"===a?"id":"th"===a?"th":"km"===a?"km":"hi"===a?"hi":"bn"===a?"bn":"ur"===a?"ur":"ro"===a?"ro":"sv"===a?"sv":"it"===a?"it":"el"===a?"el":"hu"===a?"hu":"fi"===a?"fi":"da"===a?"da":"no"===a?"no":"fa"===a?"fa":e}},51981:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,81921,23))},52124:(a,b,c)=>{},57529:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>s,metadata:()=>q,viewport:()=>r});var d=c(5735),e=c(5051),f=c.n(e),g=c(59537);c(36497),c(61135);var h=c(89886),i=c(89718),j=c(25334);let k=!1;async function l(){if(k)return!0;try{let a=await (0,i.getSettings)();(0,j.kV)(a),k=!0}catch(a){console.error("[ServerInit] Error initializing outbound proxy:",a)}return k}setImmediate(()=>{l().catch(console.log)});var m=c(94123);"phase-production-build"===process.env.NEXT_PHASE||"phase-export"===process.env.NEXT_PHASE||"phase-static"===process.env.NEXT_PHASE||global.__appBootstrapped||(global.__appBootstrapped=!0,(0,m.Ay)().catch(a=>console.error("[Bootstrap] init failed:",a.message)));var n=c(26892),o=c(85117),p=c(15273);(0,n.wJ)();let q={title:"10Router - AI Infrastructure Management",description:"One endpoint for all your AI providers. Manage keys, monitor usage, and scale effortlessly.",icons:{icon:"/favicon.svg"}},r={themeColor:"#0a0a0a"};function s({children:a}){return(0,d.jsxs)("html",{lang:"en",suppressHydrationWarning:!0,children:[(0,d.jsxs)("head",{children:[(0,d.jsx)("script",{dangerouslySetInnerHTML:{__html:`(function(){try{var raw=null;try{raw=localStorage.getItem('theme')}catch(e){}
2
2
  var t=null;if(raw){try{var j=JSON.parse(raw);t=(j&&j.state&&j.state.theme)||null}catch(e){t=raw}}
3
3
  if(t!=='light'&&t!=='dark')t='system';
4
4
  var dark=t==='dark'||(window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches);