@sifxprime/krouter 0.5.110 → 0.5.112

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 (970) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +16 -3
  3. package/app/.next-cli-build/build-manifest.json +2 -2
  4. package/app/.next-cli-build/prerender-manifest.json +24 -0
  5. package/app/.next-cli-build/routes-manifest.json +80 -0
  6. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -2
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/environment/page.js +2 -2
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/environment/page.js.nft.json +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/environment/page_client-reference-manifest.js +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +3 -3
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +2 -0
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -0
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -0
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +2 -2
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  75. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  76. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  77. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  78. package/app/.next-cli-build/server/app/_global-error/page.js +3 -3
  79. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  80. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  81. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  82. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  83. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  84. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  85. package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  86. package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
  87. package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
  88. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  89. package/app/.next-cli-build/server/app/_not-found/page.js +2 -2
  90. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  91. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  92. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  93. package/app/.next-cli-build/server/app/_not-found.rsc +4 -4
  94. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
  95. package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
  96. package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +4 -4
  97. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  98. package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  99. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  100. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  101. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  102. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  103. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  104. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  105. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  106. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  107. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  108. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  109. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  110. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  111. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  112. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  113. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  114. package/app/.next-cli-build/server/app/api/cache/route.js +1 -1
  115. package/app/.next-cli-build/server/app/api/cache/route.js.nft.json +1 -1
  116. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +1 -1
  117. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  118. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  119. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  120. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  121. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  122. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +1 -1
  123. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  124. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
  125. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  126. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  127. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  128. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +1 -1
  129. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  130. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  131. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  132. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
  133. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  134. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  135. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  136. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +1 -1
  137. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  138. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  139. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  140. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  141. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  142. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +1 -1
  143. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  144. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  145. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  146. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  147. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  148. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  149. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  150. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  151. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  152. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  153. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  154. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  155. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  156. package/app/.next-cli-build/server/app/api/import/route.js +1 -1
  157. package/app/.next-cli-build/server/app/api/import/route.js.nft.json +1 -1
  158. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  159. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  160. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  161. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  162. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  163. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  164. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  165. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  166. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
  167. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  168. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +2 -2
  169. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  170. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  171. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  172. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  173. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  174. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  175. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  176. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  177. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  178. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  179. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  180. package/app/.next-cli-build/server/app/api/mitm/cert/route.js +1 -1
  181. package/app/.next-cli-build/server/app/api/mitm/cert/route.js.nft.json +1 -1
  182. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  183. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  184. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  185. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  186. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  187. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  188. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  189. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  190. package/app/.next-cli-build/server/app/api/models/live/route.js +2 -2
  191. package/app/.next-cli-build/server/app/api/models/live/route.js.nft.json +1 -1
  192. package/app/.next-cli-build/server/app/api/models/live-by-connection/route.js +1 -1
  193. package/app/.next-cli-build/server/app/api/models/live-by-connection/route.js.nft.json +1 -1
  194. package/app/.next-cli-build/server/app/api/models/preview/route.js +1 -1
  195. package/app/.next-cli-build/server/app/api/models/preview/route.js.nft.json +1 -1
  196. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  197. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  198. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  199. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  200. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  201. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  202. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  203. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  204. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  205. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  206. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  207. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  208. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  209. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  210. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  211. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  212. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  213. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  214. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  215. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  216. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  217. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  218. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  219. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  220. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  221. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  222. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  223. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  224. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  225. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  226. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  227. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  228. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  229. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  230. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +2 -2
  231. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  232. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  233. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  234. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  235. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  236. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  237. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  238. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  239. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  240. package/app/.next-cli-build/server/app/api/providers/health/route.js +1 -1
  241. package/app/.next-cli-build/server/app/api/providers/health/route.js.nft.json +1 -1
  242. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  243. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  244. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  245. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  246. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  247. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  248. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  249. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  250. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  251. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  252. package/app/.next-cli-build/server/app/api/providers/zenith/log/route.js +1 -1
  253. package/app/.next-cli-build/server/app/api/providers/zenith/log/route.js.nft.json +1 -1
  254. package/app/.next-cli-build/server/app/api/providers/zenith/route.js +1 -1
  255. package/app/.next-cli-build/server/app/api/providers/zenith/route.js.nft.json +1 -1
  256. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  257. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  258. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  259. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  260. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  261. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  262. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  263. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  264. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  265. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  266. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  267. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  268. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +3 -0
  269. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -0
  270. package/app/.next-cli-build/server/app/api/pxpipe/health/route_client-reference-manifest.js +1 -0
  271. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +3 -0
  272. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -0
  273. package/app/.next-cli-build/server/app/api/pxpipe/install/route_client-reference-manifest.js +1 -0
  274. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +3 -0
  275. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -0
  276. package/app/.next-cli-build/server/app/api/pxpipe/restart/route_client-reference-manifest.js +1 -0
  277. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +3 -0
  278. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -0
  279. package/app/.next-cli-build/server/app/api/pxpipe/start/route_client-reference-manifest.js +1 -0
  280. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +3 -0
  281. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -0
  282. package/app/.next-cli-build/server/app/api/pxpipe/stats/route_client-reference-manifest.js +1 -0
  283. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +3 -0
  284. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -0
  285. package/app/.next-cli-build/server/app/api/pxpipe/status/route_client-reference-manifest.js +1 -0
  286. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +3 -0
  287. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -0
  288. package/app/.next-cli-build/server/app/api/pxpipe/stop/route_client-reference-manifest.js +1 -0
  289. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  290. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  291. package/app/.next-cli-build/server/app/api/settings/environment/route.js +1 -1
  292. package/app/.next-cli-build/server/app/api/settings/environment/route.js.nft.json +1 -1
  293. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  294. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  295. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  296. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  297. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  298. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  299. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  300. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  301. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  302. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  303. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  304. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  305. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  306. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  307. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  308. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  309. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  310. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  311. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  312. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  313. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  314. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  315. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  316. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  317. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  318. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  319. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  320. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  321. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  322. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  323. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  324. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  325. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  326. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  327. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  328. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  329. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  330. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  331. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  332. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  333. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  334. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  335. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  336. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  337. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  338. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  339. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  340. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  341. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  342. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  343. package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
  344. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  345. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  346. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  347. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  348. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  349. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  350. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  351. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  352. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  353. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  354. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  355. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  356. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  357. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  358. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  359. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  360. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  361. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  362. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  363. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  364. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  365. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  366. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  367. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  368. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  369. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  370. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  371. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  372. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  373. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  374. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  375. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  376. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  377. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -0
  378. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -0
  379. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route_client-reference-manifest.js +1 -0
  380. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -0
  381. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -0
  382. package/app/.next-cli-build/server/app/api/v1/videos/edits/route_client-reference-manifest.js +1 -0
  383. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -0
  384. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -0
  385. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route_client-reference-manifest.js +1 -0
  386. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -0
  387. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -0
  388. package/app/.next-cli-build/server/app/api/v1/videos/generations/route_client-reference-manifest.js +1 -0
  389. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  390. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  391. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  392. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  393. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  394. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  395. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  396. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  397. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  398. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  399. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  400. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  401. package/app/.next-cli-build/server/app/callback/page.js +2 -2
  402. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  403. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  404. package/app/.next-cli-build/server/app/callback.html +1 -1
  405. package/app/.next-cli-build/server/app/callback.rsc +4 -4
  406. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +4 -4
  407. package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
  408. package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +4 -4
  409. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  410. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  411. package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
  412. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  413. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +6 -6
  414. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  415. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  416. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  417. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  418. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
  419. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  420. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +4 -4
  421. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  422. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  423. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +6 -6
  424. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  425. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  426. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  427. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  428. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
  429. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  430. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +4 -4
  431. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  432. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  433. package/app/.next-cli-build/server/app/dashboard/combos.rsc +6 -6
  434. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  435. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  436. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  437. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  438. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
  439. package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  440. package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +4 -4
  441. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  442. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  443. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +6 -6
  444. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  445. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  446. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  447. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  448. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +6 -6
  449. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  450. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +4 -4
  451. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  452. package/app/.next-cli-build/server/app/dashboard/environment.html +1 -1
  453. package/app/.next-cli-build/server/app/dashboard/environment.rsc +6 -6
  454. package/app/.next-cli-build/server/app/dashboard/environment.segments/!KGRhc2hib2FyZCk/dashboard/environment/__PAGE__.segment.rsc +2 -2
  455. package/app/.next-cli-build/server/app/dashboard/environment.segments/!KGRhc2hib2FyZCk/dashboard/environment.segment.rsc +1 -1
  456. package/app/.next-cli-build/server/app/dashboard/environment.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  457. package/app/.next-cli-build/server/app/dashboard/environment.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  458. package/app/.next-cli-build/server/app/dashboard/environment.segments/_full.segment.rsc +6 -6
  459. package/app/.next-cli-build/server/app/dashboard/environment.segments/_head.segment.rsc +1 -1
  460. package/app/.next-cli-build/server/app/dashboard/environment.segments/_index.segment.rsc +4 -4
  461. package/app/.next-cli-build/server/app/dashboard/environment.segments/_tree.segment.rsc +2 -2
  462. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  463. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +6 -6
  464. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  465. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  466. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  467. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  468. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  469. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +6 -6
  470. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  471. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +4 -4
  472. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  473. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  474. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
  475. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  476. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  477. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  478. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  479. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
  480. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  481. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +4 -4
  482. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  483. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  484. package/app/.next-cli-build/server/app/dashboard/profile.rsc +6 -6
  485. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  486. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  487. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  488. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  489. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
  490. package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  491. package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +4 -4
  492. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  493. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  494. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +6 -6
  495. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  496. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  497. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  498. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  499. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  500. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
  501. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  502. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +4 -4
  503. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  504. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  505. package/app/.next-cli-build/server/app/dashboard/providers.rsc +6 -6
  506. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  507. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  508. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  509. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  510. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
  511. package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  512. package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +4 -4
  513. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  514. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  515. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +6 -6
  516. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  517. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  518. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  519. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  520. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
  521. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  522. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +4 -4
  523. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  524. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -0
  525. package/app/.next-cli-build/server/app/dashboard/pxpipe.meta +17 -0
  526. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +23 -0
  527. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +6 -0
  528. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +5 -0
  529. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +5 -0
  530. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +5 -0
  531. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +23 -0
  532. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_head.segment.rsc +6 -0
  533. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_index.segment.rsc +8 -0
  534. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +5 -0
  535. package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  536. package/app/.next-cli-build/server/app/dashboard/quota.rsc +7 -7
  537. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  538. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  539. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  540. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  541. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
  542. package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  543. package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +4 -4
  544. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  545. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
  546. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  547. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  548. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  549. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +4 -4
  550. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
  551. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  552. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
  553. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  554. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  555. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  556. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  557. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  558. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  559. package/app/.next-cli-build/server/app/dashboard/skills.rsc +6 -6
  560. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  561. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
  562. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  563. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  564. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
  565. package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
  566. package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +4 -4
  567. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  568. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  569. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +6 -6
  570. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
  571. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
  572. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  573. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  574. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +6 -6
  575. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
  576. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +4 -4
  577. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  578. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  579. package/app/.next-cli-build/server/app/dashboard/translator.rsc +6 -6
  580. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  581. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  582. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  583. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  584. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
  585. package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  586. package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +4 -4
  587. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  588. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  589. package/app/.next-cli-build/server/app/dashboard/usage.rsc +6 -6
  590. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  591. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  592. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  593. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  594. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
  595. package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  596. package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +4 -4
  597. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  598. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  599. package/app/.next-cli-build/server/app/dashboard.rsc +6 -6
  600. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  601. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  602. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  603. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +6 -6
  604. package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
  605. package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +4 -4
  606. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  607. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  608. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  609. package/app/.next-cli-build/server/app/index.html +1 -1
  610. package/app/.next-cli-build/server/app/index.rsc +4 -4
  611. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  612. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +4 -4
  613. package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
  614. package/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +4 -4
  615. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  616. package/app/.next-cli-build/server/app/landing/page.js +2 -2
  617. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  618. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  619. package/app/.next-cli-build/server/app/landing.html +1 -1
  620. package/app/.next-cli-build/server/app/landing.rsc +4 -4
  621. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +4 -4
  622. package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
  623. package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +4 -4
  624. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  625. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
  626. package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
  627. package/app/.next-cli-build/server/app/login/page.js +2 -2
  628. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  629. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  630. package/app/.next-cli-build/server/app/login.html +1 -1
  631. package/app/.next-cli-build/server/app/login.rsc +5 -5
  632. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
  633. package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
  634. package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +4 -4
  635. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  636. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  637. package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
  638. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  639. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  640. package/app/.next-cli-build/server/app/page.js +2 -2
  641. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  642. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  643. package/app/.next-cli-build/server/app-paths-manifest.json +16 -3
  644. package/app/.next-cli-build/server/chunks/2365.js +1 -1
  645. package/app/.next-cli-build/server/chunks/412.js +1 -1
  646. package/app/.next-cli-build/server/chunks/4404.js +1 -1
  647. package/app/.next-cli-build/server/chunks/4884.js +1 -1
  648. package/app/.next-cli-build/server/chunks/5681.js +1 -1
  649. package/app/.next-cli-build/server/chunks/5718.js +1 -1
  650. package/app/.next-cli-build/server/chunks/706.js +2 -2
  651. package/app/.next-cli-build/server/chunks/7153.js +1 -1
  652. package/app/.next-cli-build/server/chunks/7276.js +1 -1
  653. package/app/.next-cli-build/server/chunks/8172.js +1 -1
  654. package/app/.next-cli-build/server/chunks/8319.js +1 -0
  655. package/app/.next-cli-build/server/chunks/8590.js +1 -1
  656. package/app/.next-cli-build/server/chunks/8895.js +2 -2
  657. package/app/.next-cli-build/server/chunks/9489.js +3 -1
  658. package/app/.next-cli-build/server/functions-config-manifest.json +6 -0
  659. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  660. package/app/.next-cli-build/server/middleware.js +2 -2
  661. package/app/.next-cli-build/server/pages/404.html +1 -1
  662. package/app/.next-cli-build/server/pages/500.html +1 -1
  663. package/app/.next-cli-build/static/chunks/1321-ffdd023d81507554.js +1 -0
  664. package/app/.next-cli-build/static/chunks/{5497-730880dac15d5025.js → 5497-e79c3d75a170780d.js} +1 -1
  665. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/pxpipe/page-91e616d076e87db0.js +1 -0
  666. package/app/.next-cli-build/static/chunks/app/_global-error/page-9fdb4d1532b79c6f.js +1 -0
  667. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-9fdb4d1532b79c6f.js +1 -0
  668. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-9fdb4d1532b79c6f.js +1 -0
  669. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-9fdb4d1532b79c6f.js +1 -0
  670. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-9fdb4d1532b79c6f.js +1 -0
  671. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-9fdb4d1532b79c6f.js +1 -0
  672. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-9fdb4d1532b79c6f.js +1 -0
  673. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-9fdb4d1532b79c6f.js +1 -0
  674. package/app/.next-cli-build/static/chunks/app/api/cache/route-9fdb4d1532b79c6f.js +1 -0
  675. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-9fdb4d1532b79c6f.js +1 -0
  676. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-9fdb4d1532b79c6f.js +1 -0
  677. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-9fdb4d1532b79c6f.js +1 -0
  678. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-9fdb4d1532b79c6f.js +1 -0
  679. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-9fdb4d1532b79c6f.js +1 -0
  680. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-9fdb4d1532b79c6f.js +1 -0
  681. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-9fdb4d1532b79c6f.js +1 -0
  682. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-9fdb4d1532b79c6f.js +1 -0
  683. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-9fdb4d1532b79c6f.js +1 -0
  684. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-9fdb4d1532b79c6f.js +1 -0
  685. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-9fdb4d1532b79c6f.js +1 -0
  686. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-9fdb4d1532b79c6f.js +1 -0
  687. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-9fdb4d1532b79c6f.js +1 -0
  688. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-9fdb4d1532b79c6f.js +1 -0
  689. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-9fdb4d1532b79c6f.js +1 -0
  690. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-9fdb4d1532b79c6f.js +1 -0
  691. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-9fdb4d1532b79c6f.js +1 -0
  692. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-9fdb4d1532b79c6f.js +1 -0
  693. package/app/.next-cli-build/static/chunks/app/api/combos/route-9fdb4d1532b79c6f.js +1 -0
  694. package/app/.next-cli-build/static/chunks/app/api/health/route-9fdb4d1532b79c6f.js +1 -0
  695. package/app/.next-cli-build/static/chunks/app/api/import/route-9fdb4d1532b79c6f.js +1 -0
  696. package/app/.next-cli-build/static/chunks/app/api/init/route-9fdb4d1532b79c6f.js +1 -0
  697. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-9fdb4d1532b79c6f.js +1 -0
  698. package/app/.next-cli-build/static/chunks/app/api/keys/route-9fdb4d1532b79c6f.js +1 -0
  699. package/app/.next-cli-build/static/chunks/app/api/locale/route-9fdb4d1532b79c6f.js +1 -0
  700. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-9fdb4d1532b79c6f.js +1 -0
  701. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-9fdb4d1532b79c6f.js +1 -0
  702. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-9fdb4d1532b79c6f.js +1 -0
  703. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-9fdb4d1532b79c6f.js +1 -0
  704. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-9fdb4d1532b79c6f.js +1 -0
  705. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-9fdb4d1532b79c6f.js +1 -0
  706. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-9fdb4d1532b79c6f.js +1 -0
  707. package/app/.next-cli-build/static/chunks/app/api/mitm/cert/route-9fdb4d1532b79c6f.js +1 -0
  708. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-9fdb4d1532b79c6f.js +1 -0
  709. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-9fdb4d1532b79c6f.js +1 -0
  710. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-9fdb4d1532b79c6f.js +1 -0
  711. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-9fdb4d1532b79c6f.js +1 -0
  712. package/app/.next-cli-build/static/chunks/app/api/models/live/route-9fdb4d1532b79c6f.js +1 -0
  713. package/app/.next-cli-build/static/chunks/app/api/models/live-by-connection/route-9fdb4d1532b79c6f.js +1 -0
  714. package/app/.next-cli-build/static/chunks/app/api/models/preview/route-9fdb4d1532b79c6f.js +1 -0
  715. package/app/.next-cli-build/static/chunks/app/api/models/route-9fdb4d1532b79c6f.js +1 -0
  716. package/app/.next-cli-build/static/chunks/app/api/models/test/route-9fdb4d1532b79c6f.js +1 -0
  717. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-9fdb4d1532b79c6f.js +1 -0
  718. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-9fdb4d1532b79c6f.js +1 -0
  719. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-9fdb4d1532b79c6f.js +1 -0
  720. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-9fdb4d1532b79c6f.js +1 -0
  721. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-9fdb4d1532b79c6f.js +1 -0
  722. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-9fdb4d1532b79c6f.js +1 -0
  723. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-9fdb4d1532b79c6f.js +1 -0
  724. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-9fdb4d1532b79c6f.js +1 -0
  725. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-9fdb4d1532b79c6f.js +1 -0
  726. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-9fdb4d1532b79c6f.js +1 -0
  727. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-9fdb4d1532b79c6f.js +1 -0
  728. package/app/.next-cli-build/static/chunks/app/api/pricing/route-9fdb4d1532b79c6f.js +1 -0
  729. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-9fdb4d1532b79c6f.js +1 -0
  730. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-9fdb4d1532b79c6f.js +1 -0
  731. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-9fdb4d1532b79c6f.js +1 -0
  732. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-9fdb4d1532b79c6f.js +1 -0
  733. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-9fdb4d1532b79c6f.js +1 -0
  734. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-9fdb4d1532b79c6f.js +1 -0
  735. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-9fdb4d1532b79c6f.js +1 -0
  736. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-9fdb4d1532b79c6f.js +1 -0
  737. package/app/.next-cli-build/static/chunks/app/api/providers/health/route-9fdb4d1532b79c6f.js +1 -0
  738. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-9fdb4d1532b79c6f.js +1 -0
  739. package/app/.next-cli-build/static/chunks/app/api/providers/route-9fdb4d1532b79c6f.js +1 -0
  740. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-9fdb4d1532b79c6f.js +1 -0
  741. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-9fdb4d1532b79c6f.js +1 -0
  742. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-9fdb4d1532b79c6f.js +1 -0
  743. package/app/.next-cli-build/static/chunks/app/api/providers/zenith/log/route-9fdb4d1532b79c6f.js +1 -0
  744. package/app/.next-cli-build/static/chunks/app/api/providers/zenith/route-9fdb4d1532b79c6f.js +1 -0
  745. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-9fdb4d1532b79c6f.js +1 -0
  746. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-9fdb4d1532b79c6f.js +1 -0
  747. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-9fdb4d1532b79c6f.js +1 -0
  748. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-9fdb4d1532b79c6f.js +1 -0
  749. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-9fdb4d1532b79c6f.js +1 -0
  750. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-9fdb4d1532b79c6f.js +1 -0
  751. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-9fdb4d1532b79c6f.js +1 -0
  752. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-9fdb4d1532b79c6f.js +1 -0
  753. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-9fdb4d1532b79c6f.js +1 -0
  754. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-9fdb4d1532b79c6f.js +1 -0
  755. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-9fdb4d1532b79c6f.js +1 -0
  756. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-9fdb4d1532b79c6f.js +1 -0
  757. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-9fdb4d1532b79c6f.js +1 -0
  758. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-9fdb4d1532b79c6f.js +1 -0
  759. package/app/.next-cli-build/static/chunks/app/api/settings/environment/route-9fdb4d1532b79c6f.js +1 -0
  760. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-9fdb4d1532b79c6f.js +1 -0
  761. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-9fdb4d1532b79c6f.js +1 -0
  762. package/app/.next-cli-build/static/chunks/app/api/settings/route-9fdb4d1532b79c6f.js +1 -0
  763. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-9fdb4d1532b79c6f.js +1 -0
  764. package/app/.next-cli-build/static/chunks/app/api/tags/route-9fdb4d1532b79c6f.js +1 -0
  765. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-9fdb4d1532b79c6f.js +1 -0
  766. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-9fdb4d1532b79c6f.js +1 -0
  767. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-9fdb4d1532b79c6f.js +1 -0
  768. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-9fdb4d1532b79c6f.js +1 -0
  769. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-9fdb4d1532b79c6f.js +1 -0
  770. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-9fdb4d1532b79c6f.js +1 -0
  771. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-9fdb4d1532b79c6f.js +1 -0
  772. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-9fdb4d1532b79c6f.js +1 -0
  773. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-9fdb4d1532b79c6f.js +1 -0
  774. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-9fdb4d1532b79c6f.js +1 -0
  775. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-9fdb4d1532b79c6f.js +1 -0
  776. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-9fdb4d1532b79c6f.js +1 -0
  777. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-9fdb4d1532b79c6f.js +1 -0
  778. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-9fdb4d1532b79c6f.js +1 -0
  779. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-9fdb4d1532b79c6f.js +1 -0
  780. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-9fdb4d1532b79c6f.js +1 -0
  781. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-9fdb4d1532b79c6f.js +1 -0
  782. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-9fdb4d1532b79c6f.js +1 -0
  783. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-9fdb4d1532b79c6f.js +1 -0
  784. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-9fdb4d1532b79c6f.js +1 -0
  785. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-9fdb4d1532b79c6f.js +1 -0
  786. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-9fdb4d1532b79c6f.js +1 -0
  787. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-9fdb4d1532b79c6f.js +1 -0
  788. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-9fdb4d1532b79c6f.js +1 -0
  789. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-9fdb4d1532b79c6f.js +1 -0
  790. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-9fdb4d1532b79c6f.js +1 -0
  791. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-9fdb4d1532b79c6f.js +1 -0
  792. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-9fdb4d1532b79c6f.js +1 -0
  793. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-9fdb4d1532b79c6f.js +1 -0
  794. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-9fdb4d1532b79c6f.js +1 -0
  795. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-9fdb4d1532b79c6f.js +1 -0
  796. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-9fdb4d1532b79c6f.js +1 -0
  797. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-9fdb4d1532b79c6f.js +1 -0
  798. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-9fdb4d1532b79c6f.js +1 -0
  799. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-9fdb4d1532b79c6f.js +1 -0
  800. package/app/.next-cli-build/static/chunks/app/api/v1/route-9fdb4d1532b79c6f.js +1 -0
  801. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-9fdb4d1532b79c6f.js +1 -0
  802. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-9fdb4d1532b79c6f.js +1 -0
  803. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-9fdb4d1532b79c6f.js +1 -0
  804. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-9fdb4d1532b79c6f.js +1 -0
  805. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-9fdb4d1532b79c6f.js +1 -0
  806. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-9fdb4d1532b79c6f.js +1 -0
  807. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-9fdb4d1532b79c6f.js +1 -0
  808. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-9fdb4d1532b79c6f.js +1 -0
  809. package/app/.next-cli-build/static/chunks/app/api/version/route-9fdb4d1532b79c6f.js +1 -0
  810. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-9fdb4d1532b79c6f.js +1 -0
  811. package/app/.next-cli-build/static/chunks/app/api/version/update/route-9fdb4d1532b79c6f.js +1 -0
  812. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-9fdb4d1532b79c6f.js +1 -0
  813. package/app/.next-cli-build/static/chunks/app/page-9fdb4d1532b79c6f.js +1 -0
  814. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-9fdb4d1532b79c6f.js +1 -0
  815. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-9fdb4d1532b79c6f.js +1 -0
  816. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-9fdb4d1532b79c6f.js +1 -0
  817. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-9fdb4d1532b79c6f.js +1 -0
  818. package/app/.next-cli-build/static/css/a2fc694ff4341d5a.css +1 -0
  819. package/app/.next-cli-build/static/dQT84PkQ8Jxtq9s6IM1j4/_buildManifest.js +1 -0
  820. package/app/cli/.build-home/.krouter/db/backups/{upgrade-0.5.106-to-0.5.107-0.5.107-20260717-150407 → upgrade-0.5.110-to-0.5.111-0.5.111-20260717-234703}/data.sqlite +0 -0
  821. package/app/cli/.build-home/.krouter/db/backups/{upgrade-0.5.105-to-0.5.106-0.5.106-20260717-041652 → upgrade-0.5.111-to-0.5.112-0.5.112-20260718-000242}/data.sqlite +0 -0
  822. package/app/cli/.build-home/.krouter/db/data.sqlite +0 -0
  823. package/app/cli/package.json +1 -1
  824. package/app/package.json +1 -1
  825. package/package.json +1 -1
  826. package/app/.next-cli-build/static/chunks/1321-9b700486b47e7024.js +0 -1
  827. package/app/.next-cli-build/static/chunks/app/_global-error/page-e68bbb53670d8fc4.js +0 -1
  828. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-e68bbb53670d8fc4.js +0 -1
  829. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-e68bbb53670d8fc4.js +0 -1
  830. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-e68bbb53670d8fc4.js +0 -1
  831. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-e68bbb53670d8fc4.js +0 -1
  832. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-e68bbb53670d8fc4.js +0 -1
  833. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-e68bbb53670d8fc4.js +0 -1
  834. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-e68bbb53670d8fc4.js +0 -1
  835. package/app/.next-cli-build/static/chunks/app/api/cache/route-e68bbb53670d8fc4.js +0 -1
  836. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-e68bbb53670d8fc4.js +0 -1
  837. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-e68bbb53670d8fc4.js +0 -1
  838. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-e68bbb53670d8fc4.js +0 -1
  839. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-e68bbb53670d8fc4.js +0 -1
  840. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-e68bbb53670d8fc4.js +0 -1
  841. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-e68bbb53670d8fc4.js +0 -1
  842. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-e68bbb53670d8fc4.js +0 -1
  843. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-e68bbb53670d8fc4.js +0 -1
  844. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-e68bbb53670d8fc4.js +0 -1
  845. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-e68bbb53670d8fc4.js +0 -1
  846. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-e68bbb53670d8fc4.js +0 -1
  847. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-e68bbb53670d8fc4.js +0 -1
  848. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-e68bbb53670d8fc4.js +0 -1
  849. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-e68bbb53670d8fc4.js +0 -1
  850. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-e68bbb53670d8fc4.js +0 -1
  851. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-e68bbb53670d8fc4.js +0 -1
  852. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-e68bbb53670d8fc4.js +0 -1
  853. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-e68bbb53670d8fc4.js +0 -1
  854. package/app/.next-cli-build/static/chunks/app/api/combos/route-e68bbb53670d8fc4.js +0 -1
  855. package/app/.next-cli-build/static/chunks/app/api/health/route-e68bbb53670d8fc4.js +0 -1
  856. package/app/.next-cli-build/static/chunks/app/api/import/route-e68bbb53670d8fc4.js +0 -1
  857. package/app/.next-cli-build/static/chunks/app/api/init/route-e68bbb53670d8fc4.js +0 -1
  858. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-e68bbb53670d8fc4.js +0 -1
  859. package/app/.next-cli-build/static/chunks/app/api/keys/route-e68bbb53670d8fc4.js +0 -1
  860. package/app/.next-cli-build/static/chunks/app/api/locale/route-e68bbb53670d8fc4.js +0 -1
  861. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-e68bbb53670d8fc4.js +0 -1
  862. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-e68bbb53670d8fc4.js +0 -1
  863. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-e68bbb53670d8fc4.js +0 -1
  864. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-e68bbb53670d8fc4.js +0 -1
  865. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-e68bbb53670d8fc4.js +0 -1
  866. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-e68bbb53670d8fc4.js +0 -1
  867. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-e68bbb53670d8fc4.js +0 -1
  868. package/app/.next-cli-build/static/chunks/app/api/mitm/cert/route-e68bbb53670d8fc4.js +0 -1
  869. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-e68bbb53670d8fc4.js +0 -1
  870. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-e68bbb53670d8fc4.js +0 -1
  871. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-e68bbb53670d8fc4.js +0 -1
  872. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-e68bbb53670d8fc4.js +0 -1
  873. package/app/.next-cli-build/static/chunks/app/api/models/live/route-e68bbb53670d8fc4.js +0 -1
  874. package/app/.next-cli-build/static/chunks/app/api/models/live-by-connection/route-e68bbb53670d8fc4.js +0 -1
  875. package/app/.next-cli-build/static/chunks/app/api/models/preview/route-e68bbb53670d8fc4.js +0 -1
  876. package/app/.next-cli-build/static/chunks/app/api/models/route-e68bbb53670d8fc4.js +0 -1
  877. package/app/.next-cli-build/static/chunks/app/api/models/test/route-e68bbb53670d8fc4.js +0 -1
  878. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-e68bbb53670d8fc4.js +0 -1
  879. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-e68bbb53670d8fc4.js +0 -1
  880. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-e68bbb53670d8fc4.js +0 -1
  881. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-e68bbb53670d8fc4.js +0 -1
  882. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-e68bbb53670d8fc4.js +0 -1
  883. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-e68bbb53670d8fc4.js +0 -1
  884. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-e68bbb53670d8fc4.js +0 -1
  885. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-e68bbb53670d8fc4.js +0 -1
  886. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-e68bbb53670d8fc4.js +0 -1
  887. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-e68bbb53670d8fc4.js +0 -1
  888. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-e68bbb53670d8fc4.js +0 -1
  889. package/app/.next-cli-build/static/chunks/app/api/pricing/route-e68bbb53670d8fc4.js +0 -1
  890. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-e68bbb53670d8fc4.js +0 -1
  891. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-e68bbb53670d8fc4.js +0 -1
  892. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-e68bbb53670d8fc4.js +0 -1
  893. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-e68bbb53670d8fc4.js +0 -1
  894. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-e68bbb53670d8fc4.js +0 -1
  895. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-e68bbb53670d8fc4.js +0 -1
  896. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-e68bbb53670d8fc4.js +0 -1
  897. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-e68bbb53670d8fc4.js +0 -1
  898. package/app/.next-cli-build/static/chunks/app/api/providers/health/route-e68bbb53670d8fc4.js +0 -1
  899. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-e68bbb53670d8fc4.js +0 -1
  900. package/app/.next-cli-build/static/chunks/app/api/providers/route-e68bbb53670d8fc4.js +0 -1
  901. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-e68bbb53670d8fc4.js +0 -1
  902. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-e68bbb53670d8fc4.js +0 -1
  903. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-e68bbb53670d8fc4.js +0 -1
  904. package/app/.next-cli-build/static/chunks/app/api/providers/zenith/log/route-e68bbb53670d8fc4.js +0 -1
  905. package/app/.next-cli-build/static/chunks/app/api/providers/zenith/route-e68bbb53670d8fc4.js +0 -1
  906. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-e68bbb53670d8fc4.js +0 -1
  907. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-e68bbb53670d8fc4.js +0 -1
  908. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-e68bbb53670d8fc4.js +0 -1
  909. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-e68bbb53670d8fc4.js +0 -1
  910. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-e68bbb53670d8fc4.js +0 -1
  911. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-e68bbb53670d8fc4.js +0 -1
  912. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-e68bbb53670d8fc4.js +0 -1
  913. package/app/.next-cli-build/static/chunks/app/api/settings/environment/route-e68bbb53670d8fc4.js +0 -1
  914. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-e68bbb53670d8fc4.js +0 -1
  915. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-e68bbb53670d8fc4.js +0 -1
  916. package/app/.next-cli-build/static/chunks/app/api/settings/route-e68bbb53670d8fc4.js +0 -1
  917. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-e68bbb53670d8fc4.js +0 -1
  918. package/app/.next-cli-build/static/chunks/app/api/tags/route-e68bbb53670d8fc4.js +0 -1
  919. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-e68bbb53670d8fc4.js +0 -1
  920. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-e68bbb53670d8fc4.js +0 -1
  921. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-e68bbb53670d8fc4.js +0 -1
  922. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-e68bbb53670d8fc4.js +0 -1
  923. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-e68bbb53670d8fc4.js +0 -1
  924. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-e68bbb53670d8fc4.js +0 -1
  925. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-e68bbb53670d8fc4.js +0 -1
  926. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-e68bbb53670d8fc4.js +0 -1
  927. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-e68bbb53670d8fc4.js +0 -1
  928. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-e68bbb53670d8fc4.js +0 -1
  929. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-e68bbb53670d8fc4.js +0 -1
  930. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-e68bbb53670d8fc4.js +0 -1
  931. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-e68bbb53670d8fc4.js +0 -1
  932. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-e68bbb53670d8fc4.js +0 -1
  933. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-e68bbb53670d8fc4.js +0 -1
  934. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-e68bbb53670d8fc4.js +0 -1
  935. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-e68bbb53670d8fc4.js +0 -1
  936. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-e68bbb53670d8fc4.js +0 -1
  937. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-e68bbb53670d8fc4.js +0 -1
  938. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-e68bbb53670d8fc4.js +0 -1
  939. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-e68bbb53670d8fc4.js +0 -1
  940. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-e68bbb53670d8fc4.js +0 -1
  941. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-e68bbb53670d8fc4.js +0 -1
  942. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-e68bbb53670d8fc4.js +0 -1
  943. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-e68bbb53670d8fc4.js +0 -1
  944. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-e68bbb53670d8fc4.js +0 -1
  945. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-e68bbb53670d8fc4.js +0 -1
  946. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-e68bbb53670d8fc4.js +0 -1
  947. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-e68bbb53670d8fc4.js +0 -1
  948. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-e68bbb53670d8fc4.js +0 -1
  949. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-e68bbb53670d8fc4.js +0 -1
  950. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-e68bbb53670d8fc4.js +0 -1
  951. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-e68bbb53670d8fc4.js +0 -1
  952. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-e68bbb53670d8fc4.js +0 -1
  953. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-e68bbb53670d8fc4.js +0 -1
  954. package/app/.next-cli-build/static/chunks/app/api/v1/route-e68bbb53670d8fc4.js +0 -1
  955. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-e68bbb53670d8fc4.js +0 -1
  956. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-e68bbb53670d8fc4.js +0 -1
  957. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-e68bbb53670d8fc4.js +0 -1
  958. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-e68bbb53670d8fc4.js +0 -1
  959. package/app/.next-cli-build/static/chunks/app/api/version/route-e68bbb53670d8fc4.js +0 -1
  960. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-e68bbb53670d8fc4.js +0 -1
  961. package/app/.next-cli-build/static/chunks/app/api/version/update/route-e68bbb53670d8fc4.js +0 -1
  962. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-e68bbb53670d8fc4.js +0 -1
  963. package/app/.next-cli-build/static/chunks/app/page-e68bbb53670d8fc4.js +0 -1
  964. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-e68bbb53670d8fc4.js +0 -1
  965. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-e68bbb53670d8fc4.js +0 -1
  966. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-e68bbb53670d8fc4.js +0 -1
  967. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-e68bbb53670d8fc4.js +0 -1
  968. package/app/.next-cli-build/static/css/309831cb83ff1693.css +0 -1
  969. package/app/.next-cli-build/static/jhwddq9Ievb17kkPFw450/_buildManifest.js +0 -1
  970. /package/app/.next-cli-build/static/{jhwddq9Ievb17kkPFw450 → dQT84PkQ8Jxtq9s6IM1j4}/_ssgManifest.js +0 -0
