@sifxprime/krouter 0.5.116 → 0.5.118

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 (918) 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/routes-manifest.json +6 -0
  5. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  6. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -2
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  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.js.nft.json +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/environment/page.js +2 -2
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/environment/page_client-reference-manifest.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +3 -3
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +2 -2
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +2 -2
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  57. package/app/.next-cli-build/server/app/_global-error/page.js +3 -3
  58. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  59. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  60. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  61. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  62. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  63. package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  64. package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
  65. package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
  66. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  67. package/app/.next-cli-build/server/app/_not-found/page.js +2 -2
  68. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  69. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  70. package/app/.next-cli-build/server/app/_not-found.rsc +3 -3
  71. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +3 -3
  72. package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
  73. package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +3 -3
  74. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  75. package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  76. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  77. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  78. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  79. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  80. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  81. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  82. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  83. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  84. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  85. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  86. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  87. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  88. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  89. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  90. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  91. package/app/.next-cli-build/server/app/api/cache/route.js +1 -1
  92. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +3 -3
  93. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  94. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
  95. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  96. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  97. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  98. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +1 -1
  99. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
  100. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  101. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +1 -1
  102. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  103. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  104. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
  105. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  106. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  107. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  108. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  109. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +1 -1
  110. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  111. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +1 -1
  112. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  113. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
  114. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  115. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  116. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  117. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  118. package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  119. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  120. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  121. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  122. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  123. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  124. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  125. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  126. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  127. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  128. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  129. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  130. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  131. package/app/.next-cli-build/server/app/api/import/route.js +1 -1
  132. package/app/.next-cli-build/server/app/api/import/route.js.nft.json +1 -1
  133. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  134. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  135. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  136. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  137. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  138. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  139. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
  140. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +3 -3
  141. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  142. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  143. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  144. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  146. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  148. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  150. package/app/.next-cli-build/server/app/api/mitm/cert/route.js +1 -1
  151. package/app/.next-cli-build/server/app/api/mitm/cert/route.js.nft.json +1 -1
  152. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  153. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  154. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  155. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  156. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  157. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  158. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  159. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  160. package/app/.next-cli-build/server/app/api/models/live/route.js +3 -3
  161. package/app/.next-cli-build/server/app/api/models/live/route.js.nft.json +1 -1
  162. package/app/.next-cli-build/server/app/api/models/live-by-connection/route.js +1 -1
  163. package/app/.next-cli-build/server/app/api/models/live-by-connection/route.js.nft.json +1 -1
  164. package/app/.next-cli-build/server/app/api/models/preview/route.js +1 -1
  165. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  166. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  168. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  170. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  172. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  173. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  174. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  175. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  176. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  177. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  178. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  179. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  180. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  181. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  182. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -0
  183. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -0
  184. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route_client-reference-manifest.js +1 -0
  185. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  186. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  187. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  188. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  189. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  190. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  191. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  192. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  193. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  194. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  196. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  197. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  198. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +2 -2
  199. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  200. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  201. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  202. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  203. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  204. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  205. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  206. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  207. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  208. package/app/.next-cli-build/server/app/api/providers/health/route.js +1 -1
  209. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  210. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  211. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  212. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  213. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  214. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  215. package/app/.next-cli-build/server/app/api/providers/validate/route.js +3 -3
  216. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  217. package/app/.next-cli-build/server/app/api/providers/zenith/log/route.js +1 -1
  218. package/app/.next-cli-build/server/app/api/providers/zenith/route.js +3 -3
  219. package/app/.next-cli-build/server/app/api/providers/zenith/route.js.nft.json +1 -1
  220. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  221. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  222. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  223. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  224. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  225. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  226. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  227. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  228. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  229. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  230. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  231. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  232. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  233. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  234. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  235. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  236. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  237. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  238. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  239. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  240. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  241. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  242. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  243. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  244. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  245. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  246. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  247. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  248. package/app/.next-cli-build/server/app/api/settings/environment/route.js +1 -1
  249. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  250. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  251. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  252. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  253. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  254. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  255. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  256. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  257. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  258. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  259. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  260. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  261. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  262. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  263. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  264. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  265. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  266. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  267. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  268. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  269. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  270. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  271. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  272. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  273. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  274. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  275. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  276. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  277. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  278. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  279. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  280. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  281. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  282. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  283. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  284. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  285. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  286. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  287. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  288. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  289. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  290. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  291. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  292. package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
  293. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  294. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  295. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  296. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  297. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  298. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  299. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  300. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  301. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  302. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  303. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  304. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  305. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  306. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  307. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  308. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  309. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  310. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  311. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  312. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  313. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  314. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  315. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  316. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  317. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  318. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  319. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  320. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  321. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  322. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  323. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  324. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  325. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  326. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  327. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  328. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  329. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  330. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  331. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  332. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  333. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  334. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  335. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  336. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  337. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  338. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  339. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  340. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  341. package/app/.next-cli-build/server/app/callback/page.js +2 -2
  342. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  343. package/app/.next-cli-build/server/app/callback.html +1 -1
  344. package/app/.next-cli-build/server/app/callback.rsc +3 -3
  345. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +3 -3
  346. package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
  347. package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +3 -3
  348. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
  349. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  350. package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
  351. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  352. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +5 -5
  353. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  354. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  355. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  356. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  357. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +5 -5
  358. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  359. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +3 -3
  360. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
  361. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  362. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +5 -5
  363. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  364. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  365. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  366. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  367. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +5 -5
  368. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  369. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +3 -3
  370. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
  371. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  372. package/app/.next-cli-build/server/app/dashboard/combos.rsc +5 -5
  373. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  374. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  375. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  376. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  377. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +5 -5
  378. package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  379. package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +3 -3
  380. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
  381. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  382. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +5 -5
  383. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  384. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  385. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  386. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  387. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +5 -5
  388. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  389. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +3 -3
  390. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
  391. package/app/.next-cli-build/server/app/dashboard/environment.html +1 -1
  392. package/app/.next-cli-build/server/app/dashboard/environment.rsc +5 -5
  393. package/app/.next-cli-build/server/app/dashboard/environment.segments/!KGRhc2hib2FyZCk/dashboard/environment/__PAGE__.segment.rsc +2 -2
  394. package/app/.next-cli-build/server/app/dashboard/environment.segments/!KGRhc2hib2FyZCk/dashboard/environment.segment.rsc +1 -1
  395. package/app/.next-cli-build/server/app/dashboard/environment.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  396. package/app/.next-cli-build/server/app/dashboard/environment.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  397. package/app/.next-cli-build/server/app/dashboard/environment.segments/_full.segment.rsc +5 -5
  398. package/app/.next-cli-build/server/app/dashboard/environment.segments/_head.segment.rsc +1 -1
  399. package/app/.next-cli-build/server/app/dashboard/environment.segments/_index.segment.rsc +3 -3
  400. package/app/.next-cli-build/server/app/dashboard/environment.segments/_tree.segment.rsc +1 -1
  401. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  402. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +5 -5
  403. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  404. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  405. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  406. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  407. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  408. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +5 -5
  409. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  410. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +3 -3
  411. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
  412. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  413. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +5 -5
  414. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  415. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  416. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  417. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  418. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +5 -5
  419. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  420. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +3 -3
  421. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
  422. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  423. package/app/.next-cli-build/server/app/dashboard/profile.rsc +5 -5
  424. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  425. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  426. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  427. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  428. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +5 -5
  429. package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  430. package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +3 -3
  431. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
  432. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  433. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +5 -5
  434. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  435. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  436. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  437. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  438. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  439. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +5 -5
  440. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  441. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +3 -3
  442. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
  443. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  444. package/app/.next-cli-build/server/app/dashboard/providers.rsc +5 -5
  445. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  446. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  447. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  448. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  449. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +5 -5
  450. package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  451. package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +3 -3
  452. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
  453. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  454. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +5 -5
  455. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  456. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  457. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  458. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  459. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +5 -5
  460. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  461. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +3 -3
  462. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
  463. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  464. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +5 -5
  465. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
  466. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +1 -1
  467. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  468. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  469. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +5 -5
  470. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_head.segment.rsc +1 -1
  471. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_index.segment.rsc +3 -3
  472. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
  473. package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  474. package/app/.next-cli-build/server/app/dashboard/quota.rsc +6 -6
  475. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  476. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  477. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  478. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  479. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +6 -6
  480. package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  481. package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +3 -3
  482. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
  483. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
  484. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  485. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  486. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +3 -3
  487. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +3 -3
  488. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  489. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +3 -3
  490. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
  491. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  492. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  493. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  494. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  495. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  496. package/app/.next-cli-build/server/app/dashboard/skills.rsc +5 -5
  497. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  498. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
  499. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  500. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  501. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +5 -5
  502. package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
  503. package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +3 -3
  504. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
  505. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  506. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +5 -5
  507. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
  508. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
  509. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  510. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  511. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +5 -5
  512. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
  513. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +3 -3
  514. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
  515. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  516. package/app/.next-cli-build/server/app/dashboard/translator.rsc +5 -5
  517. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  518. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  519. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  520. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  521. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +5 -5
  522. package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  523. package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +3 -3
  524. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
  525. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  526. package/app/.next-cli-build/server/app/dashboard/usage.rsc +5 -5
  527. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  528. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  529. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  530. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  531. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +5 -5
  532. package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  533. package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +3 -3
  534. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
  535. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  536. package/app/.next-cli-build/server/app/dashboard.rsc +5 -5
  537. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  538. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  539. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  540. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +5 -5
  541. package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
  542. package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +3 -3
  543. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
  544. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  545. package/app/.next-cli-build/server/app/index.html +1 -1
  546. package/app/.next-cli-build/server/app/index.rsc +3 -3
  547. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  548. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +3 -3
  549. package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
  550. package/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +3 -3
  551. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
  552. package/app/.next-cli-build/server/app/landing/page.js +2 -2
  553. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  554. package/app/.next-cli-build/server/app/landing.html +1 -1
  555. package/app/.next-cli-build/server/app/landing.rsc +3 -3
  556. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +3 -3
  557. package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
  558. package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +3 -3
  559. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
  560. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
  561. package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
  562. package/app/.next-cli-build/server/app/login/page.js +2 -2
  563. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  564. package/app/.next-cli-build/server/app/login.html +1 -1
  565. package/app/.next-cli-build/server/app/login.rsc +4 -4
  566. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +4 -4
  567. package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
  568. package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +3 -3
  569. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
  570. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  571. package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
  572. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  573. package/app/.next-cli-build/server/app/page.js +2 -2
  574. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  575. package/app/.next-cli-build/server/app-paths-manifest.json +8 -7
  576. package/app/.next-cli-build/server/chunks/2365.js +1 -1
  577. package/app/.next-cli-build/server/chunks/2966.js +1 -1
  578. package/app/.next-cli-build/server/chunks/412.js +2 -2
  579. package/app/.next-cli-build/server/chunks/4746.js +3 -3
  580. package/app/.next-cli-build/server/chunks/5330.js +1 -1
  581. package/app/.next-cli-build/server/chunks/706.js +1 -1
  582. package/app/.next-cli-build/server/chunks/7153.js +1 -1
  583. package/app/.next-cli-build/server/chunks/7276.js +1 -1
  584. package/app/.next-cli-build/server/chunks/8361.js +11 -5
  585. package/app/.next-cli-build/server/chunks/8895.js +1 -1
  586. package/app/.next-cli-build/server/chunks/9560.js +1 -1
  587. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  588. package/app/.next-cli-build/server/middleware.js +3 -3
  589. package/app/.next-cli-build/server/pages/404.html +1 -1
  590. package/app/.next-cli-build/server/pages/500.html +1 -1
  591. package/app/.next-cli-build/static/chunks/{1321-f50994625d74fe35.js → 1321-8b7894a15a3efdfc.js} +1 -1
  592. package/app/.next-cli-build/static/chunks/{5497-e79c3d75a170780d.js → 5497-f2244eefb993aed1.js} +5 -5
  593. package/app/.next-cli-build/static/chunks/app/_global-error/page-679268ce464db514.js +1 -0
  594. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-679268ce464db514.js +1 -0
  595. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-679268ce464db514.js +1 -0
  596. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-679268ce464db514.js +1 -0
  597. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-679268ce464db514.js +1 -0
  598. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-679268ce464db514.js +1 -0
  599. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-679268ce464db514.js +1 -0
  600. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-679268ce464db514.js +1 -0
  601. package/app/.next-cli-build/static/chunks/app/api/cache/route-679268ce464db514.js +1 -0
  602. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-679268ce464db514.js +1 -0
  603. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-679268ce464db514.js +1 -0
  604. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-679268ce464db514.js +1 -0
  605. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-679268ce464db514.js +1 -0
  606. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-679268ce464db514.js +1 -0
  607. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-679268ce464db514.js +1 -0
  608. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-679268ce464db514.js +1 -0
  609. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-679268ce464db514.js +1 -0
  610. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-679268ce464db514.js +1 -0
  611. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-679268ce464db514.js +1 -0
  612. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-679268ce464db514.js +1 -0
  613. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-679268ce464db514.js +1 -0
  614. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-679268ce464db514.js +1 -0
  615. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-679268ce464db514.js +1 -0
  616. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-679268ce464db514.js +1 -0
  617. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-679268ce464db514.js +1 -0
  618. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-679268ce464db514.js +1 -0
  619. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-679268ce464db514.js +1 -0
  620. package/app/.next-cli-build/static/chunks/app/api/combos/route-679268ce464db514.js +1 -0
  621. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-679268ce464db514.js +1 -0
  622. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-679268ce464db514.js +1 -0
  623. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-679268ce464db514.js +1 -0
  624. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-679268ce464db514.js +1 -0
  625. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-679268ce464db514.js +1 -0
  626. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-679268ce464db514.js +1 -0
  627. package/app/.next-cli-build/static/chunks/app/api/health/route-679268ce464db514.js +1 -0
  628. package/app/.next-cli-build/static/chunks/app/api/import/route-679268ce464db514.js +1 -0
  629. package/app/.next-cli-build/static/chunks/app/api/init/route-679268ce464db514.js +1 -0
  630. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-679268ce464db514.js +1 -0
  631. package/app/.next-cli-build/static/chunks/app/api/keys/route-679268ce464db514.js +1 -0
  632. package/app/.next-cli-build/static/chunks/app/api/locale/route-679268ce464db514.js +1 -0
  633. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-679268ce464db514.js +1 -0
  634. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-679268ce464db514.js +1 -0
  635. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-679268ce464db514.js +1 -0
  636. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-679268ce464db514.js +1 -0
  637. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-679268ce464db514.js +1 -0
  638. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-679268ce464db514.js +1 -0
  639. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-679268ce464db514.js +1 -0
  640. package/app/.next-cli-build/static/chunks/app/api/mitm/cert/route-679268ce464db514.js +1 -0
  641. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-679268ce464db514.js +1 -0
  642. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-679268ce464db514.js +1 -0
  643. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-679268ce464db514.js +1 -0
  644. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-679268ce464db514.js +1 -0
  645. package/app/.next-cli-build/static/chunks/app/api/models/live/route-679268ce464db514.js +1 -0
  646. package/app/.next-cli-build/static/chunks/app/api/models/live-by-connection/route-679268ce464db514.js +1 -0
  647. package/app/.next-cli-build/static/chunks/app/api/models/preview/route-679268ce464db514.js +1 -0
  648. package/app/.next-cli-build/static/chunks/app/api/models/route-679268ce464db514.js +1 -0
  649. package/app/.next-cli-build/static/chunks/app/api/models/test/route-679268ce464db514.js +1 -0
  650. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-679268ce464db514.js +1 -0
  651. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-679268ce464db514.js +1 -0
  652. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-679268ce464db514.js +1 -0
  653. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-679268ce464db514.js +1 -0
  654. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-679268ce464db514.js +1 -0
  655. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-679268ce464db514.js +1 -0
  656. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-679268ce464db514.js +1 -0
  657. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-679268ce464db514.js +1 -0
  658. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-679268ce464db514.js +1 -0
  659. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-679268ce464db514.js +1 -0
  660. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-679268ce464db514.js +1 -0
  661. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-679268ce464db514.js +1 -0
  662. package/app/.next-cli-build/static/chunks/app/api/pricing/route-679268ce464db514.js +1 -0
  663. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-679268ce464db514.js +1 -0
  664. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-679268ce464db514.js +1 -0
  665. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-679268ce464db514.js +1 -0
  666. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-679268ce464db514.js +1 -0
  667. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-679268ce464db514.js +1 -0
  668. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-679268ce464db514.js +1 -0
  669. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-679268ce464db514.js +1 -0
  670. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-679268ce464db514.js +1 -0
  671. package/app/.next-cli-build/static/chunks/app/api/providers/health/route-679268ce464db514.js +1 -0
  672. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-679268ce464db514.js +1 -0
  673. package/app/.next-cli-build/static/chunks/app/api/providers/route-679268ce464db514.js +1 -0
  674. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-679268ce464db514.js +1 -0
  675. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-679268ce464db514.js +1 -0
  676. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-679268ce464db514.js +1 -0
  677. package/app/.next-cli-build/static/chunks/app/api/providers/zenith/log/route-679268ce464db514.js +1 -0
  678. package/app/.next-cli-build/static/chunks/app/api/providers/zenith/route-679268ce464db514.js +1 -0
  679. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-679268ce464db514.js +1 -0
  680. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-679268ce464db514.js +1 -0
  681. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-679268ce464db514.js +1 -0
  682. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-679268ce464db514.js +1 -0
  683. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-679268ce464db514.js +1 -0
  684. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-679268ce464db514.js +1 -0
  685. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-679268ce464db514.js +1 -0
  686. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-679268ce464db514.js +1 -0
  687. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-679268ce464db514.js +1 -0
  688. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-679268ce464db514.js +1 -0
  689. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-679268ce464db514.js +1 -0
  690. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-679268ce464db514.js +1 -0
  691. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-679268ce464db514.js +1 -0
  692. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-679268ce464db514.js +1 -0
  693. package/app/.next-cli-build/static/chunks/app/api/settings/environment/route-679268ce464db514.js +1 -0
  694. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-679268ce464db514.js +1 -0
  695. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-679268ce464db514.js +1 -0
  696. package/app/.next-cli-build/static/chunks/app/api/settings/route-679268ce464db514.js +1 -0
  697. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-679268ce464db514.js +1 -0
  698. package/app/.next-cli-build/static/chunks/app/api/tags/route-679268ce464db514.js +1 -0
  699. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-679268ce464db514.js +1 -0
  700. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-679268ce464db514.js +1 -0
  701. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-679268ce464db514.js +1 -0
  702. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-679268ce464db514.js +1 -0
  703. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-679268ce464db514.js +1 -0
  704. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-679268ce464db514.js +1 -0
  705. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-679268ce464db514.js +1 -0
  706. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-679268ce464db514.js +1 -0
  707. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-679268ce464db514.js +1 -0
  708. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-679268ce464db514.js +1 -0
  709. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-679268ce464db514.js +1 -0
  710. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-679268ce464db514.js +1 -0
  711. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-679268ce464db514.js +1 -0
  712. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-679268ce464db514.js +1 -0
  713. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-679268ce464db514.js +1 -0
  714. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-679268ce464db514.js +1 -0
  715. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-679268ce464db514.js +1 -0
  716. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-679268ce464db514.js +1 -0
  717. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-679268ce464db514.js +1 -0
  718. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-679268ce464db514.js +1 -0
  719. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-679268ce464db514.js +1 -0
  720. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-679268ce464db514.js +1 -0
  721. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-679268ce464db514.js +1 -0
  722. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-679268ce464db514.js +1 -0
  723. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-679268ce464db514.js +1 -0
  724. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-679268ce464db514.js +1 -0
  725. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-679268ce464db514.js +1 -0
  726. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-679268ce464db514.js +1 -0
  727. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-679268ce464db514.js +1 -0
  728. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-679268ce464db514.js +1 -0
  729. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-679268ce464db514.js +1 -0
  730. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-679268ce464db514.js +1 -0
  731. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-679268ce464db514.js +1 -0
  732. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-679268ce464db514.js +1 -0
  733. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-679268ce464db514.js +1 -0
  734. package/app/.next-cli-build/static/chunks/app/api/v1/route-679268ce464db514.js +1 -0
  735. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-679268ce464db514.js +1 -0
  736. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-679268ce464db514.js +1 -0
  737. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-679268ce464db514.js +1 -0
  738. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-679268ce464db514.js +1 -0
  739. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-679268ce464db514.js +1 -0
  740. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-679268ce464db514.js +1 -0
  741. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-679268ce464db514.js +1 -0
  742. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-679268ce464db514.js +1 -0
  743. package/app/.next-cli-build/static/chunks/app/api/version/route-679268ce464db514.js +1 -0
  744. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-679268ce464db514.js +1 -0
  745. package/app/.next-cli-build/static/chunks/app/api/version/update/route-679268ce464db514.js +1 -0
  746. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-679268ce464db514.js +1 -0
  747. package/app/.next-cli-build/static/chunks/app/page-679268ce464db514.js +1 -0
  748. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-679268ce464db514.js +1 -0
  749. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-679268ce464db514.js +1 -0
  750. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-679268ce464db514.js +1 -0
  751. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-679268ce464db514.js +1 -0
  752. package/app/.next-cli-build/static/t8WbESbd6zcF9imJbum2D/_buildManifest.js +1 -0
  753. package/app/cli/.build-home/.krouter/db/backups/{upgrade-0.5.111-to-0.5.112-0.5.112-20260718-000242 → upgrade-0.5.116-to-0.5.117-0.5.117-20260718-032541}/data.sqlite +0 -0
  754. package/app/cli/.build-home/.krouter/db/backups/{upgrade-0.5.112-to-0.5.113-0.5.113-20260718-004430 → upgrade-0.5.117-to-0.5.118-0.5.118-20260718-064958}/data.sqlite +0 -0
  755. package/app/cli/.build-home/.krouter/db/data.sqlite +0 -0
  756. package/app/cli/package.json +1 -1
  757. package/app/package.json +1 -1
  758. package/package.json +1 -1
  759. package/app/.next-cli-build/static/chunks/app/_global-error/page-040a72b86df75150.js +0 -1
  760. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-040a72b86df75150.js +0 -1
  761. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-040a72b86df75150.js +0 -1
  762. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-040a72b86df75150.js +0 -1
  763. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-040a72b86df75150.js +0 -1
  764. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-040a72b86df75150.js +0 -1
  765. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-040a72b86df75150.js +0 -1
  766. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-040a72b86df75150.js +0 -1
  767. package/app/.next-cli-build/static/chunks/app/api/cache/route-040a72b86df75150.js +0 -1
  768. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-040a72b86df75150.js +0 -1
  769. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-040a72b86df75150.js +0 -1
  770. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-040a72b86df75150.js +0 -1
  771. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-040a72b86df75150.js +0 -1
  772. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-040a72b86df75150.js +0 -1
  773. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-040a72b86df75150.js +0 -1
  774. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-040a72b86df75150.js +0 -1
  775. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-040a72b86df75150.js +0 -1
  776. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-040a72b86df75150.js +0 -1
  777. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-040a72b86df75150.js +0 -1
  778. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-040a72b86df75150.js +0 -1
  779. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-040a72b86df75150.js +0 -1
  780. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-040a72b86df75150.js +0 -1
  781. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-040a72b86df75150.js +0 -1
  782. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-040a72b86df75150.js +0 -1
  783. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-040a72b86df75150.js +0 -1
  784. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-040a72b86df75150.js +0 -1
  785. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-040a72b86df75150.js +0 -1
  786. package/app/.next-cli-build/static/chunks/app/api/combos/route-040a72b86df75150.js +0 -1
  787. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-040a72b86df75150.js +0 -1
  788. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-040a72b86df75150.js +0 -1
  789. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-040a72b86df75150.js +0 -1
  790. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-040a72b86df75150.js +0 -1
  791. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-040a72b86df75150.js +0 -1
  792. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-040a72b86df75150.js +0 -1
  793. package/app/.next-cli-build/static/chunks/app/api/health/route-040a72b86df75150.js +0 -1
  794. package/app/.next-cli-build/static/chunks/app/api/import/route-040a72b86df75150.js +0 -1
  795. package/app/.next-cli-build/static/chunks/app/api/init/route-040a72b86df75150.js +0 -1
  796. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-040a72b86df75150.js +0 -1
  797. package/app/.next-cli-build/static/chunks/app/api/keys/route-040a72b86df75150.js +0 -1
  798. package/app/.next-cli-build/static/chunks/app/api/locale/route-040a72b86df75150.js +0 -1
  799. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-040a72b86df75150.js +0 -1
  800. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-040a72b86df75150.js +0 -1
  801. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-040a72b86df75150.js +0 -1
  802. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-040a72b86df75150.js +0 -1
  803. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-040a72b86df75150.js +0 -1
  804. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-040a72b86df75150.js +0 -1
  805. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-040a72b86df75150.js +0 -1
  806. package/app/.next-cli-build/static/chunks/app/api/mitm/cert/route-040a72b86df75150.js +0 -1
  807. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-040a72b86df75150.js +0 -1
  808. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-040a72b86df75150.js +0 -1
  809. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-040a72b86df75150.js +0 -1
  810. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-040a72b86df75150.js +0 -1
  811. package/app/.next-cli-build/static/chunks/app/api/models/live/route-040a72b86df75150.js +0 -1
  812. package/app/.next-cli-build/static/chunks/app/api/models/live-by-connection/route-040a72b86df75150.js +0 -1
  813. package/app/.next-cli-build/static/chunks/app/api/models/preview/route-040a72b86df75150.js +0 -1
  814. package/app/.next-cli-build/static/chunks/app/api/models/route-040a72b86df75150.js +0 -1
  815. package/app/.next-cli-build/static/chunks/app/api/models/test/route-040a72b86df75150.js +0 -1
  816. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-040a72b86df75150.js +0 -1
  817. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-040a72b86df75150.js +0 -1
  818. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-040a72b86df75150.js +0 -1
  819. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-040a72b86df75150.js +0 -1
  820. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-040a72b86df75150.js +0 -1
  821. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-040a72b86df75150.js +0 -1
  822. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-040a72b86df75150.js +0 -1
  823. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-040a72b86df75150.js +0 -1
  824. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-040a72b86df75150.js +0 -1
  825. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-040a72b86df75150.js +0 -1
  826. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-040a72b86df75150.js +0 -1
  827. package/app/.next-cli-build/static/chunks/app/api/pricing/route-040a72b86df75150.js +0 -1
  828. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-040a72b86df75150.js +0 -1
  829. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-040a72b86df75150.js +0 -1
  830. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-040a72b86df75150.js +0 -1
  831. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-040a72b86df75150.js +0 -1
  832. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-040a72b86df75150.js +0 -1
  833. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-040a72b86df75150.js +0 -1
  834. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-040a72b86df75150.js +0 -1
  835. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-040a72b86df75150.js +0 -1
  836. package/app/.next-cli-build/static/chunks/app/api/providers/health/route-040a72b86df75150.js +0 -1
  837. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-040a72b86df75150.js +0 -1
  838. package/app/.next-cli-build/static/chunks/app/api/providers/route-040a72b86df75150.js +0 -1
  839. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-040a72b86df75150.js +0 -1
  840. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-040a72b86df75150.js +0 -1
  841. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-040a72b86df75150.js +0 -1
  842. package/app/.next-cli-build/static/chunks/app/api/providers/zenith/log/route-040a72b86df75150.js +0 -1
  843. package/app/.next-cli-build/static/chunks/app/api/providers/zenith/route-040a72b86df75150.js +0 -1
  844. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-040a72b86df75150.js +0 -1
  845. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-040a72b86df75150.js +0 -1
  846. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-040a72b86df75150.js +0 -1
  847. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-040a72b86df75150.js +0 -1
  848. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-040a72b86df75150.js +0 -1
  849. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-040a72b86df75150.js +0 -1
  850. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-040a72b86df75150.js +0 -1
  851. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-040a72b86df75150.js +0 -1
  852. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-040a72b86df75150.js +0 -1
  853. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-040a72b86df75150.js +0 -1
  854. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-040a72b86df75150.js +0 -1
  855. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-040a72b86df75150.js +0 -1
  856. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-040a72b86df75150.js +0 -1
  857. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-040a72b86df75150.js +0 -1
  858. package/app/.next-cli-build/static/chunks/app/api/settings/environment/route-040a72b86df75150.js +0 -1
  859. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-040a72b86df75150.js +0 -1
  860. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-040a72b86df75150.js +0 -1
  861. package/app/.next-cli-build/static/chunks/app/api/settings/route-040a72b86df75150.js +0 -1
  862. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-040a72b86df75150.js +0 -1
  863. package/app/.next-cli-build/static/chunks/app/api/tags/route-040a72b86df75150.js +0 -1
  864. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-040a72b86df75150.js +0 -1
  865. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-040a72b86df75150.js +0 -1
  866. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-040a72b86df75150.js +0 -1
  867. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-040a72b86df75150.js +0 -1
  868. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-040a72b86df75150.js +0 -1
  869. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-040a72b86df75150.js +0 -1
  870. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-040a72b86df75150.js +0 -1
  871. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-040a72b86df75150.js +0 -1
  872. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-040a72b86df75150.js +0 -1
  873. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-040a72b86df75150.js +0 -1
  874. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-040a72b86df75150.js +0 -1
  875. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-040a72b86df75150.js +0 -1
  876. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-040a72b86df75150.js +0 -1
  877. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-040a72b86df75150.js +0 -1
  878. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-040a72b86df75150.js +0 -1
  879. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-040a72b86df75150.js +0 -1
  880. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-040a72b86df75150.js +0 -1
  881. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-040a72b86df75150.js +0 -1
  882. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-040a72b86df75150.js +0 -1
  883. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-040a72b86df75150.js +0 -1
  884. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-040a72b86df75150.js +0 -1
  885. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-040a72b86df75150.js +0 -1
  886. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-040a72b86df75150.js +0 -1
  887. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-040a72b86df75150.js +0 -1
  888. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-040a72b86df75150.js +0 -1
  889. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-040a72b86df75150.js +0 -1
  890. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-040a72b86df75150.js +0 -1
  891. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-040a72b86df75150.js +0 -1
  892. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-040a72b86df75150.js +0 -1
  893. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-040a72b86df75150.js +0 -1
  894. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-040a72b86df75150.js +0 -1
  895. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-040a72b86df75150.js +0 -1
  896. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-040a72b86df75150.js +0 -1
  897. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-040a72b86df75150.js +0 -1
  898. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-040a72b86df75150.js +0 -1
  899. package/app/.next-cli-build/static/chunks/app/api/v1/route-040a72b86df75150.js +0 -1
  900. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-040a72b86df75150.js +0 -1
  901. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-040a72b86df75150.js +0 -1
  902. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-040a72b86df75150.js +0 -1
  903. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-040a72b86df75150.js +0 -1
  904. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-040a72b86df75150.js +0 -1
  905. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-040a72b86df75150.js +0 -1
  906. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-040a72b86df75150.js +0 -1
  907. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-040a72b86df75150.js +0 -1
  908. package/app/.next-cli-build/static/chunks/app/api/version/route-040a72b86df75150.js +0 -1
  909. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-040a72b86df75150.js +0 -1
  910. package/app/.next-cli-build/static/chunks/app/api/version/update/route-040a72b86df75150.js +0 -1
  911. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-040a72b86df75150.js +0 -1
  912. package/app/.next-cli-build/static/chunks/app/page-040a72b86df75150.js +0 -1
  913. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-040a72b86df75150.js +0 -1
  914. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-040a72b86df75150.js +0 -1
  915. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-040a72b86df75150.js +0 -1
  916. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-040a72b86df75150.js +0 -1
  917. package/app/.next-cli-build/static/zFQIxXYGtONMuiSuQImYg/_buildManifest.js +0 -1
  918. /package/app/.next-cli-build/static/{zFQIxXYGtONMuiSuQImYg → t8WbESbd6zcF9imJbum2D}/_ssgManifest.js +0 -0
