nggrouter 0.1.21 → 0.1.22
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.
- package/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +26 -24
- package/app/.next-cli-build/build-manifest.json +4 -4
- package/app/.next-cli-build/prerender-manifest.json +49 -21
- package/app/.next-cli-build/react-loadable-manifest.json +1 -1
- package/app/.next-cli-build/routes-manifest.json +12 -0
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/addons/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/addons/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/addons/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/arena/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/arena/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/arena/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/checkin/page.js +1 -0
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/checkin/page.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/checkin/page_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/system-status/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/system-status/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/system-status/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
- package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_not-found.html +1 -1
- package/app/.next-cli-build/server/app/_not-found.rsc +5 -5
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/api/addons/list/route.js +1 -1
- package/app/.next-cli-build/server/app/api/addons/list/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/addons/update/route.js +1 -1
- package/app/.next-cli-build/server/app/api/addons/update/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js +2 -2
- package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/checkin/route.js +1 -0
- package/app/.next-cli-build/server/app/api/checkin/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/checkin/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -5
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js +22 -2
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +3 -3
- package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/presets/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +2 -2
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js +2 -2
- package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/bulk-proxy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/bulk-proxy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/system/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/system/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +3 -3
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/error-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/error-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page.js +1 -1
- package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback.html +1 -1
- package/app/.next-cli-build/server/app/callback.rsc +5 -5
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/arena.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/arena.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/arena.segments/!KGRhc2hib2FyZCk/dashboard/arena/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/arena.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/arena.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/checkin.html +1 -0
- package/app/.next-cli-build/server/app/dashboard/checkin.meta +44 -0
- package/app/.next-cli-build/server/app/dashboard/checkin.rsc +45 -0
- package/app/.next-cli-build/server/app/dashboard/checkin.segments/!KGRhc2hib2FyZCk/dashboard/checkin/__PAGE__.segment.rsc +47 -0
- package/app/.next-cli-build/server/app/dashboard/checkin.segments/_full.segment.rsc +45 -0
- package/app/.next-cli-build/server/app/dashboard/checkin.segments/_tree.segment.rsc +11 -0
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/system-status.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/system-status.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/system-status.segments/!KGRhc2hib2FyZCk/dashboard/system-status/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/system-status.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/system-status.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
- package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +5 -5
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing/page.js +1 -1
- package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/landing.html +1 -1
- package/app/.next-cli-build/server/app/landing.rsc +5 -5
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/login/page.js +1 -1
- package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +1 -1
- package/app/.next-cli-build/server/app/login.rsc +5 -5
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page.js +1 -1
- package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +26 -24
- package/app/.next-cli-build/server/chunks/1306.js +1 -1
- package/app/.next-cli-build/server/chunks/1350.js +1 -1
- package/app/.next-cli-build/server/chunks/1757.js +22 -2
- package/app/.next-cli-build/server/chunks/2236.js +1 -0
- package/app/.next-cli-build/server/chunks/238.js +1 -1
- package/app/.next-cli-build/server/chunks/24.js +1 -1
- package/app/.next-cli-build/server/chunks/2559.js +1 -1
- package/app/.next-cli-build/server/chunks/2925.js +1 -1
- package/app/.next-cli-build/server/chunks/2970.js +2 -2
- package/app/.next-cli-build/server/chunks/3192.js +1 -1
- package/app/.next-cli-build/server/chunks/{1851.js → 3360.js} +1 -1
- package/app/.next-cli-build/server/chunks/3943.js +1 -1
- package/app/.next-cli-build/server/chunks/412.js +1 -1
- package/app/.next-cli-build/server/chunks/4123.js +1 -1
- package/app/.next-cli-build/server/chunks/4334.js +1 -0
- package/app/.next-cli-build/server/chunks/4386.js +1 -1
- package/app/.next-cli-build/server/chunks/4732.js +2 -0
- package/app/.next-cli-build/server/chunks/4803.js +9 -0
- package/app/.next-cli-build/server/chunks/4827.js +1 -1
- package/app/.next-cli-build/server/chunks/{3277.js → 5274.js} +1 -1
- package/app/.next-cli-build/server/chunks/5299.js +9 -2
- package/app/.next-cli-build/server/chunks/5330.js +5 -5
- package/app/.next-cli-build/server/chunks/5360.js +2 -0
- package/app/.next-cli-build/server/chunks/539.js +1 -0
- package/app/.next-cli-build/server/chunks/5390.js +1 -1
- package/app/.next-cli-build/server/chunks/5615.js +1 -1
- package/app/.next-cli-build/server/chunks/5800.js +9 -0
- package/app/.next-cli-build/server/chunks/6103.js +1 -0
- package/app/.next-cli-build/server/chunks/6252.js +9 -0
- package/app/.next-cli-build/server/chunks/6267.js +1 -0
- package/app/.next-cli-build/server/chunks/7121.js +1 -1
- package/app/.next-cli-build/server/chunks/7211.js +1 -1
- package/app/.next-cli-build/server/chunks/7247.js +1 -1
- package/app/.next-cli-build/server/chunks/7373.js +2 -2
- package/app/.next-cli-build/server/chunks/7716.js +1 -1
- package/app/.next-cli-build/server/chunks/7774.js +13 -13
- package/app/.next-cli-build/server/chunks/7828.js +1 -1
- package/app/.next-cli-build/server/chunks/7911.js +1 -1
- package/app/.next-cli-build/server/chunks/7965.js +2 -2
- package/app/.next-cli-build/server/chunks/8062.js +9 -0
- package/app/.next-cli-build/server/chunks/8228.js +9 -0
- package/app/.next-cli-build/server/chunks/8238.js +1 -1
- package/app/.next-cli-build/server/chunks/8432.js +1 -0
- package/app/.next-cli-build/server/chunks/8469.js +9 -0
- package/app/.next-cli-build/server/chunks/8499.js +3 -3
- package/app/.next-cli-build/server/chunks/8895.js +10 -5
- package/app/.next-cli-build/server/chunks/8910.js +1 -1
- package/app/.next-cli-build/server/instrumentation.js +2 -1
- package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware-react-loadable-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +6 -6
- package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
- package/app/.next-cli-build/server/pages/404.html +1 -1
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/server/prefetch-hints.json +24 -0
- package/app/.next-cli-build/server/preview-props.json +3 -3
- package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
- package/app/.next-cli-build/static/chunks/{3794-39f2d5bb0d40336b.js → 3794-04350b0fcecd82e5.js} +1 -1
- package/app/.next-cli-build/static/chunks/5497-3e838288c83f6c38.js +7 -0
- package/app/.next-cli-build/static/chunks/{620-eb4703fefb0a8224.js → 620-d7ed0df2886322ee.js} +1 -1
- package/app/.next-cli-build/static/chunks/{6808-e6340e2d4cfe01fe.js → 6808-83c3dfdc65e5daa9.js} +1 -1
- package/app/.next-cli-build/static/chunks/{761-ee86f920b407fe8e.js → 761-5fd72f4954b87110.js} +9 -2
- package/app/.next-cli-build/static/chunks/8105-63b210e73fb53166.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/checkin/page-42825bd41f565908.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-deb38e87524ff14e.js → page-285b3f759b7dc2d7.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-442ec987799f9a5e.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/{page-e2e50aefcea07c9b.js → page-002702d0d2cd95ab.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/_global-error/page-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/addons/list/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/addons/update/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/checkin/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codewhale-settings/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/crush-settings/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/forge-settings/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-profiles/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/smelt-settings/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/presets/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/health/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/init/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/locale/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/overrides/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/bulk-proxy/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/netlify-deploy/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/system/status/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tags/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/error-logs/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/app/page-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/{main-00cd8c01f6f6e461.js → main-ca004678a0b6b16d.js} +1 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-9080ff61af91a815.js +1 -0
- package/app/.next-cli-build/static/chunks/{webpack-c056b5babdc7a81f.js → webpack-867512cebea0fc40.js} +1 -1
- package/app/.next-cli-build/static/css/92c71fc2cde6ebf1.css +1 -0
- package/app/.next-cli-build/static/yJ-97dxfKFiJYqLiUc_hR/_buildManifest.js +1 -0
- package/app/node_modules/@next/env/package.json +1 -1
- package/app/node_modules/baseline-browser-mapping/dist/index.cjs +1 -1
- package/app/node_modules/baseline-browser-mapping/package.json +3 -3
- package/app/node_modules/next/dist/build/swc/index.js +1 -1
- package/app/node_modules/next/dist/build/webpack-config.js +3 -3
- package/app/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js +1 -1
- package/app/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +1 -1
- package/app/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +1 -1
- package/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js +1 -1
- package/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js +1 -1
- package/app/node_modules/next/dist/lib/patch-incorrect-lockfile.js +3 -3
- package/app/node_modules/next/dist/server/app-render/async-local-storage.js +1 -1
- package/app/node_modules/next/dist/server/config.js +1 -1
- package/app/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +2 -2
- package/app/node_modules/next/dist/server/dev/hot-reloader-webpack.js +1 -1
- package/app/node_modules/next/dist/server/lib/app-info-log.js +1 -1
- package/app/node_modules/next/dist/server/lib/generate-agent-files.js +3 -3
- package/app/node_modules/next/dist/server/lib/router-server.js +1 -1
- package/app/node_modules/next/dist/server/lib/start-server.js +1 -1
- package/app/node_modules/next/dist/server/lib/trace/tracer.js +1 -1
- package/app/node_modules/next/dist/server/typescript/rules/config.js +2 -2
- package/app/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
- package/app/node_modules/next/dist/telemetry/events/swc-load-failure.js +1 -1
- package/app/node_modules/next/dist/telemetry/events/version.js +2 -2
- package/app/node_modules/next/package.json +10 -10
- package/app/package.json +2 -2
- package/app/public/fonts/material-symbols-outlined.woff2 +0 -0
- package/app/src/mitm/server.js +1 -1
- package/package.json +1 -1
- package/app/.next-cli-build/server/chunks/2708.js +0 -1
- package/app/.next-cli-build/server/chunks/3726.js +0 -1
- package/app/.next-cli-build/server/chunks/8251.js +0 -1
- package/app/.next-cli-build/server/chunks/8402.js +0 -1
- package/app/.next-cli-build/static/-A8yVxeQUhunMwVeISlwZ/_buildManifest.js +0 -1
- package/app/.next-cli-build/static/chunks/5497-bdb464e8bf997966.js +0 -7
- package/app/.next-cli-build/static/chunks/8105-5dd3fc022d984a17.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-06427d5637ff9cb2.js +0 -1
- package/app/.next-cli-build/static/chunks/app/_global-error/page-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/addons/list/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/addons/update/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codewhale-settings/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/crush-settings/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/forge-settings/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-profiles/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/smelt-settings/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/presets/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/health/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/init/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/locale/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/overrides/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/bulk-proxy/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/netlify-deploy/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/system/status/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tags/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/error-logs/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/app/page-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-7d5b3595c7187b08.js +0 -1
- package/app/.next-cli-build/static/css/a97374177c39fad4.css +0 -1
- /package/app/.next-cli-build/static/{-A8yVxeQUhunMwVeISlwZ → yJ-97dxfKFiJYqLiUc_hR}/_ssgManifest.js +0 -0
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5497],{98:(e,t,a)=>{a.d(t,{default:()=>r});var n=a(95155),i=a(31474);function r({label:e,options:t=[],value:a,onChange:s,placeholder:o="Select an option",error:l,hint:d,disabled:c=!1,required:u=!1,className:m,selectClassName:x,...p}){return(0,n.jsxs)("div",{className:(0,i.cn)("flex flex-col gap-1.5",m),children:[e&&(0,n.jsxs)("label",{className:"text-sm font-medium text-text-main",children:[e,u&&(0,n.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsxs)("select",{value:a,onChange:s,disabled:c,className:(0,i.cn)("w-full py-2.5 px-3 pr-10 text-sm text-text-main","bg-surface-2 border border-transparent rounded-[10px] appearance-none","focus:outline-none focus:ring-2 focus:ring-brand-500/30 focus:border-brand-500/40","transition-all duration-150 disabled:opacity-50 disabled:cursor-not-allowed","text-[16px] sm:text-sm",l&&"ring-1 ring-red-500 focus:ring-2 focus:ring-red-500/40 border-red-500/40",x),...p,children:[(0,n.jsx)("option",{value:"",disabled:!0,children:o}),t.map(e=>(0,n.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,n.jsx)("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none text-text-muted",children:(0,n.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"expand_more"})})]}),l&&(0,n.jsxs)("p",{className:"text-xs text-red-500 flex items-center gap-1",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),l]}),d&&!l&&(0,n.jsx)("p",{className:"text-xs text-text-muted",children:d})]})}},929:(e,t,a)=>{a.d(t,{yU:()=>l});var n=a(12115),i=a(67899);let r=null,s=null;function o(){return r?Promise.resolve(r):s||(s=fetch("/api/models").then(async e=>{if(!e.ok)throw Error(`models ${e.status}`);return r=function(e){let t={},a={};for(let n of e||[])n.caps&&(n.fullModel&&(t[n.fullModel]=n.caps),n.routedModel&&(t[n.routedModel]=n.caps),n.model&&(a[n.model]=n.caps));return{byFull:t,byId:a}}((await e.json()).models)}).catch(()=>({byFull:{},byId:{}})).finally(()=>{s=null}))}function l(){let[e,t]=(0,n.useState)(()=>r?.byFull||{}),[a,s]=(0,n.useState)(()=>r?.byId||{});return(0,n.useEffect)(()=>{let e=!0,a=a=>{e&&(t(a.byFull),s(a.byId))};r?a(r):o().then(a);let n=()=>{r=null,o().then(a)};return window.addEventListener("customModelChanged",n),()=>{e=!1,window.removeEventListener("customModelChanged",n)}},[]),{getCaps:(0,n.useCallback)(t=>(function(e,t,a){if(!a)return null;if(e[a])return e[a];let n=a.includes("/"),r=n?a.slice(a.indexOf("/")+1):a;if(!n&&t[r])return t[r];let s=n?a.slice(0,a.indexOf("/")):null,o=(0,i.nl)(s,r);return{vision:o.vision,search:o.search,reasoning:o.reasoning,contextWindow:o.contextWindow,maxOutput:o.maxOutput}})(e,a,t),[e,a])}}},1620:(e,t,a)=>{a.d(t,{D:()=>l});var n=a(12115),i=a(90085);function r(e){let t=window.matchMedia("(prefers-color-scheme: dark)");return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}function s(){return window.matchMedia("(prefers-color-scheme: dark)").matches}function o(){return!1}function l(){let{theme:e,setTheme:t,toggleTheme:a,initTheme:l,visualTheme:d,setVisualTheme:c}=(0,i.A)(),u=(0,n.useSyncExternalStore)(r,s,o);(0,n.useEffect)(()=>{l()},[l]),(0,n.useEffect)(()=>{if("system"!==e)return;let t=window.matchMedia("(prefers-color-scheme: dark)"),a=()=>l();return t.addEventListener("change",a),()=>t.removeEventListener("change",a)},[e,l]);let m="dark"===e||"system"===e&&u;return{theme:e,setTheme:t,toggleTheme:a,isDark:m,visualTheme:d,setVisualTheme:c}}},4823:(e,t,a)=>{a.d(t,{default:()=>m});var n=a(95155),i=a(12115),r=a(14051),s=a.n(r),o=a(84588),l=a(98),d=a(56061);let c="__none__",u=[{value:"none",label:"None (single pool)"},{value:"round-robin",label:"Round-robin"},{value:"random",label:"Random"}];function m({providerId:e}){let[t,a]=(0,i.useState)([]),[r,s]=(0,i.useState)(c),[x,p]=(0,i.useState)("none"),[h,g]=(0,i.useState)(!1),[f,b]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let t=!1;return Promise.all([fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}).then(e=>e.ok?e.json():{proxyPools:[]}),fetch("/api/settings",{cache:"no-store"}).then(e=>e.ok?e.json():{})]).then(([n,i])=>{if(t)return;a(n.proxyPools||[]);let r=(i.providerStrategies||{})[e]||{};s(r.proxyPoolId||c),p(r.rotateStrategy||"none")}).catch(()=>{}),()=>{t=!0}},[e]);let v=(0,i.useCallback)(async(t,a)=>{g(!0);try{let n=await fetch("/api/settings",{cache:"no-store"}),i=(n.ok?await n.json():{}).providerStrategies||{},r={...i[e]||{}};t===c?delete r.proxyPoolId:r.proxyPoolId=t,"none"===a?delete r.rotateStrategy:r.rotateStrategy=a;let s={...i};0===Object.keys(r).length?delete s[e]:s[e]=r,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:s})}),b(!0),setTimeout(()=>b(!1),1500)}catch(e){console.log("Save proxy config error:",e)}finally{g(!1)}},[e]),k=t.length>=2,y="none"!==x;return(0,n.jsxs)(o.default,{children:[(0,n.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,n.jsx)("div",{className:"inline-flex items-center justify-center w-10 h-10 rounded-full bg-green-500/10 text-green-500",children:(0,n.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"lock_open"})}),(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsx)("p",{className:"text-sm font-medium",children:"No authentication required"}),(0,n.jsx)("p",{className:"text-xs text-text-muted",children:"This provider is ready to use. Optionally route requests through a proxy pool to bypass IP-based limits."})]}),f&&(0,n.jsx)(d.default,{variant:"success",size:"sm",children:"Saved"})]}),(0,n.jsx)(l.default,{label:"Proxy Pool",value:r,onChange:e=>{var t;s(t=e.target.value),v(t,x)},disabled:h||y,options:[{value:c,label:"None (direct)"},...t.map(e=>({value:e.id,label:e.name}))],hint:y?"Pool selector is ignored when rotation is active — all active pools are used.":void 0}),(0,n.jsxs)("div",{className:"flex flex-col gap-2 mt-4",children:[(0,n.jsx)("label",{className:"text-sm font-medium text-text-main",children:"Rotation Strategy"}),(0,n.jsx)("select",{value:x,onChange:e=>{var t;p(t=e.target.value),v(r,t)},disabled:h,className:"py-2 px-3 text-sm text-text-main bg-white dark:bg-white/5 border border-black/10 dark:border-white/10 rounded-md focus:ring-1 focus:ring-primary/30 focus:border-primary/50 focus:outline-none transition-all disabled:opacity-50",children:u.map(e=>(0,n.jsx)("option",{value:e.value,disabled:"none"!==e.value&&!k,children:e.label},e.value))}),(0,n.jsx)("p",{className:"text-xs text-text-muted",children:k?y?"round-robin"===x?`Rotating through all ${t.length} active pools in order. State is in-memory (resets on restart).`:`Picking a random pool from ${t.length} active pools each request.`:"Uses the selected pool above. Set to Round-robin or Random to rotate across all active pools.":"Need at least 2 active proxy pools for rotation."})]})]})}m.propTypes={providerId:s().string.isRequired}},7648:(e,t,a)=>{a.d(t,{default:()=>d});var n=a(95155),i=a(12115),r=a(73321),s=a(65921),o=a(92622),l=a(86528);function d({children:e}){let[t,c]=(0,i.useState)(!1),u=(0,r.usePathname)(),m=(0,s.i)(e=>e.notifications),x=(0,s.i)(e=>e.removeNotification);return(0,i.useEffect)(()=>{let e=()=>{a.e(6808).then(a.bind(a,6808)).catch(()=>{}),Promise.all([a.e(3842),a.e(5815),a.e(1649),a.e(124)]).then(a.bind(a,10124)).catch(()=>{}),Promise.all([a.e(3842),a.e(5815),a.e(8569),a.e(2435)]).then(a.bind(a,82435)).catch(()=>{}),Promise.all([a.e(3842),a.e(5815),a.e(8569),a.e(5462)]).then(a.bind(a,65462)).catch(()=>{})};{if("requestIdleCallback"in window){let t=window.requestIdleCallback(e,{timeout:4e3});return()=>window.cancelIdleCallback(t)}let t=setTimeout(e,2500);return()=>clearTimeout(t)}},[]),(0,n.jsxs)("div",{className:"dashboard-shell flex w-full overflow-clip bg-bg",children:[(0,n.jsx)("div",{className:"fixed top-4 right-4 z-[80] flex w-[min(92vw,380px)] flex-col gap-2",children:m.map(e=>{var t;let a="success"===(t=e.type)?{wrapper:"border-green-500/30 bg-green-500/10 text-green-600 dark:text-green-400",icon:"check_circle"}:"error"===t?{wrapper:"border-red-500/30 bg-red-500/10 text-red-600 dark:text-red-400",icon:"error"}:"warning"===t?{wrapper:"border-amber-500/30 bg-amber-500/10 text-amber-600 dark:text-amber-400",icon:"warning"}:{wrapper:"border-blue-500/30 bg-blue-500/10 text-blue-600 dark:text-blue-400",icon:"info"};return(0,n.jsx)("div",{className:`rounded-lg border px-3 py-2 shadow-lg backdrop-blur-sm ${a.wrapper}`,children:(0,n.jsxs)("div",{className:"flex items-start gap-2",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-[18px] leading-5",children:a.icon}),(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[e.title?(0,n.jsx)("p",{className:"text-xs font-semibold mb-0.5",children:e.title}):null,(0,n.jsx)("p",{className:"text-xs whitespace-pre-wrap break-words",children:e.message})]}),e.dismissible?(0,n.jsx)("button",{type:"button",onClick:()=>x(e.id),className:"text-current/70 hover:text-current","aria-label":"Dismiss notification",children:(0,n.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"close"})}):null]})},e.id)})}),t&&(0,n.jsx)("div",{className:"fixed inset-0 z-40 bg-black/20 lg:hidden",onClick:()=>c(!1)}),(0,n.jsx)("div",{className:"hidden lg:flex",children:(0,n.jsx)(o.default,{})}),(0,n.jsx)("div",{className:`fixed inset-y-0 left-0 z-50 transform lg:hidden transition-transform duration-300 ease-in-out ${t?"translate-x-0":"-translate-x-full"}`,children:(0,n.jsx)(o.default,{onClose:()=>c(!1)})}),(0,n.jsxs)("main",{className:"flex flex-col flex-1 h-full min-w-0 relative transition-colors duration-300 isolate",children:[(0,n.jsx)("div",{className:"landing-grid absolute inset-0 pointer-events-none -z-10","aria-hidden":"true"}),(0,n.jsx)(l.default,{onMenuClick:()=>c(!0)},u),(0,n.jsx)("div",{className:"flex-1 overflow-y-auto custom-scrollbar p-6 lg:p-10",children:(0,n.jsx)("div",{className:"max-w-7xl mx-auto",children:e})})]})]})}},8247:(e,t,a)=>{a.d(t,{HY:()=>s,Kw:()=>o});let n={"perplexity-agent":"perplexity","gitlab-duo":"gitlab","vercel-ai-gateway":"vercel","ollama-search":"ollama","minimax-code":"minimax","minimax-code-global":"minimax"},i=new Set;function r(e){return e&&"string"==typeof e?e.trim().toLowerCase():""}function s(e){let t=function(e){let t=r(e);if(!t||i.has(t))return"";let a=n[t]||t;return i.has(a)?"":a}(e);return t?`/providers/${t}.png`:null}function o(e){let t=r(e);t&&i.add(t);let a=n[t];a&&i.add(a)}},11059:(e,t,a)=>{a.d(t,{C:()=>i});var n=a(12115);function i(e=2e3){let[t,a]=(0,n.useState)(null),r=(0,n.useRef)(null);return{copied:t,copy:(0,n.useCallback)((t,n="default")=>{(async()=>{if(navigator?.clipboard?.writeText)await navigator.clipboard.writeText(t);else{let e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.opacity="0",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}})(),a(n),r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{a(null)},e)},[e])}}},11910:(e,t,a)=>{a.d(t,{default:()=>r});var n=a(95155),i=a(31474);function r({label:e,type:t="text",placeholder:a,value:s,onChange:o,error:l,hint:d,icon:c,disabled:u=!1,required:m=!1,className:x,inputClassName:p,...h}){return(0,n.jsxs)("div",{className:(0,i.cn)("flex flex-col gap-1.5",x),children:[e&&(0,n.jsxs)("label",{className:"text-sm font-medium text-text-main",children:[e,m&&(0,n.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,n.jsxs)("div",{className:"relative",children:[c&&(0,n.jsx)("div",{className:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none text-text-muted",children:(0,n.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:c})}),(0,n.jsx)("input",{type:t,placeholder:a,value:s,onChange:o,disabled:u,className:(0,i.cn)("w-full py-2.5 px-3 text-sm text-text-main bg-surface-2 rounded-[10px]","border border-transparent placeholder-text-muted/70","focus:outline-none focus:ring-2 focus:ring-brand-500/30 focus:border-brand-500/40","transition-all duration-150 ease-out disabled:opacity-50 disabled:cursor-not-allowed","text-[16px] sm:text-sm",c&&"pl-10",l&&"ring-1 ring-red-500 focus:ring-2 focus:ring-red-500/40 border-red-500/40",p),...h})]}),l&&(0,n.jsxs)("p",{className:"text-xs text-red-500 flex items-center gap-1",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),l]}),d&&!l&&(0,n.jsx)("p",{className:"text-xs text-text-muted",children:d})]})}},21110:(e,t,a)=>{a.d(t,{ThemeProvider:()=>s});var n=a(95155),i=a(12115),r=a(90085);function s({children:e}){let{initTheme:t}=(0,r.A)();return(0,i.useEffect)(()=>{t()},[t]),(0,n.jsx)(n.Fragment,{children:e})}},21931:(e,t,a)=>{a.d(t,{default:()=>d});var n=a(95155),i=a(12115),r=a(47650),s=a(93308),o=a(73006);let l=e=>({en:{name:"English",flag:"\uD83C\uDDFA\uD83C\uDDF8"},vi:{name:"Tiếng Việt",flag:"\uD83C\uDDFB\uD83C\uDDF3"},"zh-CN":{name:"简体中文",flag:"\uD83C\uDDE8\uD83C\uDDF3"},"zh-TW":{name:"繁體中文",flag:"\uD83C\uDDF9\uD83C\uDDFC"},ja:{name:"日本語",flag:"\uD83C\uDDEF\uD83C\uDDF5"},"pt-BR":{name:"Portugu\xeas (Brasil)",flag:"\uD83C\uDDE7\uD83C\uDDF7"},"pt-PT":{name:"Portugu\xeas (Portugal)",flag:"\uD83C\uDDF5\uD83C\uDDF9"},ko:{name:"한국어",flag:"\uD83C\uDDF0\uD83C\uDDF7"},es:{name:"Espa\xf1ol",flag:"\uD83C\uDDEA\uD83C\uDDF8"},de:{name:"Deutsch",flag:"\uD83C\uDDE9\uD83C\uDDEA"},fr:{name:"Fran\xe7ais",flag:"\uD83C\uDDEB\uD83C\uDDF7"},he:{name:"עברית",flag:"\uD83C\uDDEE\uD83C\uDDF1"},ar:{name:"العربية",flag:"\uD83C\uDDF8\uD83C\uDDE6"},ru:{name:"Русский",flag:"\uD83C\uDDF7\uD83C\uDDFA"},pl:{name:"Polski",flag:"\uD83C\uDDF5\uD83C\uDDF1"},cs:{name:"Čeština",flag:"\uD83C\uDDE8\uD83C\uDDFF"},nl:{name:"Nederlands",flag:"\uD83C\uDDF3\uD83C\uDDF1"},tr:{name:"T\xfcrk\xe7e",flag:"\uD83C\uDDF9\uD83C\uDDF7"},uk:{name:"Українська",flag:"\uD83C\uDDFA\uD83C\uDDE6"},tl:{name:"Tagalog",flag:"\uD83C\uDDF5\uD83C\uDDED"},id:{name:"Indonesia",flag:"\uD83C\uDDEE\uD83C\uDDE9"},th:{name:"ไทย",flag:"\uD83C\uDDF9\uD83C\uDDED"},km:{name:"ខ្មែរ",flag:"\uD83C\uDDF0\uD83C\uDDED"},hi:{name:"हिन्दी",flag:"\uD83C\uDDEE\uD83C\uDDF3"},bn:{name:"বাংলা",flag:"\uD83C\uDDE7\uD83C\uDDE9"},ur:{name:"اردو",flag:"\uD83C\uDDF5\uD83C\uDDF0"},ro:{name:"Rom\xe2nă",flag:"\uD83C\uDDF7\uD83C\uDDF4"},sv:{name:"Svenska",flag:"\uD83C\uDDF8\uD83C\uDDEA"},it:{name:"Italiano",flag:"\uD83C\uDDEE\uD83C\uDDF9"},el:{name:"Ελληνικά",flag:"\uD83C\uDDEC\uD83C\uDDF7"},hu:{name:"Magyar",flag:"\uD83C\uDDED\uD83C\uDDFA"},fi:{name:"Suomi",flag:"\uD83C\uDDEB\uD83C\uDDEE"},da:{name:"Dansk",flag:"\uD83C\uDDE9\uD83C\uDDF0"},no:{name:"Norsk",flag:"\uD83C\uDDF3\uD83C\uDDF4"},fa:{name:"فارسی",flag:"\uD83C\uDDEE\uD83C\uDDF7"}})[e]||{name:e,flag:"\uD83C\uDF10"};function d({className:e="",isOpen:t,onClose:a,hideTrigger:c=!1}){let[u,m]=(0,i.useState)("en"),[x,p]=(0,i.useState)(!1),[h,g]=(0,i.useState)(!1),f=(0,i.useRef)(null),b="boolean"==typeof t,v=b?t:h,k=(e,t=u)=>{b?!e&&a&&a(t):g(e)};(0,i.useEffect)(()=>{m(function(){if("u"<typeof document)return"en";let e=document.cookie.split(";").find(e=>e.trim().startsWith(`${s.CL}=`)),t=e?decodeURIComponent(e.split("=")[1]):"en";return(0,s.QC)(t)}())},[]),(0,i.useEffect)(()=>{function e(e){f.current&&!f.current.contains(e.target)&&k(!1)}if(v)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[v]);let y=async e=>{if(e!==u&&!x){p(!0);try{await fetch("/api/locale",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({locale:e})}),await (0,o.wn)(),m(e),k(!1,e)}catch(e){console.error("Failed to set locale:",e)}finally{p(!1)}}};return(0,n.jsxs)("div",{className:e,children:[!c&&(0,n.jsxs)("button",{onClick:()=>k(!v),disabled:x,className:"flex items-center gap-2 px-3 py-2 rounded-lg text-text-muted hover:text-text-main hover:bg-surface/60 transition-colors",title:"Language","data-i18n-skip":"true",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"language"}),(0,n.jsx)("span",{className:"text-sm font-medium",children:l(u).name}),(0,n.jsx)("span",{className:"text-lg",children:l(u).flag})]}),v&&(0,r.createPortal)((0,n.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4","data-i18n-skip":"true",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-black/30 backdrop-blur-sm",onClick:()=>k(!1)}),(0,n.jsxs)("div",{ref:f,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-2xl flex flex-col max-h-[80vh]",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between p-3 border-b border-black/5 dark:border-white/5",children:[(0,n.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:"Select Language"}),(0,n.jsx)("button",{onClick:()=>k(!1),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,n.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,n.jsx)("div",{className:"p-6 overflow-y-auto flex-1",children:(0,n.jsx)("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(100px,1fr))] gap-2",children:s.YZ.map(e=>{let t=u===e,a=l(e);return(0,n.jsxs)("button",{onClick:()=>y(e),disabled:x,className:`flex flex-col items-center justify-start gap-1 px-2 py-3 rounded-lg text-xs font-medium transition-colors w-full ${t?"bg-primary/15 text-primary ring-2 ring-primary":"text-text-main hover:bg-black/5 dark:hover:bg-white/5"} ${x?"opacity-70 cursor-wait":""}`,title:a.name,children:[(0,n.jsx)("span",{className:"text-2xl",children:a.flag}),(0,n.jsx)("span",{className:"text-center leading-tight line-clamp-2 h-8 flex items-center",children:a.name}),t&&(0,n.jsx)("span",{className:"material-symbols-outlined text-sm",children:"check"})]},e)})})})]})]}),document.body)]})}},23615:(e,t,a)=>{a.d(t,{default:()=>s});var n=a(95155),i=a(12115),r=a(84588);function s(){let[e,t]=(0,i.useState)([]),[a,s]=(0,i.useState)(!0),[o,l]=(0,i.useState)(!0);(0,i.useEffect)(()=>{d()},[]),(0,i.useEffect)(()=>{let e;return o&&(e=setInterval(()=>{d(!1)},3e3)),()=>clearInterval(e)},[o]);let d=async(e=!0)=>{e&&s(!0);try{let e=await fetch("/api/usage/request-logs");if(e.ok){let a=await e.json();t(a)}}catch(e){console.error("Failed to fetch logs:",e)}finally{e&&s(!1)}};return(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("h2",{className:"text-xl font-semibold",children:"Request Logs"}),(0,n.jsx)("div",{className:"flex items-center gap-2",children:(0,n.jsxs)("label",{className:"text-sm font-medium text-text-muted flex items-center gap-2 cursor-pointer",children:[(0,n.jsx)("span",{children:"Auto Refresh (3s)"}),(0,n.jsx)("div",{onClick:()=>l(!o),className:`relative inline-flex h-5 w-9 items-center rounded-full transition-colors focus:outline-none ${o?"bg-primary":"bg-bg-subtle border border-border"}`,children:(0,n.jsx)("span",{className:`inline-block h-3 w-3 transform rounded-full bg-white transition-transform ${o?"translate-x-5":"translate-x-1"}`})})]})})]}),(0,n.jsx)(r.default,{className:"overflow-hidden bg-black/5 dark:bg-black/20",children:(0,n.jsx)("div",{className:"p-0 overflow-x-auto max-h-[600px] overflow-y-auto font-mono text-xs",children:a&&0===e.length?(0,n.jsx)("div",{className:"p-8 text-center text-text-muted",children:"Loading logs..."}):0===e.length?(0,n.jsx)("div",{className:"p-8 text-center text-text-muted",children:"No logs recorded yet."}):(0,n.jsxs)("table",{className:"w-full text-left border-collapse whitespace-nowrap",children:[(0,n.jsx)("thead",{className:"sticky top-0 bg-bg-subtle border-b border-border z-10",children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"DateTime"}),(0,n.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"Model"}),(0,n.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"Provider"}),(0,n.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"Account"}),(0,n.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"In"}),(0,n.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"Out"}),(0,n.jsx)("th",{className:"px-3 py-2",children:"Status"})]})}),(0,n.jsx)("tbody",{className:"divide-y divide-border/50",children:e.map((e,t)=>{let a=e.split(" | ");if(a.length<7)return null;let i=a[6],r=i.includes("PENDING"),s=i.includes("FAILED"),o=i.includes("OK");return(0,n.jsxs)("tr",{className:`hover:bg-primary/5 transition-colors ${r?"bg-primary/5":""}`,children:[(0,n.jsx)("td",{className:"px-3 py-1.5 border-r border-border text-text-muted",children:a[0]}),(0,n.jsx)("td",{className:"px-3 py-1.5 border-r border-border font-medium",children:a[1]}),(0,n.jsx)("td",{className:"px-3 py-1.5 border-r border-border",children:(0,n.jsx)("span",{className:"px-1.5 py-0.5 rounded bg-bg-subtle border border-border text-[10px] uppercase font-bold",children:a[2]})}),(0,n.jsx)("td",{className:"px-3 py-1.5 border-r border-border truncate max-w-[150px]",title:a[3],children:a[3]}),(0,n.jsx)("td",{className:"px-3 py-1.5 border-r border-border text-right text-primary",children:a[4]}),(0,n.jsx)("td",{className:"px-3 py-1.5 border-r border-border text-right text-success",children:a[5]}),(0,n.jsx)("td",{className:`px-3 py-1.5 font-bold ${o?"text-success":s?"text-error":"text-primary animate-pulse"}`,children:i})]},t)})})]})})}),(0,n.jsx)("div",{className:"text-[10px] text-text-muted italic",children:"Logs are loaded from the request history database."})]})}},23936:(e,t,a)=>{a.d(t,{default:()=>l});var n=a(95155),i=a(12115),r=a(14051),s=a.n(r),o=a(35497);function l({isOpen:e,onSuccess:t,onClose:a}){let[r,s]=(0,i.useState)(""),[d,c]=(0,i.useState)(!1),[u,m]=(0,i.useState)(null),[x,p]=(0,i.useState)(!1),h=async()=>{if(!r.trim())return void m("Please paste your cookie");c(!0),m(null);try{let e=await fetch("/api/oauth/iflow/cookie",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cookie:r.trim()})}),a=await e.json();if(!e.ok)throw Error(a.error||"Authentication failed");p(!0),setTimeout(()=>{t?.(),g()},1500)}catch(e){m(e.message)}finally{c(!1)}},g=()=>{s(""),m(null),p(!1),a?.()};return(0,n.jsx)(o.aF,{isOpen:e,onClose:g,title:"iFlow Cookie Authentication",children:(0,n.jsx)("div",{className:"space-y-4",children:x?(0,n.jsxs)("div",{className:"text-center py-8",children:[(0,n.jsx)("div",{className:"text-6xl mb-4",children:"✅"}),(0,n.jsx)("p",{className:"text-lg font-medium text-text-primary",children:"Authentication Successful!"}),(0,n.jsx)("p",{className:"text-sm text-text-muted mt-2",children:"Fresh API key obtained"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsxs)("p",{className:"text-sm text-text-muted",children:["To get a fresh API key, paste your browser cookie from"," ",(0,n.jsx)("a",{href:"https://platform.iflow.cn",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"platform.iflow.cn"})]}),(0,n.jsxs)("div",{className:"bg-surface-secondary p-3 rounded-lg text-xs space-y-2",children:[(0,n.jsx)("p",{className:"font-medium text-text-primary",children:"How to get cookie:"}),(0,n.jsxs)("ol",{className:"list-decimal list-inside space-y-1 text-text-muted",children:[(0,n.jsx)("li",{children:"Open platform.iflow.cn in your browser"}),(0,n.jsx)("li",{children:"Login to your account"}),(0,n.jsx)("li",{children:"Open DevTools (F12) → Application/Storage → Cookies"}),(0,n.jsx)("li",{children:"Copy the entire cookie string (must include BXAuth)"}),(0,n.jsx)("li",{children:"Paste it below"})]})]})]}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)("label",{className:"block text-sm font-medium text-text-primary",children:"Cookie String"}),(0,n.jsx)("textarea",{value:r,onChange:e=>s(e.target.value),placeholder:"BXAuth=xxx; ...",className:"w-full px-3 py-2 bg-surface-secondary border border-border rounded-lg text-sm text-text-primary placeholder-text-muted focus:outline-none focus:ring-2 focus:ring-primary resize-none",rows:4,disabled:d})]}),u&&(0,n.jsx)("div",{className:"p-3 bg-error/10 border border-error/20 rounded-lg",children:(0,n.jsx)("p",{className:"text-sm text-error",children:u})}),(0,n.jsxs)("div",{className:"flex gap-3 pt-2",children:[(0,n.jsx)(o.$n,{variant:"secondary",onClick:g,disabled:d,fullWidth:!0,children:"Cancel"}),(0,n.jsx)(o.$n,{onClick:h,loading:d,fullWidth:!0,children:"Authenticate"})]})]})})})}l.propTypes={isOpen:s().bool.isRequired,onSuccess:s().func,onClose:s().func}},25086:(e,t,a)=>{a.d(t,{CardSkeleton:()=>l,PageLoading:()=>s,Skeleton:()=>o,Spinner:()=>r,default:()=>d});var n=a(95155),i=a(31474);function r({size:e="md",className:t}){return(0,n.jsx)("span",{className:(0,i.cn)("material-symbols-outlined animate-spin text-brand-500",{sm:"size-4",md:"size-6",lg:"size-8",xl:"size-12"}[e],t),children:"progress_activity"})}function s({message:e="Loading..."}){return(0,n.jsxs)("div",{className:"fixed inset-0 z-50 flex flex-col items-center justify-center bg-bg",children:[(0,n.jsx)(r,{size:"xl"}),(0,n.jsx)("p",{className:"mt-4 text-text-muted",children:e})]})}function o({className:e,...t}){return(0,n.jsx)("div",{className:(0,i.cn)("animate-pulse rounded-[10px] bg-surface-2",e),...t})}function l(){return(0,n.jsxs)("div",{className:"p-6 rounded-[14px] border border-border-subtle bg-surface shadow-[var(--shadow-soft)]",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,n.jsx)(o,{className:"h-4 w-24"}),(0,n.jsx)(o,{className:"size-10 rounded-[10px]"})]}),(0,n.jsx)(o,{className:"h-8 w-16 mb-2"}),(0,n.jsx)(o,{className:"h-3 w-20"})]})}function d({type:e="spinner",...t}){switch(e){case"page":return(0,n.jsx)(s,{...t});case"skeleton":return(0,n.jsx)(o,{...t});case"card":return(0,n.jsx)(l,{...t});default:return(0,n.jsx)(r,{...t})}}},28058:(e,t,a)=>{a.d(t,{default:()=>s});var n=a(95155),i=a(12115),r=a(81127);function s({isOpen:e,onClose:t,onAdd:a,addedNames:o=[]}){let[l,d]=(0,i.useState)([]),[c,u]=(0,i.useState)(!1),[m,x]=(0,i.useState)(""),[p,h]=(0,i.useState)("all"),[g,f]=(0,i.useState)(null),[b,v]=(0,i.useState)(null),[k,y]=(0,i.useState)({}),[j,w]=(0,i.useState)({}),[N,C]=(0,i.useState)({});(0,i.useEffect)(()=>{!e||l.length>0||(u(!0),fetch("/api/cli-tools/cowork-mcp-registry").then(e=>e.json()).then(e=>{e.error?f(e.error):d(e.servers||[])}).catch(e=>f(e.message)).finally(()=>u(!1)))},[e]);let S=(0,i.useMemo)(()=>new Set(o),[o]),O=(0,i.useMemo)(()=>{let e=m.trim().toLowerCase();return l.filter(t=>("authless"!==p||!t.oauth)&&("oauth"!==p||!!t.oauth)&&(!e||(t.title||"").toLowerCase().includes(e)||(t.description||"").toLowerCase().includes(e)||(t.name||"").toLowerCase().includes(e)))},[l,m,p]),W=async e=>{if(!k[e.url]){w(t=>({...t,[e.url]:!0}));try{let t=await fetch("/api/cli-tools/cowork-mcp-tools",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e.url})}),a=await t.json(),n=a.tools||[],i=Array.isArray(e.toolNames)?e.toolNames:[],r=n.length>0?n.map(e=>e.name):i;y(t=>({...t,[e.url]:{tools:n,requiresAuth:!!a.requiresAuth,error:a.error}})),C(t=>({...t,[e.url]:Object.fromEntries(r.map(e=>[e,!0]))}))}catch(t){y(a=>({...a,[e.url]:{tools:[],error:t.message}}))}finally{w(t=>({...t,[e.url]:!1}))}}},F=(e,t)=>{let a=N[e]||{};C(n=>({...n,[e]:Object.fromEntries(Object.keys(a).map(e=>[e,t]))}))};return(0,n.jsx)(r.default,{isOpen:e,onClose:t,title:"Browse MCP Marketplace",size:"lg",children:(0,n.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("input",{type:"text",value:m,onChange:e=>x(e.target.value),placeholder:"Search by name or description...",className:"flex-1 px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,n.jsxs)("select",{value:p,onChange:e=>h(e.target.value),className:"px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:[(0,n.jsx)("option",{value:"all",children:"All"}),(0,n.jsx)("option",{value:"authless",children:"Authless"}),(0,n.jsx)("option",{value:"oauth",children:"OAuth"})]})]}),g&&(0,n.jsx)("div",{className:"px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600",children:g}),c&&(0,n.jsxs)("div",{className:"flex items-center gap-2 text-text-muted text-xs py-4 justify-center",children:[(0,n.jsx)("span",{className:"material-symbols-outlined animate-spin text-[18px]",children:"progress_activity"}),(0,n.jsx)("span",{children:"Loading registry..."})]}),!c&&(0,n.jsxs)("div",{className:"flex flex-col gap-1 max-h-[60vh] overflow-y-auto",children:[0===O.length&&(0,n.jsx)("div",{className:"text-center text-xs text-text-muted py-6",children:"No servers match filter"}),O.map(e=>{let t=S.has(e.slug||e.name),i=b===e.url,r=k[e.url],s=j[e.url],o=N[e.url]||{},l=Object.keys(o),d=Object.values(o).filter(Boolean).length;return(0,n.jsxs)("div",{className:"rounded border border-transparent hover:border-border",children:[(0,n.jsxs)("div",{className:"flex items-start gap-2 px-2 py-2 hover:bg-black/5 dark:hover:bg-white/5",children:[e.iconUrl?(0,n.jsx)("img",{src:e.iconUrl,alt:"",className:"size-7 rounded shrink-0 object-contain",onError:e=>{e.target.style.display="none"},loading:"lazy",decoding:"async"}):(0,n.jsx)("div",{className:"size-7 rounded bg-surface shrink-0"}),(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsxs)("div",{className:"flex items-center gap-1.5 flex-wrap",children:[(0,n.jsx)("span",{className:"font-medium text-xs",children:e.title}),e.oauth?(0,n.jsx)("span",{className:"px-1 py-0.5 text-[9px] rounded bg-amber-500/10 text-amber-600",children:"OAuth"}):(0,n.jsx)("span",{className:"px-1 py-0.5 text-[9px] rounded bg-green-500/10 text-green-600",children:"Authless"}),e.toolCount>0&&(0,n.jsxs)("span",{className:"text-[10px] text-text-muted",children:[e.toolCount," tools"]})]}),e.description&&(0,n.jsx)("p",{className:"text-[10px] text-text-muted line-clamp-2 mt-0.5",children:e.description})]}),(0,n.jsx)("button",{onClick:()=>t?null:void(b===e.url?v(null):(v(e.url),W(e))),disabled:t,className:`shrink-0 px-2 py-1 rounded text-[10px] font-medium transition-colors ${t?"bg-green-500/10 text-green-600 cursor-default":i?"bg-surface border border-border text-text-muted hover:bg-black/5":"bg-primary/10 border border-primary/40 text-primary hover:bg-primary/20"}`,children:t?"Added":i?"Cancel":"+ Add"})]}),i&&(0,n.jsxs)("div",{className:"px-3 py-2 bg-surface/40 border-t border-border flex flex-col gap-2",children:[s&&(0,n.jsxs)("div",{className:"flex items-center gap-2 text-text-muted text-[10px] py-1",children:[(0,n.jsx)("span",{className:"material-symbols-outlined animate-spin text-[14px]",children:"progress_activity"}),(0,n.jsx)("span",{children:"Probing server for tools..."})]}),!s&&r?.requiresAuth&&(0,n.jsx)("p",{className:"text-[10px] text-amber-600 bg-amber-500/10 px-2 py-1 rounded",children:"\uD83D\uDD10 OAuth required. Add now and authenticate after Apply; tool list will be discovered after first connect."}),!s&&r?.error&&!r?.requiresAuth&&(0,n.jsxs)("p",{className:"text-[10px] text-red-600 bg-red-500/10 px-2 py-1 rounded",children:["Probe failed: ",r.error]}),!s&&0===l.length&&!r?.requiresAuth&&!r?.error&&(0,n.jsx)("p",{className:"text-[10px] text-text-muted",children:"No tools advertised by server."}),!s&&l.length>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsxs)("span",{className:"text-[10px] text-text-muted",children:[d,"/",l.length," tools enabled"]}),(0,n.jsxs)("div",{className:"flex gap-1",children:[(0,n.jsx)("button",{onClick:()=>F(e.url,!0),className:"text-[10px] text-primary hover:underline",children:"All"}),(0,n.jsx)("span",{className:"text-[10px] text-text-muted",children:"\xb7"}),(0,n.jsx)("button",{onClick:()=>F(e.url,!1),className:"text-[10px] text-primary hover:underline",children:"None"})]})]}),(0,n.jsx)("div",{className:"grid grid-cols-2 gap-1 max-h-40 overflow-y-auto",children:l.map(t=>(0,n.jsxs)("label",{className:"flex items-center gap-1.5 text-[10px] cursor-pointer hover:bg-black/5 dark:hover:bg-white/5 px-1 rounded",children:[(0,n.jsx)("input",{type:"checkbox",checked:!!o[t],onChange:()=>{var a;return a=e.url,void C(e=>({...e,[a]:{...e[a],[t]:!e[a]?.[t]}}))},className:"size-3"}),(0,n.jsx)("span",{className:"truncate",children:t})]},t))})]}),(0,n.jsx)("button",{onClick:()=>{let t,n;return n=Object.keys(t=N[e.url]||{}).filter(e=>t[e]),void(a?.({name:e.slug||e.name,title:e.title,description:e.description,url:e.url,transport:e.transport,oauth:e.oauth,toolNames:n}),v(null))},className:"self-end px-2 py-1 rounded text-[10px] font-medium bg-primary text-white hover:bg-primary/90",children:"✓ Confirm Add"})]})]},e.url)})]}),(0,n.jsxs)("div",{className:"text-[10px] text-text-muted text-right",children:[O.length," of ",l.length," servers"]})]})})}},28067:(e,t,a)=>{a.d(t,{default:()=>r});var n=a(95155),i=a(31474);function r({options:e=[],value:t,onChange:a,size:s="md",className:o}){let l={sm:"h-7 text-xs",md:"h-9 text-sm",lg:"h-11 text-base"};return(0,n.jsx)("div",{className:(0,i.cn)("inline-flex items-center p-1 rounded-[10px] overflow-x-auto","bg-surface-2",o),children:e.map(e=>(0,n.jsxs)("button",{onClick:()=>a(e.value),className:(0,i.cn)("shrink-0 px-4 rounded-[8px] font-medium transition-all",l[s],t===e.value?"bg-surface text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:[e.icon&&(0,n.jsx)("span",{className:"material-symbols-outlined text-[16px] mr-1.5",children:e.icon}),e.label]},e.value))})}},28815:(e,t,a)=>{a.d(t,{default:()=>l});var n=a(95155),i=a(12115),r=a(81127),s=a(92542),o=a(11059);function l({isOpen:e,onClose:t,title:a="Manual Configuration",configs:d=[]}){let{copy:c}=(0,o.C)(),[u,m]=(0,i.useState)(null);return(0,n.jsx)(r.default,{isOpen:e,onClose:t,title:a,size:"xl",children:(0,n.jsx)("div",{className:"flex flex-col gap-4",children:d.map((e,t)=>(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{className:"text-sm font-medium text-text-main",children:e.filename}),(0,n.jsxs)(s.default,{variant:"ghost",size:"sm",onClick:()=>{var a;return a=e.content,void(c(a,`manualconfig-${t}`),m(t),setTimeout(()=>m(null),2e3))},children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:u===t?"check":"content_copy"}),u===t?"Copied!":"Copy"]})]}),(0,n.jsx)("pre",{className:"px-3 py-2 bg-black/5 dark:bg-white/5 rounded font-mono text-xs overflow-x-auto whitespace-pre-wrap break-all max-h-60 overflow-y-auto border border-border",children:e.content})]},t))})})}},29366:(e,t,a)=>{a.d(t,{default:()=>s});var n=a(95155),i=a(28777),r=a(97677);function s({caps:e,className:t="",colorOverride:a,size:o=16}){if(!e)return null;let l=Object.keys(i.bs).filter(t=>e[t]);return 0===l.length?null:(0,n.jsx)("span",{className:`inline-flex items-center gap-0.5 ${t}`,children:l.map(e=>(0,n.jsx)(r.default,{text:`${i.bs[e].label} — ${i.bs[e].desc}`,children:(0,n.jsx)("span",{className:`material-symbols-outlined leading-none cursor-help ${a||i.bs[e].color}`,style:{fontSize:`${o}px`},children:i.bs[e].icon})},e))})}},30312:(e,t,a)=>{a.d(t,{default:()=>d});var n=a(95155),i=a(12115),r=a(14051),s=a.n(r),o=a(35497),l=a(11059);function d({isOpen:e,providerInfo:t,onSuccess:a,onClose:r}){let[s,c]=(0,i.useState)("booting"),[u,m]=(0,i.useState)(null),[x,p]=(0,i.useState)(null),[h,g]=(0,i.useState)(""),[f,b]=(0,i.useState)(null),[v,k]=(0,i.useState)(!1),y=(0,i.useRef)(null),j=(0,i.useRef)({proxyStarted:!1,stopSent:!1}),w=(0,i.useRef)(!1),N=(0,i.useRef)(!1),C=(0,i.useRef)(e),S=(0,i.useRef)(a),O=(0,i.useRef)(r),{copied:W,copy:F}=(0,l.C)();(0,i.useEffect)(()=>{C.current=e,S.current=a,O.current=r});let I=(0,i.useCallback)(()=>{let e=j.current;e.proxyStarted&&!e.stopSent&&(e.stopSent=!0,fetch("/api/oauth/zed/stop-proxy").catch(()=>{}))},[]),T=(0,i.useCallback)(()=>{c("success"),S.current?.(),setTimeout(()=>O.current?.(),600)},[]),P=(0,i.useCallback)(async e=>{if(e?.accessToken&&e?.userId){k(!0),b(null),c("importing");try{let t=await fetch("/api/oauth/zed/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accessToken:e.accessToken,userId:e.userId,...e.systemId?{systemId:e.systemId}:{}})}),a=await t.json();if(!t.ok)throw Error(a.error||"Import failed");I(),T()}catch(e){b(e.message),c("ide-found")}finally{k(!1)}}},[T,I]),E=(0,i.useCallback)(async()=>{b(null),p(null),g(""),j.current={proxyStarted:!1,stopSent:!1},N.current=!1;try{let e=await fetch("/api/oauth/zed/start-proxy"),t=await e.json();if(!e.ok||!t.success||!t.callbackUrl)throw Error(t.reason||t.error||"Failed to start Zed callback server");if(j.current.proxyStarted=!0,j.current.stopSent=!1,!C.current)return void I();let a=new URL("/api/oauth/zed/authorize",window.location.origin);a.searchParams.set("redirect_uri",t.callbackUrl);let n=await fetch(a),i=await n.json();if(!n.ok)throw I(),Error(i.error||"Failed to start Zed authorization");if(!C.current)return void I();let r={state:i.state};i.codeVerifier&&(r.codeVerifier=i.codeVerifier),i.systemId&&(r.systemId=i.systemId);let s=await fetch("/api/oauth/zed/register-session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}),o=null;try{o=await s.json()}catch{o=null}if(!s.ok||o?.success===!1)throw I(),Error(o?.error||"Failed to register Zed login session");if(!C.current)return;p(i),c(e=>"ide-found"===e||"importing"===e?e:"browser"),y.current=window.open(i.authUrl,"oauth_popup_zed","width=600,height=700")}catch(e){if(!C.current)return;b(e.message),c(e=>"ide-found"===e?e:"browser")}},[I]);(0,i.useEffect)(()=>{if(!e||w.current)return;w.current=!0,c("booting"),m(null),p(null),g(""),b(null),k(!1),N.current=!1,j.current={proxyStarted:!1,stopSent:!1};let t=!1;return(async()=>{let e=E();try{let e=await fetch("/api/oauth/zed/auto-import",{signal:AbortSignal.timeout(12e3)}),a=await e.json();if(t||!C.current)return;if(a.found&&a.accessToken&&a.userId){let e={accessToken:a.accessToken,userId:String(a.userId),systemId:a.systemId||""};m(e),await P(e);return}}catch{}!t&&C.current&&(await e,!t&&C.current&&c("browser"))})(),()=>{t=!0}},[e,E,P]),(0,i.useEffect)(()=>{if(!e&&(w.current=!1,N.current=!0,I(),j.current={proxyStarted:!1,stopSent:!1},y.current&&!y.current.closed))try{y.current.close()}catch{}},[e,I]),(0,i.useEffect)(()=>{if(!x?.state||"importing"===s||"success"===s)return;let e=!1,t=0,a=async()=>{if(!e&&!N.current&&C.current){t+=1;try{let t=await fetch(`/api/oauth/zed/poll-status?state=${encodeURIComponent(x.state)}`),a=await t.json();if(e||N.current)return;if("done"===a.status){N.current=!0,I(),T();return}if("error"===a.status){N.current=!0,b(a.error||"Authentication failed"),c("error");return}}catch{}if(t>=200){b("Authentication timeout"),c("error");return}setTimeout(a,1500)}};return setTimeout(a,1500),()=>{e=!0}},[x,s,T,I]);let A=async()=>{let e=h.trim();if(e){k(!0),b(null);try{let t=await fetch("/api/oauth/zed/exchange",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,state:x?.state,...x?.redirectUri?{redirectUri:x.redirectUri}:{},...x?.codeVerifier?{codeVerifier:x.codeVerifier}:{},...x?.systemId?{systemId:x.systemId}:{}})}),a=await t.json();if(!t.ok)throw Error(a.error||"Exchange failed");N.current=!0,I(),T()}catch(e){b(e.message),c("error")}finally{k(!1)}}},_=()=>{N.current=!0,I(),r()},$=`Connect ${t?.name||"Zed"}`;return(0,n.jsx)(o.aF,{isOpen:e,title:$,onClose:_,size:"lg",children:(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[("booting"===s||"importing"===s)&&(0,n.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 border border-border rounded-lg bg-sidebar/50",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-base text-primary animate-spin",children:"progress_activity"}),(0,n.jsx)("span",{className:"text-sm",children:"importing"===s?"Importing session from Zed IDE…":"Detecting Zed IDE session…"})]}),"ide-found"===s&&u&&(0,n.jsxs)("div",{className:"space-y-3",children:[(0,n.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,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-green-600 dark:text-green-400",children:"check_circle"}),(0,n.jsxs)("p",{className:"text-sm text-green-800 dark:text-green-200",children:["Zed IDE session detected (user ",u.userId,"). Import failed — retry or use browser sign-in below."]})]})}),(0,n.jsx)(o.$n,{onClick:()=>P(u),fullWidth:!0,disabled:v,children:v?"Importing…":"Import from Zed IDE"})]}),"success"===s&&(0,n.jsx)("div",{className:"bg-green-50 dark:bg-green-900/20 p-3 rounded-lg border border-green-200 dark:border-green-800 text-sm text-green-800 dark:text-green-200",children:"Connected successfully."}),("browser"===s||"error"===s||"ide-found"===s)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 border border-border rounded-lg bg-sidebar/50",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-base text-primary animate-spin",children:"progress_activity"}),(0,n.jsx)("span",{className:"text-sm",children:"Waiting for popup authorization…"})]}),(0,n.jsxs)("div",{className:"flex items-center gap-3 my-1",children:[(0,n.jsx)("div",{className:"flex-1 h-px bg-border"}),(0,n.jsx)("span",{className:"text-xs text-text-muted uppercase tracking-wider",children:"Or paste callback URL manually"}),(0,n.jsx)("div",{className:"flex-1 h-px bg-border"})]}),(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm font-medium mb-2",children:"Step 1: Open this URL in your browser"}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(o.pd,{value:x?.authUrl||"",readOnly:!0,className:"flex-1 font-mono text-xs"}),(0,n.jsx)(o.$n,{variant:"secondary",icon:"auth_url"===W?"check":"content_copy",onClick:()=>F(x?.authUrl,"auth_url"),disabled:!x?.authUrl,children:"Copy"})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm font-medium mb-2",children:"Step 2: Paste the callback URL here"}),(0,n.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"After authorization, copy the full URL from your browser (or the local callback page)."}),(0,n.jsx)(o.pd,{value:h,onChange:e=>g(e.target.value),placeholder:"http://127.0.0.1:.../?user_id=...&access_token=...",className:"font-mono text-xs"})]})]}),f&&(0,n.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,n.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400",children:f})}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(o.$n,{onClick:A,fullWidth:!0,disabled:v||!h.trim()||!x,children:v?"Connecting…":"Connect"}),(0,n.jsx)(o.$n,{onClick:_,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})})}d.propTypes={isOpen:s().bool.isRequired,providerInfo:s().object,onSuccess:s().func,onClose:s().func.isRequired}},30815:(e,t,a)=>{a.d(t,{default:()=>l});var n=a(95155),i=a(12115),r=a(14051),s=a.n(r),o=a(35497);function l({isOpen:e,onSuccess:t,onClose:a}){let[r,s]=(0,i.useState)(""),[d,c]=(0,i.useState)(""),[u,m]=(0,i.useState)(null),[x,p]=(0,i.useState)(!1),[h,g]=(0,i.useState)(!1),[f,b]=(0,i.useState)(!1),[v,k]=(0,i.useState)(!1),y=async()=>{g(!0),m(null),b(!1),k(!1);try{let e=await fetch("/api/oauth/cursor/auto-import"),t=await e.json();t.found?(s(t.accessToken),c(t.machineId),b(!0)):t.windowsManual?k(!0):m(t.error||"Could not auto-detect tokens")}catch(e){m("Failed to auto-detect tokens")}finally{g(!1)}};(0,i.useEffect)(()=>{e&&y()},[e]);let j=async()=>{if(!r.trim())return void m("Please enter an access token");if(!d.trim())return void m("Please enter a machine ID");p(!0),m(null);try{let e=await fetch("/api/oauth/cursor/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accessToken:r.trim(),machineId:d.trim()})}),n=await e.json();if(!e.ok)throw Error(n.error||"Import failed");t?.(),a()}catch(e){m(e.message)}finally{p(!1)}};return(0,n.jsx)(o.aF,{isOpen:e,title:"Connect Cursor IDE",onClose:a,children:(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[h&&(0,n.jsxs)("div",{className:"text-center py-6",children:[(0,n.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-primary/10 flex items-center justify-center",children:(0,n.jsx)("span",{className:"material-symbols-outlined text-3xl text-primary animate-spin",children:"progress_activity"})}),(0,n.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Auto-detecting tokens..."}),(0,n.jsx)("p",{className:"text-sm text-text-muted",children:"Reading from Cursor IDE database"})]}),!h&&(0,n.jsxs)(n.Fragment,{children:[f&&(0,n.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,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-green-600 dark:text-green-400",children:"check_circle"}),(0,n.jsx)("p",{className:"text-sm text-green-800 dark:text-green-200",children:"Tokens auto-detected from Cursor IDE successfully!"})]})}),v&&(0,n.jsxs)("div",{className:"bg-amber-50 dark:bg-amber-900/20 p-3 rounded-lg border border-amber-200 dark:border-amber-800 flex flex-col gap-2",children:[(0,n.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-amber-600 dark:text-amber-400",children:"info"}),(0,n.jsx)("p",{className:"text-sm font-medium text-amber-800 dark:text-amber-200",children:"Could not read Cursor database automatically."})]}),(0,n.jsxs)("p",{className:"text-xs text-amber-700 dark:text-amber-300",children:["Make sure Cursor IDE has been opened at least once, then click ",(0,n.jsx)("strong",{children:"Retry"}),". If the problem persists, paste your tokens manually below."]}),(0,n.jsx)(o.$n,{onClick:y,variant:"outline",fullWidth:!0,children:"Retry"})]}),!f&&!v&&!u&&(0,n.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,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-blue-600 dark:text-blue-400",children:"info"}),(0,n.jsx)("p",{className:"text-sm text-blue-800 dark:text-blue-200",children:"Cursor IDE not detected. Please paste your tokens manually."})]})}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("label",{className:"block text-sm font-medium mb-2",children:["Access Token ",(0,n.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,n.jsx)("textarea",{value:r,onChange:e=>s(e.target.value),placeholder:"Access token will be auto-filled...",rows:3,className:"w-full px-3 py-2 text-sm font-mono border border-border rounded-lg bg-background focus:outline-none focus:border-primary resize-none"})]}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("label",{className:"block text-sm font-medium mb-2",children:["Machine ID ",(0,n.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,n.jsx)(o.pd,{value:d,onChange:e=>c(e.target.value),placeholder:"Machine ID will be auto-filled...",className:"font-mono text-sm"})]}),u&&(0,n.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,n.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400",children:u})}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(o.$n,{onClick:j,fullWidth:!0,disabled:x||!r.trim()||!d.trim(),children:x?"Importing...":"Import Token"}),(0,n.jsx)(o.$n,{onClick:a,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})})}l.propTypes={isOpen:s().bool.isRequired,onSuccess:s().func,onClose:s().func.isRequired}},35497:(e,t,a)=>{a.d(t,{x0:()=>w.default,Ex:()=>d.default,$n:()=>n.default,nh:()=>W.default,Zp:()=>s.default,Qv:()=>l.CardSkeleton,CK:()=>p.default,uo:()=>o.ConfirmModal,G9:()=>b.default,wI:()=>j.default,vj:()=>y.default,vE:()=>k.default,pd:()=>i.default,Mh:()=>f.default,uR:()=>x.default,Nf:()=>h.default,aF:()=>o.default,rq:()=>m.default,gw:()=>N.default,LF:()=>u.default,Wx:()=>O.default,gM:()=>g.default,Iz:()=>C.default,l6:()=>r.default,lM:()=>c.default,m_:()=>S.default,TE:()=>v.default});var n=a(92542),i=a(11910),r=a(98),s=a(84588),o=a(81127),l=a(25086);a(56319);var d=a(56061),c=a(98542);a(38587),a(21110),a(92622),a(86528),a(92173);var u=a(73581),m=a(72908),x=a(28815),p=a(45455),h=a(28058);a(21931),a(80752),a(44076);var g=a(23615);a(61500);var f=a(62899);a(94230);var b=a(30815),v=a(30312),k=a(23936),y=a(95088),j=a(73579),w=a(96748),N=a(4823),C=a(28067),S=a(97677),O=a(51825),W=a(29366);a(7648),a(91450)},38003:(e,t,a)=>{a.d(t,{C:()=>n});let n=(0,a(1934).v)(e=>({query:"",placeholder:"",visible:!1,setQuery:t=>e({query:t}),register:(t="Search...")=>e({visible:!0,placeholder:t,query:""}),unregister:()=>e({visible:!1,placeholder:"",query:""})}))},38202:(e,t,a)=>{a.d(t,{h:()=>n});let n={en:"\uD83C\uDDFA\uD83C\uDDF8",vi:"\uD83C\uDDFB\uD83C\uDDF3","zh-CN":"\uD83C\uDDE8\uD83C\uDDF3","zh-TW":"\uD83C\uDDF9\uD83C\uDDFC",ja:"\uD83C\uDDEF\uD83C\uDDF5","pt-BR":"\uD83C\uDDE7\uD83C\uDDF7","pt-PT":"\uD83C\uDDF5\uD83C\uDDF9",ko:"\uD83C\uDDF0\uD83C\uDDF7",es:"\uD83C\uDDEA\uD83C\uDDF8",de:"\uD83C\uDDE9\uD83C\uDDEA",fr:"\uD83C\uDDEB\uD83C\uDDF7",he:"\uD83C\uDDEE\uD83C\uDDF1",ar:"\uD83C\uDDF8\uD83C\uDDE6",ru:"\uD83C\uDDF7\uD83C\uDDFA",pl:"\uD83C\uDDF5\uD83C\uDDF1",cs:"\uD83C\uDDE8\uD83C\uDDFF",nl:"\uD83C\uDDF3\uD83C\uDDF1",tr:"\uD83C\uDDF9\uD83C\uDDF7",uk:"\uD83C\uDDFA\uD83C\uDDE6",tl:"\uD83C\uDDF5\uD83C\uDDED",id:"\uD83C\uDDEE\uD83C\uDDE9",th:"\uD83C\uDDF9\uD83C\uDDED",km:"\uD83C\uDDF0\uD83C\uDDED",hi:"\uD83C\uDDEE\uD83C\uDDF3",bn:"\uD83C\uDDE7\uD83C\uDDE9",ur:"\uD83C\uDDF5\uD83C\uDDF0",ro:"\uD83C\uDDF7\uD83C\uDDF4",sv:"\uD83C\uDDF8\uD83C\uDDEA",it:"\uD83C\uDDEE\uD83C\uDDF9",el:"\uD83C\uDDEC\uD83C\uDDF7",hu:"\uD83C\uDDED\uD83C\uDDFA",fi:"\uD83C\uDDEB\uD83C\uDDEE",da:"\uD83C\uDDE9\uD83C\uDDF0",no:"\uD83C\uDDF3\uD83C\uDDF4",fa:"\uD83C\uDDEE\uD83C\uDDF7"}},38587:(e,t,a)=>{a.d(t,{default:()=>s});var n=a(95155),i=a(1620),r=a(31474);function s({className:e,variant:t="default"}){let{isDark:a,toggleTheme:o}=(0,i.D)(),l={default:(0,r.cn)("flex items-center justify-center size-10 rounded-full","text-text-muted hover:text-text-main","hover:bg-surface-2 transition-colors"),card:(0,r.cn)("flex items-center justify-center size-11 rounded-full","bg-surface/60 hover:bg-surface","border border-border","backdrop-blur-md shadow-sm hover:shadow-[var(--shadow-warm)]","text-text-muted hover:text-brand-500","transition-all group")};return(0,n.jsx)("button",{onClick:o,className:(0,r.cn)(l[t],e),"aria-label":`Switch to ${a?"light":"dark"} mode`,title:`Switch to ${a?"light":"dark"} mode`,children:(0,n.jsx)("span",{className:(0,r.cn)("material-symbols-outlined text-[22px]","card"===t&&"transition-transform duration-300 group-hover:rotate-12"),children:a?"light_mode":"dark_mode"})})}},44076:(e,t,a)=>{a.d(t,{default:()=>d});var n=a(95155),i=a(12115),r=a(47650),s=a(14051),o=a.n(s),l=a(90620);function d({isOpen:e,onClose:t}){let[s,o]=(0,i.useState)(""),[c,u]=(0,i.useState)(!1),[m,x]=(0,i.useState)(""),p=(0,i.useRef)(null);return((0,i.useEffect)(()=>{e&&!s&&(u(!0),x(""),Promise.all([fetch(function(e){if(!e)return e;let t=Number.isFinite(void 0)?void 0:Date.now(),a=e.includes("?")?"&":"?";return`${e}${a}t=${t}`}(l.Nu.changelogUrl)).then(e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);return e.text()}),a.e(9233).then(a.bind(a,9233))]).then(([e,{marked:t}])=>{t.setOptions({gfm:!0,breaks:!0}),o(t.parse(e))}).catch(e=>x(e.message||"Failed to load")).finally(()=>u(!1)))},[e,s]),(0,i.useEffect)(()=>{let a=e=>{p.current&&!p.current.contains(e.target)&&t()};if(e)return document.addEventListener("mousedown",a),()=>document.removeEventListener("mousedown",a)},[e,t]),!e||"u"<typeof document)?null:(0,r.createPortal)((0,n.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-black/30 backdrop-blur-sm",onClick:t}),(0,n.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,n.jsxs)("div",{className:"flex items-center justify-between p-2 sm:p-4 border-b border-black/5 dark:border-white/5",children:[(0,n.jsx)("h2",{className:"text-base sm:text-lg font-semibold text-text-main",children:"Change Log"}),(0,n.jsx)("button",{onClick:t,className:"p-2 rounded-lg text-text-muted hover:bg-black/5 dark:hover:bg-white/5 transition-colors","aria-label":"Close",children:(0,n.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,n.jsxs)("div",{className:"p-4 sm:p-6 overflow-y-auto flex-1 min-w-0 break-words",children:[c&&(0,n.jsxs)("div",{className:"flex items-center justify-center py-10 text-text-muted",children:[(0,n.jsx)("span",{className:"material-symbols-outlined animate-spin mr-2",children:"progress_activity"}),"Loading..."]}),m&&(0,n.jsxs)("div",{className:"text-red-500 py-4",children:["Failed to load changelog: ",m]}),!c&&!m&&s&&(0,n.jsx)("div",{className:"changelog-body text-text-main",dangerouslySetInnerHTML:{__html:s}})]})]})]}),document.body)}d.propTypes={isOpen:o().bool.isRequired,onClose:o().func.isRequired}},45455:(e,t,a)=>{a.d(t,{default:()=>u});var n=a(95155),i=a(12115),r=a(81127),s=a(11910),o=a(92542),l=a(72908);let d=/^[a-zA-Z0-9_.\-]+$/;function c({index:e,model:t,isFirst:a,isLast:r,onEdit:s,onMoveUp:o,onMoveDown:l,onRemove:d}){let[u,m]=(0,i.useState)(!1),[x,p]=(0,i.useState)(t),h=()=>{let e=x.trim();e&&e!==t?s(e):p(t),m(!1)};return(0,n.jsxs)("div",{className:"group flex min-w-0 items-center gap-1.5 rounded-md bg-black/[0.02] px-2 py-1 transition-colors hover:bg-black/[0.04] dark:bg-white/[0.02] dark:hover:bg-white/[0.04]",children:[(0,n.jsx)("span",{className:"text-[10px] font-medium text-text-muted w-3 text-center shrink-0",children:e+1}),u?(0,n.jsx)("input",{autoFocus:!0,value:x,onChange:e=>p(e.target.value),onBlur:h,onKeyDown:e=>{"Enter"===e.key&&h(),"Escape"===e.key&&(p(t),m(!1))},className:"min-w-0 flex-1 rounded border border-primary/40 bg-white px-1.5 py-0.5 font-mono text-xs text-text-main outline-none dark:bg-black/20"}):(0,n.jsx)("div",{className:"min-w-0 flex-1 cursor-text truncate rounded px-1.5 py-0.5 font-mono text-xs text-text-main hover:bg-black/5 dark:hover:bg-white/5",onClick:()=>m(!0),title:"Click to edit",children:t}),(0,n.jsxs)("div",{className:"flex shrink-0 items-center gap-0.5",children:[(0,n.jsx)("button",{onClick:o,disabled:a,className:`p-0.5 rounded ${a?"text-text-muted/20 cursor-not-allowed":"text-text-muted hover:text-primary hover:bg-black/5 dark:hover:bg-white/5"}`,title:"Move up",children:(0,n.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"arrow_upward"})}),(0,n.jsx)("button",{onClick:l,disabled:r,className:`p-0.5 rounded ${r?"text-text-muted/20 cursor-not-allowed":"text-text-muted hover:text-primary hover:bg-black/5 dark:hover:bg-white/5"}`,title:"Move down",children:(0,n.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"arrow_downward"})})]}),(0,n.jsx)("button",{onClick:d,className:"p-0.5 hover:bg-red-500/10 rounded text-text-muted hover:text-red-500 transition-all",title:"Remove",children:(0,n.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"close"})})]})}function u({isOpen:e,combo:t,onClose:a,onSave:m,activeProviders:x,kindFilter:p=null,forcePrefix:h="",title:g}){let f=t?.name?h&&t.name.startsWith(h)?t.name.slice(h.length):t.name:"",[b,v]=(0,i.useState)(f),[k,y]=(0,i.useState)(t?.models||[]),[j,w]=(0,i.useState)(!1),[N,C]=(0,i.useState)(!1),[S,O]=(0,i.useState)(""),[W,F]=(0,i.useState)({});(0,i.useEffect)(()=>{e&&fetch("/api/models/alias").then(e=>e.ok?e.json():null).then(e=>e&&F(e.aliases||{})).catch(()=>{})},[e]);let I=e=>{if(!e.trim())return O("Name is required"),!1;let t=h+e;return d.test(t)?(O(""),!0):(O("Only letters, numbers, -, _ and . allowed"),!1)},T=e=>{let t=e.target.value;h&&t.startsWith(h)&&(t=t.slice(h.length)),v(t),t?I(t):O("")},P=async()=>{I(b)&&(C(!0),await m({name:h+b.trim(),models:k}),C(!1))},E=!!t;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.default,{isOpen:e,onClose:a,title:g||(E?"Edit Combo":"Create Combo"),children:(0,n.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,n.jsxs)("div",{children:[h?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("label",{className:"text-sm font-medium mb-1 block",children:"Combo Name"}),(0,n.jsxs)("div",{className:"flex items-stretch",children:[(0,n.jsx)("span",{className:"inline-flex items-center px-2 rounded-l border border-r-0 border-black/10 dark:border-white/10 bg-black/[0.04] dark:bg-white/[0.04] text-text-muted font-mono text-sm",children:h}),(0,n.jsx)("input",{value:b,onChange:T,placeholder:"my-combo",className:"flex-1 min-w-0 rounded-r border border-black/10 dark:border-white/10 bg-white dark:bg-black/20 px-2 py-1.5 font-mono text-sm outline-none focus:border-primary"})]}),S&&(0,n.jsx)("p",{className:"text-[11px] text-red-500 mt-0.5",children:S})]}):(0,n.jsx)(s.default,{label:"Combo Name",value:b,onChange:T,placeholder:"my-combo",error:S}),(0,n.jsxs)("p",{className:"text-[10px] text-text-muted mt-0.5",children:[h?`Auto-prefixed with "${h}". `:"","Only letters, numbers, -, _ and . allowed"]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Models"}),0===k.length?(0,n.jsxs)("div",{className:"text-center py-4 border border-dashed border-black/10 dark:border-white/10 rounded-lg bg-black/[0.01] dark:bg-white/[0.01]",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-text-muted text-xl mb-1",children:"layers"}),(0,n.jsx)("p",{className:"text-xs text-text-muted",children:"No models added yet"})]}):(0,n.jsx)("div",{className:"flex max-h-[55vh] min-w-0 flex-col gap-1 overflow-y-auto sm:max-h-[350px]",children:k.map((e,t)=>(0,n.jsx)(c,{index:t,model:e,isFirst:0===t,isLast:t===k.length-1,onEdit:e=>{let a=[...k];a[t]=e,y(a)},onMoveUp:()=>(e=>{if(0===e)return;let t=[...k];[t[e-1],t[e]]=[t[e],t[e-1]],y(t)})(t),onMoveDown:()=>(e=>{if(e===k.length-1)return;let t=[...k];[t[e],t[e+1]]=[t[e+1],t[e]],y(t)})(t),onRemove:()=>y(k.filter((e,a)=>a!==t))},t))}),(0,n.jsxs)("button",{onClick:()=>w(!0),className:"w-full mt-2 py-2 border border-dashed border-black/10 dark:border-white/10 rounded-lg text-xs text-primary font-medium hover:text-primary hover:border-primary/50 transition-colors flex items-center justify-center gap-1",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"add"}),"Add Model"]})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-2 pt-1 sm:flex-row",children:[(0,n.jsx)(o.default,{onClick:a,variant:"ghost",fullWidth:!0,size:"sm",children:"Cancel"}),(0,n.jsx)(o.default,{onClick:P,fullWidth:!0,size:"sm",disabled:!b.trim()||!!S||N,children:N?"Saving...":E?"Save":"Create"})]})]})}),j&&(0,n.jsx)(l.default,{isOpen:j,onClose:()=>w(!1),onSelect:e=>{k.includes(e.value)||y([...k,e.value])},onDeselect:e=>{y(k.filter(t=>t!==e.value))},activeProviders:x,modelAliases:W,title:"Add Model to Combo",kindFilter:p,addedModelValues:k,closeOnSelect:!1})]})}},51825:(e,t,a)=>{a.d(t,{default:()=>s});var n=a(95155),i=a(84588);let r={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 s({config:e,provider:t,title:a="Provider Info"}){if(!e)return null;let o=Object.entries(r).filter(([t])=>void 0!==e[t]&&null!==e[t]&&""!==e[t]).map(([t,a])=>({key:t,label:a.label,value:a.format(e[t]),isLink:a.isLink,mono:a.mono,raw:e[t]})),l=t?.notice?.apiKeyUrl||t?.website,d=t?.notice?.text;return(0,n.jsxs)(i.default,{children:[(0,n.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,n.jsx)("h2",{className:"text-lg font-semibold",children:a}),l&&(0,n.jsxs)("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline inline-flex items-center gap-1",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-sm",children:"open_in_new"}),"Get API Key"]})]}),(0,n.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-2",children:[o.map(e=>(0,n.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,n.jsx)("span",{className:"text-xs text-text-muted w-28 shrink-0",children:e.label}),e.isLink?(0,n.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,n.jsx)("span",{className:`text-sm text-text-main truncate ${e.mono?"font-mono":""}`,children:e.value})]},e.key)),d&&(0,n.jsxs)("div",{className:"flex items-start gap-3 min-w-0 sm:col-span-2",children:[(0,n.jsx)("span",{className:"text-xs text-text-muted w-28 shrink-0 mt-0.5",children:"Notice"}),(0,n.jsx)("span",{className:"text-sm text-text-main leading-relaxed",children:d})]})]})]})}},56061:(e,t,a)=>{a.d(t,{default:()=>o});var n=a(95155),i=a(31474);let r={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"},s={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 o({children:e,variant:t="default",size:a="md",dot:l=!1,icon:d,className:c}){return(0,n.jsxs)("span",{className:(0,i.cn)("inline-flex items-center gap-1.5 rounded-full font-semibold",r[t],s[a],c),children:[l&&(0,n.jsx)("span",{className:(0,i.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,n.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:d}),e]})}},56319:(e,t,a)=>{a.d(t,{default:()=>r});var n=a(95155),i=a(31474);function r({src:e,alt:t="Avatar",name:a,size:s="md",className:o}){let l={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,n.jsx)("div",{className:(0,i.cn)("rounded-full bg-cover bg-center bg-no-repeat","ring-2 ring-white dark:ring-surface-dark shadow-sm",l[s],o),style:{backgroundImage:`url(${e})`},role:"img","aria-label":t}):(0,n.jsx)("div",{className:(0,i.cn)("rounded-full flex items-center justify-center font-semibold text-white","ring-2 ring-white dark:ring-surface-dark shadow-sm",l[s],(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"],a=e.charCodeAt(0)%t.length;return t[a]})(a),o),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()})(a)})}},57250:(e,t,a)=>{a.d(t,{A:()=>l});var n=a(95155),i=a(12115),r=a(14051),s=a.n(r),o=a(8247);function l({src:e,providerId:t,alt:a,size:r=32,className:s="",fallbackText:d="?",fallbackColor:c}){let u=function(e,t){if(t)return(0,o.HY)(t);if(!e)return null;let a=String(e).match(/^\/providers\/([^/]+)\.png$/i);return a?(0,o.HY)(a[1]):e}(e,t),[m,x]=(0,i.useState)(!1);return!u||m?(0,n.jsx)("span",{className:`inline-flex items-center justify-center font-bold rounded-lg ${s}`.trim(),style:{width:r,height:r,color:c,fontSize:Math.max(10,Math.floor(.38*r))},children:d}):(0,n.jsx)("img",{src:u,alt:a,width:r,height:r,className:s,loading:"lazy",decoding:"async",onError:()=>{let e=u.match(/^\/providers\/([^/]+)\.png$/i);e&&(0,o.Kw)(e[1]),t&&(0,o.Kw)(t),x(!0)}})}l.propTypes={src:s().string,providerId:s().string,alt:s().string,size:s().number,className:s().string,fallbackText:s().string,fallbackColor:s().string}},61500:(e,t,a)=>{a.d(t,{default:()=>l});var n=a(95155),i=a(12115),r=a(14051),s=a.n(r),o=a(35497);function l({isOpen:e,onMethodSelect:t,onClose:a}){let[r,s]=(0,i.useState)(null),[d,c]=(0,i.useState)(""),[u,m]=(0,i.useState)("us-east-1"),[x,p]=(0,i.useState)(""),[h,g]=(0,i.useState)(""),[f,b]=(0,i.useState)(""),[v,k]=(0,i.useState)("us-east-1"),[y,j]=(0,i.useState)(null),[w,N]=(0,i.useState)(!1),[C,S]=(0,i.useState)(!1),[O,W]=(0,i.useState)(!1),[F,I]=(0,i.useState)(null);(0,i.useEffect)(()=>{"import"===r&&e&&(async()=>{S(!0),j(null),W(!1),I(null);try{let e=await fetch("/api/oauth/kiro/auto-import"),t=await e.json();t.found?(p(t.refreshToken),W(!0),t.clientId&&t.clientSecret&&I({clientId:t.clientId,clientSecret:t.clientSecret,region:t.region,authMethod:t.authMethod,profileArn:t.profileArn})):j(t.error||"Could not auto-detect token")}catch(e){j("Failed to auto-detect token")}finally{S(!1)}})()},[r,e]);let T=e=>{s(e),j(null)},P=()=>{s(null),j(null)},E=async()=>{if(!x.trim())return void j("Please enter a refresh token");N(!0),j(null);try{let e=await fetch("/api/oauth/kiro/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refreshToken:x.trim(),...F||{}})}),a=await e.json();if(!e.ok)throw Error(a.error||"Import failed");t("import")}catch(e){j(e.message)}finally{N(!1)}},A=async()=>{if(!h.trim())return void j("Please paste CLIProxyAPI auth JSON");N(!0),j(null);try{let e=await fetch("/api/oauth/kiro/import-cli-proxy",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({json:h.trim()})}),a=await e.json();if(!e.ok)throw Error(a.error||"CLIProxyAPI import failed");t("import-cli-proxy")}catch(e){j(e.message)}finally{N(!1)}},_=async()=>{if(!f.trim())return void j("Please enter an API key");N(!0),j(null);try{let e=await fetch("/api/oauth/kiro/api-key",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({apiKey:f.trim(),region:v.trim()||"us-east-1"})}),a=await e.json();if(!e.ok)throw Error(a.error||"Import failed");t("api-key")}catch(e){j(e.message)}finally{N(!1)}},$=e=>{t("social",{provider:e})};return(0,n.jsx)(o.aF,{isOpen:e,title:"Connect Kiro",onClose:a,size:"lg",children:(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[!r&&(0,n.jsxs)("div",{className:"space-y-3",children:[(0,n.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Choose your authentication method:"}),(0,n.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,n.jsxs)("div",{className:"flex items-start gap-3",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-primary mt-0.5",children:"shield"}),(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsx)("h3",{className:"font-semibold mb-1",children:"AWS Builder ID"}),(0,n.jsx)("p",{className:"text-sm text-text-muted",children:"Recommended for most users. Free AWS account required."})]})]})}),(0,n.jsx)("button",{onClick:()=>T("idc"),className:"w-full p-4 text-left border border-border rounded-lg hover:bg-sidebar transition-colors",children:(0,n.jsxs)("div",{className:"flex items-start gap-3",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-primary mt-0.5",children:"business"}),(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsx)("h3",{className:"font-semibold mb-1",children:"AWS IAM Identity Center"}),(0,n.jsx)("p",{className:"text-sm text-text-muted",children:"For enterprise users with custom AWS IAM Identity Center."})]})]})}),(0,n.jsx)("button",{onClick:()=>T("api-key"),className:"w-full p-4 text-left border border-border rounded-lg hover:bg-sidebar transition-colors",children:(0,n.jsxs)("div",{className:"flex items-start gap-3",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-primary mt-0.5",children:"key"}),(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsx)("h3",{className:"font-semibold mb-1",children:"API Key"}),(0,n.jsx)("p",{className:"text-sm text-text-muted",children:"Use a long-lived Kiro/CodeWhisperer API key (headless auth)."})]})]})}),(0,n.jsx)("button",{onClick:()=>T("social-google"),className:"hidden w-full p-4 text-left border border-border rounded-lg hover:bg-sidebar transition-colors",children:(0,n.jsxs)("div",{className:"flex items-start gap-3",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-primary mt-0.5",children:"account_circle"}),(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsx)("h3",{className:"font-semibold mb-1",children:"Google Account"}),(0,n.jsx)("p",{className:"text-sm text-text-muted",children:"Login with your Google account (manual callback)."})]})]})}),(0,n.jsx)("button",{onClick:()=>T("social-github"),className:"hidden w-full p-4 text-left border border-border rounded-lg hover:bg-sidebar transition-colors",children:(0,n.jsxs)("div",{className:"flex items-start gap-3",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-primary mt-0.5",children:"code"}),(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsx)("h3",{className:"font-semibold mb-1",children:"GitHub Account"}),(0,n.jsx)("p",{className:"text-sm text-text-muted",children:"Login with your GitHub account (manual callback)."})]})]})}),(0,n.jsx)("button",{onClick:()=>T("import"),className:"w-full p-4 text-left border border-border rounded-lg hover:bg-sidebar transition-colors",children:(0,n.jsxs)("div",{className:"flex items-start gap-3",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-primary mt-0.5",children:"file_upload"}),(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsx)("h3",{className:"font-semibold mb-1",children:"Import Token"}),(0,n.jsx)("p",{className:"text-sm text-text-muted",children:"Paste refresh token from Kiro IDE."})]})]})}),(0,n.jsx)("button",{onClick:()=>T("import-cli-proxy"),className:"w-full p-4 text-left border border-border rounded-lg hover:bg-sidebar transition-colors",children:(0,n.jsxs)("div",{className:"flex items-start gap-3",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-primary mt-0.5",children:"data_object"}),(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsx)("h3",{className:"font-semibold mb-1",children:"Import CLIProxyAPI JSON"}),(0,n.jsx)("p",{className:"text-sm text-text-muted",children:"Paste external_idp auth JSON from CLIProxyAPI/Kiro Microsoft login."})]})]})})]}),"idc"===r&&(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsxs)("label",{className:"block text-sm font-medium mb-2",children:["IDC Start URL ",(0,n.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,n.jsx)(o.pd,{value:d,onChange:e=>c(e.target.value),placeholder:"https://your-org.awsapps.com/start",className:"font-mono text-sm"}),(0,n.jsx)("p",{className:"text-xs text-text-muted mt-1",children:"Your organization's AWS IAM Identity Center URL"})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:"block text-sm font-medium mb-2",children:"AWS Region"}),(0,n.jsx)(o.pd,{value:u,onChange:e=>m(e.target.value),placeholder:"us-east-1",className:"font-mono text-sm"}),(0,n.jsx)("p",{className:"text-xs text-text-muted mt-1",children:"AWS region for your Identity Center (default: us-east-1)"})]}),y&&(0,n.jsx)("p",{className:"text-sm text-red-600",children:y}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(o.$n,{onClick:()=>{d.trim()?t("idc",{startUrl:d.trim(),region:u}):j("Please enter your IDC start URL")},fullWidth:!0,children:"Continue"}),(0,n.jsx)(o.$n,{onClick:P,variant:"ghost",fullWidth:!0,children:"Back"})]})]}),"api-key"===r&&(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.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,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-blue-600 dark:text-blue-400",children:"info"}),(0,n.jsx)("p",{className:"text-sm text-blue-800 dark:text-blue-200",children:"Paste a long-lived Kiro/CodeWhisperer API key. It is validated against AWS and stored directly as a bearer credential (no refresh)."})]})}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("label",{className:"block text-sm font-medium mb-2",children:["API Key ",(0,n.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,n.jsx)(o.pd,{value:f,onChange:e=>b(e.target.value),placeholder:"Paste your Kiro API key...",className:"font-mono text-sm"})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:"block text-sm font-medium mb-2",children:"AWS Region"}),(0,n.jsx)(o.pd,{value:v,onChange:e=>k(e.target.value),placeholder:"us-east-1",className:"font-mono text-sm"}),(0,n.jsx)("p",{className:"text-xs text-text-muted mt-1",children:"AWS region for the key (default: us-east-1)"})]}),y&&(0,n.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,n.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400",children:y})}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(o.$n,{onClick:_,fullWidth:!0,disabled:w||!f.trim(),children:w?"Validating...":"Add API Key"}),(0,n.jsx)(o.$n,{onClick:P,variant:"ghost",fullWidth:!0,children:"Back"})]})]}),"social-google"===r&&(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsx)("div",{className:"bg-amber-50 dark:bg-amber-900/20 p-4 rounded-lg border border-amber-200 dark:border-amber-800",children:(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-amber-600 dark:text-amber-400",children:"info"}),(0,n.jsxs)("div",{className:"flex-1 text-sm",children:[(0,n.jsx)("p",{className:"font-medium text-amber-900 dark:text-amber-100 mb-1",children:"Manual Callback Required"}),(0,n.jsx)("p",{className:"text-amber-800 dark:text-amber-200",children:"After login, you'll need to copy the callback URL from your browser and paste it back here."})]})]})}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(o.$n,{onClick:()=>$("google"),fullWidth:!0,children:"Continue with Google"}),(0,n.jsx)(o.$n,{onClick:P,variant:"ghost",fullWidth:!0,children:"Back"})]})]}),"social-github"===r&&(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsx)("div",{className:"bg-amber-50 dark:bg-amber-900/20 p-4 rounded-lg border border-amber-200 dark:border-amber-800",children:(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-amber-600 dark:text-amber-400",children:"info"}),(0,n.jsxs)("div",{className:"flex-1 text-sm",children:[(0,n.jsx)("p",{className:"font-medium text-amber-900 dark:text-amber-100 mb-1",children:"Manual Callback Required"}),(0,n.jsx)("p",{className:"text-amber-800 dark:text-amber-200",children:"After login, you'll need to copy the callback URL from your browser and paste it back here."})]})]})}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(o.$n,{onClick:()=>$("github"),fullWidth:!0,children:"Continue with GitHub"}),(0,n.jsx)(o.$n,{onClick:P,variant:"ghost",fullWidth:!0,children:"Back"})]})]}),"import"===r&&(0,n.jsxs)("div",{className:"space-y-4",children:[C&&(0,n.jsxs)("div",{className:"text-center py-6",children:[(0,n.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-primary/10 flex items-center justify-center",children:(0,n.jsx)("span",{className:"material-symbols-outlined text-3xl text-primary animate-spin",children:"progress_activity"})}),(0,n.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Auto-detecting token..."}),(0,n.jsx)("p",{className:"text-sm text-text-muted",children:"Reading from AWS SSO cache"})]}),!C&&(0,n.jsxs)(n.Fragment,{children:[O&&(0,n.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,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-green-600 dark:text-green-400",children:"check_circle"}),(0,n.jsx)("p",{className:"text-sm text-green-800 dark:text-green-200",children:"Token auto-detected from Kiro IDE successfully!"})]})}),!O&&!y&&(0,n.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,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-blue-600 dark:text-blue-400",children:"info"}),(0,n.jsx)("p",{className:"text-sm text-blue-800 dark:text-blue-200",children:"Kiro IDE not detected. Please paste your refresh token manually."})]})}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("label",{className:"block text-sm font-medium mb-2",children:["Refresh Token ",(0,n.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,n.jsx)(o.pd,{value:x,onChange:e=>p(e.target.value),placeholder:"Token will be auto-filled...",className:"font-mono text-sm"})]}),y&&(0,n.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,n.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400",children:y})}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(o.$n,{onClick:E,fullWidth:!0,disabled:w||!x.trim(),children:w?"Importing...":"Import Token"}),(0,n.jsx)(o.$n,{onClick:P,variant:"ghost",fullWidth:!0,children:"Back"})]})]})]}),"import-cli-proxy"===r&&(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.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,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-blue-600 dark:text-blue-400",children:"info"}),(0,n.jsx)("p",{className:"text-sm text-blue-800 dark:text-blue-200",children:"Paste the Kiro CLIProxyAPI auth JSON containing auth_method=external_idp. Only Microsoft login token endpoints are accepted."})]})}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("label",{className:"block text-sm font-medium mb-2",children:["CLIProxyAPI Auth JSON ",(0,n.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,n.jsx)("textarea",{value:h,onChange:e=>g(e.target.value),placeholder:'{"auth_method":"external_idp","access_token":"...","refresh_token":"...","client_id":"...","token_endpoint":"https://login.microsoftonline.com/.../oauth2/v2.0/token","profile_arn":"...","scopes":"..."}',className:"min-h-40 w-full rounded-md border border-border bg-background p-3 font-mono text-sm outline-none focus:border-primary"})]}),y&&(0,n.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,n.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400",children:y})}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(o.$n,{onClick:A,fullWidth:!0,disabled:w||!h.trim(),children:w?"Importing...":"Import CLIProxyAPI JSON"}),(0,n.jsx)(o.$n,{onClick:P,variant:"ghost",fullWidth:!0,children:"Back"})]})]})]})})}l.propTypes={isOpen:s().bool.isRequired,onMethodSelect:s().func.isRequired,onClose:s().func.isRequired}},62899:(e,t,a)=>{a.d(t,{default:()=>c});var n=a(95155),i=a(12115),r=a(14051),s=a.n(r),o=a(73581),l=a(61500),d=a(94230);function c({isOpen:e,providerInfo:t,onSuccess:a,onClose:r}){let[s,u]=(0,i.useState)(null),[m,x]=(0,i.useState)(null),[p,h]=(0,i.useState)(null),g=(0,i.useCallback)((e,t)=>{"builder-id"===e?u("builder-id"):"idc"===e?(u("idc"),h(t)):"social"===e?(u("social"),x(t.provider)):("import"===e||"api-key"===e)&&a?.()},[a]),f=()=>{u(null),x(null),h(null)};return s?"builder-id"===s||"idc"===s?(0,n.jsx)(o.default,{isOpen:e,provider:"kiro",providerInfo:t,onSuccess:()=>{u(null),h(null),a?.(),r?.()},onClose:f,idcConfig:p}):"social"===s&&m?(0,n.jsx)(d.default,{isOpen:e,provider:m,onSuccess:()=>{u(null),x(null),a?.(),r?.()},onClose:f}):null:(0,n.jsx)(l.default,{isOpen:e,onMethodSelect:g,onClose:r})}c.propTypes={isOpen:s().bool.isRequired,providerInfo:s().shape({name:s().string}),onSuccess:s().func,onClose:s().func.isRequired}},65921:(e,t,a)=>{a.d(t,{i:()=>r});var n=a(1934);let i=0,r=(0,n.v)((e,t)=>({notifications:[],addNotification:a=>{let n=++i,r={id:n,type:a.type||"info",message:a.message,title:a.title||null,duration:a.duration??5e3,dismissible:a.dismissible??!0,createdAt:Date.now()};return e(e=>({notifications:[...e.notifications,r]})),r.duration>0&&setTimeout(()=>t().removeNotification(n),r.duration),n},removeNotification:t=>{e(e=>({notifications:e.notifications.filter(e=>e.id!==t)}))},clearAll:()=>e({notifications:[]}),success:(e,a)=>t().addNotification({type:"success",message:e,title:a}),error:(e,a)=>t().addNotification({type:"error",message:e,title:a,duration:8e3}),warning:(e,a)=>t().addNotification({type:"warning",message:e,title:a}),info:(e,a)=>t().addNotification({type:"info",message:e,title:a})}))},67899:(e,t,a)=>{a.d(t,{Q5:()=>function e(t,a=null,n=null,i=0){if(!t?.length||i>6)return null;let r=t.map(t=>{if(!t.includes("/")&&a?.[t])return e(a[t],a,n,i+1)??n?.(t)??v(null,t);let r=t.indexOf("/"),s=v(-1===r?null:t.slice(0,r),-1===r?t:t.slice(r+1)),o=n?.(t);return o?{...s,...o}:s}),s=r[0];return{vision:r.some(e=>e.vision),pdf:r.some(e=>e.pdf),audioInput:r.some(e=>e.audioInput),videoInput:r.some(e=>e.videoInput),imageOutput:r.some(e=>e.imageOutput),audioOutput:r.some(e=>e.audioOutput),search:r.some(e=>e.search),tools:r.every(e=>e.tools),reasoning:s.reasoning,thinkingFormat:s.thinkingFormat,thinkingCanDisable:s.thinkingCanDisable,thinkingRange:s.thinkingRange,contextWindow:Math.min(...r.map(e=>e.contextWindow)),maxOutput:Math.max(...r.map(e=>e.maxOutput))}},nl:()=>v});var n=a(62630);let i="[-_/:.]",r=RegExp(`(^|${i})(image|img)(${i}|$)|stable-image|gen[0-9]_image|nanobanana|imagine|t2v|i2v|flux|dall|sdxl|diffusion|embed|rerank|guard|moderation|tts|stt|whisper|voice|speech|audio`,"i"),s=RegExp(`(^|${i})(vision|vl|vlm|multimodal|omni|visual)(${i}|$)|[0-9]\\.[0-9]+v(${i}|$)|(^|${i})glm-[0-9]+v(${i}|$)|(^|[-_/:.])(llava|pixtral|internvl|cogvlm|minicpm-v|moondream|idefics|fuyu)`,"i"),o={vision:!1,pdf:!1,audioInput:!1,videoInput:!1,imageOutput:!1,audioOutput:!1,search:!1,tools:!0,reasoning:!1,thinkingFormat:null,thinkingCanDisable:!0,thinkingRange:null,thinkingEffortSupported:!1,contextWindow:2e5,maxOutput:64e3},l={"claude-fable-5-1":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",thinkingCanDisable:!1,contextWindow:1e6,maxOutput:128e3},"claude-opus-5.5":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3},"claude-opus-5.5-thinking":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3},"claude-opus-5.5-agentic":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3},"claude-opus-5.5-thinking-agentic":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3},"claude-opus-5-5":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3,thinkingCanDisable:!1,forcedToolChoice:!1},"claude-opus-5-5-thinking":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3,thinkingCanDisable:!1,forcedToolChoice:!1},"claude-opus-5-5-high":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3,thinkingCanDisable:!1,forcedToolChoice:!1},"claude-opus-5-5-medium":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3,thinkingCanDisable:!1,forcedToolChoice:!1},"claude-opus-5-5-low":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3,thinkingCanDisable:!1,forcedToolChoice:!1},"claude-opus-5":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3},"claude-opus-5-thinking":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3},"claude-opus-5-agentic":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3},"claude-opus-5-thinking-agentic":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3},"claude-opus-4.6":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3},"claude-opus-4.7":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3},"claude-opus-4-7":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3},"claude-opus-4.8":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3},"claude-opus-4-6":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3},"claude-opus-4-8":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3},"claude-opus-4.8-thinking":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3},"claude-opus-4-8-thinking":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3},"claude-sonnet-4.6":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3},"claude-sonnet-4-6":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3},"claude-sonnet-5-5":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3,thinkingOffType:"between_tools",forcedToolChoice:!1},"claude-sonnet-5-5-thinking":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3,thinkingOffType:"between_tools",forcedToolChoice:!1},"claude-sonnet-5-5-high":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3,thinkingOffType:"between_tools",forcedToolChoice:!1},"claude-sonnet-5-5-medium":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3,thinkingOffType:"between_tools",forcedToolChoice:!1},"claude-sonnet-5-5-low":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3,thinkingOffType:"between_tools",forcedToolChoice:!1},"claude-sonnet-5":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3},"claude-sonnet-5-thinking":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3},"claude-sonnet-5-agentic":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3},"claude-sonnet-5-thinking-agentic":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3},"gpt-image-1":{imageOutput:!0,tools:!1},"glm-5.3-flash":{vision:!0,videoInput:!0,pdf:!0,reasoning:!0,thinkingFormat:"zai",thinkingCanDisable:!1,contextWindow:1e6,maxOutput:131072},"glm-4.6v":{vision:!0,videoInput:!0,reasoning:!0,thinkingFormat:"zai",contextWindow:128e3,maxOutput:32768},"glm-4.5v":{vision:!0,videoInput:!0,reasoning:!0,thinkingFormat:"zai",contextWindow:64e3,maxOutput:16384},"glm-5.2":{reasoning:!0,thinkingFormat:"zai",thinkingEffortSupported:!0,thinkingCanDisable:!1,contextWindow:1e6,maxOutput:131072},"deepseek-v4-flash-vision-exp":{vision:!0,reasoning:!0,thinkingFormat:"deepseek",contextWindow:1e6,maxOutput:384e3},"deepseek-v4.1-flash":{vision:!0,reasoning:!0,thinkingFormat:"deepseek",contextWindow:1e6,maxOutput:384e3},"deepseek-v4-1-flash":{vision:!0,reasoning:!0,thinkingFormat:"deepseek",contextWindow:1e6,maxOutput:384e3},"deepseek-flash":{vision:!0,reasoning:!0,thinkingFormat:"deepseek",contextWindow:128e3,maxOutput:64e3},"vision-model":{vision:!0,reasoning:!0,thinkingFormat:"qwen",contextWindow:1e6},"coder-model":{reasoning:!0,thinkingFormat:"qwen",contextWindow:1e6},"kimi-k3":{vision:!0,videoInput:!0,reasoning:!0,thinkingFormat:"kimi",thinkingCanDisable:!1,contextWindow:1048576,maxOutput:131072},k3:{vision:!0,videoInput:!0,reasoning:!0,thinkingFormat:"kimi",thinkingCanDisable:!1,contextWindow:1048576,maxOutput:131072},"kimi-for-coding":{vision:!0,videoInput:!0,reasoning:!0,thinkingFormat:"kimi",thinkingCanDisable:!1,contextWindow:262144,maxOutput:65536},"kimi-for-coding-highspeed":{vision:!0,videoInput:!0,reasoning:!0,thinkingFormat:"kimi",thinkingCanDisable:!1,contextWindow:262144,maxOutput:65536},"kimi-k2.7-code":{vision:!0,videoInput:!0,reasoning:!0,thinkingFormat:"kimi",thinkingCanDisable:!1,contextWindow:262144,maxOutput:65536},"kimi-k2.7-code-highspeed":{vision:!0,videoInput:!0,reasoning:!0,thinkingFormat:"kimi",thinkingCanDisable:!1,contextWindow:262144,maxOutput:65536},"muse-spark-1.2-contributor-free":{vision:!0,reasoning:!0,thinkingFormat:"openai",contextWindow:1048576,maxOutput:131072},"muse-spark-1.3-contributor-free":{vision:!0,reasoning:!0,thinkingFormat:"openai",contextWindow:1048576,maxOutput:131072}},d={vision:!0,reasoning:!0,search:!0,thinkingFormat:"openai",contextWindow:272e3,maxOutput:128e3},c={vision:!0,reasoning:!0,search:!0,thinkingFormat:"openai",contextWindow:372e3,maxOutput:128e3},u={vision:!0,reasoning:!0,search:!0,thinkingFormat:"openai",contextWindow:272e3,maxOutput:128e3},m={...u,contextWindow:872e3},x={vision:!0,reasoning:!0,search:!0,thinkingFormat:"openai",contextWindow:2e5,maxOutput:128e3},p={nvidia:{"minimaxai/minimax-m2.7":{reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:2e5,maxOutput:131072},"minimaxai/minimax-m3":{vision:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:512e3,maxOutput:131072},"z-ai/glm-5.2":{reasoning:!0,thinkingFormat:"openai",contextWindow:2e5,maxOutput:128e3},"deepseek-ai/deepseek-v4-pro":{reasoning:!0,thinkingFormat:"openai",contextWindow:1e6,maxOutput:65536},"deepseek-ai/deepseek-v4-flash":{reasoning:!0,thinkingFormat:"openai",contextWindow:1e6,maxOutput:65536}},github:{auto:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"openai",contextWindow:4e5,maxOutput:128e3}},"opencode-go":{"glm-5.3-flash":{vision:!0,videoInput:!0,pdf:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:1e6,maxOutput:131072}},codex:{"gpt-6-astra":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"openai",contextWindow:272e3,maxOutput:128e3},"gpt-6.1-sol":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"openai",contextWindow:272e3,maxOutput:128e3},"gpt-6-sol":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"openai",contextWindow:272e3,maxOutput:128e3},"gpt-6-luna":{vision:!0,reasoning:!0,search:!0,thinkingFormat:"openai",contextWindow:272e3,maxOutput:128e3},"gpt-6-astra[1m]":m,"gpt-6-sol[1m]":m,"gpt-6-luna[1m]":m,"gpt-5.6-sol[1m]":m,"gpt-5.6-terra[1m]":m,"gpt-5.6-luna[1m]":m,"gpt-5.6-sol":c,"gpt-5.6-sol-review":c,"gpt-5.6-terra":u,"gpt-5.6-terra-review":u,"gpt-5.6-luna":u,"gpt-5.6-luna-review":u},kiro:{"gpt-5.6-sol":d,"gpt-5.6-terra":d,"gpt-5.6-luna":d,"gpt-5.6-sol-thinking":d,"gpt-5.6-terra-thinking":d,"gpt-5.6-luna-thinking":d,"gpt-5.6-sol-agentic":d,"gpt-5.6-terra-agentic":d,"gpt-5.6-luna-agentic":d,"gpt-5.6-sol-thinking-agentic":d,"gpt-5.6-terra-thinking-agentic":d,"gpt-5.6-luna-thinking-agentic":d},"devin-cli":{"gpt-5.4-high":x,"gpt-5.4-medium":x,"gpt-5.4-low":x,"gpt-5.5-xhigh":x,"gpt-5.5-high":x,"gpt-5.5-medium":x,"gpt-5.5-low":x},"codebuddy-cn":{"glm-5.2":{vision:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!0,contextWindow:1e6,maxOutput:131072},"glm-5.1":{vision:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:2e5,maxOutput:48e3},"glm-5.0":{reasoning:!0,thinkingFormat:"openai",contextWindow:2e5,maxOutput:48e3},"glm-5v-turbo":{vision:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:2e5,maxOutput:64e3},"glm-4.7":{reasoning:!0,thinkingFormat:"openai",contextWindow:2e5,maxOutput:48e3},"minimax-m3":{vision:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:512e3,maxOutput:524288},"kimi-k2.7":{vision:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:256e3,maxOutput:32e3},"kimi-k2.6":{vision:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:256e3,maxOutput:32e3},"kimi-k2.5":{vision:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:164e3,maxOutput:32e3},"hy3-preview":{vision:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:192e3,maxOutput:64e3},"deepseek-v4-flash":{reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:1e6,maxOutput:5e4},"deepseek-v3-2-volc":{reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:96e3,maxOutput:32e3},hy3:{vision:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:192e3,maxOutput:64e3},"hy4-preview":{vision:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:1e6,maxOutput:64e3},"glm-5.3":{vision:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!0,contextWindow:1e6,maxOutput:131072},"glm-5.3-flash":{vision:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!0,contextWindow:1e6,maxOutput:131072},"kimi-k3-1":{vision:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:1e6,maxOutput:1048576},"kimi-k2.8-preview":{vision:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!0,contextWindow:3e5,maxOutput:131072},"deepseek-v4-pro":{vision:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!0,contextWindow:1e6,maxOutput:393216},"deepseek-v4.1-flash":{vision:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!0,contextWindow:1e6,maxOutput:393216}},"codebuddy-intl":{"deepseek-v4.1-flash":{vision:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!0,contextWindow:1e6,maxOutput:128e3}},qoder:{ultimate:{vision:!0,reasoning:!0,thinkingFormat:"claude-adaptive",thinkingCanDisable:!1,contextWindow:1e6,maxOutput:128e3},performance:{vision:!0,reasoning:!0,thinkingFormat:"claude-adaptive",thinkingCanDisable:!1,contextWindow:1e6,maxOutput:128e3},dmodel:{reasoning:!0,thinkingFormat:"deepseek",thinkingCanDisable:!1,contextWindow:1e6,maxOutput:65536},dfmodel:{reasoning:!0,thinkingFormat:"deepseek",thinkingCanDisable:!1,contextWindow:1e6,maxOutput:65536},gmodel:{reasoning:!0,thinkingFormat:"zai",thinkingCanDisable:!1,contextWindow:1e6,maxOutput:128e3},gfmodel:{vision:!0,reasoning:!0,thinkingFormat:"zai",thinkingCanDisable:!1,contextWindow:1e6,maxOutput:128e3},kmodel_latest:{vision:!0,reasoning:!0,thinkingFormat:"kimi",thinkingCanDisable:!1,contextWindow:1e6,maxOutput:65536},kmodel:{vision:!0,reasoning:!0,thinkingFormat:"kimi",thinkingCanDisable:!1,contextWindow:256e3,maxOutput:65536},mmodel:{reasoning:!0,thinkingFormat:"minimax",thinkingCanDisable:!1,contextWindow:1e6,maxOutput:512e3},qmodel_latest:{vision:!0,reasoning:!0,thinkingFormat:"qwen",thinkingCanDisable:!1,contextWindow:1e6,maxOutput:65536},qmodel:{vision:!0,reasoning:!0,thinkingFormat:"qwen",thinkingCanDisable:!1,contextWindow:1e6,maxOutput:65536},qfmodel:{vision:!0,reasoning:!0,thinkingFormat:"qwen",thinkingCanDisable:!1,contextWindow:1e6,maxOutput:65536},qmodel_38max:{vision:!0,reasoning:!0,thinkingFormat:"qwen",thinkingCanDisable:!1,contextWindow:1e6,maxOutput:65536}},nous:{"~anthropic/claude-opus-latest":{vision:!0,pdf:!0,reasoning:!0,thinkingFormat:"openai",contextWindow:1e6,maxOutput:128e3},"~anthropic/claude-sonnet-latest":{vision:!0,pdf:!0,reasoning:!0,thinkingFormat:"openai",contextWindow:1e6,maxOutput:128e3},"~openai/gpt-latest":{vision:!0,pdf:!0,reasoning:!0,thinkingFormat:"openai",contextWindow:105e4,maxOutput:128e3},"~google/gemini-pro-latest":{vision:!0,pdf:!0,audioInput:!0,videoInput:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:1048576,maxOutput:65536},"~google/gemini-flash-latest":{vision:!0,pdf:!0,audioInput:!0,videoInput:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:1048576,maxOutput:65536},"~z-ai/glm-latest":{reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:1310720,maxOutput:235929},"~moonshotai/kimi-latest":{vision:!0,videoInput:!0,reasoning:!0,thinkingFormat:"openai",contextWindow:1048576,maxOutput:943718},"~deepseek/deepseek-v4-flash-latest":{reasoning:!0,thinkingFormat:"openai",contextWindow:1310720,maxOutput:943718},"~x-ai/grok-latest":{vision:!0,pdf:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:5e5,maxOutput:45e4},"openai/gpt-6-astra":{vision:!0,pdf:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:105e4,maxOutput:128e3},"openai/gpt-5.6-luna":{vision:!0,pdf:!0,reasoning:!0,thinkingFormat:"openai",contextWindow:105e4,maxOutput:128e3},"openai/gpt-5.6-terra":{vision:!0,pdf:!0,reasoning:!0,thinkingFormat:"openai",contextWindow:105e4,maxOutput:128e3},"openai/gpt-5.6-sol":{vision:!0,pdf:!0,reasoning:!0,thinkingFormat:"openai",contextWindow:105e4,maxOutput:128e3},"z-ai/glm-5.3-flash":{vision:!0,videoInput:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:1310720,maxOutput:943718},"qwen/qwen3.8-max-0902":{vision:!0,videoInput:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:1e6,maxOutput:131072},"qwen/qwen3.8-flash":{vision:!0,videoInput:!0,reasoning:!0,thinkingFormat:"openai",contextWindow:1e6,maxOutput:131072},"deepseek/deepseek-v4-pro":{reasoning:!0,thinkingFormat:"openai",contextWindow:1048576,maxOutput:384e3},"tencent/hy4-preview":{reasoning:!0,thinkingFormat:"openai",contextWindow:1048576,maxOutput:64e3},"minimax/minimax-m3":{vision:!0,videoInput:!0,reasoning:!0,thinkingFormat:"openai",contextWindow:1048576,maxOutput:235929},"meta/muse-spark-1.3":{vision:!0,pdf:!0,audioInput:!0,videoInput:!0,reasoning:!0,thinkingFormat:"openai",thinkingCanDisable:!1,contextWindow:1048576,maxOutput:943718},"thinkingmachines/inkling":{vision:!0,audioInput:!0,reasoning:!0,thinkingFormat:"openai",contextWindow:1048576,maxOutput:262144}},poolside:{"laguna-s-2.1":{reasoning:!0,thinkingFormat:"openai",contextWindow:1e6,maxOutput:32e3},"laguna-xs-2.1":{reasoning:!0,thinkingFormat:"openai",contextWindow:2e5,maxOutput:32e3}},ollama:{"deepseek-v4.1-flash:cloud":{vision:!0,reasoning:!0,thinkingFormat:"deepseek",contextWindow:1e6,maxOutput:384e3}},"minimax-code":{"MiniMax-M3.1-Flash-Preview":{vision:!0,reasoning:!0,thinkingFormat:"claude-adaptive",thinkingCanDisable:!1,contextWindow:512e3,maxOutput:128e3},"MiniMax-M3":{vision:!0,reasoning:!0,thinkingFormat:"claude-adaptive",contextWindow:512e3,maxOutput:128e3},"MiniMax-M2.7":{reasoning:!0,thinkingFormat:"claude-adaptive",thinkingCanDisable:!1,contextWindow:2e5,maxOutput:128e3},"MiniMax-M2.7-highspeed":{reasoning:!0,thinkingFormat:"claude-adaptive",thinkingCanDisable:!1,contextWindow:2e5,maxOutput:128e3}}};p["qoder-cn"]=p.qoder,p.cx=p.codex,p.dv=p["devin-cli"],p.devin=p["devin-cli"],p["minimax-code-global"]=p["minimax-code"];let h=[{pattern:"*claude*opus-5*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3}},{pattern:"*claude*sonnet-5*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive",contextWindow:1e6,maxOutput:128e3}},{pattern:"*claude*opus-4.6*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive"}},{pattern:"*claude*opus-4.7*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive"}},{pattern:"*claude*opus-4.8*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive"}},{pattern:"*claude*sonnet-4.6*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive"}},{pattern:"*claude*sonnet-4.7*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-adaptive"}},{pattern:"*claude*haiku*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-budget"}},{pattern:"*claude*opus*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-budget"}},{pattern:"*claude*sonnet*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-budget"}},{pattern:"*claude*fable*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-budget",contextWindow:1e6,maxOutput:128e3}},{pattern:"*claude*mythos*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-budget",contextWindow:1e6,maxOutput:128e3}},{pattern:"*claude-3*",caps:{vision:!0}},{pattern:"*claude*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"claude-budget"}},{pattern:"*gemini*image*",caps:{vision:!0,imageOutput:!0,contextWindow:1048576}},{pattern:"*gemini-3.8*",caps:{vision:!0,audioInput:!0,videoInput:!0,reasoning:!0,search:!0,thinkingFormat:"gemini-level",thinkingCanDisable:!1,contextWindow:1048576,maxOutput:65536}},{pattern:"*gemini-3.7*",caps:{vision:!0,audioInput:!0,videoInput:!0,reasoning:!0,search:!0,thinkingFormat:"gemini-level",thinkingCanDisable:!1,contextWindow:1048576,maxOutput:65536}},{pattern:"*gemini-3*pro*",caps:{vision:!0,audioInput:!0,videoInput:!0,reasoning:!0,search:!0,thinkingFormat:"gemini-level",thinkingCanDisable:!1,contextWindow:1048576,maxOutput:65535}},{pattern:"*gemini-3*",caps:{vision:!0,audioInput:!0,videoInput:!0,reasoning:!0,search:!0,thinkingFormat:"gemini-level",thinkingCanDisable:!1,contextWindow:1048576,maxOutput:65536}},{pattern:"*gemini-2.5*",caps:{vision:!0,audioInput:!0,videoInput:!0,reasoning:!0,search:!0,thinkingFormat:"gemini-budget",thinkingRange:{min:0,max:24576},contextWindow:1048576,maxOutput:65536}},{pattern:"*gemini-2*",caps:{vision:!0,audioInput:!0,videoInput:!0,search:!0,contextWindow:1048576,maxOutput:65536}},{pattern:"*gemini*",caps:{vision:!0,search:!0,contextWindow:1048576}},{pattern:"*gemma*",caps:{vision:!0,contextWindow:128e3}},{pattern:"*nanobanana*",caps:{vision:!0,imageOutput:!0}},{pattern:"*gpt-6*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"openai",contextWindow:105e4,maxOutput:128e3}},{pattern:"*gpt-5*image*",caps:{imageOutput:!0}},{pattern:"*gpt-5*codex*",caps:{reasoning:!0,search:!0,thinkingFormat:"openai",contextWindow:4e5,maxOutput:128e3}},{pattern:"*gpt-5.4-mini*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"openai",contextWindow:4e5,maxOutput:128e3}},{pattern:"*gpt-5.4-nano*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"openai",contextWindow:4e5,maxOutput:128e3}},{pattern:"*gpt-5.4*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"openai",contextWindow:105e4,maxOutput:128e3}},{pattern:"*gpt-5.5*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"openai",contextWindow:105e4,maxOutput:128e3}},{pattern:"*gpt-5.6*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"openai",contextWindow:105e4,maxOutput:128e3}},{pattern:"*gpt-5*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"openai",contextWindow:4e5,maxOutput:128e3}},{pattern:"*gpt-4o*",caps:{vision:!0,search:!0,contextWindow:128e3,maxOutput:16384}},{pattern:"*gpt-4.1*",caps:{vision:!0,contextWindow:1e6,maxOutput:32768}},{pattern:"*gpt-4-turbo*",caps:{vision:!0,contextWindow:128e3}},{pattern:"*gpt-4*",caps:{contextWindow:128e3}},{pattern:"*gpt-3.5*",caps:{contextWindow:16385,maxOutput:4096}},{pattern:"*gpt-oss*",caps:{reasoning:!0,thinkingFormat:"openai",contextWindow:128e3}},{pattern:"*o1-mini*",caps:{reasoning:!0,thinkingFormat:"openai",contextWindow:128e3}},{pattern:"*o1*",caps:{vision:!0,reasoning:!0,thinkingFormat:"openai",contextWindow:2e5,maxOutput:1e5}},{pattern:"*o3*",caps:{vision:!0,reasoning:!0,thinkingFormat:"openai",contextWindow:2e5,maxOutput:1e5}},{pattern:"*o4*",caps:{vision:!0,reasoning:!0,thinkingFormat:"openai",contextWindow:2e5,maxOutput:1e5}},{pattern:"*grok*image*",caps:{imageOutput:!0}},{pattern:"*grok-code*",caps:{reasoning:!0,thinkingFormat:"openai",contextWindow:256e3}},{pattern:"*grok-4.7*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"openai",contextWindow:5e5,maxOutput:5e5}},{pattern:"*grok-4.6*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"openai",contextWindow:5e5,maxOutput:5e5}},{pattern:"*grok-4.5*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"openai",contextWindow:5e5,maxOutput:64e3}},{pattern:"*grok-4*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"openai",contextWindow:256e3}},{pattern:"*grok-3*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"openai",contextWindow:131072}},{pattern:"*grok*",caps:{vision:!0,reasoning:!0,search:!0,thinkingFormat:"openai",contextWindow:256e3}},{pattern:"*qwen*vl*",caps:{vision:!0,reasoning:!0,thinkingFormat:"qwen",contextWindow:262144}},{pattern:"*qwen*omni*",caps:{vision:!0,audioInput:!0,videoInput:!0,reasoning:!0,thinkingFormat:"qwen",contextWindow:262144,maxOutput:65536}},{pattern:"*qwen*coder*",caps:{reasoning:!0,thinkingFormat:"qwen",contextWindow:1e6}},{pattern:"*qwen*max*",caps:{vision:!0,reasoning:!0,thinkingFormat:"qwen",contextWindow:1e6,maxOutput:65536}},{pattern:"*qwen3.5*",caps:{vision:!0,videoInput:!0,reasoning:!0,thinkingFormat:"qwen",contextWindow:1e6,maxOutput:65536}},{pattern:"*qwen3.6*",caps:{vision:!0,videoInput:!0,reasoning:!0,thinkingFormat:"qwen",contextWindow:1e6,maxOutput:65536}},{pattern:"*qwen3.7*",caps:{vision:!0,videoInput:!0,reasoning:!0,thinkingFormat:"qwen",contextWindow:1e6,maxOutput:65536}},{pattern:"*qwen*plus*",caps:{vision:!0,reasoning:!0,thinkingFormat:"qwen",contextWindow:1e6,maxOutput:65536}},{pattern:"*qwen*235b*",caps:{reasoning:!0,thinkingFormat:"qwen",contextWindow:262144}},{pattern:"*qwq*",caps:{reasoning:!0,thinkingFormat:"qwen",thinkingCanDisable:!1,contextWindow:131072}},{pattern:"*qwen*",caps:{reasoning:!0,thinkingFormat:"qwen",contextWindow:262144}},{pattern:"*kimi*k3*",caps:{vision:!0,videoInput:!0,reasoning:!0,thinkingFormat:"kimi",thinkingCanDisable:!1,contextWindow:1048576,maxOutput:131072}},{pattern:"*kimi*for-coding*",caps:{vision:!0,videoInput:!0,reasoning:!0,thinkingFormat:"kimi",thinkingCanDisable:!1,contextWindow:262144,maxOutput:65536}},{pattern:"*kimi*k2.7*code*",caps:{vision:!0,videoInput:!0,reasoning:!0,thinkingFormat:"kimi",thinkingCanDisable:!1,contextWindow:262144,maxOutput:65536}},{pattern:"*kimi*k2*",caps:{vision:!0,reasoning:!0,thinkingFormat:"kimi",contextWindow:262144,maxOutput:262144}},{pattern:"*kimi*",caps:{reasoning:!0,thinkingFormat:"kimi",contextWindow:262144}},{pattern:"*glm-5.3*",caps:{reasoning:!0,thinkingFormat:"zai",thinkingEffortSupported:!0,thinkingCanDisable:!1,contextWindow:1e6,maxOutput:128e3}},{pattern:"*glm-5.2*",caps:{reasoning:!0,thinkingFormat:"zai",thinkingEffortSupported:!0,contextWindow:1e6,maxOutput:128e3}},{pattern:"*glm-5*",caps:{reasoning:!0,thinkingFormat:"zai",contextWindow:2e5,maxOutput:128e3}},{pattern:"*glm-4.7*",caps:{reasoning:!0,thinkingFormat:"zai",contextWindow:2e5,maxOutput:128e3}},{pattern:"*glm-4*",caps:{reasoning:!0,thinkingFormat:"zai",contextWindow:2e5}},{pattern:"*glm*",caps:{reasoning:!0,thinkingFormat:"zai",contextWindow:2e5}},{pattern:"*deepseek-v4.*",caps:{vision:!0,reasoning:!0,thinkingFormat:"deepseek",thinkingEffortSupported:!0,contextWindow:1e6,maxOutput:128e3}},{pattern:"*deepseek-v4*",caps:{reasoning:!0,thinkingFormat:"deepseek",thinkingEffortSupported:!0,contextWindow:1e6,maxOutput:384e3}},{pattern:"*reasoner*",caps:{reasoning:!0,thinkingFormat:"deepseek",thinkingCanDisable:!1,contextWindow:128e3}},{pattern:"*deepseek-r*",caps:{reasoning:!0,thinkingFormat:"deepseek",thinkingCanDisable:!1,contextWindow:128e3}},{pattern:"*deepseek-chat*",caps:{contextWindow:128e3}},{pattern:"*deepseek*",caps:{reasoning:!0,thinkingFormat:"deepseek",contextWindow:128e3}},{pattern:"*minimax*image*",caps:{imageOutput:!0}},{pattern:"*minimax-m3*",caps:{vision:!0,reasoning:!0,thinkingFormat:"minimax",contextWindow:1e6,maxOutput:131072}},{pattern:"*minimax-m2.7*",caps:{vision:!0,reasoning:!0,thinkingFormat:"minimax",thinkingCanDisable:!1,contextWindow:204800,maxOutput:131072}},{pattern:"*minimax-m2.5*",caps:{vision:!0,reasoning:!0,thinkingFormat:"minimax",thinkingCanDisable:!1,contextWindow:204800,maxOutput:131072}},{pattern:"*minimax*",caps:{reasoning:!0,thinkingFormat:"minimax",thinkingCanDisable:!1,contextWindow:2e5,maxOutput:131072}},{pattern:"*mimo*v2.6*",caps:{vision:!0,audioInput:!0,videoInput:!0,reasoning:!0,thinkingFormat:"deepseek",thinkingCanDisable:!1,contextWindow:1048576,maxOutput:131072}},{pattern:"*mimo*v2.5*",caps:{vision:!0,audioInput:!0,videoInput:!0,reasoning:!0,thinkingFormat:"deepseek",thinkingCanDisable:!1,contextWindow:1048576,maxOutput:131072}},{pattern:"*mimo*omni*",caps:{vision:!0,audioInput:!0,reasoning:!0,thinkingFormat:"deepseek",thinkingCanDisable:!1,contextWindow:262144,maxOutput:131072}},{pattern:"*mimo*",caps:{vision:!0,reasoning:!0,thinkingFormat:"deepseek",thinkingCanDisable:!1,contextWindow:262144,maxOutput:131072}},{pattern:"*llama-4*",caps:{vision:!0,contextWindow:1e6}},{pattern:"*llama*",caps:{contextWindow:128e3}},{pattern:"*codestral*",caps:{contextWindow:256e3}},{pattern:"*mistral-large*",caps:{vision:!0,contextWindow:256e3}},{pattern:"*mistral*",caps:{contextWindow:128e3}},{pattern:"*command-a-vision*",caps:{vision:!0,contextWindow:128e3}},{pattern:"*command*",caps:{contextWindow:128e3}},{pattern:"*sonar*",caps:{search:!0,contextWindow:128e3}},{pattern:"*pplx*",caps:{search:!0,contextWindow:128e3}},{pattern:"*perplexity*",caps:{search:!0,contextWindow:128e3}},{pattern:"*laguna-s-2.1*free*",caps:{reasoning:!0,thinkingFormat:"openai",contextWindow:2e5,maxOutput:32e3}},{pattern:"*laguna-s-2.1*",caps:{reasoning:!0,thinkingFormat:"openai",contextWindow:1e6,maxOutput:32e3}},{pattern:"*laguna*",caps:{reasoning:!0,thinkingFormat:"openai",contextWindow:2e5,maxOutput:32e3}},{pattern:"*muse*spark*",caps:{vision:!0,reasoning:!0,thinkingFormat:"openai",contextWindow:1048576,maxOutput:131072}},{pattern:"*hunyuan*",caps:{reasoning:!0,thinkingFormat:"hunyuan",contextWindow:262144,maxOutput:262144}},{pattern:"hy3*",caps:{reasoning:!0,thinkingFormat:"hunyuan",contextWindow:262144,maxOutput:262144}},{pattern:"*step-*",caps:{reasoning:!0,thinkingFormat:"step",contextWindow:128e3}},{pattern:"*nemotron*",caps:{reasoning:!0,contextWindow:128e3}},{pattern:"*ling-*",caps:{reasoning:!0,contextWindow:128e3}}],g=["vision","pdf","audioInput","videoInput"];function f(e,t,a){let n={...o,...e},i="u"<typeof globalThis?null:globalThis.__9rCatalogSource||null;if(i){let e=i.getModalities(t,a);if(e)for(let t of g)!0===e[t]&&(n[t]=!0);let r=i.getLimits(t,a);r&&(r.contextWindow>0&&(n.contextWindow=r.contextWindow),r.maxOutput>0&&(n.maxOutput=r.maxOutput))}return!n.vision&&function(e){if(!e)return!1;let t=String(e).toLowerCase();return!r.test(t)&&s.test(t)}(a)&&(n.vision=!0),n}let b=new Set(["deepseek/deepseek-v4-pro","deepseek/deepseek-v4-flash","deepseek/deepseek-v4-flash-fast","zai-org/glm-5.3","zai-org/glm-5.2","zai-org/glm-5.2-fast","zai-org/glm-5.1","zai-org/glm-5","minimaxai/minimax-m2.7","minimax/minimax-m2.7-free","minimaxai/minimax-m2.5","xiaomi/mimo-v2.5-pro","qwen/qwen3.6-max-preview","qwen/qwen3.7-max","meituan/longcat-2.0:free","stepfun/step-3.5-flash","tencent/hy4-preview","tencent/hy3","tencent/hy3-paid","nvidia/nemotron-3-ultra-550b-a55b","poolside/laguna-s-2.1-free","inclusionai/ling-3.0-flash-free","inclusionai/ling-3.0-flash-sante:free"]);function v(e,t){if(!t)return{...o};let a=t.includes("/")?t.split("/").pop():t;if("commandcode"===e||"cmc"===e){let e=p.commandcode;return e?.[t]?{...o,...e[t]}:e?.[a]?{...o,...e[a]}:{...o,reasoning:!0,thinkingFormat:"commandcode",thinkingEffortSupported:!0,vision:!function(e){let t=String(e||"").toLowerCase();if(b.has(t))return!0;for(let e of b){let a=e.includes("/")?e.slice(e.lastIndexOf("/")+1):e;if(t===a||t.endsWith("/"+a))return!0}return!1}(t),contextWindow:1e6,maxOutput:384e3}}if(e){let n=p[e];if(n?.[t])return{...o,...n[t]};if(n?.[a])return{...o,...n[a]}}if(l[a])return f(l[a],e,t);if(l[t])return f(l[t],e,t);for(let{pattern:i,caps:r}of h)if((0,n.gH)(i,a)||(0,n.gH)(i,t))return f(r,e,t);return f(null,e,t)}},72767:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(1934),i=a(90620);let r=null,s=(0,n.v)((e,t)=>({settings:null,loading:!1,error:null,lastFetched:0,invalidate:()=>e({lastFetched:0}),fetchSettings:async({force:a=!1}={})=>{let{lastFetched:n,settings:s}=t();return!a&&s&&Date.now()-n<i.U5?s:r||(e({loading:!0,error:null}),r=(async()=>{try{let t=await fetch("/api/settings"),a=await t.json();if(t.ok)return e({settings:a,loading:!1,lastFetched:Date.now()}),a;e({error:a.error,loading:!1})}catch(t){e({error:"Failed to fetch settings",loading:!1})}finally{r=null}return null})())},patchSettings:async a=>{try{let n=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(!n.ok)return null;let i=await n.json();return e({settings:{...t().settings,...i},lastFetched:Date.now()}),i}catch{return null}}}))},72908:(e,t,a)=>{a.d(t,{default:()=>b});var n=a(95155),i=a(12115),r=a(14051),s=a.n(r),o=a(81127),l=a(57250),d=a(29366),c=a(929),u=a(28777),m=a(81231),x=a(88105);let p=[...Object.keys(x.zN),...Object.keys(x.IS),...Object.keys(x.nJ),...Object.keys(x.fg)],h=Object.keys(x.IS).filter(e=>x.IS[e].noAuth),g=["cursor","clinepass","zed"];function f(e,t,a){let[n,r]=(0,i.useState)([]),s=(t??[]).join("|");return(0,i.useEffect)(()=>{let t=s?s.split("|"):[];if(!e||0===t.length)return void r([]);let n=!1;return Promise.all(t.map(async e=>{let t=await fetch(`/api/providers/${e}/models`,{cache:"no-store"});if(!t.ok)return[];let a=await t.json();return Array.isArray(a.models)?a.models:[]})).then(e=>{if(n)return;let t=new Set;r(e.flat().filter(e=>!(!e?.id||t.has(e.id))&&(t.add(e.id),!0)))}).catch(e=>{console.warn(`Unable to load ${a} models for selector:`,e),n||r([])}),()=>{n=!0}},[e,s,a]),n}function b({isOpen:e,onClose:t,onSelect:a,onDeselect:r,selectedModel:s,activeProviders:v=[],title:k="Select Model",modelAliases:y={},kindFilter:j=null,capFilter:w=null,addedModelValues:N=[],closeOnSelect:C=!0}){let S=(0,i.useMemo)(()=>j?v.filter(e=>{let t=x.Q2[e.provider];return(t?.serviceKinds||["llm"]).includes(j)}):v,[v,j]),{getCaps:O}=(0,c.yU)(),[W,F]=(0,i.useState)(""),[I,T]=(0,i.useState)([]),[P,E]=(0,i.useState)([]),[A,_]=(0,i.useState)([]),[$,z]=(0,i.useState)({}),D=(0,i.useMemo)(()=>{let e=Object.fromEntries(g.map(e=>[e,[]]));for(let t of v)t?.id&&Object.prototype.hasOwnProperty.call(e,t.provider)&&e[t.provider].push(t.id);return e},[v]),L=D.cursor,R=D.clinepass,q=D.zed,U=f(e,L,"Cursor"),M=f(e,R,"ClinePass"),K=f(e,q,"Zed"),V=async()=>{try{let e=await fetch("/api/combos");if(!e.ok)throw Error(`Failed to fetch combos: ${e.status}`);let t=await e.json();T(t.combos||[])}catch(e){console.error("Error fetching combos:",e),T([])}};(0,i.useEffect)(()=>{e&&V()},[e]);let B=async()=>{try{let e=await fetch("/api/provider-nodes");if(!e.ok)throw Error(`Failed to fetch provider nodes: ${e.status}`);let t=await e.json();E(t.nodes||[])}catch(e){console.error("Error fetching provider nodes:",e),E([])}};(0,i.useEffect)(()=>{e&&B()},[e]);let J=async()=>{try{let e=await fetch("/api/models/custom");if(!e.ok)throw Error(`Failed to fetch custom models: ${e.status}`);let t=await e.json();_(t.models||[])}catch(e){console.error("Error fetching custom models:",e),_([])}};(0,i.useEffect)(()=>{e&&J()},[e]);let G=async()=>{try{let e=await fetch("/api/models/disabled");if(!e.ok)throw Error(`Failed to fetch disabled models: ${e.status}`);let t=await e.json();z(t.disabled||{})}catch(e){console.error("Error fetching disabled models:",e),z({})}};(0,i.useEffect)(()=>{e&&G()},[e]);let Q=(0,i.useMemo)(()=>({...x.zN,...x.IS,...x.nJ,...x.fg}),[]),H=(0,i.useMemo)(()=>{let e={},t=new Set(["webSearch","webFetch"]),a=new Set(["image","tts","stt","embedding","imageToText"]),n=new Set(["tts","image","webFetch"]);return[...new Set([...S.map(e=>e.provider),...j?h.filter(e=>(x.Q2[e]?.serviceKinds||["llm"]).includes(j)):h,...j?[]:(0,m.B)({customModels:A,providerNodes:P,isCompatibleAlias:e=>(0,x.mq)(e)||(0,x.gb)(e)})])].sort((e,t)=>{let a=p.indexOf(e),n=p.indexOf(t);return(-1===a?999:a)-(-1===n?999:n)}).forEach(i=>{let r=(0,x.wG)(i),s=Q[i]||{name:i,color:"#666"},o=(0,x.mq)(i)||(0,x.gb)(i);if(j&&t.has(j)){e[i]={name:s.name,alias:r,color:s.color,models:[{id:i,name:s.name,value:i}]};return}if(s.passthroughModels){let t=Object.entries(y).filter(([,e])=>e.startsWith(`${r}/`)).map(([e,t])=>({id:t.replace(`${r}/`,""),name:e,value:t})),o=A.filter(e=>e.providerAlias===r).map(e=>({id:e.id,name:e.name||e.id,value:`${r}/${e.id}`,kind:(0,u.CP)(e),isCustom:!0})),l=t;if(j&&a.has(j)){let e=o.filter(e=>(0,u.CP)(e)===j);0===(l=[...e,...(0,u.KC)(i).filter(e=>(0,u.CP)(e)===j).map(e=>({id:e.id,name:e.name,value:`${r}/${e.id}`,kind:(0,u.CP)(e)})).filter(t=>!e.some(e=>e.value===t.value))]).length&&n.has(j)&&(s.serviceKinds||["llm"]).includes(j)&&(l=[{id:i,name:s.name,value:r}])}else{let e=o.filter(e=>!(0,u.CP)(e)||"llm"===(0,u.CP)(e)),a=new Set([...t,...e].map(e=>e.value)),n=(0,u.KC)(i).filter(e=>!(0,u.CP)(e)||"llm"===(0,u.CP)(e)).map(e=>({id:e.id,name:e.name,value:`${r}/${e.id}`,kind:(0,u.CP)(e)})).filter(e=>!a.has(e.value));l=[...e,...t.filter(t=>!e.some(e=>e.value===t.value)),...n]}if(l.length>0){let t=P.find(e=>e.id===i),a=t?.name||s.name;e[i]={name:a,alias:r,color:s.color,models:l}}}else if(o){if(j&&a.has(j))return;let t=v.find(e=>e.provider===i),n=P.find(e=>e.id===i),r=n?.name||t?.name||s.name,o=t?.providerSpecificData?.prefix||n?.prefix||i,l=Object.entries(y).filter(([,e])=>e.startsWith(`${i}/`)).map(([e,t])=>({id:t.replace(`${i}/`,""),name:e,value:`${o}/${t.replace(`${i}/`,"")}`})),d=A.filter(e=>e.providerAlias===i).map(e=>({id:e.id,name:e.name||e.id,value:`${o}/${e.id}`,isCustom:!0})),c=new Set(l.map(e=>e.value)),u=[...l,...d.filter(e=>!c.has(e.value))],m=u.length>0?u:[{id:`__placeholder__${i}`,name:`${o}/model-id`,value:`${o}/model-id`,isPlaceholder:!0}];e[i]={name:r,alias:o,color:s.color,models:m,isCustom:!0,hasModels:u.length>0}}else{var l;let t="cursor"===i?U:"clinepass"===i?M:"zed"===i?K:[],o=t.length>0?t:(0,u.KC)(i),d=new Set(o.map(e=>e.id)),c=o.length>0,m=Object.entries(y).filter(([e,t])=>t.startsWith(`${r}/`)&&(!c||e===t.replace(`${r}/`,""))&&!d.has(t.replace(`${r}/`,""))).map(([e,t])=>({id:t.replace(`${r}/`,""),name:e,value:t,isCustom:!0})),x=new Set(m.map(e=>e.id)),p=A.filter(e=>e.providerAlias===r&&!d.has(e.id)&&!x.has(e.id)).map(e=>({id:e.id,name:e.name||e.id,value:`${r}/${e.id}`,isCustom:!0})),h=[...o.map(e=>({id:e.id,name:e.name,value:`${r}/${e.id}`,kind:(0,u.CP)(e)})),...m,...p],g=new Set,f=(l=h.filter(e=>!g.has(e.value)&&(g.add(e.value),!0)),j?a.has(j)?l.filter(e=>e.isPlaceholder||(0,u.CP)(e)===j):l:l.filter(e=>e.isPlaceholder||e.isCustom||!(0,u.CP)(e)||"llm"===(0,u.CP)(e)));0===f.length&&j&&n.has(j)&&(s.serviceKinds||["llm"]).includes(j)&&(f=[{id:i,name:s.name,value:r}]),f.length>0&&(e[i]={name:s.name,alias:r,color:s.color,models:f})}}),Object.entries(e).forEach(([t,a])=>{let n=new Set([...$[(0,x.wG)(t)]||[],...$[t]||[]]);0!==n.size&&(a.models=a.models.filter(e=>!n.has(e.id)),0===a.models.length&&delete e[t])}),e},[S,y,Q,P,A,$,j,v,U,M]),Y=(0,i.useMemo)(()=>{if(j||w)return[];if(!W.trim())return I;let e=W.toLowerCase();return I.filter(t=>t.name.toLowerCase().includes(e))},[I,W,j]),Z=(0,i.useMemo)(()=>{let e=W.trim().toLowerCase(),t={};return Object.entries(H).forEach(([a,n])=>{var i;let r=n.models;if(!w||0!==(r=r.filter(e=>O(e.value)?.[w]===!0)).length){if(e){let t=n.name.toLowerCase().includes(e);if(0===(r=r.filter(t=>t.name.toLowerCase().includes(e)||t.id.toLowerCase().includes(e))).length&&!t)return}t[a]={...n,models:[...(i=r).filter(e=>N.includes(e.value)).sort((e,t)=>e.name.localeCompare(t.name)),...i.filter(e=>!N.includes(e.value)).sort((e,t)=>e.name.localeCompare(t.name))]}}}),t},[H,W,N]),X=e=>{let n=e?.value||e?.name||e;N.includes(n)&&r?r(e):a(e),C&&(t(),F(""))};return(0,n.jsxs)(o.default,{isOpen:e,onClose:()=>{t(),F("")},title:k,size:"md",className:"p-4!",footer:null,children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 mb-3 px-2.5 py-2 bg-primary/8 border border-primary/20 rounded-lg text-xs text-text-muted",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-primary shrink-0",style:{fontSize:"14px"},children:"info"}),(0,n.jsx)("span",{children:"Click to add, click again to remove. Changes are saved automatically."})]}),(0,n.jsx)("div",{className:"mb-3",children:(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("span",{className:"material-symbols-outlined absolute left-2.5 top-1/2 -translate-y-1/2 text-text-muted text-[16px]",children:"search"}),(0,n.jsx)("input",{type:"text",placeholder:"Search...",value:W,onChange:e=>F(e.target.value),className:"w-full pl-8 pr-3 py-1.5 bg-surface border border-border rounded text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"})]})}),(0,n.jsxs)("div",{className:"max-h-[400px] overflow-y-auto space-y-3",children:[Y.length>0&&(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"flex items-center gap-1.5 mb-1.5 sticky top-0 bg-surface py-0.5",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-primary text-[14px]",children:"layers"}),(0,n.jsx)("span",{className:"text-xs font-medium text-primary",children:"Combos"}),(0,n.jsxs)("span",{className:"text-[10px] text-text-muted",children:["(",Y.length,")"]})]}),(0,n.jsx)("div",{className:"flex flex-wrap gap-1.5",children:Y.map(e=>{let t=s===e.name;return(0,n.jsxs)("button",{onClick:()=>X({id:e.name,name:e.name,value:e.name}),className:`
|
|
2
|
-
px-2 py-1 rounded-xl text-xs font-medium transition-all border hover:cursor-pointer flex items-center gap-1
|
|
3
|
-
${t?"bg-primary text-white border-primary":N.includes(e.name)?"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"}
|
|
4
|
-
`,children:[N.includes(e.name)&&(0,n.jsx)("span",{className:"material-symbols-outlined leading-none",style:{fontSize:"10px"},children:"check"}),e.name]},e.id)})})]}),Object.entries(Z).map(([e,t])=>(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"flex items-center gap-1.5 mb-1.5 sticky top-0 bg-surface py-0.5",children:[(0,n.jsx)(l.A,{src:`/providers/${e}.png`,alt:t.name,size:14,fallbackText:(t.name||e).slice(0,2).toUpperCase(),fallbackColor:t.color}),(0,n.jsx)("span",{className:"text-xs font-medium text-primary",children:t.name}),(0,n.jsxs)("span",{className:"text-[10px] text-text-muted",children:["(",t.models.length,")"]})]}),(0,n.jsx)("div",{className:"flex flex-wrap gap-1.5",children:t.models.map(e=>{let t=s===e.value,a=e.isPlaceholder;return(0,n.jsx)("button",{onClick:()=>X(e),title:a?"Select to pre-fill, then edit model ID in the input":void 0,className:`
|
|
5
|
-
px-2 py-1 rounded-xl text-xs font-medium transition-all border hover:cursor-pointer
|
|
6
|
-
${a?"border-dashed border-border text-text-muted hover:border-primary/50 hover:text-primary bg-surface italic":t?"bg-primary text-white border-primary":N.includes(e.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,n.jsxs)("span",{className:"flex items-center gap-1",children:[N.includes(e.value)&&!a&&(0,n.jsx)("span",{className:"material-symbols-outlined leading-none",style:{fontSize:"10px"},children:"check"}),a?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-[11px]",children:"edit"}),e.name]}):e.isCustom?(0,n.jsxs)(n.Fragment,{children:[e.name,(0,n.jsx)("span",{className:"text-[9px] opacity-60 font-normal",children:"custom"}),(0,n.jsx)(d.default,{caps:O(e.value)})]}):(0,n.jsxs)(n.Fragment,{children:[e.name,(0,n.jsx)(d.default,{caps:O(e.value)})]})]})},e.value)})})]},e)),0===Object.keys(Z).length&&0===Y.length&&(0,n.jsxs)("div",{className:"text-center py-4 text-text-muted",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-2xl mb-1 block",children:"search_off"}),(0,n.jsx)("p",{className:"text-xs",children:"No models found"})]})]})]})}b.propTypes={isOpen:s().bool.isRequired,onClose:s().func.isRequired,onSelect:s().func.isRequired,onDeselect:s().func,selectedModel:s().string,activeProviders:s().arrayOf(s().shape({provider:s().string.isRequired})),title:s().string,modelAliases:s().object,kindFilter:s().string,addedModelValues:s().arrayOf(s().string),closeOnSelect:s().bool}},73006:(e,t,a)=>{a.d(t,{FE:()=>p,Tl:()=>d,kk:()=>c,oQ:()=>u,wn:()=>h});var n=a(93308);let i={},r=n.Xn,s=[];function o(){if("u"<typeof document)return n.Xn;let e=document.cookie.split(";").find(e=>e.trim().startsWith(`${n.CL}=`)),t=e?decodeURIComponent(e.split("=")[1]):n.Xn;return(0,n.QC)(t)}async function l(e){if("en"===e){i={};return}try{let t=await fetch(`/i18n/literals/${e}.json`);i=await t.json()}catch(e){console.error("Failed to load translations:",e),i={}}}function d(e){if(!e||"string"!=typeof e)return e;let t=e.trim();return t&&"en"!==r&&i[t]||e}function c(){return r}function u(e){return s.push(e),()=>{s=s.filter(t=>t!==e)}}function m(e){if(!e.nodeValue||!e.nodeValue.trim())return;let t=e.parentElement;if(!t)return;let a=t;for(;a;){if(a.hasAttribute&&a.hasAttribute("data-i18n-skip"))return;a=a.parentElement}if(["script","style","code","pre","colgroup","table","thead","tbody","tfoot","tr","select","datalist","optgroup"].includes(t.tagName?.toLowerCase()))return;e._originalText||(e._originalText=e.nodeValue);let n=d(e._originalText);n!==e.nodeValue&&(e.nodeValue=n)}function x(e){let t;if(!e)return;let a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null,!1),n=[];for(;t=a.nextNode();)n.push(t);n.forEach(m)}async function p(){r=o(),await l(r),x(document.body),new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{e.nodeType===Node.ELEMENT_NODE?x(e):e.nodeType===Node.TEXT_NODE&&m(e)})})}).observe(document.body,{childList:!0,subtree:!0})}async function h(){r=o(),await l(r),s.forEach(e=>e()),x(document.body)}},73579:(e,t,a)=>{a.d(t,{default:()=>x});var n=a(95155),i=a(12115),r=a(14051),s=a.n(r),o=a(81127),l=a(11910),d=a(92542),c=a(56061),u=a(88105),m=a(98);function x({isOpen:e,connection:t,proxyPools:a,onSave:r,onClose:s}){let[p,h]=(0,i.useState)({name:"",priority:1,apiKey:""}),[g,f]=(0,i.useState)({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),[b,v]=(0,i.useState)({accountId:""}),[k,y]=(0,i.useState)({profile:"",region:"",accessKeyId:"",sessionToken:""}),[j,w]=(0,i.useState)(!1),[N,C]=(0,i.useState)(""),[S,O]=(0,i.useState)(!1),[W,F]=(0,i.useState)(null),[I,T]=(0,i.useState)(!1),[P,E]=(0,i.useState)(null),[A,_]=(0,i.useState)(!1);(0,i.useEffect)(()=>{if(t){if(h({name:t.name||"",priority:t.priority||1,apiKey:""}),"azure"===t.provider&&t.providerSpecificData&&f({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||""}),u.Q2?.[t.provider]?.credentialForm==="aws"){let e=t.providerSpecificData||{};y({profile:e.profile||"",region:e.region||"",accessKeyId:e.accessKeyId||"",sessionToken:""}),w(!1)}let e=u.Q2?.[t.provider];e?.regions&&C(t.providerSpecificData?.region||e.defaultRegion||e.regions[0]?.id||""),F(null),E(null)}},[t,e]);let $=t?.authType==="oauth",z=t?.provider==="azure",D=t?.provider==="cloudflare-ai",L=u.Q2?.[t?.provider]?.credentialForm==="aws",R=!!t&&((0,u.mq)(t.provider)||(0,u.gb)(t.provider)),q=t&&u.Q2?.[t.provider]?.regions||null,U=()=>{if(q&&N)return{...t?.providerSpecificData||{},region:N}},M=()=>({profile:k.profile.trim(),region:k.region.trim(),accessKeyId:k.accessKeyId.trim(),sessionToken:j?null:k.sessionToken.trim()}),K=async()=>{if(t?.provider){O(!0),F(null);try{let e=await fetch(`/api/providers/${t.id}/test`,{method:"POST"}),a=await e.json();F(a.valid?"success":"failed")}catch{F("failed")}finally{O(!1)}}},V=async()=>{if(t?.provider&&p.apiKey){T(!0),E(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,...z?{providerSpecificData:g}:{},...D?{providerSpecificData:b}:{},...L?{providerSpecificData:M()}:{},...q?{providerSpecificData:U()}:{}})}),a=await e.json();E(a.valid?"success":"failed")}catch{E("failed")}finally{T(!1)}}},B=async()=>{if(t){_(!0);try{let e={name:p.name,priority:p.priority};if(!$&&p.apiKey){e.apiKey=p.apiKey;let a="success"===P;if(!a)try{T(!0),E(null);let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t.provider,apiKey:p.apiKey,...z?{providerSpecificData:g}:{},...D?{providerSpecificData:b}:{},...L?{providerSpecificData:M()}:{},...q?{providerSpecificData:U()}:{}})});a=!!(await e.json()).valid,E(a?"success":"failed")}catch{E("failed")}finally{T(!1)}a&&(e.testStatus="active",e.lastError=null,e.lastErrorAt=null)}z&&(e.providerSpecificData={azureEndpoint:g.azureEndpoint,apiVersion:g.apiVersion,deployment:g.deployment,organization:g.organization}),D&&(e.providerSpecificData={accountId:b.accountId}),L&&(e.providerSpecificData=M()),q&&N&&(e.providerSpecificData=U()),await r(e)}finally{_(!1)}}};return t?(0,n.jsx)(o.default,{isOpen:e,title:"Edit Connection",onClose:s,children:(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsx)(l.default,{label:"Name",value:p.name,onChange:e=>h({...p,name:e.target.value}),placeholder:$?"Account name":"Production Key"}),$&&t.email&&(0,n.jsxs)("div",{className:"bg-sidebar/50 p-3 rounded-lg",children:[(0,n.jsx)("p",{className:"text-sm text-text-muted mb-1",children:"Email"}),(0,n.jsx)("p",{className:"font-medium",children:t.email})]}),(0,n.jsx)(l.default,{label:"Priority",type:"number",value:p.priority,onChange:e=>h({...p,priority:Number.parseInt(e.target.value,10)||1})}),!$&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(l.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,n.jsx)("div",{className:"pt-6",children:(0,n.jsx)(d.default,{onClick:V,disabled:!p.apiKey||I||A,variant:"secondary",children:I?"Checking...":"Check"})})]}),P&&(0,n.jsx)(c.default,{variant:"success"===P?"success":"error",children:"success"===P?"Valid":"Invalid"})]}),z&&(0,n.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,n.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Azure OpenAI Configuration"}),(0,n.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,n.jsx)(l.default,{label:"Azure Endpoint",value:g.azureEndpoint,onChange:e=>f({...g,azureEndpoint:e.target.value}),placeholder:"https://your-resource.openai.azure.com",hint:"Your Azure OpenAI resource endpoint URL"}),(0,n.jsx)(l.default,{label:"Deployment Name",value:g.deployment,onChange:e=>f({...g,deployment:e.target.value}),placeholder:"gpt-4",hint:"The deployment name in your Azure resource"}),(0,n.jsx)(l.default,{label:"API Version",value:g.apiVersion,onChange:e=>f({...g,apiVersion:e.target.value}),placeholder:"2024-10-01-preview",hint:"Azure OpenAI API version to use"}),(0,n.jsx)(l.default,{label:"Organization",value:g.organization,onChange:e=>f({...g,organization:e.target.value}),placeholder:"Organization ID",hint:"Required for billing"})]})]}),L&&(0,n.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,n.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"AWS Bedrock Credentials"}),(0,n.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,n.jsx)(l.default,{label:"AWS Profile (SSO — recommended)",value:k.profile,onChange:e=>y({...k,profile:e.target.value}),placeholder:"my-sso-profile",hint:"Clear this to use static keys instead; a profile takes precedence."}),(0,n.jsx)(l.default,{label:"Region",value:k.region,onChange:e=>y({...k,region:e.target.value}),placeholder:"us-east-1"}),(0,n.jsx)(l.default,{label:"Access Key ID (only for static keys)",value:k.accessKeyId,onChange:e=>y({...k,accessKeyId:e.target.value}),placeholder:"AKIA..."}),(0,n.jsx)(l.default,{label:"Session Token (only for temporary ASIA… keys)",type:"password",value:k.sessionToken,onChange:e=>y({...k,sessionToken:e.target.value}),placeholder:"FwoGZXIvYXdz...",hint:"Leave blank to keep the saved token. Enter a new token to replace it.",disabled:j}),(0,n.jsxs)("label",{className:"flex items-center gap-2 text-sm text-text-muted",children:[(0,n.jsx)("input",{type:"checkbox",checked:j,onChange:e=>{w(e.target.checked),e.target.checked&&y({...k,sessionToken:""})}}),"Remove saved session token"]})]})]}),q&&(0,n.jsx)(m.default,{label:"Region",value:N,onChange:e=>C(e.target.value),options:q.map(e=>({value:e.id,label:e.label}))}),!R&&!z&&!D&&(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)(d.default,{onClick:K,variant:"secondary",disabled:S,children:S?"Testing...":"Test Connection"}),W&&(0,n.jsx)(c.default,{variant:"success"===W?"success":"error",children:"success"===W?"Valid":"Failed"})]}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(d.default,{onClick:B,fullWidth:!0,disabled:A,children:A?"Saving...":"Save"}),(0,n.jsx)(d.default,{onClick:s,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}x.propTypes={isOpen:s().bool.isRequired,connection:s().shape({id:s().string,name:s().string,email:s().string,priority:s().number,authType:s().string,provider:s().string,providerSpecificData:s().object}),proxyPools:s().arrayOf(s().shape({id:s().string,name:s().string})),onSave:s().func.isRequired,onClose:s().func.isRequired}},73581:(e,t,a)=>{a.d(t,{default:()=>x});var n=a(95155),i=a(12115),r=a(14051),s=a.n(r),o=a(35497),l=a(11059);let d=new Set(["127.0.0.1","localhost","::1","[::1]"]);function c(e){return d.has(String(e??"").trim().toLowerCase())}let u=new Set(["trae","windsurf","zed"]),m={trae:{label:"Cloud-IDE-JWT",instructions:"Sign in at trae.ai (or solo.trae.ai), open DevTools → Network, copy the Cloud-IDE-JWT token from any request's Authorization header (~14-day lifetime).",placeholder:"Paste Cloud-IDE-JWT here...",ideName:"Trae",ideOptional:!0},windsurf:{label:"Windsurf API key",instructions:'In the Windsurf/VS Code IDE, run the "Windsurf: Provide Auth Token" command, then copy the displayed sk-ws-... key.',placeholder:"Paste sk-ws-... key here...",ideName:"Windsurf",ideOptional:!1}};function x({isOpen:e,provider:t,providerInfo:a,onSuccess:r,onClose:s,oauthMeta:d,idcConfig:p}){let[h,g]=(0,i.useState)("waiting"),[f,b]=(0,i.useState)(null),[v,k]=(0,i.useState)(""),[y,j]=(0,i.useState)(null),[w,N]=(0,i.useState)(!1),[C,S]=(0,i.useState)(null),[O,W]=(0,i.useState)(!1),[F,I]=(0,i.useState)("browser"),[T,P]=(0,i.useState)(""),[E,A]=(0,i.useState)(!1),[_,$]=(0,i.useState)(null),z=(0,i.useRef)(null),D=(0,i.useRef)(!1),L=(0,i.useRef)(!1),R=(0,i.useRef)({proxyStarted:!1,proxyProvider:null,stopSent:!1}),q=(0,i.useRef)(r),U=(0,i.useRef)(s),M=(0,i.useRef)(e),K=(0,i.useRef)(null),{copied:V,copy:B}=(0,l.C)(),[J,G]=(0,i.useState)(!1),[Q,H]=(0,i.useState)("/callback?code=..."),Y=(0,i.useRef)(!1),Z=(0,i.useRef)(null);null===Z.current&&(Z.current=function({delayMs:e=1500}={}){let t=null,a=!1,n=null,i=()=>{null!==t&&(clearTimeout(t),t=null)},r=()=>{let e=n;n=null,a=!1,t=null,e?.()};return{begin(s){i(),n=s,a=!0,t=setTimeout(r,e)},commitNow:()=>!!a&&(i(),r(),!0),cancel(){i(),a=!1,n=null},isPending:()=>a}}({delayMs:1500})),(0,i.useEffect)(()=>{G("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname),H(`${window.location.origin}/callback?code=...`)},[]);let X=(0,i.useCallback)(()=>{g("success"),Z.current.begin(()=>r?.())},[r]),ee=(0,i.useCallback)(async(e,a)=>{if(f)try{let n=await fetch(`/api/oauth/${t}/exchange`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,redirectUri:f.redirectUri,codeVerifier:f.codeVerifier,state:a,...f.systemId?{systemId:f.systemId}:{},...d?{meta:d}:{}})}),i=await n.json();if(!n.ok)throw Error(i.error);X()}catch(e){j(e.message),g("error")}},[f,t,X,d]),et=(0,i.useCallback)(async e=>{if(f?.state)try{let t=await fetch("/api/oauth/xai/manual-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,state:f.state})}),a=await t.json();if(!t.ok)throw Error(a.error);X()}catch(e){j(e.message),g("error")}},[f,X]),ea=(0,i.useCallback)(async(e,a,n,i,r)=>{D.current=!1,W(!0);let s=Date.now()+(Number.isFinite(r)&&r>0?r:12e4);for(;Date.now()<s;){if(D.current){console.log("[OAuthModal] Polling aborted"),W(!1);return}if(await new Promise(e=>setTimeout(e,1e3*n)),D.current){console.log("[OAuthModal] Polling aborted after sleep"),W(!1);return}try{let r=await fetch(`/api/oauth/${t}/poll`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deviceCode:e,codeVerifier:a,extraData:i})}),s=await r.json();if(s.success){D.current=!0,W(!1),X();return}if("expired_token"===s.error||"access_denied"===s.error||s.fatal)throw Error(s.errorDescription||s.error);"slow_down"===s.error&&(n=Math.min(n+5,30))}catch(e){j(e.message),g("error"),W(!1);return}}j("Authorization timeout"),g("error"),W(!1)},[t,X]),en=(0,i.useCallback)(()=>{let e=R.current;e.proxyStarted&&!e.stopSent&&e.proxyProvider&&(e.stopSent=!0,fetch(`/api/oauth/${e.proxyProvider}/stop-proxy`).catch(()=>{}))},[]),ei=(0,i.useCallback)(async e=>{let t=await fetch(`/api/oauth/${e}/start-proxy`),a=await t.json();if(!t.ok||!a.success||!a.callbackUrl)throw Error(a.reason||a.error||`Failed to start ${e} callback server`);if(R.current.proxyStarted=!0,R.current.proxyProvider=e,R.current.stopSent=!1,A(function({callbackUrl:e,pageHostname:t}={}){let a;try{a=new URL(String(e)).hostname}catch{return!1}return!!c(a)&&!c(t)}({callbackUrl:a.callbackUrl,pageHostname:window.location.hostname})),!M.current)return void en();let n=new URL(`/api/oauth/${e}/authorize`,window.location.origin);n.searchParams.set("redirect_uri",a.callbackUrl);let i=await fetch(n),r=await i.json();if(!i.ok)throw en(),Error(r.error);if(!M.current)return void en();let s={state:r.state};r.codeVerifier&&(s.codeVerifier=r.codeVerifier),r.systemId&&(s.systemId=r.systemId);let o=await fetch(`/api/oauth/${e}/register-session`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}),l=null;try{l=await o.json()}catch{l=null}if(!o.ok||l?.success===!1)throw en(),Error(l?.error||"Failed to register login session; please retry");M.current&&(b({...r,proxyProvider:e}),g("waiting"),z.current=window.open(r.authUrl,"oauth_popup","width=600,height=700"),z.current||g("input"))},[en]),er=async()=>{if(t)try{let e;if(j(null),u.has(t)&&"browser"===F)return void await ei(t);if(["github","kiro","kimi","kimi-coding","kilocode","codebuddy-cn","codebuddy-intl","qoder","qoder-cn","grok-cli","nous","muse","glm","minimax-code","minimax-code-global"].includes(t)){N(!0),g("waiting");let e=new URL(`/api/oauth/${t}/device-code`,window.location.origin);"kiro"===t&&p?.startUrl&&(e.searchParams.set("start_url",p.startUrl),p.region&&e.searchParams.set("region",p.region),e.searchParams.set("auth_method","idc"));let a=await fetch(e.toString()),n=await a.json();if(!a.ok)throw Error(n.error);S(n);let i=n.verification_uri_complete||n.verification_uri;i&&window.open(i,"_blank","noopener,noreferrer");let r="kiro"===t?{_clientId:n._clientId,_clientSecret:n._clientSecret,_region:n._region,_authMethod:n._authMethod,_startUrl:n._startUrl}:"qoder"===t||"qoder-cn"===t?{_qoderNonce:n._qoderNonce,_qoderMachineId:n._qoderMachineId,_qoderVerifier:n.codeVerifier}:"kimi"===t||"kimi-coding"===t?{_kimiDeviceId:n._kimiDeviceId}:"glm"===t?{_zcodePollToken:n._zcodePollToken}:"minimax-code"===t||"minimax-code-global"===t?{_minimaxPollByUser:n._minimaxPollByUser}:null;ea(n.device_code||n.user_code,n.codeVerifier,n.interval||5,r,Number.isFinite(n.expires_in)&&n.expires_in>0?1e3*n.expires_in:void 0);return}let a=window.location.port||("https:"===window.location.protocol?"443":"80");"codex"===t?e="http://localhost:1455/auth/callback":"xai"===t?e="http://127.0.0.1:56121/callback":e=`http://localhost:${a}/callback`;let n=new URL(`/api/oauth/${t}/authorize`,window.location.origin);n.searchParams.set("redirect_uri",e),d&&Object.entries(d).forEach(([e,t])=>{t&&n.searchParams.set(e,t)});let i=await fetch(n.toString()),r=await i.json();if(!i.ok)throw Error(r.error);let s=!1,o=!1;if("codex"===t)try{let t=new URL("/api/oauth/codex/start-proxy",window.location.origin);t.searchParams.set("app_port",a),t.searchParams.set("state",r.state),t.searchParams.set("code_verifier",r.codeVerifier),t.searchParams.set("redirect_uri",e);let n=await fetch(t.toString()),i=await n.json();s=i.success,o=!!i.serverSide}catch{s=!1}let l=!1,c=!1;if("xai"===t)try{let t=new URL("/api/oauth/xai/start-proxy",window.location.origin);t.searchParams.set("app_port",a),t.searchParams.set("state",r.state),t.searchParams.set("code_verifier",r.codeVerifier),t.searchParams.set("redirect_uri",e);let n=await fetch(t.toString()),i=await n.json();if(l=i.success,c=!!i.serverSide,!l&&"port_busy"===i.reason)throw Error("Port 56121 in use; close the conflicting process and retry")}catch(e){if(e?.message)throw e;l=!1}if(b({...r,redirectUri:e,codexServerSide:o,xaiServerSide:c}),("codex"===t&&s||"xai"===t&&l)&&(R.current.proxyStarted=!0,R.current.proxyProvider=t,R.current.stopSent=!1),!r.authUrl){if("device_code"===r.flowType)throw Error(`Provider ${t} uses device-code login but is not wired in the OAuth modal device-code list`);throw Error("No authorization URL returned from OAuth provider")}"codex"===t&&s||"xai"===t&&l||J&&"codex"!==t&&"xai"!==t?(g("waiting"),z.current=window.open(r.authUrl,"oauth_popup","width=600,height=700"),z.current||g("input")):(g("input"),window.open(r.authUrl,"_blank"))}catch(e){j(e.message),g("error")}};(0,i.useEffect)(()=>{q.current=r,U.current=s,M.current=e,K.current=er}),(0,i.useEffect)(()=>{e&&t&&(L.current||(L.current=!0,b(null),k(""),j(null),N(!1),S(null),W(!1),I("browser"),P(""),$(null),D.current=!1,R.current={proxyStarted:!1,proxyProvider:null,stopSent:!1},m[t]&&fetch(`/api/oauth/${t}/ide-status`).then(e=>e.json()).then(e=>$(e)).catch(()=>$({installed:!1,path:null})),K.current()))},[e,t]),(0,i.useEffect)(()=>{e||(D.current=!0,Z.current.cancel(),L.current=!1,en(),R.current={proxyStarted:!1,proxyProvider:null,stopSent:!1})},[e,t,en]),(0,i.useEffect)(()=>{let e=f?.codexServerSide?"codex":f?.xaiServerSide?"xai":f?.proxyProvider?f.proxyProvider:null;if(!e||!f?.state||Y.current)return;let t=!1,a=0,n=async()=>{if(!t&&!Y.current){a+=1;try{let a=await fetch(`/api/oauth/${e}/poll-status?state=${encodeURIComponent(f.state)}`),n=await a.json();if(t||Y.current)return;if("done"===n.status){Y.current=!0,X();return}if("error"===n.status){Y.current=!0,j(n.error||"Authentication failed"),g("error");return}}catch{}if(a>=200){Y.current=!0,j("Authentication timeout"),g("error");return}setTimeout(n,1500)}};return setTimeout(n,1500),()=>{t=!0}},[f,X]),(0,i.useEffect)(()=>{let e;if(!f)return;Y.current=!1;let t=async e=>{if(Y.current)return;let{code:t,token:a,state:n,error:i,errorDescription:r}=e;if(i){Y.current=!0,j(r||i),g("error");return}(a||t)&&(Y.current=!0,await ee(a||t,n))},a=e=>{let a=e.origin.includes("localhost")||e.origin.includes("127.0.0.1"),n=e.origin===window.location.origin;(a||n)&&e.data?.type==="oauth_callback"&&t(e.data.data)};window.addEventListener("message",a);try{(e=new BroadcastChannel("oauth_callback")).onmessage=e=>t(e.data)}catch(e){console.log("BroadcastChannel not supported")}let n=e=>{if("oauth_callback"===e.key&&e.newValue)try{let a=JSON.parse(e.newValue);t(a),localStorage.removeItem("oauth_callback")}catch(e){console.log("Failed to parse localStorage data")}};window.addEventListener("storage",n);try{let e=localStorage.getItem("oauth_callback");if(e){let a=JSON.parse(e);a.timestamp&&Date.now()-a.timestamp<3e4&&t(a),localStorage.removeItem("oauth_callback")}}catch{}return()=>{window.removeEventListener("message",a),window.removeEventListener("storage",n),e&&e.close()}},[f,ee]);let es=async()=>{try{if(j(null),"paste-token"===F&&m[t]){let e=T.trim();if(!e)throw Error("Missing token");let a=await fetch(`/api/oauth/${t}/exchange`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e})}),n=await a.json();if(!a.ok)throw Error(n.error);X();return}let e=v.trim();if(u.has(t)&&e){let a=await fetch(`/api/oauth/${t}/exchange`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,state:f?.state,...f?.redirectUri?{redirectUri:f.redirectUri}:{},...f?.codeVerifier?{codeVerifier:f.codeVerifier}:{},...f?.systemId?{systemId:f.systemId}:{}})}),n=await a.json();if(!a.ok)throw Error(n.error);X();return}if(e.startsWith("eyJ")&&e.includes("."))return void await ee(e,null);if("xai"===t&&e&&!e.includes("://")&&!e.includes("?")&&!e.includes("code="))return void await et(e);if("kimchi"===t&&e&&!e.includes("://")&&!e.includes("?"))return void await ee(e,null);let a=new URL(e),n=a.searchParams.get("code"),i=a.searchParams.get("token"),r=a.searchParams.get("state"),s=a.searchParams.get("error");if(s)throw Error(a.searchParams.get("error_description")||s);if(!n&&!i)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 ee(i||n,r)}catch(e){j(e.message),g("error")}};(0,i.useEffect)(()=>()=>Z.current.cancel(),[]);let eo=(0,i.useCallback)(()=>{Z.current.commitNow(),en(),U.current()},[en]);if(!t||!a)return null;let el="xai"===t,ed="kimchi"===t,ec=C?.verification_uri_complete||C?.verification_uri||"",eu=el?"Connect Grok Build OAuth":`Connect ${a.name}`,em=el?"http://127.0.0.1:56121/callback?code=... or copied code":ed?`${Q.replace("code=...","token=...")} or copied token`:Q;return(0,n.jsx)(o.aF,{isOpen:e,title:eu,onClose:eo,size:"lg",children:(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[u.has(t)&&("waiting"===h||"input"===h||"error"===h)&&(0,n.jsxs)(n.Fragment,{children:[m[t]&&(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)("button",{type:"button",onClick:()=>{I("browser"),j(null),g("waiting"),er()},className:`flex-1 rounded-lg border px-3 py-2 text-sm transition-colors ${"browser"===F?"border-primary bg-primary/10 text-primary":"border-border text-text-muted hover:text-primary"}`,children:"\uD83C\uDF10 Sign in with browser"}),(0,n.jsx)("button",{type:"button",onClick:()=>{I("paste-token"),j(null),g("input")},className:`flex-1 rounded-lg border px-3 py-2 text-sm transition-colors ${"paste-token"===F?"border-primary bg-primary/10 text-primary":"border-border text-text-muted hover:text-primary"}`,children:"\uD83D\uDD11 Paste token"})]}),"browser"===F&&(0,n.jsxs)(n.Fragment,{children:["waiting"===h&&(0,n.jsxs)("div",{className:"space-y-3",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 border border-border rounded-lg bg-sidebar/50",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-base text-primary animate-spin",children:"progress_activity"}),(0,n.jsx)("span",{className:"text-sm",children:"Waiting for browser authorization…"})]}),E&&(0,n.jsxs)("div",{className:"space-y-3",children:[(0,n.jsx)("div",{className:"px-3 py-2 rounded-lg bg-yellow-500/10 text-yellow-700 dark:text-yellow-300 text-sm",children:"This dashboard is not on the same machine as the gateway, so the redirect to the local callback address cannot reach it. Sign in, then copy the FULL URL from the address bar — the browser will show an error page, and that URL is the one to paste here."}),(0,n.jsx)(o.pd,{value:v,onChange:e=>k(e.target.value),placeholder:"http://127.0.0.1:.../callback?...",className:"font-mono text-xs"}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(o.$n,{onClick:es,fullWidth:!0,disabled:!v,children:"Connect"}),(0,n.jsx)(o.$n,{onClick:eo,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]}),"input"===h&&(0,n.jsxs)("div",{className:"space-y-3",children:[(0,n.jsx)("p",{className:"text-sm text-text-muted",children:"Popup was blocked. After authorizing in the browser, paste the full callback URL here:"}),(0,n.jsx)(o.pd,{value:v,onChange:e=>k(e.target.value),placeholder:"http://127.0.0.1:.../callback?...",className:"font-mono text-xs"}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(o.$n,{onClick:es,fullWidth:!0,disabled:!v,children:"Connect"}),(0,n.jsx)(o.$n,{onClick:eo,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]}),"paste-token"===F&&m[t]&&(0,n.jsxs)("div",{className:"space-y-3",children:[_&&!_.installed&&(0,n.jsxs)("div",{className:`px-3 py-2 rounded-lg text-sm ${m[t].ideOptional?"bg-blue-500/10 text-blue-700 dark:text-blue-300":"bg-yellow-500/10 text-yellow-700 dark:text-yellow-300"}`,children:[m[t].ideName," IDE not detected.",m[t].ideOptional?" You can still grab the token from DevTools.":` Install ${m[t].ideName} IDE to get the token, or use "Sign in with browser".`]}),(0,n.jsx)("p",{className:"text-sm text-text-muted",children:m[t].instructions}),(0,n.jsx)(o.pd,{value:T,onChange:e=>P(e.target.value),placeholder:m[t].placeholder,className:"font-mono text-xs"}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(o.$n,{onClick:es,fullWidth:!0,disabled:!T,children:"Connect"}),(0,n.jsx)(o.$n,{onClick:eo,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]}),("waiting"===h||"input"===h)&&!w&&!u.has(t)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 border border-border rounded-lg bg-sidebar/50",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-base text-primary animate-spin",children:"progress_activity"}),(0,n.jsx)("span",{className:"text-sm",children:el?"Waiting for Grok Build OAuth…":"Waiting for popup authorization…"})]}),(0,n.jsxs)("div",{className:"flex items-center gap-3 my-1",children:[(0,n.jsx)("div",{className:"flex-1 h-px bg-border"}),(0,n.jsx)("span",{className:"text-xs text-text-muted uppercase tracking-wider",children:"Or paste callback URL manually"}),(0,n.jsx)("div",{className:"flex-1 h-px bg-border"})]}),(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsxs)("p",{className:"text-sm font-medium mb-2",children:["Step 1: Open this ",el?"Grok Build OAuth URL":"URL"," in your browser"]}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(o.pd,{value:f?.authUrl||"",readOnly:!0,className:"flex-1 font-mono text-xs"}),(0,n.jsx)(o.$n,{variant:"secondary",icon:"auth_url"===V?"check":"content_copy",onClick:()=>B(f?.authUrl,"auth_url"),disabled:!f?.authUrl,children:"Copy"})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("p",{className:"text-sm font-medium mb-2",children:["Step 2: Paste the ","xai"===t?"callback URL or copied code":ed?"callback URL or copied token":"callback URL"," here"]}),(0,n.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.":ed?"After authorization, copy the full callback URL or token from your browser.":"After authorization, copy the full URL from your browser."}),(0,n.jsx)(o.pd,{value:v,onChange:e=>k(e.target.value),placeholder:em,className:"font-mono text-xs"})]})]}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(o.$n,{onClick:es,fullWidth:!0,disabled:!v,children:"Connect"}),(0,n.jsx)(o.$n,{onClick:eo,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"waiting"===h&&w&&C&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"text-center py-4",children:[(0,n.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Visit the login URL below and authorize:"}),(0,n.jsxs)("div",{className:"bg-sidebar p-4 rounded-lg mb-4",children:[(0,n.jsx)("p",{className:"text-xs text-text-muted mb-1",children:"Login URL"}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("code",{className:"flex-1 text-sm break-all",children:ec}),(0,n.jsx)(o.$n,{size:"sm",variant:"ghost",icon:"login_url"===V?"check":"content_copy",onClick:()=>B(ec,"login_url"),disabled:!ec}),(0,n.jsx)(o.$n,{size:"sm",variant:"ghost",icon:"open_in_new",onClick:()=>window.open(ec,"_blank","noopener,noreferrer"),disabled:!ec,children:"Open"})]})]}),C.user_code&&(0,n.jsxs)("div",{className:"bg-primary/10 p-4 rounded-lg",children:[(0,n.jsx)("p",{className:"text-xs text-text-muted mb-1",children:"Your Code"}),(0,n.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,n.jsx)("p",{className:"text-2xl font-mono font-bold text-primary",children:C.user_code}),(0,n.jsx)(o.$n,{size:"sm",variant:"ghost",icon:"user_code"===V?"check":"content_copy",onClick:()=>B(C.user_code,"user_code")})]})]})]}),O&&(0,n.jsxs)("div",{className:"flex items-center justify-center gap-2 text-sm text-text-muted",children:[(0,n.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),"Waiting for authorization..."]})]}),"success"===h&&(0,n.jsxs)("div",{className:"text-center py-6",children:[(0,n.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,n.jsx)("span",{className:"material-symbols-outlined text-3xl text-green-600",children:"check_circle"})}),(0,n.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connected Successfully!"}),(0,n.jsxs)("p",{className:"text-sm text-text-muted mb-4",children:["Your ",a.name," account has been connected."]}),(0,n.jsx)(o.$n,{onClick:eo,fullWidth:!0,children:"Done"})]}),"error"===h&&(0,n.jsxs)("div",{className:"text-center py-6",children:[(0,n.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,n.jsx)("span",{className:"material-symbols-outlined text-3xl text-red-600",children:"error"})}),(0,n.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connection Failed"}),(0,n.jsx)("p",{className:"text-sm text-red-600 mb-4",children:y}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(o.$n,{onClick:er,variant:"secondary",fullWidth:!0,children:"Try Again"}),(0,n.jsx)(o.$n,{onClick:eo,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})})}x.propTypes={isOpen:s().bool.isRequired,provider:s().string,providerInfo:s().shape({name:s().string}),onSuccess:s().func,onClose:s().func.isRequired,oauthMeta:s().object,idcConfig:s().shape({startUrl:s().string,region:s().string})}},80752:(e,t,a)=>{a.d(t,{default:()=>f});var n=a(95155),i=a(12115),r=a(14051),s=a.n(r),o=a(1620),l=a(93308),d=a(38202),c=a(90620),u=a(44076),m=a(21931),x=a(81127);function p({icon:e,label:t,onClick:a,trailing:i,danger:r}){return(0,n.jsxs)("button",{onClick:a,className:`flex items-center gap-3 w-full px-4 py-2.5 text-sm transition-colors ${r?"text-red-500 hover:bg-red-500/10":"text-text-main hover:bg-black/5 dark:hover:bg-white/5"}`,children:[(0,n.jsx)("span",{className:`material-symbols-outlined text-[20px] ${r?"":"text-text-muted"}`,children:e}),(0,n.jsx)("span",{className:"flex-1 text-left",children:t}),i&&(0,n.jsx)("span",{className:"text-base",children:i})]})}function h(){if("u"<typeof document)return"en";let e=document.cookie.split(";").find(e=>e.trim().startsWith(`${l.CL}=`)),t=e?decodeURIComponent(e.split("=")[1]):"en";return(0,l.QC)(t)}function g({swatch:e,size:t}){return(0,n.jsx)("span",{"aria-hidden":"true",className:`grid grid-cols-2 ${t} shrink-0 rounded-md border border-border overflow-hidden`,children:e.slice(0,4).map((e,t)=>(0,n.jsx)("span",{style:{backgroundColor:e}},t))})}function f({onLogout:e}){let[t,a]=(0,i.useState)(!1),[r,s]=(0,i.useState)(!1),[l,b]=(0,i.useState)(!1),[v,k]=(0,i.useState)(!1),[y,j]=(0,i.useState)(!1),[w,N]=(0,i.useState)(!1),{toggleTheme:C,isDark:S,visualTheme:O,setVisualTheme:W}=(0,o.D)(),F=(0,i.useRef)(null),[I,T]=(0,i.useState)(h),P=c.qO.find(e=>e.id===O)||c.qO[0],E=async()=>{N(!0);try{await fetch("/api/version/shutdown",{method:"POST"})}catch(e){}N(!1),k(!1)};return(0,i.useEffect)(()=>{let e=e=>{F.current&&!F.current.contains(e.target)&&a(!1)};if(t)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[t]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"relative",ref:F,children:[(0,n.jsx)("button",{onClick:()=>a(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,n.jsx)("span",{className:"material-symbols-outlined",children:"grid_view"})}),t&&(0,n.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,n.jsx)(p,{icon:"history",label:"Change Log",onClick:()=>{a(!1),s(!0)}}),(0,n.jsx)(p,{icon:S?"light_mode":"dark_mode",label:"Theme",onClick:()=>{C(),a(!1)}}),(0,n.jsx)(p,{icon:"palette",label:"Visual theme",trailing:(0,n.jsx)(g,{swatch:P.swatch,size:"size-4"}),onClick:()=>j(e=>!e)}),y&&(0,n.jsx)("div",{role:"group","aria-label":"Visual theme",className:"px-2 pt-1 pb-2",children:c.qO.map(e=>{let t=O===e.id;return(0,n.jsxs)("button",{type:"button","aria-pressed":t,onClick:()=>W(e.id),className:`flex items-center gap-2 w-full px-2 py-2 rounded-lg text-sm text-left transition-colors ${t?"bg-primary/10 text-primary":"text-text-main hover:bg-black/5 dark:hover:bg-white/5"}`,children:[(0,n.jsx)(g,{swatch:e.swatch,size:"size-5"}),(0,n.jsx)("span",{className:"flex-1 min-w-0 truncate",children:e.label}),t&&(0,n.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"check"})]},e.id)})}),(0,n.jsx)(p,{icon:"language",label:"Language",trailing:d.h[I]||"\uD83C\uDF10",onClick:()=>{a(!1),b(!0)}}),(0,n.jsx)(p,{icon:"power_settings_new",label:"Shutdown",danger:!0,onClick:()=>{a(!1),k(!0)}}),(0,n.jsx)(p,{icon:"logout",label:"Logout",danger:!0,onClick:()=>{a(!1),e()}})]})]}),(0,n.jsx)(u.default,{isOpen:r,onClose:()=>s(!1)}),(0,n.jsx)(m.default,{hideTrigger:!0,isOpen:l,onClose:e=>{b(!1),T(e)}}),(0,n.jsx)(x.ConfirmModal,{isOpen:v,onClose:()=>k(!1),onConfirm:E,title:"Close Proxy",message:"Are you sure you want to close the proxy server?",confirmText:"Close",cancelText:"Cancel",variant:"danger",loading:w})]})}p.propTypes={icon:s().string.isRequired,label:s().string.isRequired,onClick:s().func.isRequired,trailing:s().node,danger:s().bool},g.propTypes={swatch:s().arrayOf(s().string).isRequired,size:s().string.isRequired},f.propTypes={onLogout:s().func.isRequired}},81127:(e,t,a)=>{a.d(t,{ConfirmModal:()=>d,default:()=>l});var n=a(95155),i=a(12115),r=a(31474),s=a(92542),o=a(97677);function l({isOpen:e,onClose:t,title:a,children:s,footer:d,size:c="md",closeOnOverlay:u=!0,showTrafficLights:m=!0,className:x}){return((0,i.useEffect)(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e]),(0,i.useEffect)(()=>{let a=a=>{"Escape"===a.key&&e&&t()};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e,t]),e)?(0,n.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-[2px] fade-in",onClick:u?t:void 0}),(0,n.jsxs)("div",{className:(0,r.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:[(a||m)&&(0,n.jsxs)("div",{className:"flex items-center justify-between p-2 border-b border-border-subtle",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[m&&(0,n.jsxs)("div",{className:"hidden md:flex items-center gap-2 mr-4 ml-2",children:[(0,n.jsx)(o.default,{text:"Close",position:"top",color:"#FF5F56",children:(0,n.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,n.jsx)("span",{className:"text-[9px] font-bold text-white opacity-0 group-hover/dot:opacity-100 transition-opacity leading-none",children:"✕"})})}),(0,n.jsx)("div",{className:"w-4 h-4 rounded-full bg-[#3a3a3a]/20 dark:bg-white/15 cursor-not-allowed"}),(0,n.jsx)("div",{className:"w-4 h-4 rounded-full bg-[#3a3a3a]/20 dark:bg-white/15 cursor-not-allowed"})]}),a&&(0,n.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:a})]}),(0,n.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,n.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,n.jsx)("div",{className:"p-6 max-h-[calc(85vh-100px)] overflow-y-auto custom-scrollbar",children:s}),d&&(0,n.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:a,title:i="Confirm",message:r,confirmText:o="Confirm",cancelText:c="Cancel",variant:u="danger",loading:m=!1}){return(0,n.jsx)(l,{isOpen:e,onClose:t,title:i,size:"sm",footer:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.default,{variant:"ghost",onClick:t,disabled:m,children:c}),(0,n.jsx)(s.default,{variant:u,onClick:a,loading:m,children:o})]}),children:(0,n.jsx)("p",{className:"text-text-muted",children:r})})}},81231:(e,t,a)=>{function n({customModels:e=[],providerNodes:t=[],isCompatibleAlias:a}={}){if("function"!=typeof a)return[];let i=new Set((t||[]).map(e=>e?.id).filter(Boolean)),r=new Set,s=[];for(let t of e||[]){let e=t?.providerAlias;!(!e||r.has(e))&&a(e)&&i.has(e)&&(r.add(e),s.push(e))}return s}function i({customModels:e=[],modelAliases:t={},providerAlias:a,builtInModels:n=[],type:r="llm",includeLegacyAliases:s=!0}){let o=new Set(n.map(e=>e.id)),l=new Set,d=[];for(let t of e){if(!t?.id||t.providerAlias!==a)continue;let e=t?.kind||t?.type||"llm";if(r&&e!==r||o.has(t.id))continue;let n=`${a}/${t.id}`;l.has(n)||(l.add(n),d.push({id:t.id,name:t.name||t.id,fullModel:n,source:"custom",type:e,...t.caps?{caps:t.caps}:{}}))}if(!s)return d;let c=`${a}/`;for(let[e,a]of Object.entries(t||{})){if("string"!=typeof a||!a.startsWith(c))continue;let t=a.slice(c.length);!t||o.has(t)||l.has(a)||(l.add(a),d.push({id:t,alias:e,fullModel:a,source:"legacyAlias",type:r||"llm"}))}return d}a.d(t,{B:()=>n,R:()=>i})},86528:(e,t,a)=>{a.d(t,{default:()=>f});var n=a(95155),i=a(12115),r=a(73321),s=a(98500),o=a.n(s),l=a(14051),d=a.n(l),c=a(57250),u=a(80752),m=a(73006),x=a(90620),p=a(88105),h=a(8247),g=a(38003);function f({onMenuClick:e,showMenuButton:t=!0}){let a=(0,r.usePathname)(),[s,l]=(0,i.useState)(""),[d,g]=(0,i.useState)(""),{title:v,description:k,icon:y,breadcrumbs:j}=(0,i.useMemo)(()=>(e=>{if(!e)return{title:"",description:"",breadcrumbs:[]};let t=e.match(/\/media-providers\/([^/]+)\/([^/]+)$/);if(t){let e=t[1],a=t[2],n=p.rj.find(t=>t.id===e),i=p.Q2[a];return{title:i?.name||a,description:"",breadcrumbs:[{label:"Media Providers",href:`/dashboard/media-providers/${e}`},{label:n?.label||e,href:`/dashboard/media-providers/${e}`},{label:i?.name||a,image:(0,h.HY)(a)}]}}let a=e.match(/\/media-providers\/([^/]+)$/);if(a){let e=a[1],t=p.rj.find(t=>t.id===e);return{title:t?.label||e,description:`Manage your ${t?.label||e} providers`,icon:t?.icon||"perm_media",breadcrumbs:[]}}let n=e.match(/\/providers\/([^/]+)$/);if(n){let e=n[1],t=x.zN[e]||x.fg[e];if(t)return{title:t.name,description:"",breadcrumbs:[{label:"Providers",href:"/dashboard/providers"},{label:t.name,image:(0,h.HY)(t.id)}]}}return e.includes("/providers")&&!e.includes("/media-providers")?{title:"Providers",description:"Manage your AI provider connections",icon:"dns",breadcrumbs:[]}:e.includes("/combos")?{title:"Combos",description:"Model combos with fallback",icon:"layers",breadcrumbs:[]}:e.includes("/arena")?{title:"Model Arena",description:"Compare the speed, cost, and quality of two models side-by-side.",icon:"swords",breadcrumbs:[]}:e.includes("/usage")?{title:"Usage & Analytics",description:"Monitor your API usage, token consumption, and request logs",icon:"bar_chart",breadcrumbs:[]}:e.includes("/auth-files")?{title:"Auth Files",description:"Map provider credentials stored in the local database",icon:"vpn_key",breadcrumbs:[]}:e.includes("/quota")?{title:"Quota Tracker",description:"Track and manage your API quota limits",icon:"data_usage",breadcrumbs:[]}:e.includes("/mitm")?{title:"MITM Proxy",description:"Intercept CLI tool traffic and route through 9Router",icon:"security",breadcrumbs:[]}:e.includes("/token-saver")?{title:"Token Saver",description:"Compress prompts and outputs to save tokens",icon:"savings",breadcrumbs:[]}:e.includes("/addons")?{title:"Add-on Skills",description:"Inject behavior rules into every routed request",icon:"auto_fix_high",breadcrumbs:[]}:e.includes("/cli-tools")?{title:"CLI Tools",description:"Configure CLI tools",icon:"terminal",breadcrumbs:[]}:e.includes("/system-status")?{title:"System Status",description:"Live host, storage and V8 runtime telemetry",icon:"monitoring",breadcrumbs:[]}:e.includes("/pxpipe")?{title:"PXPIPE",description:"PXPIPE bridge status, image pipeline activity and logs",icon:"image",breadcrumbs:[]}:e.includes("/proxy-pools")?{title:"Proxy Pools",description:"Manage your proxy pool configurations",icon:"lan",breadcrumbs:[]}:e.includes("/skills")?{title:"Agent Skills",description:"Copy a link and paste to your AI to use 9Router — no install needed",icon:"extension",breadcrumbs:[]}:e.includes("/endpoint")?{title:"Endpoint",description:"API endpoint configuration",icon:"api",breadcrumbs:[]}:e.includes("/profile")?{title:"Settings",description:"Manage your preferences",icon:"settings",breadcrumbs:[]}:e.includes("/translator")?{title:"Translator",description:"Debug translation flow between formats",icon:"translate",breadcrumbs:[]}:e.includes("/console-log")?{title:"Console Log",description:"Live server console output",icon:"monitor",breadcrumbs:[]}:e.includes("/error-log")?{title:"Error Log",description:"Inspect failed provider requests and their error details",icon:"error",breadcrumbs:[]}:"/dashboard"===e?{title:"Endpoint",description:"API endpoint configuration",icon:"api",breadcrumbs:[]}:{title:"",description:"",breadcrumbs:[]}})(a),[a]);(0,i.useEffect)(()=>{let e=!1;return async function(){try{let t=await fetch("/api/auth/status",{cache:"no-store"});if(!t.ok)return;let a=await t.json();e||(l(a?.displayName||a?.samlName||a?.samlEmail||a?.oidcName||a?.oidcEmail||""),g(a?.loginMethod||""))}catch{e||(l(""),g(""))}}(),()=>{e=!0}},[]);let w=async()=>{try{(await fetch("/api/auth/logout",{method:"POST"})).ok&&window.location.assign("/login")}catch(e){console.error("Failed to logout:",e)}};return(0,n.jsxs)("header",{className:"sticky top-0 shrink-0 flex items-center justify-between gap-3 px-4 lg:px-8 pt-3 pb-2 border-b border-border-subtle bg-surface/60 backdrop-blur-xl lg:bg-transparent lg:backdrop-blur-none z-20",children:[(0,n.jsx)("div",{className:"flex items-center gap-3 lg:hidden shrink-0",children:t&&(0,n.jsx)("button",{onClick:e,className:"text-text-main hover:text-primary transition-colors",children:(0,n.jsx)("span",{className:"material-symbols-outlined",children:"menu"})})}),(0,n.jsx)("div",{className:"flex flex-col min-w-0 flex-1",children:j.length>0?(0,n.jsx)("div",{className:"flex items-center gap-1.5 sm:gap-2 min-w-0",children:j.map((e,t)=>(0,n.jsxs)("div",{className:`items-center gap-1.5 sm:gap-2 min-w-0 ${t<j.length-1?"hidden sm:flex shrink-0":"flex flex-1"}`,children:[t>0&&(0,n.jsx)("span",{className:"material-symbols-outlined text-text-muted text-base hidden sm:inline",children:"chevron_right"}),e.href?(0,n.jsx)(o(),{href:e.href,className:"text-text-muted hover:text-primary transition-colors truncate",children:e.label}):(0,n.jsxs)("div",{className:"flex items-center gap-1.5 sm:gap-2 min-w-0",children:[e.image&&(0,n.jsx)(c.A,{src:e.image,alt:e.label,size:28,className:"object-contain rounded max-w-[24px] max-h-[24px] sm:max-w-[28px] sm:max-h-[28px] shrink-0",fallbackText:e.label.slice(0,2).toUpperCase()}),(0,n.jsx)("h1",{className:"text-base lg:text-2xl font-semibold text-text-main tracking-tight truncate min-w-0",children:(0,m.Tl)(e.label)})]})]},`${e.label}-${e.href||"current"}`))}):v?(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[y&&(0,n.jsx)("span",{className:"material-symbols-outlined text-primary text-xl lg:text-2xl",children:y}),(0,n.jsx)("h1",{className:"text-base lg:text-2xl font-semibold tracking-tight truncate min-w-0",children:(0,m.Tl)(v)})]}),k&&(0,n.jsx)("p",{className:"hidden lg:block text-sm text-text-muted truncate",children:(0,m.Tl)(k)})]}):null}),(0,n.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[s&&("OIDC"===d||"SAML"===d)&&(0,n.jsxs)("div",{className:"hidden sm:flex items-center max-w-[220px] px-3 py-1.5 rounded-full border border-border bg-surface/70 text-xs text-text-muted truncate",title:s,children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1.5 text-primary",children:"person"}),(0,n.jsx)("span",{className:"truncate",children:s}),(0,n.jsx)("span",{className:"ml-2 shrink-0 rounded-full bg-primary/10 px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-primary",children:d})]}),(0,n.jsx)(b,{}),(0,n.jsx)(u.default,{onLogout:w})]})]})}function b(){let e=(0,g.C)(e=>e.visible),t=(0,g.C)(e=>e.query),a=(0,g.C)(e=>e.placeholder),i=(0,g.C)(e=>e.setQuery);return e?(0,n.jsxs)("div",{className:"relative w-[160px] sm:w-[220px]",children:[(0,n.jsx)("span",{className:"material-symbols-outlined absolute left-2 top-1/2 -translate-y-1/2 text-text-muted text-[16px] pointer-events-none",children:"search"}),(0,n.jsx)("input",{type:"text",value:t,onChange:e=>i(e.target.value),placeholder:a,className:"w-full h-8 pl-7 pr-7 rounded-lg border border-border bg-surface/60 text-sm focus:outline-none focus:border-primary/50 transition-colors"}),t&&(0,n.jsx)("button",{type:"button",onClick:()=>i(""),className:"absolute right-1 top-1/2 -translate-y-1/2 text-text-muted hover:text-text-main p-0.5 rounded","aria-label":"Clear search",children:(0,n.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"close"})})]}):null}f.propTypes={onMenuClick:d().func,showMenuButton:d().bool}},90085:(e,t,a)=>{a.d(t,{A:()=>o});var n=a(1934),i=a(31692),r=a(90620);function s(e,t){let a=document.documentElement,n=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";"dark"===("system"===e?n:e)?a.classList.add("dark"):a.classList.remove("dark"),r.qO.some(e=>e.id===t)&&t!==r.B2.bareVisualTheme?a.setAttribute("data-visual",t):a.removeAttribute("data-visual")}let o=(0,n.v)((0,i.Zr)((e,t)=>({theme:r.B2.defaultTheme,visualTheme:r.B2.defaultVisualTheme,setTheme:a=>{e({theme:a}),s(a,t().visualTheme)},toggleTheme:()=>{let a="dark"===t().theme?"light":"dark";e({theme:a}),s(a,t().visualTheme)},setVisualTheme:a=>{r.qO.some(e=>e.id===a)&&(e({visualTheme:a}),s(t().theme,a))},initTheme:()=>{s(t().theme,t().visualTheme)}}),{name:r.B2.storageKey,merge:(e,t)=>({...t,...e||{},visualTheme:e?.visualTheme||r.B2.defaultVisualTheme})}))},91450:(e,t,a)=>{a.d(t,{default:()=>o});var n=a(95155),i=a(14051),r=a.n(i),s=a(38587);function o({children:e}){return(0,n.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,n.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,n.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,n.jsx)("div",{className:"absolute top-6 right-6 z-20",children:(0,n.jsx)(s.default,{variant:"card"})}),(0,n.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})]})}o.propTypes={children:r().node.isRequired}},92173:(e,t,a)=>{a.d(t,{default:()=>c});var n=a(95155),i=a(98500),r=a.n(i),s=a(90620);let o=[{label:"Features",href:"#features"},{label:"Pricing",href:"#pricing"},{label:"Changelog",href:"#"}],l=[{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,n.jsx)("footer",{className:"bg-bg border-t border-border pt-16 pb-12",children:(0,n.jsxs)("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:[(0,n.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-10 mb-12",children:[(0,n.jsxs)("div",{className:"col-span-2 lg:col-span-2",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 mb-6",children:[(0,n.jsx)("div",{className:"size-6 text-primary",children:(0,n.jsx)("svg",{className:"w-full h-full",fill:"currentColor",viewBox:"0 0 48 48",children:(0,n.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,n.jsx)("span",{className:"text-xl font-bold text-text-main",children:s.vQ.name})]}),(0,n.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,n.jsxs)("div",{className:"flex gap-4",children:[(0,n.jsx)("a",{href:"#",className:"text-gray-400 hover:text-primary transition-colors","aria-label":"Twitter",children:(0,n.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,n.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,n.jsx)("a",{href:"#",className:"text-gray-400 hover:text-primary transition-colors","aria-label":"GitHub",children:(0,n.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,n.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,n.jsxs)("div",{children:[(0,n.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Product"}),(0,n.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:o.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)(r(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Resources"}),(0,n.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:l.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)(r(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Company"}),(0,n.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:d.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)(r(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]})]}),(0,n.jsxs)("div",{className:"border-t border-border pt-8 flex flex-col md:flex-row justify-between items-center gap-4",children:[(0,n.jsxs)("p",{className:"text-sm text-text-muted",children:["\xa9 ",new Date().getFullYear()," ",s.vQ.name," Inc. All rights reserved."]}),(0,n.jsxs)("div",{className:"flex gap-6 text-sm text-text-muted",children:[(0,n.jsx)(r(),{href:"#",className:"hover:text-primary transition-colors",children:"Privacy Policy"}),(0,n.jsx)(r(),{href:"#",className:"hover:text-primary transition-colors",children:"Terms of Service"})]})]})]})})}},92542:(e,t,a)=>{a.d(t,{default:()=>o});var n=a(95155),i=a(31474);let r={primary:"bg-brand-500 hover:bg-brand-600 text-white shadow-sm disabled:bg-surface-3 disabled:text-text-disabled",secondary:"bg-surface-2 hover:bg-surface-3 text-text-main border border-border disabled:text-text-disabled",outline:"border border-border text-text-main hover:bg-surface-2 hover:border-brand-500/40 disabled:text-text-disabled",ghost:"text-text-muted hover:bg-surface-2 hover:text-text-main disabled:text-text-disabled",danger:"bg-red-500 hover:bg-red-600 text-white shadow-sm disabled:bg-surface-3 disabled:text-text-disabled",success:"bg-green-600 hover:bg-green-700 text-white shadow-sm disabled:bg-surface-3 disabled:text-text-disabled"},s={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]",stretch:"h-auto px-4 text-sm rounded-[10px]"};function o({children:e,variant:t="primary",size:a="md",icon:l,iconRight:d,disabled:c=!1,loading:u=!1,fullWidth:m=!1,className:x,...p}){return(0,n.jsxs)("button",{className:(0,i.cn)("inline-flex items-center justify-center gap-2 font-semibold whitespace-nowrap transition-all duration-150 ease-out cursor-pointer","active:scale-[0.97] disabled:cursor-not-allowed disabled:active:scale-100",r[t],s[a],m&&"w-full",x),disabled:c||u,...p,children:[u?(0,n.jsx)("span",{className:"material-symbols-outlined animate-spin text-[18px]",children:"progress_activity"}):l?(0,n.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:l}):null,e,d&&!u&&(0,n.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:d})]})}},92622:(e,t,a)=>{a.d(t,{default:()=>j});var n=a(95155),i=a(12115),r=a(14051),s=a.n(r),o=a(98500),l=a.n(o),d=a(73321),c=a(31474),u=a(90620),m=a(88105),x=a(11059),p=a(72767),h=a(92542),g=a(81127);let f=["embedding","image","video","tts","stt","systemone"],b="/dashboard/media-providers/web",v=[{href:"/dashboard/endpoint",label:"Endpoint & Key",icon:"api"},{href:"/dashboard/providers",label:"Providers",icon:"dns"},{href:"/dashboard/combos",label:"Combo & Vision Adapter",icon:"layers"},{href:"/dashboard/arena",label:"Model Arena",icon:"swords"},{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/addons",label:"Add-on Skills",icon:"auto_fix_high"},{href:"/dashboard/cli-tools",label:"CLI Tools",icon:"terminal"}],k=[{href:"/dashboard/console-log",label:"Console Log",icon:"monitor"},{href:"/dashboard/error-log",label:"Error Log",icon:"error"},{href:"/dashboard/translator",label:"Translator",icon:"translate"}],y=[{href:"/dashboard/system-status",label:"System Status",icon:"monitoring"},{href:"/dashboard/proxy-pools",label:"Proxy Pools",icon:"lan"},{href:"/dashboard/skills",label:"Skills",icon:"extension"}];function j({onClose:e}){let t=(0,d.usePathname)(),[a,r]=(0,i.useState)(!1),[s,o]=(0,i.useState)(!1),[N,C]=(0,i.useState)(null),[S,O]=(0,i.useState)(!1),[W,F]=(0,i.useState)(!1),[I,T]=(0,i.useState)(0),[P,E]=(0,i.useState)(!1),{copied:A,copy:_}=(0,x.C)(2e3),$=u.h0.installCmdLatest;(0,i.useEffect)(()=>{p.A.getState().fetchSettings().then(e=>{e?.enableTranslator&&E(!0)})},[]),(0,i.useEffect)(()=>{let e=setTimeout(()=>{fetch("/api/version").then(e=>e.json()).then(e=>{e.hasUpdate&&C(e)}).catch(()=>{})},2500);return()=>clearTimeout(e)},[]);let z=e=>"/dashboard/endpoint"===e?"/dashboard"===t||t.startsWith("/dashboard/endpoint"):t.startsWith(e),D=async()=>{try{await navigator.clipboard.writeText($)}catch{}_($);let e=u.h0.shutdownCountdownSec;T(e);let t=setInterval(()=>{T(e-=1),e<=0&&(clearInterval(t),fetch("/api/version/shutdown",{method:"POST"}).catch(()=>{}),o(!0))},1e3)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("aside",{className:"flex w-72 flex-col border-r border-border-subtle bg-vibrancy backdrop-blur-xl transition-colors duration-300 h-full",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 px-6 pt-5 pb-2",children:[(0,n.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#FF5F56]"}),(0,n.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#FFBD2E]"}),(0,n.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#27C93F]"})]}),(0,n.jsxs)("div",{className:"px-6 py-4 flex flex-col gap-2",children:[(0,n.jsxs)(l(),{href:"/dashboard",className:"flex items-center gap-3",children:[(0,n.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)]",children:(0,n.jsx)("span",{className:"material-symbols-outlined text-white text-[20px]",children:"hub"})}),(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)("h1",{className:"text-lg font-semibold tracking-tight text-text-main",children:u.vQ.name}),(0,n.jsxs)("span",{className:"text-xs text-text-muted",children:["v",u.vQ.version]})]})]}),N&&(0,n.jsxs)("div",{className:"flex flex-col gap-1.5 rounded p-1 -m-1",children:[(0,n.jsxs)("span",{className:"text-xs font-semibold text-green-600 dark:text-amber-500",children:["↑ New version available: v",N.latestVersion]}),(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,n.jsx)("button",{onClick:()=>O(!0),className:"px-2 py-2 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,n.jsx)("button",{onClick:()=>_($),title:"Copy install command",className:"flex-1 text-left hover:opacity-80 transition-opacity cursor-pointer min-w-0 py-2",children:(0,n.jsx)("code",{className:"block text-[10px] text-green-600/80 dark:text-amber-400/70 font-mono truncate",children:A?"✓ copied!":$})})]})]})]}),(0,n.jsxs)("nav",{className:"flex-1 px-4 py-2 space-y-0.5 overflow-y-auto custom-scrollbar",children:[v.map(t=>(0,n.jsxs)(l(),{href:t.href,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",z(t.href)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,n.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[18px]",z(t.href)?"fill-1":"group-hover:text-primary transition-colors"),children:t.icon}),(0,n.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href)),(0,n.jsxs)("div",{className:"pt-3 mt-2 space-y-0.5",children:[(0,n.jsx)("p",{className:"px-4 text-xs font-semibold text-text-muted/60 uppercase tracking-wider mb-2",children:"System"}),(0,n.jsxs)("button",{onClick:()=>r(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,n.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"perm_media"}),(0,n.jsx)("span",{className:"text-[13px] font-medium flex-1 text-left",children:"Media Providers"}),m.rj.some(e=>f.includes(e.id)&&e.isNew)&&(0,n.jsx)("span",{className:"text-[9px] font-bold uppercase text-primary bg-primary/10 px-1.5 py-0.5 rounded",children:"New"}),(0,n.jsx)("span",{className:"material-symbols-outlined text-[14px] transition-transform",style:{transform:a?"rotate(180deg)":"rotate(0deg)"},children:"expand_more"})]}),a&&(0,n.jsxs)("div",{className:"pl-4",children:[m.rj.filter(e=>f.includes(e.id)).map(a=>(0,n.jsxs)(l(),{href:`/dashboard/media-providers/${a.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/${a.id}`)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:a.icon}),(0,n.jsx)("span",{className:"text-sm",children:a.label}),a.isNew&&(0,n.jsx)("span",{className:"text-[9px] font-bold uppercase text-primary bg-primary/10 px-1.5 py-0.5 rounded",children:"New"})]},a.id)),(0,n.jsxs)(l(),{href:b,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-4 py-1 rounded-lg transition-all group",t.startsWith(b)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"travel_explore"}),(0,n.jsx)("span",{className:"text-sm",children:"Web Fetch & Search"})]},"web")]}),y.map(t=>(0,n.jsxs)(l(),{href:t.href,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",z(t.href)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,n.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[18px]",z(t.href)?"fill-1":"group-hover:text-primary transition-colors"),children:t.icon}),(0,n.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href)),k.map(t=>"/dashboard/translator"!==t.href||P?(0,n.jsxs)(l(),{href:t.href,onClick:e,className:(0,c.cn)("flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",z(t.href)?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,n.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[18px]",z(t.href)?"fill-1":"group-hover:text-primary transition-colors"),children:t.icon}),(0,n.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href):null),(0,n.jsxs)(l(),{href:"/dashboard/profile",onClick:e,className:(0,c.cn)("flex items-center gap-3 px-3 py-1 rounded-lg transition-all group",z("/dashboard/profile")?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),children:[(0,n.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[18px]",z("/dashboard/profile")?"fill-1":"group-hover:text-primary transition-colors"),children:"settings"}),(0,n.jsx)("span",{className:"text-[13px] font-medium",children:"Settings"})]})]})]})]}),(0,n.jsx)(g.ConfirmModal,{isOpen:S,onClose:()=>O(!1),onConfirm:()=>{O(!1),F(!0)},title:"Update 9Router",message:`Show install command for v${N?.latestVersion||""}? You can copy it and shutdown to install manually.`,confirmText:"Show Command",cancelText:"Cancel",variant:"primary"}),(s||W)&&(0,n.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/80 backdrop-blur-sm p-6",children:W?(0,n.jsx)(w,{latestVersion:N?.latestVersion,installCmd:$,copied:A,onCopyAndShutdown:D,onCancel:()=>{F(!1),T(0)},countdown:I,isDisconnected:s}):(0,n.jsxs)("div",{className:"text-center p-8",children:[(0,n.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,n.jsx)("span",{className:"material-symbols-outlined text-[32px]",children:"power_off"})}),(0,n.jsx)("h2",{className:"text-xl font-semibold text-white mb-2",children:"Server Disconnected"}),(0,n.jsx)("p",{className:"text-text-muted mb-6",children:"The proxy server has been stopped."}),(0,n.jsx)(h.default,{variant:"secondary",onClick:()=>globalThis.location.reload(),children:"Reload Page"})]})})]})}function w({latestVersion:e,installCmd:t,copied:a,onCopyAndShutdown:i,onCancel:r,countdown:s,isDisconnected:o}){let l=s>0;return(0,n.jsxs)("div",{className:"w-full max-w-lg rounded-xl bg-neutral-900/95 border border-white/10 p-6 text-white",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,n.jsx)("div",{className:"flex items-center justify-center size-11 shrink-0 rounded-full bg-amber-500/20 text-amber-400",children:(0,n.jsx)("span",{className:"material-symbols-outlined text-[24px]",children:"content_copy"})}),(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsxs)("h2",{className:"text-lg font-semibold",children:["Update 9Router",e?` to v${e}`:""]}),(0,n.jsx)("p",{className:"text-xs text-white/60",children:o?"Server stopped. Paste the command into a terminal to install.":l?`Command copied. Server will stop in ${s}s...`:"Click the button below to copy the install command and shutdown."})]})]}),(0,n.jsx)("p",{className:"text-sm text-white/80 mb-2",children:"Install command:"}),(0,n.jsx)("div",{className:"w-full px-3 py-2 rounded bg-white/5 mb-4",children:(0,n.jsx)("code",{className:"text-xs font-mono text-amber-400 break-all",children:t})}),(0,n.jsxs)("ol",{className:"text-xs text-white/70 space-y-1 list-decimal list-inside mb-4",children:[(0,n.jsxs)("li",{children:["Click ",(0,n.jsx)("strong",{children:"Copy & Shutdown"})," below."]}),(0,n.jsx)("li",{children:"Paste the command into your terminal and press Enter."}),(0,n.jsxs)("li",{children:["Run ",(0,n.jsx)("code",{className:"px-1 rounded bg-white/10 text-green-400",children:"9router"})," again after install."]})]}),o?(0,n.jsx)(h.default,{variant:"secondary",fullWidth:!0,onClick:()=>globalThis.location.reload(),children:"Reload Page"}):(0,n.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,n.jsx)(h.default,{variant:"secondary",onClick:r,disabled:l,children:"Cancel"}),(0,n.jsx)(h.default,{variant:"primary",fullWidth:!0,className:"sm:w-auto",onClick:i,disabled:l,children:a?"✓ Copied — shutting down...":l?`Shutting down in ${s}s`:"Copy & Shutdown"})]})]})}j.propTypes={onClose:s().func},w.propTypes={latestVersion:s().string,installCmd:s().string.isRequired,copied:s().bool,onCopyAndShutdown:s().func.isRequired,onCancel:s().func.isRequired,countdown:s().number,isDisconnected:s().bool}},93308:(e,t,a)=>{a.d(t,{CL:()=>r,QC:()=>s,Xn:()=>i,YZ:()=>n});let n=["en","vi","zh-CN","zh-TW","ja","pt-BR","pt-PT","ko","es","de","fr","he","ar","ru","pl","cs","nl","tr","uk","tl","id","km","th","hi","bn","ur","ro","sv","it","el","hu","fi","da","no","fa"],i="en",r="locale";function s(e){return"zh"===e||"zh-CN"===e?"zh-CN":"en"===e?"en":"vi"===e?"vi":"zh-TW"===e?"zh-TW":"ja"===e?"ja":"pt-BR"===e?"pt-BR":"pt-PT"===e?"pt-PT":"ko"===e?"ko":"es"===e?"es":"de"===e?"de":"fr"===e?"fr":"he"===e?"he":"ar"===e?"ar":"ru"===e?"ru":"pl"===e?"pl":"cs"===e?"cs":"nl"===e?"nl":"tr"===e?"tr":"uk"===e?"uk":"tl"===e?"tl":"id"===e?"id":"th"===e?"th":"km"===e?"km":"hi"===e?"hi":"bn"===e?"bn":"ur"===e?"ur":"ro"===e?"ro":"sv"===e?"sv":"it"===e?"it":"el"===e?"el":"hu"===e?"hu":"fi"===e?"fi":"da"===e?"da":"no"===e?"no":"fa"===e?"fa":i}},94230:(e,t,a)=>{a.d(t,{default:()=>d});var n=a(95155),i=a(12115),r=a(14051),s=a.n(r),o=a(35497),l=a(11059);function d({isOpen:e,provider:t,onSuccess:a,onClose:r}){let[s,c]=(0,i.useState)("loading"),[u,m]=(0,i.useState)(""),[x,p]=(0,i.useState)(null),[h,g]=(0,i.useState)(""),[f,b]=(0,i.useState)(null),{copied:v,copy:k}=(0,l.C)(),y=(0,i.useRef)(!1);(0,i.useEffect)(()=>{e||(y.current=!1)},[e]),(0,i.useEffect)(()=>{e&&t&&(async()=>{try{b(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);p(a),m(a.authUrl),c("input"),y.current||(y.current=!0,window.open(a.authUrl,"_blank"))}catch(e){b(e.message),c("error")}})()},[e,t]);let j=async()=>{try{let e;b(null);try{e=new URL(h)}catch(e){throw Error("Invalid callback URL format")}let n=e.searchParams.get("code");e.searchParams.get("state");let i=e.searchParams.get("error");if(i)throw Error(e.searchParams.get("error_description")||i);if(!n)throw Error("No authorization code found in URL");let r=await fetch("/api/oauth/kiro/social-exchange",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:n,codeVerifier:x.codeVerifier,provider:t})}),s=await r.json();if(!r.ok)throw Error(s.error);c("success"),a?.()}catch(e){b(e.message),c("error")}},w="google"===t?"Google":"GitHub";return(0,n.jsx)(o.aF,{isOpen:e,title:`Connect Kiro via ${w}`,onClose:r,size:"lg",children:(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:["loading"===s&&(0,n.jsxs)("div",{className:"text-center py-6",children:[(0,n.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-primary/10 flex items-center justify-center",children:(0,n.jsx)("span",{className:"material-symbols-outlined text-3xl text-primary animate-spin",children:"progress_activity"})}),(0,n.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Initializing..."}),(0,n.jsxs)("p",{className:"text-sm text-text-muted",children:["Setting up ",w," authentication"]})]}),"input"===s&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm font-medium mb-2",children:"Step 1: Open this URL in your browser"}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(o.pd,{value:u,readOnly:!0,className:"flex-1 font-mono text-xs"}),(0,n.jsx)(o.$n,{variant:"secondary",icon:"auth_url"===v?"check":"content_copy",onClick:()=>k(u,"auth_url"),children:"Copy"})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm font-medium mb-2",children:"Step 2: Paste the callback URL here"}),(0,n.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"After authorization, copy the full URL from your browser address bar."}),(0,n.jsx)(o.pd,{value:h,onChange:e=>g(e.target.value),placeholder:"kiro://kiro.kiroAgent/authenticate-success?code=...",className:"font-mono text-xs"})]})]}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(o.$n,{onClick:j,fullWidth:!0,disabled:!h,children:"Connect"}),(0,n.jsx)(o.$n,{onClick:r,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"success"===s&&(0,n.jsxs)("div",{className:"text-center py-6",children:[(0,n.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,n.jsx)("span",{className:"material-symbols-outlined text-3xl text-green-600",children:"check_circle"})}),(0,n.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connected Successfully!"}),(0,n.jsxs)("p",{className:"text-sm text-text-muted mb-4",children:["Your Kiro account via ",w," has been connected."]}),(0,n.jsx)(o.$n,{onClick:r,fullWidth:!0,children:"Done"})]}),"error"===s&&(0,n.jsxs)("div",{className:"text-center py-6",children:[(0,n.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,n.jsx)("span",{className:"material-symbols-outlined text-3xl text-red-600",children:"error"})}),(0,n.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connection Failed"}),(0,n.jsx)("p",{className:"text-sm text-red-600 mb-4",children:f}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(o.$n,{onClick:()=>c("input"),variant:"secondary",fullWidth:!0,children:"Try Again"}),(0,n.jsx)(o.$n,{onClick:r,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})})}d.propTypes={isOpen:s().bool.isRequired,provider:s().oneOf(["google","github"]).isRequired,onSuccess:s().func,onClose:s().func.isRequired}},95088:(e,t,a)=>{a.d(t,{default:()=>d});var n=a(95155),i=a(12115),r=a(14051),s=a.n(r),o=a(35497);let l="https://gitlab.com";function d({isOpen:e,providerInfo:t,onSuccess:a,onClose:r}){let s,[c,u]=(0,i.useState)(null),[m,x]=(0,i.useState)(l),[p,h]=(0,i.useState)(""),[g,f]=(0,i.useState)(""),[b,v]=(0,i.useState)(""),[k,y]=(0,i.useState)(!1),[j,w]=(0,i.useState)(null),[N,C]=(0,i.useState)(!1),[S,O]=(0,i.useState)(null),W=()=>{u(null),x(l),h(""),f(""),v(""),w(null),y(!1),C(!1),O(null),r()},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:m.trim()||l})}),t=await e.json();if(!e.ok)throw Error(t.error||"Authentication failed");a?.(),W()}catch(e){w(e.message)}finally{y(!1)}};return e?N&&S?(0,n.jsx)(o.LF,{isOpen:!0,provider:"gitlab",providerInfo:t,oauthMeta:S,onSuccess:()=>{a?.(),W()},onClose:()=>{C(!1),O(null)}}):(0,n.jsx)(o.aF,{isOpen:e,title:"Connect GitLab Duo",onClose:W,size:"lg",children:(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[!c&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"text-sm text-text-muted",children:"Choose how to authenticate with GitLab Duo:"}),(0,n.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,n.jsxs)("button",{onClick:()=>u("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,n.jsx)("span",{className:"material-symbols-outlined text-2xl text-primary",children:"lock_open"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm font-medium",children:"OAuth App"}),(0,n.jsx)("p",{className:"text-xs text-text-muted",children:"Use a GitLab OAuth application"})]})]}),(0,n.jsxs)("button",{onClick:()=>u("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,n.jsx)("span",{className:"material-symbols-outlined text-2xl text-primary",children:"key"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm font-medium",children:"Personal Access Token"}),(0,n.jsx)("p",{className:"text-xs text-text-muted",children:"Use a GitLab PAT with api scope"})]})]})]})]}),"oauth"===c&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("p",{className:"text-xs text-text-muted",children:["Create an OAuth app at"," ",(0,n.jsx)("a",{href:`${m.trim()||l}/-/profile/applications`,target:"_blank",rel:"noreferrer",className:"text-primary underline",children:"GitLab Applications"})," ","with redirect URI"," ",(0,n.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:(s=window.location.port||("https:"===window.location.protocol?"443":"80"),`http://localhost:${s}/callback`)})]}),(0,n.jsx)(o.pd,{label:"GitLab Base URL",value:m,onChange:e=>x(e.target.value),placeholder:l}),(0,n.jsx)(o.pd,{label:"Client ID",value:p,onChange:e=>h(e.target.value),placeholder:"Your OAuth application client ID"}),(0,n.jsx)(o.pd,{label:"Client Secret (optional for PKCE)",value:g,onChange:e=>f(e.target.value),placeholder:"Leave empty for public PKCE app"}),j&&(0,n.jsx)("p",{className:"text-sm text-red-500",children:j}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(o.$n,{onClick:()=>{p.trim()?(w(null),O({baseUrl:m.trim()||l,clientId:p.trim(),clientSecret:g.trim()}),C(!0)):w("Client ID is required")},fullWidth:!0,disabled:!p.trim(),children:"Authorize"}),(0,n.jsx)(o.$n,{onClick:()=>{u(null),w(null)},variant:"ghost",fullWidth:!0,children:"Back"})]})]}),"pat"===c&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("p",{className:"text-xs text-text-muted",children:["Create a PAT at"," ",(0,n.jsx)("a",{href:`${m.trim()||l}/-/user_settings/personal_access_tokens`,target:"_blank",rel:"noreferrer",className:"text-primary underline",children:"GitLab Access Tokens"})," ","with scopes: ",(0,n.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"api"}),","," ",(0,n.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"read_user"}),", and"," ",(0,n.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"ai_features"}),"."]}),(0,n.jsx)(o.pd,{label:"GitLab Base URL",value:m,onChange:e=>x(e.target.value),placeholder:l}),(0,n.jsx)(o.pd,{label:"Personal Access Token",value:b,onChange:e=>v(e.target.value),placeholder:"glpat-xxxxxxxxxxxxxxxxxxxx",type:"password"}),j&&(0,n.jsx)("p",{className:"text-sm text-red-500",children:j}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(o.$n,{onClick:F,fullWidth:!0,disabled:!b.trim()||k,loading:k,children:"Connect"}),(0,n.jsx)(o.$n,{onClick:()=>{u(null),w(null)},variant:"ghost",fullWidth:!0,children:"Back"})]})]})]})}):null}d.propTypes={isOpen:s().bool.isRequired,providerInfo:s().shape({name:s().string}),onSuccess:s().func,onClose:s().func.isRequired}},96748:(e,t,a)=>{a.d(t,{default:()=>d});var n=a(95155),i=a(12115),r=a(14051),s=a.n(r),o=a(35497);let l="https://api.openai.com/v1";function d({isOpen:e,onClose:t,onCreated:a,onSaved:r,node:s}){let c=!!s,[u,m]=(0,i.useState)({name:"",prefix:"",baseUrl:l}),[x,p]=(0,i.useState)(!1),[h,g]=(0,i.useState)(""),[f,b]=(0,i.useState)(""),[v,k]=(0,i.useState)(!1),[y,j]=(0,i.useState)(null);(0,i.useEffect)(()=>{e&&(j(null),g(""),b(""),c?m({name:s.name||"",prefix:s.prefix||"",baseUrl:s.baseUrl||l}):m({name:"",prefix:"",baseUrl:l}))},[e,c,s]);let w=async()=>{if(u.name.trim()&&u.prefix.trim()&&u.baseUrl.trim()){p(!0);try{let e=c?`/api/provider-nodes/${s.id}`:"/api/provider-nodes",t=c?"PUT":"POST",n={name:u.name,prefix:u.prefix,baseUrl:u.baseUrl};c||(n.type="custom-embedding");let i=await fetch(e,{method:t,headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}),o=await i.json();i.ok&&(c?r?.(o.node):a?.(o.node))}catch(e){console.log("Error saving custom embedding node:",e)}finally{p(!1)}}},N=async()=>{k(!0);try{let e=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:u.baseUrl,apiKey:h,type:"custom-embedding",modelId:f.trim()||void 0})}),t=await e.json();j(t)}catch{j({valid:!1,error:"Network error"})}finally{k(!1)}};return(0,n.jsx)(o.aF,{isOpen:e,title:c?"Edit Custom Embedding":"Add Custom Embedding",onClose:t,children:(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsx)(o.pd,{label:"Name",value:u.name,onChange:e=>m({...u,name:e.target.value}),placeholder:"Voyage AI",hint:"Required. A friendly label for this embedding provider."}),(0,n.jsx)(o.pd,{label:"Prefix",value:u.prefix,onChange:e=>m({...u,prefix:e.target.value}),placeholder:"voyage",hint:"Required. Used as the provider prefix for model IDs (e.g. voyage/voyage-3)."}),(0,n.jsx)(o.pd,{label:"Base URL",value:u.baseUrl,onChange:e=>m({...u,baseUrl:e.target.value}),placeholder:"https://api.voyageai.com/v1",hint:"Most embedding APIs are OpenAI-compatible: Voyage, Cohere, Jina, Mistral, Together..."}),(0,n.jsx)(o.pd,{label:"API Key (for Check)",type:"password",value:h,onChange:e=>g(e.target.value)}),(0,n.jsx)(o.pd,{label:"Model ID (for Check)",value:f,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,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)(o.$n,{onClick:N,disabled:!h||!f.trim()||v||!u.baseUrl.trim(),variant:"secondary",children:v?"Checking...":"Check"}),(()=>{if(!y)return null;let{valid:e,error:t,dimensions:a}=y;return e?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Ex,{variant:"success",children:"Valid"}),a&&(0,n.jsxs)("span",{className:"text-sm text-text-muted",children:[a," dims"]})]}):(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsx)(o.Ex,{variant:"error",children:"Invalid"}),t&&(0,n.jsx)("span",{className:"text-sm text-red-500",children:t})]})})()]}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(o.$n,{onClick:w,fullWidth:!0,disabled:!u.name.trim()||!u.prefix.trim()||!u.baseUrl.trim()||x,children:x?c?"Saving...":"Creating...":c?"Save":"Create"}),(0,n.jsx)(o.$n,{onClick:t,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})}d.propTypes={isOpen:s().bool.isRequired,onClose:s().func.isRequired,onCreated:s().func,onSaved:s().func,node:s().shape({id:s().string,name:s().string,prefix:s().string,baseUrl:s().string})}},97677:(e,t,a)=>{a.d(t,{default:()=>i});var n=a(95155);function i({text:e,children:t,position:a="top",color:r}){let s=r?"":"bg-gray-900";return(0,n.jsxs)("div",{className:"relative inline-flex group/tt",children:[t,(0,n.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"}[a]} z-50 w-max max-w-56 rounded px-2 py-1 text-[11px] leading-snug ${s} text-white opacity-0 group-hover/tt:opacity-100 transition-opacity duration-150 whitespace-normal`,style:r?{backgroundColor:r}:{},children:e})]})}},98542:(e,t,a)=>{a.d(t,{default:()=>r});var n=a(95155),i=a(31474);function r({checked:e=!1,onChange:t,label:a,description:s,disabled:o=!1,size:l="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,n.jsxs)("div",{className:(0,i.cn)("flex items-center gap-3",o&&"opacity-50 cursor-not-allowed",d),children:[(0,n.jsx)("button",{type:"button",role:"switch","aria-checked":e,disabled:o,onClick:()=>{!o&&t&&t(!e)},className:(0,i.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[l].track,o&&"cursor-not-allowed"),children:(0,n.jsx)("span",{className:(0,i.cn)("pointer-events-none inline-block rounded-full bg-white shadow-sm","transform transition duration-200 ease-in-out",e?c[l].translate:"translate-x-0.5",c[l].thumb,"mt-0.5")})}),(a||s)&&(0,n.jsxs)("div",{className:"flex flex-col",children:[a&&(0,n.jsx)("span",{className:"text-sm font-medium text-text-main",children:a}),s&&(0,n.jsx)("span",{className:"text-xs text-text-muted",children:s})]})]})}}}]);
|