@@ -4,4 +4,4 @@
4
4
  `,children:[k.includes(e.name)&&(0,a.jsx)("span",{className:"material-symbols-outlined leading-none",style:{fontSize:"10px"},children:"check"}),e.name]},e.id)})})]}),Object.entries(G).map(([e,t])=>(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5 mb-1.5 sticky top-0 bg-surface py-0.5",children:[(0,a.jsx)(o.A,{src:`/providers/${e}.png`,alt:t.name,size:14,fallbackText:(t.name||e).slice(0,2).toUpperCase(),fallbackColor:t.color}),(0,a.jsx)("span",{className:"text-xs font-medium text-primary",children:t.name}),(0,a.jsxs)("span",{className:"text-[10px] text-text-muted",children:["(",t.models.length,")"]}),t.liveStatus&&(0,a.jsxs)("span",{className:"flex items-center gap-1 ml-auto",children:[t.liveStatus.loading&&(0,a.jsxs)("span",{className:"text-[10px] text-text-muted flex items-center gap-1",children:[(0,a.jsx)("span",{className:"inline-block w-2 h-2 border border-text-muted border-t-transparent rounded-full animate-spin"}),"loading"]}),!t.liveStatus.loading&&t.liveStatus.error&&(0,a.jsx)("button",{type:"button",onClick:()=>{let t=S.find(t=>t.provider===e);U(e,t?.id,{refresh:!0})},className:"text-[10px] text-amber-500 hover:text-amber-400 cursor-pointer",title:t.liveStatus.error,children:"⚠ retry"}),!t.liveStatus.loading&&!t.liveStatus.error&&t.liveStatus.liveCount>0&&(0,a.jsx)("button",{type:"button",onClick:()=>{let t=S.find(t=>t.provider===e);U(e,t?.id,{refresh:!0})},className:"text-[10px] text-text-muted hover:text-primary cursor-pointer",title:`${t.liveStatus.liveCount} live models • click to refresh`,children:"↻"})]})]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1.5",children:t.models.map(t=>{let s=i===t.value,r=t.isPlaceholder,n=r?null:function(e,t){if(!t)return{...m};if(e&&x[e]?.[t])return{...m,...x[e][t]};let s=t.includes("/")?t.split("/").pop():t;if(u[s])return{...m,...u[s]};if(u[t])return{...m,...u[t]};for(let{pattern:e,caps:a}of p)if(c(e,s)||c(e,t))return{...m,...a};return{...m}}(e,t.id||t.value),l=n?{vision:n.vision,pdf:n.pdf,reasoning:n.reasoning}:null;return(0,a.jsx)("button",{onClick:()=>J(t),title:r?"Select to pre-fill, then edit model ID in the input":void 0,className:`
5
5
  px-2 py-1 rounded-xl text-xs font-medium transition-all border hover:cursor-pointer
6
6
  ${r?"border-dashed border-border text-text-muted hover:border-primary/50 hover:text-primary bg-surface italic":s?"bg-primary text-white border-primary":k.includes(t.value)?"bg-primary border-primary text-white hover:bg-primary-hover":"bg-surface border-border text-text-main hover:border-primary/50 hover:bg-primary/5"}