@@ -8,5 +8,5 @@ sk-key-only-auto-named`;function w({isOpen:a,provider:b,providerName:c,isCompati
8
8
  "idToken": "eyJhbGc...",
9
9
  "email": "user@example.com"
10
10
  }
11
- ]`;function A({isOpen:a,onClose:b,onSuccess:c}){let[f,g]=(0,e.useState)(""),[h,i]=(0,e.useState)(!1),[k,l]=(0,e.useState)(""),[m,o]=(0,e.useState)(null),p=()=>{h||(g(""),l(""),o(null),b())},q=async()=>{var a;let b;l(""),o(null);let d=f.trim();if(!d)return;try{b=JSON.parse(d)}catch(a){l(`${(0,n.Tl)("Invalid JSON")}: ${a.message}`);return}let e=Array.isArray(a=b)?a:a&&"object"==typeof a?Array.isArray(a.accounts)?a.accounts:[a]:null;if(!e||0===e.length)return void l((0,n.Tl)("No accounts found in input"));i(!0);try{let a=await fetch("/api/oauth/codex/bulk-import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accounts:e})}),b=await a.json();if(!a.ok)return void l(b?.error||`Request failed: ${a.status}`);o(b),b.success>0&&"function"==typeof c&&c()}catch(a){l(a.message||(0,n.Tl)("Request failed"))}finally{i(!1)}},r=m?.results?.filter(a=>!a.ok)||[];return(0,d.jsx)(j.aF,{isOpen:a,title:(0,n.Tl)("Bulk Add Codex Accounts"),onClose:p,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted",children:(0,n.Tl)("Paste an array of codex account JSON objects. Each must include accessToken (and ideally refreshToken, idToken).")}),(0,d.jsx)("textarea",{className:"w-full rounded border border-accent/30 bg-sidebar p-2 text-sm font-mono resize-y min-h-[240px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:z,value:f,onChange:a=>g(a.target.value),disabled:h}),k&&(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:k}),m&&(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:`text-sm font-medium ${m.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",m.success," ",(0,n.Tl)("added"),m.failed>0?`, ✗ ${m.failed} ${(0,n.Tl)("failed")}`:""]}),r.length>0&&(0,d.jsx)("ul",{className:"rounded border border-accent/20 bg-sidebar/50 p-2 text-xs font-mono max-h-40 overflow-y-auto",children:r.map(a=>(0,d.jsxs)("li",{className:"text-red-400",children:["[",a.index,"] ",a.error]},a.index))})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(j.$n,{onClick:q,fullWidth:!0,disabled:h||!f.trim(),children:h?(0,n.Tl)("Importing..."):(0,n.Tl)("Import All")}),(0,d.jsx)(j.$n,{onClick:p,variant:"ghost",fullWidth:!0,disabled:h,children:(0,n.Tl)("Close")})]})]})})}A.propTypes={isOpen:p().bool.isRequired,onClose:p().func.isRequired,onSuccess:p().func};let B={free:{label:"Free",variant:"success",accent:"green"},freetier:{label:"Free tier",variant:"success",accent:"emerald"},oauth:{label:"OAuth",variant:"primary",accent:"primary"},paid:{label:"API key",variant:"default",accent:"neutral"},webcookie:{label:"Cookie",variant:"warning",accent:"amber"}};function C({capabilities:a,connectionCount:b=0,headerIconPath:c}){let[f,g]=(0,e.useState)(!1);if(!a)return null;let k=B[a.tier]||B.paid,l=a.color?`${a.color}10`:"rgba(148,163,184,0.08)",m=a.color?`${a.color}30`:"rgba(148,163,184,0.20)",n=[];return a.links.apiKey&&n.push({href:a.links.apiKey,icon:"key",label:"Get API key"}),a.links.signup&&!a.links.apiKey&&n.push({href:a.links.signup,icon:"person_add",label:"Sign up"}),a.links.homepage&&n.push({href:a.links.homepage,icon:"language",label:"Homepage"}),a.links.docs&&n.push({href:a.links.docs,icon:"menu_book",label:"Docs"}),a.links.pricing&&n.push({href:a.links.pricing,icon:"sell",label:"Pricing"}),(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-4",children:[(0,d.jsxs)(h(),{href:"/dashboard/providers",className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),"Back to Providers"]}),(0,d.jsxs)("div",{className:"relative overflow-hidden rounded-2xl border p-5 sm:p-7",style:{borderColor:m,background:`linear-gradient(140deg, ${l} 0%, transparent 55%)`},children:[(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-5 sm:flex-row sm:items-start sm:justify-between",children:[(0,d.jsxs)("div",{className:"flex min-w-0 items-start gap-4",children:[(0,d.jsx)("div",{className:"flex size-14 shrink-0 items-center justify-center rounded-xl shadow-sm",style:{backgroundColor:a.color?`${a.color}20`:"rgba(148,163,184,0.15)"},children:f||!c?(0,d.jsx)("span",{className:"text-base font-bold",style:{color:a.color||"inherit"},children:a.textIcon||a.id.slice(0,2).toUpperCase()}):(0,d.jsx)(i.default,{src:c,alt:a.name,width:56,height:56,className:"max-h-14 max-w-14 rounded-xl object-contain",sizes:"56px",onError:()=>g(!0)})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsx)("h1",{className:"truncate text-2xl font-semibold tracking-tight sm:text-3xl",children:a.name}),(0,d.jsx)(j.Ex,{variant:k.variant,size:"sm",children:k.label}),a.deprecated&&(0,d.jsx)(j.Ex,{variant:"warning",size:"sm",children:"deprecated"})]}),(0,d.jsxs)("p",{className:"mt-1 text-sm text-text-muted",children:[b," connection",1===b?"":"s",a.serviceKinds.length>1&&(0,d.jsxs)(d.Fragment,{children:[" \xb7 ",a.serviceKinds.join(" \xb7 ")]})]})]})]}),n.length>0&&(0,d.jsx)("div",{className:"flex flex-wrap gap-1.5 sm:justify-end",children:n.map(a=>(0,d.jsxs)("a",{href:a.href,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-full border border-border bg-bg/60 px-2.5 py-1 text-xs text-text-main hover:border-primary hover:text-primary transition-colors backdrop-blur",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:a.icon}),a.label]},a.label))})]}),a.notices.body&&!a.deprecated&&(0,d.jsx)("p",{className:"mt-4 max-w-3xl text-sm leading-relaxed text-text-muted",children:a.notices.body})]}),a.deprecated&&a.notices.warning&&(0,d.jsxs)("div",{className:"flex items-start gap-2 rounded-lg border border-yellow-500/30 bg-yellow-500/10 px-3 py-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined mt-0.5 shrink-0 text-[16px] text-yellow-500",children:"warning"}),(0,d.jsx)("p",{className:"text-xs leading-relaxed text-red-600 dark:text-yellow-400",children:a.notices.warning})]})]})}C.propTypes={capabilities:p().object,connectionCount:p().number,headerIconPath:p().string};let D={oauth:{icon:"lock",label:"Sign in with OAuth",tabLabel:"OAuth"},apikey:{icon:"key",label:"Add API key",tabLabel:"API key"},free:{icon:"bolt",label:"Connect for free",tabLabel:"Free"},cookie:{icon:"cookie",label:"Paste session cookie",tabLabel:"Cookie"},compatible:{icon:"developer_board",label:"Configure endpoint",tabLabel:"Compatible"}};function E({children:a,accentColor:b}){return(0,d.jsx)("div",{className:"rounded-xl border p-5 sm:p-6",style:{borderColor:b?`${b}25`:void 0,background:b?`linear-gradient(160deg, ${b}08, transparent 70%)`:void 0},children:a})}let F={oauth:function({capabilities:a,onOAuth:b,onBulkImport:c}){return(0,d.jsx)(E,{accentColor:a.color,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("h3",{className:"text-base font-semibold",children:["Sign in with ",a.name]}),(0,d.jsx)("p",{className:"mt-0.5 text-sm text-text-muted",children:"One click. We handle the OAuth callback and store your session locally. You can add multiple accounts."})]}),(0,d.jsxs)("div",{className:"flex flex-wrap gap-2 sm:flex-nowrap",children:[a.features.bulkImport&&c&&(0,d.jsx)(j.$n,{size:"md",icon:"playlist_add",variant:"secondary",onClick:c,children:"Bulk import"}),(0,d.jsxs)(j.$n,{size:"md",icon:"lock",onClick:b,children:["Sign in with ",a.name]})]})]})})},apikey:function({capabilities:a,onApiKey:b}){return(0,d.jsx)(E,{accentColor:a.color,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("h3",{className:"text-base font-semibold",children:["Paste your ",a.name," API key"]}),(0,d.jsxs)("p",{className:"mt-0.5 text-sm text-text-muted",children:[a.links.apiKey?(0,d.jsxs)(d.Fragment,{children:["Grab a key from"," ",(0,d.jsx)("a",{href:a.links.apiKey,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline decoration-primary/40 underline-offset-4 hover:decoration-primary",children:new URL(a.links.apiKey).hostname})," ","and paste it in."]}):(0,d.jsx)(d.Fragment,{children:"Paste your API key to connect."})," ","Stored locally, never sent anywhere except ",a.name,"."]})]}),(0,d.jsx)(j.$n,{size:"md",icon:"key",onClick:b,children:"Add API key"})]})})},free:function({capabilities:a,onFree:b}){return(0,d.jsx)(E,{accentColor:a.color||"#10B981",children:(0,d.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"mb-1 flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px] text-green-500",children:"bolt"}),(0,d.jsxs)("h3",{className:"text-base font-semibold",children:[a.name," is free — one click to connect"]})]}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"No key, no signup, no card. Just click connect and start using it."})]}),(0,d.jsx)(j.$n,{size:"md",icon:"add",onClick:b,children:"Connect"})]})})},cookie:function({capabilities:a,onCookie:b}){let[c,f]=(0,e.useState)(!1);return(0,d.jsx)(E,{accentColor:a.color||"#F59E0B",children:(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("h3",{className:"text-base font-semibold",children:"Advanced: connect with session cookie"}),(0,d.jsxs)("p",{className:"mt-0.5 text-sm text-text-muted",children:["For power users. Extract the ",a.name," cookie from your browser and paste it here."]})]}),(0,d.jsx)("button",{type:"button",onClick:()=>f(a=>!a),className:"text-xs text-text-muted hover:text-primary",children:c?"hide":"show"})]}),c&&(0,d.jsxs)("div",{className:"rounded-lg border border-border bg-bg/70 p-3",children:[(0,d.jsxs)("ol",{className:"mb-3 list-decimal space-y-1 pl-4 text-xs text-text-muted",children:[(0,d.jsxs)("li",{children:["Open ",a.name," in your browser and sign in."]}),(0,d.jsx)("li",{children:"Open DevTools → Application → Cookies."}),(0,d.jsx)("li",{children:"Copy the session cookie value."}),(0,d.jsx)("li",{children:"Paste it in the modal."})]}),(0,d.jsx)(j.$n,{size:"sm",icon:"cookie",onClick:b,children:"Paste cookie"})]})]})})},compatible:function({capabilities:a,onCompatible:b}){return(0,d.jsx)(E,{accentColor:a.color,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("h3",{className:"text-base font-semibold",children:"Use as OpenAI-compatible endpoint"}),(0,d.jsx)("p",{className:"mt-0.5 text-sm text-text-muted",children:"Point at any OpenAI-shaped base URL (self-hosted, LiteLLM, custom proxy). Fetches the live model list after you connect."})]}),(0,d.jsx)(j.$n,{size:"md",icon:"developer_board",onClick:b,children:"Configure endpoint"})]})})}};function G({capabilities:a,onOAuth:b,onApiKey:c,onFree:f,onCookie:g,onCompatible:h,onBulkImport:i}){let j=a?.authModes||[],[k,l]=(0,e.useState)(j[0]||"apikey");if(!a||0===j.length)return null;let m=F[k]||F.apikey,n=j.length>1;return(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-3",children:[n&&(0,d.jsx)("div",{className:"flex flex-wrap gap-1 rounded-lg border border-border bg-sidebar/40 p-1",children:j.map(a=>{let b=D[a]||{icon:"add",tabLabel:a},c=a===k;return(0,d.jsxs)("button",{type:"button",onClick:()=>l(a),className:`inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs font-medium transition-colors ${c?"bg-bg text-text-main shadow-sm":"text-text-muted hover:text-text-main"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:b.icon}),b.tabLabel]},a)})}),(0,d.jsx)(m,{capabilities:a,onOAuth:b,onApiKey:c,onFree:f,onCookie:g,onCompatible:h,onBulkImport:i})]})}function H({providerId:a,models:b=[]}){let[c,f]=(0,e.useState)(""),[g,h]=(0,e.useState)({status:"idle"});if((0,e.useCallback)(async()=>{if(a){h(a=>({...a,status:"ok"===a.status?"refreshing":"loading"}));try{let b=new URLSearchParams({providerId:a});c&&b.set("model",c);let d=await fetch(`/api/providers/zenith?${b.toString()}`,{cache:"no-store"}),e=await d.json();e.success?h({status:"ok",winner:e.winner,count:e.count,leaderboard:e.leaderboard}):h({status:"error",error:e.error||"Zenith read failed"})}catch(a){h({status:"error",error:a?.message||"Network error"})}}},[a,c]),"idle"===g.status||"loading"===g.status||"error"===g.status||!g.winner||(g.count??0)<2)return null;let i=g.winner;return(0,d.jsxs)("div",{className:"mb-3 flex flex-wrap items-center gap-2 rounded-lg border border-primary/20 bg-primary/[0.04] px-3 py-2 text-xs",children:[(0,d.jsxs)("span",{className:"inline-flex items-center gap-1 text-primary font-medium",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"route"}),"Next request →"]}),(0,d.jsx)("span",{className:"font-medium text-text-main",children:i.name}),(0,d.jsxs)("span",{className:"rounded-md border border-primary/30 bg-primary/10 px-1.5 py-0.5 font-mono text-[10px] text-primary",children:["Z:",i.finalScore]}),(0,d.jsxs)("span",{className:"text-text-muted",children:["health ",i.healthScore," \xb7 quota \xd7",i.quotaFactor," \xb7 priority +",i.priorityBonus]}),b.length>0&&(0,d.jsxs)("div",{className:"ml-auto flex items-center gap-1.5",children:[(0,d.jsx)("span",{className:"text-text-muted",children:"Model:"}),(0,d.jsxs)("select",{value:c,onChange:a=>f(a.target.value),className:"rounded-md border border-border bg-bg px-1.5 py-0.5 text-[11px] focus:outline-none focus:border-primary",children:[(0,d.jsx)("option",{value:"",children:"(any)"}),b.map(a=>(0,d.jsx)("option",{value:a.id,children:a.id},a.id))]})]})]})}function I({providerId:a}){let[b,c]=(0,e.useState)(!1),[f,g]=(0,e.useState)([]),[h,i]=(0,e.useState)(!1);return(0,e.useCallback)(async()=>{if(a){i(!0);try{let b=await fetch(`/api/providers/zenith/log?providerId=${a}&limit=50`,{cache:"no-store"}),c=await b.json();c.success&&g(c.entries||[])}catch{}finally{i(!1)}}},[a]),(0,d.jsxs)("div",{className:"mt-4 rounded-lg border border-border",children:[(0,d.jsxs)("button",{type:"button",onClick:()=>c(a=>!a),className:"flex w-full items-center justify-between px-3 py-2 text-xs text-text-muted hover:text-text-main",children:[(0,d.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"history"}),"Routing decisions",f.length>0&&(0,d.jsxs)("span",{className:"text-text-muted",children:["(",f.length,")"]})]}),(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:b?"expand_less":"expand_more"})]}),b&&(0,d.jsxs)("div",{className:"max-h-64 overflow-y-auto border-t border-border/50 px-3 py-2",children:[h&&0===f.length&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Loading…"}),!h&&0===f.length&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"No decisions recorded yet. Fire a request through kRouter to populate."}),(0,d.jsx)("ul",{className:"space-y-1",children:f.map((a,b)=>(0,d.jsxs)("li",{className:"flex flex-wrap items-center gap-2 border-b border-border/30 py-1 text-[11px] font-mono last:border-0",children:[(0,d.jsx)("span",{className:"text-text-muted",children:function(a){let b=Math.floor((Date.now()-a)/1e3);if(b<5)return"just now";if(b<60)return`${b}s ago`;let c=Math.floor(b/60);return c<60?`${c}m ago`:`${Math.floor(c/60)}h ago`}(a.at)}),a.model&&(0,d.jsx)("span",{className:"text-text-main",children:a.model}),(0,d.jsx)("span",{className:"text-text-muted",children:"→"}),(0,d.jsx)("span",{className:"text-text-main",children:a.connectionId.slice(0,8)}),null!=a.score&&(0,d.jsxs)("span",{className:"text-primary",children:["Z:",a.score]}),null!=a.latencyMs&&(0,d.jsxs)("span",{className:"text-text-muted",children:[a.latencyMs,"ms"]}),(0,d.jsx)("span",{className:a.success?"text-green-500":"text-red-500",children:a.success?"✓":"✗"})]},`${a.at}-${b}`))})]})]})}function J(){let a,b=(0,f.useParams)(),c=(0,f.useRouter)(),g=b.id,[o,p]=(0,e.useState)([]),[r,t]=(0,e.useState)(!0),[v,z]=(0,e.useState)(null),[B,D]=(0,e.useState)([]),[E,F]=(0,e.useState)(!1),[J,K]=(0,e.useState)(!1),[L,M]=(0,e.useState)(!1),[N,O]=(0,e.useState)(""),[P,Q]=(0,e.useState)(!1),[R,S]=(0,e.useState)(!1),[T,U]=(0,e.useState)(!1),[V,W]=(0,e.useState)(!1),[X,Y]=(0,e.useState)(null),[Z,$]=(0,e.useState)({}),[_,aa]=(0,e.useState)(!1),[ab,ac]=(0,e.useState)({}),[ad,ae]=(0,e.useState)(""),[af,ag]=(0,e.useState)(new Set),[ah,ai]=(0,e.useState)(!1),[aj,ak]=(0,e.useState)(!1),[al,am]=(0,e.useState)([]),[an,ao]=(0,e.useState)("__none__"),[ap,aq]=(0,e.useState)(!1),[ar,as]=(0,e.useState)(null),[at,au]=(0,e.useState)(""),[av,aw]=(0,e.useState)("auto"),[ax,ay]=(0,e.useState)({enabled:!1,connections:{}}),[az,aA]=(0,e.useState)([]),[aB,aC]=(0,e.useState)([]),[aD,aE]=(0,e.useState)(!1),[aF,aG]=(0,e.useState)(""),[aH,aI]=(0,e.useState)(new Set),[aJ,aK]=(0,e.useState)([]),[aL,aM]=(0,e.useState)([]),[aN,aO]=(0,e.useState)(null),[aP,aQ]=(0,e.useState)(!1),[aR,aS]=(0,e.useState)(!1),[aT,aU]=(0,e.useState)(!1),[aV,aW]=(0,e.useState)(null),[aX,aY]=(0,e.useState)({}),[aZ,a$]=(0,e.useState)(null),a_=(0,e.useRef)(!1),[a0,a1]=(0,e.useState)(!1),{copied:a2,copy:a3}=(0,m.C)(),a4=()=>{F(!0)},a5=()=>{bd?a4():(O(""),M(!0))},a6=()=>{O(""),M(!0)},a7=()=>{bd?a5():a6()},a8=v?{id:v.id,name:v.name||("anthropic-compatible"===v.type?"Anthropic Compatible":"OpenAI Compatible"),color:"anthropic-compatible"===v.type?"#D97757":"#10A37F",textIcon:"anthropic-compatible"===v.type?"AC":"OC",apiType:v.apiType,baseUrl:v.baseUrl,type:v.type}:k.zN[g]||k.fg[g]||k.IS[g]||k.nJ[g]||k.br[g],a9=v?null:function(a){let b=k.zN[a]?k.zN:k.fg[a]?k.fg:k.IS[a]?k.IS:k.nJ[a]?k.nJ:k.br[a]?k.br:null;if(!b)return null;let c=b[a],d=b===k.IS&&c?.noAuth?"free":b===k.IS||b===k.zN?"oauth":b===k.br?"cookie":b===k.fg&&c?.noAuth?"free":(b===k.fg||k.nJ,"apikey"),e=Array.isArray(c.authModes)?c.authModes.filter(a=>a!==d):[],f=[d,...e],g=(0,k.mq)(a)||(0,k.gb)(a);g&&!f.includes("compatible")&&f.push("compatible");let h=c.notice||{};return{id:a,name:c.name||a,icon:c.icon,image:c.image,textIcon:c.textIcon,color:c.color,tier:b===k.IS?"free":b===k.nJ?"freetier":b===k.zN?"oauth":b===k.br?"webcookie":c?.noAuth?"free":"paid",authModes:f,links:{homepage:c.website,apiKey:h.apiKeyUrl,signup:h.signupUrl,pricing:c.searchViaChat?.pricingUrl,docs:c.docsUrl},features:{autoPing:"claude"===a&&"oauth"===d,bulkImport:"codex"===a,compatibleModels:g,customModels:!c.passthroughModels,passthroughModels:!!c.passthroughModels,hasRegions:Array.isArray(c.regions)&&c.regions.length>0,hasProviderSpecificData:!!c.hasProviderSpecificData},serviceKinds:c.serviceKinds||["llm"],thinking:c.thinkingConfig||null,notices:{body:h.text,warning:c.deprecationNotice},deprecated:!!c.deprecated,regions:c.regions,defaultRegion:c.defaultRegion,noAuth:!!c.noAuth,_raw:c}}(g),ba="codex"===g?"codexAutoPing":"claudeAutoPing",bb="claude"===g||"codex"===g,bc=a8?.authModes||[],bd=!!k.zN[g]||!!k.IS[g]||bc.includes("oauth"),be=!!k.fg[g]||bc.includes("apikey"),bf=!!k.IS[g]?.noAuth,bg=(0,l.KC)(g),bh=(0,k.wG)(g),bi=(0,k.mq)(g),bj=(0,k.gb)(g),bk=bi||bj,bl=!bk&&bd&&be,bm="xai"===g?"Grok Build OAuth":"OAuth",bn="xai"===g?"xAI API Key":"API Key";k.Q2[g]?.thinkingConfig||k.s9.extended;let bo=bk?g:bh,bp=bk?v?.prefix||g:bh,bq=(0,e.useCallback)(async()=>{try{let a=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bo)}`,{cache:"no-store"}),b=await a.json();a.ok&&aM(b.ids||[])}catch(a){console.log("Error fetching disabled models:",a)}},[bo]),br=async a=>{try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bo,ids:[a]})})).ok&&await bq()}catch(a){console.log("Error disabling model:",a)}},bs=async a=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bo)}&id=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await bq()}catch(a){console.log("Error enabling model:",a)}},bt=async a=>{a.length&&aO({title:"Disable All Models",message:`Disable all ${a.length} model(s)?`,onConfirm:async()=>{aO(null);try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bo,ids:a})})).ok&&await bq()}catch(a){console.log("Error disabling all models:",a)}}})},bu=async()=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bo)}`,{method:"DELETE"})).ok&&await bq()}catch(a){console.log("Error enabling all models:",a)}},bv=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/alias"),b=await a.json();a.ok&&$(b.aliases||{})}catch(a){console.log("Error fetching aliases:",a)}},[]),bw=(0,e.useCallback)(async()=>{try{let[a,b,c,d]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/provider-nodes",{cache:"no-store"}),fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}),fetch("/api/settings",{cache:"no-store"})]),e=await a.json(),f=await b.json(),h=await c.json(),i=d.ok?await d.json():{};if(a.ok){let a=(e.connections||[]).filter(a=>a.provider===g);p(a)}c.ok&&D(h.proxyPools||[]);let j=(i.providerStrategies||{})[g]||{};as(j.fallbackStrategy||null),au(null!=j.stickyRoundRobinLimit?String(j.stickyRoundRobinLimit):"1");let k=(i.providerThinking||{})[g]||{};aw(k.mode||"auto");let l=i[ba]||{};if(ay({enabled:!0===l.enabled,connections:l.connections||{}}),b.ok){let a=(f.nodes||[]).find(a=>a.id===g)||null;if(!a&&bk)for(let b=0;b<3;b+=1){await new Promise(a=>setTimeout(a,150));let b=await fetch("/api/provider-nodes",{cache:"no-store"});if(b.ok&&(a=((await b.json()).nodes||[]).find(a=>a.id===g)||null))break}z(a)}}catch(a){console.log("Error fetching connections:",a)}finally{t(!1)}},[g,bk]),bx=async a=>{try{let b=await fetch(`/api/provider-nodes/${g}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),c=await b.json();b.ok&&(z(c.node),await bw(),U(!1))}catch(a){console.log("Error updating provider node:",a)}},by=async(a,b)=>{try{let c=await fetch("/api/settings",{cache:"no-store"}),d=(c.ok?await c.json():{}).providerStrategies||{},e={};a&&(e.fallbackStrategy=a),"round-robin"===a&&""!==b&&(e.stickyRoundRobinLimit=Number(b)||3);let f={...d};0===Object.keys(e).length?delete f[g]:f[g]=e,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:f})})}catch(a){console.log("Error saving provider strategy:",a)}},bz=async(a,b)=>{ay({...ax,connections:{...ax.connections,[a]:b}});try{let c=await fetch("/api/settings",{cache:"no-store"}),d=(c.ok?await c.json():{})[ba]||{},e={...d,connections:{...d.connections||{},[a]:b}};await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[ba]:e})}),ay({enabled:!0===e.enabled,connections:e.connections})}catch(a){console.log("Error saving auto-ping config:",a),ay(ax)}},[bA,bB]=(0,e.useState)({}),bC=(0,e.useCallback)(async()=>{if(0===o.length)return;let a=o.find(a=>!1!==a.isActive)||o[0];if(a){aE(!0);try{let b=null;try{let c=await fetch(`/api/models/live-by-connection?connectionId=${a.id}`),d=c.ok?await c.json():null;d?.success&&d?.models?.length?b={models:d.models}:d?.code==="no_fetcher"&&(b=null)}catch{}if(!b){let c=await fetch(`/api/providers/${a.id}/models`);b=c.ok?await c.json():null}b?.models?.length&&(aC(b.models),aI(a=>{if(a.size>0)return a;let c=b.models[0]?.id||"",d=c.includes("/")?c.split("/")[0]:"other";return new Set([d])}))}catch{}finally{aE(!1)}}},[g,o]),bD=async(a,b,c=bh)=>{let d=`${c}/${a}`;try{let a=await fetch("/api/models/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:d,alias:b})});if(a.ok)await bv();else{let b=await a.json();alert(b.error||"Failed to set alias")}}catch(a){console.log("Error setting alias:",a)}},bE=async a=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await bv()}catch(a){console.log("Error deleting alias:",a)}},bF=async()=>{if(a0)return;let a=o.find(a=>!1!==a.isActive);if(!a)return void alert((0,n.Tl)("Please add an active Qoder connection first"));a1(!0);try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json();if(!b.ok)return void alert(c.error||(0,n.Tl)("Failed to fetch models"));let d=c.models||[];if(0===d.length)return void alert((0,n.Tl)("No models returned"));let e=0;for(let a of d){let b=a.id||a.name;if(!b)continue;let c=b.replace(/^qoder\//,""),d=`${bo}/${c}`;!Object.values(Z).includes(d)&&(Z[c]||(await bD(c,c,bo),e+=1))}0===e?alert((0,n.Tl)("All models already exist, no new models added")):alert((0,n.Tl)("Successfully added")+` ${e} `+(0,n.Tl)("models"))}catch(a){console.log("Error importing Qoder models:",a),alert((0,n.Tl)("Error fetching models")+": "+a.message)}finally{a1(!1)}},bG=async()=>{if(aR||0===o.length)return;let a=Object.fromEntries(o.map(a=>[a.id,{state:"queued",error:null}]));a_.current=!1,aS(!0),aU(!1),aW(null),aY(a),a$({total:o.length,completed:0,passed:0,failed:0,stopped:!1});let b=0,c=0;try{for(let a=0;a<o.length;a+=1){if(a_.current){a$({total:o.length,completed:a,passed:b,failed:c,stopped:!0});break}let d=o[a];aW(d.id),aY(a=>({...a,[d.id]:{state:"testing",error:null}}));try{let a=await fetch(`/api/providers/${d.id}/test`,{method:"POST"}),e=await a.json(),f=!!e.valid;f?b+=1:c+=1,aY(a=>({...a,[d.id]:{state:f?"success":"failed",error:f?null:e.error||null}}))}catch(a){c+=1,aY(b=>({...b,[d.id]:{state:"failed",error:a.message||"Test failed"}}))}a$({total:o.length,completed:a+1,passed:b,failed:c,stopped:!1}),a<o.length-1&&await new Promise(a=>setTimeout(a,1e3))}}finally{aW(null),aS(!1),aU(!1),a_.current=!1}},bH=async a=>{aO({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{aO(null);try{(await fetch(`/api/providers/${a}`,{method:"DELETE"})).ok&&p(b=>b.filter(b=>b.id!==a))}catch(a){console.log("Error deleting connection:",a)}}})},bI=()=>{bw(),F(!1)},bJ=async a=>{O("");try{let b=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:g,...a})}),c=null;try{c=await b.json()}catch{c=null}if(b.ok){await bw(),M(!1);return}O(c?.error||"Failed to save connection")}catch(a){console.log("Error saving connection:",a),O("Failed to save connection")}},bK=async a=>{try{(await fetch(`/api/providers/${X.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).ok&&(await bw(),S(!1))}catch(a){console.log("Error updating connection:",a)}},bL=async(a,b)=>{try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})})).ok&&p(c=>c.map(c=>c.id===a?{...c,isActive:b}:c))}catch(a){console.log("Error updating connection status:",a)}},bM=async(a,b)=>{let c=[...o];[c[a],c[b]]=[c[b],c[a]],p(c);try{await Promise.all([fetch(`/api/providers/${c[a].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:a})}),fetch(`/api/providers/${c[b].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:b})})])}catch(a){console.log("Error swapping priority:",a),await bw()}},bN=o.filter(a=>al.includes(a.id));o.length>0&&(al.length,o.length),(()=>{if(0===bN.length)return;let a=new Set(bN.map(a=>a.providerSpecificData?.proxyPoolId||"__none__"));if(1===a.size){let b=[...a][0];if("__none__"===b)return;let c=B.find(a=>a.id===b);return c?.name}})();let bO=()=>{ap||W(!1)},bP=async a=>{aq(!0);try{let b=0;for(let{connectionId:c,proxyPoolId:d}of a)try{(await fetch(`/api/providers/${c}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:d})})).ok||(b+=1)}catch(a){console.log("Error applying proxy for",c,a),b+=1}b>0&&alert(`Updated with ${b} failed request(s).`),await bw(),W(!1)}finally{aq(!1)}},bQ=a=>bP(o.map(b=>({connectionId:b.id,proxyPoolId:a}))),bR=(0,d.jsx)("div",{className:"flex min-w-0 flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03]",children:o.map((a,b)=>(0,d.jsx)("div",{className:"flex min-w-0 items-stretch",children:(0,d.jsx)("div",{className:"flex-1 min-w-0",children:(0,d.jsx)(u,{connection:a,proxyPools:B,health:bA[a.id],isOAuth:bd,isFirst:0===b,isLast:b===o.length-1,onMoveUp:()=>bM(b,b-1),onMoveDown:()=>bM(b,b+1),onToggleActive:b=>bL(a.id,b),autoPing:bb&&"oauth"===a.authType?{on:!0===ax.connections[a.id],onToggle:b=>bz(a.id,b)}:null,onUpdateProxy:async b=>{try{(await fetch(`/api/providers/${a.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:b||null})})).ok&&p(c=>c.map(c=>c.id===a.id?{...c,providerSpecificData:{...c.providerSpecificData,proxyPoolId:b||null}}:c))}catch(a){console.log("Error updating proxy:",a)}},onEdit:()=>{Y(a),S(!0)},onDelete:()=>bH(a.id),oneByOneStatus:aX[a.id]||null})})},a.id))}),bS=B.filter(a=>!0===a.isActive),bT=(0,d.jsx)(j.aF,{isOpen:V,onClose:bO,title:`Apply Proxy (${o.length} connections)`,children:(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsxs)("div",{className:"flex flex-col",children:[(0,d.jsxs)("button",{onClick:()=>{let a=B.filter(a=>!0===a.isActive);return 0===a.length?void alert("No active proxy pools available."):bP(o.map((b,c)=>({connectionId:b.id,proxyPoolId:a[c%a.length].id})))},disabled:ap||0===bS.length,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"sync_alt"}),(0,d.jsx)("span",{className:"text-sm text-text-main",children:"One-to-one (rotate)"})]}),(0,d.jsxs)("button",{onClick:()=>bQ(null),disabled:ap,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"link_off"}),(0,d.jsx)("span",{className:"text-sm text-text-main",children:"None (unbind all)"})]}),B.map(a=>(0,d.jsxs)("button",{onClick:()=>bQ(a.id),disabled:ap||!0!==a.isActive,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"lan"}),(0,d.jsx)("span",{className:"truncate text-sm text-text-main",children:a.name}),!0!==a.isActive&&(0,d.jsx)("span",{className:"text-[10px] text-text-muted",children:"(inactive)"})]},a.id))]}),ap&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Applying..."}),(0,d.jsx)(j.$n,{onClick:bO,variant:"ghost",fullWidth:!0,disabled:ap,children:"Cancel"})]})}),bU=async a=>{if(!af.has(a)){ag(b=>new Set([...b,a]));try{let b=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${bo}/${a}`})}),c=await b.json();ac(b=>({...b,[a]:c.ok?"ok":"error"})),c.ok||ae(c.error||"Model not reachable")}catch{ac(b=>({...b,[a]:"error"}))}finally{ag(b=>{let c=new Set(b);return c.delete(a),c})}}},bV=async a=>{if(ah)return;ai(!0);let b=[];try{for(let c=0;c<a.length;c+=5){let d=a.slice(c,c+5);await Promise.all(d.map(async a=>{ag(b=>new Set([...b,a.id]));try{let c=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${bo}/${a.id}`})}),d=await c.json(),e=d.ok?"ok":"error";ac(b=>({...b,[a.id]:e})),d.ok&&b.push(a)}catch{ac(b=>({...b,[a.id]:"error"}))}finally{ag(b=>{let c=new Set(b);return c.delete(a.id),c})}}))}for(let a of b)await bD(a.id,a.id,bo);b.length>0&&document.getElementById("available-models-section")?.scrollIntoView({behavior:"smooth"})}finally{ai(!1)}};if(r)return(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,d.jsx)(j.Qv,{}),(0,d.jsx)(j.Qv,{})]});if(!a8)return(0,d.jsxs)("div",{className:"text-center py-20",children:[(0,d.jsx)("p",{className:"text-text-muted",children:"Provider not found"}),(0,d.jsx)(h(),{href:"/dashboard/providers",className:"text-primary mt-4 inline-block",children:"Back to Providers"})]});let bW=()=>bi&&a8.apiType?"responses"===a8.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":bj?"/providers/anthropic-m.png":`/providers/${a8.id}.png`;return(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:gap-8 sm:px-0",children:[a9?(0,d.jsx)(C,{capabilities:a9,connectionCount:o.length,headerIconPath:_?null:bW()}):(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)(h(),{href:"/dashboard/providers",className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors mb-4",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),"Back to Providers"]}),(0,d.jsxs)("div",{className:"flex min-w-0 items-center gap-3 sm:gap-4",children:[(0,d.jsx)("div",{className:"flex size-12 shrink-0 items-center justify-center rounded-lg",style:{backgroundColor:`${a8.color}15`},children:_?(0,d.jsx)("span",{className:"text-sm font-bold",style:{color:a8.color},children:a8.textIcon||a8.id.slice(0,2).toUpperCase()}):(0,d.jsx)(i.default,{src:bW(),alt:a8.name,width:48,height:48,className:"max-h-12 max-w-12 rounded-lg object-contain",sizes:"48px",onError:()=>aa(!0)})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("h1",{className:"truncate text-2xl font-semibold tracking-tight sm:text-3xl",children:a8.name}),(0,d.jsxs)("p",{className:"text-text-muted",children:[o.length," connection",1===o.length?"":"s"]})]})]})]}),bk&&v&&(0,d.jsx)(j.Zp,{children:(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:bj?"Anthropic Compatible Details":"OpenAI Compatible Details"}),(0,d.jsxs)("p",{className:"break-all text-sm text-text-muted",children:[bj?"Messages API":"responses"===v.apiType?"Responses API":"Chat Completions"," \xb7 ",(v.baseUrl||"").replace(/\/$/,""),"/",bj?"messages":"responses"===v.apiType?"responses":"chat/completions"]})]}),(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,d.jsx)(j.$n,{size:"sm",icon:"add",onClick:()=>{O(""),M(!0)},className:"w-full sm:w-auto",children:"Add API Key"}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>U(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{aO({title:"Delete Compatible Node",message:`Delete this ${bj?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{aO(null);try{(await fetch(`/api/provider-nodes/${g}`,{method:"DELETE"})).ok&&c.push("/dashboard/providers")}catch(a){console.log("Error deleting provider node:",a)}}})},className:"w-full sm:w-auto",children:"Delete"})]})]})}),bf?(0,d.jsx)(j.gw,{providerId:g}):(0,d.jsxs)(j.Zp,{children:[(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:"Connections"}),(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[o.length>0&&B.length>0&&(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"lan",onClick:()=>W(!0),children:"Apply Proxy"}),al.length>0&&(0,d.jsxs)(j.$n,{size:"sm",variant:"danger",icon:"delete",onClick:()=>{let a=al.length;0!==a&&aO({title:`Delete ${a} Connection${a>1?"s":""}`,message:`Delete ${a} connection${a>1?"s":""}? This cannot be undone.`,onConfirm:async()=>{aO(null);let a=0,b=[...al];for(let c of b)try{(await fetch(`/api/providers/${c}`,{method:"DELETE"})).ok||(a+=1)}catch(b){console.log("Error deleting connection:",b),a+=1}p(a=>a.filter(a=>!b.includes(a.id))),am([]),a>0&&alert(`Deleted ${b.length-a} connection(s), ${a} failed.`)}})},children:["Delete Selected (",al.length,")"]}),o.length>0&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"sync",onClick:bG,disabled:aR,children:aR?"Testing Connection One-by-One...":"Test Connection One-by-One"}),aR&&(0,d.jsx)(j.$n,{size:"sm",variant:"ghost",icon:"stop",onClick:()=>{aR&&(a_.current=!0,aU(!0))},disabled:aT,children:aT?"Stopping...":"Stop"})]}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsx)("span",{className:"text-xs text-text-muted font-medium",children:"Round Robin"}),(0,d.jsx)(j.lM,{checked:"round-robin"===ar,onChange:a=>{let b=a?"round-robin":null,c=a?at||"1":at;a&&!at&&au("1"),as(b),by(b,c)}}),"round-robin"===ar&&(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)("span",{className:"text-xs text-text-muted",children:"Sticky:"}),(0,d.jsx)("input",{type:"number",min:1,value:at,onChange:a=>{var b;au(b=a.target.value),by("round-robin",b)},placeholder:"1",className:"w-14 px-2 py-1 text-xs border border-border rounded-md bg-background focus:outline-none focus:border-primary"})]})]})]})]}),0===o.length?a9?(0,d.jsx)(G,{capabilities:a9,onOAuth:a5,onApiKey:a6,onFree:a7,onCookie:()=>K(!0),onCompatible:a6,onBulkImport:()=>Q(!0)}):(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("div",{className:"inline-flex items-center justify-center w-9 h-9 rounded-full bg-primary/10 text-primary shrink-0",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"key"})}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"No connections yet"})]}),(0,d.jsx)(j.$n,{size:"sm",icon:"add",onClick:a7,children:"Add API Key"})]}):(0,d.jsxs)(d.Fragment,{children:[aZ&&(0,d.jsx)("div",{className:"mb-4 rounded-lg border border-black/10 bg-black/[0.02] px-3 py-2 text-xs text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,d.jsxs)("span",{children:["Total: ",aZ.total]}),(0,d.jsxs)("span",{children:["Completed: ",aZ.completed]}),(0,d.jsxs)("span",{children:["Passed: ",aZ.passed]}),(0,d.jsxs)("span",{children:["Failed: ",aZ.failed]}),aZ.stopped&&(0,d.jsx)("span",{className:"text-amber-600 dark:text-amber-400",children:"Stopped"}),aR&&aV&&(0,d.jsxs)("span",{children:["Running: ",o.find(a=>a.id===aV)?.name||aV]})]})}),!bk&&a9&&(0,d.jsx)(H,{providerId:g,models:aB}),bR,!bk&&a9&&(0,d.jsx)(I,{providerId:g}),!bk&&(0,d.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-2 sm:flex",children:["iflow"===g&&(0,d.jsx)(j.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>K(!0),title:"Add connection using browser cookie",className:"w-full sm:w-auto",children:"Cookie"}),"codex"===g&&(0,d.jsx)(j.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>Q(!0),title:(0,n.Tl)("Bulk import codex accounts from JSON"),className:"w-full sm:w-auto",children:(0,n.Tl)("Bulk Add")}),bl?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:a5,className:"w-full sm:w-auto",children:bm}),(0,d.jsx)(j.$n,{size:"sm",icon:"key",onClick:a6,className:"w-full sm:w-auto",children:bn})]}):(0,d.jsx)(j.$n,{size:"sm",icon:"add",onClick:a7,className:"w-full sm:w-auto",children:"Add"})]})]})]}),(0,d.jsxs)(j.Zp,{id:"available-models-section",children:[(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:"Available Models"}),!bk&&(a=[...bg,...aJ.filter(a=>!bg.some(b=>b.id===a.id))].filter(a=>!a.type||"llm"===a.type).map(a=>a.id).filter(a=>!aL.includes(a)),(0,d.jsxs)("div",{className:"flex gap-2",children:[aL.length>0&&(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:bu,children:"Active All"}),a.length>0&&(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>bt(a),children:"Disable All"})]}))]}),!!ad&&(0,d.jsx)("p",{className:"text-xs text-red-500 mb-3 break-words",children:ad}),(()=>{if(bk)return(0,d.jsx)(s,{providerStorageAlias:bo,providerDisplayAlias:bp,modelAliases:Z,copied:a2,onCopy:a3,onSetAlias:bD,onDeleteAlias:bE,connections:o,isAnthropic:bj});let a=[...bg,...aJ.filter(a=>!bg.some(b=>b.id===a.id))].filter(a=>!a.type||"llm"===a.type),b=new Set(aL),c=a.filter(a=>!b.has(a.id)),e=a.filter(a=>b.has(a.id)),f=Object.entries(Z).filter(([a,b])=>{let c=`${bo}/`;if(!b.startsWith(c))return!1;let d=b.slice(c.length);return a8.passthroughModels?!bg.some(a=>a.id===d):!bg.some(a=>a.id===d)&&a===d}).map(([a,b])=>({id:b.slice(`${bo}/`.length),alias:a,fullModel:b}));return(0,d.jsxs)("div",{className:"flex flex-wrap gap-3",children:[f.map(a=>(0,d.jsx)(q,{model:{id:a.id},fullModel:`${bp}/${a.id}`,alias:a.alias,copied:a2,onCopy:a3,onSetAlias:()=>{},onDeleteAlias:()=>bE(a.alias),testStatus:ab[a.id],onTest:o.length>0||bf?()=>bU(a.id):void 0,isTesting:af.has(a.id),isCustom:!0,isFree:!1},a.id)),c.map(a=>{let b=`${bo}/${a.id}`,c=`${g}/${a.id}`,e=Object.entries(Z).find(([,a])=>a===b||a===c)?.[0];return(0,d.jsx)(q,{model:a,fullModel:`${bp}/${a.id}`,alias:e,copied:a2,onCopy:a3,onSetAlias:b=>bD(a.id,b,bo),onDeleteAlias:()=>bE(e),testStatus:ab[a.id],onTest:o.length>0||bf?()=>bU(a.id):void 0,isTesting:af.has(a.id),isFree:a.isFree,onDisable:()=>br(a.id)},a.id)}),(0,d.jsxs)("button",{onClick:()=>ak(!0),className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-primary/40 px-3 py-2 text-xs text-primary transition-colors hover:border-primary hover:bg-primary/5 sm:w-auto",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"add"}),"Add Model"]}),"qoder"===g&&o.some(a=>!1!==a.isActive)&&(0,d.jsxs)("button",{onClick:bF,disabled:a0,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-blue-500/40 px-3 py-2 text-xs text-blue-600 dark:text-blue-400 transition-colors hover:border-blue-500 hover:bg-blue-500/5 sm:w-auto disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:a0?{animation:"spin 1s linear infinite"}:void 0,children:a0?"progress_activity":"download"}),a0?(0,n.Tl)("Fetching..."):(0,n.Tl)("Fetch Qoder Models")]}),(()=>{let a=new Set([...c.map(a=>a.id),...f.map(a=>a.id)]),b=aB.length>0?aB:az,g=aB.length>0,h=b.filter(b=>b.id&&!a.has(b.id)),i=new Set(aB.map(a=>a.id).filter(Boolean)),j=e.filter(a=>a.id&&!i.has(a.id)).map(a=>({...a,dropped:!0})),k=new Set(j.map(a=>a.id)),l=[...h.filter(a=>!k.has(a.id)),...j];if(!aD&&0===l.length&&0===b.length)return null;let m=aF.trim().toLowerCase(),n=m?l.filter(a=>a.id.toLowerCase().includes(m)||a.name&&a.name.toLowerCase().includes(m)):l,o={};n.forEach(a=>{if(!a.id)return;let b=a.id.includes("/")?a.id.split("/")[0]:"models";o[b]||(o[b]=[]),o[b].push(a)});let p=Object.entries(o).sort((a,b)=>b[1].length-a[1].length),q=n.filter(a=>!a.dropped).slice(0,50);return(0,d.jsxs)("div",{className:"w-full mt-4 space-y-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"text-xs font-medium text-text-muted shrink-0",children:aD?"Loading...":`${g?"From API":"Suggested"} (${h.length})${j.length>0?` \xb7 ${j.length} dropped`:""}`}),(0,d.jsxs)("div",{className:"relative flex-1 min-w-0",children:[(0,d.jsx)("span",{className:"material-symbols-outlined absolute left-2.5 top-1/2 -translate-y-1/2 text-[13px] text-text-muted/60 pointer-events-none select-none",children:"search"}),(0,d.jsx)("input",{type:"text",value:aF,onChange:a=>aG(a.target.value),placeholder:"Search models...",className:"w-full h-7 pl-7 pr-7 text-xs rounded-lg bg-bg border border-border-subtle text-text-main placeholder:text-text-muted/50 focus:outline-none focus:ring-1 focus:ring-primary/30 focus:border-primary/40 transition-colors"}),aF&&(0,d.jsx)("button",{onClick:()=>aG(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted/50 hover:text-text-muted transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"close"})})]}),(0,d.jsx)("button",{onClick:bC,disabled:aD,title:"Refresh",className:"shrink-0 h-7 w-7 flex items-center justify-center rounded-lg border border-border-subtle text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors disabled:opacity-40",children:(0,d.jsx)("span",{className:`material-symbols-outlined text-[14px] ${aD?"animate-spin":""}`,children:"refresh"})}),!aD&&q.length>0&&(0,d.jsxs)("button",{onClick:()=>bV(q),disabled:ah,title:`Test up to ${q.length} models and auto-add passing ones`,className:"shrink-0 h-7 flex items-center gap-1 px-2.5 rounded-lg border border-border-subtle text-xs text-text-muted hover:text-green-600 hover:border-green-500/40 hover:bg-green-500/5 transition-colors disabled:opacity-40",children:[(0,d.jsx)("span",{className:`material-symbols-outlined text-[13px] ${ah?"animate-spin":""}`,children:ah?"progress_activity":"play_circle"}),ah?"Testing...":"Test All"]})]}),m&&(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:[n.length," result",1!==n.length?"s":""]}),aD?(0,d.jsxs)("div",{className:"flex items-center gap-2 py-4 text-xs text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[15px] animate-spin",children:"progress_activity"}),"Fetching models from provider API..."]}):0===p.length?m?(0,d.jsxs)("p",{className:"text-xs text-text-muted py-2",children:['No models match "',aF,'"']}):null:(0,d.jsx)("div",{className:"space-y-1",children:p.map(([a,b])=>{let c=aH.has(a),e=b.filter(a=>!a.dropped&&"ok"===ab[a.id]).length,f=b.filter(a=>!a.dropped&&"error"===ab[a.id]).length,g=b.filter(a=>a.dropped).length;return(0,d.jsxs)("div",{className:"rounded-xl border border-border-subtle overflow-hidden",children:[(0,d.jsxs)("button",{onClick:()=>aI(b=>{let c=new Set(b);return c.has(a)?c.delete(a):c.add(a),c}),className:"w-full flex items-center gap-2 px-3 py-2 text-xs bg-bg hover:bg-surface-2/60 transition-colors text-left",children:[(0,d.jsx)("span",{className:"font-semibold text-text-main flex-1",children:a}),e>0&&(0,d.jsxs)("span",{className:"text-green-600 dark:text-green-400 font-medium",children:[e," ✓"]}),f>0&&(0,d.jsxs)("span",{className:"text-red-500 font-medium",children:[f," ✗"]}),g>0&&(0,d.jsxs)("span",{className:"px-1.5 py-0.5 rounded-md bg-amber-500/10 text-amber-600 dark:text-amber-400 text-[10px] font-medium",children:[g," dropped"]}),(0,d.jsx)("span",{className:"px-1.5 py-0.5 rounded-md bg-black/[0.06] dark:bg-white/[0.06] text-text-muted tabular-nums font-medium",children:b.length}),(0,d.jsx)("span",{className:"material-symbols-outlined text-[15px] text-text-muted/60",children:c?"expand_less":"expand_more"})]}),c&&(0,d.jsx)("div",{className:"px-3 pt-2 pb-3 flex flex-wrap gap-1.5 border-t border-border-subtle bg-surface/50",children:b.map(a=>{let b=a.id.includes("/")?a.id.split("/").slice(1).join("/"):a.id,c=ab[a.id],e=af.has(a.id);return a.dropped?(0,d.jsxs)("button",{onClick:async()=>{await bs(a.id),document.getElementById("available-models-section")?.scrollIntoView({behavior:"smooth"})},title:`Recently Dropped — click to restore: ${a.id}`,className:"group flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-amber-400/40 bg-amber-500/5 text-amber-700 dark:text-amber-400 text-xs hover:bg-amber-500/10 hover:border-amber-400/60 transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"history"}),(0,d.jsx)("span",{children:b}),a.contextLength>0&&(0,d.jsxs)("span",{className:"opacity-50 text-[10px] ml-0.5",children:[(a.contextLength/1e3).toFixed(0),"k"]})]},a.id):(0,d.jsxs)("button",{onClick:async()=>{await bD(a.id,a.id,bo),document.getElementById("available-models-section")?.scrollIntoView({behavior:"smooth"})},title:`Add: ${a.name||a.id}`,className:["group flex items-center gap-1 px-2.5 py-1.5 rounded-lg border text-xs transition-colors","ok"===c?"border-green-500/30 bg-green-500/5 text-green-700 dark:text-green-400 hover:bg-green-500/10":"error"===c?"border-red-400/30 bg-red-500/5 text-red-600 dark:text-red-400 hover:bg-red-500/10":"border-border-subtle text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5"].join(" "),children:[e?(0,d.jsx)("span",{className:"material-symbols-outlined text-[12px] animate-spin",children:"progress_activity"}):"ok"===c?(0,d.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"check"}):"error"===c?(0,d.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"close"}):(0,d.jsx)("span",{className:"material-symbols-outlined text-[12px] opacity-50 group-hover:opacity-100",children:"add"}),(0,d.jsx)("span",{children:b}),a.contextLength>0&&(0,d.jsxs)("span",{className:"opacity-40 text-[10px] ml-0.5",children:[(a.contextLength/1e3).toFixed(0),"k"]})]},a.id)})})]},a)})})]})})()]})})()]}),bT,"kiro"===g?(0,d.jsx)(j.Mh,{isOpen:E,providerInfo:a8,onSuccess:bI,onClose:()=>F(!1)}):"cursor"===g?(0,d.jsx)(j.G9,{isOpen:E,onSuccess:bI,onClose:()=>F(!1)}):"gitlab"===g?(0,d.jsx)(j.vj,{isOpen:E,providerInfo:a8,onSuccess:bI,onClose:()=>F(!1)}):(0,d.jsx)(j.LF,{isOpen:E,provider:g,providerInfo:a8,onSuccess:bI,onClose:()=>F(!1)}),"iflow"===g&&(0,d.jsx)(j.vE,{isOpen:J,onSuccess:()=>{bw(),K(!1)},onClose:()=>K(!1)}),(0,d.jsx)(w,{isOpen:L,provider:g,providerName:a8.name,isCompatible:bk,isAnthropic:bj,authType:a8?.authType,authHint:a8?.authHint,website:a8?.website,proxyPools:B,error:N,existingNames:o.map(a=>a.name).filter(Boolean),onSave:bJ,onBulkDone:bw,onClose:()=>{O(""),M(!1)}}),(0,d.jsx)(j.wI,{isOpen:R,connection:X,proxyPools:B,onSave:bK,onClose:()=>S(!1)}),bk&&(0,d.jsx)(x,{isOpen:T,node:v,onSave:bx,onClose:()=>U(!1),isAnthropic:bj}),!bk&&(0,d.jsx)(y,{isOpen:aj,providerAlias:bo,providerDisplayAlias:bp,onSave:async a=>{let b=a8?.passthroughModels?a.split("/").pop():a;await bD(a,b,bo),ak(!1)},onClose:()=>ak(!1)}),"codex"===g&&(0,d.jsx)(A,{isOpen:P,onClose:()=>Q(!1),onSuccess:bw}),(0,d.jsx)(j.uo,{isOpen:aP,onClose:()=>aQ(!1),onConfirm:()=>{(aQ(!1),bd)?a4():a6()},title:"Risk Notice",message:a8?.deprecationNotice,confirmText:"I Understand, Continue",cancelText:"Cancel",variant:"danger"}),(0,d.jsx)(j.uo,{isOpen:!!aN,onClose:()=>aO(null),onConfirm:aN?.onConfirm,title:aN?.title||"Confirm",message:aN?.message,variant:"danger"})]})}G.propTypes={capabilities:p().object,onOAuth:p().func,onApiKey:p().func,onFree:p().func,onCookie:p().func,onCompatible:p().func,onBulkImport:p().func},H.propTypes={providerId:p().string.isRequired,models:p().array},I.propTypes={providerId:p().string.isRequired}},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14985:a=>{"use strict";a.exports=require("dns")},16698:a=>{"use strict";a.exports=require("node:async_hooks")},17891:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/get-segment-param")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},31913:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>O,handler:()=>Q,routeModule:()=>P});var d=c(7553),e=c(84006),f=c(67798),g=c(34775),h=c(99373),i=c(73461),j=c(1020),k=c(26349),l=c(54365),m=c(16023),n=c(14965),o=c(63747),p=c(24235),q=c(23938),r=c(261),s=c(66758),t=c(77243),u=c(26713),v=c(37527),w=c(22820),x=c(88216),y=c(47929),z=c(79551),A=c(71797),B=c(89125),C=c(86439),D=c(77068),E=c(27269),F=c(37525),G=c(61287),H=c(81494),I=c(70722),J=c(70753),K=c(43954),L=c(17891),M={};for(let a in G)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(M[a]=()=>G[a]);c.d(b,M);let N={children:["",{children:["(dashboard)",{children:["dashboard",{children:["providers",{children:["[id]",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,93110)),"/Users/shofiqulislam/9router-master/src/app/(dashboard)/dashboard/providers/[id]/page.js"]}]},{"global-error":[()=>Promise.resolve().then(c.t.bind(c,95547,23)),"next/dist/client/components/builtin/global-error.js"]},["new"]]},{"global-error":[()=>Promise.resolve().then(c.t.bind(c,95547,23)),"next/dist/client/components/builtin/global-error.js"]},[]]},{"global-error":[()=>Promise.resolve().then(c.t.bind(c,95547,23)),"next/dist/client/components/builtin/global-error.js"]},[]]},{layout:[()=>Promise.resolve().then(c.bind(c,30508)),"/Users/shofiqulislam/9router-master/src/app/(dashboard)/layout.js"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,95547,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,55091,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,45270,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,28193,23)),"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await Promise.resolve().then(c.bind(c,70440))).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]},{layout:[()=>Promise.resolve().then(c.bind(c,50385)),"/Users/shofiqulislam/9router-master/src/app/layout.js"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,95547,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,55091,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,45270,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,28193,23)),"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await Promise.resolve().then(c.bind(c,70440))).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]}.children,O={require:c,loadChunk:()=>Promise.resolve()},P=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/(dashboard)/dashboard/providers/[id]/page",pathname:"/dashboard/providers/[id]",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:N},distDir:".next-cli-build",relativeProjectDir:""});async function Q(a,b,d){var M,R,S,T,U;d.requestMeta&&(0,h.setRequestMeta)(a,d.requestMeta),P.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let V=!!(0,h.getRequestMeta)(a,"minimalMode"),W="/(dashboard)/dashboard/providers/[id]/page";"/index"===W&&(W="/");let X=await P.prepare(a,b,{srcPage:W,multiZoneDraftMode:!1});if(!X)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:Y,query:Z,params:$,pageIsDynamic:_,buildManifest:aa,nextFontManifest:ab,reactLoadableManifest:ac,serverActionsManifest:ad,clientReferenceManifest:ae,subresourceIntegrityManifest:af,prerenderManifest:ag,isDraftMode:ah,resolvedPathname:ai,revalidateOnlyGenerated:aj,routerServerContext:ak,nextConfig:al,parsedUrl:am,interceptionRoutePatterns:an,deploymentId:ao,clientAssetToken:ap}=X,aq=(0,r.normalizeAppPath)(W),{isOnDemandRevalidate:ar}=X,as=al.experimental.ppr&&!al.cacheComponents&&(0,K.isInterceptionRouteAppPath)(ai)?null:P.match(ai,ag),at=(null==as?void 0:as.route)??null,au=!!ag.routes[ai],av=a.headers["user-agent"]||"",aw=(0,u.getBotType)(av),ax=(0,q.isHtmlBotRequest)(a),ay=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[t.NEXT_ROUTER_PREFETCH_HEADER],az=(0,h.getRequestMeta)(a,"isRSCRequest")??(0,n.f)(a.headers[t.RSC_HEADER]),aA=(0,s.getIsPossibleServerAction)(a),aB=(0,m.checkIsAppPPREnabled)(al.experimental.ppr),aC=a.headers[y.NEXT_RESUME_STATE_LENGTH_HEADER];if(!(0,h.getRequestMeta)(a,"postponed")&&V&&aB&&aA&&aC&&"string"==typeof aC){let e=parseInt(aC,10),{maxPostponedStateSize:f,maxPostponedStateSizeBytes:g}=(0,E.getMaxPostponedStateSize)(al.experimental.maxPostponedStateSize);if(!isNaN(e)&&e>0){if(e>g)return b.statusCode=413,b.end((0,E.getPostponedStateExceededErrorMessage)(f)),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let i="1 MB",j=(null==(U=al.experimental.serverActions)?void 0:U.bodySizeLimit)??i,k=e+(j!==i?c(95726).parse(j):1048576),l=await (0,E.readBodyWithSizeLimit)(a,k);if(null===l)return b.statusCode=413,b.end("Request body exceeded limit. To configure the body size limit for Server Actions, see: https://nextjs.org/docs/app/api-reference/next-config-js/serverActions#bodysizelimit"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;if(l.length>=e){let b=l.subarray(0,e).toString("utf8");(0,h.addRequestMeta)(a,"postponed",b);let c=l.subarray(e);(0,h.addRequestMeta)(a,"actionBody",c)}else throw Object.defineProperty(Error(`invariant: expected ${e} bytes of postponed state but only received ${l.length} bytes`),"__NEXT_ERROR_CODE",{value:"E979",enumerable:!1,configurable:!0})}}if(!(0,h.getRequestMeta)(a,"postponed")&&aB&&"1"===a.headers[y.NEXT_RESUME_HEADER]&&"POST"===a.method){let{maxPostponedStateSize:c,maxPostponedStateSizeBytes:e}=(0,E.getMaxPostponedStateSize)(al.experimental.maxPostponedStateSize),f=await (0,E.readBodyWithSizeLimit)(a,e);if(null===f)return b.statusCode=413,b.end((0,E.getPostponedStateExceededErrorMessage)(c)),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let g=f.toString("utf8");(0,h.addRequestMeta)(a,"postponed",g)}let aD=!0===P.isDev||!0===al.experimental.exposeTestingApiInProductionBuild,aE=aD&&("1"===a.headers[t.NEXT_INSTANT_PREFETCH_HEADER]||!(0,n.f)(a.headers[t.RSC_HEADER])&&"string"==typeof a.headers.cookie&&a.headers.cookie.includes(t.NEXT_INSTANT_TEST_COOKIE+"=")),aF=(aB||aE)&&((null==(M=ag.routes[aq]??ag.dynamicRoutes[aq])?void 0:M.renderingMode)==="PARTIALLY_STATIC"||aE&&(aD||(null==ak?void 0:ak.experimentalTestProxy)===!0)),aG=aE&&aF,aH=aG&&!0===P.isDev,aI=!1,aJ=aF?(0,h.getRequestMeta)(a,"postponed"):void 0,aK=null==(R=ag.routes[ai])?void 0:R.prefetchDataRoute,aL=aF&&az&&!ay&&!aK;V&&(aL=aL&&!!aJ);let aM=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),aN=(!aw||!aF)&&(!av||(0,q.shouldServeStreamingMetadata)(av,al.htmlLimitedBots)),aO=!!((at||au||ag.routes[aq])&&!(aw&&aF)),aP=aF&&!0===al.cacheComponents,aQ=!0===P.isDev||!aO||"string"==typeof aJ||(aP&&(0,h.getRequestMeta)(a,"onCacheEntryV2")?aL&&!V:aL),aR=!!aw&&aF,aS=(null==at?void 0:at.remainingPrerenderableParams)??[],aT=(null==at?void 0:at.fallback)===null&&((null==(S=at.fallbackRootParams)?void 0:S.length)??0)>0,aU=null;if(!ah&&aO&&!aQ&&!aA&&!aJ&&!aL){let a=as?"string"==typeof(null==at?void 0:at.fallback)?at.fallback:as.source:null;if(!0===al.experimental.partialFallbacks&&a&&(null==at?void 0:at.fallbackRouteParams)&&!aT){if(aS.length>0){let b,c=(b=new Map(aS.map(a=>[a.paramName,a])),a.split("/").map(a=>{let c=(0,L.getSegmentParam)(a);if(!c)return a;let d=b.get(c.paramName);if(!d)return a;let e=null==$?void 0:$[d.paramName];if(!e)return a;let f=Array.isArray(e)?e.map(a=>encodeURIComponent(a)).join("/"):encodeURIComponent(e);return a.replace((0,o.buildDynamicSegmentPlaceholder)(d),f)}).join("/")||"/");aU=c!==a?c:null}}else aU=ai}let aV=aU;!aV&&(P.isDev||aO&&_&&(null==at?void 0:at.fallbackRouteParams)&&!aA)&&(aV=ai),P.isDev||ah||!aO||!az||aL||(0,k.d)(a.headers);let aW={...G,tree:N,handler:Q,routeModule:P,__next_app__:O};ad&&ae&&(0,p.setManifestsSingleton)({page:W,clientReferenceManifest:ae,serverActionsManifest:ad});let aX=a.method||"GET",aY=(0,g.getTracer)(),aZ=aY.getActiveScopeSpan(),a$=!!(null==ak?void 0:ak.isWrappedByNextServer),a_=!0===al.experimental.partialFallbacks&&aS.length>0?(null==at||null==(T=at.fallbackRouteParams)?void 0:T.filter(a=>!aS.some(b=>b.paramName===a.paramName)))??[]:[],a0=async()=>((null==ak?void 0:ak.render404)?await ak.render404(a,b,am,!1):b.end("This page could not be found"),null);try{let k,m=P.getVaryHeader(ai,an);b.setHeader("Vary",m);let n=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return P.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let a=aY.getRootSpanAttributes();if(!a)return;if(a.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${a.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let d=a.get("next.route");if(d){let a=`${aX} ${d}`;c.setAttributes({"next.route":d,"http.route":d,"next.span_name":a}),c.updateName(a),k&&k!==c&&(k.setAttribute("http.route",d),k.updateName(a))}else c.updateName(`${aX} ${W}`)})},p=(0,h.getRequestMeta)(a,"incrementalCache")||await P.getIncrementalCache(a,al,ag,V);null==p||p.resetRequestCache(),globalThis.__incrementalCache=p;let q=async({span:e,postponed:f,fallbackRouteParams:g,forceStaticRender:i})=>{let k={query:Z,params:$,page:aq,sharedContext:{buildId:Y,deploymentId:ao,clientAssetToken:ap},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aW,Component:(0,j.T)(aW),params:$,routeModule:P,page:W,postponed:f,shouldWaitOnAllReady:aR,serveStreamingMetadata:aN,supportsDynamicResponse:"string"==typeof f||aQ,buildManifest:aa,nextFontManifest:ab,reactLoadableManifest:ac,subresourceIntegrityManifest:af,setCacheStatus:null==ak?void 0:ak.setCacheStatus,setIsrStatus:null==ak?void 0:ak.setIsrStatus,setReactDebugChannel:null==ak?void 0:ak.setReactDebugChannel,sendErrorsToBrowser:null==ak?void 0:ak.sendErrorsToBrowser,dir:c(33873).join(process.cwd(),P.relativeProjectDir),isDraftMode:ah,botType:aw,isOnDemandRevalidate:ar,isPossibleServerAction:aA,assetPrefix:al.assetPrefix,nextConfigOutput:al.output,crossOrigin:al.crossOrigin,trailingSlash:al.trailingSlash,images:al.images,previewProps:ag.preview,enableTainting:al.experimental.taint,htmlLimitedBots:al.htmlLimitedBots,reactMaxHeadersLength:al.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:p,cacheLifeProfiles:al.cacheLife,basePath:al.basePath,serverActions:al.experimental.serverActions,logServerFunctions:"object"==typeof al.logging&&!!al.logging.serverFunctions,...aG||aH||aI?{isBuildTimePrerendering:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isDebugDynamicAccesses:aH}:{},cacheComponents:!!al.cacheComponents,experimental:{isRoutePPREnabled:aF,expireTime:al.expireTime,staleTimes:al.experimental.staleTimes,dynamicOnHover:!!al.experimental.dynamicOnHover,optimisticRouting:!!al.experimental.optimisticRouting,inlineCss:!!al.experimental.inlineCss,prefetchInlining:al.experimental.prefetchInlining??!1,authInterrupts:!!al.experimental.authInterrupts,cachedNavigations:!!al.experimental.cachedNavigations,clientTraceMetadata:al.experimental.clientTraceMetadata||[],clientParamParsingOrigins:al.experimental.clientParamParsingOrigins,maxPostponedStateSizeBytes:(0,D.parseMaxPostponedStateSize)(al.experimental.maxPostponedStateSize)},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d,e)=>P.onRequestError(a,b,d,e,ak),err:(0,h.getRequestMeta)(a,"invokeError")}};i&&(k.renderOpts.supportsDynamicResponse=!1);let l=await n(e,k),{metadata:m}=l,{cacheControl:o,headers:q={},fetchTags:r,fetchMetrics:s}=m;if(r&&(q[y.NEXT_CACHE_TAGS_HEADER]=r),a.fetchMetrics=s,aO&&(null==o?void 0:o.revalidate)===0&&!P.isDev&&!aF){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${ai}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""}
12
- see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:v.CachedRouteKind.APP_PAGE,html:l,headers:q,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:o}},r=async({hasResolved:c,previousCacheEntry:g,isRevalidating:i,span:j,forceStaticRender:k=!1})=>{let l=!1===P.isDev,m=c||b.writableEnded;try{var n;let f;if(ar&&aj&&!g&&!V)return(null==ak?void 0:ak.render404)?await ak.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(at&&(f=(0,w.parseFallbackField)(at.fallback)),!0===al.experimental.partialFallbacks&&(null==at?void 0:at.fallback)===null&&!aT&&aS.length>0&&(f=w.FallbackMode.PRERENDER),f===w.FallbackMode.PRERENDER&&(0,u.isBot)(av)&&(!aF||ax)&&(f=w.FallbackMode.BLOCKING_STATIC_RENDER),(null==g?void 0:g.isStale)===-1&&(ar=!0),ar&&(f!==w.FallbackMode.NOT_FOUND||g)&&(f=w.FallbackMode.BLOCKING_STATIC_RENDER),!V&&f!==w.FallbackMode.BLOCKING_STATIC_RENDER&&aV&&!m&&!ah&&_&&(l||!au)){if((l||at)&&f===w.FallbackMode.NOT_FOUND){if(al.adapterPath)return await a0();throw new C.NoFallbackError}if(aF&&(al.cacheComponents?!aL:!az)){let b=l&&"string"==typeof(null==at?void 0:at.fallback)?at.fallback:aq,f=(l||aG)&&(null==at?void 0:at.fallbackRouteParams)?(0,o.createOpaqueFallbackRouteParams)(at.fallbackRouteParams):aI?(0,o.getFallbackRouteParams)(aq,P):null;aG&&f&&(0,h.addRequestMeta)(a,"fallbackParams",f);let g=await P.handleResponse({cacheKey:b,req:a,nextConfig:al,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:ag,isRoutePPREnabled:aF,responseGenerator:async()=>q({span:j,postponed:void 0,fallbackRouteParams:f,forceStaticRender:!0}),waitUntil:d.waitUntil,isMinimalMode:V});if(null===g)return null;if(g)return V||!aF||!(aS.length>0)||!0!==al.experimental.partialFallbacks||!aU||!p||ar||aI||aD||aE||ay||(0,J.scheduleOnNextTick)(async()=>{let b=P.getResponseCache(a);try{await b.revalidate(aU,p,aF,!1,a=>q({span:a.span,postponed:void 0,fallbackRouteParams:a_.length>0?(0,o.createOpaqueFallbackRouteParams)(a_):null,forceStaticRender:!0}),null,c,d.waitUntil)}catch(a){console.error("Error revalidating the page in the background",a)}}),delete g.cacheControl,g}}let s=ar||i||!aJ?void 0:aJ;if(aP&&!V&&p&&(aL||aA)&&!k){let b=await p.get(ai,{kind:v.IncrementalCacheKind.APP_PAGE,isRoutePPREnabled:!0,isFallback:!1});b&&b.value&&b.value.kind===v.CachedRouteKind.APP_PAGE&&(s=b.value.postponed,b&&(-1===b.isStale||!0===b.isStale)&&(0,J.scheduleOnNextTick)(async()=>{let b=P.getResponseCache(a);try{await b.revalidate(ai,p,aF,!1,a=>r({...a,forceStaticRender:!0}),null,c,d.waitUntil)}catch(a){console.error("Error revalidating the page in the background",a)}}))}if((aG||aH)&&void 0!==s)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:v.CachedRouteKind.PAGES,html:x.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let t=!P.isDev&&_&&(null==at?void 0:at.fallbackRouteParams)?(0,o.getPlaceholderFallbackRouteParams)($,at.fallbackRouteParams):null,y=t&&t.length>0?t:null==at?void 0:at.fallbackRouteParams,z=null!=t&&t.length>0,A=null;if(al.cacheComponents&&(null==at?void 0:at.fallbackRouteParams)){let b=(0,h.getRequestMeta)(a,"resolvedRouteParamKeys");b&&b.size>0&&(A=at.fallbackRouteParams.filter(a=>!b.has(a.paramName)))}let B=(l&&(0,h.getRequestMeta)(a,"renderFallbackShell")||z||aG&&!au)&&y?(0,o.createOpaqueFallbackRouteParams)(y):A&&A.length>0&&A.length<((null==at||null==(n=at.fallbackRouteParams)?void 0:n.length)??0)?(0,o.createOpaqueFallbackRouteParams)(A):aI?(0,o.getFallbackRouteParams)(aq,P):null;if((l||aG)&&al.cacheComponents&&!au&&(null==at?void 0:at.fallbackRouteParams)){let b=(0,o.createOpaqueFallbackRouteParams)(y??at.fallbackRouteParams);b&&(0,h.addRequestMeta)(a,"fallbackParams",b)}return q({span:j,postponed:s,fallbackRouteParams:B,forceStaticRender:k})}catch(b){throw(null==g?void 0:g.isStale)&&await P.onRequestError(a,b,{routerKind:"App Router",routePath:W,routeType:"render",revalidateReason:(0,f.c)({isStaticGeneration:aO,isOnDemandRevalidate:ar})},!1,ak),b}},s=async c=>{var f,g,i,j,k,l;let m,n=await P.handleResponse({cacheKey:aU,responseGenerator:a=>r({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ar,isRoutePPREnabled:aF,req:a,nextConfig:al,prerenderManifest:ag,waitUntil:d.waitUntil,isMinimalMode:V});if(ah&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),P.isDev&&b.setHeader("Cache-Control","no-cache, must-revalidate"),!n){if(aU)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=n.value)?void 0:f.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=n.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let o="string"==typeof n.value.postponed;az&&!aA&&ao&&b.setHeader(y.NEXT_NAV_DEPLOYMENT_ID_HEADER,ao),aO&&!aL&&(!o||ay)&&(V||b.setHeader("x-nextjs-cache",ar?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),b.setHeader(t.NEXT_IS_PRERENDER_HEADER,"1"));let{value:p}=n;if(aJ)m={revalidate:0,expire:void 0};else if(aL)m={revalidate:0,expire:void 0};else if(!P.isDev)if(ah)m={revalidate:0,expire:void 0};else if(aO){if(n.cacheControl)if("number"==typeof n.cacheControl.revalidate){if(n.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${n.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});m={revalidate:n.cacheControl.revalidate,expire:(null==(j=n.cacheControl)?void 0:j.expire)??al.expireTime}}else m={revalidate:y.CACHE_ONE_YEAR_SECONDS,expire:void 0}}else b.getHeader("Cache-Control")||(m={revalidate:0,expire:void 0});if(n.cacheControl=m,"string"==typeof aM&&(null==p?void 0:p.kind)===v.CachedRouteKind.APP_PAGE&&p.segmentData){b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=p.headers)?void 0:k[y.NEXT_CACHE_TAGS_HEADER];V&&aO&&c&&"string"==typeof c&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,c);let d=p.segmentData.get(aM);return void 0!==d?(0,B.sendRenderResult)({req:a,res:b,generateEtags:al.generateEtags,poweredByHeader:al.poweredByHeader,result:x.default.fromStatic(d,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl}):(b.statusCode=204,(0,B.sendRenderResult)({req:a,res:b,generateEtags:al.generateEtags,poweredByHeader:al.poweredByHeader,result:x.default.EMPTY,cacheControl:n.cacheControl}))}let s=aP?(0,h.getRequestMeta)(a,"onCacheEntryV2")??(0,h.getRequestMeta)(a,"onCacheEntry"):(0,h.getRequestMeta)(a,"onCacheEntry");if(s){let b=(0,h.getRequestMeta)(a,"initURL")??a.url,c=b?(null==(l=(0,F.parseUrl)(b))?void 0:l.pathname)??b:void 0;if(await s(n,{url:c}))return null}if(p.headers){let a={...p.headers};for(let[c,d]of(V&&aO||delete a[y.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let u=null==(g=p.headers)?void 0:g[y.NEXT_CACHE_TAGS_HEADER];if(V&&aO&&u&&"string"==typeof u&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,u),!p.status||az&&aF||(b.statusCode=p.status),!V&&p.status&&H.RedirectStatusCode[p.status]&&az&&(b.statusCode=200),o&&!aL&&b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"1"),az&&!ah){if(void 0===p.rscData){if(p.html.contentType!==t.RSC_CONTENT_TYPE_HEADER)if(al.cacheComponents)return b.statusCode=404,(0,B.sendRenderResult)({req:a,res:b,generateEtags:al.generateEtags,poweredByHeader:al.poweredByHeader,result:x.default.EMPTY,cacheControl:n.cacheControl});else throw Object.defineProperty(new I.InvariantError(`Expected RSC response, got ${p.html.contentType}`),"__NEXT_ERROR_CODE",{value:"E789",enumerable:!1,configurable:!0});return(0,B.sendRenderResult)({req:a,res:b,generateEtags:al.generateEtags,poweredByHeader:al.poweredByHeader,result:p.html,cacheControl:n.cacheControl})}return(0,B.sendRenderResult)({req:a,res:b,generateEtags:al.generateEtags,poweredByHeader:al.poweredByHeader,result:x.default.fromStatic(p.rscData,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl})}let w=p.html;if(aE&&aG){let c=!0===P.isDev?crypto.randomUUID():null;return w.pipeThrough(await (0,A.createInstantTestScriptInsertionTransformStream)(c)),(0,B.sendRenderResult)({req:a,res:b,generateEtags:al.generateEtags,poweredByHeader:al.poweredByHeader,result:w,cacheControl:{revalidate:0,expire:void 0}})}if(!o||V||az)return(0,B.sendRenderResult)({req:a,res:b,generateEtags:al.generateEtags,poweredByHeader:al.poweredByHeader,result:w,cacheControl:n.cacheControl});if(aG||aH)return w.push(new ReadableStream({start(a){a.enqueue(z.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,B.sendRenderResult)({req:a,res:b,generateEtags:al.generateEtags,poweredByHeader:al.poweredByHeader,result:w,cacheControl:{revalidate:0,expire:void 0}});let C=new TransformStream;return w.push(C.readable),q({span:c,postponed:p.postponed,fallbackRouteParams:null,forceStaticRender:!1}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(C.writable)}).catch(a=>{C.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,B.sendRenderResult)({req:a,res:b,generateEtags:al.generateEtags,poweredByHeader:al.poweredByHeader,result:w,cacheControl:{revalidate:0,expire:void 0}})};if(!a$||!aZ)return k=aY.getActiveScopeSpan(),await aY.withPropagatedContext(a.headers,()=>aY.trace(i.BaseServerSpan.handleRequest,{spanName:`${aX} ${W}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aX,"http.target":a.url}},s),void 0,!a$);await s(aZ)}catch(b){throw b instanceof C.NoFallbackError||await P.onRequestError(a,b,{routerKind:"App Router",routePath:W,routeType:"render",revalidateReason:(0,f.c)({isStaticGeneration:aO,isOnDemandRevalidate:ar})},!1,ak),b}}},32467:a=>{"use strict";a.exports=require("node:http2")},33873:a=>{"use strict";a.exports=require("path")},34009:(a,b,c)=>{Promise.resolve().then(c.bind(c,93110))},34589:a=>{"use strict";a.exports=require("node:assert")},37067:a=>{"use strict";a.exports=require("node:http")},37540:a=>{"use strict";a.exports=require("node:console")},38522:a=>{"use strict";a.exports=require("node:zlib")},40610:a=>{"use strict";a.exports=require("node:dns")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},41692:a=>{"use strict";a.exports=require("node:tls")},41792:a=>{"use strict";a.exports=require("node:querystring")},43954:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/interception-routes")},46293:a=>{"use strict";a.exports=require("sql.js")},47161:(a,b,c)=>{Promise.resolve().then(c.bind(c,7592))},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},57075:a=>{"use strict";a.exports=require("node:stream")},57975:a=>{"use strict";a.exports=require("node:util")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},70722:a=>{"use strict";a.exports=require("next/dist/shared/lib/invariant-error")},71553:a=>{"use strict";a.exports=require("node:dns/promises")},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},73429:a=>{"use strict";a.exports=require("node:util/types")},73496:a=>{"use strict";a.exports=require("http2")},74075:a=>{"use strict";a.exports=require("zlib")},75919:a=>{"use strict";a.exports=require("node:worker_threads")},76760:a=>{"use strict";a.exports=require("node:path")},77030:a=>{"use strict";a.exports=require("node:net")},77068:a=>{"use strict";a.exports=require("next/dist/shared/lib/size-limit")},77598:a=>{"use strict";a.exports=require("node:crypto")},78474:a=>{"use strict";a.exports=require("node:events")},79646:a=>{"use strict";a.exports=require("child_process")},79868:a=>{"use strict";a.exports=require("node:sqlite")},81630:a=>{"use strict";a.exports=require("http")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},83997:a=>{"use strict";a.exports=require("tty")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},87997:a=>{"use strict";a.exports=require("node:timers")},91645:a=>{"use strict";a.exports=require("net")},93110:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/shofiqulislam/9router-master/src/app/(dashboard)/dashboard/providers/[id]/page.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/shofiqulislam/9router-master/src/app/(dashboard)/dashboard/providers/[id]/page.js","default")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,7774,5433,4380,319,8299,8172,1220,4884,5024,5681,4404,4315,8590,4746,1450,7276,8361,5330,8895,6182,6457,706,412,9560],()=>b(b.s=31913));module.exports=c})();
11
+ ]`;function A({isOpen:a,onClose:b,onSuccess:c}){let[f,g]=(0,e.useState)(""),[h,i]=(0,e.useState)(!1),[k,l]=(0,e.useState)(""),[m,o]=(0,e.useState)(null),p=()=>{h||(g(""),l(""),o(null),b())},q=async()=>{var a;let b;l(""),o(null);let d=f.trim();if(!d)return;try{b=JSON.parse(d)}catch(a){l(`${(0,n.Tl)("Invalid JSON")}: ${a.message}`);return}let e=Array.isArray(a=b)?a:a&&"object"==typeof a?Array.isArray(a.accounts)?a.accounts:[a]:null;if(!e||0===e.length)return void l((0,n.Tl)("No accounts found in input"));i(!0);try{let a=await fetch("/api/oauth/codex/bulk-import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accounts:e})}),b=await a.json();if(!a.ok)return void l(b?.error||`Request failed: ${a.status}`);o(b),b.success>0&&"function"==typeof c&&c()}catch(a){l(a.message||(0,n.Tl)("Request failed"))}finally{i(!1)}},r=m?.results?.filter(a=>!a.ok)||[];return(0,d.jsx)(j.aF,{isOpen:a,title:(0,n.Tl)("Bulk Add Codex Accounts"),onClose:p,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted",children:(0,n.Tl)("Paste an array of codex account JSON objects. Each must include accessToken (and ideally refreshToken, idToken).")}),(0,d.jsx)("textarea",{className:"w-full rounded border border-accent/30 bg-sidebar p-2 text-sm font-mono resize-y min-h-[240px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:z,value:f,onChange:a=>g(a.target.value),disabled:h}),k&&(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:k}),m&&(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:`text-sm font-medium ${m.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",m.success," ",(0,n.Tl)("added"),m.failed>0?`, ✗ ${m.failed} ${(0,n.Tl)("failed")}`:""]}),r.length>0&&(0,d.jsx)("ul",{className:"rounded border border-accent/20 bg-sidebar/50 p-2 text-xs font-mono max-h-40 overflow-y-auto",children:r.map(a=>(0,d.jsxs)("li",{className:"text-red-400",children:["[",a.index,"] ",a.error]},a.index))})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(j.$n,{onClick:q,fullWidth:!0,disabled:h||!f.trim(),children:h?(0,n.Tl)("Importing..."):(0,n.Tl)("Import All")}),(0,d.jsx)(j.$n,{onClick:p,variant:"ghost",fullWidth:!0,disabled:h,children:(0,n.Tl)("Close")})]})]})})}A.propTypes={isOpen:p().bool.isRequired,onClose:p().func.isRequired,onSuccess:p().func};let B={free:{label:"Free",variant:"success",accent:"green"},freetier:{label:"Free tier",variant:"success",accent:"emerald"},oauth:{label:"OAuth",variant:"primary",accent:"primary"},paid:{label:"API key",variant:"default",accent:"neutral"},webcookie:{label:"Cookie",variant:"warning",accent:"amber"}};function C({capabilities:a,connectionCount:b=0,headerIconPath:c}){let[f,g]=(0,e.useState)(!1);if(!a)return null;let k=B[a.tier]||B.paid,l=a.color?`${a.color}10`:"rgba(148,163,184,0.08)",m=a.color?`${a.color}30`:"rgba(148,163,184,0.20)",n=[];return a.links.apiKey&&n.push({href:a.links.apiKey,icon:"key",label:"Get API key"}),a.links.signup&&!a.links.apiKey&&n.push({href:a.links.signup,icon:"person_add",label:"Sign up"}),a.links.homepage&&n.push({href:a.links.homepage,icon:"language",label:"Homepage"}),a.links.docs&&n.push({href:a.links.docs,icon:"menu_book",label:"Docs"}),a.links.pricing&&n.push({href:a.links.pricing,icon:"sell",label:"Pricing"}),(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-4",children:[(0,d.jsxs)(h(),{href:"/dashboard/providers",className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),"Back to Providers"]}),(0,d.jsxs)("div",{className:"relative overflow-hidden rounded-2xl border p-5 sm:p-7",style:{borderColor:m,background:`linear-gradient(140deg, ${l} 0%, transparent 55%)`},children:[(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-5 sm:flex-row sm:items-start sm:justify-between",children:[(0,d.jsxs)("div",{className:"flex min-w-0 items-start gap-4",children:[(0,d.jsx)("div",{className:"flex size-14 shrink-0 items-center justify-center rounded-xl shadow-sm",style:{backgroundColor:a.color?`${a.color}20`:"rgba(148,163,184,0.15)"},children:f||!c?(0,d.jsx)("span",{className:"text-base font-bold",style:{color:a.color||"inherit"},children:a.textIcon||a.id.slice(0,2).toUpperCase()}):(0,d.jsx)(i.default,{src:c,alt:a.name,width:56,height:56,className:"max-h-14 max-w-14 rounded-xl object-contain",sizes:"56px",onError:()=>g(!0)})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsx)("h1",{className:"truncate text-2xl font-semibold tracking-tight sm:text-3xl",children:a.name}),(0,d.jsx)(j.Ex,{variant:k.variant,size:"sm",children:k.label}),a.deprecated&&(0,d.jsx)(j.Ex,{variant:"warning",size:"sm",children:"deprecated"})]}),(0,d.jsxs)("p",{className:"mt-1 text-sm text-text-muted",children:[b," connection",1===b?"":"s",a.serviceKinds.length>1&&(0,d.jsxs)(d.Fragment,{children:[" \xb7 ",a.serviceKinds.join(" \xb7 ")]})]})]})]}),n.length>0&&(0,d.jsx)("div",{className:"flex flex-wrap gap-1.5 sm:justify-end",children:n.map(a=>(0,d.jsxs)("a",{href:a.href,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 rounded-full border border-border bg-bg/60 px-2.5 py-1 text-xs text-text-main hover:border-primary hover:text-primary transition-colors backdrop-blur",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:a.icon}),a.label]},a.label))})]}),a.notices.body&&!a.deprecated&&(0,d.jsx)("p",{className:"mt-4 max-w-3xl text-sm leading-relaxed text-text-muted",children:a.notices.body})]}),a.deprecated&&a.notices.warning&&(0,d.jsxs)("div",{className:"flex items-start gap-2 rounded-lg border border-yellow-500/30 bg-yellow-500/10 px-3 py-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined mt-0.5 shrink-0 text-[16px] text-yellow-500",children:"warning"}),(0,d.jsx)("p",{className:"text-xs leading-relaxed text-red-600 dark:text-yellow-400",children:a.notices.warning})]})]})}C.propTypes={capabilities:p().object,connectionCount:p().number,headerIconPath:p().string};let D={oauth:{icon:"lock",label:"Sign in with OAuth",tabLabel:"OAuth"},apikey:{icon:"key",label:"Add API key",tabLabel:"API key"},free:{icon:"bolt",label:"Connect for free",tabLabel:"Free"},cookie:{icon:"cookie",label:"Paste session cookie",tabLabel:"Cookie"},compatible:{icon:"developer_board",label:"Configure endpoint",tabLabel:"Compatible"}};function E({children:a,accentColor:b}){return(0,d.jsx)("div",{className:"rounded-xl border p-5 sm:p-6",style:{borderColor:b?`${b}25`:void 0,background:b?`linear-gradient(160deg, ${b}08, transparent 70%)`:void 0},children:a})}let F={oauth:function({capabilities:a,onOAuth:b,onBulkImport:c}){return(0,d.jsx)(E,{accentColor:a.color,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("h3",{className:"text-base font-semibold",children:["Sign in with ",a.name]}),(0,d.jsx)("p",{className:"mt-0.5 text-sm text-text-muted",children:"One click. We handle the OAuth callback and store your session locally. You can add multiple accounts."})]}),(0,d.jsxs)("div",{className:"flex flex-wrap gap-2 sm:flex-nowrap",children:[a.features.bulkImport&&c&&(0,d.jsx)(j.$n,{size:"md",icon:"playlist_add",variant:"secondary",onClick:c,children:"Bulk import"}),(0,d.jsxs)(j.$n,{size:"md",icon:"lock",onClick:b,children:["Sign in with ",a.name]})]})]})})},apikey:function({capabilities:a,onApiKey:b}){return(0,d.jsx)(E,{accentColor:a.color,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("h3",{className:"text-base font-semibold",children:["Paste your ",a.name," API key"]}),(0,d.jsxs)("p",{className:"mt-0.5 text-sm text-text-muted",children:[a.links.apiKey?(0,d.jsxs)(d.Fragment,{children:["Grab a key from"," ",(0,d.jsx)("a",{href:a.links.apiKey,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline decoration-primary/40 underline-offset-4 hover:decoration-primary",children:new URL(a.links.apiKey).hostname})," ","and paste it in."]}):(0,d.jsx)(d.Fragment,{children:"Paste your API key to connect."})," ","Stored locally, never sent anywhere except ",a.name,"."]})]}),(0,d.jsx)(j.$n,{size:"md",icon:"key",onClick:b,children:"Add API key"})]})})},free:function({capabilities:a,onFree:b}){return(0,d.jsx)(E,{accentColor:a.color||"#10B981",children:(0,d.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"mb-1 flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px] text-green-500",children:"bolt"}),(0,d.jsxs)("h3",{className:"text-base font-semibold",children:[a.name," is free — one click to connect"]})]}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"No key, no signup, no card. Just click connect and start using it."})]}),(0,d.jsx)(j.$n,{size:"md",icon:"add",onClick:b,children:"Connect"})]})})},cookie:function({capabilities:a,onCookie:b}){let[c,f]=(0,e.useState)(!1);return(0,d.jsx)(E,{accentColor:a.color||"#F59E0B",children:(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("h3",{className:"text-base font-semibold",children:"Advanced: connect with session cookie"}),(0,d.jsxs)("p",{className:"mt-0.5 text-sm text-text-muted",children:["For power users. Extract the ",a.name," cookie from your browser and paste it here."]})]}),(0,d.jsx)("button",{type:"button",onClick:()=>f(a=>!a),className:"text-xs text-text-muted hover:text-primary",children:c?"hide":"show"})]}),c&&(0,d.jsxs)("div",{className:"rounded-lg border border-border bg-bg/70 p-3",children:[(0,d.jsxs)("ol",{className:"mb-3 list-decimal space-y-1 pl-4 text-xs text-text-muted",children:[(0,d.jsxs)("li",{children:["Open ",a.name," in your browser and sign in."]}),(0,d.jsx)("li",{children:"Open DevTools → Application → Cookies."}),(0,d.jsx)("li",{children:"Copy the session cookie value."}),(0,d.jsx)("li",{children:"Paste it in the modal."})]}),(0,d.jsx)(j.$n,{size:"sm",icon:"cookie",onClick:b,children:"Paste cookie"})]})]})})},compatible:function({capabilities:a,onCompatible:b}){return(0,d.jsx)(E,{accentColor:a.color,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("h3",{className:"text-base font-semibold",children:"Use as OpenAI-compatible endpoint"}),(0,d.jsx)("p",{className:"mt-0.5 text-sm text-text-muted",children:"Point at any OpenAI-shaped base URL (self-hosted, LiteLLM, custom proxy). Fetches the live model list after you connect."})]}),(0,d.jsx)(j.$n,{size:"md",icon:"developer_board",onClick:b,children:"Configure endpoint"})]})})}};function G({capabilities:a,onOAuth:b,onApiKey:c,onFree:f,onCookie:g,onCompatible:h,onBulkImport:i}){let j=a?.authModes||[],[k,l]=(0,e.useState)(j[0]||"apikey");if(!a||0===j.length)return null;let m=F[k]||F.apikey,n=j.length>1;return(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-3",children:[n&&(0,d.jsx)("div",{className:"flex flex-wrap gap-1 rounded-lg border border-border bg-sidebar/40 p-1",children:j.map(a=>{let b=D[a]||{icon:"add",tabLabel:a},c=a===k;return(0,d.jsxs)("button",{type:"button",onClick:()=>l(a),className:`inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs font-medium transition-colors ${c?"bg-bg text-text-main shadow-sm":"text-text-muted hover:text-text-main"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:b.icon}),b.tabLabel]},a)})}),(0,d.jsx)(m,{capabilities:a,onOAuth:b,onApiKey:c,onFree:f,onCookie:g,onCompatible:h,onBulkImport:i})]})}function H({providerId:a,models:b=[]}){let[c,f]=(0,e.useState)(""),[g,h]=(0,e.useState)({status:"idle"});if((0,e.useCallback)(async()=>{if(a){h(a=>({...a,status:"ok"===a.status?"refreshing":"loading"}));try{let b=new URLSearchParams({providerId:a});c&&b.set("model",c);let d=await fetch(`/api/providers/zenith?${b.toString()}`,{cache:"no-store"}),e=await d.json();e.success?h({status:"ok",winner:e.winner,count:e.count,leaderboard:e.leaderboard}):h({status:"error",error:e.error||"Zenith read failed"})}catch(a){h({status:"error",error:a?.message||"Network error"})}}},[a,c]),"idle"===g.status||"loading"===g.status||"error"===g.status||!g.winner||(g.count??0)<2)return null;let i=g.winner;return(0,d.jsxs)("div",{className:"mb-3 flex flex-wrap items-center gap-2 rounded-lg border border-primary/20 bg-primary/[0.04] px-3 py-2 text-xs",children:[(0,d.jsxs)("span",{className:"inline-flex items-center gap-1 text-primary font-medium",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"route"}),"Next request →"]}),(0,d.jsx)("span",{className:"font-medium text-text-main",children:i.name}),(0,d.jsxs)("span",{className:"rounded-md border border-primary/30 bg-primary/10 px-1.5 py-0.5 font-mono text-[10px] text-primary",children:["Z:",i.finalScore]}),(0,d.jsxs)("span",{className:"text-text-muted",children:["health ",i.healthScore," \xb7 quota \xd7",i.quotaFactor," \xb7 priority +",i.priorityBonus]}),b.length>0&&(0,d.jsxs)("div",{className:"ml-auto flex items-center gap-1.5",children:[(0,d.jsx)("span",{className:"text-text-muted",children:"Model:"}),(0,d.jsxs)("select",{value:c,onChange:a=>f(a.target.value),className:"rounded-md border border-border bg-bg px-1.5 py-0.5 text-[11px] focus:outline-none focus:border-primary",children:[(0,d.jsx)("option",{value:"",children:"(any)"}),b.map(a=>(0,d.jsx)("option",{value:a.id,children:a.id},a.id))]})]})]})}function I({providerId:a}){let[b,c]=(0,e.useState)(!1),[f,g]=(0,e.useState)([]),[h,i]=(0,e.useState)(!1);return(0,e.useCallback)(async()=>{if(a){i(!0);try{let b=await fetch(`/api/providers/zenith/log?providerId=${a}&limit=50`,{cache:"no-store"}),c=await b.json();c.success&&g(c.entries||[])}catch{}finally{i(!1)}}},[a]),(0,d.jsxs)("div",{className:"mt-4 rounded-lg border border-border",children:[(0,d.jsxs)("button",{type:"button",onClick:()=>c(a=>!a),className:"flex w-full items-center justify-between px-3 py-2 text-xs text-text-muted hover:text-text-main",children:[(0,d.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"history"}),"Routing decisions",f.length>0&&(0,d.jsxs)("span",{className:"text-text-muted",children:["(",f.length,")"]})]}),(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:b?"expand_less":"expand_more"})]}),b&&(0,d.jsxs)("div",{className:"max-h-64 overflow-y-auto border-t border-border/50 px-3 py-2",children:[h&&0===f.length&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Loading…"}),!h&&0===f.length&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"No decisions recorded yet. Fire a request through kRouter to populate."}),(0,d.jsx)("ul",{className:"space-y-1",children:f.map((a,b)=>(0,d.jsxs)("li",{className:"flex flex-wrap items-center gap-2 border-b border-border/30 py-1 text-[11px] font-mono last:border-0",children:[(0,d.jsx)("span",{className:"text-text-muted",children:function(a){let b=Math.floor((Date.now()-a)/1e3);if(b<5)return"just now";if(b<60)return`${b}s ago`;let c=Math.floor(b/60);return c<60?`${c}m ago`:`${Math.floor(c/60)}h ago`}(a.at)}),a.model&&(0,d.jsx)("span",{className:"text-text-main",children:a.model}),(0,d.jsx)("span",{className:"text-text-muted",children:"→"}),(0,d.jsx)("span",{className:"text-text-main",children:a.connectionId.slice(0,8)}),null!=a.score&&(0,d.jsxs)("span",{className:"text-primary",children:["Z:",a.score]}),null!=a.latencyMs&&(0,d.jsxs)("span",{className:"text-text-muted",children:[a.latencyMs,"ms"]}),(0,d.jsx)("span",{className:a.success?"text-green-500":"text-red-500",children:a.success?"✓":"✗"})]},`${a.at}-${b}`))})]})]})}function J(){let a,b=(0,f.useParams)(),c=(0,f.useRouter)(),g=b.id,[o,p]=(0,e.useState)([]),[r,t]=(0,e.useState)(!0),[v,z]=(0,e.useState)(null),[B,D]=(0,e.useState)([]),[E,F]=(0,e.useState)(!1),[J,K]=(0,e.useState)(!1),[L,M]=(0,e.useState)(!1),[N,O]=(0,e.useState)(""),[P,Q]=(0,e.useState)(!1),[R,S]=(0,e.useState)(!1),[T,U]=(0,e.useState)(!1),[V,W]=(0,e.useState)(!1),[X,Y]=(0,e.useState)(null),[Z,$]=(0,e.useState)({}),[_,aa]=(0,e.useState)(!1),[ab,ac]=(0,e.useState)({}),[ad,ae]=(0,e.useState)(""),[af,ag]=(0,e.useState)(new Set),[ah,ai]=(0,e.useState)(!1),[aj,ak]=(0,e.useState)(!1),[al,am]=(0,e.useState)([]),[an,ao]=(0,e.useState)("__none__"),[ap,aq]=(0,e.useState)(!1),[ar,as]=(0,e.useState)(null),[at,au]=(0,e.useState)(""),[av,aw]=(0,e.useState)("auto"),[ax,ay]=(0,e.useState)({enabled:!1,connections:{}}),[az,aA]=(0,e.useState)([]),[aB,aC]=(0,e.useState)([]),[aD,aE]=(0,e.useState)(!1),[aF,aG]=(0,e.useState)(""),[aH,aI]=(0,e.useState)(new Set),[aJ,aK]=(0,e.useState)([]),[aL,aM]=(0,e.useState)([]),[aN,aO]=(0,e.useState)(null),[aP,aQ]=(0,e.useState)(!1),[aR,aS]=(0,e.useState)(!1),[aT,aU]=(0,e.useState)(!1),[aV,aW]=(0,e.useState)(null),[aX,aY]=(0,e.useState)({}),[aZ,a$]=(0,e.useState)(null),a_=(0,e.useRef)(!1),[a0,a1]=(0,e.useState)(!1),{copied:a2,copy:a3}=(0,m.C)(),a4=()=>{F(!0)},a5=()=>{bd?a4():(O(""),M(!0))},a6=()=>{O(""),M(!0)},a7=()=>{bd?a5():a6()},a8=v?{id:v.id,name:v.name||("anthropic-compatible"===v.type?"Anthropic Compatible":"OpenAI Compatible"),color:"anthropic-compatible"===v.type?"#D97757":"#10A37F",textIcon:"anthropic-compatible"===v.type?"AC":"OC",apiType:v.apiType,baseUrl:v.baseUrl,type:v.type}:k.zN[g]||k.fg[g]||k.IS[g]||k.nJ[g]||k.br[g],a9=v?null:function(a){let b=k.zN[a]?k.zN:k.fg[a]?k.fg:k.IS[a]?k.IS:k.nJ[a]?k.nJ:k.br[a]?k.br:null;if(!b)return null;let c=b[a],d=b===k.IS&&c?.noAuth?"free":b===k.IS||b===k.zN?"oauth":b===k.br?"cookie":b===k.fg&&c?.noAuth?"free":(b===k.fg||k.nJ,"apikey"),e=Array.isArray(c.authModes)?c.authModes.filter(a=>a!==d):[],f=[d,...e],g=(0,k.mq)(a)||(0,k.gb)(a);g&&!f.includes("compatible")&&f.push("compatible");let h=c.notice||{};return{id:a,name:c.name||a,icon:c.icon,image:c.image,textIcon:c.textIcon,color:c.color,tier:b===k.IS?"free":b===k.nJ?"freetier":b===k.zN?"oauth":b===k.br?"webcookie":c?.noAuth?"free":"paid",authModes:f,links:{homepage:c.website,apiKey:h.apiKeyUrl,signup:h.signupUrl,pricing:c.searchViaChat?.pricingUrl,docs:c.docsUrl},features:{autoPing:"claude"===a&&"oauth"===d,bulkImport:"codex"===a,compatibleModels:g,customModels:!c.passthroughModels,passthroughModels:!!c.passthroughModels,hasRegions:Array.isArray(c.regions)&&c.regions.length>0,hasProviderSpecificData:!!c.hasProviderSpecificData},serviceKinds:c.serviceKinds||["llm"],thinking:c.thinkingConfig||null,notices:{body:h.text,warning:c.deprecationNotice},deprecated:!!c.deprecated,regions:c.regions,defaultRegion:c.defaultRegion,noAuth:!!c.noAuth,_raw:c}}(g),ba="codex"===g?"codexAutoPing":"claudeAutoPing",bb="claude"===g||"codex"===g,bc=a8?.authModes||[],bd=!!k.zN[g]||!!k.IS[g]||bc.includes("oauth"),be=!!k.fg[g]||bc.includes("apikey"),bf=!!k.IS[g]?.noAuth,bg=(0,l.KC)(g),bh=(0,k.wG)(g),bi=(0,k.mq)(g),bj=(0,k.gb)(g),bk=bi||bj,bl=!bk&&bd&&be,bm="xai"===g?"Grok Build OAuth":"OAuth",bn="xai"===g?"xAI API Key":"API Key";k.Q2[g]?.thinkingConfig||k.s9.extended;let bo=bk?g:bh,bp=bk?v?.prefix||g:bh,bq=(0,e.useCallback)(async()=>{try{let a=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bo)}`,{cache:"no-store"}),b=await a.json();a.ok&&aM(b.ids||[])}catch(a){console.log("Error fetching disabled models:",a)}},[bo]),br=async a=>{try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bo,ids:[a]})})).ok&&await bq()}catch(a){console.log("Error disabling model:",a)}},bs=async a=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bo)}&id=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await bq()}catch(a){console.log("Error enabling model:",a)}},bt=async a=>{a.length&&aO({title:"Disable All Models",message:`Disable all ${a.length} model(s)?`,onConfirm:async()=>{aO(null);try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:bo,ids:a})})).ok&&await bq()}catch(a){console.log("Error disabling all models:",a)}}})},bu=async()=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(bo)}`,{method:"DELETE"})).ok&&await bq()}catch(a){console.log("Error enabling all models:",a)}},bv=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/models/alias"),b=await a.json();a.ok&&$(b.aliases||{})}catch(a){console.log("Error fetching aliases:",a)}},[]),bw=(0,e.useCallback)(async()=>{try{let[a,b,c,d]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/provider-nodes",{cache:"no-store"}),fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}),fetch("/api/settings",{cache:"no-store"})]),e=await a.json(),f=await b.json(),h=await c.json(),i=d.ok?await d.json():{};if(a.ok){let a=(e.connections||[]).filter(a=>a.provider===g);p(a)}c.ok&&D(h.proxyPools||[]);let j=(i.providerStrategies||{})[g]||{};as(j.fallbackStrategy||null),au(null!=j.stickyRoundRobinLimit?String(j.stickyRoundRobinLimit):"1");let k=(i.providerThinking||{})[g]||{};aw(k.mode||"auto");let l=i[ba]||{};if(ay({enabled:!0===l.enabled,connections:l.connections||{}}),b.ok){let a=(f.nodes||[]).find(a=>a.id===g)||null;if(!a&&bk)for(let b=0;b<3;b+=1){await new Promise(a=>setTimeout(a,150));let b=await fetch("/api/provider-nodes",{cache:"no-store"});if(b.ok&&(a=((await b.json()).nodes||[]).find(a=>a.id===g)||null))break}z(a)}}catch(a){console.log("Error fetching connections:",a)}finally{t(!1)}},[g,bk]),bx=async a=>{try{let b=await fetch(`/api/provider-nodes/${g}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),c=await b.json();b.ok&&(z(c.node),await bw(),U(!1))}catch(a){console.log("Error updating provider node:",a)}},by=async(a,b)=>{try{let c=await fetch("/api/settings",{cache:"no-store"}),d=(c.ok?await c.json():{}).providerStrategies||{},e={};a&&(e.fallbackStrategy=a),"round-robin"===a&&""!==b&&(e.stickyRoundRobinLimit=Number(b)||3);let f={...d};0===Object.keys(e).length?delete f[g]:f[g]=e,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:f})})}catch(a){console.log("Error saving provider strategy:",a)}},bz=async(a,b)=>{ay({...ax,connections:{...ax.connections,[a]:b}});try{let c=await fetch("/api/settings",{cache:"no-store"}),d=(c.ok?await c.json():{})[ba]||{},e={...d,connections:{...d.connections||{},[a]:b}};await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[ba]:e})}),ay({enabled:!0===e.enabled,connections:e.connections})}catch(a){console.log("Error saving auto-ping config:",a),ay(ax)}},[bA,bB]=(0,e.useState)({}),bC=(0,e.useCallback)(async()=>{if(0===o.length)return;let a=o.find(a=>!1!==a.isActive)||o[0];if(a){aE(!0);try{let b=null;try{let c=await fetch(`/api/models/live-by-connection?connectionId=${a.id}`),d=c.ok?await c.json():null;d?.success&&d?.models?.length?b={models:d.models}:d?.code==="no_fetcher"&&(b=null)}catch{}if(!b){let c=await fetch(`/api/providers/${a.id}/models`);b=c.ok?await c.json():null}b?.models?.length&&(aC(b.models),aI(a=>{if(a.size>0)return a;let c=b.models[0]?.id||"",d=c.includes("/")?c.split("/")[0]:"other";return new Set([d])}))}catch{}finally{aE(!1)}}},[g,o]),bD=async(a,b,c=bh)=>{let d=`${c}/${a}`;try{let a=await fetch("/api/models/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:d,alias:b})});if(a.ok)await bv();else{let b=await a.json();alert(b.error||"Failed to set alias")}}catch(a){console.log("Error setting alias:",a)}},bE=async a=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&await bv()}catch(a){console.log("Error deleting alias:",a)}},bF=async()=>{if(a0)return;let a=o.find(a=>!1!==a.isActive);if(!a)return void alert((0,n.Tl)("Please add an active Qoder connection first"));a1(!0);try{let b=await fetch(`/api/providers/${a.id}/models`),c=await b.json();if(!b.ok)return void alert(c.error||(0,n.Tl)("Failed to fetch models"));let d=c.models||[];if(0===d.length)return void alert((0,n.Tl)("No models returned"));let e=0;for(let a of d){let b=a.id||a.name;if(!b)continue;let c=b.replace(/^qoder\//,""),d=`${bo}/${c}`;!Object.values(Z).includes(d)&&(Z[c]||(await bD(c,c,bo),e+=1))}0===e?alert((0,n.Tl)("All models already exist, no new models added")):alert((0,n.Tl)("Successfully added")+` ${e} `+(0,n.Tl)("models"))}catch(a){console.log("Error importing Qoder models:",a),alert((0,n.Tl)("Error fetching models")+": "+a.message)}finally{a1(!1)}},bG=async()=>{if(aR||0===o.length)return;let a=Object.fromEntries(o.map(a=>[a.id,{state:"queued",error:null}]));a_.current=!1,aS(!0),aU(!1),aW(null),aY(a),a$({total:o.length,completed:0,passed:0,failed:0,stopped:!1});let b=0,c=0;try{for(let a=0;a<o.length;a+=1){if(a_.current){a$({total:o.length,completed:a,passed:b,failed:c,stopped:!0});break}let d=o[a];aW(d.id),aY(a=>({...a,[d.id]:{state:"testing",error:null}}));try{let a=await fetch(`/api/providers/${d.id}/test`,{method:"POST"}),e=await a.json(),f=!!e.valid;f?b+=1:c+=1,aY(a=>({...a,[d.id]:{state:f?"success":"failed",error:f?null:e.error||null}}))}catch(a){c+=1,aY(b=>({...b,[d.id]:{state:"failed",error:a.message||"Test failed"}}))}a$({total:o.length,completed:a+1,passed:b,failed:c,stopped:!1}),a<o.length-1&&await new Promise(a=>setTimeout(a,1e3))}}finally{aW(null),aS(!1),aU(!1),a_.current=!1}},bH=async a=>{aO({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{aO(null);try{(await fetch(`/api/providers/${a}`,{method:"DELETE"})).ok&&p(b=>b.filter(b=>b.id!==a))}catch(a){console.log("Error deleting connection:",a)}}})},bI=()=>{bw(),F(!1)},bJ=async a=>{O("");try{let b=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:g,...a})}),c=null;try{c=await b.json()}catch{c=null}if(b.ok){await bw(),M(!1);return}O(c?.error||"Failed to save connection")}catch(a){console.log("Error saving connection:",a),O("Failed to save connection")}},bK=async a=>{try{(await fetch(`/api/providers/${X.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).ok&&(await bw(),S(!1))}catch(a){console.log("Error updating connection:",a)}},bL=async(a,b)=>{try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})})).ok&&p(c=>c.map(c=>c.id===a?{...c,isActive:b}:c))}catch(a){console.log("Error updating connection status:",a)}},bM=async(a,b)=>{let c=[...o];[c[a],c[b]]=[c[b],c[a]],p(c);try{await Promise.all([fetch(`/api/providers/${c[a].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:a})}),fetch(`/api/providers/${c[b].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:b})})])}catch(a){console.log("Error swapping priority:",a),await bw()}},bN=o.filter(a=>al.includes(a.id));o.length>0&&(al.length,o.length),(()=>{if(0===bN.length)return;let a=new Set(bN.map(a=>a.providerSpecificData?.proxyPoolId||"__none__"));if(1===a.size){let b=[...a][0];if("__none__"===b)return;let c=B.find(a=>a.id===b);return c?.name}})();let bO=()=>{ap||W(!1)},bP=async a=>{aq(!0);try{let b=0;for(let{connectionId:c,proxyPoolId:d}of a)try{(await fetch(`/api/providers/${c}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:d})})).ok||(b+=1)}catch(a){console.log("Error applying proxy for",c,a),b+=1}b>0&&alert(`Updated with ${b} failed request(s).`),await bw(),W(!1)}finally{aq(!1)}},bQ=a=>bP(o.map(b=>({connectionId:b.id,proxyPoolId:a}))),bR=(0,d.jsx)("div",{className:"flex min-w-0 flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03]",children:o.map((a,b)=>(0,d.jsx)("div",{className:"flex min-w-0 items-stretch",children:(0,d.jsx)("div",{className:"flex-1 min-w-0",children:(0,d.jsx)(u,{connection:a,proxyPools:B,health:bA[a.id],isOAuth:bd,isFirst:0===b,isLast:b===o.length-1,onMoveUp:()=>bM(b,b-1),onMoveDown:()=>bM(b,b+1),onToggleActive:b=>bL(a.id,b),autoPing:bb&&"oauth"===a.authType?{on:!0===ax.connections[a.id],onToggle:b=>bz(a.id,b)}:null,onUpdateProxy:async b=>{try{(await fetch(`/api/providers/${a.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:b||null})})).ok&&p(c=>c.map(c=>c.id===a.id?{...c,providerSpecificData:{...c.providerSpecificData,proxyPoolId:b||null}}:c))}catch(a){console.log("Error updating proxy:",a)}},onEdit:()=>{Y(a),S(!0)},onDelete:()=>bH(a.id),oneByOneStatus:aX[a.id]||null})})},a.id))}),bS=B.filter(a=>!0===a.isActive),bT=(0,d.jsx)(j.aF,{isOpen:V,onClose:bO,title:`Apply Proxy (${o.length} connections)`,children:(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsxs)("div",{className:"flex flex-col",children:[(0,d.jsxs)("button",{onClick:()=>{let a=B.filter(a=>!0===a.isActive);return 0===a.length?void alert("No active proxy pools available."):bP(o.map((b,c)=>({connectionId:b.id,proxyPoolId:a[c%a.length].id})))},disabled:ap||0===bS.length,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"sync_alt"}),(0,d.jsx)("span",{className:"text-sm text-text-main",children:"One-to-one (rotate)"})]}),(0,d.jsxs)("button",{onClick:()=>bQ(null),disabled:ap,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"link_off"}),(0,d.jsx)("span",{className:"text-sm text-text-main",children:"None (unbind all)"})]}),B.map(a=>(0,d.jsxs)("button",{onClick:()=>bQ(a.id),disabled:ap||!0!==a.isActive,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"lan"}),(0,d.jsx)("span",{className:"truncate text-sm text-text-main",children:a.name}),!0!==a.isActive&&(0,d.jsx)("span",{className:"text-[10px] text-text-muted",children:"(inactive)"})]},a.id))]}),ap&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Applying..."}),(0,d.jsx)(j.$n,{onClick:bO,variant:"ghost",fullWidth:!0,disabled:ap,children:"Cancel"})]})}),bU=async a=>{if(!af.has(a)){ag(b=>new Set([...b,a]));try{let b=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${bo}/${a}`})}),c=await b.json();ac(b=>({...b,[a]:c.ok?"ok":"error"})),c.ok||ae(c.error||"Model not reachable")}catch{ac(b=>({...b,[a]:"error"}))}finally{ag(b=>{let c=new Set(b);return c.delete(a),c})}}},bV=async a=>{if(ah)return;ai(!0);let b=[];try{for(let c=0;c<a.length;c+=5){let d=a.slice(c,c+5);await Promise.all(d.map(async a=>{ag(b=>new Set([...b,a.id]));try{let c=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${bo}/${a.id}`})}),d=await c.json(),e=d.ok?"ok":"error";ac(b=>({...b,[a.id]:e})),d.ok&&b.push(a)}catch{ac(b=>({...b,[a.id]:"error"}))}finally{ag(b=>{let c=new Set(b);return c.delete(a.id),c})}}))}for(let a of b)await bD(a.id,a.id,bo);b.length>0&&document.getElementById("available-models-section")?.scrollIntoView({behavior:"smooth"})}finally{ai(!1)}};if(r)return(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,d.jsx)(j.Qv,{}),(0,d.jsx)(j.Qv,{})]});if(!a8)return(0,d.jsxs)("div",{className:"text-center py-20",children:[(0,d.jsx)("p",{className:"text-text-muted",children:"Provider not found"}),(0,d.jsx)(h(),{href:"/dashboard/providers",className:"text-primary mt-4 inline-block",children:"Back to Providers"})]});let bW=()=>bi&&a8.apiType?"responses"===a8.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":bj?"/providers/anthropic-m.png":`/providers/${a8.id}.png`;return(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:gap-8 sm:px-0",children:[a9?(0,d.jsx)(C,{capabilities:a9,connectionCount:o.length,headerIconPath:_?null:bW()}):(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)(h(),{href:"/dashboard/providers",className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors mb-4",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),"Back to Providers"]}),(0,d.jsxs)("div",{className:"flex min-w-0 items-center gap-3 sm:gap-4",children:[(0,d.jsx)("div",{className:"flex size-12 shrink-0 items-center justify-center rounded-lg",style:{backgroundColor:`${a8.color}15`},children:_?(0,d.jsx)("span",{className:"text-sm font-bold",style:{color:a8.color},children:a8.textIcon||a8.id.slice(0,2).toUpperCase()}):(0,d.jsx)(i.default,{src:bW(),alt:a8.name,width:48,height:48,className:"max-h-12 max-w-12 rounded-lg object-contain",sizes:"48px",onError:()=>aa(!0)})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("h1",{className:"truncate text-2xl font-semibold tracking-tight sm:text-3xl",children:a8.name}),(0,d.jsxs)("p",{className:"text-text-muted",children:[o.length," connection",1===o.length?"":"s"]})]})]})]}),bk&&v&&(0,d.jsx)(j.Zp,{children:(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:bj?"Anthropic Compatible Details":"OpenAI Compatible Details"}),(0,d.jsxs)("p",{className:"break-all text-sm text-text-muted",children:[bj?"Messages API":"responses"===v.apiType?"Responses API":"Chat Completions"," \xb7 ",(v.baseUrl||"").replace(/\/$/,""),"/",bj?"messages":"responses"===v.apiType?"responses":"chat/completions"]})]}),(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,d.jsx)(j.$n,{size:"sm",icon:"add",onClick:()=>{O(""),M(!0)},className:"w-full sm:w-auto",children:"Add API Key"}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>U(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{aO({title:"Delete Compatible Node",message:`Delete this ${bj?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{aO(null);try{(await fetch(`/api/provider-nodes/${g}`,{method:"DELETE"})).ok&&c.push("/dashboard/providers")}catch(a){console.log("Error deleting provider node:",a)}}})},className:"w-full sm:w-auto",children:"Delete"})]})]})}),bf?(0,d.jsx)(j.gw,{providerId:g}):(0,d.jsxs)(j.Zp,{children:[(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:"Connections"}),(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[o.length>0&&B.length>0&&(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"lan",onClick:()=>W(!0),children:"Apply Proxy"}),al.length>0&&(0,d.jsxs)(j.$n,{size:"sm",variant:"danger",icon:"delete",onClick:()=>{let a=al.length;0!==a&&aO({title:`Delete ${a} Connection${a>1?"s":""}`,message:`Delete ${a} connection${a>1?"s":""}? This cannot be undone.`,onConfirm:async()=>{aO(null);let a=0,b=[...al];for(let c of b)try{(await fetch(`/api/providers/${c}`,{method:"DELETE"})).ok||(a+=1)}catch(b){console.log("Error deleting connection:",b),a+=1}p(a=>a.filter(a=>!b.includes(a.id))),am([]),a>0&&alert(`Deleted ${b.length-a} connection(s), ${a} failed.`)}})},children:["Delete Selected (",al.length,")"]}),o.length>0&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"sync",onClick:bG,disabled:aR,children:aR?"Testing Connection One-by-One...":"Test Connection One-by-One"}),aR&&(0,d.jsx)(j.$n,{size:"sm",variant:"ghost",icon:"stop",onClick:()=>{aR&&(a_.current=!0,aU(!0))},disabled:aT,children:aT?"Stopping...":"Stop"})]}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsx)("span",{className:"text-xs text-text-muted font-medium",children:"Round Robin"}),(0,d.jsx)(j.lM,{checked:"round-robin"===ar,onChange:a=>{let b=a?"round-robin":null,c=a?at||"1":at;a&&!at&&au("1"),as(b),by(b,c)}}),"round-robin"===ar&&(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)("span",{className:"text-xs text-text-muted",children:"Sticky:"}),(0,d.jsx)("input",{type:"number",min:1,value:at,onChange:a=>{var b;au(b=a.target.value),by("round-robin",b)},placeholder:"1",className:"w-14 px-2 py-1 text-xs border border-border rounded-md bg-background focus:outline-none focus:border-primary"})]})]})]})]}),0===o.length?a9?(0,d.jsx)(G,{capabilities:a9,onOAuth:a5,onApiKey:a6,onFree:a7,onCookie:()=>K(!0),onCompatible:a6,onBulkImport:()=>Q(!0)}):(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("div",{className:"inline-flex items-center justify-center w-9 h-9 rounded-full bg-primary/10 text-primary shrink-0",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"key"})}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"No connections yet"})]}),(0,d.jsx)(j.$n,{size:"sm",icon:"add",onClick:a7,children:"Add API Key"})]}):(0,d.jsxs)(d.Fragment,{children:[aZ&&(0,d.jsx)("div",{className:"mb-4 rounded-lg border border-black/10 bg-black/[0.02] px-3 py-2 text-xs text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,d.jsxs)("span",{children:["Total: ",aZ.total]}),(0,d.jsxs)("span",{children:["Completed: ",aZ.completed]}),(0,d.jsxs)("span",{children:["Passed: ",aZ.passed]}),(0,d.jsxs)("span",{children:["Failed: ",aZ.failed]}),aZ.stopped&&(0,d.jsx)("span",{className:"text-amber-600 dark:text-amber-400",children:"Stopped"}),aR&&aV&&(0,d.jsxs)("span",{children:["Running: ",o.find(a=>a.id===aV)?.name||aV]})]})}),!bk&&a9&&(0,d.jsx)(H,{providerId:g,models:aB}),bR,!bk&&a9&&(0,d.jsx)(I,{providerId:g}),!bk&&(0,d.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-2 sm:flex",children:["iflow"===g&&(0,d.jsx)(j.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>K(!0),title:"Add connection using browser cookie",className:"w-full sm:w-auto",children:"Cookie"}),"codex"===g&&(0,d.jsx)(j.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>Q(!0),title:(0,n.Tl)("Bulk import codex accounts from JSON"),className:"w-full sm:w-auto",children:(0,n.Tl)("Bulk Add")}),bl?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:a5,className:"w-full sm:w-auto",children:bm}),(0,d.jsx)(j.$n,{size:"sm",icon:"key",onClick:a6,className:"w-full sm:w-auto",children:bn})]}):(0,d.jsx)(j.$n,{size:"sm",icon:"add",onClick:a7,className:"w-full sm:w-auto",children:"Add"})]})]})]}),(0,d.jsxs)(j.Zp,{id:"available-models-section",children:[(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:"Available Models"}),!bk&&(a=[...bg,...aJ.filter(a=>!bg.some(b=>b.id===a.id))].filter(a=>!a.type||"llm"===a.type).map(a=>a.id).filter(a=>!aL.includes(a)),(0,d.jsxs)("div",{className:"flex gap-2",children:[aL.length>0&&(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:bu,children:"Active All"}),a.length>0&&(0,d.jsx)(j.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>bt(a),children:"Disable All"})]}))]}),!!ad&&(0,d.jsx)("p",{className:"text-xs text-red-500 mb-3 break-words",children:ad}),(()=>{if(bk)return(0,d.jsx)(s,{providerStorageAlias:bo,providerDisplayAlias:bp,modelAliases:Z,copied:a2,onCopy:a3,onSetAlias:bD,onDeleteAlias:bE,connections:o,isAnthropic:bj});let a=[...bg,...aJ.filter(a=>!bg.some(b=>b.id===a.id))].filter(a=>!a.type||"llm"===a.type),b=new Set(aL),c=a.filter(a=>!b.has(a.id)),e=a.filter(a=>b.has(a.id)),f=Object.entries(Z).filter(([a,b])=>{let c=`${bo}/`;if(!b.startsWith(c))return!1;let d=b.slice(c.length);return a8.passthroughModels?!bg.some(a=>a.id===d):!bg.some(a=>a.id===d)&&a===d}).map(([a,b])=>({id:b.slice(`${bo}/`.length),alias:a,fullModel:b}));return(0,d.jsxs)("div",{className:"flex flex-wrap gap-3",children:[f.map(a=>(0,d.jsx)(q,{model:{id:a.id},fullModel:`${bp}/${a.id}`,alias:a.alias,copied:a2,onCopy:a3,onSetAlias:()=>{},onDeleteAlias:()=>bE(a.alias),testStatus:ab[a.id],onTest:o.length>0||bf?()=>bU(a.id):void 0,isTesting:af.has(a.id),isCustom:!0,isFree:!1},a.id)),c.map(a=>{let b=`${bo}/${a.id}`,c=`${g}/${a.id}`,e=Object.entries(Z).find(([,a])=>a===b||a===c)?.[0];return(0,d.jsx)(q,{model:a,fullModel:`${bp}/${a.id}`,alias:e,copied:a2,onCopy:a3,onSetAlias:b=>bD(a.id,b,bo),onDeleteAlias:()=>bE(e),testStatus:ab[a.id],onTest:o.length>0||bf?()=>bU(a.id):void 0,isTesting:af.has(a.id),isFree:a.isFree,onDisable:()=>br(a.id)},a.id)}),(0,d.jsxs)("button",{onClick:()=>ak(!0),className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-primary/40 px-3 py-2 text-xs text-primary transition-colors hover:border-primary hover:bg-primary/5 sm:w-auto",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"add"}),"Add Model"]}),"qoder"===g&&o.some(a=>!1!==a.isActive)&&(0,d.jsxs)("button",{onClick:bF,disabled:a0,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-blue-500/40 px-3 py-2 text-xs text-blue-600 dark:text-blue-400 transition-colors hover:border-blue-500 hover:bg-blue-500/5 sm:w-auto disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:a0?{animation:"spin 1s linear infinite"}:void 0,children:a0?"progress_activity":"download"}),a0?(0,n.Tl)("Fetching..."):(0,n.Tl)("Fetch Qoder Models")]}),(()=>{let a=new Set([...c.map(a=>a.id),...f.map(a=>a.id)]),b=aB.length>0?aB:az,g=aB.length>0,h=b.filter(b=>b.id&&!a.has(b.id)),i=new Set(aB.map(a=>a.id).filter(Boolean)),j=e.filter(a=>a.id&&!i.has(a.id)).map(a=>({...a,dropped:!0})),k=new Set(j.map(a=>a.id)),l=[...h.filter(a=>!k.has(a.id)),...j];if(!aD&&0===l.length&&0===b.length)return null;let m=aF.trim().toLowerCase(),n=m?l.filter(a=>a.id.toLowerCase().includes(m)||a.name&&a.name.toLowerCase().includes(m)):l,o={};n.forEach(a=>{if(!a.id)return;let b=a.id.includes("/")?a.id.split("/")[0]:"models";o[b]||(o[b]=[]),o[b].push(a)});let p=Object.entries(o).sort((a,b)=>b[1].length-a[1].length),q=n.filter(a=>!a.dropped).slice(0,50);return(0,d.jsxs)("div",{className:"w-full mt-4 space-y-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"text-xs font-medium text-text-muted shrink-0",children:aD?"Loading...":`${g?"From API":"Suggested"} (${h.length})${j.length>0?` \xb7 ${j.length} dropped`:""}`}),(0,d.jsxs)("div",{className:"relative flex-1 min-w-0",children:[(0,d.jsx)("span",{className:"material-symbols-outlined absolute left-2.5 top-1/2 -translate-y-1/2 text-[13px] text-text-muted/60 pointer-events-none select-none",children:"search"}),(0,d.jsx)("input",{type:"text",value:aF,onChange:a=>aG(a.target.value),placeholder:"Search models...",className:"w-full h-7 pl-7 pr-7 text-xs rounded-lg bg-bg border border-border-subtle text-text-main placeholder:text-text-muted/50 focus:outline-none focus:ring-1 focus:ring-primary/30 focus:border-primary/40 transition-colors"}),aF&&(0,d.jsx)("button",{onClick:()=>aG(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted/50 hover:text-text-muted transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"close"})})]}),(0,d.jsx)("button",{onClick:bC,disabled:aD,title:"Refresh",className:"shrink-0 h-7 w-7 flex items-center justify-center rounded-lg border border-border-subtle text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors disabled:opacity-40",children:(0,d.jsx)("span",{className:`material-symbols-outlined text-[14px] ${aD?"animate-spin":""}`,children:"refresh"})}),!aD&&q.length>0&&(0,d.jsxs)("button",{onClick:()=>bV(q),disabled:ah,title:`Test up to ${q.length} models and auto-add passing ones`,className:"shrink-0 h-7 flex items-center gap-1 px-2.5 rounded-lg border border-border-subtle text-xs text-text-muted hover:text-green-600 hover:border-green-500/40 hover:bg-green-500/5 transition-colors disabled:opacity-40",children:[(0,d.jsx)("span",{className:`material-symbols-outlined text-[13px] ${ah?"animate-spin":""}`,children:ah?"progress_activity":"play_circle"}),ah?"Testing...":"Test All"]})]}),m&&(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:[n.length," result",1!==n.length?"s":""]}),aD?(0,d.jsxs)("div",{className:"flex items-center gap-2 py-4 text-xs text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[15px] animate-spin",children:"progress_activity"}),"Fetching models from provider API..."]}):0===p.length?m?(0,d.jsxs)("p",{className:"text-xs text-text-muted py-2",children:['No models match "',aF,'"']}):null:(0,d.jsx)("div",{className:"space-y-1",children:p.map(([a,b])=>{let c=aH.has(a),e=b.filter(a=>!a.dropped&&"ok"===ab[a.id]).length,f=b.filter(a=>!a.dropped&&"error"===ab[a.id]).length,g=b.filter(a=>a.dropped).length;return(0,d.jsxs)("div",{className:"rounded-xl border border-border-subtle overflow-hidden",children:[(0,d.jsxs)("button",{onClick:()=>aI(b=>{let c=new Set(b);return c.has(a)?c.delete(a):c.add(a),c}),className:"w-full flex items-center gap-2 px-3 py-2 text-xs bg-bg hover:bg-surface-2/60 transition-colors text-left",children:[(0,d.jsx)("span",{className:"font-semibold text-text-main flex-1",children:a}),e>0&&(0,d.jsxs)("span",{className:"text-green-600 dark:text-green-400 font-medium",children:[e," ✓"]}),f>0&&(0,d.jsxs)("span",{className:"text-red-500 font-medium",children:[f," ✗"]}),g>0&&(0,d.jsxs)("span",{className:"px-1.5 py-0.5 rounded-md bg-amber-500/10 text-amber-600 dark:text-amber-400 text-[10px] font-medium",children:[g," dropped"]}),(0,d.jsx)("span",{className:"px-1.5 py-0.5 rounded-md bg-black/[0.06] dark:bg-white/[0.06] text-text-muted tabular-nums font-medium",children:b.length}),(0,d.jsx)("span",{className:"material-symbols-outlined text-[15px] text-text-muted/60",children:c?"expand_less":"expand_more"})]}),c&&(0,d.jsx)("div",{className:"px-3 pt-2 pb-3 flex flex-wrap gap-1.5 border-t border-border-subtle bg-surface/50",children:b.map(a=>{let b=a.id.includes("/")?a.id.split("/").slice(1).join("/"):a.id,c=ab[a.id],e=af.has(a.id);return a.dropped?(0,d.jsxs)("button",{onClick:async()=>{await bs(a.id),document.getElementById("available-models-section")?.scrollIntoView({behavior:"smooth"})},title:`Recently Dropped — click to restore: ${a.id}`,className:"group flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-amber-400/40 bg-amber-500/5 text-amber-700 dark:text-amber-400 text-xs hover:bg-amber-500/10 hover:border-amber-400/60 transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"history"}),(0,d.jsx)("span",{children:b}),a.contextLength>0&&(0,d.jsxs)("span",{className:"opacity-50 text-[10px] ml-0.5",children:[(a.contextLength/1e3).toFixed(0),"k"]})]},a.id):(0,d.jsxs)("button",{onClick:async()=>{await bD(a.id,a.id,bo),document.getElementById("available-models-section")?.scrollIntoView({behavior:"smooth"})},title:`Add: ${a.name||a.id}`,className:["group flex items-center gap-1 px-2.5 py-1.5 rounded-lg border text-xs transition-colors","ok"===c?"border-green-500/30 bg-green-500/5 text-green-700 dark:text-green-400 hover:bg-green-500/10":"error"===c?"border-red-400/30 bg-red-500/5 text-red-600 dark:text-red-400 hover:bg-red-500/10":"border-border-subtle text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5"].join(" "),children:[e?(0,d.jsx)("span",{className:"material-symbols-outlined text-[12px] animate-spin",children:"progress_activity"}):"ok"===c?(0,d.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"check"}):"error"===c?(0,d.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"close"}):(0,d.jsx)("span",{className:"material-symbols-outlined text-[12px] opacity-50 group-hover:opacity-100",children:"add"}),(0,d.jsx)("span",{children:b}),a.contextLength>0&&(0,d.jsxs)("span",{className:"opacity-40 text-[10px] ml-0.5",children:[(a.contextLength/1e3).toFixed(0),"k"]})]},a.id)})})]},a)})})]})})()]})})()]}),bT,"kiro"===g?(0,d.jsx)(j.Mh,{isOpen:E,providerInfo:a8,onSuccess:bI,onClose:()=>F(!1)}):"cursor"===g?(0,d.jsx)(j.G9,{isOpen:E,onSuccess:bI,onClose:()=>F(!1)}):"gitlab"===g?(0,d.jsx)(j.vj,{isOpen:E,providerInfo:a8,onSuccess:bI,onClose:()=>F(!1)}):(0,d.jsx)(j.LF,{isOpen:E,provider:g,providerInfo:a8,onSuccess:bI,onClose:()=>F(!1)}),"iflow"===g&&(0,d.jsx)(j.vE,{isOpen:J,onSuccess:()=>{bw(),K(!1)},onClose:()=>K(!1)}),(0,d.jsx)(w,{isOpen:L,provider:g,providerName:a8.name,isCompatible:bk,isAnthropic:bj,authType:a8?.authType,authHint:a8?.authHint,website:a8?.website,proxyPools:B,error:N,existingNames:o.map(a=>a.name).filter(Boolean),onSave:bJ,onBulkDone:bw,onClose:()=>{O(""),M(!1)}}),(0,d.jsx)(j.wI,{isOpen:R,connection:X,proxyPools:B,onSave:bK,onClose:()=>S(!1)}),bk&&(0,d.jsx)(x,{isOpen:T,node:v,onSave:bx,onClose:()=>U(!1),isAnthropic:bj}),!bk&&(0,d.jsx)(y,{isOpen:aj,providerAlias:bo,providerDisplayAlias:bp,onSave:async a=>{let b=a8?.passthroughModels?a.split("/").pop():a;await bD(a,b,bo),ak(!1)},onClose:()=>ak(!1)}),"codex"===g&&(0,d.jsx)(A,{isOpen:P,onClose:()=>Q(!1),onSuccess:bw}),(0,d.jsx)(j.uo,{isOpen:aP,onClose:()=>aQ(!1),onConfirm:()=>{(aQ(!1),bd)?a4():a6()},title:"Risk Notice",message:a8?.deprecationNotice,confirmText:"I Understand, Continue",cancelText:"Cancel",variant:"danger"}),(0,d.jsx)(j.uo,{isOpen:!!aN,onClose:()=>aO(null),onConfirm:aN?.onConfirm,title:aN?.title||"Confirm",message:aN?.message,variant:"danger"})]})}G.propTypes={capabilities:p().object,onOAuth:p().func,onApiKey:p().func,onFree:p().func,onCookie:p().func,onCompatible:p().func,onBulkImport:p().func},H.propTypes={providerId:p().string.isRequired,models:p().array},I.propTypes={providerId:p().string.isRequired}},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14985:a=>{"use strict";a.exports=require("dns")},16698:a=>{"use strict";a.exports=require("node:async_hooks")},17891:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/get-segment-param")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},32467:a=>{"use strict";a.exports=require("node:http2")},33873:a=>{"use strict";a.exports=require("path")},34009:(a,b,c)=>{Promise.resolve().then(c.bind(c,93110))},34589:a=>{"use strict";a.exports=require("node:assert")},37067:a=>{"use strict";a.exports=require("node:http")},37540:a=>{"use strict";a.exports=require("node:console")},38522:a=>{"use strict";a.exports=require("node:zlib")},40610:a=>{"use strict";a.exports=require("node:dns")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},41692:a=>{"use strict";a.exports=require("node:tls")},41792:a=>{"use strict";a.exports=require("node:querystring")},43954:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/interception-routes")},46293:a=>{"use strict";a.exports=require("sql.js")},46988:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>O,handler:()=>Q,routeModule:()=>P});var d=c(7553),e=c(84006),f=c(67798),g=c(34775),h=c(99373),i=c(73461),j=c(1020),k=c(26349),l=c(54365),m=c(16023),n=c(14965),o=c(63747),p=c(24235),q=c(23938),r=c(261),s=c(66758),t=c(77243),u=c(26713),v=c(37527),w=c(22820),x=c(88216),y=c(47929),z=c(79551),A=c(71797),B=c(89125),C=c(86439),D=c(77068),E=c(27269),F=c(37525),G=c(61287),H=c(81494),I=c(70722),J=c(70753),K=c(43954),L=c(17891),M={};for(let a in G)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(M[a]=()=>G[a]);c.d(b,M);let N={children:["",{children:["(dashboard)",{children:["dashboard",{children:["providers",{children:["[id]",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,93110)),"/Users/shofiqulislam/9router-master/src/app/(dashboard)/dashboard/providers/[id]/page.js"]}]},{"global-error":[()=>Promise.resolve().then(c.t.bind(c,95547,23)),"next/dist/client/components/builtin/global-error.js"]},["new"]]},{"global-error":[()=>Promise.resolve().then(c.t.bind(c,95547,23)),"next/dist/client/components/builtin/global-error.js"]},[]]},{"global-error":[()=>Promise.resolve().then(c.t.bind(c,95547,23)),"next/dist/client/components/builtin/global-error.js"]},[]]},{layout:[()=>Promise.resolve().then(c.bind(c,30508)),"/Users/shofiqulislam/9router-master/src/app/(dashboard)/layout.js"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,95547,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,55091,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,45270,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,28193,23)),"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await Promise.resolve().then(c.bind(c,70440))).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]},{layout:[()=>Promise.resolve().then(c.bind(c,50385)),"/Users/shofiqulislam/9router-master/src/app/layout.js"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,95547,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,55091,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,45270,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,28193,23)),"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await Promise.resolve().then(c.bind(c,70440))).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]}.children,O={require:c,loadChunk:()=>Promise.resolve()},P=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/(dashboard)/dashboard/providers/[id]/page",pathname:"/dashboard/providers/[id]",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:N},distDir:".next-cli-build",relativeProjectDir:""});async function Q(a,b,d){var M,R,S,T,U;d.requestMeta&&(0,h.setRequestMeta)(a,d.requestMeta),P.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let V=!!(0,h.getRequestMeta)(a,"minimalMode"),W="/(dashboard)/dashboard/providers/[id]/page";"/index"===W&&(W="/");let X=await P.prepare(a,b,{srcPage:W,multiZoneDraftMode:!1});if(!X)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:Y,query:Z,params:$,pageIsDynamic:_,buildManifest:aa,nextFontManifest:ab,reactLoadableManifest:ac,serverActionsManifest:ad,clientReferenceManifest:ae,subresourceIntegrityManifest:af,prerenderManifest:ag,isDraftMode:ah,resolvedPathname:ai,revalidateOnlyGenerated:aj,routerServerContext:ak,nextConfig:al,parsedUrl:am,interceptionRoutePatterns:an,deploymentId:ao,clientAssetToken:ap}=X,aq=(0,r.normalizeAppPath)(W),{isOnDemandRevalidate:ar}=X,as=al.experimental.ppr&&!al.cacheComponents&&(0,K.isInterceptionRouteAppPath)(ai)?null:P.match(ai,ag),at=(null==as?void 0:as.route)??null,au=!!ag.routes[ai],av=a.headers["user-agent"]||"",aw=(0,u.getBotType)(av),ax=(0,q.isHtmlBotRequest)(a),ay=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[t.NEXT_ROUTER_PREFETCH_HEADER],az=(0,h.getRequestMeta)(a,"isRSCRequest")??(0,n.f)(a.headers[t.RSC_HEADER]),aA=(0,s.getIsPossibleServerAction)(a),aB=(0,m.checkIsAppPPREnabled)(al.experimental.ppr),aC=a.headers[y.NEXT_RESUME_STATE_LENGTH_HEADER];if(!(0,h.getRequestMeta)(a,"postponed")&&V&&aB&&aA&&aC&&"string"==typeof aC){let e=parseInt(aC,10),{maxPostponedStateSize:f,maxPostponedStateSizeBytes:g}=(0,E.getMaxPostponedStateSize)(al.experimental.maxPostponedStateSize);if(!isNaN(e)&&e>0){if(e>g)return b.statusCode=413,b.end((0,E.getPostponedStateExceededErrorMessage)(f)),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let i="1 MB",j=(null==(U=al.experimental.serverActions)?void 0:U.bodySizeLimit)??i,k=e+(j!==i?c(95726).parse(j):1048576),l=await (0,E.readBodyWithSizeLimit)(a,k);if(null===l)return b.statusCode=413,b.end("Request body exceeded limit. To configure the body size limit for Server Actions, see: https://nextjs.org/docs/app/api-reference/next-config-js/serverActions#bodysizelimit"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;if(l.length>=e){let b=l.subarray(0,e).toString("utf8");(0,h.addRequestMeta)(a,"postponed",b);let c=l.subarray(e);(0,h.addRequestMeta)(a,"actionBody",c)}else throw Object.defineProperty(Error(`invariant: expected ${e} bytes of postponed state but only received ${l.length} bytes`),"__NEXT_ERROR_CODE",{value:"E979",enumerable:!1,configurable:!0})}}if(!(0,h.getRequestMeta)(a,"postponed")&&aB&&"1"===a.headers[y.NEXT_RESUME_HEADER]&&"POST"===a.method){let{maxPostponedStateSize:c,maxPostponedStateSizeBytes:e}=(0,E.getMaxPostponedStateSize)(al.experimental.maxPostponedStateSize),f=await (0,E.readBodyWithSizeLimit)(a,e);if(null===f)return b.statusCode=413,b.end((0,E.getPostponedStateExceededErrorMessage)(c)),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let g=f.toString("utf8");(0,h.addRequestMeta)(a,"postponed",g)}let aD=!0===P.isDev||!0===al.experimental.exposeTestingApiInProductionBuild,aE=aD&&("1"===a.headers[t.NEXT_INSTANT_PREFETCH_HEADER]||!(0,n.f)(a.headers[t.RSC_HEADER])&&"string"==typeof a.headers.cookie&&a.headers.cookie.includes(t.NEXT_INSTANT_TEST_COOKIE+"=")),aF=(aB||aE)&&((null==(M=ag.routes[aq]??ag.dynamicRoutes[aq])?void 0:M.renderingMode)==="PARTIALLY_STATIC"||aE&&(aD||(null==ak?void 0:ak.experimentalTestProxy)===!0)),aG=aE&&aF,aH=aG&&!0===P.isDev,aI=!1,aJ=aF?(0,h.getRequestMeta)(a,"postponed"):void 0,aK=null==(R=ag.routes[ai])?void 0:R.prefetchDataRoute,aL=aF&&az&&!ay&&!aK;V&&(aL=aL&&!!aJ);let aM=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),aN=(!aw||!aF)&&(!av||(0,q.shouldServeStreamingMetadata)(av,al.htmlLimitedBots)),aO=!!((at||au||ag.routes[aq])&&!(aw&&aF)),aP=aF&&!0===al.cacheComponents,aQ=!0===P.isDev||!aO||"string"==typeof aJ||(aP&&(0,h.getRequestMeta)(a,"onCacheEntryV2")?aL&&!V:aL),aR=!!aw&&aF,aS=(null==at?void 0:at.remainingPrerenderableParams)??[],aT=(null==at?void 0:at.fallback)===null&&((null==(S=at.fallbackRootParams)?void 0:S.length)??0)>0,aU=null;if(!ah&&aO&&!aQ&&!aA&&!aJ&&!aL){let a=as?"string"==typeof(null==at?void 0:at.fallback)?at.fallback:as.source:null;if(!0===al.experimental.partialFallbacks&&a&&(null==at?void 0:at.fallbackRouteParams)&&!aT){if(aS.length>0){let b,c=(b=new Map(aS.map(a=>[a.paramName,a])),a.split("/").map(a=>{let c=(0,L.getSegmentParam)(a);if(!c)return a;let d=b.get(c.paramName);if(!d)return a;let e=null==$?void 0:$[d.paramName];if(!e)return a;let f=Array.isArray(e)?e.map(a=>encodeURIComponent(a)).join("/"):encodeURIComponent(e);return a.replace((0,o.buildDynamicSegmentPlaceholder)(d),f)}).join("/")||"/");aU=c!==a?c:null}}else aU=ai}let aV=aU;!aV&&(P.isDev||aO&&_&&(null==at?void 0:at.fallbackRouteParams)&&!aA)&&(aV=ai),P.isDev||ah||!aO||!az||aL||(0,k.d)(a.headers);let aW={...G,tree:N,handler:Q,routeModule:P,__next_app__:O};ad&&ae&&(0,p.setManifestsSingleton)({page:W,clientReferenceManifest:ae,serverActionsManifest:ad});let aX=a.method||"GET",aY=(0,g.getTracer)(),aZ=aY.getActiveScopeSpan(),a$=!!(null==ak?void 0:ak.isWrappedByNextServer),a_=!0===al.experimental.partialFallbacks&&aS.length>0?(null==at||null==(T=at.fallbackRouteParams)?void 0:T.filter(a=>!aS.some(b=>b.paramName===a.paramName)))??[]:[],a0=async()=>((null==ak?void 0:ak.render404)?await ak.render404(a,b,am,!1):b.end("This page could not be found"),null);try{let k,m=P.getVaryHeader(ai,an);b.setHeader("Vary",m);let n=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return P.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let a=aY.getRootSpanAttributes();if(!a)return;if(a.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${a.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let d=a.get("next.route");if(d){let a=`${aX} ${d}`;c.setAttributes({"next.route":d,"http.route":d,"next.span_name":a}),c.updateName(a),k&&k!==c&&(k.setAttribute("http.route",d),k.updateName(a))}else c.updateName(`${aX} ${W}`)})},p=(0,h.getRequestMeta)(a,"incrementalCache")||await P.getIncrementalCache(a,al,ag,V);null==p||p.resetRequestCache(),globalThis.__incrementalCache=p;let q=async({span:e,postponed:f,fallbackRouteParams:g,forceStaticRender:i})=>{let k={query:Z,params:$,page:aq,sharedContext:{buildId:Y,deploymentId:ao,clientAssetToken:ap},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aW,Component:(0,j.T)(aW),params:$,routeModule:P,page:W,postponed:f,shouldWaitOnAllReady:aR,serveStreamingMetadata:aN,supportsDynamicResponse:"string"==typeof f||aQ,buildManifest:aa,nextFontManifest:ab,reactLoadableManifest:ac,subresourceIntegrityManifest:af,setCacheStatus:null==ak?void 0:ak.setCacheStatus,setIsrStatus:null==ak?void 0:ak.setIsrStatus,setReactDebugChannel:null==ak?void 0:ak.setReactDebugChannel,sendErrorsToBrowser:null==ak?void 0:ak.sendErrorsToBrowser,dir:c(33873).join(process.cwd(),P.relativeProjectDir),isDraftMode:ah,botType:aw,isOnDemandRevalidate:ar,isPossibleServerAction:aA,assetPrefix:al.assetPrefix,nextConfigOutput:al.output,crossOrigin:al.crossOrigin,trailingSlash:al.trailingSlash,images:al.images,previewProps:ag.preview,enableTainting:al.experimental.taint,htmlLimitedBots:al.htmlLimitedBots,reactMaxHeadersLength:al.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:p,cacheLifeProfiles:al.cacheLife,basePath:al.basePath,serverActions:al.experimental.serverActions,logServerFunctions:"object"==typeof al.logging&&!!al.logging.serverFunctions,...aG||aH||aI?{isBuildTimePrerendering:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isDebugDynamicAccesses:aH}:{},cacheComponents:!!al.cacheComponents,experimental:{isRoutePPREnabled:aF,expireTime:al.expireTime,staleTimes:al.experimental.staleTimes,dynamicOnHover:!!al.experimental.dynamicOnHover,optimisticRouting:!!al.experimental.optimisticRouting,inlineCss:!!al.experimental.inlineCss,prefetchInlining:al.experimental.prefetchInlining??!1,authInterrupts:!!al.experimental.authInterrupts,cachedNavigations:!!al.experimental.cachedNavigations,clientTraceMetadata:al.experimental.clientTraceMetadata||[],clientParamParsingOrigins:al.experimental.clientParamParsingOrigins,maxPostponedStateSizeBytes:(0,D.parseMaxPostponedStateSize)(al.experimental.maxPostponedStateSize)},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d,e)=>P.onRequestError(a,b,d,e,ak),err:(0,h.getRequestMeta)(a,"invokeError")}};i&&(k.renderOpts.supportsDynamicResponse=!1);let l=await n(e,k),{metadata:m}=l,{cacheControl:o,headers:q={},fetchTags:r,fetchMetrics:s}=m;if(r&&(q[y.NEXT_CACHE_TAGS_HEADER]=r),a.fetchMetrics=s,aO&&(null==o?void 0:o.revalidate)===0&&!P.isDev&&!aF){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${ai}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""}
12
+ see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:v.CachedRouteKind.APP_PAGE,html:l,headers:q,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:o}},r=async({hasResolved:c,previousCacheEntry:g,isRevalidating:i,span:j,forceStaticRender:k=!1})=>{let l=!1===P.isDev,m=c||b.writableEnded;try{var n;let f;if(ar&&aj&&!g&&!V)return(null==ak?void 0:ak.render404)?await ak.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(at&&(f=(0,w.parseFallbackField)(at.fallback)),!0===al.experimental.partialFallbacks&&(null==at?void 0:at.fallback)===null&&!aT&&aS.length>0&&(f=w.FallbackMode.PRERENDER),f===w.FallbackMode.PRERENDER&&(0,u.isBot)(av)&&(!aF||ax)&&(f=w.FallbackMode.BLOCKING_STATIC_RENDER),(null==g?void 0:g.isStale)===-1&&(ar=!0),ar&&(f!==w.FallbackMode.NOT_FOUND||g)&&(f=w.FallbackMode.BLOCKING_STATIC_RENDER),!V&&f!==w.FallbackMode.BLOCKING_STATIC_RENDER&&aV&&!m&&!ah&&_&&(l||!au)){if((l||at)&&f===w.FallbackMode.NOT_FOUND){if(al.adapterPath)return await a0();throw new C.NoFallbackError}if(aF&&(al.cacheComponents?!aL:!az)){let b=l&&"string"==typeof(null==at?void 0:at.fallback)?at.fallback:aq,f=(l||aG)&&(null==at?void 0:at.fallbackRouteParams)?(0,o.createOpaqueFallbackRouteParams)(at.fallbackRouteParams):aI?(0,o.getFallbackRouteParams)(aq,P):null;aG&&f&&(0,h.addRequestMeta)(a,"fallbackParams",f);let g=await P.handleResponse({cacheKey:b,req:a,nextConfig:al,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:ag,isRoutePPREnabled:aF,responseGenerator:async()=>q({span:j,postponed:void 0,fallbackRouteParams:f,forceStaticRender:!0}),waitUntil:d.waitUntil,isMinimalMode:V});if(null===g)return null;if(g)return V||!aF||!(aS.length>0)||!0!==al.experimental.partialFallbacks||!aU||!p||ar||aI||aD||aE||ay||(0,J.scheduleOnNextTick)(async()=>{let b=P.getResponseCache(a);try{await b.revalidate(aU,p,aF,!1,a=>q({span:a.span,postponed:void 0,fallbackRouteParams:a_.length>0?(0,o.createOpaqueFallbackRouteParams)(a_):null,forceStaticRender:!0}),null,c,d.waitUntil)}catch(a){console.error("Error revalidating the page in the background",a)}}),delete g.cacheControl,g}}let s=ar||i||!aJ?void 0:aJ;if(aP&&!V&&p&&(aL||aA)&&!k){let b=await p.get(ai,{kind:v.IncrementalCacheKind.APP_PAGE,isRoutePPREnabled:!0,isFallback:!1});b&&b.value&&b.value.kind===v.CachedRouteKind.APP_PAGE&&(s=b.value.postponed,b&&(-1===b.isStale||!0===b.isStale)&&(0,J.scheduleOnNextTick)(async()=>{let b=P.getResponseCache(a);try{await b.revalidate(ai,p,aF,!1,a=>r({...a,forceStaticRender:!0}),null,c,d.waitUntil)}catch(a){console.error("Error revalidating the page in the background",a)}}))}if((aG||aH)&&void 0!==s)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:v.CachedRouteKind.PAGES,html:x.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let t=!P.isDev&&_&&(null==at?void 0:at.fallbackRouteParams)?(0,o.getPlaceholderFallbackRouteParams)($,at.fallbackRouteParams):null,y=t&&t.length>0?t:null==at?void 0:at.fallbackRouteParams,z=null!=t&&t.length>0,A=null;if(al.cacheComponents&&(null==at?void 0:at.fallbackRouteParams)){let b=(0,h.getRequestMeta)(a,"resolvedRouteParamKeys");b&&b.size>0&&(A=at.fallbackRouteParams.filter(a=>!b.has(a.paramName)))}let B=(l&&(0,h.getRequestMeta)(a,"renderFallbackShell")||z||aG&&!au)&&y?(0,o.createOpaqueFallbackRouteParams)(y):A&&A.length>0&&A.length<((null==at||null==(n=at.fallbackRouteParams)?void 0:n.length)??0)?(0,o.createOpaqueFallbackRouteParams)(A):aI?(0,o.getFallbackRouteParams)(aq,P):null;if((l||aG)&&al.cacheComponents&&!au&&(null==at?void 0:at.fallbackRouteParams)){let b=(0,o.createOpaqueFallbackRouteParams)(y??at.fallbackRouteParams);b&&(0,h.addRequestMeta)(a,"fallbackParams",b)}return q({span:j,postponed:s,fallbackRouteParams:B,forceStaticRender:k})}catch(b){throw(null==g?void 0:g.isStale)&&await P.onRequestError(a,b,{routerKind:"App Router",routePath:W,routeType:"render",revalidateReason:(0,f.c)({isStaticGeneration:aO,isOnDemandRevalidate:ar})},!1,ak),b}},s=async c=>{var f,g,i,j,k,l;let m,n=await P.handleResponse({cacheKey:aU,responseGenerator:a=>r({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ar,isRoutePPREnabled:aF,req:a,nextConfig:al,prerenderManifest:ag,waitUntil:d.waitUntil,isMinimalMode:V});if(ah&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),P.isDev&&b.setHeader("Cache-Control","no-cache, must-revalidate"),!n){if(aU)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=n.value)?void 0:f.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=n.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let o="string"==typeof n.value.postponed;az&&!aA&&ao&&b.setHeader(y.NEXT_NAV_DEPLOYMENT_ID_HEADER,ao),aO&&!aL&&(!o||ay)&&(V||b.setHeader("x-nextjs-cache",ar?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),b.setHeader(t.NEXT_IS_PRERENDER_HEADER,"1"));let{value:p}=n;if(aJ)m={revalidate:0,expire:void 0};else if(aL)m={revalidate:0,expire:void 0};else if(!P.isDev)if(ah)m={revalidate:0,expire:void 0};else if(aO){if(n.cacheControl)if("number"==typeof n.cacheControl.revalidate){if(n.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${n.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});m={revalidate:n.cacheControl.revalidate,expire:(null==(j=n.cacheControl)?void 0:j.expire)??al.expireTime}}else m={revalidate:y.CACHE_ONE_YEAR_SECONDS,expire:void 0}}else b.getHeader("Cache-Control")||(m={revalidate:0,expire:void 0});if(n.cacheControl=m,"string"==typeof aM&&(null==p?void 0:p.kind)===v.CachedRouteKind.APP_PAGE&&p.segmentData){b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=p.headers)?void 0:k[y.NEXT_CACHE_TAGS_HEADER];V&&aO&&c&&"string"==typeof c&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,c);let d=p.segmentData.get(aM);return void 0!==d?(0,B.sendRenderResult)({req:a,res:b,generateEtags:al.generateEtags,poweredByHeader:al.poweredByHeader,result:x.default.fromStatic(d,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl}):(b.statusCode=204,(0,B.sendRenderResult)({req:a,res:b,generateEtags:al.generateEtags,poweredByHeader:al.poweredByHeader,result:x.default.EMPTY,cacheControl:n.cacheControl}))}let s=aP?(0,h.getRequestMeta)(a,"onCacheEntryV2")??(0,h.getRequestMeta)(a,"onCacheEntry"):(0,h.getRequestMeta)(a,"onCacheEntry");if(s){let b=(0,h.getRequestMeta)(a,"initURL")??a.url,c=b?(null==(l=(0,F.parseUrl)(b))?void 0:l.pathname)??b:void 0;if(await s(n,{url:c}))return null}if(p.headers){let a={...p.headers};for(let[c,d]of(V&&aO||delete a[y.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let u=null==(g=p.headers)?void 0:g[y.NEXT_CACHE_TAGS_HEADER];if(V&&aO&&u&&"string"==typeof u&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,u),!p.status||az&&aF||(b.statusCode=p.status),!V&&p.status&&H.RedirectStatusCode[p.status]&&az&&(b.statusCode=200),o&&!aL&&b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"1"),az&&!ah){if(void 0===p.rscData){if(p.html.contentType!==t.RSC_CONTENT_TYPE_HEADER)if(al.cacheComponents)return b.statusCode=404,(0,B.sendRenderResult)({req:a,res:b,generateEtags:al.generateEtags,poweredByHeader:al.poweredByHeader,result:x.default.EMPTY,cacheControl:n.cacheControl});else throw Object.defineProperty(new I.InvariantError(`Expected RSC response, got ${p.html.contentType}`),"__NEXT_ERROR_CODE",{value:"E789",enumerable:!1,configurable:!0});return(0,B.sendRenderResult)({req:a,res:b,generateEtags:al.generateEtags,poweredByHeader:al.poweredByHeader,result:p.html,cacheControl:n.cacheControl})}return(0,B.sendRenderResult)({req:a,res:b,generateEtags:al.generateEtags,poweredByHeader:al.poweredByHeader,result:x.default.fromStatic(p.rscData,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl})}let w=p.html;if(aE&&aG){let c=!0===P.isDev?crypto.randomUUID():null;return w.pipeThrough(await (0,A.createInstantTestScriptInsertionTransformStream)(c)),(0,B.sendRenderResult)({req:a,res:b,generateEtags:al.generateEtags,poweredByHeader:al.poweredByHeader,result:w,cacheControl:{revalidate:0,expire:void 0}})}if(!o||V||az)return(0,B.sendRenderResult)({req:a,res:b,generateEtags:al.generateEtags,poweredByHeader:al.poweredByHeader,result:w,cacheControl:n.cacheControl});if(aG||aH)return w.push(new ReadableStream({start(a){a.enqueue(z.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,B.sendRenderResult)({req:a,res:b,generateEtags:al.generateEtags,poweredByHeader:al.poweredByHeader,result:w,cacheControl:{revalidate:0,expire:void 0}});let C=new TransformStream;return w.push(C.readable),q({span:c,postponed:p.postponed,fallbackRouteParams:null,forceStaticRender:!1}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(C.writable)}).catch(a=>{C.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,B.sendRenderResult)({req:a,res:b,generateEtags:al.generateEtags,poweredByHeader:al.poweredByHeader,result:w,cacheControl:{revalidate:0,expire:void 0}})};if(!a$||!aZ)return k=aY.getActiveScopeSpan(),await aY.withPropagatedContext(a.headers,()=>aY.trace(i.BaseServerSpan.handleRequest,{spanName:`${aX} ${W}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aX,"http.target":a.url}},s),void 0,!a$);await s(aZ)}catch(b){throw b instanceof C.NoFallbackError||await P.onRequestError(a,b,{routerKind:"App Router",routePath:W,routeType:"render",revalidateReason:(0,f.c)({isStaticGeneration:aO,isOnDemandRevalidate:ar})},!1,ak),b}}},47161:(a,b,c)=>{Promise.resolve().then(c.bind(c,7592))},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},57075:a=>{"use strict";a.exports=require("node:stream")},57975:a=>{"use strict";a.exports=require("node:util")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},70722:a=>{"use strict";a.exports=require("next/dist/shared/lib/invariant-error")},71553:a=>{"use strict";a.exports=require("node:dns/promises")},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},73429:a=>{"use strict";a.exports=require("node:util/types")},73496:a=>{"use strict";a.exports=require("http2")},74075:a=>{"use strict";a.exports=require("zlib")},75919:a=>{"use strict";a.exports=require("node:worker_threads")},76760:a=>{"use strict";a.exports=require("node:path")},77030:a=>{"use strict";a.exports=require("node:net")},77068:a=>{"use strict";a.exports=require("next/dist/shared/lib/size-limit")},77598:a=>{"use strict";a.exports=require("node:crypto")},78474:a=>{"use strict";a.exports=require("node:events")},79646:a=>{"use strict";a.exports=require("child_process")},79868:a=>{"use strict";a.exports=require("node:sqlite")},81630:a=>{"use strict";a.exports=require("http")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},83997:a=>{"use strict";a.exports=require("tty")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},87997:a=>{"use strict";a.exports=require("node:timers")},91645:a=>{"use strict";a.exports=require("net")},93110:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/shofiqulislam/9router-master/src/app/(dashboard)/dashboard/providers/[id]/page.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/shofiqulislam/9router-master/src/app/(dashboard)/dashboard/providers/[id]/page.js","default")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,7774,5433,4380,319,8299,8172,1220,4884,5024,5681,4404,4315,8590,4746,1450,7276,8361,5330,8895,6182,6457,706,412,9560],()=>b(b.s=46988));module.exports=c})();