tokenhop 1.0.0 → 1.0.3
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 +4 -4
- package/app/.next-cli-build/build-manifest.json +3 -3
- package/app/.next-cli-build/prerender-manifest.json +3 -3
- package/app/.next-cli-build/react-loadable-manifest.json +43 -43
- package/app/.next-cli-build/required-server-files.json +1 -0
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/[...missing]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/[...missing]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/[...missing]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- 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/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/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/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/settings/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/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/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/ui-kit/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/ui-kit/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/ui-kit/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.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/auth/login/route.js.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tool-settings/[toolId]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tool-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +4 -4
- 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.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/codex-settings/route.js +3 -3
- 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 +1 -1
- 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 +2 -2
- 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/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 +2 -2
- 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 +2 -2
- 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/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-settings/route.js +3 -3
- 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 +3 -3
- 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/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/combos/[id]/headroom/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/headroom/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/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/test/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/gateway/status/route.js.nft.json +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.nft.json +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.nft.json +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.nft.json +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/home/live-routes/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/home/quota/route.js +1 -1
- package/app/.next-cli-build/server/app/api/home/quota/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/home/summary/route.js.nft.json +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.nft.json +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.nft.json +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.nft.json +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.nft.json +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.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.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.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.nft.json +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.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.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.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/xiaomi-mimo/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +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.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]/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/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.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.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.nft.json +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.nft.json +1 -1
- 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/route.js.nft.json +1 -1
- 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.nft.json +1 -1
- 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.nft.json +1 -1
- 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.nft.json +1 -1
- 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.nft.json +1 -1
- 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/config/export/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/config/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/config/import/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/environment/route.js.nft.json +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.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/shell/savings-milestone/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/shell/summary/route.js +1 -1
- package/app/.next-cli-build/server/app/api/shell/summary/route.js.nft.json +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/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 +1 -1
- 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.nft.json +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 +9 -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 +9 -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.nft.json +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.nft.json +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.nft.json +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 +2 -2
- 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]/codex-reset-credits/route.js +9 -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 +9 -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.nft.json +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/last-activity/route.js.nft.json +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.nft.json +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/savings/route.js.nft.json +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.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 +9 -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 +2 -2
- 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 +2 -2
- 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/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/shutdown/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/basic-chat.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +11 -11
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +11 -11
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +11 -11
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +11 -11
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +11 -11
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +11 -11
- 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 +9 -9
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +9 -9
- 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 +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +11 -11
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +11 -11
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +11 -11
- 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/media-providers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers.rsc +10 -10
- package/app/.next-cli-build/server/app/dashboard/media-providers.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/__PAGE__.segment.rsc +10 -10
- package/app/.next-cli-build/server/app/dashboard/media-providers.segments/_full.segment.rsc +10 -10
- package/app/.next-cli-build/server/app/dashboard/media-providers.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +11 -11
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +11 -11
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +11 -11
- 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 +10 -10
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +10 -10
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +10 -10
- 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 +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +11 -11
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +11 -11
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +11 -11
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +10 -10
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +10 -10
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +10 -10
- 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 +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +10 -10
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +10 -10
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +10 -10
- 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 +11 -11
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +11 -11
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +11 -11
- 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/settings.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings.rsc +11 -11
- package/app/.next-cli-build/server/app/dashboard/settings.segments/!KGRhc2hib2FyZCk/dashboard/settings/__PAGE__.segment.rsc +11 -11
- package/app/.next-cli-build/server/app/dashboard/settings.segments/_full.segment.rsc +11 -11
- package/app/.next-cli-build/server/app/dashboard/settings.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/skills.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 +11 -11
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +11 -11
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +11 -11
- 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 +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +11 -11
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +11 -11
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +11 -11
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/ui-kit.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/ui-kit.rsc +10 -10
- package/app/.next-cli-build/server/app/dashboard/ui-kit.segments/!KGRhc2hib2FyZCk/dashboard/ui-kit/__PAGE__.segment.rsc +10 -10
- package/app/.next-cli-build/server/app/dashboard/ui-kit.segments/_full.segment.rsc +10 -10
- package/app/.next-cli-build/server/app/dashboard/ui-kit.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 +11 -11
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +11 -11
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +11 -11
- 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 +11 -11
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +11 -11
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +11 -11
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
- 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 +6 -6
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +6 -6
- 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 +6 -6
- 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.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/skills/[...slug]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +4 -4
- package/app/.next-cli-build/server/chunks/1004.js +1 -0
- package/app/.next-cli-build/server/chunks/1152.js +1 -1
- package/app/.next-cli-build/server/chunks/1215.js +1 -0
- package/app/.next-cli-build/server/chunks/1336.js +1 -1
- package/app/.next-cli-build/server/chunks/1432.js +1 -1
- package/app/.next-cli-build/server/chunks/1533.js +1 -1
- package/app/.next-cli-build/server/chunks/2217.js +1 -1
- package/app/.next-cli-build/server/chunks/2380.js +7 -7
- package/app/.next-cli-build/server/chunks/24.js +1 -1
- package/app/.next-cli-build/server/chunks/2460.js +1 -1
- package/app/.next-cli-build/server/chunks/257.js +10 -0
- package/app/.next-cli-build/server/chunks/2592.js +1 -1
- package/app/.next-cli-build/server/chunks/2705.js +9 -0
- package/app/.next-cli-build/server/chunks/318.js +9 -16
- package/app/.next-cli-build/server/chunks/3593.js +1 -1
- package/app/.next-cli-build/server/chunks/3919.js +1 -1
- package/app/.next-cli-build/server/chunks/3943.js +1 -1
- package/app/.next-cli-build/server/chunks/4123.js +1 -1
- package/app/.next-cli-build/server/chunks/4125.js +1 -1
- package/app/.next-cli-build/server/chunks/4334.js +1 -1
- package/app/.next-cli-build/server/chunks/4406.js +2 -2
- package/app/.next-cli-build/server/chunks/4521.js +1 -1
- package/app/.next-cli-build/server/chunks/4730.js +1 -1
- package/app/.next-cli-build/server/chunks/4780.js +1 -1
- package/app/.next-cli-build/server/chunks/5055.js +1 -0
- package/app/.next-cli-build/server/chunks/5230.js +1 -0
- package/app/.next-cli-build/server/chunks/{1026.js → 5260.js} +1 -1
- package/app/.next-cli-build/server/chunks/5335.js +1 -0
- package/app/.next-cli-build/server/chunks/5559.js +9 -0
- package/app/.next-cli-build/server/chunks/5615.js +1 -1
- package/app/.next-cli-build/server/chunks/5649.js +1 -0
- package/app/.next-cli-build/server/chunks/5765.js +1 -0
- package/app/.next-cli-build/server/chunks/5827.js +1 -0
- package/app/.next-cli-build/server/chunks/5869.js +9 -0
- package/app/.next-cli-build/server/chunks/5908.js +1 -0
- package/app/.next-cli-build/server/chunks/620.js +1 -0
- package/app/.next-cli-build/server/chunks/6252.js +1 -1
- package/app/.next-cli-build/server/chunks/6328.js +1 -0
- package/app/.next-cli-build/server/chunks/6355.js +1 -0
- package/app/.next-cli-build/server/chunks/6493.js +1 -0
- package/app/.next-cli-build/server/chunks/6496.js +1 -1
- package/app/.next-cli-build/server/chunks/7211.js +1 -1
- package/app/.next-cli-build/server/chunks/7485.js +9 -0
- package/app/.next-cli-build/server/chunks/7616.js +1 -1
- package/app/.next-cli-build/server/chunks/7695.js +1 -0
- package/app/.next-cli-build/server/chunks/7716.js +1 -1
- package/app/.next-cli-build/server/chunks/7819.js +1 -1
- package/app/.next-cli-build/server/chunks/7828.js +1 -1
- package/app/.next-cli-build/server/chunks/8171.js +1 -1
- package/app/.next-cli-build/server/chunks/8255.js +1 -1
- package/app/.next-cli-build/server/chunks/8261.js +1 -0
- package/app/.next-cli-build/server/chunks/8416.js +1 -1
- package/app/.next-cli-build/server/chunks/878.js +1 -0
- package/app/.next-cli-build/server/chunks/8895.js +13 -13
- package/app/.next-cli-build/server/chunks/8954.js +1 -0
- package/app/.next-cli-build/server/chunks/8988.js +1 -0
- package/app/.next-cli-build/server/chunks/9016.js +9 -0
- package/app/.next-cli-build/server/chunks/9243.js +1 -0
- package/app/.next-cli-build/server/chunks/9326.js +1 -0
- package/app/.next-cli-build/server/chunks/9343.js +1 -1
- package/app/.next-cli-build/server/chunks/9421.js +1 -1
- package/app/.next-cli-build/server/chunks/9489.js +3 -0
- package/app/.next-cli-build/server/chunks/9578.js +1 -1
- package/app/.next-cli-build/server/chunks/9594.js +1 -0
- package/app/.next-cli-build/server/chunks/965.js +1 -1
- package/app/.next-cli-build/server/chunks/9899.js +1 -1
- package/app/.next-cli-build/server/instrumentation.js +1 -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.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/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/{198-145d0ed2ec3c54f5.js → 198-7c5bbea89ef8bc14.js} +1 -1
- package/app/.next-cli-build/static/chunks/{3670-e7a22341025498f8.js → 3670-d6dc44bc181c9b8a.js} +1 -1
- package/app/.next-cli-build/static/chunks/5014-a5d960f4c6bc6297.js +1 -0
- package/app/.next-cli-build/static/chunks/{6174.18e2c57e892d721a.js → 6174.a18fedfa3d765b1e.js} +1 -1
- package/app/.next-cli-build/static/chunks/6448-71a8c2ac8d9ecc09.js +1 -0
- package/app/.next-cli-build/static/chunks/7899-a12f962af02edf7f.js +1 -0
- package/app/.next-cli-build/static/chunks/8105-71d1aea9708976db.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/{page-8147ae8fa9c04381.js → page-42bfc760fbea3b96.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/{page-9cbf62f78701882a.js → page-1df6ad7d9adfc2a7.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-5f91e148400a241b.js → page-59ee0b412f972940.js} +3 -3
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/{page-dac4ab98fc595054.js → page-25d06b77bd1a5edb.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-463f9fa33be9426a.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/{page-06f4e52ee3b63f82.js → page-5bb99ecaf48bde39.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/ui-kit/{page-6c982cc50b6af101.js → page-1bc393f267badc04.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-923f864ec0be0fc8.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/{layout-dd9d1e49b2f69197.js → layout-a94f45e334f1841b.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/landing/{page-02b7bfebd65c41f1.js → page-98f05847e3372b16.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/{layout-c266f1acedfb4651.js → layout-29d74e164758a126.js} +1 -1
- package/app/.next-cli-build/static/chunks/webpack-1e19a4b05298b49d.js +1 -0
- package/app/.next-cli-build/static/css/{9f0b95a0d0bc5e51.css → ffa1d9c3cbb4e959.css} +1 -1
- package/app/custom-server.js +0 -37
- package/app/package.json +4 -5
- package/app/server.js +1 -1
- package/app/src/lib/db/adapters/sqljsAdapter.js +39 -4
- package/app/src/lib/oauth/services/xai.js +19 -12
- package/app/src/shared/services/quotaAutoPing.js +43 -8
- package/app/src/shared/services/quotaSnapshotPoller.js +2 -1
- package/app/src/sse/services/backgroundTokenRefresh.js +13 -1
- package/package.json +1 -1
- package/src/cli/menus/combos.js +3 -1
- package/app/.next-cli-build/server/chunks/1764.js +0 -1
- package/app/.next-cli-build/server/chunks/2384.js +0 -1
- package/app/.next-cli-build/server/chunks/3093.js +0 -1
- package/app/.next-cli-build/server/chunks/3306.js +0 -1
- package/app/.next-cli-build/server/chunks/331.js +0 -1
- package/app/.next-cli-build/server/chunks/3414.js +0 -1
- package/app/.next-cli-build/server/chunks/3558.js +0 -1
- package/app/.next-cli-build/server/chunks/3586.js +0 -1
- package/app/.next-cli-build/server/chunks/3676.js +0 -1
- package/app/.next-cli-build/server/chunks/4037.js +0 -1
- package/app/.next-cli-build/server/chunks/4199.js +0 -2
- package/app/.next-cli-build/server/chunks/4278.js +0 -1
- package/app/.next-cli-build/server/chunks/6158.js +0 -1
- package/app/.next-cli-build/server/chunks/6354.js +0 -1
- package/app/.next-cli-build/server/chunks/6734.js +0 -1
- package/app/.next-cli-build/server/chunks/6769.js +0 -1
- package/app/.next-cli-build/server/chunks/7261.js +0 -1
- package/app/.next-cli-build/server/chunks/7901.js +0 -1
- package/app/.next-cli-build/server/chunks/8372.js +0 -1
- package/app/.next-cli-build/server/chunks/8635.js +0 -3
- package/app/.next-cli-build/server/chunks/994.js +0 -1
- package/app/.next-cli-build/static/chunks/5014-a441cde708542153.js +0 -1
- package/app/.next-cli-build/static/chunks/6448-4eabf683083596e6.js +0 -1
- package/app/.next-cli-build/static/chunks/7899-e6a70cb9d3684f7f.js +0 -1
- package/app/.next-cli-build/static/chunks/8105-5c7e7c73b4bd532d.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-9fadf2c38665c20c.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-7571538830147099.js +0 -1
- package/app/.next-cli-build/static/chunks/webpack-187fa25c98ba99f3.js +0 -1
- /package/app/.next-cli-build/static/{3Qm_WgU2xvFJ9U_G7SKhT → gdVYVwJMM6JES9Y1KPQyw}/_buildManifest.js +0 -0
- /package/app/.next-cli-build/static/{3Qm_WgU2xvFJ9U_G7SKhT → gdVYVwJMM6JES9Y1KPQyw}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var a={};a.id=2825,a.ids=[2825],a.modules={643:a=>{"use strict";a.exports=require("node:perf_hooks")},1708:a=>{"use strict";a.exports=require("node:process")},1932:a=>{"use strict";a.exports=require("url")},3178:(a,b,c)=>{Promise.resolve().then(c.bind(c,87149))},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4573:a=>{"use strict";a.exports=require("node:buffer")},7066:a=>{"use strict";a.exports=require("node:tty")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14985:a=>{"use strict";a.exports=require("dns")},16698:a=>{"use strict";a.exports=require("node:async_hooks")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},19870:(a,b,c)=>{"use strict";c.d(b,{P:()=>f,o:()=>e});var d=c(67484);function e(){let[a,b]=(0,d.useState)(!1);return a}function f(){let[a,b]=(0,d.useState)("/v1");return a}},21820:a=>{"use strict";a.exports=require("os")},22811:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>ab});var d=c(48249),e=c(67484),f=c(90314),g=c(19099),h=c(74812),i=c(25994),j=c(87366),k=c(17660),l=c(73655),m=c(83521),n=c(64909),o=c(45902),p=c(78999),q=c(76674),r=c(60729);function s({hidden:a,tab:b}){return{hidden:a,tab:b,open:!a&&"overview"===b,needsCatchUp:!1}}function t(a,b){switch(b.type){case"visibility":case"tab":{let c="visibility"===b.type?b.hidden:a.hidden,d="tab"===b.type?b.tab:a.tab,e=!c&&"overview"===d;if(c===a.hidden&&d===a.tab)return a;return{hidden:c,tab:d,open:e,needsCatchUp:a.needsCatchUp||!a.open&&e}}case"caughtUp":return a.needsCatchUp?{...a,needsCatchUp:!1}:a;case"reconnected":return a.open&&!a.needsCatchUp?{...a,needsCatchUp:!0}:a;default:throw Error(`streamReducer: unknown action "${b?.type}"`)}}let u={activeRequests:[],lastProvider:"",errorProvider:""};var v=c(23107);c(92592);var w=c(49885),x=c.n(w),y=c(516),z=c(47392),A=c(72161);let B={today:{caption:"vs same time yesterday"},"24h":{caption:"vs prior 24h"},"7d":{caption:"vs prior 7d"},"30d":{caption:"vs prior 30d"},"60d":{caption:"vs prior 60d"},default:{caption:"vs prior period"}},C=a=>String(Math.round(10*a)/10),D=a=>a>=1e9?`${C(a/1e9)}B`:a>=1e6?`${C(a/1e6)}M`:a>=1e3?`${C(a/1e3)}K`:String(Math.round(a)||0),E=a=>a>=1e9?`$${C(a/1e9)}B`:a>=1e6?`$${C(a/1e6)}M`:a>=1e3?`$${C(a/1e3)}k`:`$${(a||0).toFixed(2)}`,F={requests:"text-muted",input:"text-sky",cached:"text-lime-ink",output:"text-coral-ink",cost:"text-muted"};function G({current:a,previous:b,period:c}){let e=function(a,b){if(!Number.isFinite(a)||!Number.isFinite(b)||b<=0)return{kind:"none"};let{delta:c}=(0,A.ul)(a,b),d=Math.round(c/b*100);return{kind:d>0?"up":d<0?"down":"flat",pct:d}}(a,b);if("none"===e.kind)return(0,d.jsx)("span",{className:"text-muted",children:"No prior data"});let f="up"===e.kind?"text-ok":"down"===e.kind?"text-err":"text-muted",g=(B[c]||B.default).caption;return(0,d.jsxs)("span",{children:[(0,d.jsxs)("span",{className:`font-semibold ${f}`,children:[e.pct>0?"+":"",e.pct,"%"]})," ",(0,d.jsx)("span",{className:"text-muted",children:g})]})}function H({stats:a,loading:b=!1,previous:c=null,currentTotals:e=null,buckets:f=null,period:g}){if(b||!a)return(0,d.jsx)("div",{className:"grid min-w-0 grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-4 md:grid-cols-3 lg:grid-cols-5",children:[0,1,2,3,4].map(a=>(0,d.jsx)(h.Skeleton,{className:"h-[104px] rounded-2xl"},a))});let i=a.totalPromptTokens||0,j=a.totalCachedTokens||0,k=a.totalCompletionTokens||0,l=a.totalRequests||0,m=i>0?Math.round(j/i*100):0,n=l>0?Math.round(k/l):0,o=[{eyebrow:"Requests",value:(0,d.jsx)(y.default,{value:l,format:D}),delta:"In this period",field:"requests",current:e?.requests,prev:c?.requests},{eyebrow:"Input tokens",value:(0,d.jsx)("span",{className:"text-sky",children:(0,d.jsx)(y.default,{value:i,format:D})}),delta:"After token saver",field:"input",current:e?.promptTokens,prev:c?.promptTokens},{eyebrow:"Cached",value:(0,d.jsx)("span",{className:"text-lime-ink",children:(0,d.jsx)(y.default,{value:j,format:D})}),delta:`${m}% of input`,field:"cached",current:e?.cachedTokens,prev:c?.cachedTokens},{eyebrow:"Output tokens",value:(0,d.jsx)("span",{className:"text-coral-ink",children:(0,d.jsx)(y.default,{value:k,format:D})}),delta:`Avg ${new Intl.NumberFormat().format(Math.round(n)||0)} per request`,field:"output",current:e?.completionTokens,prev:c?.completionTokens},{eyebrow:"Est. cost",value:(0,d.jsx)(y.default,{value:a.totalCost,format:E}),delta:"List prices, not your bill",field:"cost",current:e?.cost,prev:c?.cost}];return(0,d.jsx)("div",{className:"grid min-w-0 grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-4 md:grid-cols-3 lg:grid-cols-5",children:o.map(a=>(0,d.jsx)(z.default,{eyebrow:a.eyebrow,value:a.value,delta:a.delta,trend:(0,d.jsx)(G,{current:a.current,previous:a.prev,period:g}),sparkline:function(a,b){if(Array.isArray(a)&&!(a.length<2))return a.map(a=>Number(a?.[b])||0)}(f,a.field),className:`min-w-0 ${F[a.field]}`},a.eyebrow))})}G.propTypes={current:x().number,previous:x().number,period:x().string},H.propTypes={stats:x().object,loading:x().bool,previous:x().object,currentTotals:x().object,buckets:x().array,period:x().string.isRequired};let I=(0,e.memo)(H);var J=c(91099),K=c(26584),L=c(65181),M=c(83035),N=c(58460);let O=a=>new Intl.NumberFormat().format(a||0),P=a=>a>=1e6?`${(a/1e6).toFixed(1)}M`:a>=1e3?`${(a/1e3).toFixed(1)}K`:String(a||0),Q=a=>`$${(a||0).toFixed(2)}`,R={model:{key:"rawModel",label:"Model",source:"byModel",emptyTitle:"No usage by model in this period."},account:{key:"accountName",label:"Account",source:"byAccount",emptyTitle:"No account usage in this period."},apiKey:{key:"keyName",label:"API key",source:"byApiKey",emptyTitle:"No API key usage in this period."},endpoint:{key:"endpoint",label:"Endpoint",source:"byEndpoint",emptyTitle:"No endpoint usage in this period."}};function S({stats:a}){let[b,c]=(0,e.useState)("model"),[f,g]=(0,e.useState)("costs"),[h,i]=(0,e.useState)("totalCost"),[j,l]=(0,e.useState)("desc"),[m,n]=(0,e.useState)(new Set),o=R[b],p=(0,e.useMemo)(()=>{let b=a?.[o.source],c=Array.isArray(b)?b:Object.entries(b||{}).map(([a,b])=>({key:a,...b}));return(0,v.fD)((0,v.sN)(c,h,j),o.key)},[a,o,h,j]),q=(0,e.useMemo)(()=>{let a={requests:0,promptTokens:0,completionTokens:0,cost:0};for(let b of p)a.requests+=b.summary.requests||0,a.promptTokens+=b.summary.promptTokens||0,a.completionTokens+=b.summary.completionTokens||0,a.cost+=b.summary.cost||0;return a},[p]),r=[{field:"__label",label:o.label,numeric:!1},{field:"requests",label:"Requests",numeric:!0},{field:"__input",label:"Input",numeric:!0},{field:"__output",label:"Output",numeric:!0},{field:"totalCost",label:"Cost",numeric:!0},{field:"__share",label:"Share",numeric:!1}],s=a=>"__input"===a?"costs"===f?"totalCost":"promptTokens":"__output"===a?"costs"===f?"totalCost":"completionTokens":a,t=a=>"costs"===f?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("td",{className:"px-6 py-3 text-end font-mono",children:O(a.requests)}),(0,d.jsx)("td",{className:"px-6 py-3 text-end font-mono text-muted",children:Q((a.cost||a.totalCost||0)*Math.max(0,(a.promptTokens||0)-(a.cachedTokens||0))/Math.max(1,(a.promptTokens||0)+(a.completionTokens||0)))}),(0,d.jsx)("td",{className:"px-6 py-3 text-end font-mono text-muted",children:Q((a.cost||a.totalCost||0)*(a.completionTokens||0)/Math.max(1,(a.promptTokens||0)+(a.completionTokens||0)))}),(0,d.jsx)("td",{className:"px-6 py-3 text-end font-mono",children:Q(a.cost??a.totalCost)})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("td",{className:"px-6 py-3 text-end font-mono",children:O(a.requests)}),(0,d.jsx)("td",{className:"px-6 py-3 text-end font-mono text-muted",children:P(a.promptTokens)}),(0,d.jsx)("td",{className:"px-6 py-3 text-end font-mono text-muted",children:P(a.completionTokens)}),(0,d.jsx)("td",{className:"px-6 py-3 text-end font-mono",children:P((a.promptTokens||0)+(a.completionTokens||0))})]}),u=a=>{let b="costs"===f?q.cost:q.promptTokens+q.completionTokens,c="costs"===f?a.cost||a.totalCost||0:(a.promptTokens||0)+(a.completionTokens||0);return(0,v.lt)(c,b)};return(0,d.jsxs)(k.default,{padding:"none",children:[(0,d.jsx)(k.default.Header,{className:"px-6 pt-4 pb-4",title:"Breakdown",actions:(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsx)(J.default,{"aria-label":"Breakdown view",size:"sm",value:b,onChange:c,options:[{value:"model",label:"Model"},{value:"account",label:"Account"},{value:"apiKey",label:"API key"},{value:"endpoint",label:"Endpoint"}]}),(0,d.jsx)(J.default,{"aria-label":"Breakdown metric",size:"sm",value:f,onChange:g,options:[{value:"costs",label:"Costs"},{value:"tokens",label:"Tokens"}]})]})}),a&&0!==p.length?(0,d.jsx)("section",{className:"overflow-x-auto focus-visible:shadow-focus","aria-label":"Usage breakdown",tabIndex:0,children:(0,d.jsxs)("table",{className:"w-full text-start text-sm",children:[(0,d.jsx)("thead",{children:(0,d.jsx)("tr",{className:N.pi,children:r.map(a=>(0,d.jsx)("th",{scope:"col","aria-sort":h===s(a.field)?"asc"===j?"ascending":"descending":void 0,className:`${N.PK} px-6 py-3 ${a.numeric?"text-end":"text-start"}`,children:"__label"===a.field||"__share"===a.field?a.label:(0,d.jsxs)("button",{type:"button",onClick:()=>{let b;h===(b=s(a.field))?l(a=>"asc"===a?"desc":"asc"):(i(b),l("desc"))},className:"inline-flex items-center gap-1 hover:text-text",children:[a.label,(0,d.jsx)("span",{"aria-hidden":"true",className:"opacity-60",children:h===s(a.field)?"asc"===j?"↑":"↓":"↕"})]})},a.field))})}),(0,d.jsx)("tbody",{className:"divide-y divide-line",children:p.map(a=>{let c=m.has(a.groupKey),f=u(a.summary),g=1===new Set(a.items.map(a=>a.provider)).size?a.items[0]?.provider:null;return(0,d.jsxs)(e.Fragment,{children:[(0,d.jsxs)("tr",{className:"transition-colors hover:bg-raised/50",children:[(0,d.jsx)("td",{className:"px-6 py-3",children:(0,d.jsxs)("button",{type:"button",onClick:()=>n(b=>{let c=new Set(b);return c.has(a.groupKey)?c.delete(a.groupKey):c.add(a.groupKey),c}),"aria-expanded":c,className:"flex items-center gap-2 font-medium",children:[(0,d.jsx)("span",{"aria-hidden":"true",className:`material-symbols-outlined text-[18px] text-muted transition-transform ${c?"rotate-90":""}`,children:"chevron_right"}),"model"===b&&g&&(0,d.jsx)(M.default,{providerId:g,size:"sm"}),(0,d.jsx)("span",{className:"max-w-[280px] truncate font-mono text-[13px]",children:a.groupKey}),(0,d.jsxs)("span",{className:"sr-only",children:[a.items.length," rows, last used ",(a=>{if(!a)return"Never";let b=Math.floor((Date.now()-new Date(a))/6e4);return b<1?"Just now":b<60?`${b}m ago`:b<1440?`${Math.floor(b/60)}h ago`:new Date(a).toLocaleDateString()})(a.summary.lastUsed)]})]})}),t(a.summary),(0,d.jsx)("td",{className:"px-6 py-3",children:(0,d.jsxs)("span",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"min-w-24 flex-1",children:(0,d.jsx)(L.default,{value:f,kind:"credits",label:`Share of ${a.groupKey}`,valueText:`${f.toFixed(1)} percent`})}),(0,d.jsxs)("span",{className:"font-mono text-xs text-muted",children:[f.toFixed(0),"%"]})]})})]}),c&&a.items.map(b=>(0,d.jsxs)("tr",{className:"bg-raised/20",children:[(0,d.jsx)("td",{className:"py-3 ps-12 pe-6 font-mono text-[13px] text-muted",children:(0,d.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[b.provider&&(0,d.jsx)(M.default,{providerId:b.provider,size:"sm"}),(0,d.jsx)("span",{className:"truncate",children:b.provider?`${b.rawModel||b.groupKey} \xb7 ${b.provider}`:b.rawModel||b.key||"—"})]})}),t(b),(0,d.jsx)("td",{className:"px-6 py-3",children:(0,d.jsxs)("span",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"min-w-24 flex-1",children:(0,d.jsx)(L.default,{value:u(b),kind:"credits",label:`Share of ${b.rawModel||b.key}`,valueText:`${u(b).toFixed(1)} percent`})}),(0,d.jsxs)("span",{className:"font-mono text-xs text-muted",children:[u(b).toFixed(0),"%"]})]})})]},`${a.groupKey}|${b.key}|${b.rawModel}|${b.provider}|${b.connectionId}|${b.keyName}|${b.endpoint}|${b.apiKeyKey}`))]},a.groupKey)})})]})}):(0,d.jsx)(K.default,{icon:"table_rows",title:o.emptyTitle})]})}S.propTypes={stats:x().object};let T=(0,e.memo)(S);var U=c(99070),V=c(31023),W=c(83552),X=c(24279),Y=c(85158),Z=c(14898);let $=a=>a?.cached_tokens||a?.cache_read_input_tokens||0;function _(){let[a,b]=(0,e.useState)([]),[c,f]=(0,e.useState)({page:1,pageSize:20,totalItems:0,totalPages:0}),[g,h]=(0,e.useState)(!0),[i,j]=(0,e.useState)(""),m=(0,e.useRef)(null),[n,o]=(0,e.useState)(null),[p,q]=(0,e.useState)(!1),[r,s]=(0,e.useState)([]),[t,u]=(0,e.useState)(null),[v,w]=(0,e.useState)({provider:"",startDate:"",endDate:""}),x=v.startDate&&v.endDate&&v.startDate>v.endDate?"Start must be before end":"",y=(0,e.useCallback)(async()=>{m.current?.abort();let a=new AbortController;m.current=a,h(!0);try{let d=new URLSearchParams({page:String(c.page),pageSize:String(c.pageSize)});v.provider&&d.append("provider",v.provider),v.startDate&&d.append("startDate",new Date(v.startDate).toISOString()),v.endDate&&d.append("endDate",new Date(v.endDate).toISOString());let e=await fetch(`/api/usage/request-details?${d}`,{signal:a.signal});if(!e.ok)throw Error(`HTTP ${e.status}`);let g=await e.json();b(g.details||[]),f(a=>({...a,...g.pagination})),j("")}catch(b){if(a.signal.aborted)return;console.error("Failed to fetch request details:",b),j(b instanceof Error&&b.message?b.message:"Unknown error")}finally{a.signal.aborted||h(!1)}},[c.page,c.pageSize,v]),z=(a,b)=>{w(c=>({...c,[a]:b})),f(a=>1===a.page?a:{...a,page:1})};return(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-4",children:[(0,d.jsx)(k.default,{children:(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-4 lg:flex-row lg:items-end",children:[(0,d.jsx)(V.default,{id:"provider-filter",label:"Provider",placeholder:null,options:[{value:"",label:"All providers"},...r.map(a=>({value:a.id,label:a.name!==a.id?`${a.name} (${a.id.slice(0,18)}…)`:a.name}))],value:v.provider,onChange:a=>z("provider",a.target.value),className:"min-w-0 lg:w-60"}),(0,d.jsxs)("fieldset",{className:"min-w-0 flex-1",children:[(0,d.jsx)("legend",{className:"text-sm font-medium",children:"Date range"}),(0,d.jsxs)("div",{className:"mt-1.5 grid min-w-0 grid-cols-1 gap-3 sm:grid-cols-2",children:[(0,d.jsx)(W.default,{id:"start-date-filter",type:"datetime-local",label:"From",value:v.startDate,onChange:a=>z("startDate",a.target.value)}),(0,d.jsx)(W.default,{id:"end-date-filter",type:"datetime-local",label:"To",error:x,value:v.endDate,onChange:a=>z("endDate",a.target.value)})]})]}),(0,d.jsx)(U.default,{variant:"ghost",onClick:()=>{w({provider:"",startDate:"",endDate:""}),f(a=>1===a.page?a:{...a,page:1})},disabled:!v.provider&&!v.startDate&&!v.endDate,children:"Clear filters"})]})}),(0,d.jsx)(k.default,{padding:"none",children:g?(0,d.jsx)(l.LoadingState,{label:"Loading requests",lines:5,className:"p-6"}):i?(0,d.jsx)("div",{className:"p-6",children:(0,d.jsx)(l.ErrorState,{title:"Couldn't load requests",message:i,onRetry:y})}):0===a.length?(0,d.jsx)(K.default,{icon:"receipt_long",title:"No request details found",body:"Adjust the filters or make a request through the gateway."}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("section",{className:"overflow-x-auto focus-visible:shadow-focus","aria-label":"Request log",tabIndex:0,children:(0,d.jsxs)("table",{className:"w-full min-w-[880px] text-sm",children:[(0,d.jsx)("thead",{children:(0,d.jsxs)("tr",{className:N.pi,children:[(0,d.jsx)("th",{scope:"col",className:`${N.PK} p-4 text-start`,children:"Timestamp"}),(0,d.jsx)("th",{scope:"col",className:`${N.PK} p-4 text-start`,children:"Model"}),(0,d.jsx)("th",{scope:"col",className:`${N.PK} p-4 text-start`,children:"Provider"}),(0,d.jsx)("th",{scope:"col",className:`${N.PK} p-4 text-end`,children:"Input"}),(0,d.jsx)("th",{scope:"col",className:`${N.PK} p-4 text-end`,children:"Cached"}),(0,d.jsx)("th",{scope:"col",className:`${N.PK} p-4 text-end`,children:"Output"}),(0,d.jsx)("th",{scope:"col",className:`${N.PK} p-4 text-start`,children:"Latency"}),(0,d.jsx)("th",{scope:"col",className:`${N.PK} p-4 text-start`,children:"Status"}),(0,d.jsx)("th",{scope:"col",className:`${N.PK} p-4 text-start`,children:(0,d.jsx)("span",{className:"sr-only",children:"Actions"})})]})}),(0,d.jsx)("tbody",{children:a.map((a,b)=>{var c;let e,f,g,h=(e=a.id,`req-${String(e).replace(/[^A-Za-z0-9_-]+/g,"-")}-${b}`);return(0,d.jsxs)("tr",{className:"border-b border-line transition-colors last:border-b-0 hover:bg-raised",children:[(0,d.jsx)("td",{id:`${h}-time`,className:"whitespace-nowrap p-4",children:a.timestamp?new Date(a.timestamp).toLocaleString():"—"}),(0,d.jsx)("td",{id:`${h}-model`,className:"max-w-[260px] truncate p-4 font-mono",children:a.model}),(0,d.jsx)("td",{className:"max-w-[180px] p-4",children:(0,d.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[a.provider&&(0,d.jsx)(M.default,{providerId:a.provider,size:"sm"}),(0,d.jsx)("span",{className:"truncate",children:(0,Z.s)(a.provider,t)})]})}),(0,d.jsx)("td",{className:"p-4 text-end font-mono",children:(c=a.tokens,f=c?.prompt_tokens||c?.input_tokens||0,f<(g=$(c))?g:f).toLocaleString()}),(0,d.jsx)("td",{className:"p-4 text-end font-mono",children:$(a.tokens)>0?$(a.tokens).toLocaleString():"—"}),(0,d.jsx)("td",{className:"p-4 text-end font-mono",children:(a.tokens?.completion_tokens??a.tokens?.output_tokens??0).toLocaleString()}),(0,d.jsxs)("td",{className:"whitespace-nowrap p-4 font-mono text-muted",children:[a.latency?.total??0,"ms"]}),(0,d.jsx)("td",{className:"p-4",children:(0,d.jsx)(X.default,{variant:a.status&&"ok"!==a.status&&"success"!==a.status?"err":"ok",size:"sm",children:a.status||"ok"})}),(0,d.jsx)("td",{className:"p-4 text-center",children:(0,d.jsx)(U.default,{variant:"outline",size:"sm","aria-describedby":`${h}-model ${h}-time`,onClick:()=>{o(a),q(!0)},children:"Detail"})})]},`${a.id}|${a.timestamp}`)})})]})}),(0,d.jsx)("div",{className:"border-t border-line",children:(0,d.jsx)(Y.A,{currentPage:c.page,pageSize:c.pageSize,totalItems:c.totalItems,onPageChange:a=>f(b=>({...b,page:a})),onPageSizeChange:a=>f(b=>({...b,pageSize:a,page:1}))})})]})}),(0,d.jsx)(Z.A,{detail:n,isOpen:p,onClose:()=>q(!1),providerName:n?(0,Z.s)(n.provider,t):null})]})}let aa=(0,f.default)(()=>c.e(4e3).then(c.bind(c,34e3)),{loadableGenerated:{modules:["app/(dashboard)/dashboard/usage/page.js -> ./components/UsageTokensChart"]},loading:()=>(0,d.jsx)(h.CardSkeleton,{})});function ab(){return(0,d.jsx)(e.Suspense,{fallback:(0,d.jsx)(h.CardSkeleton,{}),children:(0,d.jsx)(ac,{})})}function ac(){let a=(0,g.useSearchParams)(),b=(0,g.useRouter)(),{period:c,setPeriod:f,options:v}=(0,q.A)(),w=a.get("tab"),x="details"===w||"logs"===w?"logs":"overview",{stats:y,statsPeriod:z,live:A,loading:B,error:C,retry:D,catchUpKey:E}=function(a,{tab:b="overview"}={}){let[c,d]=(0,e.useState)(null),[f,g]=(0,e.useState)(a),[h,i]=(0,e.useState)(u),[j,k]=(0,e.useState)(!0),[l,m]=(0,e.useState)(!1),[n,o]=(0,e.useState)(null),[p,q]=(0,e.useState)(0),[r,v]=(0,e.useReducer)(t,{hidden:"u">typeof document&&document.hidden,tab:b},s),[w,x]=(0,e.useState)(0);return(0,e.useRef)(!1),{stats:c,statsPeriod:f,live:h,loading:j,fetching:l,error:n,catchUpKey:p,retry:(0,e.useCallback)(()=>{x(a=>a+1),q(a=>a+1)},[])}}(c,{tab:x}),F=function(){let[a,b]=(0,e.useState)([]);return a}(),[G,H]=(0,e.useState)(0),J=(0,p.A)(G),K=(0,e.useRef)(new Map),[L,M]=(0,e.useState)(0);A.activeRequests.length;let N=(0,e.useMemo)(()=>J.routes?(K.current=(0,r.KY)(A.activeRequests,K.current),(0,r.TV)((0,r.Ld)(J.routes,F),A,K.current)):null,[J.routes,F,A,L]),O=!!N&&N.providers.length>0&&(0,r.xB)(N),P=!!y&&z===c&&!B&&!C&&!y.totalRequests,Q=(0,o.A)(P||O),R=function(){let[a,b]=(0,e.useState)([]),[c,d]=(0,e.useState)(null),[f,g]=(0,e.useState)(!1),[h,i]=(0,e.useState)(null),[j,k]=(0,e.useState)(0),l=(0,e.useCallback)(()=>k(a=>a+1),[]);return(0,e.useRef)(""),{buckets:a,bucketsPeriod:c,loading:f,error:h,retry:l}}();return(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:px-0",children:[(0,d.jsx)("div",{className:"flex flex-col gap-4",children:(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsx)(i.default,{"aria-label":"Usage view",value:x,onChange:c=>{if(c===x)return;let d=new URLSearchParams(a);d.set("tab",c),b.push(`/dashboard/usage?${d.toString()}`,{scroll:!1})},tabs:[{value:"overview",label:"Overview"},{value:"logs",label:"Request log"}]}),"overview"===x&&(0,d.jsx)(j.default,{"aria-label":"Stats period",options:v,value:c,onChange:f,size:"sm",className:"w-full sm:w-auto"})]})}),"overview"===x?(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-6",children:[C&&!B?(0,d.jsx)(k.default,{children:(0,d.jsx)(l.ErrorState,{title:"Couldn't load usage stats",message:C.message||"Try switching period or reloading the page.",onRetry:D})}):null,P?(0,d.jsx)(k.default,{children:(0,d.jsx)(m.default,{period:c,lastRequestAt:Q.lastRequestAt,loading:Q.loading,onSelectPeriod:f,error:Q.error,onRetry:Q.retry})}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(e.Suspense,{fallback:(0,d.jsx)(h.CardSkeleton,{}),children:(0,d.jsx)(I,{stats:z===c?y:null,loading:null===c||B||z!==c,previous:z===c?y?.previous:null,currentTotals:z===c?y?.currentTotals:null,buckets:R.bucketsPeriod===c?R.buckets:null,period:c??""})}),c?(0,d.jsx)(aa,{buckets:R.buckets,loading:R.loading||R.bucketsPeriod!==c&&!R.error,error:R.error,onRetry:R.retry}):null]}),(0,d.jsx)(n.B,{variant:"full",routes:N,loading:J.loading,error:J.error,onRetry:()=>H(a=>a+1),lastRequestAt:Q.lastRequestAt,lastActivityError:Q.error,onRetryLastActivity:Q.retry}),!P&&(z===c&&y?(0,d.jsx)(T,{stats:y}):(0,d.jsx)(h.CardSkeleton,{}))]}):(0,d.jsx)(_,{})]})}},24279:(a,b,c)=>{"use strict";c.d(b,{default:()=>h});var d=c(48249),e=c(49885),f=c.n(e),g=c(58460);function h({children:a,variant:b="neutral",size:c="md",dot:e=!1,className:f}){return(0,d.jsxs)("span",{className:`inline-flex items-center gap-1.5 rounded-full font-semibold whitespace-nowrap ${(0,g.S3)(b,c)}${f?` ${f}`:""}`,children:[e&&(0,d.jsx)("span",{"aria-hidden":"true",className:"size-2 rounded-full bg-current"}),a]})}h.propTypes={children:f().node,variant:f().oneOf(g.XY),size:f().oneOf(Object.keys(g.vO)),dot:f().bool,className:f().string}},25994:(a,b,c)=>{"use strict";c.d(b,{default:()=>k});var d=c(48249),e=c(49885),f=c.n(e),g=c(67484),h=c(71404),i=c(31290);let j=["ArrowLeft","ArrowRight","Home","End"];function k({tabs:a=[],value:b,defaultValue:c,onChange:e,className:f,id:l,"aria-label":m,"aria-labelledby":n,...o}){let p=(0,g.useId)(),q=l||p,r=(0,g.useRef)([]),[s,t]=(0,g.useState)(c??a[0]?.value),u=void 0!==b?b:s,v=Math.max(0,a.findIndex(a=>a.value===u)),w=a=>{void 0===b&&t(a),e?.(a)};return(0,d.jsxs)("div",{...o,className:(0,h.cn)("flex flex-col",f),children:[(0,d.jsx)("div",{role:"tablist","aria-label":m,"aria-labelledby":n,"aria-orientation":"horizontal",className:"flex items-center gap-1 border-b border-line overflow-x-auto",children:a.map((b,c)=>{let e=c===v;return(0,d.jsxs)("button",{ref:a=>{r.current[c]=a},type:"button",role:"tab",id:`${q}-tab-${b.value}`,"aria-selected":e,"aria-controls":`${q}-panel-${b.value}`,tabIndex:e?0:-1,onClick:()=>w(b.value),onKeyDown:b=>((b,c)=>{if(!j.includes(b.key)||0===a.length)return;b.preventDefault();let d=(0,i.lZ)(c,b.key,{length:a.length,rtl:b.currentTarget.closest("[dir]")?.getAttribute("dir")==="rtl"});r.current[d]?.focus(),w(a[d].value)})(b,c),className:(0,h.cn)("relative inline-flex h-11 shrink-0 items-center px-3 text-sm font-semibold transition-colors focus-visible:shadow-focus",e?"text-text":"text-muted hover:text-text"),children:[b.label,null!=b.count&&(0,d.jsx)("span",{className:"ms-1.5 font-mono text-xs text-muted",children:b.count}),(0,d.jsx)("span",{"aria-hidden":"true",className:(0,h.cn)("absolute inset-x-2 -bottom-px h-0.5 rounded-full bg-coral transition-opacity",e?"opacity-100":"opacity-0")})]},b.value)})}),a.map((a,b)=>(0,d.jsx)("div",{role:"tabpanel",id:`${q}-panel-${a.value}`,"aria-labelledby":`${q}-tab-${a.value}`,hidden:b!==v,tabIndex:(0,i.qM)(a.content)?0:void 0,children:a.content},a.value))]})}k.propTypes={tabs:f().arrayOf(f().shape({value:f().oneOfType([f().string,f().number]).isRequired,label:f().node.isRequired,count:f().oneOfType([f().string,f().number]),content:f().node})),value:f().oneOfType([f().string,f().number]),defaultValue:f().oneOfType([f().string,f().number]),onChange:f().func,className:f().string,id:f().string,"aria-label":function(a,b,c){return a["aria-label"]||a["aria-labelledby"]?null:Error(`${c}: provide "aria-label" or "aria-labelledby".`)},"aria-labelledby":f().string}},27444:(a,b,c)=>{"use strict";c.d(b,{default:()=>j});var d=c(48249),e=c(49885),f=c.n(e),g=c(67484),h=c(71404),i=c(31290);function j({id:a,label:b,hint:c,error:e,required:f=!1,className:k,children:l}){let m=(0,g.useId)(),n=a||`${m}-input`,o=`${n}-hint`,p=`${n}-error`,q=(0,i.Gc)(n,{hint:c,error:e});return(0,d.jsxs)("div",{className:(0,h.cn)("flex flex-col gap-1.5",k),children:[b&&(0,d.jsxs)("label",{htmlFor:n,className:"text-sm font-medium text-text",children:[b,f&&(0,d.jsx)("span",{className:"text-err ms-1","aria-hidden":"true",children:"*"})]}),l({inputId:n,describedBy:q,invalid:!!e}),e?(0,d.jsxs)("p",{id:p,className:"text-xs text-err flex items-center gap-1",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]","aria-hidden":"true",children:"error"}),e]}):c?(0,d.jsx)("p",{id:o,className:"text-xs text-muted",children:c}):null]})}j.propTypes={id:f().string,label:f().node,hint:f().node,error:f().node,required:f().bool,className:f().string,children:f().func.isRequired}},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31023:(a,b,c)=>{"use strict";c.d(b,{default:()=>i});var d=c(48249),e=c(49885),f=c.n(e),g=c(71404),h=c(27444);function i({label:a,options:b=[],value:c,onChange:e,placeholder:f="Select an option",error:j,hint:k,disabled:l=!1,required:m=!1,className:n,selectClassName:o,id:p,...q}){return(0,d.jsx)(h.default,{id:p,label:a,hint:k,error:j,required:m,className:n,children:({inputId:a,describedBy:h,invalid:i})=>(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsxs)("select",{...q,id:a,value:c,onChange:e,disabled:l,"aria-describedby":h,"aria-invalid":i||void 0,className:(0,g.cn)("w-full h-11 ps-3 pe-10 text-sm text-text bg-raised rounded-lg appearance-none","border border-line focus:outline-none focus:border-coral focus:shadow-focus","transition-colors duration-150 disabled:opacity-50 disabled:cursor-not-allowed","text-[16px] sm:text-sm",i&&"border-err focus:border-err",o),children:[null!==f&&(0,d.jsx)("option",{value:"",disabled:!0,children:f}),(function(a=[]){let b=[];for(let c of a){let a=c.group||null,d=b[b.length-1];d&&d.label===a?d.options.push(c):b.push({label:a,options:[c]})}return b})(b).map((a,b)=>null===a.label?a.options.map(a=>(0,d.jsx)("option",{value:a.value,children:a.label},a.value)):(0,d.jsx)("optgroup",{label:a.label,children:a.options.map(a=>(0,d.jsx)("option",{value:a.value,children:a.label},a.value))},`${a.label}-${b}`))]}),(0,d.jsx)("div",{className:"absolute inset-y-0 end-0 flex items-center pe-3 pointer-events-none text-muted","aria-hidden":"true",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"expand_more"})})]})})}i.propTypes={label:f().node,options:f().arrayOf(f().shape({value:f().oneOfType([f().string,f().number]).isRequired,label:f().node.isRequired,group:f().string})),value:f().oneOfType([f().string,f().number]),onChange:f().func,placeholder:f().oneOfType([f().string,f().oneOf([null])]),error:f().node,hint:f().node,disabled:f().bool,required:f().bool,className:f().string,selectClassName:f().string,id:f().string}},31421:a=>{"use strict";a.exports=require("node:child_process")},32467:a=>{"use strict";a.exports=require("node:http2")},33873:a=>{"use strict";a.exports=require("path")},34589:a=>{"use strict";a.exports=require("node:assert")},37067:a=>{"use strict";a.exports=require("node:http")},37540:a=>{"use strict";a.exports=require("node:console")},38522:a=>{"use strict";a.exports=require("node:zlib")},40610:a=>{"use strict";a.exports=require("node:dns")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},41692:a=>{"use strict";a.exports=require("node:tls")},41792:a=>{"use strict";a.exports=require("node:querystring")},42824:(a,b,c)=>{"use strict";c.d(b,{G9:()=>k,K9:()=>s,UD:()=>i,_p:()=>l,cs:()=>f,dH:()=>p,hQ:()=>n,jJ:()=>j,nR:()=>d,py:()=>r,sO:()=>q,tJ:()=>e});let d=[{value:"today",label:"Today"},{value:"24h",label:"24h"},{value:"7d",label:"7d"},{value:"30d",label:"30d"},{value:"60d",label:"60d"}],e=d.map(a=>a.value),f=["today","7d","30d"],g="signal.period",h="today";function i(a){return e.includes(a)}function j(a,b=e){if(!Array.isArray(b)||0===b.length)throw TypeError("coercePeriod: allowed must be a non-empty period array");let c=e.indexOf(a);return c>=0?b.includes(a)?a:e.slice(c).find(a=>b.includes(a))??e.findLast(a=>b.includes(a)):b.includes(h)?h:b[0]}function k({urlValue:a,storedValue:b,allowed:c=e}){return null!=a&&i(a)?j(a,c):null!=b&&i(b)?j(b,c):j(h,c)}function l(a){return d.filter(b=>a.includes(b.value))}let m={"7d":7,"30d":30,"60d":60};function n(a,b=e,c=Date.now()){let d=a instanceof Date?a.getTime():new Date(a).getTime();if(Number.isNaN(d))return null;for(let a of b)if(function(a,b=Date.now()){let c=new Date(b);switch(c.setHours(0,0,0,0),a){case"today":return c.getTime();case"24h":return b-864e5;case"7d":case"30d":case"60d":return c.setDate(c.getDate()-(m[a]-1)),c.getTime();default:throw Error(`Unknown period: ${a}`)}}(a,c)<=d)return a;return null}function o(){try{return null}catch{return null}}function p(a=o()){try{let b=a?.getItem?.(g);return i(b)?b:null}catch{return null}}function q(a,b=o()){try{i(a)&&b?.setItem?.(g,a)}catch{}}let r={today:{title:"Quiet today",actionLabel:"Show today"},"24h":{title:"Quiet in the last 24h",actionLabel:"Show 24h"},"7d":{title:"Quiet in the last 7d",actionLabel:"Show 7d"},"30d":{title:"Quiet in the last 30d",actionLabel:"Show 30d"},"60d":{title:"Quiet in the last 60d",actionLabel:"Show 60d"},default:{title:"Quiet in this period"}};function s(a,b="en",c=Date.now()){let d,e=new Date(a).getTime();if(Number.isNaN(e))return"";let f=Math.max(0,c-e);try{d=new Intl.RelativeTimeFormat(b,{numeric:"always"})}catch{d=new Intl.RelativeTimeFormat("en",{numeric:"always"})}return f>=864e5?d.format(-Math.floor(f/864e5),"day"):f>=36e5?d.format(-Math.floor(f/36e5),"hour"):d.format(-Math.max(1,Math.floor(f/6e4)),"minute")}},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},46193:a=>{"use strict";a.exports=require("node:string_decoder")},46293:a=>{"use strict";a.exports=require("sql.js")},47392:(a,b,c)=>{"use strict";c.d(b,{default:()=>h});var d=c(48249),e=c(49885),f=c.n(e);function g(a,b){return(0,d.jsx)("span",{className:`text-sm ${a?"":"text-muted"}`,children:b})}function h({eyebrow:a,value:b,delta:c,trend:e,sparkline:f,hero:i=!1,className:j}){let k,l;return(0,d.jsxs)("div",{className:`flex flex-col gap-1 rounded-2xl border p-5 shadow-card ${i?"border-transparent bg-lime text-on-lime":"border-line bg-panel text-text"}${j?` ${j}`:""}`,children:[(0,d.jsx)("span",{className:`text-xs font-semibold uppercase tracking-[0.08em] ${i?"":"text-muted"}`,children:a}),(0,d.jsx)("span",{className:"min-w-0 font-display text-4xl font-bold tabular-nums [word-break:break-word]",children:b}),c&&g(i,c),e&&g(i,e),f&&f.length>1&&(0,d.jsx)("svg",{viewBox:"0 0 100 24",className:"mt-1 h-6 w-full","aria-hidden":"true",preserveAspectRatio:"none",children:(0,d.jsx)("polyline",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round",strokeLinecap:"round",points:(l=Math.max(...f)-(k=Math.min(...f))||1,f.map((a,b)=>{let c=b/(f.length-1)*100;return`${c},${22-(a-k)/l*20}`}).join(" "))})})]})}h.propTypes={eyebrow:f().string.isRequired,value:f().node.isRequired,delta:f().node,trend:f().node,sparkline:f().arrayOf(f().number),hero:f().bool,className:f().string}},48161:a=>{"use strict";a.exports=require("node:os")},48299:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>z,handler:()=>B,routeModule:()=>A});var d=c(21635),e=c(86315),f=c(1020),g=c(61287),h={};for(let a in g)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(h[a]=()=>g[a]);c.d(b,h);let i=(0,d.p)(()=>Promise.resolve().then(c.bind(c,57529))),j=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),k=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),l=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),m=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),n=(0,d.p)(()=>Promise.resolve().then(c.bind(c,79409))),o=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),p=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),q=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),r=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),s=(0,d.p)(()=>Promise.resolve().then(c.bind(c,79346))),t=(0,d.p)(()=>Promise.resolve().then(c.bind(c,70160))),u=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),v=(0,d.p)(()=>Promise.resolve().then(c.bind(c,55880))),w=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),x={children:["",{children:["(dashboard)",{children:["dashboard",{children:["usage",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,87149))),"/home/runner/work/tokenhop/tokenhop/src/app/(dashboard)/dashboard/usage/page.js"]}]},{"global-error":[w,"next/dist/client/components/builtin/global-error.js"]},[]]},{error:[s,"/home/runner/work/tokenhop/tokenhop/src/app/(dashboard)/dashboard/error.js"],loading:[t,"/home/runner/work/tokenhop/tokenhop/src/app/(dashboard)/dashboard/loading.js"],"global-error":[u,"next/dist/client/components/builtin/global-error.js"],"not-found":[v,"/home/runner/work/tokenhop/tokenhop/src/app/(dashboard)/dashboard/not-found.js"]},[]]},{layout:[n,"/home/runner/work/tokenhop/tokenhop/src/app/(dashboard)/layout.js"],"global-error":[o,"next/dist/client/components/builtin/global-error.js"],"not-found":[p,"next/dist/client/components/builtin/not-found.js"],forbidden:[q,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[r,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]},{layout:[i,"/home/runner/work/tokenhop/tokenhop/src/app/layout.js"],"global-error":[j,"next/dist/client/components/builtin/global-error.js"],"not-found":[k,"next/dist/client/components/builtin/not-found.js"],forbidden:[l,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[m,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]}.children,y=(0,e.H)({tree:x,page:"/(dashboard)/dashboard/usage/page",pathname:"/dashboard/usage",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),z=y.__next_app__,A=y.routeModule,B=y.handler},51455:a=>{"use strict";a.exports=require("node:fs/promises")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},57075:a=>{"use strict";a.exports=require("node:stream")},57975:a=>{"use strict";a.exports=require("node:util")},58460:(a,b,c)=>{"use strict";c.d(b,{PK:()=>o,S3:()=>i,XY:()=>h,lN:()=>j,pN:()=>q,pi:()=>n,r4:()=>m,vE:()=>l,vO:()=>f});let d={connected:"ok",healthy:"ok",active:"ok",ok:"ok",success:"ok",cooldown:"warn",warning:"warn",low:"warn",warn:"warn",error:"err",empty:"err",err:"err",oauth:"info",info:"info","api-key":"brand",brand:"brand",live:"live",disabled:"neutral",off:"neutral",neutral:"neutral"},e={ok:"bg-ok-bg text-ok",warn:"bg-warn-bg text-warn",err:"bg-err-bg text-err",info:"bg-sky-bg text-sky-ink",brand:"bg-coral-bg text-coral-ink",live:"bg-lime-bg text-lime-ink",neutral:"bg-raised text-muted shadow-[inset_0_0_0_1px_var(--signal-line)]"},f={xs:"h-5 px-2 text-[11px]",sm:"h-5 px-2 text-[11px]",md:"h-6 px-2.5 text-xs",lg:"h-7 px-3 text-sm"},g={default:"neutral",primary:"brand",success:"ok",warning:"warn",error:"err"},h=[...new Set([...Object.keys(e),...Object.keys(g),...Object.keys(d)])];function i(a="neutral",b="md"){let c=f[b];if(!c)throw Error(`pillClasses: unknown size "${b}"`);return`${e[function(a){if(e[a])return a;let b=g[a]??d[a];if(!b)throw Error(`resolvePillVariant: unknown variant "${a}"`);return b}(a)]} ${c}`}let j={ok:"bg-ok",warn:"bg-warn",err:"bg-err",live:"bg-lime",info:"bg-sky",brand:"bg-coral",neutral:"bg-subtle"},k=new Set(["unlimited","credits"]);function l(a,b){if(void 0!==b&&!k.has(b))throw Error(`meterVariant: unknown kind "${b}"`);if("number"!=typeof a||!Number.isFinite(a))throw Error(`meterVariant: expected a finite number, got ${a}`);return"unlimited"===b?"live":"credits"===b?"info":a<=20?"err":a<=45?"warn":"ok"}function m(a){if("number"!=typeof a||!Number.isFinite(a))throw Error(`meterValue: expected a finite number, got ${a}`);return Math.min(100,Math.max(0,a))}let n="border-b border-line",o="whitespace-nowrap text-xs font-semibold text-muted",p={LOG:"signal-terminal-log",INFO:"signal-terminal-info",WARN:"signal-terminal-warn",ERROR:"signal-terminal-error",DEBUG:"signal-terminal-debug"};function q(a){let b=p[a];if(!b)throw Error(`terminalLevelClass: unknown level "${a}"`);return b}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66226:(a,b,c)=>{Promise.resolve().then(c.bind(c,22811))},67635:(a,b,c)=>{"use strict";c.d(b,{default:()=>j});var d=c(48249),e=c(49885),f=c.n(e),g=c(67484),h=c(71404),i=c(31290);function j({value:a,copyValue:b,label:c="Copy to clipboard",showCopyButton:e=!0,className:f,...k}){let[l,m]=(0,g.useState)(null),n=(0,g.useRef)(null),o=a=>{m(a),clearTimeout(n.current),n.current=setTimeout(()=>m(null),2e3)},p=async()=>{try{await (0,i.eM)(b??a),o("copied")}catch{o("error")}};return(0,d.jsxs)("div",{className:(0,h.cn)("flex h-11 items-center gap-2 rounded-lg border border-line bg-raised ps-3 pe-1.5 transition-colors","focus-within:border-coral focus-within:shadow-focus",f),...k,children:[(0,d.jsx)("code",{title:String(b??a),className:"min-w-0 flex-1 truncate font-mono text-sm text-text",children:a}),e?(0,d.jsx)("button",{type:"button","aria-label":c,onClick:p,className:"inline-flex size-8 shrink-0 items-center justify-center rounded-md text-muted transition-colors hover:bg-line/60 hover:text-text focus-visible:shadow-focus",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]","aria-hidden":"true",children:"copied"===l?"check":"error"===l?"error":"content_copy"})}):null,e?(0,d.jsx)("span",{"aria-live":"polite",className:"sr-only",children:"copied"===l?"Copied":"error"===l?"Copy failed":""}):null]})}j.propTypes={value:f().oneOfType([f().string,f().number]).isRequired,copyValue:f().string,label:f().string,showCopyButton:f().bool,className:f().string}},71553:a=>{"use strict";a.exports=require("node:dns/promises")},71622:a=>{"use strict";a.exports=import("open")},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},73429:a=>{"use strict";a.exports=require("node:util/types")},73496:a=>{"use strict";a.exports=require("http2")},74075:a=>{"use strict";a.exports=require("zlib")},75919:a=>{"use strict";a.exports=require("node:worker_threads")},76760:a=>{"use strict";a.exports=require("node:path")},77030:a=>{"use strict";a.exports=require("node:net")},77598:a=>{"use strict";a.exports=require("node:crypto")},78474:a=>{"use strict";a.exports=require("node:events")},79646:a=>{"use strict";a.exports=require("child_process")},80099:a=>{"use strict";a.exports=require("node:sqlite")},81630:a=>{"use strict";a.exports=require("http")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},83521:(a,b,c)=>{"use strict";c.d(b,{default:()=>n});var d=c(48249),e=c(49885),f=c.n(e),g=c(67484);c(99258);var h=c(99070),i=c(26584),j=c(74812),k=c(73655),l=c(19870),m=c(42824);function n({period:a,lastRequestAt:b,loading:c,allowed:e=m.tJ,onSelectPeriod:f,error:o=null,onRetry:p,compact:q=!1,className:r,headingAs:s="h2"}){let t=(0,l.P)(),[u,v]=(0,g.useState)(""),w=(m.py[a]??m.py.default).title;if(o&&void 0===b)return(0,d.jsx)(i.default,{as:s,compact:q,className:r,icon:"bedtime",title:w,body:"Couldn't load the last request time.",action:p?(0,d.jsx)(h.default,{variant:"secondary",size:"sm",icon:"refresh",onClick:p,children:"Retry"}):void 0});if(c||void 0===b)return q?(0,d.jsx)("div",{role:"status","aria-label":"Loading last activity",className:r,children:(0,d.jsx)(j.Skeleton,{className:"h-16 w-full"})}):(0,d.jsx)(k.LoadingState,{label:"Loading last activity",className:r});if(null===b)return(0,d.jsx)(i.default,{as:s,compact:q,className:r,icon:"bolt",title:"No traffic yet",body:(0,d.jsxs)(d.Fragment,{children:["Point any OpenAI-compatible client at"," ",(0,d.jsx)("code",{className:"font-mono text-text",children:t})]})});let x=m.tJ.filter(a=>e.includes(a)),y=(0,m.hQ)(b,x),z=y&&x.indexOf(y)>x.indexOf(a);return(0,d.jsx)(i.default,{as:s,compact:q,className:r,icon:"bedtime",title:w,body:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{children:"Last request"})," ",(0,d.jsx)("time",{dateTime:b,children:u})]}),action:z&&f?(0,d.jsx)(h.default,{variant:"secondary",size:"sm",onClick:()=>f(y),children:m.py[y].actionLabel}):void 0})}n.propTypes={period:f().string,lastRequestAt:f().string,loading:f().bool,allowed:f().arrayOf(f().oneOf(m.tJ)),onSelectPeriod:f().func,error:f().string,onRetry:f().func,compact:f().bool,className:f().string,headingAs:f().oneOf(["h1","h2","h3","h4","p","div"])}},83552:(a,b,c)=>{"use strict";c.d(b,{default:()=>i});var d=c(48249),e=c(49885),f=c.n(e),g=c(71404),h=c(27444);function i({label:a,type:b="text",placeholder:c,value:e,onChange:f,error:j,hint:k,icon:l,disabled:m=!1,required:n=!1,className:o,inputClassName:p,id:q,ref:r,...s}){return(0,d.jsx)(h.default,{id:q,label:a,hint:k,error:j,required:n,className:o,children:({inputId:a,describedBy:h,invalid:i})=>(0,d.jsxs)("div",{className:"relative",children:[l&&(0,d.jsx)("div",{className:"absolute inset-y-0 start-0 flex items-center ps-3 pointer-events-none text-muted","aria-hidden":"true",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:l})}),(0,d.jsx)("input",{...s,ref:r,id:a,type:b,placeholder:c,value:e,onChange:f,disabled:m,"aria-describedby":h,"aria-invalid":i||void 0,className:(0,g.cn)("w-full py-2.5 px-3 text-sm text-text bg-raised rounded-lg","border border-line placeholder:text-subtle","focus:outline-none focus:border-coral focus:shadow-focus","transition-colors duration-150 disabled:opacity-50 disabled:cursor-not-allowed","text-[16px] sm:text-sm",l&&"ps-10",i&&"border-err focus:border-err",p)})]})})}i.propTypes={label:f().node,type:f().string,placeholder:f().string,value:f().oneOfType([f().string,f().number]),onChange:f().func,error:f().node,hint:f().node,icon:f().string,disabled:f().bool,required:f().bool,className:f().string,inputClassName:f().string,id:f().string,"aria-label":f().string}},87149:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/tokenhop/tokenhop/src/app/(dashboard)/dashboard/usage/page.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/tokenhop/tokenhop/src/app/(dashboard)/dashboard/usage/page.js","default")},87366:(a,b,c)=>{"use strict";c.d(b,{default:()=>k});var d=c(48249),e=c(49885),f=c.n(e),g=c(67484);c(99258);var h=c(91099),i=c(42824);let j={today:"今天","24h":"24小时","7d":"7天","30d":"30天","60d":"60天"};function k({value:a,onChange:b,options:c=i.nR,size:e="md",className:f,"aria-label":l="Period"}){let[m,n]=(0,g.useState)(null),o=(0,g.useMemo)(()=>m?.startsWith("zh")?c.map(a=>({...a,label:j[a.value]??a.label})):c,[m,c]);return(0,d.jsx)(h.default,{options:o,value:a,onChange:b,size:e,className:f,"aria-label":l})}k.propTypes={value:f().string,onChange:f().func,options:f().arrayOf(f().shape({value:f().oneOf(["today","24h","7d","30d","60d"]).isRequired,label:f().string.isRequired})),size:f().oneOf(["sm","md","lg"]),className:f().string,"aria-label":f().string}},87550:a=>{"use strict";a.exports=require("better-sqlite3")},87997:a=>{"use strict";a.exports=require("node:timers")},91099:(a,b,c)=>{"use strict";c.d(b,{default:()=>j});var d=c(48249),e=c(49885),f=c.n(e),g=c(67484),h=c(71404),i=c(31290);function j({options:a=[],value:b,onChange:c,size:e="md",className:f,"aria-label":k,"aria-labelledby":l,...m}){let n=(0,g.useRef)([]),o=a.findIndex(a=>a.value===b),p=o<0?0:o,q=i.Ec[e];if(!q)throw Error(`SegmentedControl: unknown size "${e}"`);return(0,d.jsx)("div",{...m,role:"radiogroup","aria-label":k,"aria-labelledby":l,className:(0,h.cn)("inline-flex items-center gap-0.5 rounded-lg border border-line bg-raised p-1 overflow-x-auto",f),children:a.map((b,e)=>(0,d.jsxs)("button",{ref:a=>{n.current[e]=a},type:"button",role:"radio","aria-checked":e===o,tabIndex:e===p?0:-1,onKeyDown:b=>((b,d)=>{if(!(0,i.JF)(b.key)||0===a.length)return;b.preventDefault();let e=(0,i.lZ)(d,b.key,{length:a.length,rtl:b.currentTarget.closest("[dir]")?.getAttribute("dir")==="rtl"});n.current[e]?.focus(),c?.(a[e].value)})(b,e),onClick:()=>c?.(b.value),className:(0,h.cn)("inline-flex shrink-0 items-center gap-1.5 rounded-md px-3 font-semibold transition-colors duration-200 focus-visible:shadow-focus motion-reduce:transition-none",q,e===o?"bg-text text-bg":"text-muted hover:text-text"),children:[b.icon&&(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]","aria-hidden":"true",children:b.icon}),b.label,null!=b.count&&(0,d.jsx)("span",{className:(0,h.cn)("font-mono",e===o?"text-bg/80":"text-muted"),children:b.count})]},b.value))})}j.propTypes={options:f().arrayOf(f().shape({value:f().oneOfType([f().string,f().number]).isRequired,label:f().node.isRequired,icon:f().string,count:f().oneOfType([f().string,f().number])})),value:f().oneOfType([f().string,f().number]),onChange:f().func,size:f().oneOf(Object.keys(i.Ec)),className:f().string,"aria-label":function(a,b,c){return a["aria-label"]||a["aria-labelledby"]?null:Error(`${c}: provide "aria-label" or "aria-labelledby".`)},"aria-labelledby":f().string}},91645:a=>{"use strict";a.exports=require("net")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,8666,2430,2217,2116,6561,9421,7819,6070,1152,915,7642,4123,7261,1533,6244,6849,2592,8468,1863],()=>b(b.s=48299));module.exports=c})();
|
|
1
|
+
(()=>{var a={};a.id=2825,a.ids=[2825],a.modules={643:a=>{"use strict";a.exports=require("node:perf_hooks")},1708:a=>{"use strict";a.exports=require("node:process")},1932:a=>{"use strict";a.exports=require("url")},3178:(a,b,c)=>{Promise.resolve().then(c.bind(c,87149))},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4573:a=>{"use strict";a.exports=require("node:buffer")},7066:a=>{"use strict";a.exports=require("node:tty")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14985:a=>{"use strict";a.exports=require("dns")},16698:a=>{"use strict";a.exports=require("node:async_hooks")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},19870:(a,b,c)=>{"use strict";c.d(b,{P:()=>f,o:()=>e});var d=c(67484);function e(){let[a,b]=(0,d.useState)(!1);return a}function f(){let[a,b]=(0,d.useState)("/v1");return a}},21820:a=>{"use strict";a.exports=require("os")},22811:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>ab});var d=c(48249),e=c(67484),f=c(90314),g=c(19099),h=c(74812),i=c(25994),j=c(87366),k=c(17660),l=c(73655),m=c(83521),n=c(64909),o=c(45902),p=c(78999),q=c(76674),r=c(60729);function s({hidden:a,tab:b}){return{hidden:a,tab:b,open:!a&&"overview"===b,needsCatchUp:!1}}function t(a,b){switch(b.type){case"visibility":case"tab":{let c="visibility"===b.type?b.hidden:a.hidden,d="tab"===b.type?b.tab:a.tab,e=!c&&"overview"===d;if(c===a.hidden&&d===a.tab)return a;return{hidden:c,tab:d,open:e,needsCatchUp:a.needsCatchUp||!a.open&&e}}case"caughtUp":return a.needsCatchUp?{...a,needsCatchUp:!1}:a;case"reconnected":return a.open&&!a.needsCatchUp?{...a,needsCatchUp:!0}:a;default:throw Error(`streamReducer: unknown action "${b?.type}"`)}}let u={activeRequests:[],lastProvider:"",errorProvider:""};var v=c(23107);c(92592);var w=c(49885),x=c.n(w),y=c(516),z=c(47392),A=c(72161);let B={today:{caption:"vs same time yesterday"},"24h":{caption:"vs prior 24h"},"7d":{caption:"vs prior 7d"},"30d":{caption:"vs prior 30d"},"60d":{caption:"vs prior 60d"},default:{caption:"vs prior period"}},C=a=>String(Math.round(10*a)/10),D=a=>a>=1e9?`${C(a/1e9)}B`:a>=1e6?`${C(a/1e6)}M`:a>=1e3?`${C(a/1e3)}K`:String(Math.round(a)||0),E=a=>a>=1e9?`$${C(a/1e9)}B`:a>=1e6?`$${C(a/1e6)}M`:a>=1e3?`$${C(a/1e3)}k`:`$${(a||0).toFixed(2)}`,F={requests:"text-muted",input:"text-sky",cached:"text-lime-ink",output:"text-coral-ink",cost:"text-muted"};function G({current:a,previous:b,period:c}){let e=function(a,b){if(!Number.isFinite(a)||!Number.isFinite(b)||b<=0)return{kind:"none"};let{delta:c}=(0,A.ul)(a,b),d=Math.round(c/b*100);return{kind:d>0?"up":d<0?"down":"flat",pct:d}}(a,b);if("none"===e.kind)return(0,d.jsx)("span",{className:"text-muted",children:"No prior data"});let f="up"===e.kind?"text-ok":"down"===e.kind?"text-err":"text-muted",g=(B[c]||B.default).caption;return(0,d.jsxs)("span",{children:[(0,d.jsxs)("span",{className:`font-semibold ${f}`,children:[e.pct>0?"+":"",e.pct,"%"]})," ",(0,d.jsx)("span",{className:"text-muted",children:g})]})}function H({stats:a,loading:b=!1,previous:c=null,currentTotals:e=null,buckets:f=null,period:g}){if(b||!a)return(0,d.jsx)("div",{className:"grid min-w-0 grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-4 md:grid-cols-3 lg:grid-cols-5",children:[0,1,2,3,4].map(a=>(0,d.jsx)(h.Skeleton,{className:"h-[104px] rounded-2xl"},a))});let i=a.totalPromptTokens||0,j=a.totalCachedTokens||0,k=a.totalCompletionTokens||0,l=a.totalRequests||0,m=i>0?Math.round(j/i*100):0,n=l>0?Math.round(k/l):0,o=[{eyebrow:"Requests",value:(0,d.jsx)(y.default,{value:l,format:D}),delta:"In this period",field:"requests",current:e?.requests,prev:c?.requests},{eyebrow:"Input tokens",value:(0,d.jsx)("span",{className:"text-sky",children:(0,d.jsx)(y.default,{value:i,format:D})}),delta:"After token saver",field:"input",current:e?.promptTokens,prev:c?.promptTokens},{eyebrow:"Cached",value:(0,d.jsx)("span",{className:"text-lime-ink",children:(0,d.jsx)(y.default,{value:j,format:D})}),delta:`${m}% of input`,field:"cached",current:e?.cachedTokens,prev:c?.cachedTokens},{eyebrow:"Output tokens",value:(0,d.jsx)("span",{className:"text-coral-ink",children:(0,d.jsx)(y.default,{value:k,format:D})}),delta:`Avg ${new Intl.NumberFormat().format(Math.round(n)||0)} per request`,field:"output",current:e?.completionTokens,prev:c?.completionTokens},{eyebrow:"Est. cost",value:(0,d.jsx)(y.default,{value:a.totalCost,format:E}),delta:"List prices, not your bill",field:"cost",current:e?.cost,prev:c?.cost}];return(0,d.jsx)("div",{className:"grid min-w-0 grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-4 md:grid-cols-3 lg:grid-cols-5",children:o.map(a=>(0,d.jsx)(z.default,{eyebrow:a.eyebrow,value:a.value,delta:a.delta,trend:(0,d.jsx)(G,{current:a.current,previous:a.prev,period:g}),sparkline:function(a,b){if(Array.isArray(a)&&!(a.length<2))return a.map(a=>Number(a?.[b])||0)}(f,a.field),className:`min-w-0 ${F[a.field]}`},a.eyebrow))})}G.propTypes={current:x().number,previous:x().number,period:x().string},H.propTypes={stats:x().object,loading:x().bool,previous:x().object,currentTotals:x().object,buckets:x().array,period:x().string.isRequired};let I=(0,e.memo)(H);var J=c(91099),K=c(26584),L=c(65181),M=c(83035),N=c(58460);let O=a=>new Intl.NumberFormat().format(a||0),P=a=>a>=1e6?`${(a/1e6).toFixed(1)}M`:a>=1e3?`${(a/1e3).toFixed(1)}K`:String(a||0),Q=a=>`$${(a||0).toFixed(2)}`,R={model:{key:"rawModel",label:"Model",source:"byModel",emptyTitle:"No usage by model in this period."},account:{key:"accountName",label:"Account",source:"byAccount",emptyTitle:"No account usage in this period."},apiKey:{key:"keyName",label:"API key",source:"byApiKey",emptyTitle:"No API key usage in this period."},endpoint:{key:"endpoint",label:"Endpoint",source:"byEndpoint",emptyTitle:"No endpoint usage in this period."}};function S({stats:a}){let[b,c]=(0,e.useState)("model"),[f,g]=(0,e.useState)("costs"),[h,i]=(0,e.useState)("totalCost"),[j,l]=(0,e.useState)("desc"),[m,n]=(0,e.useState)(new Set),o=R[b],p=(0,e.useMemo)(()=>{let b=a?.[o.source],c=Array.isArray(b)?b:Object.entries(b||{}).map(([a,b])=>({key:a,...b}));return(0,v.fD)((0,v.sN)(c,h,j),o.key)},[a,o,h,j]),q=(0,e.useMemo)(()=>{let a={requests:0,promptTokens:0,completionTokens:0,cost:0};for(let b of p)a.requests+=b.summary.requests||0,a.promptTokens+=b.summary.promptTokens||0,a.completionTokens+=b.summary.completionTokens||0,a.cost+=b.summary.cost||0;return a},[p]),r=[{field:"__label",label:o.label,numeric:!1},{field:"requests",label:"Requests",numeric:!0},{field:"__input",label:"Input",numeric:!0},{field:"__output",label:"Output",numeric:!0},{field:"totalCost",label:"Cost",numeric:!0},{field:"__share",label:"Share",numeric:!1}],s=a=>"__input"===a?"costs"===f?"totalCost":"promptTokens":"__output"===a?"costs"===f?"totalCost":"completionTokens":a,t=a=>"costs"===f?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("td",{className:"px-6 py-3 text-end font-mono",children:O(a.requests)}),(0,d.jsx)("td",{className:"px-6 py-3 text-end font-mono text-muted",children:Q((a.cost||a.totalCost||0)*Math.max(0,(a.promptTokens||0)-(a.cachedTokens||0))/Math.max(1,(a.promptTokens||0)+(a.completionTokens||0)))}),(0,d.jsx)("td",{className:"px-6 py-3 text-end font-mono text-muted",children:Q((a.cost||a.totalCost||0)*(a.completionTokens||0)/Math.max(1,(a.promptTokens||0)+(a.completionTokens||0)))}),(0,d.jsx)("td",{className:"px-6 py-3 text-end font-mono",children:Q(a.cost??a.totalCost)})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("td",{className:"px-6 py-3 text-end font-mono",children:O(a.requests)}),(0,d.jsx)("td",{className:"px-6 py-3 text-end font-mono text-muted",children:P(a.promptTokens)}),(0,d.jsx)("td",{className:"px-6 py-3 text-end font-mono text-muted",children:P(a.completionTokens)}),(0,d.jsx)("td",{className:"px-6 py-3 text-end font-mono",children:P((a.promptTokens||0)+(a.completionTokens||0))})]}),u=a=>{let b="costs"===f?q.cost:q.promptTokens+q.completionTokens,c="costs"===f?a.cost||a.totalCost||0:(a.promptTokens||0)+(a.completionTokens||0);return(0,v.lt)(c,b)};return(0,d.jsxs)(k.default,{padding:"none",children:[(0,d.jsx)(k.default.Header,{className:"px-6 pt-4 pb-4",title:"Breakdown",actions:(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsx)(J.default,{"aria-label":"Breakdown view",size:"sm",value:b,onChange:c,options:[{value:"model",label:"Model"},{value:"account",label:"Account"},{value:"apiKey",label:"API key"},{value:"endpoint",label:"Endpoint"}]}),(0,d.jsx)(J.default,{"aria-label":"Breakdown metric",size:"sm",value:f,onChange:g,options:[{value:"costs",label:"Costs"},{value:"tokens",label:"Tokens"}]})]})}),a&&0!==p.length?(0,d.jsx)("section",{className:"overflow-x-auto focus-visible:shadow-focus","aria-label":"Usage breakdown",tabIndex:0,children:(0,d.jsxs)("table",{className:"w-full text-start text-sm",children:[(0,d.jsx)("thead",{children:(0,d.jsx)("tr",{className:N.pi,children:r.map(a=>(0,d.jsx)("th",{scope:"col","aria-sort":h===s(a.field)?"asc"===j?"ascending":"descending":void 0,className:`${N.PK} px-6 py-3 ${a.numeric?"text-end":"text-start"}`,children:"__label"===a.field||"__share"===a.field?a.label:(0,d.jsxs)("button",{type:"button",onClick:()=>{let b;h===(b=s(a.field))?l(a=>"asc"===a?"desc":"asc"):(i(b),l("desc"))},className:"inline-flex items-center gap-1 hover:text-text",children:[a.label,(0,d.jsx)("span",{"aria-hidden":"true",className:"opacity-60",children:h===s(a.field)?"asc"===j?"↑":"↓":"↕"})]})},a.field))})}),(0,d.jsx)("tbody",{className:"divide-y divide-line",children:p.map(a=>{let c=m.has(a.groupKey),f=u(a.summary),g=1===new Set(a.items.map(a=>a.provider)).size?a.items[0]?.provider:null;return(0,d.jsxs)(e.Fragment,{children:[(0,d.jsxs)("tr",{className:"transition-colors hover:bg-raised/50",children:[(0,d.jsx)("td",{className:"px-6 py-3",children:(0,d.jsxs)("button",{type:"button",onClick:()=>n(b=>{let c=new Set(b);return c.has(a.groupKey)?c.delete(a.groupKey):c.add(a.groupKey),c}),"aria-expanded":c,className:"flex items-center gap-2 font-medium",children:[(0,d.jsx)("span",{"aria-hidden":"true",className:`material-symbols-outlined text-[18px] text-muted transition-transform ${c?"rotate-90":""}`,children:"chevron_right"}),"model"===b&&g&&(0,d.jsx)(M.default,{providerId:g,size:"sm"}),(0,d.jsx)("span",{className:"max-w-[280px] truncate font-mono text-[13px]",children:a.groupKey}),(0,d.jsxs)("span",{className:"sr-only",children:[a.items.length," rows, last used ",(a=>{if(!a)return"Never";let b=Math.floor((Date.now()-new Date(a))/6e4);return b<1?"Just now":b<60?`${b}m ago`:b<1440?`${Math.floor(b/60)}h ago`:new Date(a).toLocaleDateString()})(a.summary.lastUsed)]})]})}),t(a.summary),(0,d.jsx)("td",{className:"px-6 py-3",children:(0,d.jsxs)("span",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"min-w-24 flex-1",children:(0,d.jsx)(L.default,{value:f,kind:"credits",label:`Share of ${a.groupKey}`,valueText:`${f.toFixed(1)} percent`})}),(0,d.jsxs)("span",{className:"font-mono text-xs text-muted",children:[f.toFixed(0),"%"]})]})})]}),c&&a.items.map(b=>(0,d.jsxs)("tr",{className:"bg-raised/20",children:[(0,d.jsx)("td",{className:"py-3 ps-12 pe-6 font-mono text-[13px] text-muted",children:(0,d.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[b.provider&&(0,d.jsx)(M.default,{providerId:b.provider,size:"sm"}),(0,d.jsx)("span",{className:"truncate",children:b.provider?`${b.rawModel||b.groupKey} \xb7 ${b.provider}`:b.rawModel||b.key||"—"})]})}),t(b),(0,d.jsx)("td",{className:"px-6 py-3",children:(0,d.jsxs)("span",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"min-w-24 flex-1",children:(0,d.jsx)(L.default,{value:u(b),kind:"credits",label:`Share of ${b.rawModel||b.key}`,valueText:`${u(b).toFixed(1)} percent`})}),(0,d.jsxs)("span",{className:"font-mono text-xs text-muted",children:[u(b).toFixed(0),"%"]})]})})]},`${a.groupKey}|${b.key}|${b.rawModel}|${b.provider}|${b.connectionId}|${b.keyName}|${b.endpoint}|${b.apiKeyKey}`))]},a.groupKey)})})]})}):(0,d.jsx)(K.default,{icon:"table_rows",title:o.emptyTitle})]})}S.propTypes={stats:x().object};let T=(0,e.memo)(S);var U=c(99070),V=c(31023),W=c(83552),X=c(24279),Y=c(85158),Z=c(14898);let $=a=>a?.cached_tokens||a?.cache_read_input_tokens||0;function _(){let[a,b]=(0,e.useState)([]),[c,f]=(0,e.useState)({page:1,pageSize:20,totalItems:0,totalPages:0}),[g,h]=(0,e.useState)(!0),[i,j]=(0,e.useState)(""),m=(0,e.useRef)(null),[n,o]=(0,e.useState)(null),[p,q]=(0,e.useState)(!1),[r,s]=(0,e.useState)([]),[t,u]=(0,e.useState)(null),[v,w]=(0,e.useState)({provider:"",startDate:"",endDate:""}),x=v.startDate&&v.endDate&&v.startDate>v.endDate?"Start must be before end":"",y=(0,e.useCallback)(async()=>{m.current?.abort();let a=new AbortController;m.current=a,h(!0);try{let d=new URLSearchParams({page:String(c.page),pageSize:String(c.pageSize)});v.provider&&d.append("provider",v.provider),v.startDate&&d.append("startDate",new Date(v.startDate).toISOString()),v.endDate&&d.append("endDate",new Date(v.endDate).toISOString());let e=await fetch(`/api/usage/request-details?${d}`,{signal:a.signal});if(!e.ok)throw Error(`HTTP ${e.status}`);let g=await e.json();b(g.details||[]),f(a=>({...a,...g.pagination})),j("")}catch(b){if(a.signal.aborted)return;console.error("Failed to fetch request details:",b),j(b instanceof Error&&b.message?b.message:"Unknown error")}finally{a.signal.aborted||h(!1)}},[c.page,c.pageSize,v]),z=(a,b)=>{w(c=>({...c,[a]:b})),f(a=>1===a.page?a:{...a,page:1})};return(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-4",children:[(0,d.jsx)(k.default,{children:(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-4 lg:flex-row lg:items-end",children:[(0,d.jsx)(V.default,{id:"provider-filter",label:"Provider",placeholder:null,options:[{value:"",label:"All providers"},...r.map(a=>({value:a.id,label:a.name!==a.id?`${a.name} (${a.id.slice(0,18)}…)`:a.name}))],value:v.provider,onChange:a=>z("provider",a.target.value),className:"min-w-0 lg:w-60"}),(0,d.jsxs)("fieldset",{className:"min-w-0 flex-1",children:[(0,d.jsx)("legend",{className:"text-sm font-medium",children:"Date range"}),(0,d.jsxs)("div",{className:"mt-1.5 grid min-w-0 grid-cols-1 gap-3 sm:grid-cols-2",children:[(0,d.jsx)(W.default,{id:"start-date-filter",type:"datetime-local",label:"From",value:v.startDate,onChange:a=>z("startDate",a.target.value)}),(0,d.jsx)(W.default,{id:"end-date-filter",type:"datetime-local",label:"To",error:x,value:v.endDate,onChange:a=>z("endDate",a.target.value)})]})]}),(0,d.jsx)(U.default,{variant:"ghost",onClick:()=>{w({provider:"",startDate:"",endDate:""}),f(a=>1===a.page?a:{...a,page:1})},disabled:!v.provider&&!v.startDate&&!v.endDate,children:"Clear filters"})]})}),(0,d.jsx)(k.default,{padding:"none",children:g?(0,d.jsx)(l.LoadingState,{label:"Loading requests",lines:5,className:"p-6"}):i?(0,d.jsx)("div",{className:"p-6",children:(0,d.jsx)(l.ErrorState,{title:"Couldn't load requests",message:i,onRetry:y})}):0===a.length?(0,d.jsx)(K.default,{icon:"receipt_long",title:"No request details found",body:"Adjust the filters or make a request through the gateway."}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("section",{className:"overflow-x-auto focus-visible:shadow-focus","aria-label":"Request log",tabIndex:0,children:(0,d.jsxs)("table",{className:"w-full min-w-[880px] text-sm",children:[(0,d.jsx)("thead",{children:(0,d.jsxs)("tr",{className:N.pi,children:[(0,d.jsx)("th",{scope:"col",className:`${N.PK} p-4 text-start`,children:"Timestamp"}),(0,d.jsx)("th",{scope:"col",className:`${N.PK} p-4 text-start`,children:"Model"}),(0,d.jsx)("th",{scope:"col",className:`${N.PK} p-4 text-start`,children:"Provider"}),(0,d.jsx)("th",{scope:"col",className:`${N.PK} p-4 text-end`,children:"Input"}),(0,d.jsx)("th",{scope:"col",className:`${N.PK} p-4 text-end`,children:"Cached"}),(0,d.jsx)("th",{scope:"col",className:`${N.PK} p-4 text-end`,children:"Output"}),(0,d.jsx)("th",{scope:"col",className:`${N.PK} p-4 text-start`,children:"Latency"}),(0,d.jsx)("th",{scope:"col",className:`${N.PK} p-4 text-start`,children:"Status"}),(0,d.jsx)("th",{scope:"col",className:`${N.PK} p-4 text-start`,children:(0,d.jsx)("span",{className:"sr-only",children:"Actions"})})]})}),(0,d.jsx)("tbody",{children:a.map((a,b)=>{var c;let e,f,g,h=(e=a.id,`req-${String(e).replace(/[^A-Za-z0-9_-]+/g,"-")}-${b}`);return(0,d.jsxs)("tr",{className:"border-b border-line transition-colors last:border-b-0 hover:bg-raised",children:[(0,d.jsx)("td",{id:`${h}-time`,className:"whitespace-nowrap p-4",children:a.timestamp?new Date(a.timestamp).toLocaleString():"—"}),(0,d.jsx)("td",{id:`${h}-model`,className:"max-w-[260px] truncate p-4 font-mono",children:a.model}),(0,d.jsx)("td",{className:"max-w-[180px] p-4",children:(0,d.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[a.provider&&(0,d.jsx)(M.default,{providerId:a.provider,size:"sm"}),(0,d.jsx)("span",{className:"truncate",children:(0,Z.s)(a.provider,t)})]})}),(0,d.jsx)("td",{className:"p-4 text-end font-mono",children:(c=a.tokens,f=c?.prompt_tokens||c?.input_tokens||0,f<(g=$(c))?g:f).toLocaleString()}),(0,d.jsx)("td",{className:"p-4 text-end font-mono",children:$(a.tokens)>0?$(a.tokens).toLocaleString():"—"}),(0,d.jsx)("td",{className:"p-4 text-end font-mono",children:(a.tokens?.completion_tokens??a.tokens?.output_tokens??0).toLocaleString()}),(0,d.jsxs)("td",{className:"whitespace-nowrap p-4 font-mono text-muted",children:[a.latency?.total??0,"ms"]}),(0,d.jsx)("td",{className:"p-4",children:(0,d.jsx)(X.default,{variant:a.status&&"ok"!==a.status&&"success"!==a.status?"err":"ok",size:"sm",children:a.status||"ok"})}),(0,d.jsx)("td",{className:"p-4 text-center",children:(0,d.jsx)(U.default,{variant:"outline",size:"sm","aria-describedby":`${h}-model ${h}-time`,onClick:()=>{o(a),q(!0)},children:"Detail"})})]},`${a.id}|${a.timestamp}`)})})]})}),(0,d.jsx)("div",{className:"border-t border-line",children:(0,d.jsx)(Y.A,{currentPage:c.page,pageSize:c.pageSize,totalItems:c.totalItems,onPageChange:a=>f(b=>({...b,page:a})),onPageSizeChange:a=>f(b=>({...b,pageSize:a,page:1}))})})]})}),(0,d.jsx)(Z.A,{detail:n,isOpen:p,onClose:()=>q(!1),providerName:n?(0,Z.s)(n.provider,t):null})]})}let aa=(0,f.default)(()=>c.e(4e3).then(c.bind(c,34e3)),{loadableGenerated:{modules:["app/(dashboard)/dashboard/usage/page.js -> ./components/UsageTokensChart"]},loading:()=>(0,d.jsx)(h.CardSkeleton,{})});function ab(){return(0,d.jsx)(e.Suspense,{fallback:(0,d.jsx)(h.CardSkeleton,{}),children:(0,d.jsx)(ac,{})})}function ac(){let a=(0,g.useSearchParams)(),b=(0,g.useRouter)(),{period:c,setPeriod:f,options:v}=(0,q.A)(),w=a.get("tab"),x="details"===w||"logs"===w?"logs":"overview",{stats:y,statsPeriod:z,live:A,loading:B,error:C,retry:D,catchUpKey:E}=function(a,{tab:b="overview"}={}){let[c,d]=(0,e.useState)(null),[f,g]=(0,e.useState)(a),[h,i]=(0,e.useState)(u),[j,k]=(0,e.useState)(!0),[l,m]=(0,e.useState)(!1),[n,o]=(0,e.useState)(null),[p,q]=(0,e.useState)(0),[r,v]=(0,e.useReducer)(t,{hidden:"u">typeof document&&document.hidden,tab:b},s),[w,x]=(0,e.useState)(0);return(0,e.useRef)(!1),{stats:c,statsPeriod:f,live:h,loading:j,fetching:l,error:n,catchUpKey:p,retry:(0,e.useCallback)(()=>{x(a=>a+1),q(a=>a+1)},[])}}(c,{tab:x}),F=function(){let[a,b]=(0,e.useState)([]);return a}(),[G,H]=(0,e.useState)(0),J=(0,p.A)(G),K=(0,e.useRef)(new Map),[L,M]=(0,e.useState)(0);A.activeRequests.length;let N=(0,e.useMemo)(()=>J.routes?(K.current=(0,r.KY)(A.activeRequests,K.current),(0,r.TV)((0,r.Ld)(J.routes,F),A,K.current)):null,[J.routes,F,A,L]),O=!!N&&N.providers.length>0&&(0,r.xB)(N),P=!!y&&z===c&&!B&&!C&&!y.totalRequests,Q=(0,o.A)(P||O),R=function(){let[a,b]=(0,e.useState)([]),[c,d]=(0,e.useState)(null),[f,g]=(0,e.useState)(!1),[h,i]=(0,e.useState)(null),[j,k]=(0,e.useState)(0),l=(0,e.useCallback)(()=>k(a=>a+1),[]);return(0,e.useRef)(""),{buckets:a,bucketsPeriod:c,loading:f,error:h,retry:l}}();return(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:px-0",children:[(0,d.jsx)("div",{className:"flex flex-col gap-4",children:(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsx)(i.default,{"aria-label":"Usage view",value:x,onChange:c=>{if(c===x)return;let d=new URLSearchParams(a);d.set("tab",c),b.push(`/dashboard/usage?${d.toString()}`,{scroll:!1})},tabs:[{value:"overview",label:"Overview"},{value:"logs",label:"Request log"}]}),"overview"===x&&(0,d.jsx)(j.default,{"aria-label":"Stats period",options:v,value:c,onChange:f,size:"sm",className:"w-full sm:w-auto"})]})}),"overview"===x?(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-6",children:[C&&!B?(0,d.jsx)(k.default,{children:(0,d.jsx)(l.ErrorState,{title:"Couldn't load usage stats",message:C.message||"Try switching period or reloading the page.",onRetry:D})}):null,P?(0,d.jsx)(k.default,{children:(0,d.jsx)(m.default,{period:c,lastRequestAt:Q.lastRequestAt,loading:Q.loading,onSelectPeriod:f,error:Q.error,onRetry:Q.retry})}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(e.Suspense,{fallback:(0,d.jsx)(h.CardSkeleton,{}),children:(0,d.jsx)(I,{stats:z===c?y:null,loading:null===c||B||z!==c,previous:z===c?y?.previous:null,currentTotals:z===c?y?.currentTotals:null,buckets:R.bucketsPeriod===c?R.buckets:null,period:c??""})}),c?(0,d.jsx)(aa,{buckets:R.buckets,loading:R.loading||R.bucketsPeriod!==c&&!R.error,error:R.error,onRetry:R.retry}):null]}),(0,d.jsx)(n.B,{variant:"full",routes:N,loading:J.loading,error:J.error,onRetry:()=>H(a=>a+1),lastRequestAt:Q.lastRequestAt,lastActivityError:Q.error,onRetryLastActivity:Q.retry}),!P&&(z===c&&y?(0,d.jsx)(T,{stats:y}):(0,d.jsx)(h.CardSkeleton,{}))]}):(0,d.jsx)(_,{})]})}},24279:(a,b,c)=>{"use strict";c.d(b,{default:()=>h});var d=c(48249),e=c(49885),f=c.n(e),g=c(58460);function h({children:a,variant:b="neutral",size:c="md",dot:e=!1,className:f}){return(0,d.jsxs)("span",{className:`inline-flex items-center gap-1.5 rounded-full font-semibold whitespace-nowrap ${(0,g.S3)(b,c)}${f?` ${f}`:""}`,children:[e&&(0,d.jsx)("span",{"aria-hidden":"true",className:"size-2 rounded-full bg-current"}),a]})}h.propTypes={children:f().node,variant:f().oneOf(g.XY),size:f().oneOf(Object.keys(g.vO)),dot:f().bool,className:f().string}},25994:(a,b,c)=>{"use strict";c.d(b,{default:()=>k});var d=c(48249),e=c(49885),f=c.n(e),g=c(67484),h=c(71404),i=c(31290);let j=["ArrowLeft","ArrowRight","Home","End"];function k({tabs:a=[],value:b,defaultValue:c,onChange:e,className:f,id:l,"aria-label":m,"aria-labelledby":n,...o}){let p=(0,g.useId)(),q=l||p,r=(0,g.useRef)([]),[s,t]=(0,g.useState)(c??a[0]?.value),u=void 0!==b?b:s,v=Math.max(0,a.findIndex(a=>a.value===u)),w=a=>{void 0===b&&t(a),e?.(a)};return(0,d.jsxs)("div",{...o,className:(0,h.cn)("flex flex-col",f),children:[(0,d.jsx)("div",{role:"tablist","aria-label":m,"aria-labelledby":n,"aria-orientation":"horizontal",className:"flex items-center gap-1 border-b border-line overflow-x-auto",children:a.map((b,c)=>{let e=c===v;return(0,d.jsxs)("button",{ref:a=>{r.current[c]=a},type:"button",role:"tab",id:`${q}-tab-${b.value}`,"aria-selected":e,"aria-controls":`${q}-panel-${b.value}`,tabIndex:e?0:-1,onClick:()=>w(b.value),onKeyDown:b=>((b,c)=>{if(!j.includes(b.key)||0===a.length)return;b.preventDefault();let d=(0,i.lZ)(c,b.key,{length:a.length,rtl:b.currentTarget.closest("[dir]")?.getAttribute("dir")==="rtl"});r.current[d]?.focus(),w(a[d].value)})(b,c),className:(0,h.cn)("relative inline-flex h-11 shrink-0 items-center px-3 text-sm font-semibold transition-colors focus-visible:shadow-focus",e?"text-text":"text-muted hover:text-text"),children:[b.label,null!=b.count&&(0,d.jsx)("span",{className:"ms-1.5 font-mono text-xs text-muted",children:b.count}),(0,d.jsx)("span",{"aria-hidden":"true",className:(0,h.cn)("absolute inset-x-2 -bottom-px h-0.5 rounded-full bg-coral transition-opacity",e?"opacity-100":"opacity-0")})]},b.value)})}),a.map((a,b)=>(0,d.jsx)("div",{role:"tabpanel",id:`${q}-panel-${a.value}`,"aria-labelledby":`${q}-tab-${a.value}`,hidden:b!==v,tabIndex:(0,i.qM)(a.content)?0:void 0,children:a.content},a.value))]})}k.propTypes={tabs:f().arrayOf(f().shape({value:f().oneOfType([f().string,f().number]).isRequired,label:f().node.isRequired,count:f().oneOfType([f().string,f().number]),content:f().node})),value:f().oneOfType([f().string,f().number]),defaultValue:f().oneOfType([f().string,f().number]),onChange:f().func,className:f().string,id:f().string,"aria-label":function(a,b,c){return a["aria-label"]||a["aria-labelledby"]?null:Error(`${c}: provide "aria-label" or "aria-labelledby".`)},"aria-labelledby":f().string}},27444:(a,b,c)=>{"use strict";c.d(b,{default:()=>j});var d=c(48249),e=c(49885),f=c.n(e),g=c(67484),h=c(71404),i=c(31290);function j({id:a,label:b,hint:c,error:e,required:f=!1,className:k,children:l}){let m=(0,g.useId)(),n=a||`${m}-input`,o=`${n}-hint`,p=`${n}-error`,q=(0,i.Gc)(n,{hint:c,error:e});return(0,d.jsxs)("div",{className:(0,h.cn)("flex flex-col gap-1.5",k),children:[b&&(0,d.jsxs)("label",{htmlFor:n,className:"text-sm font-medium text-text",children:[b,f&&(0,d.jsx)("span",{className:"text-err ms-1","aria-hidden":"true",children:"*"})]}),l({inputId:n,describedBy:q,invalid:!!e}),e?(0,d.jsxs)("p",{id:p,className:"text-xs text-err flex items-center gap-1",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]","aria-hidden":"true",children:"error"}),e]}):c?(0,d.jsx)("p",{id:o,className:"text-xs text-muted",children:c}):null]})}j.propTypes={id:f().string,label:f().node,hint:f().node,error:f().node,required:f().bool,className:f().string,children:f().func.isRequired}},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31023:(a,b,c)=>{"use strict";c.d(b,{default:()=>i});var d=c(48249),e=c(49885),f=c.n(e),g=c(71404),h=c(27444);function i({label:a,options:b=[],value:c,onChange:e,placeholder:f="Select an option",error:j,hint:k,disabled:l=!1,required:m=!1,className:n,selectClassName:o,id:p,...q}){return(0,d.jsx)(h.default,{id:p,label:a,hint:k,error:j,required:m,className:n,children:({inputId:a,describedBy:h,invalid:i})=>(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsxs)("select",{...q,id:a,value:c,onChange:e,disabled:l,"aria-describedby":h,"aria-invalid":i||void 0,className:(0,g.cn)("w-full h-11 ps-3 pe-10 text-sm text-text bg-raised rounded-lg appearance-none","border border-line focus:outline-none focus:border-coral focus:shadow-focus","transition-colors duration-150 disabled:opacity-50 disabled:cursor-not-allowed","text-[16px] sm:text-sm",i&&"border-err focus:border-err",o),children:[null!==f&&(0,d.jsx)("option",{value:"",disabled:!0,children:f}),(function(a=[]){let b=[];for(let c of a){let a=c.group||null,d=b[b.length-1];d&&d.label===a?d.options.push(c):b.push({label:a,options:[c]})}return b})(b).map((a,b)=>null===a.label?a.options.map(a=>(0,d.jsx)("option",{value:a.value,children:a.label},a.value)):(0,d.jsx)("optgroup",{label:a.label,children:a.options.map(a=>(0,d.jsx)("option",{value:a.value,children:a.label},a.value))},`${a.label}-${b}`))]}),(0,d.jsx)("div",{className:"absolute inset-y-0 end-0 flex items-center pe-3 pointer-events-none text-muted","aria-hidden":"true",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"expand_more"})})]})})}i.propTypes={label:f().node,options:f().arrayOf(f().shape({value:f().oneOfType([f().string,f().number]).isRequired,label:f().node.isRequired,group:f().string})),value:f().oneOfType([f().string,f().number]),onChange:f().func,placeholder:f().oneOfType([f().string,f().oneOf([null])]),error:f().node,hint:f().node,disabled:f().bool,required:f().bool,className:f().string,selectClassName:f().string,id:f().string}},31421:a=>{"use strict";a.exports=require("node:child_process")},32467:a=>{"use strict";a.exports=require("node:http2")},33873:a=>{"use strict";a.exports=require("path")},34589:a=>{"use strict";a.exports=require("node:assert")},37067:a=>{"use strict";a.exports=require("node:http")},37540:a=>{"use strict";a.exports=require("node:console")},38522:a=>{"use strict";a.exports=require("node:zlib")},40610:a=>{"use strict";a.exports=require("node:dns")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},41692:a=>{"use strict";a.exports=require("node:tls")},41792:a=>{"use strict";a.exports=require("node:querystring")},42824:(a,b,c)=>{"use strict";c.d(b,{G9:()=>k,K9:()=>s,UD:()=>i,_p:()=>l,cs:()=>f,dH:()=>p,hQ:()=>n,jJ:()=>j,nR:()=>d,py:()=>r,sO:()=>q,tJ:()=>e});let d=[{value:"today",label:"Today"},{value:"24h",label:"24h"},{value:"7d",label:"7d"},{value:"30d",label:"30d"},{value:"60d",label:"60d"}],e=d.map(a=>a.value),f=["today","7d","30d"],g="signal.period",h="today";function i(a){return e.includes(a)}function j(a,b=e){if(!Array.isArray(b)||0===b.length)throw TypeError("coercePeriod: allowed must be a non-empty period array");let c=e.indexOf(a);return c>=0?b.includes(a)?a:e.slice(c).find(a=>b.includes(a))??e.findLast(a=>b.includes(a)):b.includes(h)?h:b[0]}function k({urlValue:a,storedValue:b,allowed:c=e}){return null!=a&&i(a)?j(a,c):null!=b&&i(b)?j(b,c):j(h,c)}function l(a){return d.filter(b=>a.includes(b.value))}let m={"7d":7,"30d":30,"60d":60};function n(a,b=e,c=Date.now()){let d=a instanceof Date?a.getTime():new Date(a).getTime();if(Number.isNaN(d))return null;for(let a of b)if(function(a,b=Date.now()){let c=new Date(b);switch(c.setHours(0,0,0,0),a){case"today":return c.getTime();case"24h":return b-864e5;case"7d":case"30d":case"60d":return c.setDate(c.getDate()-(m[a]-1)),c.getTime();default:throw Error(`Unknown period: ${a}`)}}(a,c)<=d)return a;return null}function o(){try{return null}catch{return null}}function p(a=o()){try{let b=a?.getItem?.(g);return i(b)?b:null}catch{return null}}function q(a,b=o()){try{i(a)&&b?.setItem?.(g,a)}catch{}}let r={today:{title:"Quiet today",actionLabel:"Show today"},"24h":{title:"Quiet in the last 24h",actionLabel:"Show 24h"},"7d":{title:"Quiet in the last 7d",actionLabel:"Show 7d"},"30d":{title:"Quiet in the last 30d",actionLabel:"Show 30d"},"60d":{title:"Quiet in the last 60d",actionLabel:"Show 60d"},default:{title:"Quiet in this period"}};function s(a,b="en",c=Date.now()){let d,e=new Date(a).getTime();if(Number.isNaN(e))return"";let f=Math.max(0,c-e);try{d=new Intl.RelativeTimeFormat(b,{numeric:"always"})}catch{d=new Intl.RelativeTimeFormat("en",{numeric:"always"})}return f>=864e5?d.format(-Math.floor(f/864e5),"day"):f>=36e5?d.format(-Math.floor(f/36e5),"hour"):d.format(-Math.max(1,Math.floor(f/6e4)),"minute")}},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},46193:a=>{"use strict";a.exports=require("node:string_decoder")},46293:a=>{"use strict";a.exports=require("sql.js")},47392:(a,b,c)=>{"use strict";c.d(b,{default:()=>h});var d=c(48249),e=c(49885),f=c.n(e);function g(a,b){return(0,d.jsx)("span",{className:`text-sm ${a?"":"text-muted"}`,children:b})}function h({eyebrow:a,value:b,delta:c,trend:e,sparkline:f,hero:i=!1,className:j}){let k,l;return(0,d.jsxs)("div",{className:`flex flex-col gap-1 rounded-2xl border p-5 shadow-card ${i?"border-transparent bg-lime text-on-lime":"border-line bg-panel text-text"}${j?` ${j}`:""}`,children:[(0,d.jsx)("span",{className:`text-xs font-semibold uppercase tracking-[0.08em] ${i?"":"text-muted"}`,children:a}),(0,d.jsx)("span",{className:"min-w-0 font-display text-4xl font-bold tabular-nums [word-break:break-word]",children:b}),c&&g(i,c),e&&g(i,e),f&&f.length>1&&(0,d.jsx)("svg",{viewBox:"0 0 100 24",className:"mt-1 h-6 w-full","aria-hidden":"true",preserveAspectRatio:"none",children:(0,d.jsx)("polyline",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round",strokeLinecap:"round",points:(l=Math.max(...f)-(k=Math.min(...f))||1,f.map((a,b)=>{let c=b/(f.length-1)*100;return`${c},${22-(a-k)/l*20}`}).join(" "))})})]})}h.propTypes={eyebrow:f().string.isRequired,value:f().node.isRequired,delta:f().node,trend:f().node,sparkline:f().arrayOf(f().number),hero:f().bool,className:f().string}},48161:a=>{"use strict";a.exports=require("node:os")},48299:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>z,handler:()=>B,routeModule:()=>A});var d=c(21635),e=c(86315),f=c(1020),g=c(61287),h={};for(let a in g)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(h[a]=()=>g[a]);c.d(b,h);let i=(0,d.p)(()=>Promise.resolve().then(c.bind(c,57529))),j=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),k=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),l=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),m=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),n=(0,d.p)(()=>Promise.resolve().then(c.bind(c,79409))),o=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),p=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),q=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),r=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),s=(0,d.p)(()=>Promise.resolve().then(c.bind(c,79346))),t=(0,d.p)(()=>Promise.resolve().then(c.bind(c,70160))),u=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),v=(0,d.p)(()=>Promise.resolve().then(c.bind(c,55880))),w=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),x={children:["",{children:["(dashboard)",{children:["dashboard",{children:["usage",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,87149))),"/home/runner/work/tokenhop/tokenhop/src/app/(dashboard)/dashboard/usage/page.js"]}]},{"global-error":[w,"next/dist/client/components/builtin/global-error.js"]},[]]},{error:[s,"/home/runner/work/tokenhop/tokenhop/src/app/(dashboard)/dashboard/error.js"],loading:[t,"/home/runner/work/tokenhop/tokenhop/src/app/(dashboard)/dashboard/loading.js"],"global-error":[u,"next/dist/client/components/builtin/global-error.js"],"not-found":[v,"/home/runner/work/tokenhop/tokenhop/src/app/(dashboard)/dashboard/not-found.js"]},[]]},{layout:[n,"/home/runner/work/tokenhop/tokenhop/src/app/(dashboard)/layout.js"],"global-error":[o,"next/dist/client/components/builtin/global-error.js"],"not-found":[p,"next/dist/client/components/builtin/not-found.js"],forbidden:[q,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[r,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]},{layout:[i,"/home/runner/work/tokenhop/tokenhop/src/app/layout.js"],"global-error":[j,"next/dist/client/components/builtin/global-error.js"],"not-found":[k,"next/dist/client/components/builtin/not-found.js"],forbidden:[l,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[m,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]}.children,y=(0,e.H)({tree:x,page:"/(dashboard)/dashboard/usage/page",pathname:"/dashboard/usage",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),z=y.__next_app__,A=y.routeModule,B=y.handler},51455:a=>{"use strict";a.exports=require("node:fs/promises")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},57075:a=>{"use strict";a.exports=require("node:stream")},57975:a=>{"use strict";a.exports=require("node:util")},58460:(a,b,c)=>{"use strict";c.d(b,{PK:()=>o,S3:()=>i,XY:()=>h,lN:()=>j,pN:()=>q,pi:()=>n,r4:()=>m,vE:()=>l,vO:()=>f});let d={connected:"ok",healthy:"ok",active:"ok",ok:"ok",success:"ok",cooldown:"warn",warning:"warn",low:"warn",warn:"warn",error:"err",empty:"err",err:"err",oauth:"info",info:"info","api-key":"brand",brand:"brand",live:"live",disabled:"neutral",off:"neutral",neutral:"neutral"},e={ok:"bg-ok-bg text-ok",warn:"bg-warn-bg text-warn",err:"bg-err-bg text-err",info:"bg-sky-bg text-sky-ink",brand:"bg-coral-bg text-coral-ink",live:"bg-lime-bg text-lime-ink",neutral:"bg-raised text-muted shadow-[inset_0_0_0_1px_var(--signal-line)]"},f={xs:"h-5 px-2 text-[11px]",sm:"h-5 px-2 text-[11px]",md:"h-6 px-2.5 text-xs",lg:"h-7 px-3 text-sm"},g={default:"neutral",primary:"brand",success:"ok",warning:"warn",error:"err"},h=[...new Set([...Object.keys(e),...Object.keys(g),...Object.keys(d)])];function i(a="neutral",b="md"){let c=f[b];if(!c)throw Error(`pillClasses: unknown size "${b}"`);return`${e[function(a){if(e[a])return a;let b=g[a]??d[a];if(!b)throw Error(`resolvePillVariant: unknown variant "${a}"`);return b}(a)]} ${c}`}let j={ok:"bg-ok",warn:"bg-warn",err:"bg-err",live:"bg-lime",info:"bg-sky",brand:"bg-coral",neutral:"bg-subtle"},k=new Set(["unlimited","credits"]);function l(a,b){if(void 0!==b&&!k.has(b))throw Error(`meterVariant: unknown kind "${b}"`);if("number"!=typeof a||!Number.isFinite(a))throw Error(`meterVariant: expected a finite number, got ${a}`);return"unlimited"===b?"live":"credits"===b?"info":a<=20?"err":a<=45?"warn":"ok"}function m(a){if("number"!=typeof a||!Number.isFinite(a))throw Error(`meterValue: expected a finite number, got ${a}`);return Math.min(100,Math.max(0,a))}let n="border-b border-line",o="whitespace-nowrap text-xs font-semibold text-muted",p={LOG:"signal-terminal-log",INFO:"signal-terminal-info",WARN:"signal-terminal-warn",ERROR:"signal-terminal-error",DEBUG:"signal-terminal-debug"};function q(a){let b=p[a];if(!b)throw Error(`terminalLevelClass: unknown level "${a}"`);return b}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66226:(a,b,c)=>{Promise.resolve().then(c.bind(c,22811))},67635:(a,b,c)=>{"use strict";c.d(b,{default:()=>j});var d=c(48249),e=c(49885),f=c.n(e),g=c(67484),h=c(71404),i=c(31290);function j({value:a,copyValue:b,label:c="Copy to clipboard",showCopyButton:e=!0,className:f,...k}){let[l,m]=(0,g.useState)(null),n=(0,g.useRef)(null),o=a=>{m(a),clearTimeout(n.current),n.current=setTimeout(()=>m(null),2e3)},p=async()=>{try{await (0,i.eM)(b??a),o("copied")}catch{o("error")}};return(0,d.jsxs)("div",{className:(0,h.cn)("flex h-11 items-center gap-2 rounded-lg border border-line bg-raised ps-3 pe-1.5 transition-colors","focus-within:border-coral focus-within:shadow-focus",f),...k,children:[(0,d.jsx)("code",{title:String(b??a),className:"min-w-0 flex-1 truncate font-mono text-sm text-text",children:a}),e?(0,d.jsx)("button",{type:"button","aria-label":c,onClick:p,className:"inline-flex size-8 shrink-0 items-center justify-center rounded-md text-muted transition-colors hover:bg-line/60 hover:text-text focus-visible:shadow-focus",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]","aria-hidden":"true",children:"copied"===l?"check":"error"===l?"error":"content_copy"})}):null,e?(0,d.jsx)("span",{"aria-live":"polite",className:"sr-only",children:"copied"===l?"Copied":"error"===l?"Copy failed":""}):null]})}j.propTypes={value:f().oneOfType([f().string,f().number]).isRequired,copyValue:f().string,label:f().string,showCopyButton:f().bool,className:f().string}},71553:a=>{"use strict";a.exports=require("node:dns/promises")},71622:a=>{"use strict";a.exports=import("open")},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},73429:a=>{"use strict";a.exports=require("node:util/types")},73496:a=>{"use strict";a.exports=require("http2")},74075:a=>{"use strict";a.exports=require("zlib")},75919:a=>{"use strict";a.exports=require("node:worker_threads")},76760:a=>{"use strict";a.exports=require("node:path")},77030:a=>{"use strict";a.exports=require("node:net")},77598:a=>{"use strict";a.exports=require("node:crypto")},78474:a=>{"use strict";a.exports=require("node:events")},79646:a=>{"use strict";a.exports=require("child_process")},80099:a=>{"use strict";a.exports=require("node:sqlite")},81630:a=>{"use strict";a.exports=require("http")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},83521:(a,b,c)=>{"use strict";c.d(b,{default:()=>n});var d=c(48249),e=c(49885),f=c.n(e),g=c(67484);c(99258);var h=c(99070),i=c(26584),j=c(74812),k=c(73655),l=c(19870),m=c(42824);function n({period:a,lastRequestAt:b,loading:c,allowed:e=m.tJ,onSelectPeriod:f,error:o=null,onRetry:p,compact:q=!1,className:r,headingAs:s="h2"}){let t=(0,l.P)(),[u,v]=(0,g.useState)(""),w=(m.py[a]??m.py.default).title;if(o&&void 0===b)return(0,d.jsx)(i.default,{as:s,compact:q,className:r,icon:"bedtime",title:w,body:"Couldn't load the last request time.",action:p?(0,d.jsx)(h.default,{variant:"secondary",size:"sm",icon:"refresh",onClick:p,children:"Retry"}):void 0});if(c||void 0===b)return q?(0,d.jsx)("div",{role:"status","aria-label":"Loading last activity",className:r,children:(0,d.jsx)(j.Skeleton,{className:"h-16 w-full"})}):(0,d.jsx)(k.LoadingState,{label:"Loading last activity",className:r});if(null===b)return(0,d.jsx)(i.default,{as:s,compact:q,className:r,icon:"bolt",title:"No traffic yet",body:(0,d.jsxs)(d.Fragment,{children:["Point any OpenAI-compatible client at"," ",(0,d.jsx)("code",{className:"font-mono text-text",children:t})]})});let x=m.tJ.filter(a=>e.includes(a)),y=(0,m.hQ)(b,x),z=y&&x.indexOf(y)>x.indexOf(a);return(0,d.jsx)(i.default,{as:s,compact:q,className:r,icon:"bedtime",title:w,body:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{children:"Last request"})," ",(0,d.jsx)("time",{dateTime:b,children:u})]}),action:z&&f?(0,d.jsx)(h.default,{variant:"secondary",size:"sm",onClick:()=>f(y),children:m.py[y].actionLabel}):void 0})}n.propTypes={period:f().string,lastRequestAt:f().string,loading:f().bool,allowed:f().arrayOf(f().oneOf(m.tJ)),onSelectPeriod:f().func,error:f().string,onRetry:f().func,compact:f().bool,className:f().string,headingAs:f().oneOf(["h1","h2","h3","h4","p","div"])}},83552:(a,b,c)=>{"use strict";c.d(b,{default:()=>i});var d=c(48249),e=c(49885),f=c.n(e),g=c(71404),h=c(27444);function i({label:a,type:b="text",placeholder:c,value:e,onChange:f,error:j,hint:k,icon:l,disabled:m=!1,required:n=!1,className:o,inputClassName:p,id:q,ref:r,...s}){return(0,d.jsx)(h.default,{id:q,label:a,hint:k,error:j,required:n,className:o,children:({inputId:a,describedBy:h,invalid:i})=>(0,d.jsxs)("div",{className:"relative",children:[l&&(0,d.jsx)("div",{className:"absolute inset-y-0 start-0 flex items-center ps-3 pointer-events-none text-muted","aria-hidden":"true",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:l})}),(0,d.jsx)("input",{...s,ref:r,id:a,type:b,placeholder:c,value:e,onChange:f,disabled:m,"aria-describedby":h,"aria-invalid":i||void 0,className:(0,g.cn)("w-full py-2.5 px-3 text-sm text-text bg-raised rounded-lg","border border-line placeholder:text-subtle","focus:outline-none focus:border-coral focus:shadow-focus","transition-colors duration-150 disabled:opacity-50 disabled:cursor-not-allowed","text-[16px] sm:text-sm",l&&"ps-10",i&&"border-err focus:border-err",p)})]})})}i.propTypes={label:f().node,type:f().string,placeholder:f().string,value:f().oneOfType([f().string,f().number]),onChange:f().func,error:f().node,hint:f().node,icon:f().string,disabled:f().bool,required:f().bool,className:f().string,inputClassName:f().string,id:f().string,"aria-label":f().string}},87149:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/tokenhop/tokenhop/src/app/(dashboard)/dashboard/usage/page.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/tokenhop/tokenhop/src/app/(dashboard)/dashboard/usage/page.js","default")},87366:(a,b,c)=>{"use strict";c.d(b,{default:()=>k});var d=c(48249),e=c(49885),f=c.n(e),g=c(67484);c(99258);var h=c(91099),i=c(42824);let j={today:"今天","24h":"24小时","7d":"7天","30d":"30天","60d":"60天"};function k({value:a,onChange:b,options:c=i.nR,size:e="md",className:f,"aria-label":l="Period"}){let[m,n]=(0,g.useState)(null),o=(0,g.useMemo)(()=>m?.startsWith("zh")?c.map(a=>({...a,label:j[a.value]??a.label})):c,[m,c]);return(0,d.jsx)(h.default,{options:o,value:a,onChange:b,size:e,className:f,"aria-label":l})}k.propTypes={value:f().string,onChange:f().func,options:f().arrayOf(f().shape({value:f().oneOf(["today","24h","7d","30d","60d"]).isRequired,label:f().string.isRequired})),size:f().oneOf(["sm","md","lg"]),className:f().string,"aria-label":f().string}},87550:a=>{"use strict";a.exports=require("better-sqlite3")},87997:a=>{"use strict";a.exports=require("node:timers")},91099:(a,b,c)=>{"use strict";c.d(b,{default:()=>j});var d=c(48249),e=c(49885),f=c.n(e),g=c(67484),h=c(71404),i=c(31290);function j({options:a=[],value:b,onChange:c,size:e="md",className:f,"aria-label":k,"aria-labelledby":l,...m}){let n=(0,g.useRef)([]),o=a.findIndex(a=>a.value===b),p=o<0?0:o,q=i.Ec[e];if(!q)throw Error(`SegmentedControl: unknown size "${e}"`);return(0,d.jsx)("div",{...m,role:"radiogroup","aria-label":k,"aria-labelledby":l,className:(0,h.cn)("inline-flex items-center gap-0.5 rounded-lg border border-line bg-raised p-1 overflow-x-auto",f),children:a.map((b,e)=>(0,d.jsxs)("button",{ref:a=>{n.current[e]=a},type:"button",role:"radio","aria-checked":e===o,tabIndex:e===p?0:-1,onKeyDown:b=>((b,d)=>{if(!(0,i.JF)(b.key)||0===a.length)return;b.preventDefault();let e=(0,i.lZ)(d,b.key,{length:a.length,rtl:b.currentTarget.closest("[dir]")?.getAttribute("dir")==="rtl"});n.current[e]?.focus(),c?.(a[e].value)})(b,e),onClick:()=>c?.(b.value),className:(0,h.cn)("inline-flex shrink-0 items-center gap-1.5 rounded-md px-3 font-semibold transition-colors duration-200 focus-visible:shadow-focus motion-reduce:transition-none",q,e===o?"bg-text text-bg":"text-muted hover:text-text"),children:[b.icon&&(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]","aria-hidden":"true",children:b.icon}),b.label,null!=b.count&&(0,d.jsx)("span",{className:(0,h.cn)("font-mono",e===o?"text-bg/80":"text-muted"),children:b.count})]},b.value))})}j.propTypes={options:f().arrayOf(f().shape({value:f().oneOfType([f().string,f().number]).isRequired,label:f().node.isRequired,icon:f().string,count:f().oneOfType([f().string,f().number])})),value:f().oneOfType([f().string,f().number]),onChange:f().func,size:f().oneOf(Object.keys(i.Ec)),className:f().string,"aria-label":function(a,b,c){return a["aria-label"]||a["aria-labelledby"]?null:Error(`${c}: provide "aria-label" or "aria-labelledby".`)},"aria-labelledby":f().string}},91645:a=>{"use strict";a.exports=require("net")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,8666,2430,2217,2116,6561,9421,7819,6070,1152,915,7642,4123,5649,1533,6244,6849,2592,8468,1863],()=>b(b.s=48299));module.exports=c})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"files":["../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/esm/_interop_require_default.js","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/better-sqlite3/lib/binding.js","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/explain.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/better-sqlite3/prebuilds/darwin-arm64.node","../../../../../../node_modules/better-sqlite3/prebuilds/darwin-x64.node","../../../../../../node_modules/better-sqlite3/prebuilds/linux-arm64.node","../../../../../../node_modules/better-sqlite3/prebuilds/linux-x64.node","../../../../../../node_modules/better-sqlite3/prebuilds/linuxmusl-arm64.node","../../../../../../node_modules/better-sqlite3/prebuilds/linuxmusl-x64.node","../../../../../../node_modules/better-sqlite3/prebuilds/win32-arm64.node","../../../../../../node_modules/better-sqlite3/prebuilds/win32-x64.node","../../../../../../node_modules/bundle-name/index.js","../../../../../../node_modules/bundle-name/package.json","../../../../../../node_modules/default-browser-id/index.js","../../../../../../node_modules/default-browser-id/package.json","../../../../../../node_modules/default-browser/index.js","../../../../../../node_modules/default-browser/package.json","../../../../../../node_modules/default-browser/windows.js","../../../../../../node_modules/define-lazy-prop/index.js","../../../../../../node_modules/define-lazy-prop/package.json","../../../../../../node_modules/is-docker/index.js","../../../../../../node_modules/is-docker/package.json","../../../../../../node_modules/is-in-ssh/index.js","../../../../../../node_modules/is-in-ssh/package.json","../../../../../../node_modules/is-inside-container/index.js","../../../../../../node_modules/is-inside-container/package.json","../../../../../../node_modules/is-wsl/index.js","../../../../../../node_modules/is-wsl/package.json","../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/blocking-route-messages.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../node_modules/next/dist/server/app-render/sync-io-messages.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/instant-messages.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/open/index.js","../../../../../../node_modules/open/package.json","../../../../../../node_modules/open/xdg-open","../../../../../../node_modules/powershell-utils/index.js","../../../../../../node_modules/powershell-utils/package.json","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/run-applescript/index.js","../../../../../../node_modules/run-applescript/package.json","../../../../../../node_modules/sql.js/dist/sql-wasm.js","../../../../../../node_modules/sql.js/package.json","../../../../../../node_modules/wsl-utils/index.js","../../../../../../node_modules/wsl-utils/node_modules/powershell-utils/index.js","../../../../../../node_modules/wsl-utils/node_modules/powershell-utils/package.json","../../../../../../node_modules/wsl-utils/package.json","../../../../../../node_modules/wsl-utils/utilities.js","../../../../../../package.json","../../../../../package.json","../../../../chunks/1026.js","../../../../chunks/1129.js","../../../../chunks/1152.js","../../../../chunks/1159.js","../../../../chunks/1204.js","../../../../chunks/1227.js","../../../../chunks/1245.js","../../../../chunks/1320.js","../../../../chunks/1336.js","../../../../chunks/1432.js","../../../../chunks/1452.js","../../../../chunks/1455.js","../../../../chunks/1487.js","../../../../chunks/1533.js","../../../../chunks/1764.js","../../../../chunks/1778.js","../../../../chunks/1794.js","../../../../chunks/1813.js","../../../../chunks/1863.js","../../../../chunks/1930.js","../../../../chunks/1952.js","../../../../chunks/1994.js","../../../../chunks/1998.js","../../../../chunks/2051.js","../../../../chunks/206.js","../../../../chunks/2116.js","../../../../chunks/2217.js","../../../../chunks/2380.js","../../../../chunks/2384.js","../../../../chunks/24.js","../../../../chunks/241.js","../../../../chunks/2430.js","../../../../chunks/2460.js","../../../../chunks/2592.js","../../../../chunks/2600.js","../../../../chunks/3016.js","../../../../chunks/3093.js","../../../../chunks/3097.js","../../../../chunks/318.js","../../../../chunks/3225.js","../../../../chunks/3306.js","../../../../chunks/331.js","../../../../chunks/3340.js","../../../../chunks/3414.js","../../../../chunks/3535.js","../../../../chunks/3546.js","../../../../chunks/3558.js","../../../../chunks/3586.js","../../../../chunks/3593.js","../../../../chunks/3676.js","../../../../chunks/385.js","../../../../chunks/3859.js","../../../../chunks/3894.js","../../../../chunks/3919.js","../../../../chunks/392.js","../../../../chunks/3943.js","../../../../chunks/3966.js","../../../../chunks/4000.js","../../../../chunks/4033.js","../../../../chunks/4037.js","../../../../chunks/4072.js","../../../../chunks/4114.js","../../../../chunks/4123.js","../../../../chunks/4125.js","../../../../chunks/4152.js","../../../../chunks/4199.js","../../../../chunks/4247.js","../../../../chunks/4278.js","../../../../chunks/4334.js","../../../../chunks/4406.js","../../../../chunks/4452.js","../../../../chunks/4492.js","../../../../chunks/4521.js","../../../../chunks/4547.js","../../../../chunks/4685.js","../../../../chunks/4730.js","../../../../chunks/4739.js","../../../../chunks/4741.js","../../../../chunks/4780.js","../../../../chunks/4876.js","../../../../chunks/4892.js","../../../../chunks/4954.js","../../../../chunks/499.js","../../../../chunks/507.js","../../../../chunks/5081.js","../../../../chunks/5173.js","../../../../chunks/524.js","../../../../chunks/5258.js","../../../../chunks/539.js","../../../../chunks/5433.js","../../../../chunks/5497.js","../../../../chunks/5560.js","../../../../chunks/5573.js","../../../../chunks/5615.js","../../../../chunks/5699.js","../../../../chunks/5781.js","../../../../chunks/6070.js","../../../../chunks/6103.js","../../../../chunks/6158.js","../../../../chunks/6244.js","../../../../chunks/6252.js","../../../../chunks/6353.js","../../../../chunks/6354.js","../../../../chunks/6427.js","../../../../chunks/6496.js","../../../../chunks/6551.js","../../../../chunks/6561.js","../../../../chunks/6588.js","../../../../chunks/6589.js","../../../../chunks/6703.js","../../../../chunks/6734.js","../../../../chunks/6763.js","../../../../chunks/6769.js","../../../../chunks/6844.js","../../../../chunks/6849.js","../../../../chunks/698.js","../../../../chunks/7023.js","../../../../chunks/7184.js","../../../../chunks/7211.js","../../../../chunks/7247.js","../../../../chunks/7261.js","../../../../chunks/737.js","../../../../chunks/7382.js","../../../../chunks/7469.js","../../../../chunks/7616.js","../../../../chunks/7642.js","../../../../chunks/7716.js","../../../../chunks/7774.js","../../../../chunks/7819.js","../../../../chunks/7828.js","../../../../chunks/7901.js","../../../../chunks/7914.js","../../../../chunks/7965.js","../../../../chunks/8037.js","../../../../chunks/8062.js","../../../../chunks/8171.js","../../../../chunks/8255.js","../../../../chunks/8372.js","../../../../chunks/8416.js","../../../../chunks/8432.js","../../../../chunks/8468.js","../../../../chunks/8469.js","../../../../chunks/8520.js","../../../../chunks/8624.js","../../../../chunks/8635.js","../../../../chunks/8658.js","../../../../chunks/8666.js","../../../../chunks/8708.js","../../../../chunks/8823.js","../../../../chunks/8853.js","../../../../chunks/8895.js","../../../../chunks/8920.js","../../../../chunks/9124.js","../../../../chunks/915.js","../../../../chunks/9343.js","../../../../chunks/9421.js","../../../../chunks/9578.js","../../../../chunks/9613.js","../../../../chunks/965.js","../../../../chunks/9710.js","../../../../chunks/9713.js","../../../../chunks/9755.js","../../../../chunks/9850.js","../../../../chunks/9899.js","../../../../chunks/994.js","../../../../chunks/9994.js","../../../../webpack-runtime.js","page_client-reference-manifest.js"]}
|
|
1
|
+
{"version":1,"files":["../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/esm/_interop_require_default.js","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/better-sqlite3/lib/binding.js","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/explain.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/better-sqlite3/prebuilds/darwin-arm64.node","../../../../../../node_modules/better-sqlite3/prebuilds/darwin-x64.node","../../../../../../node_modules/better-sqlite3/prebuilds/linux-arm64.node","../../../../../../node_modules/better-sqlite3/prebuilds/linux-x64.node","../../../../../../node_modules/better-sqlite3/prebuilds/linuxmusl-arm64.node","../../../../../../node_modules/better-sqlite3/prebuilds/linuxmusl-x64.node","../../../../../../node_modules/better-sqlite3/prebuilds/win32-arm64.node","../../../../../../node_modules/better-sqlite3/prebuilds/win32-x64.node","../../../../../../node_modules/bundle-name/index.js","../../../../../../node_modules/bundle-name/package.json","../../../../../../node_modules/default-browser-id/index.js","../../../../../../node_modules/default-browser-id/package.json","../../../../../../node_modules/default-browser/index.js","../../../../../../node_modules/default-browser/package.json","../../../../../../node_modules/default-browser/windows.js","../../../../../../node_modules/define-lazy-prop/index.js","../../../../../../node_modules/define-lazy-prop/package.json","../../../../../../node_modules/is-docker/index.js","../../../../../../node_modules/is-docker/package.json","../../../../../../node_modules/is-in-ssh/index.js","../../../../../../node_modules/is-in-ssh/package.json","../../../../../../node_modules/is-inside-container/index.js","../../../../../../node_modules/is-inside-container/package.json","../../../../../../node_modules/is-wsl/index.js","../../../../../../node_modules/is-wsl/package.json","../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/blocking-route-messages.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../node_modules/next/dist/server/app-render/sync-io-messages.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/instant-messages.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/open/index.js","../../../../../../node_modules/open/package.json","../../../../../../node_modules/open/xdg-open","../../../../../../node_modules/powershell-utils/index.js","../../../../../../node_modules/powershell-utils/package.json","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/run-applescript/index.js","../../../../../../node_modules/run-applescript/package.json","../../../../../../node_modules/sql.js/dist/sql-wasm.js","../../../../../../node_modules/sql.js/package.json","../../../../../../node_modules/wsl-utils/index.js","../../../../../../node_modules/wsl-utils/node_modules/powershell-utils/index.js","../../../../../../node_modules/wsl-utils/node_modules/powershell-utils/package.json","../../../../../../node_modules/wsl-utils/package.json","../../../../../../node_modules/wsl-utils/utilities.js","../../../../../../package.json","../../../../../package.json","../../../../chunks/1004.js","../../../../chunks/1129.js","../../../../chunks/1152.js","../../../../chunks/1159.js","../../../../chunks/1204.js","../../../../chunks/1215.js","../../../../chunks/1227.js","../../../../chunks/1245.js","../../../../chunks/1320.js","../../../../chunks/1336.js","../../../../chunks/1432.js","../../../../chunks/1452.js","../../../../chunks/1455.js","../../../../chunks/1487.js","../../../../chunks/1533.js","../../../../chunks/1778.js","../../../../chunks/1794.js","../../../../chunks/1813.js","../../../../chunks/1863.js","../../../../chunks/1930.js","../../../../chunks/1952.js","../../../../chunks/1994.js","../../../../chunks/1998.js","../../../../chunks/2051.js","../../../../chunks/206.js","../../../../chunks/2116.js","../../../../chunks/2217.js","../../../../chunks/2380.js","../../../../chunks/24.js","../../../../chunks/241.js","../../../../chunks/2430.js","../../../../chunks/2460.js","../../../../chunks/257.js","../../../../chunks/2592.js","../../../../chunks/2600.js","../../../../chunks/2705.js","../../../../chunks/3016.js","../../../../chunks/3097.js","../../../../chunks/318.js","../../../../chunks/3225.js","../../../../chunks/3340.js","../../../../chunks/3535.js","../../../../chunks/3546.js","../../../../chunks/3593.js","../../../../chunks/385.js","../../../../chunks/3859.js","../../../../chunks/3894.js","../../../../chunks/3919.js","../../../../chunks/392.js","../../../../chunks/3943.js","../../../../chunks/3966.js","../../../../chunks/4000.js","../../../../chunks/4033.js","../../../../chunks/4072.js","../../../../chunks/4114.js","../../../../chunks/4123.js","../../../../chunks/4125.js","../../../../chunks/4152.js","../../../../chunks/4247.js","../../../../chunks/4334.js","../../../../chunks/4406.js","../../../../chunks/4452.js","../../../../chunks/4492.js","../../../../chunks/4521.js","../../../../chunks/4547.js","../../../../chunks/4685.js","../../../../chunks/4730.js","../../../../chunks/4739.js","../../../../chunks/4741.js","../../../../chunks/4780.js","../../../../chunks/4876.js","../../../../chunks/4892.js","../../../../chunks/4954.js","../../../../chunks/499.js","../../../../chunks/5055.js","../../../../chunks/507.js","../../../../chunks/5081.js","../../../../chunks/5173.js","../../../../chunks/5230.js","../../../../chunks/524.js","../../../../chunks/5258.js","../../../../chunks/5260.js","../../../../chunks/5335.js","../../../../chunks/539.js","../../../../chunks/5433.js","../../../../chunks/5497.js","../../../../chunks/5559.js","../../../../chunks/5560.js","../../../../chunks/5573.js","../../../../chunks/5615.js","../../../../chunks/5649.js","../../../../chunks/5699.js","../../../../chunks/5765.js","../../../../chunks/5781.js","../../../../chunks/5827.js","../../../../chunks/5869.js","../../../../chunks/5908.js","../../../../chunks/6070.js","../../../../chunks/6103.js","../../../../chunks/620.js","../../../../chunks/6244.js","../../../../chunks/6252.js","../../../../chunks/6328.js","../../../../chunks/6353.js","../../../../chunks/6355.js","../../../../chunks/6427.js","../../../../chunks/6493.js","../../../../chunks/6496.js","../../../../chunks/6551.js","../../../../chunks/6561.js","../../../../chunks/6588.js","../../../../chunks/6589.js","../../../../chunks/6703.js","../../../../chunks/6763.js","../../../../chunks/6844.js","../../../../chunks/6849.js","../../../../chunks/698.js","../../../../chunks/7023.js","../../../../chunks/7184.js","../../../../chunks/7211.js","../../../../chunks/7247.js","../../../../chunks/737.js","../../../../chunks/7382.js","../../../../chunks/7469.js","../../../../chunks/7485.js","../../../../chunks/7616.js","../../../../chunks/7642.js","../../../../chunks/7695.js","../../../../chunks/7716.js","../../../../chunks/7774.js","../../../../chunks/7819.js","../../../../chunks/7828.js","../../../../chunks/7914.js","../../../../chunks/7965.js","../../../../chunks/8037.js","../../../../chunks/8062.js","../../../../chunks/8171.js","../../../../chunks/8255.js","../../../../chunks/8261.js","../../../../chunks/8416.js","../../../../chunks/8432.js","../../../../chunks/8468.js","../../../../chunks/8469.js","../../../../chunks/8520.js","../../../../chunks/8624.js","../../../../chunks/8658.js","../../../../chunks/8666.js","../../../../chunks/8708.js","../../../../chunks/878.js","../../../../chunks/8823.js","../../../../chunks/8853.js","../../../../chunks/8895.js","../../../../chunks/8920.js","../../../../chunks/8954.js","../../../../chunks/8988.js","../../../../chunks/9016.js","../../../../chunks/9124.js","../../../../chunks/915.js","../../../../chunks/9243.js","../../../../chunks/9326.js","../../../../chunks/9343.js","../../../../chunks/9421.js","../../../../chunks/9489.js","../../../../chunks/9578.js","../../../../chunks/9594.js","../../../../chunks/9613.js","../../../../chunks/965.js","../../../../chunks/9710.js","../../../../chunks/9713.js","../../../../chunks/9755.js","../../../../chunks/9850.js","../../../../chunks/9899.js","../../../../chunks/9994.js","../../../../webpack-runtime.js","page_client-reference-manifest.js"]}
|