7
- `,children:(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[k.includes(t.value)&&!r&&(0,a.jsx)("span",{className:"material-symbols-outlined leading-none",style:{fontSize:"10px"},children:"check"}),r?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[11px]",children:"edit"}),t.name]}):t.isCustom?(0,a.jsxs)(a.Fragment,{children:[t.name,(0,a.jsx)("span",{className:"text-[9px] opacity-60 font-normal",children:"custom"})]}):t.name,l&&(l.vision||l.pdf||l.reasoning)&&(0,a.jsx)(d.default,{caps:l,size:12,colorOverride:s||k.includes(t.value)?"text-white/85":void 0})]})},t.value)})})]},e)),0===Object.keys(G).length&&0===V.length&&(0,a.jsxs)("div",{className:"text-center py-4 text-text-muted",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-2xl mb-1 block",children:"search_off"}),(0,a.jsx)("p",{className:"text-xs",children:"No models found"})]})]})]})}v.propTypes={isOpen:i().bool.isRequired,onClose:i().func.isRequired,onSelect:i().func.isRequired,onDeselect:i().func,selectedModel:i().string,activeProviders:i().arrayOf(i().shape({provider:i().string.isRequired})),title:i().string,modelAliases:i().object,kindFilter:i().string,addedModelValues:i().arrayOf(i().string),closeOnSelect:i().bool}},51825:(e,t,s)=>{s.d(t,{default:()=>i});var a=s(95155),r=s(84588);let n={mode:{label:"Mode",format:e=>e},defaultModel:{label:"Model",format:e=>e,mono:!0},baseUrl:{label:"Endpoint",format:e=>e,isLink:!0,mono:!0},costPerQuery:{label:"Cost / call",format:e=>0===e?"Free":`$${e.toFixed(4)}`},pricingUrl:{label:"Pricing",format:()=>"View pricing",isLink:!0},freeTier:{label:"Free tier",format:e=>e},freeMonthlyQuota:{label:"Free quota",format:e=>0===e?"—":e>=999999?"Unlimited":`${e.toLocaleString()} / mo`},searchTypes:{label:"Types",format:e=>e.join(", ")},formats:{label:"Formats",format:e=>e.join(", ")},maxMaxResults:{label:"Max results",format:e=>e},maxCharacters:{label:"Max chars",format:e=>e.toLocaleString()}};function i({config:e,provider:t,title:s="Provider Info"}){if(!e)return null;let l=Object.entries(n).filter(([t])=>void 0!==e[t]&&null!==e[t]&&""!==e[t]).map(([t,s])=>({key:t,label:s.label,value:s.format(e[t]),isLink:s.isLink,mono:s.mono,raw:e[t]})),o=t?.notice?.apiKeyUrl||t?.website,d=t?.notice?.text;return(0,a.jsxs)(r.default,{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,a.jsx)("h2",{className:"text-lg font-semibold",children:s}),o&&(0,a.jsxs)("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline inline-flex items-center gap-1",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"open_in_new"}),"Get API Key"]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-2",children:[l.map(e=>(0,a.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,a.jsx)("span",{className:"text-xs text-text-muted w-28 shrink-0",children:e.label}),e.isLink?(0,a.jsx)("a",{href:e.raw,target:"_blank",rel:"noopener noreferrer",className:`text-sm text-primary hover:underline truncate ${e.mono?"font-mono":""}`,children:e.value}):(0,a.jsx)("span",{className:`text-sm text-text-main truncate ${e.mono?"font-mono":""}`,children:e.value})]},e.key)),d&&(0,a.jsxs)("div",{className:"flex items-start gap-3 min-w-0 sm:col-span-2",children:[(0,a.jsx)("span",{className:"text-xs text-text-muted w-28 shrink-0 mt-0.5",children:"Notice"}),(0,a.jsx)("span",{className:"text-sm text-text-main leading-relaxed",children:d})]})]})]})}},56061:(e,t,s)=>{s.d(t,{default:()=>l});var a=s(95155),r=s(31474);let n={default:"bg-surface-2 text-text-muted",primary:"bg-brand-500/10 text-brand-600 dark:text-brand-300",success:"bg-green-500/10 text-green-600 dark:text-green-400",warning:"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400",error:"bg-red-500/10 text-red-600 dark:text-red-400",info:"bg-blue-500/10 text-blue-600 dark:text-blue-400"},i={sm:"px-2 py-0.5 text-[10px]",md:"px-2.5 py-1 text-xs",lg:"px-3 py-1.5 text-sm"};function l({children:e,variant:t="default",size:s="md",dot:o=!1,icon:d,className:c}){return(0,a.jsxs)("span",{className:(0,r.cn)("inline-flex items-center gap-1.5 rounded-full font-semibold",n[t],i[s],c),children:[o&&(0,a.jsx)("span",{className:(0,r.cn)("size-1.5 rounded-full","success"===t&&"bg-green-500","warning"===t&&"bg-yellow-500","error"===t&&"bg-red-500","info"===t&&"bg-blue-500","primary"===t&&"bg-brand-500","default"===t&&"bg-gray-500")}),d&&(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:d}),e]})}},56319:(e,t,s)=>{s.d(t,{default:()=>n});var a=s(95155),r=s(31474);function n({src:e,alt:t="Avatar",name:s,size:i="md",className:l}){let o={xs:"size-6 text-xs",sm:"size-8 text-sm",md:"size-10 text-base",lg:"size-12 text-lg",xl:"size-16 text-xl"};return e?(0,a.jsx)("div",{className:(0,r.cn)("rounded-full bg-cover bg-center bg-no-repeat","ring-2 ring-white dark:ring-surface-dark shadow-sm",o[i],l),style:{backgroundImage:`url(${e})`},role:"img","aria-label":t}):(0,a.jsx)("div",{className:(0,r.cn)("rounded-full flex items-center justify-center font-semibold text-white","ring-2 ring-white dark:ring-surface-dark shadow-sm",o[i],(e=>{if(!e)return"bg-primary";let t=["bg-red-500","bg-orange-500","bg-amber-500","bg-yellow-500","bg-lime-500","bg-green-500","bg-emerald-500","bg-teal-500","bg-cyan-500","bg-sky-500","bg-blue-500","bg-indigo-500","bg-violet-500","bg-purple-500","bg-fuchsia-500","bg-pink-500","bg-rose-500"],s=e.charCodeAt(0)%t.length;return t[s]})(s),l),role:"img","aria-label":t,children:(e=>{if(!e)return"?";let t=e.split(" ");return t.length>=2?`${t[0][0]}${t[1][0]}`.toUpperCase():e.substring(0,2).toUpperCase()})(s)})}},57250:(e,t,s)=>{s.d(t,{A:()=>l});var a=s(95155),r=s(12115),n=s(14051),i=s.n(n);function l({src:e,alt:t,size:s=32,className:n="",fallbackText:i="?",fallbackColor:o}){let[d,c]=(0,r.useState)(!1);return!e||d?(0,a.jsx)("span",{className:`inline-flex items-center justify-center font-bold rounded-lg ${n}`.trim(),style:{width:s,height:s,color:o,fontSize:Math.max(10,Math.floor(.38*s))},children:i}):(0,a.jsx)("img",{src:e,alt:t,width:s,height:s,className:n,onError:()=>c(!0)})}l.propTypes={src:i().string,alt:i().string,size:i().number,className:i().string,fallbackText:i().string,fallbackColor:i().string}},61500:(e,t,s)=>{s.d(t,{default:()=>o});var a=s(95155),r=s(12115),n=s(14051),i=s.n(n),l=s(35497);function o({isOpen:e,onMethodSelect:t,onClose:s}){let[n,i]=(0,r.useState)(null),[d,c]=(0,r.useState)(""),[m,u]=(0,r.useState)("us-east-1"),[x,p]=(0,r.useState)(""),[h,f]=(0,r.useState)(null),[g,b]=(0,r.useState)(!1),[v,j]=(0,r.useState)(!1),[y,N]=(0,r.useState)(!1);(0,r.useEffect)(()=>{"import"===n&&e&&(async()=>{j(!0),f(null),N(!1);try{let e=await fetch("/api/oauth/kiro/auto-import"),t=await e.json();t.found?(p(t.refreshToken),N(!0)):f(t.error||"Could not auto-detect token")}catch(e){f("Failed to auto-detect token")}finally{j(!1)}})()},[n,e]);let w=e=>{i(e),f(null)},k=()=>{i(null),f(null)},C=async()=>{if(!x.trim())return void f("Please enter a refresh token");b(!0),f(null);try{let e=await fetch("/api/oauth/kiro/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refreshToken:x.trim()})}),s=await e.json();if(!e.ok)throw Error(s.error||"Import failed");t("import")}catch(e){f(e.message)}finally{b(!1)}},S=e=>{t("social",{provider:e})};return(0,a.jsx)(l.aF,{isOpen:e,title:"Connect Kiro",onClose:s,size:"lg",children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[!n&&(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Choose your authentication method:"}),(0,a.jsx)("button",{onClick:()=>t("builder-id"),className:"w-full p-4 text-left border border-border rounded-lg hover:bg-sidebar transition-colors",children:(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary mt-0.5",children:"shield"}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h3",{className:"font-semibold mb-1",children:"AWS Builder ID"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Recommended for most users. Free AWS account required."})]})]})}),(0,a.jsx)("button",{onClick:()=>w("idc"),className:"w-full p-4 text-left border border-border rounded-lg hover:bg-sidebar transition-colors",children:(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary mt-0.5",children:"business"}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h3",{className:"font-semibold mb-1",children:"AWS IAM Identity Center"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"For enterprise users with custom AWS IAM Identity Center."})]})]})}),(0,a.jsx)("button",{onClick:()=>S("google"),className:"w-full p-4 text-left border border-border rounded-lg hover:bg-sidebar transition-colors",children:(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary mt-0.5",children:"account_circle"}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h3",{className:"font-semibold mb-1",children:"Google Account"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Login with your Google account."})]})]})}),(0,a.jsx)("button",{onClick:()=>S("github"),className:"w-full p-4 text-left border border-border rounded-lg hover:bg-sidebar transition-colors",children:(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary mt-0.5",children:"code"}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h3",{className:"font-semibold mb-1",children:"GitHub Account"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Login with your GitHub account."})]})]})}),(0,a.jsx)("button",{onClick:()=>w("import"),className:"w-full p-4 text-left border border-border rounded-lg hover:bg-sidebar transition-colors",children:(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary mt-0.5",children:"file_upload"}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h3",{className:"font-semibold mb-1",children:"Import Token"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Paste refresh token from Kiro IDE."})]})]})})]}),"idc"===n&&(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"block text-sm font-medium mb-2",children:["IDC Start URL ",(0,a.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,a.jsx)(l.pd,{value:d,onChange:e=>c(e.target.value),placeholder:"https://your-org.awsapps.com/start",className:"font-mono text-sm"}),(0,a.jsx)("p",{className:"text-xs text-text-muted mt-1",children:"Your organization's AWS IAM Identity Center URL"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium mb-2",children:"AWS Region"}),(0,a.jsx)(l.pd,{value:m,onChange:e=>u(e.target.value),placeholder:"us-east-1",className:"font-mono text-sm"}),(0,a.jsx)("p",{className:"text-xs text-text-muted mt-1",children:"AWS region for your Identity Center (default: us-east-1)"})]}),h&&(0,a.jsx)("p",{className:"text-sm text-red-600",children:h}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(l.$n,{onClick:()=>{d.trim()?t("idc",{startUrl:d.trim(),region:m}):f("Please enter your IDC start URL")},fullWidth:!0,children:"Continue"}),(0,a.jsx)(l.$n,{onClick:k,variant:"ghost",fullWidth:!0,children:"Back"})]})]}),"import"===n&&(0,a.jsxs)("div",{className:"space-y-4",children:[v&&(0,a.jsxs)("div",{className:"text-center py-6",children:[(0,a.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-primary/10 flex items-center justify-center",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-3xl text-primary animate-spin",children:"progress_activity"})}),(0,a.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Auto-detecting token..."}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Reading from AWS SSO cache"})]}),!v&&(0,a.jsxs)(a.Fragment,{children:[y&&(0,a.jsx)("div",{className:"bg-green-50 dark:bg-green-900/20 p-3 rounded-lg border border-green-200 dark:border-green-800",children:(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-green-600 dark:text-green-400",children:"check_circle"}),(0,a.jsx)("p",{className:"text-sm text-green-800 dark:text-green-200",children:"Token auto-detected from Kiro IDE successfully!"})]})}),!y&&!h&&(0,a.jsx)("div",{className:"bg-blue-50 dark:bg-blue-900/20 p-3 rounded-lg border border-blue-200 dark:border-blue-800",children:(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-blue-600 dark:text-blue-400",children:"info"}),(0,a.jsx)("p",{className:"text-sm text-blue-800 dark:text-blue-200",children:"Kiro IDE not detected. Please paste your refresh token manually."})]})}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"block text-sm font-medium mb-2",children:["Refresh Token ",(0,a.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,a.jsx)(l.pd,{value:x,onChange:e=>p(e.target.value),placeholder:"Token will be auto-filled...",className:"font-mono text-sm"})]}),h&&(0,a.jsx)("div",{className:"bg-red-50 dark:bg-red-900/20 p-3 rounded-lg border border-red-200 dark:border-red-800",children:(0,a.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400",children:h})}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(l.$n,{onClick:C,fullWidth:!0,disabled:g||!x.trim(),children:g?"Importing...":"Import Token"}),(0,a.jsx)(l.$n,{onClick:k,variant:"ghost",fullWidth:!0,children:"Back"})]})]})]})]})})}o.propTypes={isOpen:i().bool.isRequired,onMethodSelect:i().func.isRequired,onClose:i().func.isRequired}},62899:(e,t,s)=>{s.d(t,{default:()=>c});var a=s(95155),r=s(12115),n=s(14051),i=s.n(n),l=s(90882),o=s(61500),d=s(94230);function c({isOpen:e,providerInfo:t,onSuccess:s,onClose:n}){let[i,m]=(0,r.useState)(null),[u,x]=(0,r.useState)(null),[p,h]=(0,r.useState)(null),f=(0,r.useCallback)((e,t)=>{"builder-id"===e?m("builder-id"):"idc"===e?(m("idc"),h(t)):"social"===e?(m("social"),x(t.provider)):"import"===e&&s?.()},[s]),g=()=>{m(null),x(null),h(null)};return i?"builder-id"===i||"idc"===i?(0,a.jsx)(l.default,{isOpen:e,provider:"kiro",providerInfo:t,onSuccess:()=>{m(null),h(null),s?.(),n?.()},onClose:g,idcConfig:p}):"social"===i&&u?(0,a.jsx)(d.default,{isOpen:e,provider:u,onSuccess:()=>{m(null),x(null),s?.(),n?.()},onClose:g}):null:(0,a.jsx)(o.default,{isOpen:e,onMethodSelect:f,onClose:n})}c.propTypes={isOpen:i().bool.isRequired,providerInfo:i().shape({name:i().string}),onSuccess:i().func,onClose:i().func.isRequired}},65921:(e,t,s)=>{s.d(t,{i:()=>n});var a=s(1934);let r=0,n=(0,a.v)((e,t)=>({notifications:[],addNotification:s=>{let a=++r,n={id:a,type:s.type||"info",message:s.message,title:s.title||null,duration:s.duration??5e3,dismissible:s.dismissible??!0,createdAt:Date.now()};return e(e=>({notifications:[...e.notifications,n]})),n.duration>0&&setTimeout(()=>t().removeNotification(a),n.duration),a},removeNotification:t=>{e(e=>({notifications:e.notifications.filter(e=>e.id!==t)}))},clearAll:()=>e({notifications:[]}),success:(e,s)=>t().addNotification({type:"success",message:e,title:s}),error:(e,s)=>t().addNotification({type:"error",message:e,title:s,duration:8e3}),warning:(e,s)=>t().addNotification({type:"warning",message:e,title:s}),info:(e,s)=>t().addNotification({type:"info",message:e,title:s})}))},73579:(e,t,s)=>{s.d(t,{default:()=>x});var a=s(95155),r=s(12115),n=s(14051),i=s.n(n),l=s(81127),o=s(11910),d=s(92542),c=s(56061),m=s(98),u=s(52679);function x({isOpen:e,connection:t,proxyPools:s,onSave:n,onClose:i}){let[p,h]=(0,r.useState)({name:"",priority:1,apiKey:""}),[f,g]=(0,r.useState)({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),[b,v]=(0,r.useState)({accountId:""}),[j,y]=(0,r.useState)(""),[N,w]=(0,r.useState)(""),[k,C]=(0,r.useState)(""),[S,O]=(0,r.useState)(!1),[T,F]=(0,r.useState)(null),[$,I]=(0,r.useState)(!1),[A,P]=(0,r.useState)(null),[R,W]=(0,r.useState)(!1);(0,r.useEffect)(()=>{if(t){h({name:t.name||"",priority:t.priority||1,apiKey:""}),"azure"===t.provider&&t.providerSpecificData&&g({azureEndpoint:t.providerSpecificData.azureEndpoint||"",apiVersion:t.providerSpecificData.apiVersion||"2024-10-01-preview",deployment:t.providerSpecificData.deployment||"",organization:t.providerSpecificData.organization||""}),"cloudflare-ai"===t.provider&&t.providerSpecificData&&v({accountId:t.providerSpecificData.accountId||""});let e=u.Q2?.[t.provider];e?.regions&&y(t.providerSpecificData?.region||e.defaultRegion||e.regions[0]?.id||"");let s=t.providerSpecificData||{},a=Number(s.maxConcurrency);w(Number.isFinite(a)&&a>0?String(a):""),C(Array.isArray(s.extraApiKeys)?s.extraApiKeys.join("\n"):""),F(null),P(null)}},[t]);let E=t?.authType==="oauth",q=t?.provider==="azure",_=t?.provider==="cloudflare-ai",z=!!t&&((0,u.mq)(t.provider)||(0,u.gb)(t.provider)),L=t&&u.Q2?.[t.provider]?.regions||null,M=async()=>{if(t?.provider){O(!0),F(null);try{let e=await fetch(`/api/providers/${t.id}/test`,{method:"POST"}),s=await e.json();F(s.valid?"success":"failed")}catch{F("failed")}finally{O(!1)}}},D=async()=>{if(t?.provider&&p.apiKey){I(!0),P(null);try{let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t.provider,apiKey:p.apiKey,...q?{providerSpecificData:f}:{},..._?{providerSpecificData:b}:{}})}),s=await e.json();P(s.valid?"success":"failed")}catch{P("failed")}finally{I(!1)}}},U=async()=>{if(t){W(!0);try{let e={name:p.name,priority:p.priority};if(!E&&p.apiKey){e.apiKey=p.apiKey;let s="success"===A;if(!s)try{I(!0),P(null);let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t.provider,apiKey:p.apiKey,...q?{providerSpecificData:f}:{},..._?{providerSpecificData:b}:{}})});s=!!(await e.json()).valid,P(s?"success":"failed")}catch{P("failed")}finally{I(!1)}s&&(e.testStatus="active",e.lastError=null,e.lastErrorAt=null)}q&&(e.providerSpecificData={azureEndpoint:f.azureEndpoint,apiVersion:f.apiVersion,deployment:f.deployment,organization:f.organization}),_&&(e.providerSpecificData={accountId:b.accountId});let s={...t.providerSpecificData||{}};e.providerSpecificData&&Object.assign(s,e.providerSpecificData);let a=parseInt(N,10);Number.isFinite(a)&&a>0?s.maxConcurrency=a:delete s.maxConcurrency;let r=k.split("\n").map(e=>e.trim()).filter(e=>e.length>0);r.length>0?s.extraApiKeys=r:delete s.extraApiKeys,L&&j&&(s.region=j),e.providerSpecificData=s,await n(e)}finally{W(!1)}}};return t?(0,a.jsx)(l.default,{isOpen:e,title:"Edit Connection",onClose:i,children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(o.default,{label:"Name",value:p.name,onChange:e=>h({...p,name:e.target.value}),placeholder:E?"Account name":"Production Key"}),E&&t.email&&(0,a.jsxs)("div",{className:"bg-sidebar/50 p-3 rounded-lg",children:[(0,a.jsx)("p",{className:"text-sm text-text-muted mb-1",children:"Email"}),(0,a.jsx)("p",{className:"font-medium",children:t.email})]}),(0,a.jsx)(o.default,{label:"Priority",type:"number",value:p.priority,onChange:e=>h({...p,priority:Number.parseInt(e.target.value,10)||1})}),!E&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(o.default,{label:"API Key",type:"password",value:p.apiKey,onChange:e=>h({...p,apiKey:e.target.value}),placeholder:"Enter new API key",hint:"Leave blank to keep the current API key.",className:"flex-1"}),(0,a.jsx)("div",{className:"pt-6",children:(0,a.jsx)(d.default,{onClick:D,disabled:!p.apiKey||$||R,variant:"secondary",children:$?"Checking...":"Check"})})]}),A&&(0,a.jsx)(c.default,{variant:"success"===A?"success":"error",children:"success"===A?"Valid":"Invalid"})]}),q&&(0,a.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,a.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Azure OpenAI Configuration"}),(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsx)(o.default,{label:"Azure Endpoint",value:f.azureEndpoint,onChange:e=>g({...f,azureEndpoint:e.target.value}),placeholder:"https://your-resource.openai.azure.com",hint:"Your Azure OpenAI resource endpoint URL"}),(0,a.jsx)(o.default,{label:"Deployment Name",value:f.deployment,onChange:e=>g({...f,deployment:e.target.value}),placeholder:"gpt-4",hint:"The deployment name in your Azure resource"}),(0,a.jsx)(o.default,{label:"API Version",value:f.apiVersion,onChange:e=>g({...f,apiVersion:e.target.value}),placeholder:"2024-10-01-preview",hint:"Azure OpenAI API version to use"}),(0,a.jsx)(o.default,{label:"Organization",value:f.organization,onChange:e=>g({...f,organization:e.target.value}),placeholder:"Organization ID",hint:"Required for billing"})]})]}),L&&(0,a.jsx)(m.default,{label:"Region",value:j,onChange:e=>y(e.target.value),options:L.map(e=>({value:e.id,label:e.label}))}),!z&&!q&&!_&&(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(d.default,{onClick:M,variant:"secondary",disabled:S,children:S?"Testing...":"Test Connection"}),T&&(0,a.jsx)(c.default,{variant:"success"===T?"success":"error",children:"success"===T?"Valid":"Failed"})]}),(0,a.jsxs)("details",{className:"bg-sidebar/30 rounded-lg border border-border",children:[(0,a.jsx)("summary",{className:"cursor-pointer p-3 text-sm font-medium select-none",children:"Advanced"}),(0,a.jsxs)("div",{className:"p-3 pt-0 flex flex-col gap-3",children:[(0,a.jsx)(o.default,{label:"Max Concurrency",type:"number",min:"1",max:"20",value:N,onChange:e=>w(e.target.value),placeholder:"(provider default)",hint:"Cap parallel requests against this account. Leave blank to use the provider default (Antigravity/Kiro=2, free=1, paid keys=unlimited)."}),!E&&(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium mb-1",children:"Extra API Keys"}),(0,a.jsx)("textarea",{value:k,onChange:e=>C(e.target.value),placeholder:"One key per line — round-robins with the primary key.\nKeys that 401 twice get marked invalid and skipped.",rows:3,className:"w-full text-sm font-mono bg-background border border-border rounded-md p-2 focus:outline-none focus:ring-2 focus:ring-accent/50"}),(0,a.jsx)("p",{className:"text-xs text-text-muted mt-1",children:"Rotation cycles through every healthy key. Failed keys are auto-recovered on the next successful call."})]})]})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.default,{onClick:U,fullWidth:!0,disabled:R,children:R?"Saving...":"Save"}),(0,a.jsx)(d.default,{onClick:i,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}x.propTypes={isOpen:i().bool.isRequired,connection:i().shape({id:i().string,name:i().string,email:i().string,priority:i().number,authType:i().string,provider:i().string,providerSpecificData:i().object}),proxyPools:i().arrayOf(i().shape({id:i().string,name:i().string})),onSave:i().func.isRequired,onClose:i().func.isRequired}},80752:(e,t,s)=>{s.d(t,{default:()=>m});var a=s(95155),r=s(12115),n=s(14051),i=s.n(n),l=s(1620),o=s(97556),d=s(81127);function c({icon:e,label:t,onClick:s,trailing:r,danger:n}){return(0,a.jsxs)("button",{onClick:s,className:`flex items-center gap-3 w-full px-4 py-2.5 text-sm transition-colors ${n?"text-red-500 hover:bg-red-500/10":"text-text-main hover:bg-black/5 dark:hover:bg-white/5"}`,children:[(0,a.jsx)("span",{className:`material-symbols-outlined text-[20px] ${n?"":"text-text-muted"}`,children:e}),(0,a.jsx)("span",{className:"flex-1 text-left",children:t}),r&&(0,a.jsx)("span",{className:"text-base",children:r})]})}function m({onLogout:e}){let[t,s]=(0,r.useState)(!1),[n,i]=(0,r.useState)(!1),[u,x]=(0,r.useState)(!1),[p,h]=(0,r.useState)(!1),{toggleTheme:f,isDark:g}=(0,l.D)(),b=(0,r.useRef)(null),v=async()=>{h(!0);try{await fetch("/api/version/shutdown",{method:"POST"})}catch(e){}h(!1),x(!1)};return(0,r.useEffect)(()=>{let e=e=>{b.current&&!b.current.contains(e.target)&&s(!1)};if(t)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[t]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"relative",ref:b,children:[(0,a.jsx)("button",{onClick:()=>s(e=>!e),className:"flex items-center justify-center p-2 rounded-lg text-text-muted hover:text-text-main hover:bg-black/5 dark:hover:bg-white/5 transition-all",title:"Menu",children:(0,a.jsx)("span",{className:"material-symbols-outlined",children:"grid_view"})}),t&&(0,a.jsxs)("div",{className:"absolute right-0 top-full mt-2 w-60 bg-surface border border-black/10 dark:border-white/10 rounded-xl shadow-2xl z-50 animate-in fade-in zoom-in-95 duration-150 overflow-hidden py-1",children:[(0,a.jsx)(c,{icon:"history",label:"Change Log",onClick:()=>{s(!1),i(!0)}}),(0,a.jsx)(c,{icon:g?"light_mode":"dark_mode",label:"Theme",onClick:()=>{f(),s(!1)}}),(0,a.jsx)(c,{icon:"power_settings_new",label:"Shutdown",danger:!0,onClick:()=>{s(!1),x(!0)}}),(0,a.jsx)(c,{icon:"logout",label:"Logout",danger:!0,onClick:()=>{s(!1),e()}})]})]}),(0,a.jsx)(o.default,{isOpen:n,onClose:()=>i(!1)}),(0,a.jsx)(d.ConfirmModal,{isOpen:u,onClose:()=>x(!1),onConfirm:v,title:"Close Proxy",message:"Are you sure you want to close the proxy server?",confirmText:"Close",cancelText:"Cancel",variant:"danger",loading:p})]})}c.propTypes={icon:i().string.isRequired,label:i().string.isRequired,onClick:i().func.isRequired,trailing:i().node,danger:i().bool},m.propTypes={onLogout:i().func.isRequired}},81127:(e,t,s)=>{s.d(t,{ConfirmModal:()=>d,default:()=>o});var a=s(95155),r=s(12115),n=s(31474),i=s(92542),l=s(97677);function o({isOpen:e,onClose:t,title:s,children:i,footer:d,size:c="md",closeOnOverlay:m=!0,showTrafficLights:u=!0,className:x}){return((0,r.useEffect)(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e]),(0,r.useEffect)(()=>{let s=s=>{"Escape"===s.key&&e&&t()};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[e,t]),e)?(0,a.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-[2px] fade-in",onClick:m?t:void 0}),(0,a.jsxs)("div",{className:(0,n.cn)("relative w-full bg-surface","border border-border-subtle","rounded-[14px] shadow-[var(--shadow-elev)]","fade-in",{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl",full:"max-w-4xl"}[c],x),children:[(s||u)&&(0,a.jsxs)("div",{className:"flex items-center justify-between p-2 border-b border-border-subtle",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[u&&(0,a.jsxs)("div",{className:"hidden md:flex items-center gap-2 mr-4 ml-2",children:[(0,a.jsx)(l.default,{text:"Close",position:"top",color:"#FF5F56",children:(0,a.jsx)("button",{onClick:t,"aria-label":"Close",title:"Close",className:"w-4 h-4 rounded-full bg-[#FF5F56] hover:brightness-90 transition-all cursor-pointer flex items-center justify-center group/dot",children:(0,a.jsx)("span",{className:"text-[9px] font-bold text-white opacity-0 group-hover/dot:opacity-100 transition-opacity leading-none",children:"✕"})})}),(0,a.jsx)("div",{className:"w-4 h-4 rounded-full bg-[#3a3a3a]/20 dark:bg-white/15 cursor-not-allowed"}),(0,a.jsx)("div",{className:"w-4 h-4 rounded-full bg-[#3a3a3a]/20 dark:bg-white/15 cursor-not-allowed"})]}),s&&(0,a.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:s})]}),(0,a.jsx)("button",{onClick:t,"aria-label":"Close",className:"md:hidden p-1.5 rounded-[10px] text-text-muted hover:bg-surface-2 hover:text-text-main transition-colors",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,a.jsx)("div",{className:"p-6 max-h-[calc(85vh-100px)] overflow-y-auto custom-scrollbar",children:i}),d&&(0,a.jsx)("div",{className:"flex items-center justify-end gap-3 p-6 border-t border-border-subtle",children:d})]})]}):null}function d({isOpen:e,onClose:t,onConfirm:s,title:r="Confirm",message:n,confirmText:l="Confirm",cancelText:c="Cancel",variant:m="danger",loading:u=!1}){return(0,a.jsx)(o,{isOpen:e,onClose:t,title:r,size:"sm",footer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.default,{variant:"ghost",onClick:t,disabled:u,children:c}),(0,a.jsx)(i.default,{variant:m,onClick:s,loading:u,children:l})]}),children:(0,a.jsx)("p",{className:"text-text-muted",children:n})})}},84588:(e,t,s)=>{s.d(t,{default:()=>n});var a=s(95155),r=s(31474);function n({children:e,title:t,subtitle:s,icon:i,action:l,padding:o="md",hover:d=!1,elev:c=!1,className:m,...u}){return(0,a.jsxs)("div",{className:(0,r.cn)("bg-surface border border-border-subtle",c?"rounded-[14px] shadow-[var(--shadow-elev)]":"rounded-[14px] shadow-[var(--shadow-soft)]",d&&"hover:shadow-[var(--shadow-warm)] hover:border-brand-500/30 transition-all cursor-pointer",{none:"",xs:"p-3",sm:"p-4",md:"p-6",lg:"p-8"}[o],m),...u,children:[(t||l)&&(0,a.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[i&&(0,a.jsx)("div",{className:"p-2 rounded-[10px] bg-bg text-text-muted",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:i})}),(0,a.jsxs)("div",{children:[t&&(0,a.jsx)("h3",{className:"text-text-main font-semibold",children:t}),s&&(0,a.jsx)("p",{className:"text-sm text-text-muted",children:s})]})]}),l]}),e]})}n.Section=function({children:e,className:t,...s}){return(0,a.jsx)("div",{className:(0,r.cn)("p-4 rounded-[10px]","bg-bg border border-border-subtle",t),...s,children:e})},n.Row=function({children:e,className:t,...s}){return(0,a.jsx)("div",{className:(0,r.cn)("p-3 -mx-3 px-3 transition-colors","border-b border-border-subtle last:border-b-0","hover:bg-surface-2/50",t),...s,children:e})},n.ListItem=function({children:e,actions:t,className:s,...n}){return(0,a.jsxs)("div",{className:(0,r.cn)("group flex items-center justify-between p-3 -mx-3 px-3","border-b border-border-subtle last:border-b-0","hover:bg-surface-2/50 transition-colors",s),...n,children:[(0,a.jsx)("div",{className:"flex-1 min-w-0",children:e}),t&&(0,a.jsx)("div",{className:"flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:t})]})}},90882:(e,t,s)=>{s.d(t,{default:()=>d});var a=s(95155),r=s(12115),n=s(14051),i=s.n(n),l=s(35497),o=s(11059);function d({isOpen:e,provider:t,providerInfo:s,onSuccess:n,onClose:i,oauthMeta:c,idcConfig:m}){let[u,x]=(0,r.useState)("waiting"),[p,h]=(0,r.useState)(null),[f,g]=(0,r.useState)(""),[b,v]=(0,r.useState)(null),[j,y]=(0,r.useState)(!1),[N,w]=(0,r.useState)(null),[k,C]=(0,r.useState)(!1),S=(0,r.useRef)(null),O=(0,r.useRef)(!1),T=(0,r.useRef)(!1),{copied:F,copy:$}=(0,o.C)(),[I,A]=(0,r.useState)(!1),[P,R]=(0,r.useState)("/callback?code=..."),W=(0,r.useRef)(!1);(0,r.useEffect)(()=>{A("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname),R(`${window.location.origin}/callback?code=...`)},[]);let E=(0,r.useCallback)(async(e,s)=>{if(p)try{let a=await fetch(`/api/oauth/${t}/exchange`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,redirectUri:p.redirectUri,codeVerifier:p.codeVerifier,state:s,...c?{meta:c}:{}})}),r=await a.json();if(!a.ok)throw Error(r.error);x("success"),n?.()}catch(e){v(e.message),x("error")}},[p,t,n]),q=(0,r.useCallback)(async e=>{if(p?.state)try{let t=await fetch("/api/oauth/xai/manual-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,state:p.state})}),s=await t.json();if(!t.ok)throw Error(s.error);x("success"),n?.()}catch(e){v(e.message),x("error")}},[p,n]),_=(0,r.useCallback)(async(e,s,a,r,i)=>{O.current=!1,C(!0);let l=Date.now()+(Number.isFinite(i)&&i>0?i:12e4);for(;Date.now()<l;){if(O.current){console.log("[OAuthModal] Polling aborted"),C(!1);return}if(await new Promise(e=>setTimeout(e,1e3*a)),O.current){console.log("[OAuthModal] Polling aborted after sleep"),C(!1);return}try{let i=await fetch(`/api/oauth/${t}/poll`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deviceCode:e,codeVerifier:s,extraData:r})}),l=await i.json();if(l.success){O.current=!0,x("success"),C(!1),n?.();return}if("expired_token"===l.error||"access_denied"===l.error)throw Error(l.errorDescription||l.error);"slow_down"===l.error&&(a=Math.min(a+5,30))}catch(e){v(e.message),x("error"),C(!1);return}}v("Authorization timeout"),x("error"),C(!1)},[t,n]),z=(0,r.useCallback)(async()=>{if(t)try{let e;if(v(null),["github","qwen","kiro","kimi-coding","kilocode","codebuddy-cn","qoder","grok-cli"].includes(t)){y(!0),x("waiting");let e=new URL(`/api/oauth/${t}/device-code`,window.location.origin);"kiro"===t&&m?.startUrl&&(e.searchParams.set("start_url",m.startUrl),m.region&&e.searchParams.set("region",m.region),e.searchParams.set("auth_method","idc"));let s=await fetch(e.toString()),a=await s.json();if(!s.ok)throw Error(a.error);w(a);let r=a.verification_uri_complete||a.verification_uri;r&&window.open(r,"_blank","noopener,noreferrer");let n="kiro"===t?{_clientId:a._clientId,_clientSecret:a._clientSecret,_region:a._region,_authMethod:a._authMethod,_startUrl:a._startUrl}:"qoder"===t?{_qoderNonce:a._qoderNonce,_qoderMachineId:a._qoderMachineId,_qoderVerifier:a.codeVerifier}:null;_(a.device_code,a.codeVerifier,a.interval||5,n,Number.isFinite(a.expires_in)&&a.expires_in>0?1e3*a.expires_in:void 0);return}let s=window.location.port||("https:"===window.location.protocol?"443":"80");e="codex"===t?"http://localhost:1455/auth/callback":"xai"===t?"http://127.0.0.1:56121/callback":`http://localhost:${s}/callback`;let a=new URL(`/api/oauth/${t}/authorize`,window.location.origin);a.searchParams.set("redirect_uri",e),c&&Object.entries(c).forEach(([e,t])=>{t&&a.searchParams.set(e,t)});let r=await fetch(a.toString()),n=await r.json();if(!r.ok)throw Error(n.error);let i=!1,l=!1;if("codex"===t)try{let t=new URL("/api/oauth/codex/start-proxy",window.location.origin);t.searchParams.set("app_port",s),t.searchParams.set("state",n.state),t.searchParams.set("code_verifier",n.codeVerifier),t.searchParams.set("redirect_uri",e);let a=await fetch(t.toString()),r=await a.json();i=r.success,l=!!r.serverSide}catch{i=!1}let o=!1,d=!1;if("xai"===t)try{let t=new URL("/api/oauth/xai/start-proxy",window.location.origin);t.searchParams.set("app_port",s),t.searchParams.set("state",n.state),t.searchParams.set("code_verifier",n.codeVerifier),t.searchParams.set("redirect_uri",e);let a=await fetch(t.toString()),r=await a.json();if(o=r.success,d=!!r.serverSide,!o&&"port_busy"===r.reason)throw Error("Port 56121 in use; close the conflicting process and retry")}catch(e){if(e?.message)throw e;o=!1}h({...n,redirectUri:e,codexServerSide:l,xaiServerSide:d}),"codex"===t&&i||"xai"===t&&o||I&&"codex"!==t&&"xai"!==t?(x("waiting"),S.current=window.open(n.authUrl,"oauth_popup","width=600,height=700"),S.current||x("input")):(x("input"),window.open(n.authUrl,"_blank"))}catch(e){v(e.message),x("error")}},[t,I,_,c,m]);(0,r.useEffect)(()=>{e&&t?T.current||(T.current=!0,h(null),g(""),v(null),y(!1),w(null),C(!1),O.current=!1,z()):e||(O.current=!0,T.current=!1,"codex"===t?fetch("/api/oauth/codex/stop-proxy").catch(()=>{}):"xai"===t&&fetch("/api/oauth/xai/stop-proxy").catch(()=>{}))},[e,t,z]),(0,r.useEffect)(()=>{let e=p?.codexServerSide?"codex":p?.xaiServerSide?"xai":null;if(!e||!p?.state||W.current)return;let t=!1,s=0,a=async()=>{if(!t&&!W.current){s+=1;try{let s=await fetch(`/api/oauth/${e}/poll-status?state=${encodeURIComponent(p.state)}`),a=await s.json();if(t||W.current)return;if("done"===a.status){W.current=!0,x("success"),n?.();return}if("error"===a.status){W.current=!0,v(a.error||"Authentication failed"),x("error");return}}catch{}if(s>=200){W.current=!0,v("Authentication timeout"),x("error");return}setTimeout(a,1500)}};return setTimeout(a,1500),()=>{t=!0}},[p,n]),(0,r.useEffect)(()=>{let e;if(!p)return;W.current=!1;let t=async e=>{if(W.current)return;let{code:t,token:s,state:a,error:r,errorDescription:n}=e;if(r){W.current=!0,v(n||r),x("error");return}(s||t)&&(W.current=!0,await E(s||t,a))},s=e=>{let s=e.origin.includes("localhost")||e.origin.includes("127.0.0.1"),a=e.origin===window.location.origin;(s||a)&&e.data?.type==="oauth_callback"&&t(e.data.data)};window.addEventListener("message",s);try{(e=new BroadcastChannel("oauth_callback")).onmessage=e=>t(e.data)}catch(e){console.log("BroadcastChannel not supported")}let a=e=>{if("oauth_callback"===e.key&&e.newValue)try{let s=JSON.parse(e.newValue);t(s),localStorage.removeItem("oauth_callback")}catch(e){console.log("Failed to parse localStorage data")}};window.addEventListener("storage",a);try{let e=localStorage.getItem("oauth_callback");if(e){let s=JSON.parse(e);s.timestamp&&Date.now()-s.timestamp<3e4&&t(s),localStorage.removeItem("oauth_callback")}}catch{}return()=>{window.removeEventListener("message",s),window.removeEventListener("storage",a),e&&e.close()}},[p,E]);let L=async()=>{try{v(null);let e=f.trim();if(e.startsWith("eyJ")&&e.includes("."))return void await E(e,null);if("xai"===t&&e&&!e.includes("://")&&!e.includes("?")&&!e.includes("code="))return void await q(e);if("kimchi"===t&&e&&!e.includes("://")&&!e.includes("?"))return void await E(e,null);let s=new URL(e),a=s.searchParams.get("code"),r=s.searchParams.get("token"),n=s.searchParams.get("state"),i=s.searchParams.get("error");if(i)throw Error(s.searchParams.get("error_description")||i);if(!a&&!r)throw Error("xai"===t?"Paste the callback URL or copied xAI code":"kimchi"===t?"No Kimchi token found in URL":"No authorization code found in URL");await E(r||a,n)}catch(e){v(e.message),x("error")}},M=(0,r.useCallback)(()=>{"codex"===t?fetch("/api/oauth/codex/stop-proxy").catch(()=>{}):"xai"===t&&fetch("/api/oauth/xai/stop-proxy").catch(()=>{}),i()},[i,t]);if(!t||!s)return null;let D="xai"===t,U=N?.verification_uri_complete||N?.verification_uri||"",K=D?"Connect Grok Build OAuth":`Connect ${s.name}`;return(0,a.jsx)(l.aF,{isOpen:e,title:K,onClose:M,size:"lg",children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[("waiting"===u||"input"===u)&&!j&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 border border-border rounded-lg bg-sidebar/50",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-base text-primary animate-spin",children:"progress_activity"}),(0,a.jsx)("span",{className:"text-sm",children:D?"Waiting for Grok Build OAuth…":"Waiting for popup authorization…"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3 my-1",children:[(0,a.jsx)("div",{className:"flex-1 h-px bg-border"}),(0,a.jsx)("span",{className:"text-xs text-text-muted uppercase tracking-wider",children:"Or paste callback URL manually"}),(0,a.jsx)("div",{className:"flex-1 h-px bg-border"})]}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"text-sm font-medium mb-2",children:["Step 1: Open this ",D?"Grok Build OAuth URL":"URL"," in your browser"]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(l.pd,{value:p?.authUrl||"",readOnly:!0,className:"flex-1 font-mono text-xs"}),(0,a.jsx)(l.$n,{variant:"secondary",icon:"auth_url"===F?"check":"content_copy",onClick:()=>$(p?.authUrl,"auth_url"),disabled:!p?.authUrl,children:"Copy"})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"text-sm font-medium mb-2",children:["Step 2: Paste the ","xai"===t?"callback URL or copied code":"callback URL"," here"]}),(0,a.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"xai"===t?"If xAI shows a code instead of redirecting, paste that code here.":"After authorization, copy the full URL from your browser."}),(0,a.jsx)(l.pd,{value:f,onChange:e=>g(e.target.value),placeholder:D?"http://127.0.0.1:56121/callback?code=... or copied code":P,className:"font-mono text-xs"})]})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(l.$n,{onClick:L,fullWidth:!0,disabled:!f,children:"Connect"}),(0,a.jsx)(l.$n,{onClick:M,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"waiting"===u&&j&&N&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"text-center py-4",children:[(0,a.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Visit the login URL below and authorize:"}),(0,a.jsxs)("div",{className:"bg-sidebar p-4 rounded-lg mb-4",children:[(0,a.jsx)("p",{className:"text-xs text-text-muted mb-1",children:"Login URL"}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("code",{className:"flex-1 text-sm break-all",children:U}),(0,a.jsx)(l.$n,{size:"sm",variant:"ghost",icon:"login_url"===F?"check":"content_copy",onClick:()=>$(U,"login_url"),disabled:!U}),(0,a.jsx)(l.$n,{size:"sm",variant:"ghost",icon:"open_in_new",onClick:()=>window.open(U,"_blank","noopener,noreferrer"),disabled:!U,children:"Open"})]})]}),(0,a.jsxs)("div",{className:"bg-primary/10 p-4 rounded-lg",children:[(0,a.jsx)("p",{className:"text-xs text-text-muted mb-1",children:"Your Code"}),(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,a.jsx)("p",{className:"text-2xl font-mono font-bold text-primary",children:N.user_code}),(0,a.jsx)(l.$n,{size:"sm",variant:"ghost",icon:"user_code"===F?"check":"content_copy",onClick:()=>$(N.user_code,"user_code")})]})]})]}),k&&(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2 text-sm text-text-muted",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),"Waiting for authorization..."]})]}),"success"===u&&(0,a.jsxs)("div",{className:"text-center py-6",children:[(0,a.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-3xl text-green-600",children:"check_circle"})}),(0,a.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connected Successfully!"}),(0,a.jsxs)("p",{className:"text-sm text-text-muted mb-4",children:["Your ",s.name," account has been connected."]}),(0,a.jsx)(l.$n,{onClick:M,fullWidth:!0,children:"Done"})]}),"error"===u&&(0,a.jsxs)("div",{className:"text-center py-6",children:[(0,a.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-3xl text-red-600",children:"error"})}),(0,a.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connection Failed"}),(0,a.jsx)("p",{className:"text-sm text-red-600 mb-4",children:b}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(l.$n,{onClick:z,variant:"secondary",fullWidth:!0,children:"Try Again"}),(0,a.jsx)(l.$n,{onClick:M,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})})}d.propTypes={isOpen:i().bool.isRequired,provider:i().string,providerInfo:i().shape({name:i().string}),onSuccess:i().func,onClose:i().func.isRequired,oauthMeta:i().object,idcConfig:i().shape({startUrl:i().string,region:i().string})}},91450:(e,t,s)=>{s.d(t,{default:()=>l});var a=s(95155),r=s(14051),n=s.n(r),i=s(38587);function l({children:e}){return(0,a.jsxs)("div",{className:"min-h-screen flex flex-col relative bg-bg transition-colors duration-500 overflow-x-hidden selection:bg-primary/20 selection:text-primary",children:[(0,a.jsx)("div",{className:"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[800px] h-[800px] bg-primary/5 dark:bg-primary/5 rounded-full blur-[100px] pointer-events-none z-0"}),(0,a.jsx)("div",{className:"fixed bottom-0 right-0 w-[600px] h-[600px] bg-orange-200/20 dark:bg-orange-900/10 rounded-full blur-[120px] pointer-events-none z-0 translate-y-1/3 translate-x-1/3"}),(0,a.jsx)("div",{className:"absolute top-6 right-6 z-20",children:(0,a.jsx)(i.default,{variant:"card"})}),(0,a.jsx)("main",{className:"flex-1 flex flex-col items-center justify-center p-4 sm:p-6 z-10 w-full h-full",children:e})]})}l.propTypes={children:n().node.isRequired}},92173:(e,t,s)=>{s.d(t,{default:()=>c});var a=s(95155),r=s(98500),n=s.n(r),i=s(90620);let l=[{label:"Features",href:"#features"},{label:"Pricing",href:"#pricing"},{label:"Changelog",href:"#"}],o=[{label:"Documentation",href:"#"},{label:"API Reference",href:"#"},{label:"Help Center",href:"#"}],d=[{label:"About",href:"#"},{label:"Blog",href:"#"},{label:"Contact",href:"#"}];function c(){return(0,a.jsx)("footer",{className:"bg-bg border-t border-border pt-16 pb-12",children:(0,a.jsxs)("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:[(0,a.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-10 mb-12",children:[(0,a.jsxs)("div",{className:"col-span-2 lg:col-span-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-6",children:[(0,a.jsx)("div",{className:"size-6 text-primary",children:(0,a.jsx)("svg",{className:"w-full h-full",fill:"currentColor",viewBox:"0 0 48 48",children:(0,a.jsx)("path",{clipRule:"evenodd",d:"M12.0799 24L4 19.2479L9.95537 8.75216L18.04 13.4961L18.0446 4H29.9554L29.96 13.4961L38.0446 8.75216L44 19.2479L35.92 24L44 28.7521L38.0446 39.2479L29.96 34.5039L29.9554 44H18.0446L18.04 34.5039L9.95537 39.2479L4 28.7521L12.0799 24Z",fillRule:"evenodd"})})}),(0,a.jsx)("span",{className:"text-xl font-bold text-text-main",children:i.vQ.name})]}),(0,a.jsx)("p",{className:"text-text-muted mb-6 max-w-sm font-light",children:"The unified interface for modern AI infrastructure. Secure, observable, and scalable."}),(0,a.jsxs)("div",{className:"flex gap-4",children:[(0,a.jsx)("a",{href:"#",className:"text-gray-400 hover:text-primary transition-colors","aria-label":"Twitter",children:(0,a.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07 4.28 4.28 0 0 0 4 2.98 8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21 16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23z"})})}),(0,a.jsx)("a",{href:"#",className:"text-gray-400 hover:text-primary transition-colors","aria-label":"GitHub",children:(0,a.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0 1 12 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0 0 22 12.017C22 6.484 17.522 2 12 2z"})})})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Product"}),(0,a.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:l.map(e=>(0,a.jsx)("li",{children:(0,a.jsx)(n(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Resources"}),(0,a.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:o.map(e=>(0,a.jsx)("li",{children:(0,a.jsx)(n(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Company"}),(0,a.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:d.map(e=>(0,a.jsx)("li",{children:(0,a.jsx)(n(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]})]}),(0,a.jsxs)("div",{className:"border-t border-border pt-8 flex flex-col md:flex-row justify-between items-center gap-4",children:[(0,a.jsxs)("p",{className:"text-sm text-text-muted",children:["\xa9 ",new Date().getFullYear()," ",i.vQ.name," Inc. All rights reserved."]}),(0,a.jsxs)("div",{className:"flex gap-6 text-sm text-text-muted",children:[(0,a.jsx)(n(),{href:"#",className:"hover:text-primary transition-colors",children:"Privacy Policy"}),(0,a.jsx)(n(),{href:"#",className:"hover:text-primary transition-colors",children:"Terms of Service"})]})]})]})})}},92542:(e,t,s)=>{s.d(t,{default:()=>l});var a=s(95155),r=s(31474);let n={primary:"bg-brand-500 hover:bg-brand-600 text-white shadow-sm disabled:bg-surface-3 disabled:text-text-muted",secondary:"bg-surface-2 hover:bg-surface-3 text-text-main border border-border disabled:opacity-50",outline:"border border-border text-text-main hover:bg-surface-2 hover:border-brand-500/40",ghost:"text-text-muted hover:bg-surface-2 hover:text-text-main",danger:"bg-red-500 hover:bg-red-600 text-white shadow-sm disabled:bg-surface-3 disabled:text-text-muted",success:"bg-green-600 hover:bg-green-700 text-white shadow-sm disabled:bg-surface-3 disabled:text-text-muted"},i={sm:"h-7 px-3 text-xs rounded-[8px]",md:"h-9 px-4 text-sm rounded-[10px]",lg:"h-11 px-6 text-sm rounded-[10px]"};function l({children:e,variant:t="primary",size:s="md",icon:o,iconRight:d,disabled:c=!1,loading:m=!1,fullWidth:u=!1,className:x,...p}){return(0,a.jsxs)("button",{className:(0,r.cn)("inline-flex items-center justify-center gap-2 font-semibold transition-all duration-150 ease-out cursor-pointer","active:scale-[0.97] disabled:opacity-50 disabled:cursor-not-allowed disabled:active:scale-100",n[t],i[s],u&&"w-full",x),disabled:c||m,...p,children:[m?(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-[18px]",children:"progress_activity"}):o?(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:o}):null,e,d&&!m&&(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:d})]})}},92622:(e,t,s)=>{s.d(t,{default:()=>y});var a=s(95155),r=s(12115),n=s(14051),i=s.n(n),l=s(98500),o=s.n(l),d=s(73321),c=s(31474),m=s(90620),u=s(52679),x=s(11059),p=s(92542),h=s(81127);let f=["embedding","image","tts","stt"],g="/dashboard/media-providers/web",b=[{href:"/dashboard/endpoint",label:"Endpoint",icon:"api"},{href:"/dashboard/providers",label:"Providers",icon:"dns"},{href:"/dashboard/combos",label:"Combos",icon:"layers"},{href:"/dashboard/usage",label:"Usage",icon:"bar_chart"},{href:"/dashboard/quota",label:"Quota Tracker",icon:"data_usage"},{href:"/dashboard/token-saver",label:"Token Saver",icon:"savings"},{href:"/dashboard/cli-tools",label:"CLI Tools",icon:"terminal"}],v=[{href:"/dashboard/console-log",label:"Console Log",icon:"terminal"},{href:"/dashboard/translator",label:"Translator",icon:"translate"}],j=[{href:"/dashboard/proxy-pools",label:"Proxy Pools",icon:"lan"},{href:"/dashboard/skills",label:"Skills",icon:"extension"},{href:"/dashboard/environment",label:"Environment",icon:"tune"}];function y({onClose:e}){let t=(0,d.usePathname)(),[s,n]=(0,r.useState)(!1),[i,l]=(0,r.useState)(!1),[w,k]=(0,r.useState)(null),[C,S]=(0,r.useState)(!1),[O,T]=(0,r.useState)(!1),[F,$]=(0,r.useState)(0),[I,A]=(0,r.useState)(!1),{copied:P,copy:R}=(0,x.C)(2e3),W=m.h0.installCmdLatest;(0,r.useEffect)(()=>{fetch("/api/settings").then(e=>e.json()).then(e=>{e.enableTranslator&&A(!0)}).catch(()=>{})},[]),(0,r.useEffect)(()=>{fetch("/api/version").then(e=>e.json()).then(e=>{e.hasUpdate&&k(e)}).catch(()=>{})},[]);let E=e=>"/dashboard/endpoint"===e?"/dashboard"===t||t.startsWith("/dashboard/endpoint"):t.startsWith(e),q=async()=>{try{await navigator.clipboard.writeText(W)}catch{}R(W);let e=m.h0.shutdownCountdownSec;$(e);let t=setInterval(()=>{$(e-=1),e<=0&&(clearInterval(t),fetch("/api/version/shutdown",{method:"POST"}).catch(()=>{}),l(!0))},1e3)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("aside",{className:"flex w-72 flex-col border-r border-border-subtle bg-vibrancy backdrop-blur-xl transition-colors duration-300 min-h-full",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 px-6 pt-5 pb-2",children:[(0,a.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#FF5F56]"}),(0,a.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#FFBD2E]"}),(0,a.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#27C93F]"})]}),(0,a.jsxs)("div",{className:"px-6 py-4 flex flex-col gap-2",children:[(0,a.jsxs)(o(),{href:"/dashboard",className:"flex items-center gap-3 group",children:[(0,a.jsx)("div",{className:"flex items-center justify-center size-9 rounded-[10px] bg-gradient-to-br from-brand-500 to-brand-700 shadow-[var(--shadow-warm)] transition-transform group-hover:scale-[1.03]",children:(0,a.jsx)("svg",{viewBox:"0 0 400 400",className:"size-[22px]","aria-hidden":"true",children:(0,a.jsxs)("g",{fill:"none",stroke:"#ffffff",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,a.jsx)("polyline",{points:"128,104 184,200 128,296",strokeWidth:"28",strokeOpacity:"0.25"}),(0,a.jsx)("polyline",{points:"172,100 260,200 172,300",strokeWidth:"52"})]})})}),(0,a.jsxs)("div",{className:"flex flex-col leading-none",children:[(0,a.jsx)("h1",{className:"text-[17px] font-bold text-text-main uppercase",style:{fontFamily:"var(--font-display)",letterSpacing:"0.04em"},children:m.vQ.name}),(0,a.jsxs)("span",{className:"text-[11px] text-text-muted mt-[3px] font-medium tabular-nums",children:["v",m.vQ.version]})]})]}),w&&(0,a.jsxs)("div",{className:"flex flex-col gap-1.5 rounded p-1 -m-1",children:[(0,a.jsxs)("span",{className:"text-xs font-semibold text-green-600 dark:text-amber-500",children:["↑ New version available: v",w.latestVersion]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("button",{onClick:()=>S(!0),className:"px-2 py-1 rounded bg-green-600 hover:bg-green-700 dark:bg-amber-500 dark:hover:bg-amber-600 text-white text-[11px] font-semibold transition-colors cursor-pointer",children:"Update now"}),(0,a.jsx)("button",{onClick:()=>R(W),title:"Copy install command",className:"flex-1 text-left hover:opacity-80 transition-opacity cursor-pointer min-w-0",children:(0,a.jsx)("code",{className:"block text-[10px] text-green-600/80 dark:text-amber-400/70 font-mono truncate",children:P?"✓ copied!":W})})]})]})]}),(0,a.jsxs)("nav",{className:"flex-1 px-4 py-2 space-y-0.5 overflow-y-auto custom-scrollbar",children:[b.map(t=>(0,a.jsxs)(o(),{href:t.href,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",E(t.href)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,a.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[18px]",E(t.href)?"fill-1":"group-hover:text-primary transition-colors"),children:t.icon}),(0,a.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href)),(0,a.jsxs)("div",{className:"pt-3 mt-2 space-y-0.5",children:[(0,a.jsx)("p",{className:"px-4 text-xs font-semibold text-text-muted/60 uppercase tracking-wider mb-2",children:"System"}),(0,a.jsxs)("button",{onClick:()=>n(e=>!e),className:(0,c.cn)("w-full flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",t.startsWith("/dashboard/media-providers")?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"perm_media"}),(0,a.jsx)("span",{className:"text-[13px] font-medium flex-1 text-left",children:"Media Providers"}),(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px] transition-transform",style:{transform:s?"rotate(180deg)":"rotate(0deg)"},children:"expand_more"})]}),s&&(0,a.jsxs)("div",{className:"pl-4",children:[u.rj.filter(e=>f.includes(e.id)).map(s=>(0,a.jsxs)(o(),{href:`/dashboard/media-providers/${s.id}`,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-4 py-1 rounded-lg transition-all group",t.startsWith(`/dashboard/media-providers/${s.id}`)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:s.icon}),(0,a.jsx)("span",{className:"text-sm",children:s.label})]},s.id)),(0,a.jsxs)(o(),{href:g,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-4 py-1 rounded-lg transition-all group",t.startsWith(g)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"travel_explore"}),(0,a.jsx)("span",{className:"text-sm",children:"Web Fetch & Search"})]},"web")]}),j.map(t=>(0,a.jsxs)(o(),{href:t.href,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",E(t.href)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,a.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[18px]",E(t.href)?"fill-1":"group-hover:text-primary transition-colors"),children:t.icon}),(0,a.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href)),v.map(t=>"/dashboard/translator"!==t.href||I?(0,a.jsxs)(o(),{href:t.href,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",E(t.href)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,a.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[18px]",E(t.href)?"fill-1":"group-hover:text-primary transition-colors"),children:t.icon}),(0,a.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href):null),(0,a.jsxs)(o(),{href:"/dashboard/profile",onClick:e,className:(0,c.cn)("flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",E("/dashboard/profile")?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,a.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[18px]",E("/dashboard/profile")?"fill-1":"group-hover:text-primary transition-colors"),children:"settings"}),(0,a.jsx)("span",{className:"text-[13px] font-medium",children:"Settings"})]})]})]})]}),(0,a.jsx)(h.ConfirmModal,{isOpen:C,onClose:()=>S(!1),onConfirm:()=>{S(!1),T(!0)},title:"Update kRouter",message:`Show install command for v${w?.latestVersion||""}? You can copy it and shutdown to install manually.`,confirmText:"Show Command",cancelText:"Cancel",variant:"primary"}),(i||O)&&(0,a.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/80 backdrop-blur-sm p-6",children:O?(0,a.jsx)(N,{latestVersion:w?.latestVersion,installCmd:W,copied:P,onCopyAndShutdown:q,onCancel:()=>{T(!1),$(0)},countdown:F,isDisconnected:i}):(0,a.jsxs)("div",{className:"text-center p-8",children:[(0,a.jsx)("div",{className:"flex items-center justify-center size-16 rounded-full bg-red-500/20 text-red-500 mx-auto mb-4",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[32px]",children:"power_off"})}),(0,a.jsx)("h2",{className:"text-xl font-semibold text-white mb-2",children:"Server Disconnected"}),(0,a.jsx)("p",{className:"text-text-muted mb-6",children:"The proxy server has been stopped."}),(0,a.jsx)(p.default,{variant:"secondary",onClick:()=>globalThis.location.reload(),children:"Reload Page"})]})})]})}function N({latestVersion:e,installCmd:t,copied:s,onCopyAndShutdown:r,onCancel:n,countdown:i,isDisconnected:l}){let o=i>0;return(0,a.jsxs)("div",{className:"w-full max-w-lg rounded-xl bg-neutral-900/95 border border-white/10 p-6 text-white",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"flex items-center justify-center size-11 rounded-full bg-amber-500/20 text-amber-400",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[24px]",children:"content_copy"})}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("h2",{className:"text-lg font-semibold",children:["Update kRouter",e?` to v${e}`:""]}),(0,a.jsx)("p",{className:"text-xs text-white/60",children:l?"Server stopped. Paste the command into a terminal to install.":o?`Command copied. Server will stop in ${i}s...`:"Click the button below to copy the install command and shutdown."})]})]}),(0,a.jsx)("p",{className:"text-sm text-white/80 mb-2",children:"Install command:"}),(0,a.jsx)("div",{className:"w-full px-3 py-2 rounded bg-white/5 mb-4",children:(0,a.jsx)("code",{className:"text-xs font-mono text-amber-400 break-all",children:t})}),(0,a.jsxs)("ol",{className:"text-xs text-white/70 space-y-1 list-decimal list-inside mb-4",children:[(0,a.jsxs)("li",{children:["Click ",(0,a.jsx)("strong",{children:"Copy & Shutdown"})," below."]}),(0,a.jsx)("li",{children:"Paste the command into your terminal and press Enter."}),(0,a.jsxs)("li",{children:["Run ",(0,a.jsx)("code",{className:"px-1 rounded bg-white/10 text-green-400",children:"krouter"})," again after install."]})]}),l?(0,a.jsx)(p.default,{variant:"secondary",fullWidth:!0,onClick:()=>globalThis.location.reload(),children:"Reload Page"}):(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(p.default,{variant:"secondary",onClick:n,disabled:o,children:"Cancel"}),(0,a.jsx)(p.default,{variant:"primary",fullWidth:!0,onClick:r,disabled:o,children:s?"✓ Copied — shutting down...":o?`Shutting down in ${i}s`:"Copy & Shutdown"})]})]})}y.propTypes={onClose:i().func},N.propTypes={latestVersion:i().string,installCmd:i().string.isRequired,copied:i().bool,onCopyAndShutdown:i().func.isRequired,onCancel:i().func.isRequired,countdown:i().number,isDisconnected:i().bool}},94230:(e,t,s)=>{s.d(t,{default:()=>d});var a=s(95155),r=s(12115),n=s(14051),i=s.n(n),l=s(35497),o=s(11059);function d({isOpen:e,provider:t,onSuccess:s,onClose:n}){let[i,c]=(0,r.useState)("loading"),[m,u]=(0,r.useState)(null),[x,p]=(0,r.useState)(""),[h,f]=(0,r.useState)(""),g=(0,r.useRef)(null),{copied:b,copy:v}=(0,o.C)();(0,r.useEffect)(()=>{if(e&&t)return(async()=>{try{u(null),c("loading");let e=await fetch(`/api/oauth/kiro/social-authorize?provider=${t}`),a=await e.json();if(!e.ok)throw Error(a.error||"Failed to start authorization");p(a.userCode||""),f(a.authUrl||""),c("polling");let r=1e3*(a.interval||5);g.current=setInterval(async()=>{try{let e=await fetch("/api/oauth/kiro/social-exchange",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deviceCode:a.deviceCode,provider:t})});(await e.json()).success&&(g.current&&clearInterval(g.current),g.current=null,c("success"),s?.())}catch{}},r)}catch(e){u(e.message),c("error")}})(),()=>{g.current&&(clearInterval(g.current),g.current=null)}},[e,t,s]);let j=()=>{g.current&&(clearInterval(g.current),g.current=null),n()},y="google"===t?"Google":"GitHub";return(0,a.jsx)(l.aF,{isOpen:e,title:`Connect Kiro via ${y}`,onClose:j,size:"lg",children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:["loading"===i&&(0,a.jsxs)("div",{className:"text-center py-6",children:[(0,a.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-primary/10 flex items-center justify-center",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-3xl text-primary animate-spin",children:"progress_activity"})}),(0,a.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Initializing..."}),(0,a.jsxs)("p",{className:"text-sm text-text-muted",children:["Setting up ",y," authentication"]})]}),"polling"===i&&(0,a.jsxs)("div",{className:"text-center py-6",children:[(0,a.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-primary/10 flex items-center justify-center",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-3xl text-primary animate-pulse",children:"open_in_browser"})}),(0,a.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Open this link in an Incognito window"}),(0,a.jsx)("p",{className:"text-sm text-text-muted mb-3",children:"Use an Incognito/Private window to avoid session conflicts with existing accounts."}),h&&(0,a.jsx)("div",{className:"mb-4",children:(0,a.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,a.jsx)("a",{href:h,target:"_blank",rel:"noopener noreferrer",className:"text-xs font-mono text-primary underline break-all max-w-md inline-block",children:h.length>80?h.slice(0,80)+"...":h}),(0,a.jsx)("button",{onClick:()=>v(h),className:"shrink-0 p-1 rounded hover:bg-sidebar",title:b?"Copied!":"Copy link",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-base",children:b?"check":"content_copy"})})]})}),x&&(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("p",{className:"text-xs text-text-muted mb-1",children:"Verification code"}),(0,a.jsx)("p",{className:"font-mono text-2xl font-bold tracking-widest",children:x})]}),(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2 text-sm text-text-muted",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-base animate-spin",children:"progress_activity"}),"Waiting for authorization..."]}),(0,a.jsx)("div",{className:"mt-6",children:(0,a.jsx)(l.$n,{onClick:j,variant:"ghost",fullWidth:!0,children:"Cancel"})})]}),"success"===i&&(0,a.jsxs)("div",{className:"text-center py-6",children:[(0,a.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-3xl text-green-600",children:"check_circle"})}),(0,a.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connected Successfully!"}),(0,a.jsxs)("p",{className:"text-sm text-text-muted mb-4",children:["Your Kiro account via ",y," has been connected."]}),(0,a.jsx)(l.$n,{onClick:j,fullWidth:!0,children:"Done"})]}),"error"===i&&(0,a.jsxs)("div",{className:"text-center py-6",children:[(0,a.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-3xl text-red-600",children:"error"})}),(0,a.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connection Failed"}),(0,a.jsx)("p",{className:"text-sm text-red-600 mb-4",children:m}),(0,a.jsx)(l.$n,{onClick:j,variant:"ghost",fullWidth:!0,children:"Close"})]})]})})}d.propTypes={isOpen:i().bool.isRequired,provider:i().oneOf(["google","github"]).isRequired,onSuccess:i().func,onClose:i().func.isRequired}},95088:(e,t,s)=>{s.d(t,{default:()=>d});var a=s(95155),r=s(12115),n=s(14051),i=s.n(n),l=s(35497);let o="https://gitlab.com";function d({isOpen:e,providerInfo:t,onSuccess:s,onClose:n}){let i,[c,m]=(0,r.useState)(null),[u,x]=(0,r.useState)(o),[p,h]=(0,r.useState)(""),[f,g]=(0,r.useState)(""),[b,v]=(0,r.useState)(""),[j,y]=(0,r.useState)(!1),[N,w]=(0,r.useState)(null),[k,C]=(0,r.useState)(!1),[S,O]=(0,r.useState)(null),T=()=>{m(null),x(o),h(""),g(""),v(""),w(null),y(!1),C(!1),O(null),n()},F=async()=>{if(!b.trim())return void w("Personal Access Token is required");y(!0),w(null);try{let e=await fetch("/api/oauth/gitlab/pat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:b.trim(),baseUrl:u.trim()||o})}),t=await e.json();if(!e.ok)throw Error(t.error||"Authentication failed");s?.(),T()}catch(e){w(e.message)}finally{y(!1)}};return e?k&&S?(0,a.jsx)(l.LF,{isOpen:!0,provider:"gitlab",providerInfo:t,oauthMeta:S,onSuccess:()=>{s?.(),T()},onClose:()=>{C(!1),O(null)}}):(0,a.jsx)(l.aF,{isOpen:e,title:"Connect GitLab Duo",onClose:T,size:"lg",children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[!c&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Choose how to authenticate with GitLab Duo:"}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,a.jsxs)("button",{onClick:()=>m("oauth"),className:"flex flex-col items-center gap-2 p-4 rounded-lg border border-border hover:border-primary hover:bg-primary/5 transition-colors text-left",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-2xl text-primary",children:"lock_open"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:"OAuth App"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Use a GitLab OAuth application"})]})]}),(0,a.jsxs)("button",{onClick:()=>m("pat"),className:"flex flex-col items-center gap-2 p-4 rounded-lg border border-border hover:border-primary hover:bg-primary/5 transition-colors text-left",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-2xl text-primary",children:"key"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:"Personal Access Token"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Use a GitLab PAT with api scope"})]})]})]})]}),"oauth"===c&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:["Create an OAuth app at"," ",(0,a.jsx)("a",{href:`${u.trim()||o}/-/profile/applications`,target:"_blank",rel:"noreferrer",className:"text-primary underline",children:"GitLab Applications"})," ","with redirect URI"," ",(0,a.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:(i=window.location.port||("https:"===window.location.protocol?"443":"80"),`http://localhost:${i}/callback`)})]}),(0,a.jsx)(l.pd,{label:"GitLab Base URL",value:u,onChange:e=>x(e.target.value),placeholder:o}),(0,a.jsx)(l.pd,{label:"Client ID",value:p,onChange:e=>h(e.target.value),placeholder:"Your OAuth application client ID"}),(0,a.jsx)(l.pd,{label:"Client Secret (optional for PKCE)",value:f,onChange:e=>g(e.target.value),placeholder:"Leave empty for public PKCE app"}),N&&(0,a.jsx)("p",{className:"text-sm text-red-500",children:N}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(l.$n,{onClick:()=>{p.trim()?(w(null),O({baseUrl:u.trim()||o,clientId:p.trim(),clientSecret:f.trim()}),C(!0)):w("Client ID is required")},fullWidth:!0,disabled:!p.trim(),children:"Authorize"}),(0,a.jsx)(l.$n,{onClick:()=>{m(null),w(null)},variant:"ghost",fullWidth:!0,children:"Back"})]})]}),"pat"===c&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:["Create a PAT at"," ",(0,a.jsx)("a",{href:`${u.trim()||o}/-/user_settings/personal_access_tokens`,target:"_blank",rel:"noreferrer",className:"text-primary underline",children:"GitLab Access Tokens"})," ","with scopes: ",(0,a.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"api"}),","," ",(0,a.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"read_user"}),", and"," ",(0,a.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"ai_features"}),"."]}),(0,a.jsx)(l.pd,{label:"GitLab Base URL",value:u,onChange:e=>x(e.target.value),placeholder:o}),(0,a.jsx)(l.pd,{label:"Personal Access Token",value:b,onChange:e=>v(e.target.value),placeholder:"glpat-xxxxxxxxxxxxxxxxxxxx",type:"password"}),N&&(0,a.jsx)("p",{className:"text-sm text-red-500",children:N}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(l.$n,{onClick:F,fullWidth:!0,disabled:!b.trim()||j,loading:j,children:"Connect"}),(0,a.jsx)(l.$n,{onClick:()=>{m(null),w(null)},variant:"ghost",fullWidth:!0,children:"Back"})]})]})]})}):null}d.propTypes={isOpen:i().bool.isRequired,providerInfo:i().shape({name:i().string}),onSuccess:i().func,onClose:i().func.isRequired}},96748:(e,t,s)=>{s.d(t,{default:()=>d});var a=s(95155),r=s(12115),n=s(14051),i=s.n(n),l=s(35497);let o="https://api.openai.com/v1";function d({isOpen:e,onClose:t,onCreated:s,onSaved:n,node:i}){let c=!!i,[m,u]=(0,r.useState)({name:"",prefix:"",baseUrl:o}),[x,p]=(0,r.useState)(!1),[h,f]=(0,r.useState)(""),[g,b]=(0,r.useState)(""),[v,j]=(0,r.useState)(!1),[y,N]=(0,r.useState)(null);(0,r.useEffect)(()=>{e&&(N(null),f(""),b(""),c?u({name:i.name||"",prefix:i.prefix||"",baseUrl:i.baseUrl||o}):u({name:"",prefix:"",baseUrl:o}))},[e,c,i]);let w=async()=>{if(m.name.trim()&&m.prefix.trim()&&m.baseUrl.trim()){p(!0);try{let e=c?`/api/provider-nodes/${i.id}`:"/api/provider-nodes",t=c?"PUT":"POST",a={name:m.name,prefix:m.prefix,baseUrl:m.baseUrl};c||(a.type="custom-embedding");let r=await fetch(e,{method:t,headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),l=await r.json();r.ok&&(c?n?.(l.node):s?.(l.node))}catch(e){console.log("Error saving custom embedding node:",e)}finally{p(!1)}}},k=async()=>{j(!0);try{let e=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:m.baseUrl,apiKey:h,type:"custom-embedding",modelId:g.trim()||void 0})}),t=await e.json();N(t)}catch{N({valid:!1,error:"Network error"})}finally{j(!1)}};return(0,a.jsx)(l.aF,{isOpen:e,title:c?"Edit Custom Embedding":"Add Custom Embedding",onClose:t,children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(l.pd,{label:"Name",value:m.name,onChange:e=>u({...m,name:e.target.value}),placeholder:"Voyage AI",hint:"Required. A friendly label for this embedding provider."}),(0,a.jsx)(l.pd,{label:"Prefix",value:m.prefix,onChange:e=>u({...m,prefix:e.target.value}),placeholder:"voyage",hint:"Required. Used as the provider prefix for model IDs (e.g. voyage/voyage-3)."}),(0,a.jsx)(l.pd,{label:"Base URL",value:m.baseUrl,onChange:e=>u({...m,baseUrl:e.target.value}),placeholder:"https://api.voyageai.com/v1",hint:"Most embedding APIs are OpenAI-compatible: Voyage, Cohere, Jina, Mistral, Together..."}),(0,a.jsx)(l.pd,{label:"API Key (for Check)",type:"password",value:h,onChange:e=>f(e.target.value)}),(0,a.jsx)(l.pd,{label:"Model ID (for Check)",value:g,onChange:e=>b(e.target.value),placeholder:"e.g. voyage-3, embed-english-v3.0, text-embedding-3-small",hint:"Required for validation. Will send a test embeddings request."}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(l.$n,{onClick:k,disabled:!h||!g.trim()||v||!m.baseUrl.trim(),variant:"secondary",children:v?"Checking...":"Check"}),(()=>{if(!y)return null;let{valid:e,error:t,dimensions:s}=y;return e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.Ex,{variant:"success",children:"Valid"}),s&&(0,a.jsxs)("span",{className:"text-sm text-text-muted",children:[s," dims"]})]}):(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)(l.Ex,{variant:"error",children:"Invalid"}),t&&(0,a.jsx)("span",{className:"text-sm text-red-500",children:t})]})})()]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(l.$n,{onClick:w,fullWidth:!0,disabled:!m.name.trim()||!m.prefix.trim()||!m.baseUrl.trim()||x,children:x?c?"Saving...":"Creating...":c?"Save":"Create"}),(0,a.jsx)(l.$n,{onClick:t,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})}d.propTypes={isOpen:i().bool.isRequired,onClose:i().func.isRequired,onCreated:i().func,onSaved:i().func,node:i().shape({id:i().string,name:i().string,prefix:i().string,baseUrl:i().string})}},97556:(e,t,s)=>{s.d(t,{default:()=>c});var a=s(95155),r=s(12115),n=s(47650),i=s(14051),l=s.n(i),o=s(9233),d=s(90620);function c({isOpen:e,onClose:t}){let[s,i]=(0,r.useState)(""),[l,m]=(0,r.useState)(!1),[u,x]=(0,r.useState)(""),p=(0,r.useRef)(null);return((0,r.useEffect)(()=>{e&&!s&&(m(!0),x(""),fetch(d.Nu.changelogUrl).then(e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);return e.text()}).then(e=>i(o.xI.parse(e))).catch(e=>x(e.message||"Failed to load")).finally(()=>m(!1)))},[e,s]),(0,r.useEffect)(()=>{let s=e=>{p.current&&!p.current.contains(e.target)&&t()};if(e)return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[e,t]),!e||"u"<typeof document)?null:(0,n.createPortal)((0,a.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-black/30 backdrop-blur-sm",onClick:t}),(0,a.jsxs)("div",{ref:p,className:"relative w-full bg-surface border border-black/10 dark:border-white/10 rounded-xl shadow-2xl animate-in fade-in zoom-in-95 duration-200 max-w-3xl flex flex-col max-h-[85vh]",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between p-3 border-b border-black/5 dark:border-white/5",children:[(0,a.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:"Change Log"}),(0,a.jsx)("button",{onClick:t,className:"p-1.5 rounded-lg text-text-muted hover:bg-black/5 dark:hover:bg-white/5 transition-colors","aria-label":"Close",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,a.jsxs)("div",{className:"p-6 overflow-y-auto flex-1",children:[l&&(0,a.jsxs)("div",{className:"flex items-center justify-center py-10 text-text-muted",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin mr-2",children:"progress_activity"}),"Loading..."]}),u&&(0,a.jsxs)("div",{className:"text-red-500 py-4",children:["Failed to load changelog: ",u]}),!l&&!u&&s&&(0,a.jsx)("div",{className:"changelog-body text-text-main",dangerouslySetInnerHTML:{__html:s}})]})]})]}),document.body)}o.xI.setOptions({gfm:!0,breaks:!0}),c.propTypes={isOpen:l().bool.isRequired,onClose:l().func.isRequired}},97677:(e,t,s)=>{s.d(t,{default:()=>r});var a=s(95155);function r({text:e,children:t,position:s="top",color:n}){let i=n?"":"bg-gray-900";return(0,a.jsxs)("div",{className:"relative inline-flex group",children:[t,(0,a.jsx)("div",{className:`pointer-events-none absolute ${{top:"bottom-full left-1/2 -translate-x-1/2 mb-1.5",bottom:"top-full left-1/2 -translate-x-1/2 mt-1.5",left:"right-full top-1/2 -translate-y-1/2 mr-1.5",right:"left-full top-1/2 -translate-y-1/2 ml-1.5"}[s]} z-50 w-max max-w-56 rounded px-2 py-1 text-[11px] leading-snug ${i} text-white opacity-0 group-hover:opacity-100 transition-opacity duration-150 whitespace-normal`,style:n?{backgroundColor:n}:{},children:e})]})}},98542:(e,t,s)=>{s.d(t,{default:()=>n});var a=s(95155),r=s(31474);function n({checked:e=!1,onChange:t,label:s,description:i,disabled:l=!1,size:o="md",className:d}){let c={sm:{track:"w-8 h-4",thumb:"size-3",translate:"translate-x-4"},md:{track:"w-11 h-6",thumb:"size-5",translate:"translate-x-5"},lg:{track:"w-14 h-7",thumb:"size-6",translate:"translate-x-7"}};return(0,a.jsxs)("div",{className:(0,r.cn)("flex items-center gap-3",l&&"opacity-50 cursor-not-allowed",d),children:[(0,a.jsx)("button",{type:"button",role:"switch","aria-checked":e,disabled:l,onClick:()=>{!l&&t&&t(!e)},className:(0,r.cn)("relative inline-flex shrink-0 cursor-pointer rounded-full","transition-colors duration-200 ease-in-out","focus:outline-none focus:ring-2 focus:ring-brand-500/30",e?"bg-brand-500":"bg-surface-3",c[o].track,l&&"cursor-not-allowed"),children:(0,a.jsx)("span",{className:(0,r.cn)("pointer-events-none inline-block rounded-full bg-white shadow-sm","transform transition duration-200 ease-in-out",e?c[o].translate:"translate-x-0.5",c[o].thumb,"mt-0.5")})}),(s||i)&&(0,a.jsxs)("div",{className:"flex flex-col",children:[s&&(0,a.jsx)("span",{className:"text-sm font-medium text-text-main",children:s}),i&&(0,a.jsx)("span",{className:"text-xs text-text-muted",children:i})]})]})}}}]);
7
+ `,children:(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[k.includes(t.value)&&!r&&(0,a.jsx)("span",{className:"material-symbols-outlined leading-none",style:{fontSize:"10px"},children:"check"}),r?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[11px]",children:"edit"}),t.name]}):t.isCustom?(0,a.jsxs)(a.Fragment,{children:[t.name,(0,a.jsx)("span",{className:"text-[9px] opacity-60 font-normal",children:"custom"})]}):t.name,l&&(l.vision||l.pdf||l.reasoning)&&(0,a.jsx)(d.default,{caps:l,size:12,colorOverride:s||k.includes(t.value)?"text-white/85":void 0})]})},t.value)})})]},e)),0===Object.keys(G).length&&0===V.length&&(0,a.jsxs)("div",{className:"text-center py-4 text-text-muted",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-2xl mb-1 block",children:"search_off"}),(0,a.jsx)("p",{className:"text-xs",children:"No models found"})]})]})]})}v.propTypes={isOpen:i().bool.isRequired,onClose:i().func.isRequired,onSelect:i().func.isRequired,onDeselect:i().func,selectedModel:i().string,activeProviders:i().arrayOf(i().shape({provider:i().string.isRequired})),title:i().string,modelAliases:i().object,kindFilter:i().string,addedModelValues:i().arrayOf(i().string),closeOnSelect:i().bool}},51825:(e,t,s)=>{s.d(t,{default:()=>i});var a=s(95155),r=s(84588);let n={mode:{label:"Mode",format:e=>e},defaultModel:{label:"Model",format:e=>e,mono:!0},baseUrl:{label:"Endpoint",format:e=>e,isLink:!0,mono:!0},costPerQuery:{label:"Cost / call",format:e=>0===e?"Free":`$${e.toFixed(4)}`},pricingUrl:{label:"Pricing",format:()=>"View pricing",isLink:!0},freeTier:{label:"Free tier",format:e=>e},freeMonthlyQuota:{label:"Free quota",format:e=>0===e?"—":e>=999999?"Unlimited":`${e.toLocaleString()} / mo`},searchTypes:{label:"Types",format:e=>e.join(", ")},formats:{label:"Formats",format:e=>e.join(", ")},maxMaxResults:{label:"Max results",format:e=>e},maxCharacters:{label:"Max chars",format:e=>e.toLocaleString()}};function i({config:e,provider:t,title:s="Provider Info"}){if(!e)return null;let l=Object.entries(n).filter(([t])=>void 0!==e[t]&&null!==e[t]&&""!==e[t]).map(([t,s])=>({key:t,label:s.label,value:s.format(e[t]),isLink:s.isLink,mono:s.mono,raw:e[t]})),o=t?.notice?.apiKeyUrl||t?.website,d=t?.notice?.text;return(0,a.jsxs)(r.default,{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,a.jsx)("h2",{className:"text-lg font-semibold",children:s}),o&&(0,a.jsxs)("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline inline-flex items-center gap-1",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"open_in_new"}),"Get API Key"]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-2",children:[l.map(e=>(0,a.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,a.jsx)("span",{className:"text-xs text-text-muted w-28 shrink-0",children:e.label}),e.isLink?(0,a.jsx)("a",{href:e.raw,target:"_blank",rel:"noopener noreferrer",className:`text-sm text-primary hover:underline truncate ${e.mono?"font-mono":""}`,children:e.value}):(0,a.jsx)("span",{className:`text-sm text-text-main truncate ${e.mono?"font-mono":""}`,children:e.value})]},e.key)),d&&(0,a.jsxs)("div",{className:"flex items-start gap-3 min-w-0 sm:col-span-2",children:[(0,a.jsx)("span",{className:"text-xs text-text-muted w-28 shrink-0 mt-0.5",children:"Notice"}),(0,a.jsx)("span",{className:"text-sm text-text-main leading-relaxed",children:d})]})]})]})}},56061:(e,t,s)=>{s.d(t,{default:()=>l});var a=s(95155),r=s(31474);let n={default:"bg-surface-2 text-text-muted",primary:"bg-brand-500/10 text-brand-600 dark:text-brand-300",success:"bg-green-500/10 text-green-600 dark:text-green-400",warning:"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400",error:"bg-red-500/10 text-red-600 dark:text-red-400",info:"bg-blue-500/10 text-blue-600 dark:text-blue-400"},i={sm:"px-2 py-0.5 text-[10px]",md:"px-2.5 py-1 text-xs",lg:"px-3 py-1.5 text-sm"};function l({children:e,variant:t="default",size:s="md",dot:o=!1,icon:d,className:c}){return(0,a.jsxs)("span",{className:(0,r.cn)("inline-flex items-center gap-1.5 rounded-full font-semibold",n[t],i[s],c),children:[o&&(0,a.jsx)("span",{className:(0,r.cn)("size-1.5 rounded-full","success"===t&&"bg-green-500","warning"===t&&"bg-yellow-500","error"===t&&"bg-red-500","info"===t&&"bg-blue-500","primary"===t&&"bg-brand-500","default"===t&&"bg-gray-500")}),d&&(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:d}),e]})}},56319:(e,t,s)=>{s.d(t,{default:()=>n});var a=s(95155),r=s(31474);function n({src:e,alt:t="Avatar",name:s,size:i="md",className:l}){let o={xs:"size-6 text-xs",sm:"size-8 text-sm",md:"size-10 text-base",lg:"size-12 text-lg",xl:"size-16 text-xl"};return e?(0,a.jsx)("div",{className:(0,r.cn)("rounded-full bg-cover bg-center bg-no-repeat","ring-2 ring-white dark:ring-surface-dark shadow-sm",o[i],l),style:{backgroundImage:`url(${e})`},role:"img","aria-label":t}):(0,a.jsx)("div",{className:(0,r.cn)("rounded-full flex items-center justify-center font-semibold text-white","ring-2 ring-white dark:ring-surface-dark shadow-sm",o[i],(e=>{if(!e)return"bg-primary";let t=["bg-red-500","bg-orange-500","bg-amber-500","bg-yellow-500","bg-lime-500","bg-green-500","bg-emerald-500","bg-teal-500","bg-cyan-500","bg-sky-500","bg-blue-500","bg-indigo-500","bg-violet-500","bg-purple-500","bg-fuchsia-500","bg-pink-500","bg-rose-500"],s=e.charCodeAt(0)%t.length;return t[s]})(s),l),role:"img","aria-label":t,children:(e=>{if(!e)return"?";let t=e.split(" ");return t.length>=2?`${t[0][0]}${t[1][0]}`.toUpperCase():e.substring(0,2).toUpperCase()})(s)})}},57250:(e,t,s)=>{s.d(t,{A:()=>l});var a=s(95155),r=s(12115),n=s(14051),i=s.n(n);function l({src:e,alt:t,size:s=32,className:n="",fallbackText:i="?",fallbackColor:o}){let[d,c]=(0,r.useState)(!1);return!e||d?(0,a.jsx)("span",{className:`inline-flex items-center justify-center font-bold rounded-lg ${n}`.trim(),style:{width:s,height:s,color:o,fontSize:Math.max(10,Math.floor(.38*s))},children:i}):(0,a.jsx)("img",{src:e,alt:t,width:s,height:s,className:n,onError:()=>c(!0)})}l.propTypes={src:i().string,alt:i().string,size:i().number,className:i().string,fallbackText:i().string,fallbackColor:i().string}},61500:(e,t,s)=>{s.d(t,{default:()=>o});var a=s(95155),r=s(12115),n=s(14051),i=s.n(n),l=s(35497);function o({isOpen:e,onMethodSelect:t,onClose:s}){let[n,i]=(0,r.useState)(null),[d,c]=(0,r.useState)(""),[m,u]=(0,r.useState)("us-east-1"),[x,p]=(0,r.useState)(""),[h,f]=(0,r.useState)(null),[g,b]=(0,r.useState)(!1),[v,j]=(0,r.useState)(!1),[y,N]=(0,r.useState)(!1);(0,r.useEffect)(()=>{"import"===n&&e&&(async()=>{j(!0),f(null),N(!1);try{let e=await fetch("/api/oauth/kiro/auto-import"),t=await e.json();t.found?(p(t.refreshToken),N(!0)):f(t.error||"Could not auto-detect token")}catch(e){f("Failed to auto-detect token")}finally{j(!1)}})()},[n,e]);let w=e=>{i(e),f(null)},k=()=>{i(null),f(null)},C=async()=>{if(!x.trim())return void f("Please enter a refresh token");b(!0),f(null);try{let e=await fetch("/api/oauth/kiro/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refreshToken:x.trim()})}),s=await e.json();if(!e.ok)throw Error(s.error||"Import failed");t("import")}catch(e){f(e.message)}finally{b(!1)}},S=e=>{t("social",{provider:e})};return(0,a.jsx)(l.aF,{isOpen:e,title:"Connect Kiro",onClose:s,size:"lg",children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[!n&&(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Choose your authentication method:"}),(0,a.jsx)("button",{onClick:()=>t("builder-id"),className:"w-full p-4 text-left border border-border rounded-lg hover:bg-sidebar transition-colors",children:(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary mt-0.5",children:"shield"}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h3",{className:"font-semibold mb-1",children:"AWS Builder ID"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Recommended for most users. Free AWS account required."})]})]})}),(0,a.jsx)("button",{onClick:()=>w("idc"),className:"w-full p-4 text-left border border-border rounded-lg hover:bg-sidebar transition-colors",children:(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary mt-0.5",children:"business"}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h3",{className:"font-semibold mb-1",children:"AWS IAM Identity Center"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"For enterprise users with custom AWS IAM Identity Center."})]})]})}),(0,a.jsx)("button",{onClick:()=>S("google"),className:"w-full p-4 text-left border border-border rounded-lg hover:bg-sidebar transition-colors",children:(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary mt-0.5",children:"account_circle"}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h3",{className:"font-semibold mb-1",children:"Google Account"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Login with your Google account."})]})]})}),(0,a.jsx)("button",{onClick:()=>S("github"),className:"w-full p-4 text-left border border-border rounded-lg hover:bg-sidebar transition-colors",children:(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary mt-0.5",children:"code"}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h3",{className:"font-semibold mb-1",children:"GitHub Account"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Login with your GitHub account."})]})]})}),(0,a.jsx)("button",{onClick:()=>w("import"),className:"w-full p-4 text-left border border-border rounded-lg hover:bg-sidebar transition-colors",children:(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary mt-0.5",children:"file_upload"}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h3",{className:"font-semibold mb-1",children:"Import Token"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Paste refresh token from Kiro IDE."})]})]})})]}),"idc"===n&&(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"block text-sm font-medium mb-2",children:["IDC Start URL ",(0,a.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,a.jsx)(l.pd,{value:d,onChange:e=>c(e.target.value),placeholder:"https://your-org.awsapps.com/start",className:"font-mono text-sm"}),(0,a.jsx)("p",{className:"text-xs text-text-muted mt-1",children:"Your organization's AWS IAM Identity Center URL"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium mb-2",children:"AWS Region"}),(0,a.jsx)(l.pd,{value:m,onChange:e=>u(e.target.value),placeholder:"us-east-1",className:"font-mono text-sm"}),(0,a.jsx)("p",{className:"text-xs text-text-muted mt-1",children:"AWS region for your Identity Center (default: us-east-1)"})]}),h&&(0,a.jsx)("p",{className:"text-sm text-red-600",children:h}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(l.$n,{onClick:()=>{d.trim()?t("idc",{startUrl:d.trim(),region:m}):f("Please enter your IDC start URL")},fullWidth:!0,children:"Continue"}),(0,a.jsx)(l.$n,{onClick:k,variant:"ghost",fullWidth:!0,children:"Back"})]})]}),"import"===n&&(0,a.jsxs)("div",{className:"space-y-4",children:[v&&(0,a.jsxs)("div",{className:"text-center py-6",children:[(0,a.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-primary/10 flex items-center justify-center",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-3xl text-primary animate-spin",children:"progress_activity"})}),(0,a.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Auto-detecting token..."}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Reading from AWS SSO cache"})]}),!v&&(0,a.jsxs)(a.Fragment,{children:[y&&(0,a.jsx)("div",{className:"bg-green-50 dark:bg-green-900/20 p-3 rounded-lg border border-green-200 dark:border-green-800",children:(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-green-600 dark:text-green-400",children:"check_circle"}),(0,a.jsx)("p",{className:"text-sm text-green-800 dark:text-green-200",children:"Token auto-detected from Kiro IDE successfully!"})]})}),!y&&!h&&(0,a.jsx)("div",{className:"bg-blue-50 dark:bg-blue-900/20 p-3 rounded-lg border border-blue-200 dark:border-blue-800",children:(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-blue-600 dark:text-blue-400",children:"info"}),(0,a.jsx)("p",{className:"text-sm text-blue-800 dark:text-blue-200",children:"Kiro IDE not detected. Please paste your refresh token manually."})]})}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"block text-sm font-medium mb-2",children:["Refresh Token ",(0,a.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,a.jsx)(l.pd,{value:x,onChange:e=>p(e.target.value),placeholder:"Token will be auto-filled...",className:"font-mono text-sm"})]}),h&&(0,a.jsx)("div",{className:"bg-red-50 dark:bg-red-900/20 p-3 rounded-lg border border-red-200 dark:border-red-800",children:(0,a.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400",children:h})}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(l.$n,{onClick:C,fullWidth:!0,disabled:g||!x.trim(),children:g?"Importing...":"Import Token"}),(0,a.jsx)(l.$n,{onClick:k,variant:"ghost",fullWidth:!0,children:"Back"})]})]})]})]})})}o.propTypes={isOpen:i().bool.isRequired,onMethodSelect:i().func.isRequired,onClose:i().func.isRequired}},62899:(e,t,s)=>{s.d(t,{default:()=>c});var a=s(95155),r=s(12115),n=s(14051),i=s.n(n),l=s(90882),o=s(61500),d=s(94230);function c({isOpen:e,providerInfo:t,onSuccess:s,onClose:n}){let[i,m]=(0,r.useState)(null),[u,x]=(0,r.useState)(null),[p,h]=(0,r.useState)(null),f=(0,r.useCallback)((e,t)=>{"builder-id"===e?m("builder-id"):"idc"===e?(m("idc"),h(t)):"social"===e?(m("social"),x(t.provider)):"import"===e&&s?.()},[s]),g=()=>{m(null),x(null),h(null)};return i?"builder-id"===i||"idc"===i?(0,a.jsx)(l.default,{isOpen:e,provider:"kiro",providerInfo:t,onSuccess:()=>{m(null),h(null),s?.(),n?.()},onClose:g,idcConfig:p}):"social"===i&&u?(0,a.jsx)(d.default,{isOpen:e,provider:u,onSuccess:()=>{m(null),x(null),s?.(),n?.()},onClose:g}):null:(0,a.jsx)(o.default,{isOpen:e,onMethodSelect:f,onClose:n})}c.propTypes={isOpen:i().bool.isRequired,providerInfo:i().shape({name:i().string}),onSuccess:i().func,onClose:i().func.isRequired}},65921:(e,t,s)=>{s.d(t,{i:()=>n});var a=s(1934);let r=0,n=(0,a.v)((e,t)=>({notifications:[],addNotification:s=>{let a=++r,n={id:a,type:s.type||"info",message:s.message,title:s.title||null,duration:s.duration??5e3,dismissible:s.dismissible??!0,createdAt:Date.now()};return e(e=>({notifications:[...e.notifications,n]})),n.duration>0&&setTimeout(()=>t().removeNotification(a),n.duration),a},removeNotification:t=>{e(e=>({notifications:e.notifications.filter(e=>e.id!==t)}))},clearAll:()=>e({notifications:[]}),success:(e,s)=>t().addNotification({type:"success",message:e,title:s}),error:(e,s)=>t().addNotification({type:"error",message:e,title:s,duration:8e3}),warning:(e,s)=>t().addNotification({type:"warning",message:e,title:s}),info:(e,s)=>t().addNotification({type:"info",message:e,title:s})}))},73579:(e,t,s)=>{s.d(t,{default:()=>x});var a=s(95155),r=s(12115),n=s(14051),i=s.n(n),l=s(81127),o=s(11910),d=s(92542),c=s(56061),m=s(98),u=s(52679);function x({isOpen:e,connection:t,proxyPools:s,onSave:n,onClose:i}){let[p,h]=(0,r.useState)({name:"",priority:1,apiKey:""}),[f,g]=(0,r.useState)({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),[b,v]=(0,r.useState)({accountId:""}),[j,y]=(0,r.useState)(""),[N,w]=(0,r.useState)(""),[k,C]=(0,r.useState)(""),[S,O]=(0,r.useState)(!1),[T,F]=(0,r.useState)(null),[$,I]=(0,r.useState)(!1),[A,P]=(0,r.useState)(null),[R,W]=(0,r.useState)(!1);(0,r.useEffect)(()=>{if(t){h({name:t.name||"",priority:t.priority||1,apiKey:""}),"azure"===t.provider&&t.providerSpecificData&&g({azureEndpoint:t.providerSpecificData.azureEndpoint||"",apiVersion:t.providerSpecificData.apiVersion||"2024-10-01-preview",deployment:t.providerSpecificData.deployment||"",organization:t.providerSpecificData.organization||""}),"cloudflare-ai"===t.provider&&t.providerSpecificData&&v({accountId:t.providerSpecificData.accountId||""});let e=u.Q2?.[t.provider];e?.regions&&y(t.providerSpecificData?.region||e.defaultRegion||e.regions[0]?.id||"");let s=t.providerSpecificData||{},a=Number(s.maxConcurrency);w(Number.isFinite(a)&&a>0?String(a):""),C(Array.isArray(s.extraApiKeys)?s.extraApiKeys.join("\n"):""),F(null),P(null)}},[t]);let E=t?.authType==="oauth",q=t?.provider==="azure",_=t?.provider==="cloudflare-ai",z=!!t&&((0,u.mq)(t.provider)||(0,u.gb)(t.provider)),L=t&&u.Q2?.[t.provider]?.regions||null,M=async()=>{if(t?.provider){O(!0),F(null);try{let e=await fetch(`/api/providers/${t.id}/test`,{method:"POST"}),s=await e.json();F(s.valid?"success":"failed")}catch{F("failed")}finally{O(!1)}}},D=async()=>{if(t?.provider&&p.apiKey){I(!0),P(null);try{let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t.provider,apiKey:p.apiKey,...q?{providerSpecificData:f}:{},..._?{providerSpecificData:b}:{}})}),s=await e.json();P(s.valid?"success":"failed")}catch{P("failed")}finally{I(!1)}}},U=async()=>{if(t){W(!0);try{let e={name:p.name,priority:p.priority};if(!E&&p.apiKey){e.apiKey=p.apiKey;let s="success"===A;if(!s)try{I(!0),P(null);let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t.provider,apiKey:p.apiKey,...q?{providerSpecificData:f}:{},..._?{providerSpecificData:b}:{}})});s=!!(await e.json()).valid,P(s?"success":"failed")}catch{P("failed")}finally{I(!1)}s&&(e.testStatus="active",e.lastError=null,e.lastErrorAt=null)}q&&(e.providerSpecificData={azureEndpoint:f.azureEndpoint,apiVersion:f.apiVersion,deployment:f.deployment,organization:f.organization}),_&&(e.providerSpecificData={accountId:b.accountId});let s={...t.providerSpecificData||{}};e.providerSpecificData&&Object.assign(s,e.providerSpecificData);let a=parseInt(N,10);Number.isFinite(a)&&a>0?s.maxConcurrency=a:delete s.maxConcurrency;let r=k.split("\n").map(e=>e.trim()).filter(e=>e.length>0);r.length>0?s.extraApiKeys=r:delete s.extraApiKeys,L&&j&&(s.region=j),e.providerSpecificData=s,await n(e)}finally{W(!1)}}};return t?(0,a.jsx)(l.default,{isOpen:e,title:"Edit Connection",onClose:i,children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(o.default,{label:"Name",value:p.name,onChange:e=>h({...p,name:e.target.value}),placeholder:E?"Account name":"Production Key"}),E&&t.email&&(0,a.jsxs)("div",{className:"bg-sidebar/50 p-3 rounded-lg",children:[(0,a.jsx)("p",{className:"text-sm text-text-muted mb-1",children:"Email"}),(0,a.jsx)("p",{className:"font-medium",children:t.email})]}),(0,a.jsx)(o.default,{label:"Priority",type:"number",value:p.priority,onChange:e=>h({...p,priority:Number.parseInt(e.target.value,10)||1})}),!E&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(o.default,{label:"API Key",type:"password",value:p.apiKey,onChange:e=>h({...p,apiKey:e.target.value}),placeholder:"Enter new API key",hint:"Leave blank to keep the current API key.",className:"flex-1"}),(0,a.jsx)("div",{className:"pt-6",children:(0,a.jsx)(d.default,{onClick:D,disabled:!p.apiKey||$||R,variant:"secondary",children:$?"Checking...":"Check"})})]}),A&&(0,a.jsx)(c.default,{variant:"success"===A?"success":"error",children:"success"===A?"Valid":"Invalid"})]}),q&&(0,a.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,a.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Azure OpenAI Configuration"}),(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsx)(o.default,{label:"Azure Endpoint",value:f.azureEndpoint,onChange:e=>g({...f,azureEndpoint:e.target.value}),placeholder:"https://your-resource.openai.azure.com",hint:"Your Azure OpenAI resource endpoint URL"}),(0,a.jsx)(o.default,{label:"Deployment Name",value:f.deployment,onChange:e=>g({...f,deployment:e.target.value}),placeholder:"gpt-4",hint:"The deployment name in your Azure resource"}),(0,a.jsx)(o.default,{label:"API Version",value:f.apiVersion,onChange:e=>g({...f,apiVersion:e.target.value}),placeholder:"2024-10-01-preview",hint:"Azure OpenAI API version to use"}),(0,a.jsx)(o.default,{label:"Organization",value:f.organization,onChange:e=>g({...f,organization:e.target.value}),placeholder:"Organization ID",hint:"Required for billing"})]})]}),L&&(0,a.jsx)(m.default,{label:"Region",value:j,onChange:e=>y(e.target.value),options:L.map(e=>({value:e.id,label:e.label}))}),!z&&!q&&!_&&(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(d.default,{onClick:M,variant:"secondary",disabled:S,children:S?"Testing...":"Test Connection"}),T&&(0,a.jsx)(c.default,{variant:"success"===T?"success":"error",children:"success"===T?"Valid":"Failed"})]}),(0,a.jsxs)("details",{className:"bg-sidebar/30 rounded-lg border border-border",children:[(0,a.jsx)("summary",{className:"cursor-pointer p-3 text-sm font-medium select-none",children:"Advanced"}),(0,a.jsxs)("div",{className:"p-3 pt-0 flex flex-col gap-3",children:[(0,a.jsx)(o.default,{label:"Max Concurrency",type:"number",min:"1",max:"20",value:N,onChange:e=>w(e.target.value),placeholder:"(provider default)",hint:"Cap parallel requests against this account. Leave blank to use the provider default (Antigravity/Kiro=2, free=1, paid keys=unlimited)."}),!E&&(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium mb-1",children:"Extra API Keys"}),(0,a.jsx)("textarea",{value:k,onChange:e=>C(e.target.value),placeholder:"One key per line — round-robins with the primary key.\nKeys that 401 twice get marked invalid and skipped.",rows:3,className:"w-full text-sm font-mono bg-background border border-border rounded-md p-2 focus:outline-none focus:ring-2 focus:ring-accent/50"}),(0,a.jsx)("p",{className:"text-xs text-text-muted mt-1",children:"Rotation cycles through every healthy key. Failed keys are auto-recovered on the next successful call."})]})]})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.default,{onClick:U,fullWidth:!0,disabled:R,children:R?"Saving...":"Save"}),(0,a.jsx)(d.default,{onClick:i,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}x.propTypes={isOpen:i().bool.isRequired,connection:i().shape({id:i().string,name:i().string,email:i().string,priority:i().number,authType:i().string,provider:i().string,providerSpecificData:i().object}),proxyPools:i().arrayOf(i().shape({id:i().string,name:i().string})),onSave:i().func.isRequired,onClose:i().func.isRequired}},80752:(e,t,s)=>{s.d(t,{default:()=>m});var a=s(95155),r=s(12115),n=s(14051),i=s.n(n),l=s(1620),o=s(97556),d=s(81127);function c({icon:e,label:t,onClick:s,trailing:r,danger:n}){return(0,a.jsxs)("button",{onClick:s,className:`flex items-center gap-3 w-full px-4 py-2.5 text-sm transition-colors ${n?"text-red-500 hover:bg-red-500/10":"text-text-main hover:bg-black/5 dark:hover:bg-white/5"}`,children:[(0,a.jsx)("span",{className:`material-symbols-outlined text-[20px] ${n?"":"text-text-muted"}`,children:e}),(0,a.jsx)("span",{className:"flex-1 text-left",children:t}),r&&(0,a.jsx)("span",{className:"text-base",children:r})]})}function m({onLogout:e}){let[t,s]=(0,r.useState)(!1),[n,i]=(0,r.useState)(!1),[u,x]=(0,r.useState)(!1),[p,h]=(0,r.useState)(!1),{toggleTheme:f,isDark:g}=(0,l.D)(),b=(0,r.useRef)(null),v=async()=>{h(!0);try{await fetch("/api/version/shutdown",{method:"POST"})}catch(e){}h(!1),x(!1)};return(0,r.useEffect)(()=>{let e=e=>{b.current&&!b.current.contains(e.target)&&s(!1)};if(t)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[t]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"relative",ref:b,children:[(0,a.jsx)("button",{onClick:()=>s(e=>!e),className:"flex items-center justify-center p-2 rounded-lg text-text-muted hover:text-text-main hover:bg-black/5 dark:hover:bg-white/5 transition-all",title:"Menu",children:(0,a.jsx)("span",{className:"material-symbols-outlined",children:"grid_view"})}),t&&(0,a.jsxs)("div",{className:"absolute right-0 top-full mt-2 w-60 bg-surface border border-black/10 dark:border-white/10 rounded-xl shadow-2xl z-50 animate-in fade-in zoom-in-95 duration-150 overflow-hidden py-1",children:[(0,a.jsx)(c,{icon:"history",label:"Change Log",onClick:()=>{s(!1),i(!0)}}),(0,a.jsx)(c,{icon:g?"light_mode":"dark_mode",label:"Theme",onClick:()=>{f(),s(!1)}}),(0,a.jsx)(c,{icon:"power_settings_new",label:"Shutdown",danger:!0,onClick:()=>{s(!1),x(!0)}}),(0,a.jsx)(c,{icon:"logout",label:"Logout",danger:!0,onClick:()=>{s(!1),e()}})]})]}),(0,a.jsx)(o.default,{isOpen:n,onClose:()=>i(!1)}),(0,a.jsx)(d.ConfirmModal,{isOpen:u,onClose:()=>x(!1),onConfirm:v,title:"Close Proxy",message:"Are you sure you want to close the proxy server?",confirmText:"Close",cancelText:"Cancel",variant:"danger",loading:p})]})}c.propTypes={icon:i().string.isRequired,label:i().string.isRequired,onClick:i().func.isRequired,trailing:i().node,danger:i().bool},m.propTypes={onLogout:i().func.isRequired}},81127:(e,t,s)=>{s.d(t,{ConfirmModal:()=>d,default:()=>o});var a=s(95155),r=s(12115),n=s(31474),i=s(92542),l=s(97677);function o({isOpen:e,onClose:t,title:s,children:i,footer:d,size:c="md",closeOnOverlay:m=!0,showTrafficLights:u=!0,className:x}){return((0,r.useEffect)(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e]),(0,r.useEffect)(()=>{let s=s=>{"Escape"===s.key&&e&&t()};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[e,t]),e)?(0,a.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-[2px] fade-in",onClick:m?t:void 0}),(0,a.jsxs)("div",{className:(0,n.cn)("relative w-full bg-surface","border border-border-subtle","rounded-[14px] shadow-[var(--shadow-elev)]","fade-in",{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl",full:"max-w-4xl"}[c],x),children:[(s||u)&&(0,a.jsxs)("div",{className:"flex items-center justify-between p-2 border-b border-border-subtle",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[u&&(0,a.jsxs)("div",{className:"hidden md:flex items-center gap-2 mr-4 ml-2",children:[(0,a.jsx)(l.default,{text:"Close",position:"top",color:"#FF5F56",children:(0,a.jsx)("button",{onClick:t,"aria-label":"Close",title:"Close",className:"w-4 h-4 rounded-full bg-[#FF5F56] hover:brightness-90 transition-all cursor-pointer flex items-center justify-center group/dot",children:(0,a.jsx)("span",{className:"text-[9px] font-bold text-white opacity-0 group-hover/dot:opacity-100 transition-opacity leading-none",children:"✕"})})}),(0,a.jsx)("div",{className:"w-4 h-4 rounded-full bg-[#3a3a3a]/20 dark:bg-white/15 cursor-not-allowed"}),(0,a.jsx)("div",{className:"w-4 h-4 rounded-full bg-[#3a3a3a]/20 dark:bg-white/15 cursor-not-allowed"})]}),s&&(0,a.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:s})]}),(0,a.jsx)("button",{onClick:t,"aria-label":"Close",className:"md:hidden p-1.5 rounded-[10px] text-text-muted hover:bg-surface-2 hover:text-text-main transition-colors",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,a.jsx)("div",{className:"p-6 max-h-[calc(85vh-100px)] overflow-y-auto custom-scrollbar",children:i}),d&&(0,a.jsx)("div",{className:"flex items-center justify-end gap-3 p-6 border-t border-border-subtle",children:d})]})]}):null}function d({isOpen:e,onClose:t,onConfirm:s,title:r="Confirm",message:n,confirmText:l="Confirm",cancelText:c="Cancel",variant:m="danger",loading:u=!1}){return(0,a.jsx)(o,{isOpen:e,onClose:t,title:r,size:"sm",footer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.default,{variant:"ghost",onClick:t,disabled:u,children:c}),(0,a.jsx)(i.default,{variant:m,onClick:s,loading:u,children:l})]}),children:(0,a.jsx)("p",{className:"text-text-muted",children:n})})}},84588:(e,t,s)=>{s.d(t,{default:()=>n});var a=s(95155),r=s(31474);function n({children:e,title:t,subtitle:s,icon:i,action:l,padding:o="md",hover:d=!1,elev:c=!1,className:m,...u}){return(0,a.jsxs)("div",{className:(0,r.cn)("bg-surface border border-border-subtle",c?"rounded-[14px] shadow-[var(--shadow-elev)]":"rounded-[14px] shadow-[var(--shadow-soft)]",d&&"hover:shadow-[var(--shadow-warm)] hover:border-brand-500/30 transition-all cursor-pointer",{none:"",xs:"p-3",sm:"p-4",md:"p-6",lg:"p-8"}[o],m),...u,children:[(t||l)&&(0,a.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[i&&(0,a.jsx)("div",{className:"p-2 rounded-[10px] bg-bg text-text-muted",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:i})}),(0,a.jsxs)("div",{children:[t&&(0,a.jsx)("h3",{className:"text-text-main font-semibold",children:t}),s&&(0,a.jsx)("p",{className:"text-sm text-text-muted",children:s})]})]}),l]}),e]})}n.Section=function({children:e,className:t,...s}){return(0,a.jsx)("div",{className:(0,r.cn)("p-4 rounded-[10px]","bg-bg border border-border-subtle",t),...s,children:e})},n.Row=function({children:e,className:t,...s}){return(0,a.jsx)("div",{className:(0,r.cn)("p-3 -mx-3 px-3 transition-colors","border-b border-border-subtle last:border-b-0","hover:bg-surface-2/50",t),...s,children:e})},n.ListItem=function({children:e,actions:t,className:s,...n}){return(0,a.jsxs)("div",{className:(0,r.cn)("group flex items-center justify-between p-3 -mx-3 px-3","border-b border-border-subtle last:border-b-0","hover:bg-surface-2/50 transition-colors",s),...n,children:[(0,a.jsx)("div",{className:"flex-1 min-w-0",children:e}),t&&(0,a.jsx)("div",{className:"flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:t})]})}},90882:(e,t,s)=>{s.d(t,{default:()=>d});var a=s(95155),r=s(12115),n=s(14051),i=s.n(n),l=s(35497),o=s(11059);function d({isOpen:e,provider:t,providerInfo:s,onSuccess:n,onClose:i,oauthMeta:c,idcConfig:m}){let[u,x]=(0,r.useState)("waiting"),[p,h]=(0,r.useState)(null),[f,g]=(0,r.useState)(""),[b,v]=(0,r.useState)(null),[j,y]=(0,r.useState)(!1),[N,w]=(0,r.useState)(null),[k,C]=(0,r.useState)(!1),S=(0,r.useRef)(null),O=(0,r.useRef)(!1),T=(0,r.useRef)(!1),{copied:F,copy:$}=(0,o.C)(),[I,A]=(0,r.useState)(!1),[P,R]=(0,r.useState)("/callback?code=..."),W=(0,r.useRef)(!1);(0,r.useEffect)(()=>{A("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname),R(`${window.location.origin}/callback?code=...`)},[]);let E=(0,r.useCallback)(async(e,s)=>{if(p)try{let a=await fetch(`/api/oauth/${t}/exchange`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,redirectUri:p.redirectUri,codeVerifier:p.codeVerifier,state:s,...c?{meta:c}:{}})}),r=await a.json();if(!a.ok)throw Error(r.error);x("success"),n?.()}catch(e){v(e.message),x("error")}},[p,t,n]),q=(0,r.useCallback)(async e=>{if(p?.state)try{let t=await fetch("/api/oauth/xai/manual-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,state:p.state})}),s=await t.json();if(!t.ok)throw Error(s.error);x("success"),n?.()}catch(e){v(e.message),x("error")}},[p,n]),_=(0,r.useCallback)(async(e,s,a,r,i)=>{O.current=!1,C(!0);let l=Date.now()+(Number.isFinite(i)&&i>0?i:12e4);for(;Date.now()<l;){if(O.current){console.log("[OAuthModal] Polling aborted"),C(!1);return}if(await new Promise(e=>setTimeout(e,1e3*a)),O.current){console.log("[OAuthModal] Polling aborted after sleep"),C(!1);return}try{let i=await fetch(`/api/oauth/${t}/poll`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deviceCode:e,codeVerifier:s,extraData:r})}),l=await i.json();if(l.success){O.current=!0,x("success"),C(!1),n?.();return}if("expired_token"===l.error||"access_denied"===l.error)throw Error(l.errorDescription||l.error);"slow_down"===l.error&&(a=Math.min(a+5,30))}catch(e){v(e.message),x("error"),C(!1);return}}v("Authorization timeout"),x("error"),C(!1)},[t,n]),z=(0,r.useCallback)(async()=>{if(t)try{let e;if(v(null),["github","qwen","kiro","kimi-coding","kilocode","codebuddy-cn","qoder","grok-cli"].includes(t)){y(!0),x("waiting");let e=new URL(`/api/oauth/${t}/device-code`,window.location.origin);"kiro"===t&&m?.startUrl&&(e.searchParams.set("start_url",m.startUrl),m.region&&e.searchParams.set("region",m.region),e.searchParams.set("auth_method","idc"));let s=await fetch(e.toString()),a=await s.json();if(!s.ok)throw Error(a.error);w(a);let r=a.verification_uri_complete||a.verification_uri;r&&window.open(r,"_blank","noopener,noreferrer");let n="kiro"===t?{_clientId:a._clientId,_clientSecret:a._clientSecret,_region:a._region,_authMethod:a._authMethod,_startUrl:a._startUrl}:"qoder"===t?{_qoderNonce:a._qoderNonce,_qoderMachineId:a._qoderMachineId,_qoderVerifier:a.codeVerifier}:null;_(a.device_code,a.codeVerifier,a.interval||5,n,Number.isFinite(a.expires_in)&&a.expires_in>0?1e3*a.expires_in:void 0);return}let s=window.location.port||("https:"===window.location.protocol?"443":"80");e="codex"===t?"http://localhost:1455/auth/callback":"xai"===t?"http://127.0.0.1:56121/callback":`http://localhost:${s}/callback`;let a=new URL(`/api/oauth/${t}/authorize`,window.location.origin);a.searchParams.set("redirect_uri",e),c&&Object.entries(c).forEach(([e,t])=>{t&&a.searchParams.set(e,t)});let r=await fetch(a.toString()),n=await r.json();if(!r.ok)throw Error(n.error);let i=!1,l=!1;if("codex"===t)try{let t=new URL("/api/oauth/codex/start-proxy",window.location.origin);t.searchParams.set("app_port",s),t.searchParams.set("state",n.state),t.searchParams.set("code_verifier",n.codeVerifier),t.searchParams.set("redirect_uri",e);let a=await fetch(t.toString()),r=await a.json();i=r.success,l=!!r.serverSide}catch{i=!1}let o=!1,d=!1;if("xai"===t)try{let t=new URL("/api/oauth/xai/start-proxy",window.location.origin);t.searchParams.set("app_port",s),t.searchParams.set("state",n.state),t.searchParams.set("code_verifier",n.codeVerifier),t.searchParams.set("redirect_uri",e);let a=await fetch(t.toString()),r=await a.json();if(o=r.success,d=!!r.serverSide,!o&&"port_busy"===r.reason)throw Error("Port 56121 in use; close the conflicting process and retry")}catch(e){if(e?.message)throw e;o=!1}h({...n,redirectUri:e,codexServerSide:l,xaiServerSide:d}),"codex"===t&&i||"xai"===t&&o||I&&"codex"!==t&&"xai"!==t?(x("waiting"),S.current=window.open(n.authUrl,"oauth_popup","width=600,height=700"),S.current||x("input")):(x("input"),window.open(n.authUrl,"_blank"))}catch(e){v(e.message),x("error")}},[t,I,_,c,m]);(0,r.useEffect)(()=>{e&&t?T.current||(T.current=!0,h(null),g(""),v(null),y(!1),w(null),C(!1),O.current=!1,z()):e||(O.current=!0,T.current=!1,"codex"===t?fetch("/api/oauth/codex/stop-proxy").catch(()=>{}):"xai"===t&&fetch("/api/oauth/xai/stop-proxy").catch(()=>{}))},[e,t,z]),(0,r.useEffect)(()=>{let e=p?.codexServerSide?"codex":p?.xaiServerSide?"xai":null;if(!e||!p?.state||W.current)return;let t=!1,s=0,a=async()=>{if(!t&&!W.current){s+=1;try{let s=await fetch(`/api/oauth/${e}/poll-status?state=${encodeURIComponent(p.state)}`),a=await s.json();if(t||W.current)return;if("done"===a.status){W.current=!0,x("success"),n?.();return}if("error"===a.status){W.current=!0,v(a.error||"Authentication failed"),x("error");return}}catch{}if(s>=200){W.current=!0,v("Authentication timeout"),x("error");return}setTimeout(a,1500)}};return setTimeout(a,1500),()=>{t=!0}},[p,n]),(0,r.useEffect)(()=>{let e;if(!p)return;W.current=!1;let t=async e=>{if(W.current)return;let{code:t,token:s,state:a,error:r,errorDescription:n}=e;if(r){W.current=!0,v(n||r),x("error");return}(s||t)&&(W.current=!0,await E(s||t,a))},s=e=>{let s=e.origin.includes("localhost")||e.origin.includes("127.0.0.1"),a=e.origin===window.location.origin;(s||a)&&e.data?.type==="oauth_callback"&&t(e.data.data)};window.addEventListener("message",s);try{(e=new BroadcastChannel("oauth_callback")).onmessage=e=>t(e.data)}catch(e){console.log("BroadcastChannel not supported")}let a=e=>{if("oauth_callback"===e.key&&e.newValue)try{let s=JSON.parse(e.newValue);t(s),localStorage.removeItem("oauth_callback")}catch(e){console.log("Failed to parse localStorage data")}};window.addEventListener("storage",a);try{let e=localStorage.getItem("oauth_callback");if(e){let s=JSON.parse(e);s.timestamp&&Date.now()-s.timestamp<3e4&&t(s),localStorage.removeItem("oauth_callback")}}catch{}return()=>{window.removeEventListener("message",s),window.removeEventListener("storage",a),e&&e.close()}},[p,E]);let L=async()=>{try{v(null);let e=f.trim();if(e.startsWith("eyJ")&&e.includes("."))return void await E(e,null);if("xai"===t&&e&&!e.includes("://")&&!e.includes("?")&&!e.includes("code="))return void await q(e);if("kimchi"===t&&e&&!e.includes("://")&&!e.includes("?"))return void await E(e,null);let s=new URL(e),a=s.searchParams.get("code"),r=s.searchParams.get("token"),n=s.searchParams.get("state"),i=s.searchParams.get("error");if(i)throw Error(s.searchParams.get("error_description")||i);if(!a&&!r)throw Error("xai"===t?"Paste the callback URL or copied xAI code":"kimchi"===t?"No Kimchi token found in URL":"No authorization code found in URL");await E(r||a,n)}catch(e){v(e.message),x("error")}},M=(0,r.useCallback)(()=>{"codex"===t?fetch("/api/oauth/codex/stop-proxy").catch(()=>{}):"xai"===t&&fetch("/api/oauth/xai/stop-proxy").catch(()=>{}),i()},[i,t]);if(!t||!s)return null;let D="xai"===t,U=N?.verification_uri_complete||N?.verification_uri||"",K=D?"Connect Grok Build OAuth":`Connect ${s.name}`;return(0,a.jsx)(l.aF,{isOpen:e,title:K,onClose:M,size:"lg",children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[("waiting"===u||"input"===u)&&!j&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 border border-border rounded-lg bg-sidebar/50",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-base text-primary animate-spin",children:"progress_activity"}),(0,a.jsx)("span",{className:"text-sm",children:D?"Waiting for Grok Build OAuth…":"Waiting for popup authorization…"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3 my-1",children:[(0,a.jsx)("div",{className:"flex-1 h-px bg-border"}),(0,a.jsx)("span",{className:"text-xs text-text-muted uppercase tracking-wider",children:"Or paste callback URL manually"}),(0,a.jsx)("div",{className:"flex-1 h-px bg-border"})]}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"text-sm font-medium mb-2",children:["Step 1: Open this ",D?"Grok Build OAuth URL":"URL"," in your browser"]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(l.pd,{value:p?.authUrl||"",readOnly:!0,className:"flex-1 font-mono text-xs"}),(0,a.jsx)(l.$n,{variant:"secondary",icon:"auth_url"===F?"check":"content_copy",onClick:()=>$(p?.authUrl,"auth_url"),disabled:!p?.authUrl,children:"Copy"})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"text-sm font-medium mb-2",children:["Step 2: Paste the ","xai"===t?"callback URL or copied code":"callback URL"," here"]}),(0,a.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"xai"===t?"If xAI shows a code instead of redirecting, paste that code here.":"After authorization, copy the full URL from your browser."}),(0,a.jsx)(l.pd,{value:f,onChange:e=>g(e.target.value),placeholder:D?"http://127.0.0.1:56121/callback?code=... or copied code":P,className:"font-mono text-xs"})]})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(l.$n,{onClick:L,fullWidth:!0,disabled:!f,children:"Connect"}),(0,a.jsx)(l.$n,{onClick:M,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"waiting"===u&&j&&N&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"text-center py-4",children:[(0,a.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Visit the login URL below and authorize:"}),(0,a.jsxs)("div",{className:"bg-sidebar p-4 rounded-lg mb-4",children:[(0,a.jsx)("p",{className:"text-xs text-text-muted mb-1",children:"Login URL"}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("code",{className:"flex-1 text-sm break-all",children:U}),(0,a.jsx)(l.$n,{size:"sm",variant:"ghost",icon:"login_url"===F?"check":"content_copy",onClick:()=>$(U,"login_url"),disabled:!U}),(0,a.jsx)(l.$n,{size:"sm",variant:"ghost",icon:"open_in_new",onClick:()=>window.open(U,"_blank","noopener,noreferrer"),disabled:!U,children:"Open"})]})]}),(0,a.jsxs)("div",{className:"bg-primary/10 p-4 rounded-lg",children:[(0,a.jsx)("p",{className:"text-xs text-text-muted mb-1",children:"Your Code"}),(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,a.jsx)("p",{className:"text-2xl font-mono font-bold text-primary",children:N.user_code}),(0,a.jsx)(l.$n,{size:"sm",variant:"ghost",icon:"user_code"===F?"check":"content_copy",onClick:()=>$(N.user_code,"user_code")})]})]})]}),k&&(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2 text-sm text-text-muted",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),"Waiting for authorization..."]})]}),"success"===u&&(0,a.jsxs)("div",{className:"text-center py-6",children:[(0,a.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-3xl text-green-600",children:"check_circle"})}),(0,a.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connected Successfully!"}),(0,a.jsxs)("p",{className:"text-sm text-text-muted mb-4",children:["Your ",s.name," account has been connected."]}),(0,a.jsx)(l.$n,{onClick:M,fullWidth:!0,children:"Done"})]}),"error"===u&&(0,a.jsxs)("div",{className:"text-center py-6",children:[(0,a.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-3xl text-red-600",children:"error"})}),(0,a.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connection Failed"}),(0,a.jsx)("p",{className:"text-sm text-red-600 mb-4",children:b}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(l.$n,{onClick:z,variant:"secondary",fullWidth:!0,children:"Try Again"}),(0,a.jsx)(l.$n,{onClick:M,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})})}d.propTypes={isOpen:i().bool.isRequired,provider:i().string,providerInfo:i().shape({name:i().string}),onSuccess:i().func,onClose:i().func.isRequired,oauthMeta:i().object,idcConfig:i().shape({startUrl:i().string,region:i().string})}},91450:(e,t,s)=>{s.d(t,{default:()=>l});var a=s(95155),r=s(14051),n=s.n(r),i=s(38587);function l({children:e}){return(0,a.jsxs)("div",{className:"min-h-screen flex flex-col relative bg-bg transition-colors duration-500 overflow-x-hidden selection:bg-primary/20 selection:text-primary",children:[(0,a.jsx)("div",{className:"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[800px] h-[800px] bg-primary/5 dark:bg-primary/5 rounded-full blur-[100px] pointer-events-none z-0"}),(0,a.jsx)("div",{className:"fixed bottom-0 right-0 w-[600px] h-[600px] bg-orange-200/20 dark:bg-orange-900/10 rounded-full blur-[120px] pointer-events-none z-0 translate-y-1/3 translate-x-1/3"}),(0,a.jsx)("div",{className:"absolute top-6 right-6 z-20",children:(0,a.jsx)(i.default,{variant:"card"})}),(0,a.jsx)("main",{className:"flex-1 flex flex-col items-center justify-center p-4 sm:p-6 z-10 w-full h-full",children:e})]})}l.propTypes={children:n().node.isRequired}},92173:(e,t,s)=>{s.d(t,{default:()=>c});var a=s(95155),r=s(98500),n=s.n(r),i=s(90620);let l=[{label:"Features",href:"#features"},{label:"Pricing",href:"#pricing"},{label:"Changelog",href:"#"}],o=[{label:"Documentation",href:"#"},{label:"API Reference",href:"#"},{label:"Help Center",href:"#"}],d=[{label:"About",href:"#"},{label:"Blog",href:"#"},{label:"Contact",href:"#"}];function c(){return(0,a.jsx)("footer",{className:"bg-bg border-t border-border pt-16 pb-12",children:(0,a.jsxs)("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:[(0,a.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-10 mb-12",children:[(0,a.jsxs)("div",{className:"col-span-2 lg:col-span-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-6",children:[(0,a.jsx)("div",{className:"size-6 text-primary",children:(0,a.jsx)("svg",{className:"w-full h-full",fill:"currentColor",viewBox:"0 0 48 48",children:(0,a.jsx)("path",{clipRule:"evenodd",d:"M12.0799 24L4 19.2479L9.95537 8.75216L18.04 13.4961L18.0446 4H29.9554L29.96 13.4961L38.0446 8.75216L44 19.2479L35.92 24L44 28.7521L38.0446 39.2479L29.96 34.5039L29.9554 44H18.0446L18.04 34.5039L9.95537 39.2479L4 28.7521L12.0799 24Z",fillRule:"evenodd"})})}),(0,a.jsx)("span",{className:"text-xl font-bold text-text-main",children:i.vQ.name})]}),(0,a.jsx)("p",{className:"text-text-muted mb-6 max-w-sm font-light",children:"The unified interface for modern AI infrastructure. Secure, observable, and scalable."}),(0,a.jsxs)("div",{className:"flex gap-4",children:[(0,a.jsx)("a",{href:"#",className:"text-gray-400 hover:text-primary transition-colors","aria-label":"Twitter",children:(0,a.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07 4.28 4.28 0 0 0 4 2.98 8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21 16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23z"})})}),(0,a.jsx)("a",{href:"#",className:"text-gray-400 hover:text-primary transition-colors","aria-label":"GitHub",children:(0,a.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0 1 12 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0 0 22 12.017C22 6.484 17.522 2 12 2z"})})})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Product"}),(0,a.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:l.map(e=>(0,a.jsx)("li",{children:(0,a.jsx)(n(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Resources"}),(0,a.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:o.map(e=>(0,a.jsx)("li",{children:(0,a.jsx)(n(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Company"}),(0,a.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:d.map(e=>(0,a.jsx)("li",{children:(0,a.jsx)(n(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]})]}),(0,a.jsxs)("div",{className:"border-t border-border pt-8 flex flex-col md:flex-row justify-between items-center gap-4",children:[(0,a.jsxs)("p",{className:"text-sm text-text-muted",children:["\xa9 ",new Date().getFullYear()," ",i.vQ.name," Inc. All rights reserved."]}),(0,a.jsxs)("div",{className:"flex gap-6 text-sm text-text-muted",children:[(0,a.jsx)(n(),{href:"#",className:"hover:text-primary transition-colors",children:"Privacy Policy"}),(0,a.jsx)(n(),{href:"#",className:"hover:text-primary transition-colors",children:"Terms of Service"})]})]})]})})}},92542:(e,t,s)=>{s.d(t,{default:()=>l});var a=s(95155),r=s(31474);let n={primary:"bg-brand-500 hover:bg-brand-600 text-white shadow-sm disabled:bg-surface-3 disabled:text-text-muted",secondary:"bg-surface-2 hover:bg-surface-3 text-text-main border border-border disabled:opacity-50",outline:"border border-border text-text-main hover:bg-surface-2 hover:border-brand-500/40",ghost:"text-text-muted hover:bg-surface-2 hover:text-text-main",danger:"bg-red-500 hover:bg-red-600 text-white shadow-sm disabled:bg-surface-3 disabled:text-text-muted",success:"bg-green-600 hover:bg-green-700 text-white shadow-sm disabled:bg-surface-3 disabled:text-text-muted"},i={sm:"h-7 px-3 text-xs rounded-[8px]",md:"h-9 px-4 text-sm rounded-[10px]",lg:"h-11 px-6 text-sm rounded-[10px]"};function l({children:e,variant:t="primary",size:s="md",icon:o,iconRight:d,disabled:c=!1,loading:m=!1,fullWidth:u=!1,className:x,...p}){return(0,a.jsxs)("button",{className:(0,r.cn)("inline-flex items-center justify-center gap-2 font-semibold transition-all duration-150 ease-out cursor-pointer","active:scale-[0.97] disabled:opacity-50 disabled:cursor-not-allowed disabled:active:scale-100",n[t],i[s],u&&"w-full",x),disabled:c||m,...p,children:[m?(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-[18px]",children:"progress_activity"}):o?(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:o}):null,e,d&&!m&&(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:d})]})}},92622:(e,t,s)=>{s.d(t,{default:()=>y});var a=s(95155),r=s(12115),n=s(14051),i=s.n(n),l=s(98500),o=s.n(l),d=s(73321),c=s(31474),m=s(90620),u=s(52679),x=s(11059),p=s(92542),h=s(81127);let f=["embedding","image","video","tts","stt"],g="/dashboard/media-providers/web",b=[{href:"/dashboard/endpoint",label:"Endpoint",icon:"api"},{href:"/dashboard/providers",label:"Providers",icon:"dns"},{href:"/dashboard/combos",label:"Combos",icon:"layers"},{href:"/dashboard/usage",label:"Usage",icon:"bar_chart"},{href:"/dashboard/quota",label:"Quota Tracker",icon:"data_usage"},{href:"/dashboard/token-saver",label:"Token Saver",icon:"savings"},{href:"/dashboard/pxpipe",label:"PXPIPE",icon:"image"},{href:"/dashboard/cli-tools",label:"CLI Tools",icon:"terminal"}],v=[{href:"/dashboard/console-log",label:"Console Log",icon:"terminal"},{href:"/dashboard/translator",label:"Translator",icon:"translate"}],j=[{href:"/dashboard/proxy-pools",label:"Proxy Pools",icon:"lan"},{href:"/dashboard/skills",label:"Skills",icon:"extension"},{href:"/dashboard/environment",label:"Environment",icon:"tune"}];function y({onClose:e}){let t=(0,d.usePathname)(),[s,n]=(0,r.useState)(!1),[i,l]=(0,r.useState)(!1),[w,k]=(0,r.useState)(null),[C,S]=(0,r.useState)(!1),[O,T]=(0,r.useState)(!1),[F,$]=(0,r.useState)(0),[I,A]=(0,r.useState)(!1),{copied:P,copy:R}=(0,x.C)(2e3),W=m.h0.installCmdLatest;(0,r.useEffect)(()=>{fetch("/api/settings").then(e=>e.json()).then(e=>{e.enableTranslator&&A(!0)}).catch(()=>{})},[]),(0,r.useEffect)(()=>{fetch("/api/version").then(e=>e.json()).then(e=>{e.hasUpdate&&k(e)}).catch(()=>{})},[]);let E=e=>"/dashboard/endpoint"===e?"/dashboard"===t||t.startsWith("/dashboard/endpoint"):t.startsWith(e),q=async()=>{try{await navigator.clipboard.writeText(W)}catch{}R(W);let e=m.h0.shutdownCountdownSec;$(e);let t=setInterval(()=>{$(e-=1),e<=0&&(clearInterval(t),fetch("/api/version/shutdown",{method:"POST"}).catch(()=>{}),l(!0))},1e3)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("aside",{className:"flex w-72 flex-col border-r border-border-subtle bg-vibrancy backdrop-blur-xl transition-colors duration-300 min-h-full",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 px-6 pt-5 pb-2",children:[(0,a.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#FF5F56]"}),(0,a.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#FFBD2E]"}),(0,a.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#27C93F]"})]}),(0,a.jsxs)("div",{className:"px-6 py-4 flex flex-col gap-2",children:[(0,a.jsxs)(o(),{href:"/dashboard",className:"flex items-center gap-3 group",children:[(0,a.jsx)("div",{className:"flex items-center justify-center size-9 rounded-[10px] bg-gradient-to-br from-brand-500 to-brand-700 shadow-[var(--shadow-warm)] transition-transform group-hover:scale-[1.03]",children:(0,a.jsx)("svg",{viewBox:"0 0 400 400",className:"size-[22px]","aria-hidden":"true",children:(0,a.jsxs)("g",{fill:"none",stroke:"#ffffff",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,a.jsx)("polyline",{points:"128,104 184,200 128,296",strokeWidth:"28",strokeOpacity:"0.25"}),(0,a.jsx)("polyline",{points:"172,100 260,200 172,300",strokeWidth:"52"})]})})}),(0,a.jsxs)("div",{className:"flex flex-col leading-none",children:[(0,a.jsx)("h1",{className:"text-[17px] font-bold text-text-main uppercase",style:{fontFamily:"var(--font-display)",letterSpacing:"0.04em"},children:m.vQ.name}),(0,a.jsxs)("span",{className:"text-[11px] text-text-muted mt-[3px] font-medium tabular-nums",children:["v",m.vQ.version]})]})]}),w&&(0,a.jsxs)("div",{className:"flex flex-col gap-1.5 rounded p-1 -m-1",children:[(0,a.jsxs)("span",{className:"text-xs font-semibold text-green-600 dark:text-amber-500",children:["↑ New version available: v",w.latestVersion]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("button",{onClick:()=>S(!0),className:"px-2 py-1 rounded bg-green-600 hover:bg-green-700 dark:bg-amber-500 dark:hover:bg-amber-600 text-white text-[11px] font-semibold transition-colors cursor-pointer",children:"Update now"}),(0,a.jsx)("button",{onClick:()=>R(W),title:"Copy install command",className:"flex-1 text-left hover:opacity-80 transition-opacity cursor-pointer min-w-0",children:(0,a.jsx)("code",{className:"block text-[10px] text-green-600/80 dark:text-amber-400/70 font-mono truncate",children:P?"✓ copied!":W})})]})]})]}),(0,a.jsxs)("nav",{className:"flex-1 px-4 py-2 space-y-0.5 overflow-y-auto custom-scrollbar",children:[b.map(t=>(0,a.jsxs)(o(),{href:t.href,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",E(t.href)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,a.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[18px]",E(t.href)?"fill-1":"group-hover:text-primary transition-colors"),children:t.icon}),(0,a.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href)),(0,a.jsxs)("div",{className:"pt-3 mt-2 space-y-0.5",children:[(0,a.jsx)("p",{className:"px-4 text-xs font-semibold text-text-muted/60 uppercase tracking-wider mb-2",children:"System"}),(0,a.jsxs)("button",{onClick:()=>n(e=>!e),className:(0,c.cn)("w-full flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",t.startsWith("/dashboard/media-providers")?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"perm_media"}),(0,a.jsx)("span",{className:"text-[13px] font-medium flex-1 text-left",children:"Media Providers"}),(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px] transition-transform",style:{transform:s?"rotate(180deg)":"rotate(0deg)"},children:"expand_more"})]}),s&&(0,a.jsxs)("div",{className:"pl-4",children:[u.rj.filter(e=>f.includes(e.id)).map(s=>(0,a.jsxs)(o(),{href:`/dashboard/media-providers/${s.id}`,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-4 py-1 rounded-lg transition-all group",t.startsWith(`/dashboard/media-providers/${s.id}`)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:s.icon}),(0,a.jsx)("span",{className:"text-sm",children:s.label})]},s.id)),(0,a.jsxs)(o(),{href:g,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-4 py-1 rounded-lg transition-all group",t.startsWith(g)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"travel_explore"}),(0,a.jsx)("span",{className:"text-sm",children:"Web Fetch & Search"})]},"web")]}),j.map(t=>(0,a.jsxs)(o(),{href:t.href,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",E(t.href)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,a.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[18px]",E(t.href)?"fill-1":"group-hover:text-primary transition-colors"),children:t.icon}),(0,a.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href)),v.map(t=>"/dashboard/translator"!==t.href||I?(0,a.jsxs)(o(),{href:t.href,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",E(t.href)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,a.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[18px]",E(t.href)?"fill-1":"group-hover:text-primary transition-colors"),children:t.icon}),(0,a.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href):null),(0,a.jsxs)(o(),{href:"/dashboard/profile",onClick:e,className:(0,c.cn)("flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",E("/dashboard/profile")?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,a.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[18px]",E("/dashboard/profile")?"fill-1":"group-hover:text-primary transition-colors"),children:"settings"}),(0,a.jsx)("span",{className:"text-[13px] font-medium",children:"Settings"})]})]})]})]}),(0,a.jsx)(h.ConfirmModal,{isOpen:C,onClose:()=>S(!1),onConfirm:()=>{S(!1),T(!0)},title:"Update kRouter",message:`Show install command for v${w?.latestVersion||""}? You can copy it and shutdown to install manually.`,confirmText:"Show Command",cancelText:"Cancel",variant:"primary"}),(i||O)&&(0,a.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/80 backdrop-blur-sm p-6",children:O?(0,a.jsx)(N,{latestVersion:w?.latestVersion,installCmd:W,copied:P,onCopyAndShutdown:q,onCancel:()=>{T(!1),$(0)},countdown:F,isDisconnected:i}):(0,a.jsxs)("div",{className:"text-center p-8",children:[(0,a.jsx)("div",{className:"flex items-center justify-center size-16 rounded-full bg-red-500/20 text-red-500 mx-auto mb-4",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[32px]",children:"power_off"})}),(0,a.jsx)("h2",{className:"text-xl font-semibold text-white mb-2",children:"Server Disconnected"}),(0,a.jsx)("p",{className:"text-text-muted mb-6",children:"The proxy server has been stopped."}),(0,a.jsx)(p.default,{variant:"secondary",onClick:()=>globalThis.location.reload(),children:"Reload Page"})]})})]})}function N({latestVersion:e,installCmd:t,copied:s,onCopyAndShutdown:r,onCancel:n,countdown:i,isDisconnected:l}){let o=i>0;return(0,a.jsxs)("div",{className:"w-full max-w-lg rounded-xl bg-neutral-900/95 border border-white/10 p-6 text-white",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"flex items-center justify-center size-11 rounded-full bg-amber-500/20 text-amber-400",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[24px]",children:"content_copy"})}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("h2",{className:"text-lg font-semibold",children:["Update kRouter",e?` to v${e}`:""]}),(0,a.jsx)("p",{className:"text-xs text-white/60",children:l?"Server stopped. Paste the command into a terminal to install.":o?`Command copied. Server will stop in ${i}s...`:"Click the button below to copy the install command and shutdown."})]})]}),(0,a.jsx)("p",{className:"text-sm text-white/80 mb-2",children:"Install command:"}),(0,a.jsx)("div",{className:"w-full px-3 py-2 rounded bg-white/5 mb-4",children:(0,a.jsx)("code",{className:"text-xs font-mono text-amber-400 break-all",children:t})}),(0,a.jsxs)("ol",{className:"text-xs text-white/70 space-y-1 list-decimal list-inside mb-4",children:[(0,a.jsxs)("li",{children:["Click ",(0,a.jsx)("strong",{children:"Copy & Shutdown"})," below."]}),(0,a.jsx)("li",{children:"Paste the command into your terminal and press Enter."}),(0,a.jsxs)("li",{children:["Run ",(0,a.jsx)("code",{className:"px-1 rounded bg-white/10 text-green-400",children:"krouter"})," again after install."]})]}),l?(0,a.jsx)(p.default,{variant:"secondary",fullWidth:!0,onClick:()=>globalThis.location.reload(),children:"Reload Page"}):(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(p.default,{variant:"secondary",onClick:n,disabled:o,children:"Cancel"}),(0,a.jsx)(p.default,{variant:"primary",fullWidth:!0,onClick:r,disabled:o,children:s?"✓ Copied — shutting down...":o?`Shutting down in ${i}s`:"Copy & Shutdown"})]})]})}y.propTypes={onClose:i().func},N.propTypes={latestVersion:i().string,installCmd:i().string.isRequired,copied:i().bool,onCopyAndShutdown:i().func.isRequired,onCancel:i().func.isRequired,countdown:i().number,isDisconnected:i().bool}},94230:(e,t,s)=>{s.d(t,{default:()=>d});var a=s(95155),r=s(12115),n=s(14051),i=s.n(n),l=s(35497),o=s(11059);function d({isOpen:e,provider:t,onSuccess:s,onClose:n}){let[i,c]=(0,r.useState)("loading"),[m,u]=(0,r.useState)(null),[x,p]=(0,r.useState)(""),[h,f]=(0,r.useState)(""),g=(0,r.useRef)(null),{copied:b,copy:v}=(0,o.C)();(0,r.useEffect)(()=>{if(e&&t)return(async()=>{try{u(null),c("loading");let e=await fetch(`/api/oauth/kiro/social-authorize?provider=${t}`),a=await e.json();if(!e.ok)throw Error(a.error||"Failed to start authorization");p(a.userCode||""),f(a.authUrl||""),c("polling");let r=1e3*(a.interval||5);g.current=setInterval(async()=>{try{let e=await fetch("/api/oauth/kiro/social-exchange",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deviceCode:a.deviceCode,provider:t})});(await e.json()).success&&(g.current&&clearInterval(g.current),g.current=null,c("success"),s?.())}catch{}},r)}catch(e){u(e.message),c("error")}})(),()=>{g.current&&(clearInterval(g.current),g.current=null)}},[e,t,s]);let j=()=>{g.current&&(clearInterval(g.current),g.current=null),n()},y="google"===t?"Google":"GitHub";return(0,a.jsx)(l.aF,{isOpen:e,title:`Connect Kiro via ${y}`,onClose:j,size:"lg",children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:["loading"===i&&(0,a.jsxs)("div",{className:"text-center py-6",children:[(0,a.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-primary/10 flex items-center justify-center",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-3xl text-primary animate-spin",children:"progress_activity"})}),(0,a.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Initializing..."}),(0,a.jsxs)("p",{className:"text-sm text-text-muted",children:["Setting up ",y," authentication"]})]}),"polling"===i&&(0,a.jsxs)("div",{className:"text-center py-6",children:[(0,a.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-primary/10 flex items-center justify-center",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-3xl text-primary animate-pulse",children:"open_in_browser"})}),(0,a.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Open this link in an Incognito window"}),(0,a.jsx)("p",{className:"text-sm text-text-muted mb-3",children:"Use an Incognito/Private window to avoid session conflicts with existing accounts."}),h&&(0,a.jsx)("div",{className:"mb-4",children:(0,a.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,a.jsx)("a",{href:h,target:"_blank",rel:"noopener noreferrer",className:"text-xs font-mono text-primary underline break-all max-w-md inline-block",children:h.length>80?h.slice(0,80)+"...":h}),(0,a.jsx)("button",{onClick:()=>v(h),className:"shrink-0 p-1 rounded hover:bg-sidebar",title:b?"Copied!":"Copy link",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-base",children:b?"check":"content_copy"})})]})}),x&&(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("p",{className:"text-xs text-text-muted mb-1",children:"Verification code"}),(0,a.jsx)("p",{className:"font-mono text-2xl font-bold tracking-widest",children:x})]}),(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2 text-sm text-text-muted",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-base animate-spin",children:"progress_activity"}),"Waiting for authorization..."]}),(0,a.jsx)("div",{className:"mt-6",children:(0,a.jsx)(l.$n,{onClick:j,variant:"ghost",fullWidth:!0,children:"Cancel"})})]}),"success"===i&&(0,a.jsxs)("div",{className:"text-center py-6",children:[(0,a.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-3xl text-green-600",children:"check_circle"})}),(0,a.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connected Successfully!"}),(0,a.jsxs)("p",{className:"text-sm text-text-muted mb-4",children:["Your Kiro account via ",y," has been connected."]}),(0,a.jsx)(l.$n,{onClick:j,fullWidth:!0,children:"Done"})]}),"error"===i&&(0,a.jsxs)("div",{className:"text-center py-6",children:[(0,a.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-3xl text-red-600",children:"error"})}),(0,a.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connection Failed"}),(0,a.jsx)("p",{className:"text-sm text-red-600 mb-4",children:m}),(0,a.jsx)(l.$n,{onClick:j,variant:"ghost",fullWidth:!0,children:"Close"})]})]})})}d.propTypes={isOpen:i().bool.isRequired,provider:i().oneOf(["google","github"]).isRequired,onSuccess:i().func,onClose:i().func.isRequired}},95088:(e,t,s)=>{s.d(t,{default:()=>d});var a=s(95155),r=s(12115),n=s(14051),i=s.n(n),l=s(35497);let o="https://gitlab.com";function d({isOpen:e,providerInfo:t,onSuccess:s,onClose:n}){let i,[c,m]=(0,r.useState)(null),[u,x]=(0,r.useState)(o),[p,h]=(0,r.useState)(""),[f,g]=(0,r.useState)(""),[b,v]=(0,r.useState)(""),[j,y]=(0,r.useState)(!1),[N,w]=(0,r.useState)(null),[k,C]=(0,r.useState)(!1),[S,O]=(0,r.useState)(null),T=()=>{m(null),x(o),h(""),g(""),v(""),w(null),y(!1),C(!1),O(null),n()},F=async()=>{if(!b.trim())return void w("Personal Access Token is required");y(!0),w(null);try{let e=await fetch("/api/oauth/gitlab/pat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:b.trim(),baseUrl:u.trim()||o})}),t=await e.json();if(!e.ok)throw Error(t.error||"Authentication failed");s?.(),T()}catch(e){w(e.message)}finally{y(!1)}};return e?k&&S?(0,a.jsx)(l.LF,{isOpen:!0,provider:"gitlab",providerInfo:t,oauthMeta:S,onSuccess:()=>{s?.(),T()},onClose:()=>{C(!1),O(null)}}):(0,a.jsx)(l.aF,{isOpen:e,title:"Connect GitLab Duo",onClose:T,size:"lg",children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[!c&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Choose how to authenticate with GitLab Duo:"}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,a.jsxs)("button",{onClick:()=>m("oauth"),className:"flex flex-col items-center gap-2 p-4 rounded-lg border border-border hover:border-primary hover:bg-primary/5 transition-colors text-left",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-2xl text-primary",children:"lock_open"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:"OAuth App"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Use a GitLab OAuth application"})]})]}),(0,a.jsxs)("button",{onClick:()=>m("pat"),className:"flex flex-col items-center gap-2 p-4 rounded-lg border border-border hover:border-primary hover:bg-primary/5 transition-colors text-left",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-2xl text-primary",children:"key"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:"Personal Access Token"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Use a GitLab PAT with api scope"})]})]})]})]}),"oauth"===c&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:["Create an OAuth app at"," ",(0,a.jsx)("a",{href:`${u.trim()||o}/-/profile/applications`,target:"_blank",rel:"noreferrer",className:"text-primary underline",children:"GitLab Applications"})," ","with redirect URI"," ",(0,a.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:(i=window.location.port||("https:"===window.location.protocol?"443":"80"),`http://localhost:${i}/callback`)})]}),(0,a.jsx)(l.pd,{label:"GitLab Base URL",value:u,onChange:e=>x(e.target.value),placeholder:o}),(0,a.jsx)(l.pd,{label:"Client ID",value:p,onChange:e=>h(e.target.value),placeholder:"Your OAuth application client ID"}),(0,a.jsx)(l.pd,{label:"Client Secret (optional for PKCE)",value:f,onChange:e=>g(e.target.value),placeholder:"Leave empty for public PKCE app"}),N&&(0,a.jsx)("p",{className:"text-sm text-red-500",children:N}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(l.$n,{onClick:()=>{p.trim()?(w(null),O({baseUrl:u.trim()||o,clientId:p.trim(),clientSecret:f.trim()}),C(!0)):w("Client ID is required")},fullWidth:!0,disabled:!p.trim(),children:"Authorize"}),(0,a.jsx)(l.$n,{onClick:()=>{m(null),w(null)},variant:"ghost",fullWidth:!0,children:"Back"})]})]}),"pat"===c&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:["Create a PAT at"," ",(0,a.jsx)("a",{href:`${u.trim()||o}/-/user_settings/personal_access_tokens`,target:"_blank",rel:"noreferrer",className:"text-primary underline",children:"GitLab Access Tokens"})," ","with scopes: ",(0,a.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"api"}),","," ",(0,a.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"read_user"}),", and"," ",(0,a.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"ai_features"}),"."]}),(0,a.jsx)(l.pd,{label:"GitLab Base URL",value:u,onChange:e=>x(e.target.value),placeholder:o}),(0,a.jsx)(l.pd,{label:"Personal Access Token",value:b,onChange:e=>v(e.target.value),placeholder:"glpat-xxxxxxxxxxxxxxxxxxxx",type:"password"}),N&&(0,a.jsx)("p",{className:"text-sm text-red-500",children:N}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(l.$n,{onClick:F,fullWidth:!0,disabled:!b.trim()||j,loading:j,children:"Connect"}),(0,a.jsx)(l.$n,{onClick:()=>{m(null),w(null)},variant:"ghost",fullWidth:!0,children:"Back"})]})]})]})}):null}d.propTypes={isOpen:i().bool.isRequired,providerInfo:i().shape({name:i().string}),onSuccess:i().func,onClose:i().func.isRequired}},96748:(e,t,s)=>{s.d(t,{default:()=>d});var a=s(95155),r=s(12115),n=s(14051),i=s.n(n),l=s(35497);let o="https://api.openai.com/v1";function d({isOpen:e,onClose:t,onCreated:s,onSaved:n,node:i}){let c=!!i,[m,u]=(0,r.useState)({name:"",prefix:"",baseUrl:o}),[x,p]=(0,r.useState)(!1),[h,f]=(0,r.useState)(""),[g,b]=(0,r.useState)(""),[v,j]=(0,r.useState)(!1),[y,N]=(0,r.useState)(null);(0,r.useEffect)(()=>{e&&(N(null),f(""),b(""),c?u({name:i.name||"",prefix:i.prefix||"",baseUrl:i.baseUrl||o}):u({name:"",prefix:"",baseUrl:o}))},[e,c,i]);let w=async()=>{if(m.name.trim()&&m.prefix.trim()&&m.baseUrl.trim()){p(!0);try{let e=c?`/api/provider-nodes/${i.id}`:"/api/provider-nodes",t=c?"PUT":"POST",a={name:m.name,prefix:m.prefix,baseUrl:m.baseUrl};c||(a.type="custom-embedding");let r=await fetch(e,{method:t,headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),l=await r.json();r.ok&&(c?n?.(l.node):s?.(l.node))}catch(e){console.log("Error saving custom embedding node:",e)}finally{p(!1)}}},k=async()=>{j(!0);try{let e=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:m.baseUrl,apiKey:h,type:"custom-embedding",modelId:g.trim()||void 0})}),t=await e.json();N(t)}catch{N({valid:!1,error:"Network error"})}finally{j(!1)}};return(0,a.jsx)(l.aF,{isOpen:e,title:c?"Edit Custom Embedding":"Add Custom Embedding",onClose:t,children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(l.pd,{label:"Name",value:m.name,onChange:e=>u({...m,name:e.target.value}),placeholder:"Voyage AI",hint:"Required. A friendly label for this embedding provider."}),(0,a.jsx)(l.pd,{label:"Prefix",value:m.prefix,onChange:e=>u({...m,prefix:e.target.value}),placeholder:"voyage",hint:"Required. Used as the provider prefix for model IDs (e.g. voyage/voyage-3)."}),(0,a.jsx)(l.pd,{label:"Base URL",value:m.baseUrl,onChange:e=>u({...m,baseUrl:e.target.value}),placeholder:"https://api.voyageai.com/v1",hint:"Most embedding APIs are OpenAI-compatible: Voyage, Cohere, Jina, Mistral, Together..."}),(0,a.jsx)(l.pd,{label:"API Key (for Check)",type:"password",value:h,onChange:e=>f(e.target.value)}),(0,a.jsx)(l.pd,{label:"Model ID (for Check)",value:g,onChange:e=>b(e.target.value),placeholder:"e.g. voyage-3, embed-english-v3.0, text-embedding-3-small",hint:"Required for validation. Will send a test embeddings request."}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(l.$n,{onClick:k,disabled:!h||!g.trim()||v||!m.baseUrl.trim(),variant:"secondary",children:v?"Checking...":"Check"}),(()=>{if(!y)return null;let{valid:e,error:t,dimensions:s}=y;return e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.Ex,{variant:"success",children:"Valid"}),s&&(0,a.jsxs)("span",{className:"text-sm text-text-muted",children:[s," dims"]})]}):(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)(l.Ex,{variant:"error",children:"Invalid"}),t&&(0,a.jsx)("span",{className:"text-sm text-red-500",children:t})]})})()]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(l.$n,{onClick:w,fullWidth:!0,disabled:!m.name.trim()||!m.prefix.trim()||!m.baseUrl.trim()||x,children:x?c?"Saving...":"Creating...":c?"Save":"Create"}),(0,a.jsx)(l.$n,{onClick:t,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})}d.propTypes={isOpen:i().bool.isRequired,onClose:i().func.isRequired,onCreated:i().func,onSaved:i().func,node:i().shape({id:i().string,name:i().string,prefix:i().string,baseUrl:i().string})}},97556:(e,t,s)=>{s.d(t,{default:()=>c});var a=s(95155),r=s(12115),n=s(47650),i=s(14051),l=s.n(i),o=s(9233),d=s(90620);function c({isOpen:e,onClose:t}){let[s,i]=(0,r.useState)(""),[l,m]=(0,r.useState)(!1),[u,x]=(0,r.useState)(""),p=(0,r.useRef)(null);return((0,r.useEffect)(()=>{e&&!s&&(m(!0),x(""),fetch(d.Nu.changelogUrl).then(e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);return e.text()}).then(e=>i(o.xI.parse(e))).catch(e=>x(e.message||"Failed to load")).finally(()=>m(!1)))},[e,s]),(0,r.useEffect)(()=>{let s=e=>{p.current&&!p.current.contains(e.target)&&t()};if(e)return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[e,t]),!e||"u"<typeof document)?null:(0,n.createPortal)((0,a.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-black/30 backdrop-blur-sm",onClick:t}),(0,a.jsxs)("div",{ref:p,className:"relative w-full bg-surface border border-black/10 dark:border-white/10 rounded-xl shadow-2xl animate-in fade-in zoom-in-95 duration-200 max-w-3xl flex flex-col max-h-[85vh]",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between p-3 border-b border-black/5 dark:border-white/5",children:[(0,a.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:"Change Log"}),(0,a.jsx)("button",{onClick:t,className:"p-1.5 rounded-lg text-text-muted hover:bg-black/5 dark:hover:bg-white/5 transition-colors","aria-label":"Close",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,a.jsxs)("div",{className:"p-6 overflow-y-auto flex-1",children:[l&&(0,a.jsxs)("div",{className:"flex items-center justify-center py-10 text-text-muted",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin mr-2",children:"progress_activity"}),"Loading..."]}),u&&(0,a.jsxs)("div",{className:"text-red-500 py-4",children:["Failed to load changelog: ",u]}),!l&&!u&&s&&(0,a.jsx)("div",{className:"changelog-body text-text-main",dangerouslySetInnerHTML:{__html:s}})]})]})]}),document.body)}o.xI.setOptions({gfm:!0,breaks:!0}),c.propTypes={isOpen:l().bool.isRequired,onClose:l().func.isRequired}},97677:(e,t,s)=>{s.d(t,{default:()=>r});var a=s(95155);function r({text:e,children:t,position:s="top",color:n}){let i=n?"":"bg-gray-900";return(0,a.jsxs)("div",{className:"relative inline-flex group",children:[t,(0,a.jsx)("div",{className:`pointer-events-none absolute ${{top:"bottom-full left-1/2 -translate-x-1/2 mb-1.5",bottom:"top-full left-1/2 -translate-x-1/2 mt-1.5",left:"right-full top-1/2 -translate-y-1/2 mr-1.5",right:"left-full top-1/2 -translate-y-1/2 ml-1.5"}[s]} z-50 w-max max-w-56 rounded px-2 py-1 text-[11px] leading-snug ${i} text-white opacity-0 group-hover:opacity-100 transition-opacity duration-150 whitespace-normal`,style:n?{backgroundColor:n}:{},children:e})]})}},98542:(e,t,s)=>{s.d(t,{default:()=>n});var a=s(95155),r=s(31474);function n({checked:e=!1,onChange:t,label:s,description:i,disabled:l=!1,size:o="md",className:d}){let c={sm:{track:"w-8 h-4",thumb:"size-3",translate:"translate-x-4"},md:{track:"w-11 h-6",thumb:"size-5",translate:"translate-x-5"},lg:{track:"w-14 h-7",thumb:"size-6",translate:"translate-x-7"}};return(0,a.jsxs)("div",{className:(0,r.cn)("flex items-center gap-3",l&&"opacity-50 cursor-not-allowed",d),children:[(0,a.jsx)("button",{type:"button",role:"switch","aria-checked":e,disabled:l,onClick:()=>{!l&&t&&t(!e)},className:(0,r.cn)("relative inline-flex shrink-0 cursor-pointer rounded-full","transition-colors duration-200 ease-in-out","focus:outline-none focus:ring-2 focus:ring-brand-500/30",e?"bg-brand-500":"bg-surface-3",c[o].track,l&&"cursor-not-allowed"),children:(0,a.jsx)("span",{className:(0,r.cn)("pointer-events-none inline-block rounded-full bg-white shadow-sm","transform transition duration-200 ease-in-out",e?c[o].translate:"translate-x-0.5",c[o].thumb,"mt-0.5")})}),(s||i)&&(0,a.jsxs)("div",{className:"flex flex-col",children:[s&&(0,a.jsx)("span",{className:"text-sm font-medium text-text-main",children:s}),i&&(0,a.jsx)("span",{className:"text-xs text-text-muted",children:i})]})]})}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7414],{6078:(e,t,s)=>{Promise.resolve().then(s.bind(s,71470))},71470:(e,t,s)=>{"use strict";s.d(t,{default:()=>j});var a=s(95155),l=s(12115),r=s(21742),i=s(63346),d=s(28408),n=s(32539),o=s(59656),x=s(55433),c=s(40968),m=s(35497);let p=e=>e>=1e6?`${(e/1e6).toFixed(2)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(e||0),h=[{id:"today",label:"Today"},{id:"yesterday",label:"Yesterday"},{id:"last7d",label:"7 days"},{id:"last30d",label:"30 days"},{id:"all",label:"All time"}],u={applied:"Prompt exceeded threshold",below_threshold:"Below size threshold",not_profitable:"Compression not profitable",below_min_chars:"Below minimum chars",below_min_tokens:"Below minimum tokens",unsupported_model:"Model not in allowlist",unsupported_format:"Non-Claude request format",timeout:"Compression timed out",transform_error:"Transform error",passthrough:"Passthrough",disabled:"Disabled",not_installed:"Not installed"};function g({label:e,value:t,sub:s,tone:l}){return(0,a.jsxs)(m.Zp,{className:"p-4",children:[(0,a.jsx)("p",{className:"text-xs text-text-muted uppercase tracking-wide",children:e}),(0,a.jsx)("p",{className:`text-xl font-semibold mt-1 ${l||""}`,children:t}),s&&(0,a.jsx)("p",{className:"text-xs text-text-muted mt-0.5",children:s})]})}function j(){let[e,t]=(0,l.useState)(null),[s,j]=(0,l.useState)(null),[b,f]=(0,l.useState)(null),[N,y]=(0,l.useState)(null),[v,w]=(0,l.useState)("last7d"),[k,S]=(0,l.useState)(!0),P=(0,l.useCallback)(async()=>{S(!0);try{let[e,s,a]=await Promise.all([fetch("/api/pxpipe/status",{headers:{"Cache-Control":"no-store"}}),fetch("/api/pxpipe/stats"),fetch("/api/pxpipe/logs?limit=50")]);t(await e.json()),f(await s.json()),y(await a.json());let l=await fetch("/api/pxpipe/health",{method:"POST"});j(await l.json())}catch{}finally{S(!1)}},[]);(0,l.useEffect)(()=>{P()},[P]);let E=b?.windows?.[v],$=e?e.installed?s?.healthy?"Healthy":e.running?"Running":"Stopped":"Not installed":"—";return(0,a.jsxs)("div",{className:"space-y-6 p-6",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between flex-wrap gap-3",children:[(0,a.jsxs)("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary",children:"image"}),"PXPIPE Dashboard"]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("a",{href:"/dashboard/token-saver",className:"text-xs text-primary underline hover:opacity-80",children:"Token Saver settings"}),(0,a.jsx)(m.$n,{size:"sm",variant:"ghost",onClick:P,disabled:k,children:k?"Refreshing…":"Refresh"})]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-3",children:[(0,a.jsx)(g,{label:"Status",value:$,tone:s?.healthy?"text-success":e?.installed?"text-warning":"text-text-muted",sub:e?.enabled?"Enabled in pipeline":"Disabled in pipeline"}),(0,a.jsx)(g,{label:"Version",value:e?.version?`v${e.version}`:"—",sub:"pxpipe-proxy"}),(0,a.jsx)(g,{label:"Uptime",value:(e=>{if(!e||e<=0)return"—";let t=Math.floor(e/6e4),s=Math.floor(t/60);return s>0?`${s}h${String(t%60).padStart(2,"0")}m`:`${t}m`})(e?.uptimeMs),sub:"module loaded"}),(0,a.jsx)(g,{label:"Requests",value:E?E.requests.toLocaleString():"—"}),(0,a.jsx)(g,{label:"Compressed",value:E?E.compressed.toLocaleString():"—",tone:"text-success"}),(0,a.jsx)(g,{label:"Bypassed",value:E?E.bypassed.toLocaleString():"—"})]}),(0,a.jsxs)(m.Zp,{className:"p-4",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between flex-wrap gap-3 mb-4",children:[(0,a.jsx)("h3",{className:"font-medium",children:"Token savings (estimated)"}),(0,a.jsx)("div",{className:"flex items-center gap-1 rounded-lg border border-border bg-bg-subtle p-1",children:h.map(e=>(0,a.jsx)("button",{onClick:()=>w(e.id),className:`px-3 py-1 rounded-md text-xs font-medium transition-colors ${v===e.id?"bg-primary text-white shadow-sm":"text-text-muted hover:text-text hover:bg-bg-hover"}`,children:e.label},e.id))})]}),(0,a.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 text-center",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Original tokens"}),(0,a.jsx)("p",{className:"text-lg font-semibold",children:E?p(E.tokensBeforeEst):"—"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"After PXPIPE"}),(0,a.jsx)("p",{className:"text-lg font-semibold",children:E?p(E.tokensAfterEst):"—"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Saved"}),(0,a.jsx)("p",{className:"text-lg font-semibold text-success",children:E?p(E.tokensSavedEst):"—"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Reduction"}),(0,a.jsx)("p",{className:"text-lg font-semibold text-success",children:E?`${E.savedPct}%`:"—"})]})]}),(0,a.jsxs)("p",{className:"text-xs text-text-muted mt-3",children:["Estimates from body size before/after imaging; billed usage per request (recorded on the Usage page) remains the ground truth. Images generated:"," ",E?E.imagesGenerated.toLocaleString():"—"," \xb7 avg compression time:"," ",E?`${E.avgCompressionMs}ms`:"—"," \xb7 errors: ",E?E.errors:"—"]})]}),(0,a.jsxs)(m.Zp,{className:"p-4",children:[(0,a.jsx)("h3",{className:"font-medium mb-3",children:"Tokens saved — last 30 days"}),b?.timeline?.some(e=>e.tokensSavedEst>0)?(0,a.jsx)(r.u,{width:"100%",height:220,children:(0,a.jsxs)(i.Q,{data:b.timeline,margin:{top:4,right:8,left:0,bottom:0},children:[(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"gradPxpipe",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,a.jsx)("stop",{offset:"5%",stopColor:"#10b981",stopOpacity:.25}),(0,a.jsx)("stop",{offset:"95%",stopColor:"#10b981",stopOpacity:0})]})}),(0,a.jsx)(d.d,{strokeDasharray:"3 3",strokeOpacity:.2}),(0,a.jsx)(n.W,{dataKey:"date",tick:{fontSize:11},tickFormatter:e=>e.slice(5)}),(0,a.jsx)(o.h,{tick:{fontSize:11},tickFormatter:p,width:48}),(0,a.jsx)(x.m,{formatter:e=>[p(e),"Tokens saved"],labelFormatter:e=>e}),(0,a.jsx)(c.Gk,{type:"monotone",dataKey:"tokensSavedEst",stroke:"#10b981",fill:"url(#gradPxpipe)",strokeWidth:2})]})}):(0,a.jsx)("div",{className:"h-32 flex items-center justify-center text-text-muted text-sm",children:"No savings recorded yet — enable PXPIPE in the Token Saver and route a large Claude-format request."})]}),(0,a.jsxs)(m.Zp,{className:"p-4",children:[(0,a.jsx)("h3",{className:"font-medium mb-3",children:"History"}),(0,a.jsx)("div",{className:"overflow-x-auto",children:(0,a.jsxs)("table",{className:"w-full text-sm",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"text-left text-xs text-text-muted border-b border-border",children:[(0,a.jsx)("th",{className:"py-2 pr-3",children:"Time"}),(0,a.jsx)("th",{className:"py-2 pr-3",children:"Model"}),(0,a.jsx)("th",{className:"py-2 pr-3 text-right",children:"Original"}),(0,a.jsx)("th",{className:"py-2 pr-3 text-right",children:"Compressed"}),(0,a.jsx)("th",{className:"py-2 pr-3 text-right",children:"Saved"}),(0,a.jsx)("th",{className:"py-2 pr-3 text-right",children:"%"}),(0,a.jsx)("th",{className:"py-2 pr-3 text-right",children:"Duration"}),(0,a.jsx)("th",{className:"py-2",children:"Status"})]})}),(0,a.jsxs)("tbody",{children:[(b?.recent||[]).slice(0,50).map((e,t)=>(0,a.jsxs)("tr",{className:"border-b border-border/50",children:[(0,a.jsx)("td",{className:"py-1.5 pr-3 whitespace-nowrap text-text-muted",children:new Date(e.ts).toLocaleString()}),(0,a.jsx)("td",{className:"py-1.5 pr-3 font-mono text-xs",children:e.provider?`${e.provider}/${e.model}`:e.model||"—"}),(0,a.jsx)("td",{className:"py-1.5 pr-3 text-right font-mono text-xs",children:e.applied?p(e.tokensBeforeEst):"—"}),(0,a.jsx)("td",{className:"py-1.5 pr-3 text-right font-mono text-xs",children:e.applied?p(e.tokensAfterEst):"—"}),(0,a.jsx)("td",{className:"py-1.5 pr-3 text-right font-mono text-xs text-success",children:e.applied?p(e.tokensSavedEst):"—"}),(0,a.jsx)("td",{className:"py-1.5 pr-3 text-right font-mono text-xs",children:e.applied?`${e.savedPct}%`:"—"}),(0,a.jsx)("td",{className:"py-1.5 pr-3 text-right font-mono text-xs",children:null!=e.durationMs?`${e.durationMs}ms`:"—"}),(0,a.jsx)("td",{className:"py-1.5",children:(0,a.jsx)("span",{className:`text-xs px-2 py-0.5 rounded ${e.applied?"bg-success/15 text-success":"transform_error"===e.reason||"timeout"===e.reason?"bg-danger/15 text-danger":"bg-warning/15 text-warning"}`,title:e.detail||"",children:e.applied?"Compressed":u[e.reason]||e.reason})})]},`${e.ts}-${t}`)),(!b?.recent||0===b.recent.length)&&(0,a.jsx)("tr",{children:(0,a.jsx)("td",{colSpan:8,className:"py-6 text-center text-text-muted text-sm",children:"No PXPIPE activity yet"})})]})]})})]}),(0,a.jsxs)(m.Zp,{className:"p-4",id:"logs",children:[(0,a.jsx)("h3",{className:"font-medium mb-3",children:"PXPIPE Logs"}),N?.installLog?(0,a.jsx)("pre",{className:"rounded bg-black/5 dark:bg-white/5 p-3 text-xs font-mono overflow-x-auto max-h-64 overflow-y-auto whitespace-pre-wrap",children:N.installLog}):(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"No install log yet."})]})]})}}},e=>{e.O(0,[7504,1321,5497,8441,3794,7358],()=>e(e.s=6078)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,487,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1752,1860,1907,1910,1946,1949,2121,2198,2284,2296,2536,2734,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5065,5107,5177,5211,5226,5466,5616,5637,5685,5745,5922,6045,6091,6102,6107,6121,6268,6319,6406,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8249,8453,8489,8573,8648,8669,8736,8791,8814,8870,8879,8948,8974,8975,9027,9069,9088,9115,9141,9199,9321,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,487,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1752,1860,1907,1910,1946,1949,2121,2198,2284,2296,2536,2734,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5065,5107,5177,5211,5226,5466,5616,5637,5685,5745,5922,6045,6091,6102,6107,6121,6268,6319,6406,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8249,8453,8489,8573,8648,8669,8736,8791,8814,8870,8879,8948,8974,8975,9027,9069,9088,9115,9141,9199,9321,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,487,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1752,1860,1907,1910,1946,1949,2121,2198,2284,2296,2536,2734,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5065,5107,5177,5211,5226,5466,5616,5637,5685,5745,5922,6045,6091,6102,6107,6121,6268,6319,6406,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8249,8453,8489,8573,8648,8669,8736,8791,8814,8870,8879,8948,8974,8975,9027,9069,9088,9115,9141,9199,9321,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,487,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1752,1860,1907,1910,1946,1949,2121,2198,2284,2296,2536,2734,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5065,5107,5177,5211,5226,5466,5616,5637,5685,5745,5922,6045,6091,6102,6107,6121,6268,6319,6406,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8249,8453,8489,8573,8648,8669,8736,8791,8814,8870,8879,8948,8974,8975,9027,9069,9088,9115,9141,9199,9321,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,487,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1752,1860,1907,1910,1946,1949,2121,2198,2284,2296,2536,2734,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5065,5107,5177,5211,5226,5466,5616,5637,5685,5745,5922,6045,6091,6102,6107,6121,6268,6319,6406,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8249,8453,8489,8573,8648,8669,8736,8791,8814,8870,8879,8948,8974,8975,9027,9069,9088,9115,9141,9199,9321,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,487,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1752,1860,1907,1910,1946,1949,2121,2198,2284,2296,2536,2734,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5065,5107,5177,5211,5226,5466,5616,5637,5685,5745,5922,6045,6091,6102,6107,6121,6268,6319,6406,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8249,8453,8489,8573,8648,8669,8736,8791,8814,8870,8879,8948,8974,8975,9027,9069,9088,9115,9141,9199,9321,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,487,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1752,1860,1907,1910,1946,1949,2121,2198,2284,2296,2536,2734,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5065,5107,5177,5211,5226,5466,5616,5637,5685,5745,5922,6045,6091,6102,6107,6121,6268,6319,6406,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8249,8453,8489,8573,8648,8669,8736,8791,8814,8870,8879,8948,8974,8975,9027,9069,9088,9115,9141,9199,9321,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,487,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1752,1860,1907,1910,1946,1949,2121,2198,2284,2296,2536,2734,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5065,5107,5177,5211,5226,5466,5616,5637,5685,5745,5922,6045,6091,6102,6107,6121,6268,6319,6406,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8249,8453,8489,8573,8648,8669,8736,8791,8814,8870,8879,8948,8974,8975,9027,9069,9088,9115,9141,9199,9321,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,487,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1752,1860,1907,1910,1946,1949,2121,2198,2284,2296,2536,2734,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5065,5107,5177,5211,5226,5466,5616,5637,5685,5745,5922,6045,6091,6102,6107,6121,6268,6319,6406,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8249,8453,8489,8573,8648,8669,8736,8791,8814,8870,8879,8948,8974,8975,9027,9069,9088,9115,9141,9199,9321,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,487,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1752,1860,1907,1910,1946,1949,2121,2198,2284,2296,2536,2734,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5065,5107,5177,5211,5226,5466,5616,5637,5685,5745,5922,6045,6091,6102,6107,6121,6268,6319,6406,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8249,8453,8489,8573,8648,8669,8736,8791,8814,8870,8879,8948,8974,8975,9027,9069,9088,9115,9141,9199,9321,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,487,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1752,1860,1907,1910,1946,1949,2121,2198,2284,2296,2536,2734,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5065,5107,5177,5211,5226,5466,5616,5637,5685,5745,5922,6045,6091,6102,6107,6121,6268,6319,6406,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8249,8453,8489,8573,8648,8669,8736,8791,8814,8870,8879,8948,8974,8975,9027,9069,9088,9115,9141,9199,9321,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,487,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1752,1860,1907,1910,1946,1949,2121,2198,2284,2296,2536,2734,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5065,5107,5177,5211,5226,5466,5616,5637,5685,5745,5922,6045,6091,6102,6107,6121,6268,6319,6406,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8249,8453,8489,8573,8648,8669,8736,8791,8814,8870,8879,8948,8974,8975,9027,9069,9088,9115,9141,9199,9321,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,487,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1752,1860,1907,1910,1946,1949,2121,2198,2284,2296,2536,2734,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5065,5107,5177,5211,5226,5466,5616,5637,5685,5745,5922,6045,6091,6102,6107,6121,6268,6319,6406,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8249,8453,8489,8573,8648,8669,8736,8791,8814,8870,8879,8948,8974,8975,9027,9069,9088,9115,9141,9199,9321,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,487,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1752,1860,1907,1910,1946,1949,2121,2198,2284,2296,2536,2734,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5065,5107,5177,5211,5226,5466,5616,5637,5685,5745,5922,6045,6091,6102,6107,6121,6268,6319,6406,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8249,8453,8489,8573,8648,8669,8736,8791,8814,8870,8879,8948,8974,8975,9027,9069,9088,9115,9141,9199,9321,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,487,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1752,1860,1907,1910,1946,1949,2121,2198,2284,2296,2536,2734,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5065,5107,5177,5211,5226,5466,5616,5637,5685,5745,5922,6045,6091,6102,6107,6121,6268,6319,6406,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8249,8453,8489,8573,8648,8669,8736,8791,8814,8870,8879,8948,8974,8975,9027,9069,9088,9115,9141,9199,9321,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,487,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1752,1860,1907,1910,1946,1949,2121,2198,2284,2296,2536,2734,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5065,5107,5177,5211,5226,5466,5616,5637,5685,5745,5922,6045,6091,6102,6107,6121,6268,6319,6406,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8249,8453,8489,8573,8648,8669,8736,8791,8814,8870,8879,8948,8974,8975,9027,9069,9088,9115,9141,9199,9321,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,387,487,501,516,543,552,675,747,748,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1674,1697,1752,1860,1907,1910,1946,1949,2121,2198,2284,2296,2536,2734,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3549,3562,3568,3648,3883,3888,4010,4061,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4896,4993,5018,5065,5107,5177,5211,5226,5466,5616,5637,5685,5745,5922,6045,6091,6102,6107,6121,6268,6319,6406,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7131,7158,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8249,8453,8489,8573,8648,8669,8736,8791,8814,8870,8879,8948,8974,8975,9027,9069,9088,9115,9141,9199,9321,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);