vansrouter 0.8.8 → 0.8.9

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 (727) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +8 -7
  3. package/app/.next-cli-build/build-manifest.json +2 -2
  4. package/app/.next-cli-build/prerender-manifest.json +3 -3
  5. package/app/.next-cli-build/routes-manifest.json +8 -0
  6. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +3 -3
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +3 -3
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +3 -3
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +3 -3
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +2 -2
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  50. package/app/.next-cli-build/server/app/_global-error/page.js +3 -3
  51. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  52. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  53. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  54. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  55. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  56. package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  57. package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
  58. package/app/.next-cli-build/server/app/_global-error.segments/_index.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 +2 -2
  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 +1 -1
  63. package/app/.next-cli-build/server/app/_not-found.rsc +4 -4
  64. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
  65. package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
  66. package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +4 -4
  67. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  68. package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  69. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  70. package/app/.next-cli-build/server/app/api/auth/check/route.js +1 -1
  71. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  72. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  73. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  74. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  75. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  76. package/app/.next-cli-build/server/app/api/auth/reset-password/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/cli-tools/all-statuses/route.js +4 -4
  79. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  80. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  81. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  82. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
  83. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  84. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +1 -1
  85. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  86. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  87. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  88. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  89. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  90. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +3 -3
  91. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  92. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  93. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  94. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  95. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  96. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  97. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -0
  98. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -0
  99. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route_client-reference-manifest.js +1 -0
  100. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  101. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  102. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  103. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  104. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  105. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  106. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  107. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  108. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +2 -2
  109. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +2 -2
  110. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  111. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  112. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  113. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  114. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  115. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  116. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  117. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  118. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  119. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  120. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  121. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  122. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  123. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  124. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  125. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  126. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  127. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  128. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  129. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  130. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  131. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  132. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  133. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  134. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  135. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  136. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  137. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  138. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  139. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  140. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  141. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  142. package/app/.next-cli-build/server/app/api/providers/circuit-breakers/[name]/reset/route.js +1 -1
  143. package/app/.next-cli-build/server/app/api/providers/circuit-breakers/route.js +1 -1
  144. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  145. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  146. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  147. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  148. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  149. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  150. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  151. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  152. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  153. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  154. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  155. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  156. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  157. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  158. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  159. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  160. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  161. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  162. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  163. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  164. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  165. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  166. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  167. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  168. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  169. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  170. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  171. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  172. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  173. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  174. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  175. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  176. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  177. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  178. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  179. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  180. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  181. package/app/.next-cli-build/server/app/api/usage/request-details/[id]/route.js +1 -1
  182. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  183. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  184. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  185. package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
  186. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  187. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  188. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  189. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  190. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  191. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  192. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +2 -2
  193. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  194. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  195. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  196. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  197. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  198. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  199. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  200. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  201. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  202. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  203. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  204. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  205. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  206. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  207. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  208. package/app/.next-cli-build/server/app/callback/page.js +2 -2
  209. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  210. package/app/.next-cli-build/server/app/callback.html +1 -1
  211. package/app/.next-cli-build/server/app/callback.rsc +4 -4
  212. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +4 -4
  213. package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
  214. package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +4 -4
  215. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
  216. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  217. package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
  218. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  219. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +6 -6
  220. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  221. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  222. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  223. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  224. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
  225. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  226. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +4 -4
  227. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
  228. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  229. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +6 -6
  230. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  231. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  232. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  233. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  234. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
  235. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  236. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +4 -4
  237. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
  238. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  239. package/app/.next-cli-build/server/app/dashboard/combos.rsc +6 -6
  240. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  241. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  242. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  243. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  244. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
  245. package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  246. package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +4 -4
  247. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
  248. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  249. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +6 -6
  250. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  251. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  252. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  253. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  254. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +6 -6
  255. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  256. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +4 -4
  257. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
  258. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  259. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +6 -6
  260. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  261. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  262. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  263. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  264. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  265. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +6 -6
  266. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  267. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +4 -4
  268. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
  269. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  270. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
  271. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  272. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  273. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  274. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  275. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
  276. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  277. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +4 -4
  278. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
  279. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  280. package/app/.next-cli-build/server/app/dashboard/profile.rsc +6 -6
  281. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  282. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  283. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  284. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  285. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
  286. package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  287. package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +4 -4
  288. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
  289. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  290. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +6 -6
  291. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  292. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  293. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  294. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  295. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  296. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
  297. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  298. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +4 -4
  299. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
  300. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  301. package/app/.next-cli-build/server/app/dashboard/providers.rsc +6 -6
  302. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  303. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  304. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  305. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  306. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
  307. package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  308. package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +4 -4
  309. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
  310. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  311. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +6 -6
  312. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  313. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  314. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  315. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  316. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
  317. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  318. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +4 -4
  319. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
  320. package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  321. package/app/.next-cli-build/server/app/dashboard/quota.rsc +7 -7
  322. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  323. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  324. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  325. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  326. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
  327. package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  328. package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +4 -4
  329. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
  330. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
  331. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  332. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  333. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +4 -4
  334. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
  335. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  336. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
  337. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
  338. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  339. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  340. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  341. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  342. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  343. package/app/.next-cli-build/server/app/dashboard/skills.rsc +6 -6
  344. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  345. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
  346. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  347. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  348. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
  349. package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
  350. package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +4 -4
  351. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
  352. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  353. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +6 -6
  354. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
  355. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
  356. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  357. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  358. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +6 -6
  359. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
  360. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +4 -4
  361. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
  362. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  363. package/app/.next-cli-build/server/app/dashboard/translator.rsc +6 -6
  364. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  365. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  366. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  367. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  368. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
  369. package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  370. package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +4 -4
  371. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
  372. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  373. package/app/.next-cli-build/server/app/dashboard/usage.rsc +6 -6
  374. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  375. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  376. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  377. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  378. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
  379. package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  380. package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +4 -4
  381. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
  382. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  383. package/app/.next-cli-build/server/app/dashboard.rsc +6 -6
  384. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  385. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  386. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  387. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +6 -6
  388. package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
  389. package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +4 -4
  390. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
  391. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  392. package/app/.next-cli-build/server/app/landing/page.js +2 -2
  393. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  394. package/app/.next-cli-build/server/app/landing.html +1 -1
  395. package/app/.next-cli-build/server/app/landing.rsc +4 -4
  396. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +4 -4
  397. package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
  398. package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +4 -4
  399. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
  400. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
  401. package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
  402. package/app/.next-cli-build/server/app/login/page.js +2 -2
  403. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  404. package/app/.next-cli-build/server/app/login.html +1 -1
  405. package/app/.next-cli-build/server/app/login.rsc +5 -5
  406. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
  407. package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
  408. package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +4 -4
  409. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
  410. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  411. package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
  412. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +1 -1
  413. package/app/.next-cli-build/server/app/masuk/page.js +2 -2
  414. package/app/.next-cli-build/server/app/masuk/page_client-reference-manifest.js +1 -1
  415. package/app/.next-cli-build/server/app-paths-manifest.json +8 -7
  416. package/app/.next-cli-build/server/chunks/1099.js +2 -2
  417. package/app/.next-cli-build/server/chunks/2557.js +17 -17
  418. package/app/.next-cli-build/server/chunks/383.js +1 -1
  419. package/app/.next-cli-build/server/chunks/4418.js +14 -10
  420. package/app/.next-cli-build/server/chunks/4574.js +2 -2
  421. package/app/.next-cli-build/server/chunks/5006.js +2 -2
  422. package/app/.next-cli-build/server/chunks/5577.js +1 -1
  423. package/app/.next-cli-build/server/chunks/5598.js +1 -1
  424. package/app/.next-cli-build/server/chunks/6159.js +1 -1
  425. package/app/.next-cli-build/server/chunks/7164.js +1 -1
  426. package/app/.next-cli-build/server/chunks/7204.js +1 -1
  427. package/app/.next-cli-build/server/chunks/8711.js +1 -1
  428. package/app/.next-cli-build/server/chunks/9633.js +1 -1
  429. package/app/.next-cli-build/server/chunks/9765.js +1 -1
  430. package/app/.next-cli-build/server/chunks/9984.js +1 -1
  431. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  432. package/app/.next-cli-build/server/middleware.js +2 -2
  433. package/app/.next-cli-build/server/pages/404.html +1 -1
  434. package/app/.next-cli-build/server/pages/500.html +1 -1
  435. package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  436. package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  437. package/app/.next-cli-build/static/chunks/{4385-fa42d9f0c942dc94.js → 4385-ef3f83f13fe6b4f2.js} +1 -1
  438. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-d380f305e4f93bed.js +1 -0
  439. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/{page-843674c44029b01b.js → page-3eaea075a22577af.js} +1 -1
  440. package/app/.next-cli-build/static/chunks/app/_global-error/page-e99da107f9c7c581.js +1 -0
  441. package/app/.next-cli-build/static/chunks/app/api/auth/check/route-e99da107f9c7c581.js +1 -0
  442. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-e99da107f9c7c581.js +1 -0
  443. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-e99da107f9c7c581.js +1 -0
  444. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-e99da107f9c7c581.js +1 -0
  445. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-e99da107f9c7c581.js +1 -0
  446. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-e99da107f9c7c581.js +1 -0
  447. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-e99da107f9c7c581.js +1 -0
  448. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-e99da107f9c7c581.js +1 -0
  449. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-e99da107f9c7c581.js +1 -0
  450. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-e99da107f9c7c581.js +1 -0
  451. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-e99da107f9c7c581.js +1 -0
  452. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-e99da107f9c7c581.js +1 -0
  453. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-e99da107f9c7c581.js +1 -0
  454. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-e99da107f9c7c581.js +1 -0
  455. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-e99da107f9c7c581.js +1 -0
  456. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-e99da107f9c7c581.js +1 -0
  457. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-e99da107f9c7c581.js +1 -0
  458. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-e99da107f9c7c581.js +1 -0
  459. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-e99da107f9c7c581.js +1 -0
  460. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-e99da107f9c7c581.js +1 -0
  461. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-e99da107f9c7c581.js +1 -0
  462. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-e99da107f9c7c581.js +1 -0
  463. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-e99da107f9c7c581.js +1 -0
  464. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-e99da107f9c7c581.js +1 -0
  465. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-e99da107f9c7c581.js +1 -0
  466. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-e99da107f9c7c581.js +1 -0
  467. package/app/.next-cli-build/static/chunks/app/api/combos/route-e99da107f9c7c581.js +1 -0
  468. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-e99da107f9c7c581.js +1 -0
  469. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-e99da107f9c7c581.js +1 -0
  470. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-e99da107f9c7c581.js +1 -0
  471. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-e99da107f9c7c581.js +1 -0
  472. package/app/.next-cli-build/static/chunks/app/api/health/route-e99da107f9c7c581.js +1 -0
  473. package/app/.next-cli-build/static/chunks/app/api/init/route-e99da107f9c7c581.js +1 -0
  474. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-e99da107f9c7c581.js +1 -0
  475. package/app/.next-cli-build/static/chunks/app/api/keys/route-e99da107f9c7c581.js +1 -0
  476. package/app/.next-cli-build/static/chunks/app/api/locale/route-e99da107f9c7c581.js +1 -0
  477. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-e99da107f9c7c581.js +1 -0
  478. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-e99da107f9c7c581.js +1 -0
  479. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-e99da107f9c7c581.js +1 -0
  480. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-e99da107f9c7c581.js +1 -0
  481. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-e99da107f9c7c581.js +1 -0
  482. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-e99da107f9c7c581.js +1 -0
  483. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-e99da107f9c7c581.js +1 -0
  484. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-e99da107f9c7c581.js +1 -0
  485. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-e99da107f9c7c581.js +1 -0
  486. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-e99da107f9c7c581.js +1 -0
  487. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-e99da107f9c7c581.js +1 -0
  488. package/app/.next-cli-build/static/chunks/app/api/models/route-e99da107f9c7c581.js +1 -0
  489. package/app/.next-cli-build/static/chunks/app/api/models/test/route-e99da107f9c7c581.js +1 -0
  490. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-e99da107f9c7c581.js +1 -0
  491. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-e99da107f9c7c581.js +1 -0
  492. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-e99da107f9c7c581.js +1 -0
  493. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-e99da107f9c7c581.js +1 -0
  494. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-e99da107f9c7c581.js +1 -0
  495. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-e99da107f9c7c581.js +1 -0
  496. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-e99da107f9c7c581.js +1 -0
  497. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-e99da107f9c7c581.js +1 -0
  498. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-e99da107f9c7c581.js +1 -0
  499. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-e99da107f9c7c581.js +1 -0
  500. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-e99da107f9c7c581.js +1 -0
  501. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-e99da107f9c7c581.js +1 -0
  502. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-e99da107f9c7c581.js +1 -0
  503. package/app/.next-cli-build/static/chunks/app/api/pricing/route-e99da107f9c7c581.js +1 -0
  504. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-e99da107f9c7c581.js +1 -0
  505. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-e99da107f9c7c581.js +1 -0
  506. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-e99da107f9c7c581.js +1 -0
  507. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-e99da107f9c7c581.js +1 -0
  508. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-e99da107f9c7c581.js +1 -0
  509. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-e99da107f9c7c581.js +1 -0
  510. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-e99da107f9c7c581.js +1 -0
  511. package/app/.next-cli-build/static/chunks/app/api/providers/circuit-breakers/[name]/reset/route-e99da107f9c7c581.js +1 -0
  512. package/app/.next-cli-build/static/chunks/app/api/providers/circuit-breakers/route-e99da107f9c7c581.js +1 -0
  513. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-e99da107f9c7c581.js +1 -0
  514. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-e99da107f9c7c581.js +1 -0
  515. package/app/.next-cli-build/static/chunks/app/api/providers/route-e99da107f9c7c581.js +1 -0
  516. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-e99da107f9c7c581.js +1 -0
  517. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-e99da107f9c7c581.js +1 -0
  518. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-e99da107f9c7c581.js +1 -0
  519. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-e99da107f9c7c581.js +1 -0
  520. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-e99da107f9c7c581.js +1 -0
  521. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-e99da107f9c7c581.js +1 -0
  522. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-e99da107f9c7c581.js +1 -0
  523. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-e99da107f9c7c581.js +1 -0
  524. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-e99da107f9c7c581.js +1 -0
  525. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-e99da107f9c7c581.js +1 -0
  526. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-e99da107f9c7c581.js +1 -0
  527. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-e99da107f9c7c581.js +1 -0
  528. package/app/.next-cli-build/static/chunks/app/api/settings/route-e99da107f9c7c581.js +1 -0
  529. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-e99da107f9c7c581.js +1 -0
  530. package/app/.next-cli-build/static/chunks/app/api/tags/route-e99da107f9c7c581.js +1 -0
  531. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-e99da107f9c7c581.js +1 -0
  532. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-e99da107f9c7c581.js +1 -0
  533. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-e99da107f9c7c581.js +1 -0
  534. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-e99da107f9c7c581.js +1 -0
  535. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-e99da107f9c7c581.js +1 -0
  536. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-e99da107f9c7c581.js +1 -0
  537. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-e99da107f9c7c581.js +1 -0
  538. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-e99da107f9c7c581.js +1 -0
  539. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-e99da107f9c7c581.js +1 -0
  540. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-e99da107f9c7c581.js +1 -0
  541. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-e99da107f9c7c581.js +1 -0
  542. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-e99da107f9c7c581.js +1 -0
  543. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-e99da107f9c7c581.js +1 -0
  544. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-e99da107f9c7c581.js +1 -0
  545. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-e99da107f9c7c581.js +1 -0
  546. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-e99da107f9c7c581.js +1 -0
  547. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-e99da107f9c7c581.js +1 -0
  548. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-e99da107f9c7c581.js +1 -0
  549. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-e99da107f9c7c581.js +1 -0
  550. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/[id]/route-e99da107f9c7c581.js +1 -0
  551. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-e99da107f9c7c581.js +1 -0
  552. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-e99da107f9c7c581.js +1 -0
  553. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-e99da107f9c7c581.js +1 -0
  554. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-e99da107f9c7c581.js +1 -0
  555. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-e99da107f9c7c581.js +1 -0
  556. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-e99da107f9c7c581.js +1 -0
  557. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-e99da107f9c7c581.js +1 -0
  558. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-e99da107f9c7c581.js +1 -0
  559. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-e99da107f9c7c581.js +1 -0
  560. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-e99da107f9c7c581.js +1 -0
  561. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-e99da107f9c7c581.js +1 -0
  562. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-e99da107f9c7c581.js +1 -0
  563. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-e99da107f9c7c581.js +1 -0
  564. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-e99da107f9c7c581.js +1 -0
  565. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-e99da107f9c7c581.js +1 -0
  566. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-e99da107f9c7c581.js +1 -0
  567. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-e99da107f9c7c581.js +1 -0
  568. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-e99da107f9c7c581.js +1 -0
  569. package/app/.next-cli-build/static/chunks/app/api/v1/route-e99da107f9c7c581.js +1 -0
  570. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-e99da107f9c7c581.js +1 -0
  571. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-e99da107f9c7c581.js +1 -0
  572. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-e99da107f9c7c581.js +1 -0
  573. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-e99da107f9c7c581.js +1 -0
  574. package/app/.next-cli-build/static/chunks/app/api/version/route-e99da107f9c7c581.js +1 -0
  575. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-e99da107f9c7c581.js +1 -0
  576. package/app/.next-cli-build/static/chunks/app/api/version/update/route-e99da107f9c7c581.js +1 -0
  577. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-e99da107f9c7c581.js +1 -0
  578. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-e99da107f9c7c581.js +1 -0
  579. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-e99da107f9c7c581.js +1 -0
  580. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-e99da107f9c7c581.js +1 -0
  581. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-e99da107f9c7c581.js +1 -0
  582. package/app/.next-cli-build/static/{StEqXLOIch5JtFeW8RZrK → nQJWv2C_Mij2gTzsYtVEi}/_buildManifest.js +1 -1
  583. package/app/package.json +3 -1
  584. package/package.json +1 -1
  585. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-e72420b69a9444e9.js +0 -1
  586. package/app/.next-cli-build/static/chunks/app/_global-error/page-bdae3ed7a22b81bd.js +0 -1
  587. package/app/.next-cli-build/static/chunks/app/api/auth/check/route-bdae3ed7a22b81bd.js +0 -1
  588. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-bdae3ed7a22b81bd.js +0 -1
  589. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-bdae3ed7a22b81bd.js +0 -1
  590. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-bdae3ed7a22b81bd.js +0 -1
  591. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-bdae3ed7a22b81bd.js +0 -1
  592. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-bdae3ed7a22b81bd.js +0 -1
  593. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-bdae3ed7a22b81bd.js +0 -1
  594. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-bdae3ed7a22b81bd.js +0 -1
  595. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-bdae3ed7a22b81bd.js +0 -1
  596. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-bdae3ed7a22b81bd.js +0 -1
  597. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-bdae3ed7a22b81bd.js +0 -1
  598. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-bdae3ed7a22b81bd.js +0 -1
  599. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-bdae3ed7a22b81bd.js +0 -1
  600. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-bdae3ed7a22b81bd.js +0 -1
  601. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-bdae3ed7a22b81bd.js +0 -1
  602. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-bdae3ed7a22b81bd.js +0 -1
  603. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-bdae3ed7a22b81bd.js +0 -1
  604. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-bdae3ed7a22b81bd.js +0 -1
  605. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-bdae3ed7a22b81bd.js +0 -1
  606. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-bdae3ed7a22b81bd.js +0 -1
  607. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-bdae3ed7a22b81bd.js +0 -1
  608. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-bdae3ed7a22b81bd.js +0 -1
  609. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-bdae3ed7a22b81bd.js +0 -1
  610. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-bdae3ed7a22b81bd.js +0 -1
  611. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-bdae3ed7a22b81bd.js +0 -1
  612. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-bdae3ed7a22b81bd.js +0 -1
  613. package/app/.next-cli-build/static/chunks/app/api/combos/route-bdae3ed7a22b81bd.js +0 -1
  614. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-bdae3ed7a22b81bd.js +0 -1
  615. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-bdae3ed7a22b81bd.js +0 -1
  616. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-bdae3ed7a22b81bd.js +0 -1
  617. package/app/.next-cli-build/static/chunks/app/api/health/route-bdae3ed7a22b81bd.js +0 -1
  618. package/app/.next-cli-build/static/chunks/app/api/init/route-bdae3ed7a22b81bd.js +0 -1
  619. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-bdae3ed7a22b81bd.js +0 -1
  620. package/app/.next-cli-build/static/chunks/app/api/keys/route-bdae3ed7a22b81bd.js +0 -1
  621. package/app/.next-cli-build/static/chunks/app/api/locale/route-bdae3ed7a22b81bd.js +0 -1
  622. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-bdae3ed7a22b81bd.js +0 -1
  623. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-bdae3ed7a22b81bd.js +0 -1
  624. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-bdae3ed7a22b81bd.js +0 -1
  625. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-bdae3ed7a22b81bd.js +0 -1
  626. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-bdae3ed7a22b81bd.js +0 -1
  627. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-bdae3ed7a22b81bd.js +0 -1
  628. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-bdae3ed7a22b81bd.js +0 -1
  629. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-bdae3ed7a22b81bd.js +0 -1
  630. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-bdae3ed7a22b81bd.js +0 -1
  631. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-bdae3ed7a22b81bd.js +0 -1
  632. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-bdae3ed7a22b81bd.js +0 -1
  633. package/app/.next-cli-build/static/chunks/app/api/models/route-bdae3ed7a22b81bd.js +0 -1
  634. package/app/.next-cli-build/static/chunks/app/api/models/test/route-bdae3ed7a22b81bd.js +0 -1
  635. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-bdae3ed7a22b81bd.js +0 -1
  636. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-bdae3ed7a22b81bd.js +0 -1
  637. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-bdae3ed7a22b81bd.js +0 -1
  638. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-bdae3ed7a22b81bd.js +0 -1
  639. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-bdae3ed7a22b81bd.js +0 -1
  640. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-bdae3ed7a22b81bd.js +0 -1
  641. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-bdae3ed7a22b81bd.js +0 -1
  642. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-bdae3ed7a22b81bd.js +0 -1
  643. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-bdae3ed7a22b81bd.js +0 -1
  644. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-bdae3ed7a22b81bd.js +0 -1
  645. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-bdae3ed7a22b81bd.js +0 -1
  646. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-bdae3ed7a22b81bd.js +0 -1
  647. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-bdae3ed7a22b81bd.js +0 -1
  648. package/app/.next-cli-build/static/chunks/app/api/pricing/route-bdae3ed7a22b81bd.js +0 -1
  649. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-bdae3ed7a22b81bd.js +0 -1
  650. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-bdae3ed7a22b81bd.js +0 -1
  651. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-bdae3ed7a22b81bd.js +0 -1
  652. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-bdae3ed7a22b81bd.js +0 -1
  653. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-bdae3ed7a22b81bd.js +0 -1
  654. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-bdae3ed7a22b81bd.js +0 -1
  655. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-bdae3ed7a22b81bd.js +0 -1
  656. package/app/.next-cli-build/static/chunks/app/api/providers/circuit-breakers/[name]/reset/route-bdae3ed7a22b81bd.js +0 -1
  657. package/app/.next-cli-build/static/chunks/app/api/providers/circuit-breakers/route-bdae3ed7a22b81bd.js +0 -1
  658. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-bdae3ed7a22b81bd.js +0 -1
  659. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-bdae3ed7a22b81bd.js +0 -1
  660. package/app/.next-cli-build/static/chunks/app/api/providers/route-bdae3ed7a22b81bd.js +0 -1
  661. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-bdae3ed7a22b81bd.js +0 -1
  662. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-bdae3ed7a22b81bd.js +0 -1
  663. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-bdae3ed7a22b81bd.js +0 -1
  664. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-bdae3ed7a22b81bd.js +0 -1
  665. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-bdae3ed7a22b81bd.js +0 -1
  666. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-bdae3ed7a22b81bd.js +0 -1
  667. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-bdae3ed7a22b81bd.js +0 -1
  668. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-bdae3ed7a22b81bd.js +0 -1
  669. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-bdae3ed7a22b81bd.js +0 -1
  670. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-bdae3ed7a22b81bd.js +0 -1
  671. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-bdae3ed7a22b81bd.js +0 -1
  672. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-bdae3ed7a22b81bd.js +0 -1
  673. package/app/.next-cli-build/static/chunks/app/api/settings/route-bdae3ed7a22b81bd.js +0 -1
  674. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-bdae3ed7a22b81bd.js +0 -1
  675. package/app/.next-cli-build/static/chunks/app/api/tags/route-bdae3ed7a22b81bd.js +0 -1
  676. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-bdae3ed7a22b81bd.js +0 -1
  677. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-bdae3ed7a22b81bd.js +0 -1
  678. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-bdae3ed7a22b81bd.js +0 -1
  679. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-bdae3ed7a22b81bd.js +0 -1
  680. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-bdae3ed7a22b81bd.js +0 -1
  681. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-bdae3ed7a22b81bd.js +0 -1
  682. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-bdae3ed7a22b81bd.js +0 -1
  683. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-bdae3ed7a22b81bd.js +0 -1
  684. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-bdae3ed7a22b81bd.js +0 -1
  685. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-bdae3ed7a22b81bd.js +0 -1
  686. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-bdae3ed7a22b81bd.js +0 -1
  687. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-bdae3ed7a22b81bd.js +0 -1
  688. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-bdae3ed7a22b81bd.js +0 -1
  689. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-bdae3ed7a22b81bd.js +0 -1
  690. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-bdae3ed7a22b81bd.js +0 -1
  691. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-bdae3ed7a22b81bd.js +0 -1
  692. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-bdae3ed7a22b81bd.js +0 -1
  693. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-bdae3ed7a22b81bd.js +0 -1
  694. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-bdae3ed7a22b81bd.js +0 -1
  695. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/[id]/route-bdae3ed7a22b81bd.js +0 -1
  696. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-bdae3ed7a22b81bd.js +0 -1
  697. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-bdae3ed7a22b81bd.js +0 -1
  698. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-bdae3ed7a22b81bd.js +0 -1
  699. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-bdae3ed7a22b81bd.js +0 -1
  700. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-bdae3ed7a22b81bd.js +0 -1
  701. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-bdae3ed7a22b81bd.js +0 -1
  702. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-bdae3ed7a22b81bd.js +0 -1
  703. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-bdae3ed7a22b81bd.js +0 -1
  704. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-bdae3ed7a22b81bd.js +0 -1
  705. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-bdae3ed7a22b81bd.js +0 -1
  706. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-bdae3ed7a22b81bd.js +0 -1
  707. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-bdae3ed7a22b81bd.js +0 -1
  708. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-bdae3ed7a22b81bd.js +0 -1
  709. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-bdae3ed7a22b81bd.js +0 -1
  710. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-bdae3ed7a22b81bd.js +0 -1
  711. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-bdae3ed7a22b81bd.js +0 -1
  712. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-bdae3ed7a22b81bd.js +0 -1
  713. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-bdae3ed7a22b81bd.js +0 -1
  714. package/app/.next-cli-build/static/chunks/app/api/v1/route-bdae3ed7a22b81bd.js +0 -1
  715. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-bdae3ed7a22b81bd.js +0 -1
  716. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-bdae3ed7a22b81bd.js +0 -1
  717. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-bdae3ed7a22b81bd.js +0 -1
  718. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-bdae3ed7a22b81bd.js +0 -1
  719. package/app/.next-cli-build/static/chunks/app/api/version/route-bdae3ed7a22b81bd.js +0 -1
  720. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-bdae3ed7a22b81bd.js +0 -1
  721. package/app/.next-cli-build/static/chunks/app/api/version/update/route-bdae3ed7a22b81bd.js +0 -1
  722. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-bdae3ed7a22b81bd.js +0 -1
  723. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-bdae3ed7a22b81bd.js +0 -1
  724. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-bdae3ed7a22b81bd.js +0 -1
  725. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-bdae3ed7a22b81bd.js +0 -1
  726. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-bdae3ed7a22b81bd.js +0 -1
  727. /package/app/.next-cli-build/static/{StEqXLOIch5JtFeW8RZrK → nQJWv2C_Mij2gTzsYtVEi}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=8814,a.ids=[8814],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},9749:(a,b,c)=>{c.d(b,{V:()=>p});var d=c(1976),e=c(81476),f=c(77625),g=c(60583),h=c(36418),i=c(987),j=c(81274),k=c(62164),l=c(93836);async function m(a,b,c){if(!(0,i.Gv)(a))throw new f.Ye("Flattened JWS must be an object");if(void 0===a.protected&&void 0===a.header)throw new f.Ye('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==a.protected&&"string"!=typeof a.protected)throw new f.Ye("JWS Protected Header incorrect type");if(void 0===a.payload)throw new f.Ye("JWS Payload missing");if("string"!=typeof a.signature)throw new f.Ye("JWS Signature missing or incorrect type");if(void 0!==a.header&&!(0,i.Gv)(a.header))throw new f.Ye("JWS Unprotected Header incorrect type");let m={};if(a.protected)try{let b=(0,d.D)(a.protected);m=JSON.parse(g.D0.decode(b))}catch{throw new f.Ye("JWS Protected Header is invalid")}if(!(0,i.fz)(m,a.header))throw new f.Ye("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let n={...m,...a.header},o=(0,k.n)(f.Ye,new Map([["b64",!0]]),c?.crit,m,n),p=!0;if(o.has("b64")&&"boolean"!=typeof(p=m.b64))throw new f.Ye('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:q}=n;if("string"!=typeof q||!q)throw new f.Ye('JWS "alg" (Algorithm) Header Parameter missing or invalid');let r=c&&function(a,b){if(void 0!==b&&(!Array.isArray(b)||b.some(a=>"string"!=typeof a)))throw TypeError(`"${a}" option must be an array of strings`);if(b)return new Set(b)}("algorithms",c.algorithms);if(r&&!r.has(q))throw new f.Rb('"alg" (Algorithm) Header Parameter value not allowed');if(p){if("string"!=typeof a.payload)throw new f.Ye("JWS Payload must be a string")}else if("string"!=typeof a.payload&&!(a.payload instanceof Uint8Array))throw new f.Ye("JWS Payload must be a string or an Uint8Array instance");let s=!1;"function"==typeof b&&(b=await b(m,a),s=!0),(0,j.y)(q,b,"verify");let t=(0,g.xW)(void 0!==a.protected?(0,g.lF)(a.protected):new Uint8Array,(0,g.lF)("."),"string"==typeof a.payload?p?(0,g.lF)(a.payload):g.Rd.encode(a.payload):a.payload),u=(0,h.h2)(a.signature,"signature",f.Ye),v=await (0,l.l)(b,q);if(!await (0,e.MX)(q,v,u,t))throw new f.h2;let w={payload:p?(0,h.h2)(a.payload,"payload",f.Ye):"string"==typeof a.payload?g.Rd.encode(a.payload):a.payload};return(void 0!==a.protected&&(w.protectedHeader=m),void 0!==a.header&&(w.unprotectedHeader=a.header),s)?{...w,key:v}:w}async function n(a,b,c){if(a instanceof Uint8Array&&(a=g.D0.decode(a)),"string"!=typeof a)throw new f.Ye("Compact JWS must be a string or Uint8Array");let{0:d,1:e,2:h,length:i}=a.split(".");if(3!==i)throw new f.Ye("Invalid Compact JWS");let j=await m({payload:e,protected:d,signature:h},b,c),k={payload:j.payload,protectedHeader:j.protectedHeader};return"function"==typeof b?{...k,key:j.key}:k}var o=c(73859);async function p(a,b,c){let d=await n(a,b,c);if(d.protectedHeader.crit?.includes("b64")&&!1===d.protectedHeader.b64)throw new f.Dp("JWTs MUST NOT use unencoded payload");let e={payload:(0,o.k6)(d.protectedHeader,d.payload,c),protectedHeader:d.protectedHeader};return"function"==typeof b?{...e,key:d.key}:e}},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14345:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>H,patchFetch:()=>G,routeModule:()=>C,serverHooks:()=>F,workAsyncStorage:()=>D,workUnitAsyncStorage:()=>E});var d={};c.r(d),c.d(d,{POST:()=>B});var e=c(12334),f=c(59399),g=c(8894),h=c(83760),i=c(34958),j=c(970),k=c(261),l=c(28112),m=c(52194),n=c(9410),o=c(68673),p=c(47471),q=c(13093),r=c(98563),s=c(7572),t=c(86439),u=c(33610),v=c(77231),w=c(97774),x=c(28531);let y=(a,b,c=1e4)=>Promise.race([fetch(a,b),new Promise((a,b)=>setTimeout(()=>b(Error("Request timeout")),c))]),z=a=>401===a||403===a?"API key unauthorized":404===a?"Provider has no /models endpoint — enter a Model ID above to validate via chat instead":a>=500?"Server error - try again later":`Unexpected response (${a})`,A=a=>401===a||403===a?"API key unauthorized":400===a?"Invalid model or bad request":404===a?"Chat endpoint not found":a>=500?"Server error - try again later":`Chat request failed (${a})`;async function B(a){try{let{baseUrl:b,apiKey:c,type:d,modelId:e}=await a.json();if(!b||!c)return v.NextResponse.json({error:"Base URL and API key required"},{status:400});if(!(a=>{try{return new URL(a),!0}catch{return!1}})(b))return v.NextResponse.json({error:"Invalid URL format"},{status:400});if(!(0,x.v5)(a))try{(0,w.P)(b)}catch{return v.NextResponse.json({error:"URL not allowed"},{status:400})}if("custom-embedding"===d){let a=b.trim().replace(/\/$/,"");if(!e?.trim())return v.NextResponse.json({valid:!1,error:"Model ID required for embedding validation"});let d=await y(`${a}/embeddings`,{method:"POST",headers:{Authorization:`Bearer ${c}`,"Content-Type":"application/json"},body:JSON.stringify({model:e.trim(),input:"ping"})});if(d.ok){let a=await d.json().catch(()=>null),b=Array.isArray(a?.data?.[0]?.embedding)?a.data[0].embedding.length:null;return v.NextResponse.json({valid:!0,method:"embeddings",dimensions:b})}if(401===d.status||403===d.status)return v.NextResponse.json({valid:!1,error:"API key unauthorized"});let f=await d.text().catch(()=>"");return v.NextResponse.json({valid:!1,error:`Embeddings request failed (${d.status})${f?`: ${f.slice(0,200)}`:""}`,method:"embeddings"})}if("anthropic-compatible"===d){let a,d=((a=b.trim().replace(/\/$/,"")).endsWith("/messages")&&(a=a.slice(0,-9)),a.endsWith("/v1")||(a=`${a}/v1`),a),f=`${d}/models`,g=await y(f,{method:"GET",headers:{"x-api-key":c,"anthropic-version":"2023-06-01",Authorization:`Bearer ${c}`}});if(g.ok)return v.NextResponse.json({valid:!0});if(401===g.status||403===g.status)return v.NextResponse.json({valid:!1,error:"API key unauthorized"});if(e){let a=await y(`${d}/chat/completions`,{method:"POST",headers:{Authorization:`Bearer ${c}`,"Content-Type":"application/json","x-api-key":c,"anthropic-version":"2023-06-01"},body:JSON.stringify({model:e,messages:[{role:"user",content:"ping"}],max_tokens:1})});if(a.ok)return v.NextResponse.json({valid:!0,method:"chat"});return v.NextResponse.json({valid:!1,error:A(a.status),method:"chat"})}return v.NextResponse.json({valid:!1,error:z(g.status)})}let f=`${b.replace(/\/$/,"")}/models`,g=await y(f,{headers:{Authorization:`Bearer ${c}`}});if(g.ok)return v.NextResponse.json({valid:!0});if(401===g.status||403===g.status)return v.NextResponse.json({valid:!1,error:"API key unauthorized"});if(e){let a=await y(`${b.replace(/\/$/,"")}/chat/completions`,{method:"POST",headers:{Authorization:`Bearer ${c}`,"Content-Type":"application/json"},body:JSON.stringify({model:e,messages:[{role:"user",content:"ping"}],max_tokens:1})});if(a.ok)return v.NextResponse.json({valid:!0,method:"chat"});return v.NextResponse.json({valid:!1,error:A(a.status),method:"chat"})}return v.NextResponse.json({valid:!1,error:z(g.status)})}catch(b){let a=b.cause?.code==="ECONNREFUSED"?"Connection refused - provider node offline or unreachable":b.cause?.code==="ENOTFOUND"?"DNS lookup failed - invalid domain or network issue":b.cause?.code==="ETIMEDOUT"?"Connection timeout - provider node too slow":b.message.includes("timeout")?"Request timeout (>10s) - provider node not responding":b.cause?.code==="CERT_HAS_EXPIRED"?"SSL certificate expired":b.cause?.code==="UNABLE_TO_VERIFY_LEAF_SIGNATURE"?"SSL certificate verification failed":b.cause?.code?`Network error: ${b.cause.code}`:"Network connection failed - check URL and network connectivity";return console.error("Error validating provider node:",{message:b.message,cause:b.cause,code:b.cause?.code,userMessage:a}),v.NextResponse.json({valid:!1,error:a},{status:500})}}let C=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/provider-nodes/validate/route",pathname:"/api/provider-nodes/validate",filename:"route",bundlePath:"app/api/provider-nodes/validate/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/VansRouter/VansRouter/src/app/api/provider-nodes/validate/route.js",nextConfigOutput:"standalone",userland:d,...{}}),{workAsyncStorage:D,workUnitAsyncStorage:E,serverHooks:F}=C;function G(){return(0,g.patchFetch)({workAsyncStorage:D,workUnitAsyncStorage:E})}async function H(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),C.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/provider-nodes/validate/route";"/index"===d&&(d="/");let e=await C.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:z,prerenderManifest:A,routerServerContext:B,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(A.dynamicRoutes[I]||A.routes[F]),K=async()=>((null==B?void 0:B.render404)?await B.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!z){let a=!!A.routes[F],b=A.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||C.isDev||z||(L="/index"===(L=F)?"/":L);let M=!0===C.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==B?void 0:B.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await C.getIncrementalCache(a,x,A,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>C.onRequestError(a,b,d,e,B)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>C.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await C.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,B),b}},k=await C.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),z&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await C.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,B),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}},21820:a=>{a.exports=require("os")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79646:a=>{a.exports=require("child_process")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},94735:a=>{a.exports=require("events")},97774:(a,b,c)=>{c.d(b,{P:()=>i});let d=new Set(["localhost","ip6-localhost","ip6-loopback"]),e=[".internal",".local",".localhost"];function f(a){let b=a.split(".");if(4!==b.length)return null;let c=0;for(let a of b){if(!/^\d{1,3}$/.test(a))return null;let b=Number(a);if(b>255)return null;c=256*c+b}return c>>>0}let g=[[f("0.0.0.0"),8],[f("10.0.0.0"),8],[f("127.0.0.0"),8],[f("169.254.0.0"),16],[f("172.16.0.0"),12],[f("192.168.0.0"),16]];function h(a){let b=f(a);return null!==b&&g.some(([a,c])=>{let d=0===c?0:0xffffffff<<32-c>>>0;return(b&d)==(a&d)})}function i(a){let b,c,f=new URL(a).hostname.toLowerCase();if(d.has(f)||e.some(a=>f.endsWith(a)))throw Error("Blocked URL: internal host");if(h(f)||f.includes(":")&&((c=(b=f.replace(/^\[|\]$/g,"").toLowerCase()).match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/))?h(c[1]):"::1"===b||"::"===b||b.startsWith("fe80:")||b.startsWith("fc")||b.startsWith("fd")))throw Error("Blocked URL: private IP")}},99569:(a,b,c)=>{c.d(b,{P:()=>p});var d=c(1976),e=c(81476),f=c(987),g=c(77625),h=c(60583),i=c(81274),j=c(62164),k=c(93836),l=c(36418);class m{#a;#b;#c;constructor(a){if(!(a instanceof Uint8Array))throw TypeError("payload must be an instance of Uint8Array");this.#a=a}setProtectedHeader(a){return(0,l.ac)(this.#b,"setProtectedHeader"),this.#b=a,this}setUnprotectedHeader(a){return(0,l.ac)(this.#c,"setUnprotectedHeader"),this.#c=a,this}async sign(a,b){let c,l,m,n;if(!this.#b&&!this.#c)throw new g.Ye("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!(0,f.fz)(this.#b,this.#c))throw new g.Ye("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let o={...this.#b,...this.#c},p=(0,j.n)(g.Ye,new Map([["b64",!0]]),b?.crit,this.#b,o),q=!0;if(p.has("b64")&&"boolean"!=typeof(q=this.#b.b64))throw new g.Ye('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:r}=o;if("string"!=typeof r||!r)throw new g.Ye('JWS "alg" (Algorithm) Header Parameter missing or invalid');(0,i.y)(r,a,"sign"),q?(c=(0,d.l)(this.#a),l=(0,h.lF)(c)):(l=this.#a,c=""),this.#b?(m=(0,d.l)(JSON.stringify(this.#b)),n=(0,h.lF)(m)):(m="",n=new Uint8Array);let s=(0,h.xW)(n,(0,h.lF)("."),l),t=await (0,k.l)(a,r),u=await (0,e._S)(r,t,s),v={signature:(0,d.l)(u),payload:c};return this.#c&&(v.header=this.#c),this.#b&&(v.protected=m),v}}class n{#d;constructor(a){this.#d=new m(a)}setProtectedHeader(a){return this.#d.setProtectedHeader(a),this}async sign(a,b){let c=await this.#d.sign(a,b);if(void 0===c.payload)throw TypeError("use the flattened module for creating JWS with b64: false");return`${c.protected}.${c.payload}.${c.signature}`}}var o=c(73859);class p{#b;#e;constructor(a={}){this.#e=new o.cE(a)}setIssuer(a){return this.#e.iss=a,this}setSubject(a){return this.#e.sub=a,this}setAudience(a){return this.#e.aud=a,this}setJti(a){return this.#e.jti=a,this}setNotBefore(a){return this.#e.nbf=a,this}setExpirationTime(a){return this.#e.exp=a,this}setIssuedAt(a){return this.#e.iat=a,this}setProtectedHeader(a){return this.#b=a,this}async sign(a,b){let c=new n(this.#e.data());if(c.setProtectedHeader(this.#b),Array.isArray(this.#b?.crit)&&this.#b.crit.includes("b64")&&!1===this.#b.b64)throw new g.Dp("JWTs MUST NOT use unencoded payload");return c.sign(a,b)}}}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[1348,4777,5924,9062,9633,912],()=>b(b.s=14345));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=8814,a.ids=[8814],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},9749:(a,b,c)=>{c.d(b,{V:()=>p});var d=c(1976),e=c(81476),f=c(77625),g=c(60583),h=c(36418),i=c(987),j=c(81274),k=c(62164),l=c(93836);async function m(a,b,c){if(!(0,i.Gv)(a))throw new f.Ye("Flattened JWS must be an object");if(void 0===a.protected&&void 0===a.header)throw new f.Ye('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==a.protected&&"string"!=typeof a.protected)throw new f.Ye("JWS Protected Header incorrect type");if(void 0===a.payload)throw new f.Ye("JWS Payload missing");if("string"!=typeof a.signature)throw new f.Ye("JWS Signature missing or incorrect type");if(void 0!==a.header&&!(0,i.Gv)(a.header))throw new f.Ye("JWS Unprotected Header incorrect type");let m={};if(a.protected)try{let b=(0,d.D)(a.protected);m=JSON.parse(g.D0.decode(b))}catch{throw new f.Ye("JWS Protected Header is invalid")}if(!(0,i.fz)(m,a.header))throw new f.Ye("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let n={...m,...a.header},o=(0,k.n)(f.Ye,new Map([["b64",!0]]),c?.crit,m,n),p=!0;if(o.has("b64")&&"boolean"!=typeof(p=m.b64))throw new f.Ye('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:q}=n;if("string"!=typeof q||!q)throw new f.Ye('JWS "alg" (Algorithm) Header Parameter missing or invalid');let r=c&&function(a,b){if(void 0!==b&&(!Array.isArray(b)||b.some(a=>"string"!=typeof a)))throw TypeError(`"${a}" option must be an array of strings`);if(b)return new Set(b)}("algorithms",c.algorithms);if(r&&!r.has(q))throw new f.Rb('"alg" (Algorithm) Header Parameter value not allowed');if(p){if("string"!=typeof a.payload)throw new f.Ye("JWS Payload must be a string")}else if("string"!=typeof a.payload&&!(a.payload instanceof Uint8Array))throw new f.Ye("JWS Payload must be a string or an Uint8Array instance");let s=!1;"function"==typeof b&&(b=await b(m,a),s=!0),(0,j.y)(q,b,"verify");let t=(0,g.xW)(void 0!==a.protected?(0,g.lF)(a.protected):new Uint8Array,(0,g.lF)("."),"string"==typeof a.payload?p?(0,g.lF)(a.payload):g.Rd.encode(a.payload):a.payload),u=(0,h.h2)(a.signature,"signature",f.Ye),v=await (0,l.l)(b,q);if(!await (0,e.MX)(q,v,u,t))throw new f.h2;let w={payload:p?(0,h.h2)(a.payload,"payload",f.Ye):"string"==typeof a.payload?g.Rd.encode(a.payload):a.payload};return(void 0!==a.protected&&(w.protectedHeader=m),void 0!==a.header&&(w.unprotectedHeader=a.header),s)?{...w,key:v}:w}async function n(a,b,c){if(a instanceof Uint8Array&&(a=g.D0.decode(a)),"string"!=typeof a)throw new f.Ye("Compact JWS must be a string or Uint8Array");let{0:d,1:e,2:h,length:i}=a.split(".");if(3!==i)throw new f.Ye("Invalid Compact JWS");let j=await m({payload:e,protected:d,signature:h},b,c),k={payload:j.payload,protectedHeader:j.protectedHeader};return"function"==typeof b?{...k,key:j.key}:k}var o=c(73859);async function p(a,b,c){let d=await n(a,b,c);if(d.protectedHeader.crit?.includes("b64")&&!1===d.protectedHeader.b64)throw new f.Dp("JWTs MUST NOT use unencoded payload");let e={payload:(0,o.k6)(d.protectedHeader,d.payload,c),protectedHeader:d.protectedHeader};return"function"==typeof b?{...e,key:d.key}:e}},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},21820:a=>{a.exports=require("os")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},35147:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>H,patchFetch:()=>G,routeModule:()=>C,serverHooks:()=>F,workAsyncStorage:()=>D,workUnitAsyncStorage:()=>E});var d={};c.r(d),c.d(d,{POST:()=>B});var e=c(12334),f=c(59399),g=c(8894),h=c(83760),i=c(34958),j=c(970),k=c(261),l=c(28112),m=c(52194),n=c(9410),o=c(68673),p=c(47471),q=c(13093),r=c(98563),s=c(7572),t=c(86439),u=c(33610),v=c(77231),w=c(97774),x=c(28531);let y=(a,b,c=1e4)=>Promise.race([fetch(a,b),new Promise((a,b)=>setTimeout(()=>b(Error("Request timeout")),c))]),z=a=>401===a||403===a?"API key unauthorized":404===a?"Provider has no /models endpoint — enter a Model ID above to validate via chat instead":a>=500?"Server error - try again later":`Unexpected response (${a})`,A=a=>401===a||403===a?"API key unauthorized":400===a?"Invalid model or bad request":404===a?"Chat endpoint not found":a>=500?"Server error - try again later":`Chat request failed (${a})`;async function B(a){try{let{baseUrl:b,apiKey:c,type:d,modelId:e}=await a.json();if(!b||!c)return v.NextResponse.json({error:"Base URL and API key required"},{status:400});if(!(a=>{try{return new URL(a),!0}catch{return!1}})(b))return v.NextResponse.json({error:"Invalid URL format"},{status:400});if(!(0,x.v5)(a))try{(0,w.P)(b)}catch{return v.NextResponse.json({error:"URL not allowed"},{status:400})}if("custom-embedding"===d){let a=b.trim().replace(/\/$/,"");if(!e?.trim())return v.NextResponse.json({valid:!1,error:"Model ID required for embedding validation"});let d=await y(`${a}/embeddings`,{method:"POST",headers:{Authorization:`Bearer ${c}`,"Content-Type":"application/json"},body:JSON.stringify({model:e.trim(),input:"ping"})});if(d.ok){let a=await d.json().catch(()=>null),b=Array.isArray(a?.data?.[0]?.embedding)?a.data[0].embedding.length:null;return v.NextResponse.json({valid:!0,method:"embeddings",dimensions:b})}if(401===d.status||403===d.status)return v.NextResponse.json({valid:!1,error:"API key unauthorized"});let f=await d.text().catch(()=>"");return v.NextResponse.json({valid:!1,error:`Embeddings request failed (${d.status})${f?`: ${f.slice(0,200)}`:""}`,method:"embeddings"})}if("anthropic-compatible"===d){let a,d=((a=b.trim().replace(/\/$/,"")).endsWith("/messages")&&(a=a.slice(0,-9)),a.endsWith("/v1")||(a=`${a}/v1`),a),f=`${d}/models`,g=await y(f,{method:"GET",headers:{"x-api-key":c,"anthropic-version":"2023-06-01",Authorization:`Bearer ${c}`}});if(g.ok)return v.NextResponse.json({valid:!0});if(401===g.status||403===g.status)return v.NextResponse.json({valid:!1,error:"API key unauthorized"});if(e){let a=await y(`${d}/chat/completions`,{method:"POST",headers:{Authorization:`Bearer ${c}`,"Content-Type":"application/json","x-api-key":c,"anthropic-version":"2023-06-01"},body:JSON.stringify({model:e,messages:[{role:"user",content:"ping"}],max_tokens:1})});if(a.ok)return v.NextResponse.json({valid:!0,method:"chat"});return v.NextResponse.json({valid:!1,error:A(a.status),method:"chat"})}return v.NextResponse.json({valid:!1,error:z(g.status)})}let f=`${b.replace(/\/$/,"")}/models`,g=await y(f,{headers:{Authorization:`Bearer ${c}`}});if(g.ok)return v.NextResponse.json({valid:!0});if(401===g.status||403===g.status)return v.NextResponse.json({valid:!1,error:"API key unauthorized"});if(e){let a=await y(`${b.replace(/\/$/,"")}/chat/completions`,{method:"POST",headers:{Authorization:`Bearer ${c}`,"Content-Type":"application/json"},body:JSON.stringify({model:e,messages:[{role:"user",content:"ping"}],max_tokens:1})});if(a.ok)return v.NextResponse.json({valid:!0,method:"chat"});return v.NextResponse.json({valid:!1,error:A(a.status),method:"chat"})}return v.NextResponse.json({valid:!1,error:z(g.status)})}catch(b){let a=b.cause?.code==="ECONNREFUSED"?"Connection refused - provider node offline or unreachable":b.cause?.code==="ENOTFOUND"?"DNS lookup failed - invalid domain or network issue":b.cause?.code==="ETIMEDOUT"?"Connection timeout - provider node too slow":b.message.includes("timeout")?"Request timeout (>10s) - provider node not responding":b.cause?.code==="CERT_HAS_EXPIRED"?"SSL certificate expired":b.cause?.code==="UNABLE_TO_VERIFY_LEAF_SIGNATURE"?"SSL certificate verification failed":b.cause?.code?`Network error: ${b.cause.code}`:"Network connection failed - check URL and network connectivity";return console.error("Error validating provider node:",{message:b.message,cause:b.cause,code:b.cause?.code,userMessage:a}),v.NextResponse.json({valid:!1,error:a},{status:500})}}let C=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/provider-nodes/validate/route",pathname:"/api/provider-nodes/validate",filename:"route",bundlePath:"app/api/provider-nodes/validate/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/VansRouter/VansRouter/src/app/api/provider-nodes/validate/route.js",nextConfigOutput:"standalone",userland:d,...{}}),{workAsyncStorage:D,workUnitAsyncStorage:E,serverHooks:F}=C;function G(){return(0,g.patchFetch)({workAsyncStorage:D,workUnitAsyncStorage:E})}async function H(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),C.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/provider-nodes/validate/route";"/index"===d&&(d="/");let e=await C.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:z,prerenderManifest:A,routerServerContext:B,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(A.dynamicRoutes[I]||A.routes[F]),K=async()=>((null==B?void 0:B.render404)?await B.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!z){let a=!!A.routes[F],b=A.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||C.isDev||z||(L="/index"===(L=F)?"/":L);let M=!0===C.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==B?void 0:B.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await C.getIncrementalCache(a,x,A,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>C.onRequestError(a,b,d,e,B)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>C.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await C.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,B),b}},k=await C.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),z&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await C.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,B),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79646:a=>{a.exports=require("child_process")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},94735:a=>{a.exports=require("events")},97774:(a,b,c)=>{c.d(b,{P:()=>i});let d=new Set(["localhost","ip6-localhost","ip6-loopback"]),e=[".internal",".local",".localhost"];function f(a){let b=a.split(".");if(4!==b.length)return null;let c=0;for(let a of b){if(!/^\d{1,3}$/.test(a))return null;let b=Number(a);if(b>255)return null;c=256*c+b}return c>>>0}let g=[[f("0.0.0.0"),8],[f("10.0.0.0"),8],[f("127.0.0.0"),8],[f("169.254.0.0"),16],[f("172.16.0.0"),12],[f("192.168.0.0"),16]];function h(a){let b=f(a);return null!==b&&g.some(([a,c])=>{let d=0===c?0:0xffffffff<<32-c>>>0;return(b&d)==(a&d)})}function i(a){let b,c,f=new URL(a).hostname.toLowerCase();if(d.has(f)||e.some(a=>f.endsWith(a)))throw Error("Blocked URL: internal host");if(h(f)||f.includes(":")&&((c=(b=f.replace(/^\[|\]$/g,"").toLowerCase()).match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/))?h(c[1]):"::1"===b||"::"===b||b.startsWith("fe80:")||b.startsWith("fc")||b.startsWith("fd")))throw Error("Blocked URL: private IP")}},99569:(a,b,c)=>{c.d(b,{P:()=>p});var d=c(1976),e=c(81476),f=c(987),g=c(77625),h=c(60583),i=c(81274),j=c(62164),k=c(93836),l=c(36418);class m{#a;#b;#c;constructor(a){if(!(a instanceof Uint8Array))throw TypeError("payload must be an instance of Uint8Array");this.#a=a}setProtectedHeader(a){return(0,l.ac)(this.#b,"setProtectedHeader"),this.#b=a,this}setUnprotectedHeader(a){return(0,l.ac)(this.#c,"setUnprotectedHeader"),this.#c=a,this}async sign(a,b){let c,l,m,n;if(!this.#b&&!this.#c)throw new g.Ye("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!(0,f.fz)(this.#b,this.#c))throw new g.Ye("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let o={...this.#b,...this.#c},p=(0,j.n)(g.Ye,new Map([["b64",!0]]),b?.crit,this.#b,o),q=!0;if(p.has("b64")&&"boolean"!=typeof(q=this.#b.b64))throw new g.Ye('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:r}=o;if("string"!=typeof r||!r)throw new g.Ye('JWS "alg" (Algorithm) Header Parameter missing or invalid');(0,i.y)(r,a,"sign"),q?(c=(0,d.l)(this.#a),l=(0,h.lF)(c)):(l=this.#a,c=""),this.#b?(m=(0,d.l)(JSON.stringify(this.#b)),n=(0,h.lF)(m)):(m="",n=new Uint8Array);let s=(0,h.xW)(n,(0,h.lF)("."),l),t=await (0,k.l)(a,r),u=await (0,e._S)(r,t,s),v={signature:(0,d.l)(u),payload:c};return this.#c&&(v.header=this.#c),this.#b&&(v.protected=m),v}}class n{#d;constructor(a){this.#d=new m(a)}setProtectedHeader(a){return this.#d.setProtectedHeader(a),this}async sign(a,b){let c=await this.#d.sign(a,b);if(void 0===c.payload)throw TypeError("use the flattened module for creating JWS with b64: false");return`${c.protected}.${c.payload}.${c.signature}`}}var o=c(73859);class p{#b;#e;constructor(a={}){this.#e=new o.cE(a)}setIssuer(a){return this.#e.iss=a,this}setSubject(a){return this.#e.sub=a,this}setAudience(a){return this.#e.aud=a,this}setJti(a){return this.#e.jti=a,this}setNotBefore(a){return this.#e.nbf=a,this}setExpirationTime(a){return this.#e.exp=a,this}setIssuedAt(a){return this.#e.iat=a,this}setProtectedHeader(a){return this.#b=a,this}async sign(a,b){let c=new n(this.#e.data());if(c.setProtectedHeader(this.#b),Array.isArray(this.#b?.crit)&&this.#b.crit.includes("b64")&&!1===this.#b.b64)throw new g.Dp("JWTs MUST NOT use unencoded payload");return c.sign(a,b)}}}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[1348,4777,5924,9062,9633,912],()=>b(b.s=35147));module.exports=c})();
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=5211,a.ids=[1253,5211,6820],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},643:a=>{a.exports=require("node:perf_hooks")},1708:a=>{a.exports=require("node:process")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4573:a=>{a.exports=require("node:buffer")},7066:a=>{a.exports=require("node:tty")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14985:a=>{a.exports=require("dns")},16698:a=>{a.exports=require("node:async_hooks")},21820:a=>{a.exports=require("os")},24045:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>M,patchFetch:()=>L,routeModule:()=>H,serverHooks:()=>K,workAsyncStorage:()=>I,workUnitAsyncStorage:()=>J});var d={};c.r(d),c.d(d,{GET:()=>G});var e=c(12334),f=c(59399),g=c(8894),h=c(83760),i=c(34958),j=c(970),k=c(261),l=c(28112),m=c(52194),n=c(9410),o=c(68673),p=c(47471),q=c(13093),r=c(98563),s=c(7572),t=c(86439),u=c(33610),v=c(77231),w=c(46820),x=c(91253),y=c(59824),z=c(83950),A=c(13946),B=c(84397),C=c(26415);let D=a=>Array.isArray(a)?a:a?.data||a?.models||a?.results||[],E=a=>({url:a,method:"GET",headers:{"Content-Type":"application/json"},authHeader:"Authorization",authPrefix:"Bearer ",parseResponse:D}),F={claude:{url:"https://api.anthropic.com/v1/models",method:"GET",headers:{"Anthropic-Version":"2023-06-01","Content-Type":"application/json"},authHeader:"x-api-key",parseResponse:a=>a.data||[]},gemini:{url:"https://generativelanguage.googleapis.com/v1beta/models",method:"GET",headers:{"Content-Type":"application/json"},authQuery:"key",parseResponse:a=>a.models||[]},qwen:{url:"https://portal.qwen.ai/v1/models",method:"GET",headers:{"Content-Type":"application/json"},authHeader:"Authorization",authPrefix:"Bearer ",parseResponse:a=>a.data||[]},codex:{url:"https://chatgpt.com/backend-api/codex/models?client_version=1.0.0",method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"},authHeader:"Authorization",authPrefix:"Bearer ",parseResponse:a=>D(a).flatMap(a=>{let b=a?.id||a?.slug||a?.model||a?.name;if(!b)return[];let c=a?.display_name||a?.displayName||a?.name||b,d={...a,id:b,name:c};return!("image"!==(a?.type||"llm")&&!b.toLowerCase().includes("embed"))||b.endsWith("-review")?[d]:[d,{...d,id:`${b}-review`,name:`${c} Review`,upstreamModelId:b,quotaFamily:"review"}]})},antigravity:{url:"https://daily-cloudcode-pa.sandbox.googleapis.com/v1internal:models",method:"POST",headers:{"Content-Type":"application/json"},authHeader:"Authorization",authPrefix:"Bearer ",body:{},parseResponse:a=>a.models||[]},github:{url:"https://api.githubcopilot.com/models",method:"GET",headers:{"Content-Type":"application/json","Copilot-Integration-Id":"vscode-chat","editor-version":"vscode/1.107.1","editor-plugin-version":"copilot-chat/0.26.7","user-agent":"GitHubCopilotChat/0.26.7"},authHeader:"Authorization",authPrefix:"Bearer ",parseResponse:a=>a?.data?a.data.reduce((a,b)=>(b.capabilities?.type==="chat"&&b.policy?.state!=="disabled"&&a.push({id:b.id,name:b.name||b.id,version:b.version,capabilities:b.capabilities,isDefault:!0===b.model_picker_enabled}),a),[]):[]},openai:E("https://api.openai.com/v1/models"),openrouter:E("https://openrouter.ai/api/v1/models"),anthropic:{url:"https://api.anthropic.com/v1/models",method:"GET",headers:{"Anthropic-Version":"2023-06-01","Content-Type":"application/json"},authHeader:"x-api-key",parseResponse:a=>a.data||[]},alicode:{url:"https://coding.dashscope.aliyuncs.com/v1/models",method:"GET",headers:{"Content-Type":"application/json"},authHeader:"Authorization",authPrefix:"Bearer ",parseResponse:a=>a.data||[]},"alicode-intl":{url:"https://coding-intl.dashscope.aliyuncs.com/v1/models",method:"GET",headers:{"Content-Type":"application/json"},authHeader:"Authorization",authPrefix:"Bearer ",parseResponse:a=>a.data||[]},"volcengine-ark":E("https://ark.cn-beijing.volces.com/api/coding/v3/models"),byteplus:E("https://ark.ap-southeast.bytepluses.com/api/coding/v3/models"),deepseek:E("https://api.deepseek.com/models"),groq:E("https://api.groq.com/openai/v1/models"),xai:E("https://api.x.ai/v1/models"),mistral:E("https://api.mistral.ai/v1/models"),perplexity:E("https://api.perplexity.ai/v1/models"),together:E("https://api.together.xyz/v1/models"),fireworks:E("https://api.fireworks.ai/inference/v1/models"),cerebras:E("https://api.cerebras.ai/v1/models"),cohere:E("https://api.cohere.ai/v1/models"),nebius:E("https://api.studio.nebius.ai/v1/models"),siliconflow:E("https://api.siliconflow.com/v1/models"),hyperbolic:E("https://api.hyperbolic.xyz/v1/models"),ollama:E("https://ollama.com/api/tags"),nanobanana:E("https://api.nanobananaapi.ai/v1/models"),chutes:E("https://llm.chutes.ai/v1/models"),nvidia:E("https://integrate.api.nvidia.com/v1/models"),assemblyai:E("https://api.assemblyai.com/v1/models"),"vercel-ai-gateway":E("https://ai-gateway.vercel.sh/v1/models"),kiro:{customResolver:async a=>{let b,c={accessToken:a.accessToken,refreshToken:a.refreshToken,providerSpecificData:a.providerSpecificData||{}};try{let d=await (0,B.c)(c,{log:console,onCredentialsRefreshed:async b=>{b?.accessToken&&(await (0,z.vN)(a.id,{accessToken:b.accessToken,refreshToken:b.refreshToken||a.refreshToken,expiresIn:b.expiresIn}),a.accessToken=b.accessToken,b.refreshToken&&(a.refreshToken=b.refreshToken))}});if(d?.models?.length)return{models:d.models.map(a=>({id:a.id,name:a.name,upstreamModelId:a.upstreamModelId,contextLength:a.contextLength,rateMultiplier:a.rateMultiplier,capabilities:a.capabilities,description:a.description}))};b="Kiro returned no models; falling back to static catalog."}catch(a){b=`Failed to fetch Kiro models: ${a.message}`,console.log("Failed to fetch Kiro models dynamically, falling back to static:",a.message)}return{models:[],warning:b}}},qoder:{customResolver:async a=>{let b,c={accessToken:a.accessToken,refreshToken:a.refreshToken,email:a.email,displayName:a.displayName,providerSpecificData:a.providerSpecificData||{}};try{let a=await (0,C.EV)(c,{forceRefresh:!0});if(a?.models?.length)return{models:a.models.map(a=>({id:`qoder/${a.id}`,name:a.name,contextLength:a.contextLength,isVL:a.isVL,isReasoning:a.isReasoning,maxOutputTokens:a.maxOutputTokens,description:a.description}))};b="Qoder returned no models; falling back to static catalog."}catch(a){b=`Failed to fetch Qoder models: ${a.message}`,console.log("Failed to fetch Qoder models dynamically, falling back to static:",a.message)}return{models:[],warning:b}}},"gemini-cli":{customResolver:(({refreshFn:a,fetchFn:b,parseFn:c,errorLabel:d})=>async e=>{let f,{accessToken:g,refreshToken:h}=e;if(!g)return{error:"No valid token found",status:401};try{let i=await b(g,e);if(!i.ok&&(401===i.status||403===i.status)&&h){let c=await a(e);c?.accessToken&&(await (0,z.vN)(e.id,{accessToken:c.accessToken,refreshToken:c.refreshToken||h,expiresIn:c.expiresIn}),e.accessToken=c.accessToken,c.refreshToken&&(e.refreshToken=c.refreshToken),i=await b(c.accessToken,e))}if(i.ok){let a=await i.json(),b=c(a);if(b.length>0)return{models:b}}else{let a=await i.text();f=`${d}: ${i.status} ${a}`,console.log(`${d} (falling back to static):`,a)}}catch(a){f=`${d}: ${a.message}`,console.log(`${d} (falling back to static):`,a.message)}return{models:[],warning:f}})({refreshFn:a=>(0,z.I9)(a.refreshToken,y.LT.clientId,y.LT.clientSecret),fetchFn:(a,b)=>{let c=b.projectId||b.providerSpecificData?.projectId;return fetch("https://cloudcode-pa.googleapis.com/v1internal:fetchAvailableModels",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`,"User-Agent":"google-api-nodejs-client/9.15.1","X-Goog-Api-Client":"google-cloud-sdk vscode_cloudshelleditor/0.1"},body:JSON.stringify(c?{project:c}:{})})},parseFn:a=>Array.isArray(a?.models)?a.models.flatMap(a=>{let b=a?.id||a?.model||a?.name;return b?[{id:b,name:a?.displayName||a?.name||b}]:[]}):a?.models&&"object"==typeof a.models?Object.entries(a.models).reduce((a,[b,c])=>(c?.isInternal||a.push({id:b,name:c?.displayName||c?.name||b}),a),[]):[],errorLabel:"Failed to fetch Gemini CLI models"})},"ollama-local":{customResolver:async a=>{let b=`${(0,A.Ak)(a)}/api/tags`,c=await fetch(b,{method:"GET",headers:{"Content-Type":"application/json"}});return c.ok?{models:D(await c.json())}:(console.log("Error fetching models from ollama-local:",await c.text()),{error:`Failed to fetch models: ${c.status}`,status:c.status})}}};async function G(a,{params:b}){try{let{id:a}=await b,c=await (0,w.Mc)(a);if(!c)return v.NextResponse.json({error:"Connection not found"},{status:404});if((0,x.mq)(c.provider)){let a=c.providerSpecificData?.baseUrl;if(!a)return v.NextResponse.json({error:"No base URL configured for OpenAI compatible provider"},{status:400});let b=`${a.replace(/\/$/,"")}/models`,d=await fetch(b,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${c.apiKey}`}});if(!d.ok){let a=await d.text();return console.log(`Error fetching models from ${c.provider}:`,a),v.NextResponse.json({error:`Failed to fetch models: ${d.status}`},{status:d.status})}let e=await d.json(),f=e.data||e.models||[];return v.NextResponse.json({provider:c.provider,connectionId:c.id,models:f})}if((0,x.gb)(c.provider)){let a=c.providerSpecificData?.baseUrl;if(!a)return v.NextResponse.json({error:"No base URL configured for Anthropic compatible provider"},{status:400});(a=a.replace(/\/$/,"")).endsWith("/messages")&&(a=a.slice(0,-9));let b=`${a}/models`,d=await fetch(b,{method:"GET",headers:{"Content-Type":"application/json","x-api-key":c.apiKey,"anthropic-version":"2023-06-01",Authorization:`Bearer ${c.apiKey}`}});if(!d.ok){let a=await d.text();return console.log(`Error fetching models from ${c.provider}:`,a),v.NextResponse.json({error:`Failed to fetch models: ${d.status}`},{status:d.status})}let e=await d.json(),f=e.data||e.models||[];return v.NextResponse.json({provider:c.provider,connectionId:c.id,models:f})}let d=F[c.provider];if(!d)return v.NextResponse.json({error:`Provider ${c.provider} does not support models listing`},{status:400});if("function"==typeof d.customResolver){let a=await d.customResolver(c);if(a.error)return v.NextResponse.json({error:a.error},{status:a.status||500});return v.NextResponse.json({provider:c.provider,connectionId:c.id,models:a.models,...a.warning?{warning:a.warning}:{}})}let e=c.providerSpecificData?.copilotToken||c.accessToken||c.apiKey;if(!e)return v.NextResponse.json({error:"No valid token found"},{status:401});let f=d.url;"qwen"===c.provider&&(f=(a=>{let b="https://portal.qwen.ai/v1/models",c=a?.providerSpecificData?.resourceUrl;if(!c||"string"!=typeof c)return b;let d=c.trim();return d?d.startsWith("http://")||d.startsWith("https://")?`${d.replace(/\/$/,"")}/models`:`https://${d.replace(/\/$/,"")}/v1/models`:b})(c)),d.authQuery&&(f+=`?${d.authQuery}=${e}`);let g={...d.headers};d.authHeader&&!d.authQuery&&(g[d.authHeader]=(d.authPrefix||"")+e);let h={method:d.method,headers:g};d.body&&"POST"===d.method&&(h.body=JSON.stringify(d.body));let i=await fetch(f,h);if(!i.ok){let a=await i.text();return console.log(`Error fetching models from ${c.provider}:`,a),v.NextResponse.json({error:`Failed to fetch models: ${i.status}`},{status:i.status})}let j=await i.json(),k=d.parseResponse(j);return v.NextResponse.json({provider:c.provider,connectionId:c.id,models:k})}catch(a){return console.log("Error fetching provider models:",a),v.NextResponse.json({error:"Failed to fetch models"},{status:500})}}let H=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/providers/[id]/models/route",pathname:"/api/providers/[id]/models",filename:"route",bundlePath:"app/api/providers/[id]/models/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/VansRouter/VansRouter/src/app/api/providers/[id]/models/route.js",nextConfigOutput:"standalone",userland:d,...{}}),{workAsyncStorage:I,workUnitAsyncStorage:J,serverHooks:K}=H;function L(){return(0,g.patchFetch)({workAsyncStorage:I,workUnitAsyncStorage:J})}async function M(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),H.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/providers/[id]/models/route";"/index"===d&&(d="/");let e=await H.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:z,prerenderManifest:A,routerServerContext:B,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,resolvedPathname:E,clientReferenceManifest:F,serverActionsManifest:G}=e,I=(0,k.normalizeAppPath)(d),J=!!(A.dynamicRoutes[I]||A.routes[E]),K=async()=>((null==B?void 0:B.render404)?await B.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!z){let a=!!A.routes[E],b=A.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||H.isDev||z||(L="/index"===(L=E)?"/":L);let M=!0===H.isDev||!J,N=J&&!M;G&&F&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:F,serverActionsManifest:G});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==B?void 0:B.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await H.getIncrementalCache(a,x,A,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>H.onRequestError(a,b,d,e,B)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>H.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&C&&D&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await H.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:C})},!1,B),b}},k=await H.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",C?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),z&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await H.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:C})},!1,B),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}},26915:a=>{a.exports=import("playwright-core")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},32467:a=>{a.exports=require("node:http2")},33873:a=>{a.exports=require("path")},34589:a=>{a.exports=require("node:assert")},37067:a=>{a.exports=require("node:http")},37540:a=>{a.exports=require("node:console")},38522:a=>{a.exports=require("node:zlib")},40610:a=>{a.exports=require("node:dns")},41692:a=>{a.exports=require("node:tls")},41792:a=>{a.exports=require("node:querystring")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},46820:(a,b,c)=>{c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.Mc,OM:()=>d.OM,P:()=>d.getProviderConnections,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,rj:()=>d.updateProviderConnection,uL:()=>d.uL,ui:()=>d.ui,uv:()=>d.uv});var d=c(94164)},48161:a=>{a.exports=require("node:os")},51455:a=>{a.exports=require("node:fs/promises")},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},55591:a=>{a.exports=require("https")},57075:a=>{a.exports=require("node:stream")},57975:a=>{a.exports=require("node:util")},59824:(a,b,c)=>{c.d(b,{DI:()=>i,Hp:()=>k,LT:()=>j,MZ:()=>v,Nl:()=>y,Nu:()=>p,OV:()=>h,Op:()=>z,S6:()=>s,Tx:()=>q,WN:()=>t,Ww:()=>A,YT:()=>n,ZL:()=>m,cD:()=>o,f7:()=>x,hF:()=>l,lB:()=>w,t:()=>u});var d=c(21820),e=c(24567),f=c(68711);function g(){let a=(0,d.platform)(),b=(0,d.arch)();return"darwin"===a?"arm64"===b?2:1:"linux"===a?"arm64"===b?4:3:5*("win32"===a)}let h={...f.sr.claude},i={...f.sr.codex},j={...e.w3,...f.sr["gemini-cli"]},k={...f.sr.qwen},l={...f.sr.qoder},m={...f.sr.iflow},n={...e.XP,...f.sr.antigravity,loadCodeAssistClientMetadata:JSON.stringify({ideType:9,platform:g(),pluginType:2})};function o(){return{ideType:9,platform:g(),pluginType:2}}({...f.sr.openai});let p={...f.sr.github},q={...f.sr.kiro},r=/^[a-z]{2}-[a-z]+-\d{1,2}$/;function s(a){if("string"!=typeof a||!r.test(a))throw Error("Invalid region");return a}let t={...f.sr.cursor,tokenStoragePaths:{linux:"~/.config/Cursor/User/globalStorage/state.vscdb",macos:"/Users/<user>/Library/Application Support/Cursor/User/globalStorage/state.vscdb",windows:"%APPDATA%\\Cursor\\User\\globalStorage\\state.vscdb"}},u={...f.sr["kimi-coding"],clientId:process.env.KIMI_CODING_OAUTH_CLIENT_ID||f.xq["kimi-coding"]?.clientId},v={...f.sr.kilocode},w={...f.sr.cline},x={...f.sr.gitlab},y={...f.sr["codebuddy-cn"]},z={...f.sr.zcode},A=3e5},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71553:a=>{a.exports=require("node:dns/promises")},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},73429:a=>{a.exports=require("node:util/types")},73496:a=>{a.exports=require("http2")},74075:a=>{a.exports=require("zlib")},75919:a=>{a.exports=require("node:worker_threads")},76760:a=>{a.exports=require("node:path")},77030:a=>{a.exports=require("node:net")},77598:a=>{a.exports=require("node:crypto")},78474:a=>{a.exports=require("node:events")},79551:a=>{a.exports=require("url")},81630:a=>{a.exports=require("http")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},87997:a=>{a.exports=require("node:timers")},90293:(a,b,c)=>{c.r(b),c.d(b,{debug:()=>h,error:()=>k,info:()=>i,maskKey:()=>o,request:()=>l,response:()=>m,stream:()=>n,warn:()=>j});let d={DEBUG:0,INFO:1,WARN:2,ERROR:3},e=d[process.env.LOG_LEVEL?.toUpperCase?.()]??d.INFO;function f(){return new Date().toLocaleTimeString("en-US",{hour12:!1})}function g(a){if(!a)return"";if("string"==typeof a)return a;try{return JSON.stringify(a)}catch{return String(a)}}function h(a,b,c){if(e<=d.DEBUG){let d=c?` ${g(c)}`:"";console.log(`[${f()}] 🔍 [${a}] ${b}${d}`)}}function i(a,b,c){if(e<=d.INFO){let d=c?` ${g(c)}`:"";console.log(`[${f()}] ℹ️ [${a}] ${b}${d}`)}}function j(a,b,c){e<=d.WARN&&c&&g(c)}function k(a,b,c){if(e<=d.ERROR){let d=c?` ${g(c)}`:"";console.log(`[${f()}] ❌ [${a}] ${b}${d}`)}}function l(a,b,c){let d=c?` ${g(c)}`:"";console.log(`\x1b[36m[${f()}] 📥 ${a} ${b}${d}\x1b[0m`)}function m(a,b,c){let d=c?` ${g(c)}`:"";console.log(`[${f()}] ${a<400?"\uD83D\uDCE4":"\uD83D\uDCA5"} ${a} (${b}ms)${d}`)}function n(a,b){let c=b?` ${g(b)}`:"";console.log(`[${f()}] 🌊 [STREAM] ${a}${c}`)}function o(a){return!a||a.length<8?"***":`${a.slice(0,4)}...${a.slice(-4)}`}},91253:(a,b,c)=>{c.d(b,{AI_PROVIDERS:()=>s,js:()=>w,DI:()=>n,fg:()=>k,Pd:()=>o,IS:()=>h,nJ:()=>i,zN:()=>j,JH:()=>m,jO:()=>y,wb:()=>x,br:()=>l,wG:()=>v,zt:()=>t,gb:()=>q,gC:()=>r,mq:()=>p,rs:()=>u});var d=c(69765);let e="⚠️ Risk Notice: This provider uses a subscription/OAuth session not officially licensed for proxy/router use. Account may be restricted or banned. Use at your own risk.";Object.fromEntries(d.A.filter(a=>a.display).map(a=>{let b;return[a.id,"RISK_NOTICE"===(b=a.display).deprecationNotice?{...b,deprecationNotice:e}:b]}));let f=["serviceKinds","ttsConfig","sttConfig","embeddingConfig","imageConfig","imageToTextConfig","videoConfig","musicConfig","searchViaChat","searchConfig","fetchConfig","modelsFetcher","mediaPriority","hiddenKinds"],g=a=>Object.fromEntries(d.A.filter(b=>b.category===a).map(a=>[a.id,function(a){let b={};for(let c of(a.media&&Object.assign(b,a.media),f))void 0!==a[c]&&(b[c]=a[c]);let c={...a.display||{}};return"RISK_NOTICE"===c.deprecationNotice&&(c.deprecationNotice=e),{...c,id:a.id,alias:a.uiAlias||a.alias,...a.hidden?{hidden:!0}:{},...b,...void 0!==a.priority?{priority:a.priority}:{},...a.hasFree?{hasFree:!0}:{},...a.thinkingConfig?{thinkingConfig:a.thinkingConfig}:{},...a.regions?{regions:a.regions,defaultRegion:a.defaultRegion}:{},...a.hasProviderSpecificData?{hasProviderSpecificData:!0}:{},...a.noAuth?{noAuth:!0}:{},...a.passthroughModels?{passthroughModels:!0}:{},...a.hasOAuth?{hasOAuth:!0}:{},...a.authModes?{authModes:a.authModes}:{},...a.authType?{authType:a.authType}:{},...a.authHint?{authHint:a.authHint}:{}}}(a)])),h=g("free"),i=g("freeTier"),j=g("oauth"),k=g("apikey"),l=g("webCookie"),m="openai-compatible-",n="anthropic-compatible-",o="custom-embedding-";function p(a){return"string"==typeof a&&a.startsWith(m)}function q(a){return"string"==typeof a&&a.startsWith(n)}function r(a){return"string"==typeof a&&a.startsWith(o)}let s={...h,...i,...j,...k,...l};function t(a){for(let b of Object.values(s))if(b.alias===a||b.id===a)return b;return null}function u(a){let b=t(a);return b?.id||a}function v(a){let b=s[a];return b?.alias||a}let w=Object.values(s).reduce((a,b)=>(a[b.alias]=b.id,a),{});Object.values(s).reduce((a,b)=>(a[b.id]=b.alias,a),{});let x=d.A.filter(a=>a.features?.usage).map(a=>a.id),y=d.A.filter(a=>a.features?.usageApikey).map(a=>a.id)},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[1348,4777,9633,9765,8711,3424,3950,1827],()=>b(b.s=24045));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=5211,a.ids=[1253,5211,6820],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},643:a=>{a.exports=require("node:perf_hooks")},1708:a=>{a.exports=require("node:process")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4573:a=>{a.exports=require("node:buffer")},7066:a=>{a.exports=require("node:tty")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14985:a=>{a.exports=require("dns")},16698:a=>{a.exports=require("node:async_hooks")},21820:a=>{a.exports=require("os")},26915:a=>{a.exports=import("playwright-core")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},32467:a=>{a.exports=require("node:http2")},33873:a=>{a.exports=require("path")},34445:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>M,patchFetch:()=>L,routeModule:()=>H,serverHooks:()=>K,workAsyncStorage:()=>I,workUnitAsyncStorage:()=>J});var d={};c.r(d),c.d(d,{GET:()=>G});var e=c(12334),f=c(59399),g=c(8894),h=c(83760),i=c(34958),j=c(970),k=c(261),l=c(28112),m=c(52194),n=c(9410),o=c(68673),p=c(47471),q=c(13093),r=c(98563),s=c(7572),t=c(86439),u=c(33610),v=c(77231),w=c(46820),x=c(91253),y=c(59824),z=c(83950),A=c(13946),B=c(84397),C=c(26415);let D=a=>Array.isArray(a)?a:a?.data||a?.models||a?.results||[],E=a=>({url:a,method:"GET",headers:{"Content-Type":"application/json"},authHeader:"Authorization",authPrefix:"Bearer ",parseResponse:D}),F={claude:{url:"https://api.anthropic.com/v1/models",method:"GET",headers:{"Anthropic-Version":"2023-06-01","Content-Type":"application/json"},authHeader:"x-api-key",parseResponse:a=>a.data||[]},gemini:{url:"https://generativelanguage.googleapis.com/v1beta/models",method:"GET",headers:{"Content-Type":"application/json"},authQuery:"key",parseResponse:a=>a.models||[]},qwen:{url:"https://portal.qwen.ai/v1/models",method:"GET",headers:{"Content-Type":"application/json"},authHeader:"Authorization",authPrefix:"Bearer ",parseResponse:a=>a.data||[]},codex:{url:"https://chatgpt.com/backend-api/codex/models?client_version=1.0.0",method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"},authHeader:"Authorization",authPrefix:"Bearer ",parseResponse:a=>D(a).flatMap(a=>{let b=a?.id||a?.slug||a?.model||a?.name;if(!b)return[];let c=a?.display_name||a?.displayName||a?.name||b,d={...a,id:b,name:c};return!("image"!==(a?.type||"llm")&&!b.toLowerCase().includes("embed"))||b.endsWith("-review")?[d]:[d,{...d,id:`${b}-review`,name:`${c} Review`,upstreamModelId:b,quotaFamily:"review"}]})},antigravity:{url:"https://daily-cloudcode-pa.sandbox.googleapis.com/v1internal:models",method:"POST",headers:{"Content-Type":"application/json"},authHeader:"Authorization",authPrefix:"Bearer ",body:{},parseResponse:a=>a.models||[]},github:{url:"https://api.githubcopilot.com/models",method:"GET",headers:{"Content-Type":"application/json","Copilot-Integration-Id":"vscode-chat","editor-version":"vscode/1.107.1","editor-plugin-version":"copilot-chat/0.26.7","user-agent":"GitHubCopilotChat/0.26.7"},authHeader:"Authorization",authPrefix:"Bearer ",parseResponse:a=>a?.data?a.data.reduce((a,b)=>(b.capabilities?.type==="chat"&&b.policy?.state!=="disabled"&&a.push({id:b.id,name:b.name||b.id,version:b.version,capabilities:b.capabilities,isDefault:!0===b.model_picker_enabled}),a),[]):[]},openai:E("https://api.openai.com/v1/models"),openrouter:E("https://openrouter.ai/api/v1/models"),anthropic:{url:"https://api.anthropic.com/v1/models",method:"GET",headers:{"Anthropic-Version":"2023-06-01","Content-Type":"application/json"},authHeader:"x-api-key",parseResponse:a=>a.data||[]},alicode:{url:"https://coding.dashscope.aliyuncs.com/v1/models",method:"GET",headers:{"Content-Type":"application/json"},authHeader:"Authorization",authPrefix:"Bearer ",parseResponse:a=>a.data||[]},"alicode-intl":{url:"https://coding-intl.dashscope.aliyuncs.com/v1/models",method:"GET",headers:{"Content-Type":"application/json"},authHeader:"Authorization",authPrefix:"Bearer ",parseResponse:a=>a.data||[]},"volcengine-ark":E("https://ark.cn-beijing.volces.com/api/coding/v3/models"),byteplus:E("https://ark.ap-southeast.bytepluses.com/api/coding/v3/models"),deepseek:E("https://api.deepseek.com/models"),groq:E("https://api.groq.com/openai/v1/models"),xai:E("https://api.x.ai/v1/models"),mistral:E("https://api.mistral.ai/v1/models"),perplexity:E("https://api.perplexity.ai/v1/models"),together:E("https://api.together.xyz/v1/models"),fireworks:E("https://api.fireworks.ai/inference/v1/models"),cerebras:E("https://api.cerebras.ai/v1/models"),cohere:E("https://api.cohere.ai/v1/models"),nebius:E("https://api.studio.nebius.ai/v1/models"),siliconflow:E("https://api.siliconflow.com/v1/models"),hyperbolic:E("https://api.hyperbolic.xyz/v1/models"),ollama:E("https://ollama.com/api/tags"),nanobanana:E("https://api.nanobananaapi.ai/v1/models"),chutes:E("https://llm.chutes.ai/v1/models"),nvidia:E("https://integrate.api.nvidia.com/v1/models"),assemblyai:E("https://api.assemblyai.com/v1/models"),"vercel-ai-gateway":E("https://ai-gateway.vercel.sh/v1/models"),kiro:{customResolver:async a=>{let b,c={accessToken:a.accessToken,refreshToken:a.refreshToken,providerSpecificData:a.providerSpecificData||{}};try{let d=await (0,B.c)(c,{log:console,onCredentialsRefreshed:async b=>{b?.accessToken&&(await (0,z.vN)(a.id,{accessToken:b.accessToken,refreshToken:b.refreshToken||a.refreshToken,expiresIn:b.expiresIn}),a.accessToken=b.accessToken,b.refreshToken&&(a.refreshToken=b.refreshToken))}});if(d?.models?.length)return{models:d.models.map(a=>({id:a.id,name:a.name,upstreamModelId:a.upstreamModelId,contextLength:a.contextLength,rateMultiplier:a.rateMultiplier,capabilities:a.capabilities,description:a.description}))};b="Kiro returned no models; falling back to static catalog."}catch(a){b=`Failed to fetch Kiro models: ${a.message}`,console.log("Failed to fetch Kiro models dynamically, falling back to static:",a.message)}return{models:[],warning:b}}},qoder:{customResolver:async a=>{let b,c={accessToken:a.accessToken,refreshToken:a.refreshToken,email:a.email,displayName:a.displayName,providerSpecificData:a.providerSpecificData||{}};try{let a=await (0,C.EV)(c,{forceRefresh:!0});if(a?.models?.length)return{models:a.models.map(a=>({id:`qoder/${a.id}`,name:a.name,contextLength:a.contextLength,isVL:a.isVL,isReasoning:a.isReasoning,maxOutputTokens:a.maxOutputTokens,description:a.description}))};b="Qoder returned no models; falling back to static catalog."}catch(a){b=`Failed to fetch Qoder models: ${a.message}`,console.log("Failed to fetch Qoder models dynamically, falling back to static:",a.message)}return{models:[],warning:b}}},"gemini-cli":{customResolver:(({refreshFn:a,fetchFn:b,parseFn:c,errorLabel:d})=>async e=>{let f,{accessToken:g,refreshToken:h}=e;if(!g)return{error:"No valid token found",status:401};try{let i=await b(g,e);if(!i.ok&&(401===i.status||403===i.status)&&h){let c=await a(e);c?.accessToken&&(await (0,z.vN)(e.id,{accessToken:c.accessToken,refreshToken:c.refreshToken||h,expiresIn:c.expiresIn}),e.accessToken=c.accessToken,c.refreshToken&&(e.refreshToken=c.refreshToken),i=await b(c.accessToken,e))}if(i.ok){let a=await i.json(),b=c(a);if(b.length>0)return{models:b}}else{let a=await i.text();f=`${d}: ${i.status} ${a}`,console.log(`${d} (falling back to static):`,a)}}catch(a){f=`${d}: ${a.message}`,console.log(`${d} (falling back to static):`,a.message)}return{models:[],warning:f}})({refreshFn:a=>(0,z.I9)(a.refreshToken,y.LT.clientId,y.LT.clientSecret),fetchFn:(a,b)=>{let c=b.projectId||b.providerSpecificData?.projectId;return fetch("https://cloudcode-pa.googleapis.com/v1internal:fetchAvailableModels",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`,"User-Agent":"google-api-nodejs-client/9.15.1","X-Goog-Api-Client":"google-cloud-sdk vscode_cloudshelleditor/0.1"},body:JSON.stringify(c?{project:c}:{})})},parseFn:a=>Array.isArray(a?.models)?a.models.flatMap(a=>{let b=a?.id||a?.model||a?.name;return b?[{id:b,name:a?.displayName||a?.name||b}]:[]}):a?.models&&"object"==typeof a.models?Object.entries(a.models).reduce((a,[b,c])=>(c?.isInternal||a.push({id:b,name:c?.displayName||c?.name||b}),a),[]):[],errorLabel:"Failed to fetch Gemini CLI models"})},"ollama-local":{customResolver:async a=>{let b=`${(0,A.Ak)(a)}/api/tags`,c=await fetch(b,{method:"GET",headers:{"Content-Type":"application/json"}});return c.ok?{models:D(await c.json())}:(console.log("Error fetching models from ollama-local:",await c.text()),{error:`Failed to fetch models: ${c.status}`,status:c.status})}}};async function G(a,{params:b}){try{let{id:a}=await b,c=await (0,w.Mc)(a);if(!c)return v.NextResponse.json({error:"Connection not found"},{status:404});if((0,x.mq)(c.provider)){let a=c.providerSpecificData?.baseUrl;if(!a)return v.NextResponse.json({error:"No base URL configured for OpenAI compatible provider"},{status:400});let b=`${a.replace(/\/$/,"")}/models`,d=await fetch(b,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${c.apiKey}`}});if(!d.ok){let a=await d.text();return console.log(`Error fetching models from ${c.provider}:`,a),v.NextResponse.json({error:`Failed to fetch models: ${d.status}`},{status:d.status})}let e=await d.json(),f=e.data||e.models||[];return v.NextResponse.json({provider:c.provider,connectionId:c.id,models:f})}if((0,x.gb)(c.provider)){let a=c.providerSpecificData?.baseUrl;if(!a)return v.NextResponse.json({error:"No base URL configured for Anthropic compatible provider"},{status:400});(a=a.replace(/\/$/,"")).endsWith("/messages")&&(a=a.slice(0,-9));let b=`${a}/models`,d=await fetch(b,{method:"GET",headers:{"Content-Type":"application/json","x-api-key":c.apiKey,"anthropic-version":"2023-06-01",Authorization:`Bearer ${c.apiKey}`}});if(!d.ok){let a=await d.text();return console.log(`Error fetching models from ${c.provider}:`,a),v.NextResponse.json({error:`Failed to fetch models: ${d.status}`},{status:d.status})}let e=await d.json(),f=e.data||e.models||[];return v.NextResponse.json({provider:c.provider,connectionId:c.id,models:f})}let d=F[c.provider];if(!d)return v.NextResponse.json({error:`Provider ${c.provider} does not support models listing`},{status:400});if("function"==typeof d.customResolver){let a=await d.customResolver(c);if(a.error)return v.NextResponse.json({error:a.error},{status:a.status||500});return v.NextResponse.json({provider:c.provider,connectionId:c.id,models:a.models,...a.warning?{warning:a.warning}:{}})}let e=c.providerSpecificData?.copilotToken||c.accessToken||c.apiKey;if(!e)return v.NextResponse.json({error:"No valid token found"},{status:401});let f=d.url;"qwen"===c.provider&&(f=(a=>{let b="https://portal.qwen.ai/v1/models",c=a?.providerSpecificData?.resourceUrl;if(!c||"string"!=typeof c)return b;let d=c.trim();return d?d.startsWith("http://")||d.startsWith("https://")?`${d.replace(/\/$/,"")}/models`:`https://${d.replace(/\/$/,"")}/v1/models`:b})(c)),d.authQuery&&(f+=`?${d.authQuery}=${e}`);let g={...d.headers};d.authHeader&&!d.authQuery&&(g[d.authHeader]=(d.authPrefix||"")+e);let h={method:d.method,headers:g};d.body&&"POST"===d.method&&(h.body=JSON.stringify(d.body));let i=await fetch(f,h);if(!i.ok){let a=await i.text();return console.log(`Error fetching models from ${c.provider}:`,a),v.NextResponse.json({error:`Failed to fetch models: ${i.status}`},{status:i.status})}let j=await i.json(),k=d.parseResponse(j);return v.NextResponse.json({provider:c.provider,connectionId:c.id,models:k})}catch(a){return console.log("Error fetching provider models:",a),v.NextResponse.json({error:"Failed to fetch models"},{status:500})}}let H=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/providers/[id]/models/route",pathname:"/api/providers/[id]/models",filename:"route",bundlePath:"app/api/providers/[id]/models/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/VansRouter/VansRouter/src/app/api/providers/[id]/models/route.js",nextConfigOutput:"standalone",userland:d,...{}}),{workAsyncStorage:I,workUnitAsyncStorage:J,serverHooks:K}=H;function L(){return(0,g.patchFetch)({workAsyncStorage:I,workUnitAsyncStorage:J})}async function M(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),H.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/providers/[id]/models/route";"/index"===d&&(d="/");let e=await H.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:z,prerenderManifest:A,routerServerContext:B,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,resolvedPathname:E,clientReferenceManifest:F,serverActionsManifest:G}=e,I=(0,k.normalizeAppPath)(d),J=!!(A.dynamicRoutes[I]||A.routes[E]),K=async()=>((null==B?void 0:B.render404)?await B.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!z){let a=!!A.routes[E],b=A.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||H.isDev||z||(L="/index"===(L=E)?"/":L);let M=!0===H.isDev||!J,N=J&&!M;G&&F&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:F,serverActionsManifest:G});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==B?void 0:B.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await H.getIncrementalCache(a,x,A,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>H.onRequestError(a,b,d,e,B)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>H.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&C&&D&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await H.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:C})},!1,B),b}},k=await H.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",C?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),z&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await H.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:C})},!1,B),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}},34589:a=>{a.exports=require("node:assert")},37067:a=>{a.exports=require("node:http")},37540:a=>{a.exports=require("node:console")},38522:a=>{a.exports=require("node:zlib")},40610:a=>{a.exports=require("node:dns")},41692:a=>{a.exports=require("node:tls")},41792:a=>{a.exports=require("node:querystring")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},46820:(a,b,c)=>{c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.Mc,OM:()=>d.OM,P:()=>d.getProviderConnections,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,rj:()=>d.updateProviderConnection,uL:()=>d.uL,ui:()=>d.ui,uv:()=>d.uv});var d=c(94164)},48161:a=>{a.exports=require("node:os")},51455:a=>{a.exports=require("node:fs/promises")},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},55591:a=>{a.exports=require("https")},57075:a=>{a.exports=require("node:stream")},57975:a=>{a.exports=require("node:util")},59824:(a,b,c)=>{c.d(b,{DI:()=>i,Hp:()=>k,LT:()=>j,MZ:()=>v,Nl:()=>y,Nu:()=>p,OV:()=>h,Op:()=>z,S6:()=>s,Tx:()=>q,WN:()=>t,Ww:()=>A,YT:()=>n,ZL:()=>m,cD:()=>o,f7:()=>x,hF:()=>l,lB:()=>w,t:()=>u});var d=c(21820),e=c(24567),f=c(68711);function g(){let a=(0,d.platform)(),b=(0,d.arch)();return"darwin"===a?"arm64"===b?2:1:"linux"===a?"arm64"===b?4:3:5*("win32"===a)}let h={...f.sr.claude},i={...f.sr.codex},j={...e.w3,...f.sr["gemini-cli"]},k={...f.sr.qwen},l={...f.sr.qoder},m={...f.sr.iflow},n={...e.XP,...f.sr.antigravity,loadCodeAssistClientMetadata:JSON.stringify({ideType:9,platform:g(),pluginType:2})};function o(){return{ideType:9,platform:g(),pluginType:2}}({...f.sr.openai});let p={...f.sr.github},q={...f.sr.kiro},r=/^[a-z]{2}-[a-z]+-\d{1,2}$/;function s(a){if("string"!=typeof a||!r.test(a))throw Error("Invalid region");return a}let t={...f.sr.cursor,tokenStoragePaths:{linux:"~/.config/Cursor/User/globalStorage/state.vscdb",macos:"/Users/<user>/Library/Application Support/Cursor/User/globalStorage/state.vscdb",windows:"%APPDATA%\\Cursor\\User\\globalStorage\\state.vscdb"}},u={...f.sr["kimi-coding"],clientId:process.env.KIMI_CODING_OAUTH_CLIENT_ID||f.xq["kimi-coding"]?.clientId},v={...f.sr.kilocode},w={...f.sr.cline},x={...f.sr.gitlab},y={...f.sr["codebuddy-cn"]},z={...f.sr.zcode},A=3e5},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71553:a=>{a.exports=require("node:dns/promises")},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},73429:a=>{a.exports=require("node:util/types")},73496:a=>{a.exports=require("http2")},74075:a=>{a.exports=require("zlib")},75919:a=>{a.exports=require("node:worker_threads")},76760:a=>{a.exports=require("node:path")},77030:a=>{a.exports=require("node:net")},77598:a=>{a.exports=require("node:crypto")},78474:a=>{a.exports=require("node:events")},79551:a=>{a.exports=require("url")},81630:a=>{a.exports=require("http")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},87997:a=>{a.exports=require("node:timers")},90293:(a,b,c)=>{c.r(b),c.d(b,{debug:()=>h,error:()=>k,info:()=>i,maskKey:()=>o,request:()=>l,response:()=>m,stream:()=>n,warn:()=>j});let d={DEBUG:0,INFO:1,WARN:2,ERROR:3},e=d[process.env.LOG_LEVEL?.toUpperCase?.()]??d.INFO;function f(){return new Date().toLocaleTimeString("en-US",{hour12:!1})}function g(a){if(!a)return"";if("string"==typeof a)return a;try{return JSON.stringify(a)}catch{return String(a)}}function h(a,b,c){if(e<=d.DEBUG){let d=c?` ${g(c)}`:"";console.log(`[${f()}] 🔍 [${a}] ${b}${d}`)}}function i(a,b,c){if(e<=d.INFO){let d=c?` ${g(c)}`:"";console.log(`[${f()}] ℹ️ [${a}] ${b}${d}`)}}function j(a,b,c){e<=d.WARN&&c&&g(c)}function k(a,b,c){if(e<=d.ERROR){let d=c?` ${g(c)}`:"";console.log(`[${f()}] ❌ [${a}] ${b}${d}`)}}function l(a,b,c){let d=c?` ${g(c)}`:"";console.log(`\x1b[36m[${f()}] 📥 ${a} ${b}${d}\x1b[0m`)}function m(a,b,c){let d=c?` ${g(c)}`:"";console.log(`[${f()}] ${a<400?"\uD83D\uDCE4":"\uD83D\uDCA5"} ${a} (${b}ms)${d}`)}function n(a,b){let c=b?` ${g(b)}`:"";console.log(`[${f()}] 🌊 [STREAM] ${a}${c}`)}function o(a){return!a||a.length<8?"***":`${a.slice(0,4)}...${a.slice(-4)}`}},91253:(a,b,c)=>{c.d(b,{AI_PROVIDERS:()=>s,js:()=>w,DI:()=>n,fg:()=>k,Pd:()=>o,IS:()=>h,nJ:()=>i,zN:()=>j,JH:()=>m,jO:()=>y,wb:()=>x,br:()=>l,wG:()=>v,zt:()=>t,gb:()=>q,gC:()=>r,mq:()=>p,rs:()=>u});var d=c(69765);let e="⚠️ Risk Notice: This provider uses a subscription/OAuth session not officially licensed for proxy/router use. Account may be restricted or banned. Use at your own risk.";Object.fromEntries(d.A.filter(a=>a.display).map(a=>{let b;return[a.id,"RISK_NOTICE"===(b=a.display).deprecationNotice?{...b,deprecationNotice:e}:b]}));let f=["serviceKinds","ttsConfig","sttConfig","embeddingConfig","imageConfig","imageToTextConfig","videoConfig","musicConfig","searchViaChat","searchConfig","fetchConfig","modelsFetcher","mediaPriority","hiddenKinds"],g=a=>Object.fromEntries(d.A.filter(b=>b.category===a).map(a=>[a.id,function(a){let b={};for(let c of(a.media&&Object.assign(b,a.media),f))void 0!==a[c]&&(b[c]=a[c]);let c={...a.display||{}};return"RISK_NOTICE"===c.deprecationNotice&&(c.deprecationNotice=e),{...c,id:a.id,alias:a.uiAlias||a.alias,...a.hidden?{hidden:!0}:{},...b,...void 0!==a.priority?{priority:a.priority}:{},...a.hasFree?{hasFree:!0}:{},...a.thinkingConfig?{thinkingConfig:a.thinkingConfig}:{},...a.regions?{regions:a.regions,defaultRegion:a.defaultRegion}:{},...a.hasProviderSpecificData?{hasProviderSpecificData:!0}:{},...a.noAuth?{noAuth:!0}:{},...a.passthroughModels?{passthroughModels:!0}:{},...a.hasOAuth?{hasOAuth:!0}:{},...a.authModes?{authModes:a.authModes}:{},...a.authType?{authType:a.authType}:{},...a.authHint?{authHint:a.authHint}:{}}}(a)])),h=g("free"),i=g("freeTier"),j=g("oauth"),k=g("apikey"),l=g("webCookie"),m="openai-compatible-",n="anthropic-compatible-",o="custom-embedding-";function p(a){return"string"==typeof a&&a.startsWith(m)}function q(a){return"string"==typeof a&&a.startsWith(n)}function r(a){return"string"==typeof a&&a.startsWith(o)}let s={...h,...i,...j,...k,...l};function t(a){for(let b of Object.values(s))if(b.alias===a||b.id===a)return b;return null}function u(a){let b=t(a);return b?.id||a}function v(a){let b=s[a];return b?.alias||a}let w=Object.values(s).reduce((a,b)=>(a[b.alias]=b.id,a),{});Object.values(s).reduce((a,b)=>(a[b.id]=b.alias,a),{});let x=d.A.filter(a=>a.features?.usage).map(a=>a.id),y=d.A.filter(a=>a.features?.usageApikey).map(a=>a.id)},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[1348,4777,9633,9765,8711,3424,3950,1827],()=>b(b.s=34445));module.exports=c})();
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=5922,a.ids=[5922,6820],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},658:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>G,patchFetch:()=>F,routeModule:()=>B,serverHooks:()=>E,workAsyncStorage:()=>C,workUnitAsyncStorage:()=>D});var d={};c.r(d),c.d(d,{DELETE:()=>A,GET:()=>y,PUT:()=>z});var e=c(12334),f=c(59399),g=c(8894),h=c(83760),i=c(34958),j=c(970),k=c(261),l=c(28112),m=c(52194),n=c(9410),o=c(68673),p=c(47471),q=c(13093),r=c(98563),s=c(7572),t=c(86439),u=c(33610),v=c(77231),w=c(46820);async function x(a){if(void 0===a)return{hasProxyPoolField:!1,proxyPoolId:null};if(null===a||""===a||"__none__"===a)return{hasProxyPoolField:!0,proxyPoolId:null};let b=String(a).trim();return b?await (0,w.hr)(b)?{hasProxyPoolField:!0,proxyPoolId:b}:{hasProxyPoolField:!0,error:"Proxy pool not found"}:{hasProxyPoolField:!0,proxyPoolId:null}}async function y(a,{params:b}){try{let{id:a}=await b,c=await (0,w.Mc)(a);if(!c)return v.NextResponse.json({error:"Connection not found"},{status:404});let d={...c};return delete d.apiKey,delete d.accessToken,delete d.refreshToken,delete d.idToken,v.NextResponse.json({connection:d})}catch(a){return console.log("Error fetching connection:",a),v.NextResponse.json({error:"Failed to fetch connection"},{status:500})}}async function z(a,{params:b}){try{var c,d,e;let{id:f}=await b,g=await a.json(),{name:h,priority:i,globalPriority:j,defaultModel:k,isActive:l,apiKey:m,testStatus:n,lastError:o,lastErrorAt:p,providerSpecificData:q}=g,r=await (0,w.Mc)(f);if(!r)return v.NextResponse.json({error:"Connection not found"},{status:404});let s=function(a={}){if(!(Object.prototype.hasOwnProperty.call(a,"connectionProxyEnabled")||Object.prototype.hasOwnProperty.call(a,"connectionProxyUrl")||Object.prototype.hasOwnProperty.call(a,"connectionNoProxy")))return{hasAnyProxyField:!1};let b=a?.connectionProxyEnabled===!0,c="string"==typeof a?.connectionProxyUrl?a.connectionProxyUrl.trim():"",d="string"==typeof a?.connectionNoProxy?a.connectionNoProxy.trim():"";return b&&!c?{hasAnyProxyField:!0,error:"Connection proxy URL is required when connection proxy is enabled"}:{hasAnyProxyField:!0,connectionProxyEnabled:b,connectionProxyUrl:c,connectionNoProxy:d}}(g);if(s.error)return v.NextResponse.json({error:s.error},{status:400});let t=await x(g.proxyPoolId);if(t.error)return v.NextResponse.json({error:t.error},{status:400});let u={};void 0!==h&&(u.name=h),void 0!==i&&(u.priority=i),void 0!==j&&(u.globalPriority=j),void 0!==k&&(u.defaultModel=k),void 0!==l&&(u.isActive=l),m&&"apikey"===r.authType&&(u.apiKey=m),void 0!==n&&(u.testStatus=n),void 0!==o&&(u.lastError=o),void 0!==p&&(u.lastErrorAt=p),c=r.providerSpecificData,d=s.hasAnyProxyField,e=t.hasProxyPoolField,(void 0!==c||void 0!==q||d||e)&&(u.providerSpecificData={...r.providerSpecificData||{},...q||{}},s.hasAnyProxyField&&(u.providerSpecificData.connectionProxyEnabled=s.connectionProxyEnabled,u.providerSpecificData.connectionProxyUrl=s.connectionProxyUrl,u.providerSpecificData.connectionNoProxy=s.connectionNoProxy),t.hasProxyPoolField&&(null===t.proxyPoolId?delete u.providerSpecificData.proxyPoolId:u.providerSpecificData.proxyPoolId=t.proxyPoolId));let y={...await (0,w.rj)(f,u)};return delete y.apiKey,delete y.accessToken,delete y.refreshToken,delete y.idToken,v.NextResponse.json({connection:y})}catch(a){return console.log("Error updating connection:",a),v.NextResponse.json({error:"Failed to update connection"},{status:500})}}async function A(a,{params:b}){try{let{id:a}=await b;if(!await (0,w.fK)(a))return v.NextResponse.json({error:"Connection not found"},{status:404});return v.NextResponse.json({message:"Connection deleted successfully"})}catch(a){return console.log("Error deleting connection:",a),v.NextResponse.json({error:"Failed to delete connection"},{status:500})}}let B=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/providers/[id]/route",pathname:"/api/providers/[id]",filename:"route",bundlePath:"app/api/providers/[id]/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/VansRouter/VansRouter/src/app/api/providers/[id]/route.js",nextConfigOutput:"standalone",userland:d,...{}}),{workAsyncStorage:C,workUnitAsyncStorage:D,serverHooks:E}=B;function F(){return(0,g.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:D})}async function G(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),B.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/providers/[id]/route";"/index"===d&&(d="/");let e=await B.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:z,prerenderManifest:A,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(A.dynamicRoutes[I]||A.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!z){let a=!!A.routes[F],b=A.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||B.isDev||z||(L="/index"===(L=F)?"/":L);let M=!0===B.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await B.getIncrementalCache(a,x,A,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>B.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>B.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await B.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await B.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),z&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await B.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},21820:a=>{a.exports=require("os")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},46820:(a,b,c)=>{c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.Mc,OM:()=>d.OM,P:()=>d.getProviderConnections,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,rj:()=>d.updateProviderConnection,uL:()=>d.uL,ui:()=>d.ui,uv:()=>d.uv});var d=c(94164)},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},94164:(a,b,c)=>{c.d(b,{CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,Mc:()=>d.Mc,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.P,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP});var d=c(45479)},94735:a=>{a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[1348,4777,9633],()=>b(b.s=658));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=5922,a.ids=[5922,6820],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},21820:a=>{a.exports=require("os")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},46820:(a,b,c)=>{c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.Mc,OM:()=>d.OM,P:()=>d.getProviderConnections,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,rj:()=>d.updateProviderConnection,uL:()=>d.uL,ui:()=>d.ui,uv:()=>d.uv});var d=c(94164)},55511:a=>{a.exports=require("crypto")},57339:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>G,patchFetch:()=>F,routeModule:()=>B,serverHooks:()=>E,workAsyncStorage:()=>C,workUnitAsyncStorage:()=>D});var d={};c.r(d),c.d(d,{DELETE:()=>A,GET:()=>y,PUT:()=>z});var e=c(12334),f=c(59399),g=c(8894),h=c(83760),i=c(34958),j=c(970),k=c(261),l=c(28112),m=c(52194),n=c(9410),o=c(68673),p=c(47471),q=c(13093),r=c(98563),s=c(7572),t=c(86439),u=c(33610),v=c(77231),w=c(46820);async function x(a){if(void 0===a)return{hasProxyPoolField:!1,proxyPoolId:null};if(null===a||""===a||"__none__"===a)return{hasProxyPoolField:!0,proxyPoolId:null};let b=String(a).trim();return b?await (0,w.hr)(b)?{hasProxyPoolField:!0,proxyPoolId:b}:{hasProxyPoolField:!0,error:"Proxy pool not found"}:{hasProxyPoolField:!0,proxyPoolId:null}}async function y(a,{params:b}){try{let{id:a}=await b,c=await (0,w.Mc)(a);if(!c)return v.NextResponse.json({error:"Connection not found"},{status:404});let d={...c};return delete d.apiKey,delete d.accessToken,delete d.refreshToken,delete d.idToken,v.NextResponse.json({connection:d})}catch(a){return console.log("Error fetching connection:",a),v.NextResponse.json({error:"Failed to fetch connection"},{status:500})}}async function z(a,{params:b}){try{var c,d,e;let{id:f}=await b,g=await a.json(),{name:h,priority:i,globalPriority:j,defaultModel:k,isActive:l,apiKey:m,testStatus:n,lastError:o,lastErrorAt:p,providerSpecificData:q}=g,r=await (0,w.Mc)(f);if(!r)return v.NextResponse.json({error:"Connection not found"},{status:404});let s=function(a={}){if(!(Object.prototype.hasOwnProperty.call(a,"connectionProxyEnabled")||Object.prototype.hasOwnProperty.call(a,"connectionProxyUrl")||Object.prototype.hasOwnProperty.call(a,"connectionNoProxy")))return{hasAnyProxyField:!1};let b=a?.connectionProxyEnabled===!0,c="string"==typeof a?.connectionProxyUrl?a.connectionProxyUrl.trim():"",d="string"==typeof a?.connectionNoProxy?a.connectionNoProxy.trim():"";return b&&!c?{hasAnyProxyField:!0,error:"Connection proxy URL is required when connection proxy is enabled"}:{hasAnyProxyField:!0,connectionProxyEnabled:b,connectionProxyUrl:c,connectionNoProxy:d}}(g);if(s.error)return v.NextResponse.json({error:s.error},{status:400});let t=await x(g.proxyPoolId);if(t.error)return v.NextResponse.json({error:t.error},{status:400});let u={};void 0!==h&&(u.name=h),void 0!==i&&(u.priority=i),void 0!==j&&(u.globalPriority=j),void 0!==k&&(u.defaultModel=k),void 0!==l&&(u.isActive=l),m&&"apikey"===r.authType&&(u.apiKey=m),void 0!==n&&(u.testStatus=n),void 0!==o&&(u.lastError=o),void 0!==p&&(u.lastErrorAt=p),c=r.providerSpecificData,d=s.hasAnyProxyField,e=t.hasProxyPoolField,(void 0!==c||void 0!==q||d||e)&&(u.providerSpecificData={...r.providerSpecificData||{},...q||{}},s.hasAnyProxyField&&(u.providerSpecificData.connectionProxyEnabled=s.connectionProxyEnabled,u.providerSpecificData.connectionProxyUrl=s.connectionProxyUrl,u.providerSpecificData.connectionNoProxy=s.connectionNoProxy),t.hasProxyPoolField&&(null===t.proxyPoolId?delete u.providerSpecificData.proxyPoolId:u.providerSpecificData.proxyPoolId=t.proxyPoolId));let y={...await (0,w.rj)(f,u)};return delete y.apiKey,delete y.accessToken,delete y.refreshToken,delete y.idToken,v.NextResponse.json({connection:y})}catch(a){return console.log("Error updating connection:",a),v.NextResponse.json({error:"Failed to update connection"},{status:500})}}async function A(a,{params:b}){try{let{id:a}=await b;if(!await (0,w.fK)(a))return v.NextResponse.json({error:"Connection not found"},{status:404});return v.NextResponse.json({message:"Connection deleted successfully"})}catch(a){return console.log("Error deleting connection:",a),v.NextResponse.json({error:"Failed to delete connection"},{status:500})}}let B=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/providers/[id]/route",pathname:"/api/providers/[id]",filename:"route",bundlePath:"app/api/providers/[id]/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/VansRouter/VansRouter/src/app/api/providers/[id]/route.js",nextConfigOutput:"standalone",userland:d,...{}}),{workAsyncStorage:C,workUnitAsyncStorage:D,serverHooks:E}=B;function F(){return(0,g.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:D})}async function G(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),B.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/providers/[id]/route";"/index"===d&&(d="/");let e=await B.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:z,prerenderManifest:A,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(A.dynamicRoutes[I]||A.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!z){let a=!!A.routes[F],b=A.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||B.isDev||z||(L="/index"===(L=F)?"/":L);let M=!0===B.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await B.getIncrementalCache(a,x,A,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>B.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>B.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await B.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await B.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),z&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await B.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},94164:(a,b,c)=>{c.d(b,{CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,Mc:()=>d.Mc,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.P,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP});var d=c(45479)},94735:a=>{a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[1348,4777,9633],()=>b(b.s=57339));module.exports=c})();
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=1949,a.ids=[1949],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},643:a=>{a.exports=require("node:perf_hooks")},1708:a=>{a.exports=require("node:process")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4573:a=>{a.exports=require("node:buffer")},7066:a=>{a.exports=require("node:tty")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14985:a=>{a.exports=require("dns")},16698:a=>{a.exports=require("node:async_hooks")},21820:a=>{a.exports=require("os")},26915:a=>{a.exports=import("playwright-core")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},32467:a=>{a.exports=require("node:http2")},33873:a=>{a.exports=require("path")},34589:a=>{a.exports=require("node:assert")},37067:a=>{a.exports=require("node:http")},37540:a=>{a.exports=require("node:console")},38522:a=>{a.exports=require("node:zlib")},40610:a=>{a.exports=require("node:dns")},40894:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{POST:()=>x});var e=c(12334),f=c(59399),g=c(8894),h=c(83760),i=c(34958),j=c(970),k=c(261),l=c(28112),m=c(52194),n=c(9410),o=c(68673),p=c(47471),q=c(13093),r=c(98563),s=c(7572),t=c(86439),u=c(33610),v=c(77231),w=c(45598);async function x(a,{params:b}){try{let{id:a}=await b,c=await (0,w.F)(a);if("Connection not found"===c.error)return v.NextResponse.json({error:"Connection not found"},{status:404});return v.NextResponse.json({valid:c.valid,error:c.error,refreshed:c.refreshed||!1})}catch(a){return console.log("Error testing connection:",a),v.NextResponse.json({error:"Test failed"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/providers/[id]/test/route",pathname:"/api/providers/[id]/test",filename:"route",bundlePath:"app/api/providers/[id]/test/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/VansRouter/VansRouter/src/app/api/providers/[id]/test/route.js",nextConfigOutput:"standalone",userland:d,...{}}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),y.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/providers/[id]/test/route";"/index"===d&&(d="/");let e=await y.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||y.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===y.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await y.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>y.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>y.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await y.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}},41692:a=>{a.exports=require("node:tls")},41792:a=>{a.exports=require("node:querystring")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},48161:a=>{a.exports=require("node:os")},51455:a=>{a.exports=require("node:fs/promises")},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},55591:a=>{a.exports=require("https")},57075:a=>{a.exports=require("node:stream")},57975:a=>{a.exports=require("node:util")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71553:a=>{a.exports=require("node:dns/promises")},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},73429:a=>{a.exports=require("node:util/types")},73496:a=>{a.exports=require("http2")},74075:a=>{a.exports=require("zlib")},75919:a=>{a.exports=require("node:worker_threads")},76760:a=>{a.exports=require("node:path")},77030:a=>{a.exports=require("node:net")},77598:a=>{a.exports=require("node:crypto")},78474:a=>{a.exports=require("node:events")},79551:a=>{a.exports=require("url")},81630:a=>{a.exports=require("http")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},87997:a=>{a.exports=require("node:timers")},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[1348,4777,3398,9633,9765,8711,3424,5598],()=>b(b.s=40894));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=1949,a.ids=[1949],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},643:a=>{a.exports=require("node:perf_hooks")},1708:a=>{a.exports=require("node:process")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4573:a=>{a.exports=require("node:buffer")},7066:a=>{a.exports=require("node:tty")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14985:a=>{a.exports=require("dns")},16698:a=>{a.exports=require("node:async_hooks")},21820:a=>{a.exports=require("os")},26915:a=>{a.exports=import("playwright-core")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},32467:a=>{a.exports=require("node:http2")},33873:a=>{a.exports=require("path")},34589:a=>{a.exports=require("node:assert")},37067:a=>{a.exports=require("node:http")},37540:a=>{a.exports=require("node:console")},38522:a=>{a.exports=require("node:zlib")},40610:a=>{a.exports=require("node:dns")},41692:a=>{a.exports=require("node:tls")},41792:a=>{a.exports=require("node:querystring")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},48161:a=>{a.exports=require("node:os")},51455:a=>{a.exports=require("node:fs/promises")},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},55591:a=>{a.exports=require("https")},57075:a=>{a.exports=require("node:stream")},57975:a=>{a.exports=require("node:util")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71553:a=>{a.exports=require("node:dns/promises")},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},73429:a=>{a.exports=require("node:util/types")},73496:a=>{a.exports=require("http2")},74075:a=>{a.exports=require("zlib")},75919:a=>{a.exports=require("node:worker_threads")},76760:a=>{a.exports=require("node:path")},77030:a=>{a.exports=require("node:net")},77598:a=>{a.exports=require("node:crypto")},78474:a=>{a.exports=require("node:events")},79551:a=>{a.exports=require("url")},81630:a=>{a.exports=require("http")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},87997:a=>{a.exports=require("node:timers")},91645:a=>{a.exports=require("net")},91669:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{POST:()=>x});var e=c(12334),f=c(59399),g=c(8894),h=c(83760),i=c(34958),j=c(970),k=c(261),l=c(28112),m=c(52194),n=c(9410),o=c(68673),p=c(47471),q=c(13093),r=c(98563),s=c(7572),t=c(86439),u=c(33610),v=c(77231),w=c(45598);async function x(a,{params:b}){try{let{id:a}=await b,c=await (0,w.F)(a);if("Connection not found"===c.error)return v.NextResponse.json({error:"Connection not found"},{status:404});return v.NextResponse.json({valid:c.valid,error:c.error,refreshed:c.refreshed||!1})}catch(a){return console.log("Error testing connection:",a),v.NextResponse.json({error:"Test failed"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/providers/[id]/test/route",pathname:"/api/providers/[id]/test",filename:"route",bundlePath:"app/api/providers/[id]/test/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/VansRouter/VansRouter/src/app/api/providers/[id]/test/route.js",nextConfigOutput:"standalone",userland:d,...{}}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),y.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/providers/[id]/test/route";"/index"===d&&(d="/");let e=await y.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||y.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===y.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await y.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>y.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>y.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await y.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}},94735:a=>{a.exports=require("events")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[1348,4777,3398,9633,9765,8711,3424,5598],()=>b(b.s=91669));module.exports=c})();
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=4444,a.ids=[4444],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},21820:a=>{a.exports=require("os")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},68752:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>H,patchFetch:()=>G,routeModule:()=>C,serverHooks:()=>F,workAsyncStorage:()=>D,workUnitAsyncStorage:()=>E});var d={};c.r(d),c.d(d,{POST:()=>B});var e=c(12334),f=c(59399),g=c(8894),h=c(83760),i=c(34958),j=c(970),k=c(261),l=c(28112),m=c(52194),n=c(9410),o=c(68673),p=c(47471),q=c(13093),r=c(98563),s=c(7572),t=c(86439),u=c(33610),v=c(77231),w=c(94164),x=c(85577),y=c(91253),z=c(79603),A=c(69984);async function B(a,{params:b}){try{let{id:a}=await b,c=await (0,w.Mc)(a);if(!c)return v.NextResponse.json({error:"Connection not found"},{status:404});let d=c.provider,e=(0,y.mq)(d)||(0,y.gb)(d),f=x.Xg[d]||d,g=(0,x.SM)(f),h=`http://127.0.0.1:${process.env.PORT||z.h0.appPort}`;if(e&&0===g.length)try{let b=await fetch(`${h}/api/providers/${a}/models`);b.ok&&(g=((await b.json()).models||[]).map(a=>({id:a.id||a.name,name:a.name||a.id})))}catch{}if(0===g.length)return v.NextResponse.json({error:"No models configured for this provider"},{status:400});let[i,...j]=g,k=i.kind||i.type||"llm",l=await (0,A.P)(`${f}/${i.id}`,k,h),m=[{modelId:i.id,name:i.name||i.id,...l}];if(j.length>0){let a=await Promise.all(j.map(async a=>{let b=await (0,A.P)(`${f}/${a.id}`,a.kind||a.type||"llm",h);return{modelId:a.id,name:a.name||a.id,...b}}));m.push(...a)}return v.NextResponse.json({provider:d,connectionId:a,results:m})}catch(a){return console.log("Error testing models:",a),v.NextResponse.json({error:"Test failed"},{status:500})}}let C=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/providers/[id]/test-models/route",pathname:"/api/providers/[id]/test-models",filename:"route",bundlePath:"app/api/providers/[id]/test-models/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/VansRouter/VansRouter/src/app/api/providers/[id]/test-models/route.js",nextConfigOutput:"standalone",userland:d,...{}}),{workAsyncStorage:D,workUnitAsyncStorage:E,serverHooks:F}=C;function G(){return(0,g.patchFetch)({workAsyncStorage:D,workUnitAsyncStorage:E})}async function H(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),C.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/providers/[id]/test-models/route";"/index"===d&&(d="/");let e=await C.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:z,prerenderManifest:A,routerServerContext:B,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(A.dynamicRoutes[I]||A.routes[F]),K=async()=>((null==B?void 0:B.render404)?await B.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!z){let a=!!A.routes[F],b=A.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||C.isDev||z||(L="/index"===(L=F)?"/":L);let M=!0===C.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==B?void 0:B.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await C.getIncrementalCache(a,x,A,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>C.onRequestError(a,b,d,e,B)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>C.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await C.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,B),b}},k=await C.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),z&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await C.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,B),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79646:a=>{a.exports=require("child_process")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},94735:a=>{a.exports=require("events")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[1348,4777,9633,9765,8711,9984],()=>b(b.s=68752));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=4444,a.ids=[4444],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14223:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>H,patchFetch:()=>G,routeModule:()=>C,serverHooks:()=>F,workAsyncStorage:()=>D,workUnitAsyncStorage:()=>E});var d={};c.r(d),c.d(d,{POST:()=>B});var e=c(12334),f=c(59399),g=c(8894),h=c(83760),i=c(34958),j=c(970),k=c(261),l=c(28112),m=c(52194),n=c(9410),o=c(68673),p=c(47471),q=c(13093),r=c(98563),s=c(7572),t=c(86439),u=c(33610),v=c(77231),w=c(94164),x=c(85577),y=c(91253),z=c(79603),A=c(69984);async function B(a,{params:b}){try{let{id:a}=await b,c=await (0,w.Mc)(a);if(!c)return v.NextResponse.json({error:"Connection not found"},{status:404});let d=c.provider,e=(0,y.mq)(d)||(0,y.gb)(d),f=x.Xg[d]||d,g=(0,x.SM)(f),h=`http://127.0.0.1:${process.env.PORT||z.h0.appPort}`;if(e&&0===g.length)try{let b=await fetch(`${h}/api/providers/${a}/models`);b.ok&&(g=((await b.json()).models||[]).map(a=>({id:a.id||a.name,name:a.name||a.id})))}catch{}if(0===g.length)return v.NextResponse.json({error:"No models configured for this provider"},{status:400});let[i,...j]=g,k=i.kind||i.type||"llm",l=await (0,A.P)(`${f}/${i.id}`,k,h),m=[{modelId:i.id,name:i.name||i.id,...l}];if(j.length>0){let a=await Promise.all(j.map(async a=>{let b=await (0,A.P)(`${f}/${a.id}`,a.kind||a.type||"llm",h);return{modelId:a.id,name:a.name||a.id,...b}}));m.push(...a)}return v.NextResponse.json({provider:d,connectionId:a,results:m})}catch(a){return console.log("Error testing models:",a),v.NextResponse.json({error:"Test failed"},{status:500})}}let C=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/providers/[id]/test-models/route",pathname:"/api/providers/[id]/test-models",filename:"route",bundlePath:"app/api/providers/[id]/test-models/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/VansRouter/VansRouter/src/app/api/providers/[id]/test-models/route.js",nextConfigOutput:"standalone",userland:d,...{}}),{workAsyncStorage:D,workUnitAsyncStorage:E,serverHooks:F}=C;function G(){return(0,g.patchFetch)({workAsyncStorage:D,workUnitAsyncStorage:E})}async function H(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),C.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/providers/[id]/test-models/route";"/index"===d&&(d="/");let e=await C.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:z,prerenderManifest:A,routerServerContext:B,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(A.dynamicRoutes[I]||A.routes[F]),K=async()=>((null==B?void 0:B.render404)?await B.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!z){let a=!!A.routes[F],b=A.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||C.isDev||z||(L="/index"===(L=F)?"/":L);let M=!0===C.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==B?void 0:B.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await C.getIncrementalCache(a,x,A,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>C.onRequestError(a,b,d,e,B)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>C.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await C.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,B),b}},k=await C.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),z&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await C.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,B),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}},21820:a=>{a.exports=require("os")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79646:a=>{a.exports=require("child_process")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},94735:a=>{a.exports=require("events")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[1348,4777,9633,9765,8711,9984],()=>b(b.s=14223));module.exports=c})();
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=9426,a.ids=[9426],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},9749:(a,b,c)=>{c.d(b,{V:()=>p});var d=c(1976),e=c(81476),f=c(77625),g=c(60583),h=c(36418),i=c(987),j=c(81274),k=c(62164),l=c(93836);async function m(a,b,c){if(!(0,i.Gv)(a))throw new f.Ye("Flattened JWS must be an object");if(void 0===a.protected&&void 0===a.header)throw new f.Ye('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==a.protected&&"string"!=typeof a.protected)throw new f.Ye("JWS Protected Header incorrect type");if(void 0===a.payload)throw new f.Ye("JWS Payload missing");if("string"!=typeof a.signature)throw new f.Ye("JWS Signature missing or incorrect type");if(void 0!==a.header&&!(0,i.Gv)(a.header))throw new f.Ye("JWS Unprotected Header incorrect type");let m={};if(a.protected)try{let b=(0,d.D)(a.protected);m=JSON.parse(g.D0.decode(b))}catch{throw new f.Ye("JWS Protected Header is invalid")}if(!(0,i.fz)(m,a.header))throw new f.Ye("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let n={...m,...a.header},o=(0,k.n)(f.Ye,new Map([["b64",!0]]),c?.crit,m,n),p=!0;if(o.has("b64")&&"boolean"!=typeof(p=m.b64))throw new f.Ye('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:q}=n;if("string"!=typeof q||!q)throw new f.Ye('JWS "alg" (Algorithm) Header Parameter missing or invalid');let r=c&&function(a,b){if(void 0!==b&&(!Array.isArray(b)||b.some(a=>"string"!=typeof a)))throw TypeError(`"${a}" option must be an array of strings`);if(b)return new Set(b)}("algorithms",c.algorithms);if(r&&!r.has(q))throw new f.Rb('"alg" (Algorithm) Header Parameter value not allowed');if(p){if("string"!=typeof a.payload)throw new f.Ye("JWS Payload must be a string")}else if("string"!=typeof a.payload&&!(a.payload instanceof Uint8Array))throw new f.Ye("JWS Payload must be a string or an Uint8Array instance");let s=!1;"function"==typeof b&&(b=await b(m,a),s=!0),(0,j.y)(q,b,"verify");let t=(0,g.xW)(void 0!==a.protected?(0,g.lF)(a.protected):new Uint8Array,(0,g.lF)("."),"string"==typeof a.payload?p?(0,g.lF)(a.payload):g.Rd.encode(a.payload):a.payload),u=(0,h.h2)(a.signature,"signature",f.Ye),v=await (0,l.l)(b,q);if(!await (0,e.MX)(q,v,u,t))throw new f.h2;let w={payload:p?(0,h.h2)(a.payload,"payload",f.Ye):"string"==typeof a.payload?g.Rd.encode(a.payload):a.payload};return(void 0!==a.protected&&(w.protectedHeader=m),void 0!==a.header&&(w.unprotectedHeader=a.header),s)?{...w,key:v}:w}async function n(a,b,c){if(a instanceof Uint8Array&&(a=g.D0.decode(a)),"string"!=typeof a)throw new f.Ye("Compact JWS must be a string or Uint8Array");let{0:d,1:e,2:h,length:i}=a.split(".");if(3!==i)throw new f.Ye("Invalid Compact JWS");let j=await m({payload:e,protected:d,signature:h},b,c),k={payload:j.payload,protectedHeader:j.protectedHeader};return"function"==typeof b?{...k,key:j.key}:k}var o=c(73859);async function p(a,b,c){let d=await n(a,b,c);if(d.protectedHeader.crit?.includes("b64")&&!1===d.protectedHeader.b64)throw new f.Dp("JWTs MUST NOT use unencoded payload");let e={payload:(0,o.k6)(d.protectedHeader,d.payload,c),protectedHeader:d.protectedHeader};return"function"==typeof b?{...e,key:d.key}:e}},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},20033:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>H,patchFetch:()=>G,routeModule:()=>C,serverHooks:()=>F,workAsyncStorage:()=>D,workUnitAsyncStorage:()=>E});var d={};c.r(d),c.d(d,{POST:()=>B,runtime:()=>z});var e=c(12334),f=c(59399),g=c(8894),h=c(83760),i=c(34958),j=c(970),k=c(261),l=c(28112),m=c(52194),n=c(9410),o=c(68673),p=c(47471),q=c(13093),r=c(98563),s=c(7572),t=c(86439),u=c(33610),v=c(77231),w=c(97810),x=c(9749),y=c(94164);let z="nodejs";async function A(a){let b=await (0,y.mt)();if(b&&!1===b.requireLogin)return!0;let{cookies:d}=await Promise.all([c.e(1876),c.e(3112)]).then(c.bind(c,31876)),e=await d(),f=e.get("auth_token")?.value;if(!f)return!1;try{return await (0,x.V)(f,function(){let a=process.env.JWT_SECRET;if(!a)throw Error("JWT_SECRET environment variable is required");return new TextEncoder().encode(a)}()),!0}catch{return!1}}async function B(a,{params:b}){try{if(!await A(a))return v.NextResponse.json({error:"Unauthorized"},{status:401});let{name:c}=await b;if(!c)return v.NextResponse.json({error:"Circuit breaker name is required"},{status:400});return(0,w.Nc)(decodeURIComponent(c)),v.NextResponse.json({success:!0,message:`Circuit breaker "${c}" reset to CLOSED`})}catch(a){return console.error("Failed to reset circuit breaker:",a),v.NextResponse.json({error:"Failed to reset circuit breaker"},{status:500})}}let C=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/providers/circuit-breakers/[name]/reset/route",pathname:"/api/providers/circuit-breakers/[name]/reset",filename:"route",bundlePath:"app/api/providers/circuit-breakers/[name]/reset/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/VansRouter/VansRouter/src/app/api/providers/circuit-breakers/[name]/reset/route.js",nextConfigOutput:"standalone",userland:d,...{}}),{workAsyncStorage:D,workUnitAsyncStorage:E,serverHooks:F}=C;function G(){return(0,g.patchFetch)({workAsyncStorage:D,workUnitAsyncStorage:E})}async function H(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),C.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/providers/circuit-breakers/[name]/reset/route";"/index"===d&&(d="/");let e=await C.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:z,prerenderManifest:A,routerServerContext:B,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(A.dynamicRoutes[I]||A.routes[F]),K=async()=>((null==B?void 0:B.render404)?await B.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!z){let a=!!A.routes[F],b=A.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||C.isDev||z||(L="/index"===(L=F)?"/":L);let M=!0===C.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==B?void 0:B.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await C.getIncrementalCache(a,x,A,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>C.onRequestError(a,b,d,e,B)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>C.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await C.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,B),b}},k=await C.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),z&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await C.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,B),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}},21820:a=>{a.exports=require("os")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},94164:(a,b,c)=>{c.d(b,{CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,Mc:()=>d.Mc,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.P,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP});var d=c(45479)},94735:a=>{a.exports=require("events")},97810:(a,b,c)=>{c.d(b,{NO:()=>l,Nc:()=>m,qF:()=>k,rz:()=>h});let d="CLOSED",e="DEGRADED",f="OPEN",g="HALF_OPEN",h=new Set([408,500,502,503,504]);class i{constructor(a,b={}){this.name=a,this.state=d,this.failureCount=0,this.successCount=0,this.lastFailureTime=null,this.lastStateChange=Date.now(),this.openedAt=null,this.resetTimeoutMs=b.resetTimeout||3e4,this.failureThreshold=b.failureThreshold||5,this.failureWindowMs=b.failureWindowMs||0,this.failureTimestamps=[],this.halfOpenRequests=b.halfOpenRequests||1,this.halfOpenRemaining=0,this.maxBackoffMultiplier=b.maxBackoffMultiplier||16,this.backoffEscalationCount=b.backoffEscalationCount||3,this.openProbeCycles=0,this.degradationThreshold=b.degradationThreshold||Math.floor(.6*this.failureThreshold),this.cooldownByKind=b.cooldownByKind||{},this.classifyError=b.classifyError||null,this.isFailure=b.isFailure||null,this.kindThresholds=b.kindThresholds||{},this._transitionHistory=[]}_transition(a){let b=this.state;this.state=a,this.lastStateChange=Date.now(),this._transitionHistory.push({from:b,to:a,at:new Date().toISOString()}),this._transitionHistory.length>20&&this._transitionHistory.shift(),a===f?(this.openedAt=Date.now(),this.halfOpenRemaining=0):a===g?this.halfOpenRemaining=this.halfOpenRequests:a===d&&(this.failureCount=0,this.successCount=0,this.openProbeCycles=0,this.openedAt=null)}canExecute(){let a=Date.now();if(this.state===d||this.state===e)return!0;if(this.state===f){let b=a-(this.openedAt||a),c=Math.min(Math.pow(2,Math.floor(this.openProbeCycles/this.backoffEscalationCount)),this.maxBackoffMultiplier);return b>=this.resetTimeoutMs*c&&(this._transition(g),!0)}return this.state!==g||this.halfOpenRemaining>0&&(this.halfOpenRemaining--,!0)}_onSuccess(){this.successCount++,this.state===g?this._transition(d):this.state===e&&this.successCount>=this.failureThreshold&&this._transition(d)}_pruneFailureTimestamps(){if(!this.failureWindowMs||this.failureWindowMs<=0)return;let a=Date.now()-this.failureWindowMs,b=this.failureTimestamps.findIndex(b=>b>=a);b>0?this.failureTimestamps=this.failureTimestamps.slice(b):-1===b&&(this.failureTimestamps=[])}_countFailuresInWindow(){return!this.failureWindowMs||this.failureWindowMs<=0?this.failureCount:(this._pruneFailureTimestamps(),this.failureTimestamps.length)}_onFailure(a){if(this.isFailure&&!this.isFailure(a))return;if(this.failureCount++,this.lastFailureTime=Date.now(),this.failureWindowMs>0&&(this.failureTimestamps.push(Date.now()),this._pruneFailureTimestamps()),this.state===g){this.openProbeCycles++,this._transition(f);return}if(this.state===f)return;let b=this.classifyError?this.classifyError(a):"transient",c=this.kindThresholds[b];if(c?.immediateOpen)return void this._transition(f);let h=c?.threshold||this.failureThreshold,i=this._countFailuresInWindow();i>=h?this._transition(f):i>=this.degradationThreshold&&this.state===d&&this._transition(e)}getRetryAfterMs(){if(this.state!==f||!this.openedAt)return 0;let a=Math.min(Math.pow(2,Math.floor(this.openProbeCycles/this.backoffEscalationCount)),this.maxBackoffMultiplier),b=this.resetTimeoutMs*a-(Date.now()-(this.openedAt||Date.now()));return b>0?b:0}reset(){this._transition(d)}getStatus(){return{name:this.name,state:this.state,failureCount:this.failureCount,successCount:this.successCount,lastFailureTime:this.lastFailureTime,retryAfterMs:this.getRetryAfterMs(),openedAt:this.openedAt,transitions:this._transitionHistory.slice(-5)}}}let j=new Map;function k(a,b){if(!a)return null;let c=j.get(a);return c?(b&&(null!=b.failureThreshold&&(c.failureThreshold=b.failureThreshold),null!=b.resetTimeout&&(c.resetTimeoutMs=b.resetTimeout),null!=b.degradationThreshold&&(c.degradationThreshold=b.degradationThreshold),b.cooldownByKind&&(c.cooldownByKind=b.cooldownByKind),b.classifyError&&(c.classifyError=b.classifyError),b.isFailure&&(c.isFailure=b.isFailure),b.kindThresholds&&(c.kindThresholds=b.kindThresholds),null!=b.maxBackoffMultiplier&&(c.maxBackoffMultiplier=b.maxBackoffMultiplier),null!=b.backoffEscalationCount&&(c.backoffEscalationCount=b.backoffEscalationCount)),c):b?(c=new i(a,b),j.set(a,c),c):null}function l(){return Array.from(j.values()).map(a=>a.getStatus())}function m(a){let b=j.get(a);b&&b.reset()}}};var b=require("../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[1348,4777,5924,9633],()=>b(b.s=20033));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=9426,a.ids=[9426],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},9749:(a,b,c)=>{c.d(b,{V:()=>p});var d=c(1976),e=c(81476),f=c(77625),g=c(60583),h=c(36418),i=c(987),j=c(81274),k=c(62164),l=c(93836);async function m(a,b,c){if(!(0,i.Gv)(a))throw new f.Ye("Flattened JWS must be an object");if(void 0===a.protected&&void 0===a.header)throw new f.Ye('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==a.protected&&"string"!=typeof a.protected)throw new f.Ye("JWS Protected Header incorrect type");if(void 0===a.payload)throw new f.Ye("JWS Payload missing");if("string"!=typeof a.signature)throw new f.Ye("JWS Signature missing or incorrect type");if(void 0!==a.header&&!(0,i.Gv)(a.header))throw new f.Ye("JWS Unprotected Header incorrect type");let m={};if(a.protected)try{let b=(0,d.D)(a.protected);m=JSON.parse(g.D0.decode(b))}catch{throw new f.Ye("JWS Protected Header is invalid")}if(!(0,i.fz)(m,a.header))throw new f.Ye("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let n={...m,...a.header},o=(0,k.n)(f.Ye,new Map([["b64",!0]]),c?.crit,m,n),p=!0;if(o.has("b64")&&"boolean"!=typeof(p=m.b64))throw new f.Ye('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:q}=n;if("string"!=typeof q||!q)throw new f.Ye('JWS "alg" (Algorithm) Header Parameter missing or invalid');let r=c&&function(a,b){if(void 0!==b&&(!Array.isArray(b)||b.some(a=>"string"!=typeof a)))throw TypeError(`"${a}" option must be an array of strings`);if(b)return new Set(b)}("algorithms",c.algorithms);if(r&&!r.has(q))throw new f.Rb('"alg" (Algorithm) Header Parameter value not allowed');if(p){if("string"!=typeof a.payload)throw new f.Ye("JWS Payload must be a string")}else if("string"!=typeof a.payload&&!(a.payload instanceof Uint8Array))throw new f.Ye("JWS Payload must be a string or an Uint8Array instance");let s=!1;"function"==typeof b&&(b=await b(m,a),s=!0),(0,j.y)(q,b,"verify");let t=(0,g.xW)(void 0!==a.protected?(0,g.lF)(a.protected):new Uint8Array,(0,g.lF)("."),"string"==typeof a.payload?p?(0,g.lF)(a.payload):g.Rd.encode(a.payload):a.payload),u=(0,h.h2)(a.signature,"signature",f.Ye),v=await (0,l.l)(b,q);if(!await (0,e.MX)(q,v,u,t))throw new f.h2;let w={payload:p?(0,h.h2)(a.payload,"payload",f.Ye):"string"==typeof a.payload?g.Rd.encode(a.payload):a.payload};return(void 0!==a.protected&&(w.protectedHeader=m),void 0!==a.header&&(w.unprotectedHeader=a.header),s)?{...w,key:v}:w}async function n(a,b,c){if(a instanceof Uint8Array&&(a=g.D0.decode(a)),"string"!=typeof a)throw new f.Ye("Compact JWS must be a string or Uint8Array");let{0:d,1:e,2:h,length:i}=a.split(".");if(3!==i)throw new f.Ye("Invalid Compact JWS");let j=await m({payload:e,protected:d,signature:h},b,c),k={payload:j.payload,protectedHeader:j.protectedHeader};return"function"==typeof b?{...k,key:j.key}:k}var o=c(73859);async function p(a,b,c){let d=await n(a,b,c);if(d.protectedHeader.crit?.includes("b64")&&!1===d.protectedHeader.b64)throw new f.Dp("JWTs MUST NOT use unencoded payload");let e={payload:(0,o.k6)(d.protectedHeader,d.payload,c),protectedHeader:d.protectedHeader};return"function"==typeof b?{...e,key:d.key}:e}},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},21820:a=>{a.exports=require("os")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},89106:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>H,patchFetch:()=>G,routeModule:()=>C,serverHooks:()=>F,workAsyncStorage:()=>D,workUnitAsyncStorage:()=>E});var d={};c.r(d),c.d(d,{POST:()=>B,runtime:()=>z});var e=c(12334),f=c(59399),g=c(8894),h=c(83760),i=c(34958),j=c(970),k=c(261),l=c(28112),m=c(52194),n=c(9410),o=c(68673),p=c(47471),q=c(13093),r=c(98563),s=c(7572),t=c(86439),u=c(33610),v=c(77231),w=c(97810),x=c(9749),y=c(94164);let z="nodejs";async function A(a){let b=await (0,y.mt)();if(b&&!1===b.requireLogin)return!0;let{cookies:d}=await Promise.all([c.e(1876),c.e(3112)]).then(c.bind(c,31876)),e=await d(),f=e.get("auth_token")?.value;if(!f)return!1;try{return await (0,x.V)(f,function(){let a=process.env.JWT_SECRET;if(!a)throw Error("JWT_SECRET environment variable is required");return new TextEncoder().encode(a)}()),!0}catch{return!1}}async function B(a,{params:b}){try{if(!await A(a))return v.NextResponse.json({error:"Unauthorized"},{status:401});let{name:c}=await b;if(!c)return v.NextResponse.json({error:"Circuit breaker name is required"},{status:400});return(0,w.Nc)(decodeURIComponent(c)),v.NextResponse.json({success:!0,message:`Circuit breaker "${c}" reset to CLOSED`})}catch(a){return console.error("Failed to reset circuit breaker:",a),v.NextResponse.json({error:"Failed to reset circuit breaker"},{status:500})}}let C=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/providers/circuit-breakers/[name]/reset/route",pathname:"/api/providers/circuit-breakers/[name]/reset",filename:"route",bundlePath:"app/api/providers/circuit-breakers/[name]/reset/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/VansRouter/VansRouter/src/app/api/providers/circuit-breakers/[name]/reset/route.js",nextConfigOutput:"standalone",userland:d,...{}}),{workAsyncStorage:D,workUnitAsyncStorage:E,serverHooks:F}=C;function G(){return(0,g.patchFetch)({workAsyncStorage:D,workUnitAsyncStorage:E})}async function H(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),C.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/providers/circuit-breakers/[name]/reset/route";"/index"===d&&(d="/");let e=await C.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:z,prerenderManifest:A,routerServerContext:B,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(A.dynamicRoutes[I]||A.routes[F]),K=async()=>((null==B?void 0:B.render404)?await B.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!z){let a=!!A.routes[F],b=A.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||C.isDev||z||(L="/index"===(L=F)?"/":L);let M=!0===C.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==B?void 0:B.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await C.getIncrementalCache(a,x,A,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>C.onRequestError(a,b,d,e,B)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>C.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await C.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,B),b}},k=await C.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),z&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await C.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,B),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}},94164:(a,b,c)=>{c.d(b,{CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,Mc:()=>d.Mc,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.P,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP});var d=c(45479)},94735:a=>{a.exports=require("events")},97810:(a,b,c)=>{c.d(b,{NO:()=>l,Nc:()=>m,qF:()=>k,rz:()=>h});let d="CLOSED",e="DEGRADED",f="OPEN",g="HALF_OPEN",h=new Set([408,500,502,503,504]);class i{constructor(a,b={}){this.name=a,this.state=d,this.failureCount=0,this.successCount=0,this.lastFailureTime=null,this.lastStateChange=Date.now(),this.openedAt=null,this.resetTimeoutMs=b.resetTimeout||3e4,this.failureThreshold=b.failureThreshold||5,this.failureWindowMs=b.failureWindowMs||0,this.failureTimestamps=[],this.halfOpenRequests=b.halfOpenRequests||1,this.halfOpenRemaining=0,this.maxBackoffMultiplier=b.maxBackoffMultiplier||16,this.backoffEscalationCount=b.backoffEscalationCount||3,this.openProbeCycles=0,this.degradationThreshold=b.degradationThreshold||Math.floor(.6*this.failureThreshold),this.cooldownByKind=b.cooldownByKind||{},this.classifyError=b.classifyError||null,this.isFailure=b.isFailure||null,this.kindThresholds=b.kindThresholds||{},this._transitionHistory=[]}_transition(a){let b=this.state;this.state=a,this.lastStateChange=Date.now(),this._transitionHistory.push({from:b,to:a,at:new Date().toISOString()}),this._transitionHistory.length>20&&this._transitionHistory.shift(),a===f?(this.openedAt=Date.now(),this.halfOpenRemaining=0):a===g?this.halfOpenRemaining=this.halfOpenRequests:a===d&&(this.failureCount=0,this.successCount=0,this.openProbeCycles=0,this.openedAt=null)}canExecute(){let a=Date.now();if(this.state===d||this.state===e)return!0;if(this.state===f){let b=a-(this.openedAt||a),c=Math.min(Math.pow(2,Math.floor(this.openProbeCycles/this.backoffEscalationCount)),this.maxBackoffMultiplier);return b>=this.resetTimeoutMs*c&&(this._transition(g),!0)}return this.state!==g||this.halfOpenRemaining>0&&(this.halfOpenRemaining--,!0)}_onSuccess(){this.successCount++,this.state===g?this._transition(d):this.state===e&&this.successCount>=this.failureThreshold&&this._transition(d)}_pruneFailureTimestamps(){if(!this.failureWindowMs||this.failureWindowMs<=0)return;let a=Date.now()-this.failureWindowMs,b=this.failureTimestamps.findIndex(b=>b>=a);b>0?this.failureTimestamps=this.failureTimestamps.slice(b):-1===b&&(this.failureTimestamps=[])}_countFailuresInWindow(){return!this.failureWindowMs||this.failureWindowMs<=0?this.failureCount:(this._pruneFailureTimestamps(),this.failureTimestamps.length)}_onFailure(a){if(this.isFailure&&!this.isFailure(a))return;if(this.failureCount++,this.lastFailureTime=Date.now(),this.failureWindowMs>0&&(this.failureTimestamps.push(Date.now()),this._pruneFailureTimestamps()),this.state===g){this.openProbeCycles++,this._transition(f);return}if(this.state===f)return;let b=this.classifyError?this.classifyError(a):"transient",c=this.kindThresholds[b];if(c?.immediateOpen)return void this._transition(f);let h=c?.threshold||this.failureThreshold,i=this._countFailuresInWindow();i>=h?this._transition(f):i>=this.degradationThreshold&&this.state===d&&this._transition(e)}getRetryAfterMs(){if(this.state!==f||!this.openedAt)return 0;let a=Math.min(Math.pow(2,Math.floor(this.openProbeCycles/this.backoffEscalationCount)),this.maxBackoffMultiplier),b=this.resetTimeoutMs*a-(Date.now()-(this.openedAt||Date.now()));return b>0?b:0}reset(){this._transition(d)}getStatus(){return{name:this.name,state:this.state,failureCount:this.failureCount,successCount:this.successCount,lastFailureTime:this.lastFailureTime,retryAfterMs:this.getRetryAfterMs(),openedAt:this.openedAt,transitions:this._transitionHistory.slice(-5)}}}let j=new Map;function k(a,b){if(!a)return null;let c=j.get(a);return c?(b&&(null!=b.failureThreshold&&(c.failureThreshold=b.failureThreshold),null!=b.resetTimeout&&(c.resetTimeoutMs=b.resetTimeout),null!=b.degradationThreshold&&(c.degradationThreshold=b.degradationThreshold),b.cooldownByKind&&(c.cooldownByKind=b.cooldownByKind),b.classifyError&&(c.classifyError=b.classifyError),b.isFailure&&(c.isFailure=b.isFailure),b.kindThresholds&&(c.kindThresholds=b.kindThresholds),null!=b.maxBackoffMultiplier&&(c.maxBackoffMultiplier=b.maxBackoffMultiplier),null!=b.backoffEscalationCount&&(c.backoffEscalationCount=b.backoffEscalationCount)),c):b?(c=new i(a,b),j.set(a,c),c):null}function l(){return Array.from(j.values()).map(a=>a.getStatus())}function m(a){let b=j.get(a);b&&b.reset()}}};var b=require("../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[1348,4777,5924,9633],()=>b(b.s=89106));module.exports=c})();
@@ -1 +1 @@
1
- (()=>{var a={};a.id=782,a.ids=[782],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},13674:()=>{},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},56701:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>E,patchFetch:()=>D,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var d={};c.r(d),c.d(d,{GET:()=>y,runtime:()=>x});var e=c(12334),f=c(59399),g=c(8894),h=c(83760),i=c(34958),j=c(970),k=c(261),l=c(28112),m=c(52194),n=c(9410),o=c(68673),p=c(47471),q=c(13093),r=c(98563),s=c(7572),t=c(86439),u=c(33610),v=c(77231),w=c(97810);let x="nodejs";async function y(){try{let a=(0,w.NO)();return v.NextResponse.json({statuses:a})}catch(a){return console.error("Failed to fetch circuit breaker statuses:",a),v.NextResponse.json({error:"Failed to fetch circuit breaker statuses"},{status:500})}}let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/providers/circuit-breakers/route",pathname:"/api/providers/circuit-breakers",filename:"route",bundlePath:"app/api/providers/circuit-breakers/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/VansRouter/VansRouter/src/app/api/providers/circuit-breakers/route.js",nextConfigOutput:"standalone",userland:d,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function D(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function E(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/providers/circuit-breakers/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},95522:()=>{},97810:(a,b,c)=>{"use strict";c.d(b,{NO:()=>l,Nc:()=>m,qF:()=>k,rz:()=>h});let d="CLOSED",e="DEGRADED",f="OPEN",g="HALF_OPEN",h=new Set([408,500,502,503,504]);class i{constructor(a,b={}){this.name=a,this.state=d,this.failureCount=0,this.successCount=0,this.lastFailureTime=null,this.lastStateChange=Date.now(),this.openedAt=null,this.resetTimeoutMs=b.resetTimeout||3e4,this.failureThreshold=b.failureThreshold||5,this.failureWindowMs=b.failureWindowMs||0,this.failureTimestamps=[],this.halfOpenRequests=b.halfOpenRequests||1,this.halfOpenRemaining=0,this.maxBackoffMultiplier=b.maxBackoffMultiplier||16,this.backoffEscalationCount=b.backoffEscalationCount||3,this.openProbeCycles=0,this.degradationThreshold=b.degradationThreshold||Math.floor(.6*this.failureThreshold),this.cooldownByKind=b.cooldownByKind||{},this.classifyError=b.classifyError||null,this.isFailure=b.isFailure||null,this.kindThresholds=b.kindThresholds||{},this._transitionHistory=[]}_transition(a){let b=this.state;this.state=a,this.lastStateChange=Date.now(),this._transitionHistory.push({from:b,to:a,at:new Date().toISOString()}),this._transitionHistory.length>20&&this._transitionHistory.shift(),a===f?(this.openedAt=Date.now(),this.halfOpenRemaining=0):a===g?this.halfOpenRemaining=this.halfOpenRequests:a===d&&(this.failureCount=0,this.successCount=0,this.openProbeCycles=0,this.openedAt=null)}canExecute(){let a=Date.now();if(this.state===d||this.state===e)return!0;if(this.state===f){let b=a-(this.openedAt||a),c=Math.min(Math.pow(2,Math.floor(this.openProbeCycles/this.backoffEscalationCount)),this.maxBackoffMultiplier);return b>=this.resetTimeoutMs*c&&(this._transition(g),!0)}return this.state!==g||this.halfOpenRemaining>0&&(this.halfOpenRemaining--,!0)}_onSuccess(){this.successCount++,this.state===g?this._transition(d):this.state===e&&this.successCount>=this.failureThreshold&&this._transition(d)}_pruneFailureTimestamps(){if(!this.failureWindowMs||this.failureWindowMs<=0)return;let a=Date.now()-this.failureWindowMs,b=this.failureTimestamps.findIndex(b=>b>=a);b>0?this.failureTimestamps=this.failureTimestamps.slice(b):-1===b&&(this.failureTimestamps=[])}_countFailuresInWindow(){return!this.failureWindowMs||this.failureWindowMs<=0?this.failureCount:(this._pruneFailureTimestamps(),this.failureTimestamps.length)}_onFailure(a){if(this.isFailure&&!this.isFailure(a))return;if(this.failureCount++,this.lastFailureTime=Date.now(),this.failureWindowMs>0&&(this.failureTimestamps.push(Date.now()),this._pruneFailureTimestamps()),this.state===g){this.openProbeCycles++,this._transition(f);return}if(this.state===f)return;let b=this.classifyError?this.classifyError(a):"transient",c=this.kindThresholds[b];if(c?.immediateOpen)return void this._transition(f);let h=c?.threshold||this.failureThreshold,i=this._countFailuresInWindow();i>=h?this._transition(f):i>=this.degradationThreshold&&this.state===d&&this._transition(e)}getRetryAfterMs(){if(this.state!==f||!this.openedAt)return 0;let a=Math.min(Math.pow(2,Math.floor(this.openProbeCycles/this.backoffEscalationCount)),this.maxBackoffMultiplier),b=this.resetTimeoutMs*a-(Date.now()-(this.openedAt||Date.now()));return b>0?b:0}reset(){this._transition(d)}getStatus(){return{name:this.name,state:this.state,failureCount:this.failureCount,successCount:this.successCount,lastFailureTime:this.lastFailureTime,retryAfterMs:this.getRetryAfterMs(),openedAt:this.openedAt,transitions:this._transitionHistory.slice(-5)}}}let j=new Map;function k(a,b){if(!a)return null;let c=j.get(a);return c?(b&&(null!=b.failureThreshold&&(c.failureThreshold=b.failureThreshold),null!=b.resetTimeout&&(c.resetTimeoutMs=b.resetTimeout),null!=b.degradationThreshold&&(c.degradationThreshold=b.degradationThreshold),b.cooldownByKind&&(c.cooldownByKind=b.cooldownByKind),b.classifyError&&(c.classifyError=b.classifyError),b.isFailure&&(c.isFailure=b.isFailure),b.kindThresholds&&(c.kindThresholds=b.kindThresholds),null!=b.maxBackoffMultiplier&&(c.maxBackoffMultiplier=b.maxBackoffMultiplier),null!=b.backoffEscalationCount&&(c.backoffEscalationCount=b.backoffEscalationCount)),c):b?(c=new i(a,b),j.set(a,c),c):null}function l(){return Array.from(j.values()).map(a=>a.getStatus())}function m(a){let b=j.get(a);b&&b.reset()}}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[1348,4777],()=>b(b.s=56701));module.exports=c})();
1
+ (()=>{var a={};a.id=782,a.ids=[782],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},7738:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>E,patchFetch:()=>D,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var d={};c.r(d),c.d(d,{GET:()=>y,runtime:()=>x});var e=c(12334),f=c(59399),g=c(8894),h=c(83760),i=c(34958),j=c(970),k=c(261),l=c(28112),m=c(52194),n=c(9410),o=c(68673),p=c(47471),q=c(13093),r=c(98563),s=c(7572),t=c(86439),u=c(33610),v=c(77231),w=c(97810);let x="nodejs";async function y(){try{let a=(0,w.NO)();return v.NextResponse.json({statuses:a})}catch(a){return console.error("Failed to fetch circuit breaker statuses:",a),v.NextResponse.json({error:"Failed to fetch circuit breaker statuses"},{status:500})}}let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/providers/circuit-breakers/route",pathname:"/api/providers/circuit-breakers",filename:"route",bundlePath:"app/api/providers/circuit-breakers/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/VansRouter/VansRouter/src/app/api/providers/circuit-breakers/route.js",nextConfigOutput:"standalone",userland:d,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function D(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function E(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/providers/circuit-breakers/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},13674:()=>{},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},95522:()=>{},97810:(a,b,c)=>{"use strict";c.d(b,{NO:()=>l,Nc:()=>m,qF:()=>k,rz:()=>h});let d="CLOSED",e="DEGRADED",f="OPEN",g="HALF_OPEN",h=new Set([408,500,502,503,504]);class i{constructor(a,b={}){this.name=a,this.state=d,this.failureCount=0,this.successCount=0,this.lastFailureTime=null,this.lastStateChange=Date.now(),this.openedAt=null,this.resetTimeoutMs=b.resetTimeout||3e4,this.failureThreshold=b.failureThreshold||5,this.failureWindowMs=b.failureWindowMs||0,this.failureTimestamps=[],this.halfOpenRequests=b.halfOpenRequests||1,this.halfOpenRemaining=0,this.maxBackoffMultiplier=b.maxBackoffMultiplier||16,this.backoffEscalationCount=b.backoffEscalationCount||3,this.openProbeCycles=0,this.degradationThreshold=b.degradationThreshold||Math.floor(.6*this.failureThreshold),this.cooldownByKind=b.cooldownByKind||{},this.classifyError=b.classifyError||null,this.isFailure=b.isFailure||null,this.kindThresholds=b.kindThresholds||{},this._transitionHistory=[]}_transition(a){let b=this.state;this.state=a,this.lastStateChange=Date.now(),this._transitionHistory.push({from:b,to:a,at:new Date().toISOString()}),this._transitionHistory.length>20&&this._transitionHistory.shift(),a===f?(this.openedAt=Date.now(),this.halfOpenRemaining=0):a===g?this.halfOpenRemaining=this.halfOpenRequests:a===d&&(this.failureCount=0,this.successCount=0,this.openProbeCycles=0,this.openedAt=null)}canExecute(){let a=Date.now();if(this.state===d||this.state===e)return!0;if(this.state===f){let b=a-(this.openedAt||a),c=Math.min(Math.pow(2,Math.floor(this.openProbeCycles/this.backoffEscalationCount)),this.maxBackoffMultiplier);return b>=this.resetTimeoutMs*c&&(this._transition(g),!0)}return this.state!==g||this.halfOpenRemaining>0&&(this.halfOpenRemaining--,!0)}_onSuccess(){this.successCount++,this.state===g?this._transition(d):this.state===e&&this.successCount>=this.failureThreshold&&this._transition(d)}_pruneFailureTimestamps(){if(!this.failureWindowMs||this.failureWindowMs<=0)return;let a=Date.now()-this.failureWindowMs,b=this.failureTimestamps.findIndex(b=>b>=a);b>0?this.failureTimestamps=this.failureTimestamps.slice(b):-1===b&&(this.failureTimestamps=[])}_countFailuresInWindow(){return!this.failureWindowMs||this.failureWindowMs<=0?this.failureCount:(this._pruneFailureTimestamps(),this.failureTimestamps.length)}_onFailure(a){if(this.isFailure&&!this.isFailure(a))return;if(this.failureCount++,this.lastFailureTime=Date.now(),this.failureWindowMs>0&&(this.failureTimestamps.push(Date.now()),this._pruneFailureTimestamps()),this.state===g){this.openProbeCycles++,this._transition(f);return}if(this.state===f)return;let b=this.classifyError?this.classifyError(a):"transient",c=this.kindThresholds[b];if(c?.immediateOpen)return void this._transition(f);let h=c?.threshold||this.failureThreshold,i=this._countFailuresInWindow();i>=h?this._transition(f):i>=this.degradationThreshold&&this.state===d&&this._transition(e)}getRetryAfterMs(){if(this.state!==f||!this.openedAt)return 0;let a=Math.min(Math.pow(2,Math.floor(this.openProbeCycles/this.backoffEscalationCount)),this.maxBackoffMultiplier),b=this.resetTimeoutMs*a-(Date.now()-(this.openedAt||Date.now()));return b>0?b:0}reset(){this._transition(d)}getStatus(){return{name:this.name,state:this.state,failureCount:this.failureCount,successCount:this.successCount,lastFailureTime:this.lastFailureTime,retryAfterMs:this.getRetryAfterMs(),openedAt:this.openedAt,transitions:this._transitionHistory.slice(-5)}}}let j=new Map;function k(a,b){if(!a)return null;let c=j.get(a);return c?(b&&(null!=b.failureThreshold&&(c.failureThreshold=b.failureThreshold),null!=b.resetTimeout&&(c.resetTimeoutMs=b.resetTimeout),null!=b.degradationThreshold&&(c.degradationThreshold=b.degradationThreshold),b.cooldownByKind&&(c.cooldownByKind=b.cooldownByKind),b.classifyError&&(c.classifyError=b.classifyError),b.isFailure&&(c.isFailure=b.isFailure),b.kindThresholds&&(c.kindThresholds=b.kindThresholds),null!=b.maxBackoffMultiplier&&(c.maxBackoffMultiplier=b.maxBackoffMultiplier),null!=b.backoffEscalationCount&&(c.backoffEscalationCount=b.backoffEscalationCount)),c):b?(c=new i(a,b),j.set(a,c),c):null}function l(){return Array.from(j.values()).map(a=>a.getStatus())}function m(a){let b=j.get(a);b&&b.reset()}}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[1348,4777],()=>b(b.s=7738));module.exports=c})();