@synthever/jrouter 1.0.2 → 1.0.4
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 +11 -11
- package/app/.next-cli-build/build-manifest.json +3 -3
- package/app/.next-cli-build/prerender-manifest.json +19 -19
- package/app/.next-cli-build/react-loadable-manifest.json +4 -4
- 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/health/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/health/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/health/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/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 +3 -3
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page.js.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 +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js +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-tools/all-statuses/route.js +1 -1
- 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 +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +1 -1
- 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.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +1 -1
- 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.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
- 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.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/presets/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js.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/init/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/secret/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/secret/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js.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 +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/model-health/check/route.js +2 -2
- package/app/.next-cli-build/server/app/api/model-health/check/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/model-health/check-all/route.js +2 -2
- package/app/.next-cli-build/server/app/api/model-health/check-all/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/model-health/config/route.js +2 -2
- package/app/.next-cli-build/server/app/api/model-health/config/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/model-health/history/route.js +2 -2
- package/app/.next-cli-build/server/app/api/model-health/history/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/model-health/model/route.js +2 -2
- package/app/.next-cli-build/server/app/api/model-health/model/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/model-health/models/route.js +2 -2
- package/app/.next-cli-build/server/app/api/model-health/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/model-health/route.js +2 -2
- package/app/.next-cli-build/server/app/api/model-health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/model-health/run-scheduled/route.js +2 -2
- package/app/.next-cli-build/server/app/api/model-health/run-scheduled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/model-health/summary/route.js +2 -2
- package/app/.next-cli-build/server/app/api/model-health/summary/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/limits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/limits/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 +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +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.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/connections/keys/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/connections/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/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 +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +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/netlify-deploy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +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 +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 +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/database/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js.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 +2 -2
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js.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 +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js +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 +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page.js +1 -1
- package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback.html +1 -1
- package/app/.next-cli-build/server/app/callback.rsc +5 -5
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +7 -7
- 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 +7 -7
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/health.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/health.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/health.segments/!KGRhc2hib2FyZCk/dashboard/health/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/health.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/health.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/playground.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/playground.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/playground.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/playground.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 +7 -7
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +7 -7
- 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 +8 -8
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +7 -7
- 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 +7 -7
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +5 -5
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing/page.js +1 -1
- package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/landing.html +1 -1
- package/app/.next-cli-build/server/app/landing.rsc +5 -5
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/login/page.js +1 -1
- package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +1 -1
- package/app/.next-cli-build/server/app/login.rsc +6 -6
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +6 -6
- 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 +6 -6
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page.js +1 -1
- package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +11 -11
- package/app/.next-cli-build/server/chunks/2318.js +1 -1
- package/app/.next-cli-build/server/chunks/2631.js +1 -1
- package/app/.next-cli-build/server/chunks/2760.js +1 -17
- package/app/.next-cli-build/server/chunks/3360.js +1 -1
- package/app/.next-cli-build/server/chunks/3449.js +1 -1
- package/app/.next-cli-build/server/chunks/412.js +1 -1
- package/app/.next-cli-build/server/chunks/4190.js +1 -1
- package/app/.next-cli-build/server/chunks/436.js +1 -1
- package/app/.next-cli-build/server/chunks/4406.js +1 -0
- package/app/.next-cli-build/server/chunks/455.js +1 -1
- package/app/.next-cli-build/server/chunks/4746.js +1 -1
- package/app/.next-cli-build/server/chunks/4764.js +1 -1
- package/app/.next-cli-build/server/chunks/4827.js +1 -1
- package/app/.next-cli-build/server/chunks/4864.js +1 -1
- package/app/.next-cli-build/server/chunks/5298.js +17 -0
- package/app/.next-cli-build/server/chunks/5563.js +1 -1
- package/app/.next-cli-build/server/chunks/5665.js +27 -0
- package/app/.next-cli-build/server/chunks/6070.js +1 -1
- package/app/.next-cli-build/server/chunks/615.js +1 -1
- package/app/.next-cli-build/server/chunks/6296.js +6 -6
- package/app/.next-cli-build/server/chunks/6708.js +1 -1
- package/app/.next-cli-build/server/chunks/7066.js +1 -1
- package/app/.next-cli-build/server/chunks/7247.js +1 -1
- package/app/.next-cli-build/server/chunks/735.js +1 -1
- package/app/.next-cli-build/server/chunks/7525.js +1 -1
- package/app/.next-cli-build/server/chunks/7716.js +1 -1
- package/app/.next-cli-build/server/chunks/8126.js +1 -1
- package/app/.next-cli-build/server/chunks/8306.js +1 -1
- package/app/.next-cli-build/server/chunks/{2524.js → 8451.js} +1 -1
- package/app/.next-cli-build/server/chunks/8895.js +1 -1
- package/app/.next-cli-build/server/chunks/9032.js +1 -1
- package/app/.next-cli-build/server/chunks/9128.js +1 -1
- package/app/.next-cli-build/server/chunks/9489.js +1 -1
- package/app/.next-cli-build/server/chunks/9906.js +1 -0
- 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 +10 -10
- 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/static/chunks/{124.2812449f50e38c6c.js → 124.129f13ee23ff9b23.js} +1 -1
- package/app/.next-cli-build/static/chunks/1321-e5a456e7ba2447da.js +1 -0
- package/app/.next-cli-build/static/chunks/{2435.7dca2c9630249a05.js → 2435.683f65cfb8f79701.js} +2 -2
- package/app/.next-cli-build/static/chunks/{5462.75bfd156f9bc4e3b.js → 5462.79bf24eb0584ddda.js} +2 -2
- package/app/.next-cli-build/static/chunks/{5497-973a06c94a94aff7.js → 5497-f836574435383a9a.js} +1 -1
- package/app/.next-cli-build/static/chunks/6808-10f960f3fc924a76.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-0616e02f3ff06acd.js → page-87ca193c32e4c066.js} +11 -11
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-0a9dfeb5c4e2b097.js +27 -0
- package/app/.next-cli-build/static/chunks/webpack-6a79f0ded38135ba.js +1 -0
- package/app/.next-cli-build/static/css/{f0e9ffc68c4f886a.css → 56aa6e7907cd49f9.css} +1 -1
- package/app/package.json +1 -1
- package/app/public/providers/beatapi.png +0 -0
- package/package.json +1 -1
- package/app/.next-cli-build/server/chunks/238.js +0 -1
- package/app/.next-cli-build/server/chunks/3192.js +0 -27
- package/app/.next-cli-build/server/chunks/379.js +0 -1
- package/app/.next-cli-build/server/chunks/4642.js +0 -1
- package/app/.next-cli-build/static/chunks/1321-9eb7d54c5b900efb.js +0 -1
- package/app/.next-cli-build/static/chunks/6808-ed8012b059559430.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-d2787f11613d3447.js +0 -27
- package/app/.next-cli-build/static/chunks/webpack-e582fe7763255be4.js +0 -1
- /package/app/.next-cli-build/static/{MDZXE-9g1sq006f6JNky9 → HtObZTtODFj1Lp9h6IeqY}/_buildManifest.js +0 -0
- /package/app/.next-cli-build/static/{MDZXE-9g1sq006f6JNky9 → HtObZTtODFj1Lp9h6IeqY}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var a={};a.id=6337,a.ids=[6337],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")},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")},7609:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>v,handler:()=>x,routeModule:()=>w});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,30508))),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.t.bind(c,95547,23))),t={children:["",{children:["(dashboard)",{children:["dashboard",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,60685))),"/root/workspace/JRouter/src/app/(dashboard)/dashboard/page.js"]}]},{"global-error":[s,"next/dist/client/components/builtin/global-error.js"]},[]]},{layout:[n,"/root/workspace/JRouter/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,"/root/workspace/JRouter/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,u=(0,e.H)({tree:t,page:"/(dashboard)/dashboard/page",pathname:"/dashboard",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),v=u.__next_app__,w=u.routeModule,x=u.handler},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")},21820:a=>{"use strict";a.exports=require("os")},22088:(a,b,c)=>{Promise.resolve().then(c.bind(c,83529))},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},32467:a=>{"use strict";a.exports=require("node:http2")},33873:a=>{"use strict";a.exports=require("path")},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")},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},46293:a=>{"use strict";a.exports=require("sql.js")},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},54603:(a,b,c)=>{"use strict";c.d(b,{Xj:()=>q});var d=c(19713),e=c(73024),f=c.n(e),g=c(76760),h=c.n(g),i=c(77598),j=c.n(i),k=c(49120);let l=h().join(k.n,"machine-id"),m=h().join(k.n,"auth"),n=h().join(m,"cli-secret"),o=null,p=null;async function q(a=null){let b=a||process.env.MACHINE_ID_SALT||"endpoint-proxy-salt",c=function(){if(o)return o;try{if(o=f().readFileSync(l,"utf8").trim())return o}catch{}try{o=(0,d.machineIdSync)()}catch{o=j().randomUUID()}try{f().mkdirSync(k.n,{recursive:!0}),f().writeFileSync(l,o,{mode:384})}catch{}return o}(),e="jr-cli-auth"===b?function(){if(p)return p;try{if(p=f().readFileSync(n,"utf8").trim())return p}catch{}p=j().randomBytes(32).toString("hex");try{f().mkdirSync(m,{recursive:!0}),f().writeFileSync(n,p,{mode:384})}catch{}return p}():"";return j().createHash("sha256").update(c+b+e).digest("hex").substring(0,16)}},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")},58536:(a,b,c)=>{Promise.resolve().then(c.bind(c,99596))},60685:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>g});var d=c(5735),e=c(87250),f=c(99596);async function g(){let a=await (0,e.D)();return(0,d.jsx)(f.default,{machineId:a})}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71553:a=>{"use strict";a.exports=require("node:dns/promises")},71622:a=>{"use strict";a.exports=import("open")},72271:a=>{"use strict";a.exports=require("@aws-sdk/credential-providers")},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")},79868:a=>{"use strict";a.exports=require("node:sqlite")},81630:a=>{"use strict";a.exports=require("http")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},83529:(a,b,c)=>{"use strict";let d,e,f;c.d(b,{default:()=>gx});var g=c(48249),h=c(67484),i=c(27993),j=c(54183),k=c(99646),l=c(26773),m=c(84483);let n={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};n.node;let o=(0,m.A)(n),p={name:"arrow-down-left",size:24,node:[["path",{d:"M17 7 7 17",key:"15tmo1"}],["path",{d:"M17 17H7V7",key:"1org7z"}]]};p.node;let q=(0,m.A)(p);var r=c(12747),s=c(9880),t=c(71404);let u={current:null},v={current:!1},w="u">typeof window;function x(){if(v.current=!0,w)if(window.matchMedia){let a=window.matchMedia("(prefers-reduced-motion)"),b=()=>u.current=a.matches;a.addEventListener("change",b),b()}else u.current=!1}let y=(0,h.createContext)({}),z=(0,h.createContext)(null),A=a=>a,B={},C=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function D(a,b,c={delta:0,timestamp:0,isProcessing:!1}){let d=!1,e=!0,f=()=>d=!0,g=C.reduce((a,b)=>(a[b]=function(a){let b=new Set,c=new Set,d=!1,e=!1,f=new Set,g={delta:0,timestamp:0,isProcessing:!1};function h(b){f.has(b)&&(c.add(b),a()),b(g)}let i={schedule:(a,e=!1,g=!1)=>{let h=g&&d?b:c;return e&&f.add(a),h.add(a),a},cancel:a=>{c.delete(a),f.delete(a)},process:a=>{if(g=a,d){e=!0;return}d=!0;let f=b;b=c,c=f,b.forEach(h),b.clear(),d=!1,e&&(e=!1,i.process(a))}};return i}(f),a),{}),{setup:h,read:i,resolveKeyframes:j,preUpdate:k,update:l,preRender:m,render:n,postRender:o}=g,p=()=>{let f=B.useManualTiming,g=f?c.timestamp:performance.now();d=!1,f||(c.delta=e?1e3/60:Math.max(Math.min(g-c.timestamp,40),1)),c.timestamp=g,c.isProcessing=!0,h.process(c),i.process(c),j.process(c),k.process(c),l.process(c),m.process(c),n.process(c),o.process(c),c.isProcessing=!1,d&&b&&(e=!1,a(p))};return{schedule:C.reduce((b,f)=>{let h=g[f];return b[f]=(b,f=!1,g=!1)=>(!d&&(d=!0,e=!0,c.isProcessing||a(p)),h.schedule(b,f,g)),b},{}),cancel:a=>{for(let b=0;b<C.length;b++)g[C[b]].cancel(a)},state:c,steps:g}}let E={delta:0,timestamp:0,isProcessing:!1},{schedule:F,cancel:G,steps:H}=D("u">typeof requestAnimationFrame?requestAnimationFrame:A,!0,E),I="u">typeof window?h.useLayoutEffect:h.useEffect,J=a=>!a.isLayoutDirty&&a.willUpdate(!1),K=({children:a,id:b,inherit:c=!0})=>{let d=(0,h.useContext)(y),e=(0,h.useContext)(z),[f,i]=function(){let a,b=(a=(0,h.useRef)(!1),I(()=>(a.current=!0,()=>{a.current=!1}),[]),a),[c,d]=(0,h.useState)(0),e=(0,h.useCallback)(()=>{b.current&&d(c+1)},[c]);return[(0,h.useCallback)(()=>F.postRender(e),[e]),c]}(),j=(0,h.useRef)(null),k=d.id||e;if(null===j.current){let a,e,f,g;(!0==(!0===(g=c))||"id"===g)&&k&&(b=b?k+"-"+b:k),j.current={id:b,group:!0===c&&d.group||(a=new Set,e=new WeakMap,{add:b=>{a.add(b),e.set(b,b.addEventListener("willUpdate",f))},remove:b=>{a.delete(b);let c=e.get(b);c&&(c(),e.delete(b)),f()},dirty:f=()=>a.forEach(J)})}}let l=(0,h.useMemo)(()=>({...j.current,forceRender:f}),[i]);return(0,g.jsx)(y.Provider,{value:l,children:a})},L=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],M=new Set([...L,"pathRotation"]),N=(a,b,c)=>c>b?b:c<a?a:c,O={test:a=>"number"==typeof a,parse:parseFloat,transform:a=>a},P={...O,transform:a=>N(0,1,a)},Q={...O,default:1},R=a=>Math.round(1e5*a)/1e5,S=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,T=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,U=(a,b)=>c=>!!("string"==typeof c&&T.test(c)&&c.startsWith(a)||b&&null!=c&&Object.prototype.hasOwnProperty.call(c,b)),V=(a,b,c)=>d=>{if("string"!=typeof d)return d;let[e,f,g,h]=d.match(S);return{[a]:parseFloat(e),[b]:parseFloat(f),[c]:parseFloat(g),alpha:void 0!==h?parseFloat(h):1}},W={...O,transform:a=>Math.round(N(0,255,a))},X={test:U("rgb","red"),parse:V("red","green","blue"),transform:({red:a,green:b,blue:c,alpha:d=1})=>"rgba("+W.transform(a)+", "+W.transform(b)+", "+W.transform(c)+", "+R(P.transform(d))+")"},Y={test:U("#"),parse:function(a){let b="",c="",d="",e="";return a.length>5?(b=a.substring(1,3),c=a.substring(3,5),d=a.substring(5,7),e=a.substring(7,9)):(b=a.substring(1,2),c=a.substring(2,3),d=a.substring(3,4),e=a.substring(4,5),b+=b,c+=c,d+=d,e+=e),{red:parseInt(b,16),green:parseInt(c,16),blue:parseInt(d,16),alpha:e?parseInt(e,16)/255:1}},transform:X.transform},Z=a=>({test:b=>"string"==typeof b&&b.endsWith(a)&&1===b.split(" ").length,parse:parseFloat,transform:b=>`${b}${a}`}),$=Z("deg"),_=Z("%"),aa=Z("px"),ab=Z("vh"),ac=Z("vw"),ad={..._,parse:a=>_.parse(a)/100,transform:a=>_.transform(100*a)},ae={test:U("hsl","hue"),parse:V("hue","saturation","lightness"),transform:({hue:a,saturation:b,lightness:c,alpha:d=1})=>"hsla("+Math.round(a)+", "+_.transform(R(b))+", "+_.transform(R(c))+", "+R(P.transform(d))+")"},af={test:a=>X.test(a)||Y.test(a)||ae.test(a),parse:a=>X.test(a)?X.parse(a):ae.test(a)?ae.parse(a):Y.parse(a),transform:a=>"string"==typeof a?a:a.hasOwnProperty("red")?X.transform(a):ae.transform(a),getAnimatableNone:a=>{let b=af.parse(a);return b.alpha=0,af.transform(b)}},ag=new RegExp(S.source),ah=RegExp(/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu.source,"i"),ai="number",aj="color",ak=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function al(a){let b=a.toString(),c=[],d={color:[],number:[],var:[]},e=[],f=0,g=b.replace(ak,a=>(af.test(a)?(d.color.push(f),e.push(aj),c.push(af.parse(a))):a.startsWith("var(")?(d.var.push(f),e.push("var"),c.push(a)):(d.number.push(f),e.push(ai),c.push(parseFloat(a))),++f,"${}")).split("${}");return{values:c,split:g,indexes:d,types:e}}function am({split:a,types:b}){let c=a.length;return d=>{let e="";for(let f=0;f<c;f++)if(e+=a[f],void 0!==d[f]){let a=b[f];a===ai?e+=R(d[f]):a===aj?e+=af.transform(d[f]):e+=d[f]}return e}}let an={test:function(a){return isNaN(a)&&"string"==typeof a&&(ag.test(a)||ah.test(a))},parse:function(a){return al(a).values},createTransformer:function(a){return am(al(a))},getAnimatableNone:function(a){let b=al(a);return am(b)(b.values.map((a,c)=>((a,b)=>"number"==typeof a?b?.trim().endsWith("/")?a:0:"number"==typeof a?0:af.test(a)?af.getAnimatableNone(a):a)(a,b.split[c])))}},ao=new Set(["brightness","contrast","saturate","opacity"]);function ap(a){let[b,c]=a.slice(0,-1).split("(");if("drop-shadow"===b)return a;let[d]=c.match(S)||[];if(!d)return a;let e=c.replace(d,""),f=+!!ao.has(b);return d!==c&&(f*=100),b+"("+f+e+")"}let aq=/\b([a-z-]*)\(.*?\)/gu,ar={...an,getAnimatableNone:a=>{let b=a.match(aq);return b?b.map(ap).join(" "):a}},as={...an,getAnimatableNone:a=>{let b=an.parse(a);return an.createTransformer(a)(b.map(a=>"number"==typeof a?0:"object"==typeof a?{...a,alpha:1}:a))}},at={...O,transform:Math.round},au={borderWidth:aa,borderTopWidth:aa,borderRightWidth:aa,borderBottomWidth:aa,borderLeftWidth:aa,borderRadius:aa,borderTopLeftRadius:aa,borderTopRightRadius:aa,borderBottomRightRadius:aa,borderBottomLeftRadius:aa,width:aa,maxWidth:aa,height:aa,maxHeight:aa,top:aa,right:aa,bottom:aa,left:aa,inset:aa,insetBlock:aa,insetBlockStart:aa,insetBlockEnd:aa,insetInline:aa,insetInlineStart:aa,insetInlineEnd:aa,padding:aa,paddingTop:aa,paddingRight:aa,paddingBottom:aa,paddingLeft:aa,paddingBlock:aa,paddingBlockStart:aa,paddingBlockEnd:aa,paddingInline:aa,paddingInlineStart:aa,paddingInlineEnd:aa,margin:aa,marginTop:aa,marginRight:aa,marginBottom:aa,marginLeft:aa,marginBlock:aa,marginBlockStart:aa,marginBlockEnd:aa,marginInline:aa,marginInlineStart:aa,marginInlineEnd:aa,fontSize:aa,backgroundPositionX:aa,backgroundPositionY:aa,rotate:$,pathRotation:$,rotateX:$,rotateY:$,rotateZ:$,scale:Q,scaleX:Q,scaleY:Q,scaleZ:Q,skew:$,skewX:$,skewY:$,distance:aa,translateX:aa,translateY:aa,translateZ:aa,x:aa,y:aa,z:aa,perspective:aa,transformPerspective:aa,opacity:P,originX:ad,originY:ad,originZ:aa,zIndex:at,fillOpacity:P,strokeOpacity:P,numOctaves:at},av={...au,color:af,backgroundColor:af,outlineColor:af,fill:af,stroke:af,borderColor:af,borderTopColor:af,borderRightColor:af,borderBottomColor:af,borderLeftColor:af,filter:ar,WebkitFilter:ar,mask:as,WebkitMask:as},aw=a=>av[a],ax=()=>({translate:0,scale:1,origin:0,originPoint:0}),ay=()=>({x:ax(),y:ax()}),az=()=>({min:0,max:0}),aA=()=>({x:az(),y:az()}),aB=a=>!!(a&&a.getVelocity),aC=new Set(["width","height","top","left","right","bottom",...L]),aD=[O,aa,_,$,ac,ab,{test:a=>"auto"===a,parse:a=>a}],aE=a=>aD.find(b=>b.test(a)),aF=()=>{},aG=()=>{},aH=a=>b=>"string"==typeof b&&b.startsWith(a),aI=aH("--"),aJ=aH("var(--"),aK=a=>!!aJ(a)&&aL.test(a.split("/*")[0].trim()),aL=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function aM(a){return"string"==typeof a&&a.split("/*")[0].includes("var(--")}let aN=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,aO=new Set([ar,as]);function aP(a,b){let c=aw(a);return aO.has(c)||(c=an),c.getAnimatableNone?c.getAnimatableNone(b):void 0}let aQ=a=>180*a/Math.PI,aR=a=>aT(aQ(Math.atan2(a[1],a[0]))),aS={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:aR,rotateZ:aR,skewX:a=>aQ(Math.atan(a[1])),skewY:a=>aQ(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},aT=a=>((a%=360)<0&&(a+=360),a),aU=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),aV=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),aW={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:aU,scaleY:aV,scale:a=>(aU(a)+aV(a))/2,rotateX:a=>aT(aQ(Math.atan2(a[6],a[5]))),rotateY:a=>aT(aQ(Math.atan2(-a[2],a[0]))),rotateZ:aR,rotate:aR,skewX:a=>aQ(Math.atan(a[4])),skewY:a=>aQ(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function aX(a){return+!!a.includes("scale")}function aY(a,b){let c,d;if(!a||"none"===a)return aX(b);let e=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(e)c=aW,d=e;else{let b=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);c=aS,d=b}if(!d)return aX(b);let f=c[b],g=d[1].split(",").map(aZ);return"function"==typeof f?f(g):g[f]}function aZ(a){return parseFloat(a.trim())}let a$=a=>a===O||a===aa,a_=new Set(["x","y","z"]),a0=L.filter(a=>!a_.has(a)),a1=new Set(["bottom","right"]);function a2(a,b,c,d,e,f){let g=parseFloat(a);if(!isNaN(g))return g;let{min:h,max:i}=b()[c],j=i-h;return"border-box"===f?j:j-parseFloat(d)-parseFloat(e)}let a3={width:({width:a,paddingLeft:b="0",paddingRight:c="0",boxSizing:d},e)=>a2(a,e,"x",b,c,d),height:({height:a,paddingTop:b="0",paddingBottom:c="0",boxSizing:d},e)=>a2(a,e,"y",b,c,d),top:({top:a})=>parseFloat(a),left:({left:a})=>parseFloat(a),bottom:({top:a},b)=>{let{y:c}=b();return parseFloat(a)+(c.max-c.min)},right:({left:a},b)=>{let{x:c}=b();return parseFloat(a)+(c.max-c.min)},x:({transform:a})=>aY(a,"x"),y:({transform:a})=>aY(a,"y")};a3.translateX=a3.x,a3.translateY=a3.y;let a4=new Set,a5=!1,a6=!1,a7=!1;function a8(){if(a6){let a=[],b=new Set,c=new Set;a4.forEach(d=>{d.needsMeasurement&&(a.push(d),b.add(d.element),a1.has(d.name)&&c.add(d.element))});let d=new Map;c.forEach(a=>{let b,c=(b=[],a0.forEach(c=>{let d=a.getValue(c);if(void 0!==d){let a=d.get(),e=+!!c.startsWith("scale");if(a===e)return;b.push([c,a]),d.set(e)}}),b);c.length&&(d.set(a,c),a.render())}),a.forEach(a=>a.measureInitialState()),b.forEach(a=>{a.render();let b=d.get(a);b&&b.forEach(([b,c])=>{a.getValue(b)?.set(c)})}),a.forEach(a=>a.measureEndState()),a.forEach(a=>{void 0!==a.suspendedScrollY&&window.scrollTo(0,a.suspendedScrollY)})}a6=!1,a5=!1,a4.forEach(a=>a.complete(a7)),a4.clear()}function a9(){a4.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(a6=!0)})}class ba{constructor(a,b,c,d,e,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=b,this.name=c,this.motionValue=d,this.element=e,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(a4.add(this),a5||(a5=!0,F.read(a9),F.resolveKeyframes(a8))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:a,name:b,element:c,motionValue:d}=this;if(null===a[0]){let e=d?.get(),f=a[a.length-1];if(void 0!==e)a[0]=e;else if(c&&b){let d=function(a,b,c){if("string"==typeof a){if(/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a)||/^0[^.\s]+$/u.test(a))return parseFloat(a);if(!an.test(a)&&an.test(c))return aP(b,c)}return a??void 0}(c.readValue(b,f),b,f);void 0!==d&&(a[0]=d)}void 0===a[0]&&(a[0]=f),d&&void 0===e&&d.set(a[0])}for(let b=1;b<a.length;b++)a[b]??(a[b]=a[b-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),a4.delete(this)}cancel(){"scheduled"===this.state&&(a4.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let bb=new Set(["auto","none","0"]);class bc extends ba{constructor(a,b,c,d,e){super(a,b,c,d,e,!0)}readKeyframes(){let{unresolvedKeyframes:a,element:b,name:c}=this;if(!b||!b.current)return;super.readKeyframes();for(let c=0;c<a.length;c++){let d=a[c];if("string"==typeof d&&aK(d=d.trim())){let e=function a(b,c,d=1){aG(`Max CSS variable fallback depth detected in property "${b}". This may indicate a circular fallback dependency.`);let[e,f]=function(a){let b=aN.exec(a);if(!b)return[,];let[,c,d,e]=b;return[`--${c??d}`,e]}(b);if(!e)return;let g=window.getComputedStyle(c).getPropertyValue(e);if(g){let a=g.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a)?parseFloat(a):a}return aK(f)?a(f,c,d+1):f}(d,b.current);void 0!==e&&(a[c]=e),c===a.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!aC.has(c)||2!==a.length)return;let[d,e]=a;if("number"==typeof d&&"number"==typeof e)return;let f=aE(d),g=aE(e);if(aM(d)!==aM(e)&&a3[c]){this.needsMeasurement=!0;return}if(f!==g)if(a$(f)&&a$(g))for(let b=0;b<a.length;b++){let c=a[b];"string"==typeof c&&(a[b]=parseFloat(c))}else a3[c]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:a,name:b}=this,c=[];for(let b=0;b<a.length;b++)(null===a[b]||function(a){if("number"==typeof a)return 0===a;if(null===a)return!0;return"none"===a||"0"===a||/^0[^.\s]+$/u.test(a)}(a[b]))&&c.push(b);c.length&&function(a,b,c){let d,e=0;for(;e<a.length&&!d;){let b=a[e];"string"==typeof b&&!bb.has(b)&&function(a){let b=a.toString();return ag.test(b)||ah.test(b)}(b)&&(d=a[e]),e++}if(d&&c)for(let e of b)a[e]!==d&&(a[e]=aP(c,d))}(a,c,b)}measure(){let{element:a,name:b}=this;return a3[b](window.getComputedStyle(a.current),()=>a.measureViewportBox())}measureInitialState(){let{element:a,unresolvedKeyframes:b,name:c}=this;if(!a||!a.current)return;"height"===c&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),b[0]=this.measuredOrigin;let d=b[b.length-1];void 0!==d&&this.motionValue?.jump(d,!1)}measureEndState(){let{element:a,unresolvedKeyframes:b}=this;if(!a||!a.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let c=b.length-1,d=b[c];b[c]=this.measure(),null!==d&&void 0===this.finalKeyframe&&(this.finalKeyframe=d),this.removedTransforms?.length&&this.removedTransforms.forEach(([b,c])=>{a.getValue(b).set(c)}),this.resolveNoneKeyframes()}}let bd=a=>1e3*a;function be(a,b){-1===a.indexOf(b)&&a.push(b)}function bf(a,b){let c=a.indexOf(b);c>-1&&a.splice(c,1)}class bg{constructor(){this.subscriptions=[]}add(a){return be(this.subscriptions,a),()=>this.remove(a)}remove(a){bf(this.subscriptions,a)}notify(a,b,c){let d=this.subscriptions.length;if(d)if(1===d)this.subscriptions[0](a,b,c);else for(let e=0;e<d;e++){let d=this.subscriptions[e];d&&d(a,b,c)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function bh(a,b,c){b.startsWith("--")?a.style.setProperty(b,c):a.style[b]=c}function bi(a){let b;return()=>(void 0===b&&(b=a()),b)}let bj={};function bk(a,b){let c=bi(a);return()=>bj[b]??c()}let bl=bk(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),bm=a=>null!==a;function bn(a,{repeat:b,repeatType:c="loop"},d,e=1){let f=a.filter(bm),g=e<0||b&&"loop"!==c&&b%2==1?0:f.length-1;return g&&void 0!==d?d:f[g]}class bo{constructor(){this.isResolved=!1}get finished(){return this._finished||(this._finished=this.isResolved?Promise.resolve():new Promise(a=>{this._resolve=a})),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(a,b){return this.finished.then(a,b)}}function bp(){d=void 0}let bq={now:()=>(void 0===d&&bq.set(E.isProcessing||B.useManualTiming?E.timestamp:performance.now()),d),set:a=>{d=a,queueMicrotask(bp)}};function br(a,b){return{kind:a,animation:b,timestamp:bq.now(),frameTimestamp:E.timestamp,frameIsProcessing:E.isProcessing}}function bs(a,b,c){let d=globalThis.__MOTION_INSPECT__;if(d)try{d({...br("animation-start",a),options:c?{...b,...c}:b})}catch{}}let bt=a=>Array.isArray(a)&&"number"==typeof a[0],bu=bk(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(a){return!1}return!0},"linearEasing"),bv=(a,b,c=10)=>{let d="",e=Math.max(Math.round(b/c),2);for(let b=0;b<e;b++)d+=Math.round(1e4*a(b/(e-1)))/1e4+", ";return`linear(${d.substring(0,d.length-2)})`},bw=([a,b,c,d])=>`cubic-bezier(${a}, ${b}, ${c}, ${d})`,bx={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:bw([0,.65,.55,1]),circOut:bw([.55,0,1,.45]),backIn:bw([.31,.01,.66,-.59]),backOut:bw([.33,1.53,.69,.99])};function by(a){return"function"==typeof a&&"applyToOptions"in a}class bz extends bo{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!a)return;const{element:b,name:c,keyframes:d,pseudoElement:e,allowFlatten:f=!1,finalKeyframe:g,onComplete:h}=a;this.isPseudoElement=!!e,this.allowFlatten=f,this.options=a,aG(a.type);const i=function({type:a,...b}){return by(a)&&bu()?a.applyToOptions(b):(b.duration??(b.duration=300),b.ease??(b.ease="easeOut"),b)}(a);this.animation=function(a,b,c,{delay:d=0,duration:e=300,repeat:f=0,repeatType:g="loop",ease:h="easeOut",times:i}={},j){let k={[b]:c};i&&(k.offset=i);let l=function a(b,c){if(b)return"function"==typeof b?bu()?bv(b,c):"ease-out":bt(b)?bw(b):Array.isArray(b)?b.map(b=>a(b,c)||bx.easeOut):bx[b]}(h,e);Array.isArray(l)&&(k.easing=l);let m={delay:d,duration:e,easing:Array.isArray(l)?"linear":l,fill:"both",iterations:f+1,direction:"reverse"===g?"alternate":"normal"};return j&&(m.pseudoElement=j),a.animate(k,m)}(b,c,d,i,e),!1===i.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!e){let a=bn(d,this.options,g,this.speed);this.updateMotionValue&&this.updateMotionValue(a),bh(b,c,a),this.animation.cancel()}h?.(),this.notifyFinished()},bs(this,a,i)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(a){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:a}=this;"idle"!==a&&"finished"!==a&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let a=this.options?.element;!this.isPseudoElement&&a?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:a=0}=this.options||{};return this.duration+a/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(a){let b=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=bd(a),b&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(a){a<0&&(this.finishedTime=null),this.animation.playbackRate=a}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(a){this.manualStartTime=this.animation.startTime=a}attachTimeline({timeline:a,onAttach:b,observe:c}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,a&&bl())?(this.animation.timeline=a,b?.(this.animation),A):c(this)}}let bA=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:bB}=D(queueMicrotask,!1),bC=(a,b)=>b?1e3/b*a:0,bD;class bE{constructor(a,b={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{let b=bq.now();if(this.updatedAt!==b&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(let a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(a),this.owner=b.owner}setCurrent(a){this.current=a,this.updatedAt=bq.now(),null===this.canTrackVelocity&&void 0!==a&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,b){var c;return"change"===a?this.onChangeSubscribe(b):((c=this.events)[a]||(c[a]=new bg)).add(b)}onChangeSubscribe(a){let{events:b}=this;return b.change||this.changeSubscriber?(b.change||(b.change=new bg,b.change.add(this.changeSubscriber),this.changeSubscriber=void 0),b.change.add(a)):this.changeSubscriber=a,()=>{this.changeSubscriber===a?this.changeSubscriber=void 0:b.change?.remove(a),this.stopIfUnobserved()}}stopIfUnobserved(){F.read(()=>{this.changeSubscriber||this.events.change?.getSize()||this.stop()})}clearListeners(){for(let a in this.changeSubscriber=void 0,this.events)this.events[a].clear()}attach(a,b){this.passiveEffect=a,this.stopPassiveEffect=b}set(a){this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a)}setWithVelocity(a,b,c){this.set(b),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-c}jump(a,b=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,b&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){let{current:a,changeSubscriber:b}=this;b?b(a):this.events.change?.notify(a)}addDependent(a){this.dependents||(this.dependents=new Set),this.dependents.add(a)}removeDependent(a){this.dependents&&this.dependents.delete(a)}get(){return bD&&bD.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let a=bq.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||a-this.updatedAt>30)return 0;let b=Math.min(this.updatedAt-this.prevUpdatedAt,30);return bC(parseFloat(this.current)-parseFloat(this.prevFrameValue),b)}start(a){return this.stop(),new Promise(b=>{let c;this.hasAnimated=!0;let d=!1;c=a(()=>{d=!0,this.events.animationComplete?.notify(),this.animation===c&&this.clearAnimation(),b()}),d||(this.animation=c),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function bF(a,b){return new bE(a,b)}let bG=new WeakMap;function bH(a){return null!==a&&"object"==typeof a&&"function"==typeof a.start}function bI(a){return"string"==typeof a||Array.isArray(a)}let bJ=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],bK=["initial",...bJ];function bL(a){if(bH(a.animate))return!0;for(let b=0;b<bK.length;b++)if(bI(a[bK[b]]))return!0;return!1}function bM(a){return!!(bL(a)||a.variants)}function bN(a){let b=[{},{}];return a?.values.forEach((a,c)=>{b[0][c]=a.get(),b[1][c]=a.getVelocity()}),b}function bO(a,b,c,d){if("function"==typeof b){let[e,f]=bN(d);b=b(void 0!==c?c:a.custom,e,f)}if("string"==typeof b&&(b=a.variants&&a.variants[b]),"function"==typeof b){let[e,f]=bN(d);b=b(void 0!==c?c:a.custom,e,f)}return b}let bP=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],bQ={};class bR{scrapeMotionValuesFromProps(a,b,c){return{}}constructor({parent:a,props:b,presenceContext:c,reducedMotionConfig:d,skipAnimations:e,blockInitialAnimation:f,visualState:g},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=ba,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let a=bq.now();this.renderScheduledAt<a&&(this.renderScheduledAt=a,F.render(this.render,!1,!0))};const{latestValues:i,renderState:j}=g;this.latestValues=i,this.baseTarget={...i},this.initialValues=b.initial?{...i}:{},this.renderState=j,this.parent=a,this.props=b,this.presenceContext=c,this.depth=a?a.depth+1:0,this.reducedMotionConfig=d,this.skipAnimationsConfig=e,this.options=h,this.blockInitialAnimation=!!f,this.isControllingVariants=bL(b),this.isVariantNode=bM(b),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const{willChange:k,...l}=this.scrapeMotionValuesFromProps(b,{},this);for(const a in l){const b=l[a];void 0!==i[a]&&aB(b)&&b.set(i[a])}}mount(a){if(this.hasBeenMounted)for(let a in this.initialValues)this.values.get(a)?.jump(this.initialValues[a]),this.latestValues[a]=this.initialValues[a];this.current=a,bG.set(a,this),this.projection&&!this.projection.instance&&this.projection.mount(a),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,b)=>this.bindToMotionValue(b,a)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(v.current||x(),this.shouldReduceMotion=u.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let a in this.projection&&this.projection.unmount(),G(this.notifyUpdate),G(this.render),this.valueSubscriptions.forEach(a=>a()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[a].clear();for(let a in this.features){let b=this.features[a];b&&(b.unmount(),b.isMounted=!1)}this.current=null}addChild(a){this.children.add(a),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(a)}removeChild(a){this.children.delete(a),this.enteringChildren&&this.enteringChildren.delete(a)}bindToMotionValue(a,b){let c;if(this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)(),b.accelerate&&bA.has(a)&&this.current instanceof HTMLElement){let{factory:c,keyframes:d,times:e,ease:f,duration:g}=b.accelerate,h=new bz({element:this.current,name:a,keyframes:d,times:e,ease:f,duration:bd(g)}),i=c(h);this.valueSubscriptions.set(a,()=>{i(),h.cancel()});return}let d=M.has(a);d&&this.onBindTransform&&this.onBindTransform();let e=b.on("change",b=>{this.latestValues[a]=b,this.props.onUpdate&&F.preRender(this.notifyUpdate),d&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,a,b)),this.valueSubscriptions.set(a,()=>{e(),c&&c()})}sortNodePosition(a){return this.current&&this.sortInstanceNodePosition&&this.type===a.type?this.sortInstanceNodePosition(this.current,a.current):0}updateFeatures(){let a="animation";for(a in bQ){let b=bQ[a];if(!b)continue;let{isEnabled:c,Feature:d}=b;if(!this.features[a]&&d&&c(this.props)&&(this.features[a]=new d(this)),this.features[a]){let b=this.features[a];b.isMounted?b.update():(b.mount(),b.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):aA()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,b){this.latestValues[a]=b}update(a,b){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=b;for(let b=0;b<bP.length;b++){let c=bP[b];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);let d=a["on"+c];d&&(this.propEventSubscriptions[c]=this.on(c,d))}this.prevMotionValues=function(a,b,c){for(let d in b){let e=b[d],f=c[d];if(aB(e))a.addValue(d,e);else if(aB(f))a.addValue(d,bF(e,{owner:a}));else if(f!==e)if(a.hasValue(d)){let b=a.getValue(d);!0===b.liveStyle?b.jump(e):b.hasAnimated||b.set(e)}else{let b=a.getStaticValue(d);a.addValue(d,bF(void 0!==b?b:e,{owner:a}))}}for(let d in c)void 0===b[d]&&a.removeValue(d);return b}(this,this.scrapeMotionValuesFromProps(a,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(a){return this.props.variants?this.props.variants[a]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(a){let b=this.getClosestVariantNode();if(b)return b.variantChildren&&b.variantChildren.add(a),()=>b.variantChildren.delete(a)}addValue(a,b){let c=this.values.get(a);if(b!==c){c&&this.removeValue(a),this.bindToMotionValue(a,b),this.values.set(a,b);let d=b.get();void 0!==d&&(this.latestValues[a]=d)}}removeValue(a){this.values.delete(a);let b=this.valueSubscriptions.get(a);b&&(b(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,b){if(this.props.values&&this.props.values[a])return this.props.values[a];let c=this.values.get(a);return void 0===c&&void 0!==b&&(c=bF(b??this.getDefaultValue?.(a),{owner:this}),this.addValue(a,c)),c}readValue(a,b){let c=void 0===this.latestValues[a]&&this.current?this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options):this.latestValues[a];if(null!=c){let d,e;"string"==typeof c&&(d=c,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(d)||(e=c,/^0[^.\s]+$/u.test(e)))?c=parseFloat(c):"number"!=typeof c&&!an.test(c)&&an.test(b)&&(c=aP(a,b)),this.setBaseTarget(a,aB(c)?c.get():c)}return aB(c)?c.get():c}setBaseTarget(a,b){this.baseTarget[a]=b}getBaseTarget(a){let b,{initial:c}=this.props;if("string"==typeof c||"object"==typeof c){let d=bO(this.props,c,this.presenceContext?.custom);d&&(b=d[a])}if(c&&void 0!==b)return b;let d=this.getBaseTargetFromProps(this.props,a);return void 0===d||aB(d)?void 0!==this.initialValues[a]&&void 0===b?void 0:this.baseTarget[a]:d}on(a,b){return this.events[a]||(this.events[a]=new bg),this.events[a].add(b)}notify(a,...b){this.events[a]&&this.events[a].notify(...b)}scheduleRenderMicrotask(){bB.render(this.render)}}class bS extends bR{constructor(){super(...arguments),this.KeyframeResolver=bc}sortInstanceNodePosition(a,b){return 2&a.compareDocumentPosition(b)?1:-1}getBaseTargetFromProps(a,b){let c=a.style;return c?c[b]:void 0}removeValueFromRenderState(a,{vars:b,style:c}){delete b[a],delete c[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:a}=this.props;aB(a)&&(this.childSubscription=a.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}function bT(a){return a.replace(/([A-Z])/g,a=>`-${a.toLowerCase()}`)}let bU=(a,b)=>b&&"number"==typeof a?b.transform(a):a,bV={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bW=L.length;function bX(a,b,c){let{style:d,vars:e,transformOrigin:f}=a,g=!1,h=!1;for(let a in b){let c=b[a];if(M.has(a)){g=!0;continue}if(aI(a)){e[a]=c;continue}{let b=bU(c,au[a]);a.startsWith("origin")?(h=!0,f[a]=b):d[a]=b}}if(!b.transform&&(g||c?d.transform=function(a,b,c){let d="",e=!0;for(let f=0;f<bW;f++){let g=L[f],h=a[g];if(void 0===h)continue;let i=!0;if("number"==typeof h)i=h===+!!g.startsWith("scale");else{let a=parseFloat(h);i=g.startsWith("scale")?1===a:0===a}if(!i||c){let a=bU(h,au[g]);if(!i){e=!1;let b=bV[g]||g;d+=`${b}(${a}) `}c&&(b[g]=a)}}let f=a.pathRotation;return f&&(e=!1,d+=`rotate(${bU(f,au.pathRotation)}) `),d=d.trim(),c?d=c(b,e?"":d):e&&(d="none"),d}(b,a.transform,c):d.transform&&(d.transform="none")),h){let{originX:a="50%",originY:b="50%",originZ:c=0}=f;d.transformOrigin=`${a} ${b} ${c}`}}let bY={offset:"stroke-dashoffset",array:"stroke-dasharray"},bZ={offset:"strokeDashoffset",array:"strokeDasharray"},b$=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function b_(a,{attrX:b,attrY:c,attrScale:d,pathLength:e,pathSpacing:f=1,pathOffset:g=0,...h},i,j,k){if(bX(a,h,j),i){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};let{attrs:l,style:m}=a;for(let a of b$)void 0!==l[a]&&(m[a]=l[a],delete l[a]);(m.transform||l.transformOrigin)&&(m.transformOrigin=l.transformOrigin??"50% 50%",delete l.transformOrigin),m.transform&&(m.transformBox=k?.transformBox??"fill-box",delete l.transformBox),void 0!==b&&(l.x=b),void 0!==c&&(l.y=c),void 0!==d&&(l.scale=d),void 0!==e&&function(a,b,c=1,d=0,e=!0){a.pathLength=1;let f=e?bY:bZ;a[f.offset]=`${-d}`,a[f.array]=`${b} ${c}`}(l,e,f,g,!1)}let b0=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),b1=a=>"string"==typeof a&&"svg"===a.toLowerCase();function b2(a,{style:b,vars:c},d,e){let f,g=a.style;for(f in b)g[f]=b[f];for(f in e?.applyProjectionStyles(g,d),c)g.setProperty(f,c[f])}let b3={};function b4(a,{layout:b,layoutId:c}){return M.has(a)||a.startsWith("origin")||(b||void 0!==c)&&(!!b3[a]||"opacity"===a)}function b5(a,b,c){let d=a.style,e=b?.style,f={};if(!d)return f;for(let b in d)(aB(d[b])||e&&aB(e[b])||b4(b,a)||c?.getValue(b)?.liveStyle!==void 0)&&(f[b]=d[b]);return f}function b6(a,b,c){let d=b5(a,b,c);for(let c in a)(aB(a[c])||aB(b[c]))&&(d[-1!==L.indexOf(c)?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c]=a[c]);return d}class b7 extends bS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=aA}getBaseTargetFromProps(a,b){return M.has(b)?super.getBaseTargetFromProps(a,b)??aX(b):a[b]}getDefaultValue(a){return M.has(a)?this.latestValues[a]??aX(a):void 0}readValueFromInstance(a,b){if(M.has(b)){let a=aw(b);return a&&a.default||0}if(b$.includes(b)){let c=getComputedStyle(a)[b];if("string"==typeof c&&c)return c.trim()}return b=b0.has(b)?b:bT(b),a.getAttribute(b)}scrapeMotionValuesFromProps(a,b,c){return b6(a,b,c)}build(a,b,c){b_(a,b,this.isSVGTag,c.transformTemplate,c.style)}renderInstance(a,b,c,d){for(let c in b2(a,b,void 0,d),b.attrs)a.setAttribute(b0.has(c)?c:bT(c),b.attrs[c])}mount(a){this.isSVGTag=b1(a.tagName),super.mount(a)}}function b8({top:a,left:b,right:c,bottom:d}){return{x:{min:b,max:c},y:{min:a,max:d}}}let b9=(a,b,c)=>a+(b-a)*c;function ca(a){return void 0===a||1===a}function cb({scale:a,scaleX:b,scaleY:c}){return!ca(a)||!ca(b)||!ca(c)}function cc(a){return cb(a)||cd(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function cd(a){var b,c;return(b=a.x)&&"0%"!==b||(c=a.y)&&"0%"!==c}function ce(a,b,c,d,e){return void 0!==e&&(a=d+e*(a-d)),d+c*(a-d)+b}function cf(a,b=0,c=1,d,e){a.min=ce(a.min,b,c,d,e),a.max=ce(a.max,b,c,d,e)}function cg(a,{x:b,y:c}){cf(a.x,b.translate,b.scale,b.originPoint),cf(a.y,c.translate,c.scale,c.originPoint)}function ch(a,b){a.min+=b,a.max+=b}function ci(a,b,c,d,e=.5){let f=b9(a.min,a.max,e);cf(a,b,c,f,d)}function cj(a,b){return"string"==typeof a?parseFloat(a)/100*(b.max-b.min):a}function ck(a,b,c){let d=c??a;ci(a.x,cj(b.x,d.x),b.scaleX,b.scale,b.originX),ci(a.y,cj(b.y,d.y),b.scaleY,b.scale,b.originY)}function cl(a,b){return b8(function(a,b){if(!b)return a;let c=b({x:a.left,y:a.top}),d=b({x:a.right,y:a.bottom});return{top:c.y,left:c.x,bottom:d.y,right:d.x}}(a.getBoundingClientRect(),b))}class cm extends bS{constructor(){super(...arguments),this.type="html",this.renderInstance=b2}mount(a){aG(a.style),super.mount(a)}readValueFromInstance(a,b){if(M.has(b))return this.projection?.isProjecting?aX(b):((a,b)=>{let{transform:c="none"}=getComputedStyle(a);return aY(c,b)})(a,b);{let c=window.getComputedStyle(a),d=(aI(b)?c.getPropertyValue(b):c[b])||0;return"string"==typeof d?d.trim():d}}measureInstanceViewportBox(a,{transformPagePoint:b}){return cl(a,b)}build(a,b,c){bX(a,b,c.transformTemplate)}scrapeMotionValuesFromProps(a,b,c){return b5(a,b,c)}}let cn=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function co(a){if("string"!=typeof a||a.includes("-"));else if(cn.indexOf(a)>-1||/[A-Z]/u.test(a))return!0;return!1}let cp=(0,h.createContext)({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"}),cq=(0,h.createContext)({});function cr(a){return Array.isArray(a)?a.join(" "):a}let cs=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ct(a,b,c){for(let d in b)aB(b[d])||b4(d,c)||(a[d]=b[d])}let cu=()=>({...cs(),attrs:{}}),cv=new Set(["animate","exit","variants","initial","style","values","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function cw(a){return a.startsWith("while")||a.startsWith("drag")&&"draggable"!==a||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||cv.has(a)}function cx(a){return aB(a)?a.get():a}let cy=(0,h.createContext)(null),cz=a=>(b,c)=>{let d,e=(0,h.useContext)(cq),f=(0,h.useContext)(cy),g=()=>(function({scrapeMotionValuesFromProps:a,createRenderState:b},c,d,e){return{latestValues:function(a,b,c,d){let e={},f=d(a,{});for(let a in f)e[a]=cx(f[a]);let{initial:g,animate:h}=a,i=bL(a),j=bM(a);b&&j&&!i&&!1!==a.inherit&&(void 0===g&&(g=b.initial),void 0===h&&(h=b.animate));let k=!!c&&!1===c.initial,l=(k=k||!1===g)?h:g;if(l&&"boolean"!=typeof l&&!bH(l)){let b=Array.isArray(l)?l:[l];for(let c=0;c<b.length;c++){let d=bO(a,b[c]);if(d){let{transitionEnd:a,transition:b,...c}=d;for(let a in c){let b=c[a];if(Array.isArray(b)){let a=k?b.length-1:0;b=b[a]}null!==b&&(e[a]=b)}for(let b in a)e[b]=a[b]}}}return e}(c,d,e,a),renderState:b()}})(a,b,e,f);return c?g():(null===(d=(0,h.useRef)(null)).current&&(d.current=g()),d.current)},cA=cz({scrapeMotionValuesFromProps:b5,createRenderState:cs}),cB=cz({scrapeMotionValuesFromProps:b6,createRenderState:cu}),cC={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},cD=!1,cE=Symbol.for("motionComponentSymbol");function cF(a,{forwardMotionProps:b=!1,type:c}={},d,e){d&&function(a){let b=(!function(){if(cD)return;let a={};for(let b in cC)a[b]={isEnabled:a=>cC[b].some(b=>!!a[b])};bQ=a,cD=!0}(),bQ);for(let c in a)b[c]={...b[c],...a[c]};bQ=b}(d);let f=c?"svg"===c:co(a),i=f?cB:cA;function j(c,d){var e;let j,k,l,m={...(0,h.useContext)(cp),...c,layoutId:function({layoutId:a}){let b=(0,h.useContext)(y).id;return b&&void 0!==a?b+"-"+a:a}(c)},{isStatic:n,isValidProp:o}=m,p=function(a){let{initial:b,animate:c}=function(a,b){if(bL(a)){let{initial:b,animate:c}=a;return{initial:!1===b||bI(b)?b:void 0,animate:bI(c)?c:void 0}}return!1!==a.inherit?b:{}}(a,(0,h.useContext)(cq));return(0,h.useMemo)(()=>({initial:b,animate:c}),[cr(b),cr(c)])}(c),q=i(c,n);return(0,g.jsxs)(cq.Provider,{value:p,children:[j&&p.visualElement?(0,g.jsx)(j,{visualElement:p.visualElement,...m}):null,function(a,b,c,{latestValues:d},e,f=!1,g,i){let j=(g??co(a)?function(a,b,c,d){let e=(0,h.useMemo)(()=>{let c=cu();return b_(c,b,b1(d),a.transformTemplate,a.style),{...c.attrs,style:{...c.style}}},[b]);if(a.style){let b={};ct(b,a.style,a),e.style={...b,...e.style}}return e}:function(a,b){let c,d,e={},f=(c=a.style||{},ct(d={},c,a),Object.assign(d,function({transformTemplate:a},b){return(0,h.useMemo)(()=>{let c=cs();return bX(c,b,a),Object.assign({},c.vars,c.style)},[b])}(a,b)),d);return a.drag&&!1!==a.dragListener&&(e.draggable=!1,f.userSelect=f.WebkitUserSelect=f.WebkitTouchCallout="none",f.touchAction=!0===a.drag?"none":`pan-${"x"===a.drag?"y":"x"}`),void 0===a.tabIndex&&(a.onTap||a.onTapStart||a.whileTap)&&(e.tabIndex=0),e.style=f,e})(b,d,e,a),k=function(a,b,c,d){let e={};for(let f in a)("values"!==f||"object"!=typeof a.values)&&!aB(a[f])&&((f.startsWith("on")?!cw(f):d?.(f)??!cw(f))||!0===c&&cw(f)||!b&&!cw(f)||a.draggable&&f.startsWith("onDrag"))&&(e[f]=a[f]);return e}(b,"string"==typeof a,f,i),l=a!==h.Fragment?{...k,...j,ref:c}:{},{children:m}=b,n=(0,h.useMemo)(()=>aB(m)?m.get():m,[m]);return(0,h.createElement)(a,{...l,children:n})}(a,c,(e=p.visualElement,k=(0,h.useRef)(d),(0,h.useInsertionEffect)(()=>{k.current=d}),l=(0,h.useRef)(null),(0,h.useCallback)(a=>{a&&q.onMount?.(a),e&&(a?e.mount(a):e.unmount());let b=k.current;if("function"==typeof b)if(a){let c=b(a);"function"==typeof c&&(l.current=c)}else l.current?(l.current(),l.current=null):b(a);else b&&(b.current=a)},[e])),q,n,b,f,o)]})}j.displayName=`motion.${"string"==typeof a?a:`create(${a.displayName??a.name??""})`}`;let k=(0,h.forwardRef)(j);return k[cE]=a,k}class cG{constructor(a){this.isMounted=!1,this.node=a}update(){}}function cH(a,b,c){let d=a.getProps();return bO(d,b,void 0!==c?c:d.custom,a)}function cI(a,b){if(a?.inherit&&b){let{inherit:c,...d}=a;return{...b,...d}}return a}function cJ(a,b){let c=a?.[b]??a?.default??a;return c!==a?cI(c,a):c}let cK=a=>Array.isArray(a);function cL(a,b){let c=a.getValue("willChange");if(aB(c)&&c.add)return c.add(b);if(!c&&B.WillChange){let c=new B.WillChange("auto");a.addValue("willChange",c),c.add(b)}}let cM="data-"+bT("framerAppearId"),cN=(...a)=>a.reduce((a,b)=>c=>b(a(c)));function cO(a,b,c){return(c<0&&(c+=1),c>1&&(c-=1),c<1/6)?a+(b-a)*6*c:c<.5?b:c<2/3?a+(b-a)*(2/3-c)*6:a}function cP(a,b){return c=>c>0?b:a}let cQ=(a,b,c)=>{let d=a*a,e=c*(b*b-d)+d;return e<0?0:Math.sqrt(e)},cR=[Y,X,ae];function cS(a){let b=cR.find(b=>b.test(a));if(!b)return aF(`'${a}' is not an animatable color. Use the equivalent color code instead.`),!1;let c=b.parse(a);return b===ae&&(c=function({hue:a,saturation:b,lightness:c,alpha:d}){a/=360,c/=100;let e=0,f=0,g=0;if(b/=100){let d=c<.5?c*(1+b):c+b-c*b,h=2*c-d;e=cO(h,d,a+1/3),f=cO(h,d,a),g=cO(h,d,a-1/3)}else e=f=g=c;return{red:Math.round(255*e),green:Math.round(255*f),blue:Math.round(255*g),alpha:d}}(c)),c}let cT=(a,b)=>{let c=cS(a),d=cS(b);if(!c||!d)return cP(a,b);let e={...c};return a=>(e.red=cQ(c.red,d.red,a),e.green=cQ(c.green,d.green,a),e.blue=cQ(c.blue,d.blue,a),e.alpha=b9(c.alpha,d.alpha,a),X.transform(e))},cU=new Set(["none","hidden"]);function cV(a,b){return c=>b9(a,b,c)}function cW(a){return"number"==typeof a?cV:"string"==typeof a?aK(a)?cP:af.test(a)?cT:cZ:Array.isArray(a)?cX:"object"==typeof a?af.test(a)?cT:cY:cP}function cX(a,b){let c=[...a],d=c.length,e=a.map((a,c)=>cW(a)(a,b[c]));return a=>{for(let b=0;b<d;b++)c[b]=e[b](a);return c}}function cY(a,b){let c={...a,...b},d={};for(let e in c)void 0!==a[e]&&void 0!==b[e]&&(d[e]=cW(a[e])(a[e],b[e]));return a=>{for(let b in d)c[b]=d[b](a);return c}}let cZ=(a,b)=>{let c=an.createTransformer(b),d=al(a),e=al(b);if(!(d.indexes.var.length===e.indexes.var.length&&d.indexes.color.length===e.indexes.color.length&&d.indexes.number.length>=e.indexes.number.length))return aF(`Complex values '${a}' and '${b}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),cP(a,b);if(cU.has(a)&&!e.values.length||cU.has(b)&&!d.values.length)return cU.has(a)?c=>c<=0?a:b:c=>c>=1?b:a;return cN(cX(function(a,b){let c=[],d={color:0,var:0,number:0};for(let e=0;e<b.values.length;e++){let f=b.types[e],g=a.indexes[f][d[f]],h=a.values[g]??0;c[e]=h,d[f]++}return c}(d,e),e.values),c)},c$=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function c_(a,b,c){if("number"==typeof a&&"number"==typeof b&&"number"==typeof c)return b9(a,b,c);if("string"==typeof a&&"string"==typeof b){let c=function(a,b){let c=c$.exec(a);if(!c)return;let d=c$.exec(b);if(!d||c[2]!==d[2])return;let e=c[2],f=parseFloat(c[1]),g=parseFloat(d[1]);return a=>R(b9(f,g,a))+e}(a,b);if(c)return c}return cW(a)(a,b)}let c0=a=>{let b=({timestamp:b})=>a(b);return{start:(a=!0)=>F.update(b,a),stop:()=>G(b),now:()=>E.isProcessing?E.timestamp:bq.now()}};function c1(a,b=50,c=2e4,d){let e=0,f=a.next(e);for(d?.push(f.value);!f.done&&e<c;)e+=b,f=a.next(e),d?.push(f.value);return e>=c?1/0:e}let c2=.01,c3=2,c4=.005,c5=.5,c6=a=>a<0?1/Math.max(1+a,.05):Math.max(1-a,.05);function c7(a,b){if(!(a>1))return 1;let c=Math.sqrt(a*a-1),d=a-c,e=a+c,f=2*c*Math.exp(-b)*(1+b);return c9(a=>e*Math.exp(-d*a)-d*Math.exp(-e*a)-f,a=>Math.exp(-e*a)-Math.exp(-d*a),b)/b}function c8(a,b){return a*Math.sqrt(1-b*b)}function c9(a,b,c){let d=c;for(let c=1;c<12;c++)d-=a(d)/b(d);return d}let da=(a,b)=>(b?a>=0:a>0)&&a<1/0;function db(a,b){if(da(a,b))return a}function dc(a=.3,b=.3){let c,d,e,f="object"!=typeof a?{visualDuration:a,keyframes:[0,1],bounce:b}:a,g=f.keyframes[0],h=f.keyframes[f.keyframes.length-1],i={done:!1,value:g},{stiffness:j,damping:k,mass:l,duration:m,isResolvedFromDuration:n,isTimeDefined:o}=function(a){let b=db(a.stiffness),c=db(a.damping,!0),d=db(a.mass),e={...a,stiffness:b??100,damping:c??10,mass:d??1,isResolvedFromDuration:!1,isTimeDefined:(b??c??d)===void 0&&(void 0!==a.duration||void 0!==a.bounce)};if(e.isTimeDefined){if(a.visualDuration){let b=c6(a.bounce||0),c=2*Math.PI/(1.2*a.visualDuration)*c7(b,2*Math.PI/1.2);e.stiffness=c*c,e.damping=2*b*Math.sqrt(e.stiffness)}else Object.assign(e,function({duration:a=800,bounce:b=.3}){let c,d;aF(bd(10));let e=c6(b);a=N(.01,10,a/1e3),e<1?(c=b=>{let c=b*e,d=c*a;return .001-c/c8(b,e)*Math.exp(-d)},d=b=>{let d=b*e*a,f=e*e*b*b*a,g=Math.exp(-d),h=c8(b*b,e);return-((-c(b)+.001>0?-1:1)*f)*g/h}):(c=b=>-.001+Math.exp(-b*a)*(b*a+1),d=b=>-(a*a*b*Math.exp(-b*a)));let f=c9(c,d,5/a),g=f*c7(e,f*a),h=g*g;return{stiffness:h,damping:2*e*Math.sqrt(h),duration:bd(a)}}(e)),e.isResolvedFromDuration=!0;da(e.stiffness)&&da(e.damping,!0)||(e.stiffness=100,e.damping=10)}return e}({...f}),p=a=>o?0:-(a/1e3),q=k/(2*Math.sqrt(j*l)),r=Math.sqrt(j/l)/1e3,s=q*r,t={target:h,delta:h-g,velocity:p(f.velocity||0)||0,restSpeed:0,restDelta:0},u=()=>{let a=5>Math.abs(t.delta);t.restSpeed=f.restSpeed||(a?c2:c3),t.restDelta=f.restDelta||(a?c4:c5)};if(u(),q<1){let a=c8(r,q),b={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};e=()=>{b.A=(t.velocity+s*t.delta)/a,b.sinC=s*b.A+t.delta*a,b.cosC=s*t.delta-b.A*a};let f=c=>{c!==b.t&&(b.t=c,b.env=Math.exp(-s*c),b.sin=Math.sin(a*c),b.cos=Math.cos(a*c))};c=a=>(f(a),t.target-b.env*(b.A*b.sin+t.delta*b.cos)),d=a=>(f(a),b.env*(b.sinC*b.sin+b.cosC*b.cos))}else if(1===q){c=a=>t.target-Math.exp(-r*a)*(t.delta+(t.velocity+r*t.delta)*a);let a={C:0};e=()=>{a.C=t.velocity+r*t.delta},d=b=>Math.exp(-r*b)*(r*a.C*b-t.velocity)}else{let a=r*Math.sqrt(q*q-1),b=s-a,f=s+a,g=o?1/0:300/a,h=(a,b)=>Math.exp(b>g?-a*g-s*(b-g):-a*b),i={S:0,F:0};e=()=>{let b=(t.velocity+s*t.delta)/a;i.S=(t.delta+b)/2,i.F=(t.delta-b)/2},c=a=>t.target-i.S*h(b,a)-i.F*h(f,a),d=a=>b*i.S*h(b,a)+f*i.F*h(f,a)}e();let v=n&&m||null,w={calculatedDuration:v,retarget:(a,b)=>{t.target=a[a.length-1],t.delta=t.target-a[0],t.velocity=p(b),f.restSpeed&&f.restDelta||u(),w.calculatedDuration=v,i.done=!1,e()},velocity:a=>bd(d(a)),next:a=>{let b=c(a);return n?i.done=a>=m:i.done=Math.abs(bd(d(a)))<=t.restSpeed&&Math.abs(t.target-b)<=t.restDelta,i.value=i.done?t.target:b,i},toString:()=>{let a=Math.min(c1(w),2e4),b=bv(b=>w.next(a*b).value,a,30);return a+"ms "+b},toTransition:()=>{}};return w}function dd({keyframes:a,velocity:b=0,power:c=.8,timeConstant:d=325,bounceDamping:e=10,bounceStiffness:f=500,modifyTarget:g,min:h,max:i,restDelta:j=.5,restSpeed:k}){let l,m,n=a[0],o={done:!1,value:n},p=c*b,q=n+p,r=void 0===g?q:g(q);r!==q&&(p=r-n);let s=a=>-p*Math.exp(-a/d),t=a=>{let b=s(a);o.done=Math.abs(b)<=j,o.value=o.done?r:r+b},u=a=>{let b;if((b=o.value)<h||b>i){var c;l=a,m=dc({keyframes:[o.value,(c=o.value,void 0===h?i:void 0===i||Math.abs(h-c)<Math.abs(i-c)?h:i)],velocity:-s(a)/d*1e3,damping:e,stiffness:f,restDelta:j,restSpeed:k})}};return u(0),{calculatedDuration:null,next:a=>{let b=!1;return(m||void 0!==l||(b=!0,t(a),u(a)),void 0!==l&&a>=l)?m.next(a-l):(b||t(a),o)}}}dc.applyToOptions=a=>{let b=function(a,b=100,c){let d=c({...a,keyframes:[0,b]}),e=Math.min(c1(d),2e4);return{type:"keyframes",ease:a=>d.next(e*a).value/b,duration:e/1e3}}(a,100,dc);return a.ease=b.ease,a.duration=bd(b.duration),a.type="keyframes",a};let de=(a,b,c)=>(((1-3*c+3*b)*a+(3*c-6*b))*a+3*b)*a;function df(a,b,c,d){return a===b&&c===d?A:e=>0===e||1===e?e:de(function(a,b,c,d,e){let f,g,h=0;do(f=de(g=b+(c-b)/2,d,e)-a)>0?c=g:b=g;while(Math.abs(f)>1e-7&&++h<12);return g}(e,0,1,a,c),b,d)}let dg=df(.42,0,1,1),dh=df(0,0,.58,1),di=df(.42,0,.58,1),dj=a=>b=>b<=.5?a(2*b)/2:(2-a(2*(1-b)))/2,dk=a=>b=>1-a(1-b),dl=df(.33,1.53,.69,.99),dm=dk(dl),dn=dj(dm),dp=a=>a>=1?1:(a*=2)<1?.5*dm(a):.5*(2-Math.pow(2,-10*(a-1))),dq=a=>1-Math.sin(Math.acos(a)),dr=dk(dq),ds=dj(dq),dt={linear:A,easeIn:dg,easeInOut:di,easeOut:dh,circIn:dq,circInOut:ds,circOut:dr,backIn:dm,backInOut:dn,backOut:dl,anticipate:dp},du=a=>{if(bt(a)){aG(a.length);let[b,c,d,e]=a;return df(b,c,d,e)}return"string"==typeof a?(aG(dt[a],`Invalid easing type '${a}'`),dt[a]):a},dv=(a,b,c)=>{let d=b-a;return d?(c-a)/d:1};function dw({duration:a=300,keyframes:b,times:c,ease:d="easeInOut"}){var e;let f,g=Array.isArray(d)&&"number"!=typeof d[0]?d.map(du):du(d)||di,h={done:!1,value:b[0]};if(2===b.length&&!Array.isArray(g)&&(!c||2!==c.length||0===c[0]&&1===c[1])){let[c,d]=b,e=c===d?void 0:(B.mix||c_)(c,d);return{calculatedDuration:a,next:b=>(h.value=e?e(g(a>0?N(0,1,b/a):1)):d,h.done=b>=a,h)}}let i=function(a,b,{clamp:c=!0,ease:d,mixer:e}={}){let f=a.length;if(aG(b.length),1===f)return()=>b[0];if(2===f&&b[0]===b[1])return()=>b[1];let g=a[0]===a[1];a[0]>a[f-1]&&(a=[...a].reverse(),b=[...b].reverse());let h=function(a,b,c){let d=[],e=c||B.mix||c_,f=a.length-1;for(let c=0;c<f;c++){let f=e(a[c],a[c+1]);b&&(f=cN(Array.isArray(b)?b[c]||A:b,f)),d.push(f)}return d}(b,d,e),i=h.length,j=c=>{if(g&&c<a[0])return b[0];let d=0;if(i>1)for(;d<a.length-2&&!(c<a[d+1]);d++);let e=dv(a[d],a[d+1],c);return h[d](e)};return c?b=>j(N(a[0],a[f-1],b)):j}((e=c&&c.length===b.length?c:(!function(a,b){let c=a[a.length-1];for(let d=1;d<=b;d++){let e=dv(0,b,d);a.push(b9(c,1,e))}}(f=[0],b.length-1),f),e.map(b=>b*a)),b,{ease:Array.isArray(g)?g:b.map(()=>g||di).splice(0,b.length-1)});return{calculatedDuration:a,next:b=>(h.value=i(b),h.done=b>=a,h)}}let dx={decay:dd,inertia:dd,tween:dw,keyframes:dw,spring:dc};function dy(a){"string"==typeof a.type&&(a.type=dx[a.type])}let dz=a=>a/100;class dA extends bo{constructor(a){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:a}=this.options;a&&a.updatedAt!==bq.now()&&this.tick(bq.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=a,this.initAnimation(),this.play(),!1===a.autoplay&&this.pause(),bs(this,this.options)}initAnimation(){let{options:a}=this;dy(a);let{type:b=dw,repeat:c=0,repeatDelay:d=0,repeatType:e,velocity:f=0}=a,{keyframes:g}=a,h=b||dw;h!==dw&&"number"!=typeof g[0]&&(this.mixKeyframes=cN(dz,c_(g[0],g[1])),g=[0,100]);let i=h(g===a.keyframes?a:{...a,keyframes:g});"mirror"===e&&(this.mirroredGenerator=h({...a,keyframes:[...g].reverse(),velocity:-f})),null===i.calculatedDuration&&(i.calculatedDuration=c1(i));let{calculatedDuration:j}=i;this.calculatedDuration=j,this.resolvedDuration=j+d,this.totalDuration=this.resolvedDuration*(c+1)-d,this.generator=i}updateTime(a){let b=Math.round(a-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=b}tick(a,b=!1){let c,{generator:d,totalDuration:e,mixKeyframes:f,mirroredGenerator:g,resolvedDuration:h,calculatedDuration:i}=this;if(null===this.startTime)return d.next(0);let{delay:j=0,keyframes:k,repeat:l,repeatType:m,repeatDelay:n,type:o,onUpdate:p,finalKeyframe:q}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-e/this.speed,this.startTime)),b?this.currentTime=a:this.updateTime(a);let r=this.currentTime-j*(this.playbackSpeed>=0?1:-1),s=this.playbackSpeed>=0?r<0:r>e;this.currentTime=Math.max(r,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=e);let t=this.currentTime,u=d;if(l){let a=Math.min(this.currentTime,e)/h,b=Math.floor(a),c=a%1;!c&&a>=1&&(c=1),1===c&&b--,(b=Math.min(b,l+1))%2&&("reverse"===m?(c=1-c,n&&(c-=n/h)):"mirror"===m&&(u=g)),t=N(0,1,c)*h}s?(this.delayState.value=k[0],c=this.delayState):c=u.next(t),f&&!s&&(c.value=f(c.value));let{done:v}=c;s||null===i||(v=this.playbackSpeed>=0?this.currentTime>=e:this.currentTime<=0);let w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&v);return w&&o!==dd&&(c.value=bn(k,this.options,q,this.speed)),p&&p(c.value),w&&this.finish(),c}then(a,b){return this.finished.then(a,b)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:a=0}=this.options||{};return this.duration+a/1e3}get time(){return this.currentTime/1e3}set time(a){a=bd(a),this.currentTime=a,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=a,this.tick(a))}getGeneratorVelocity(){return function(a,b,c=0){var d,e;let f;return b<=0?c:a.velocity?a.velocity(b):(d=b=>a.next(b).value,e=a.next(b).value,bC(e-d(f=Math.max(b-5,0)),b-f))}(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(a){let b=this.playbackSpeed!==a;b&&this.driver&&this.updateTime(bq.now()),this.playbackSpeed=a,b&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:a=c0,startTime:b}=this.options;this.driver||(this.driver=a(a=>this.tick(a))),this.options.onPlay?.();let c=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=c):null!==this.holdTime?this.startTime=c-this.holdTime:this.startTime||(this.startTime=b??c),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(bq.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(a){return this.startTime=0,this.tick(a,!0)}attachTimeline(a){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),a.observe(this)}}let dB={anticipate:dp,backInOut:dn,circInOut:ds};class dC extends bz{constructor(a){!function(a){"string"==typeof a.ease&&a.ease in dB&&(a.ease=dB[a.ease])}(a),dy(a),super(a),void 0!==a.startTime&&!1!==a.autoplay&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){let{motionValue:b,onUpdate:c,onComplete:d,element:e,...f}=this.options;if(!b)return;if(void 0!==a)return void b.set(a);let g=new dA({...f,autoplay:!1}),h=Math.max(10,bq.now()-this.startTime),i=N(0,10,h-10),j=g.sample(h).value,{name:k}=this.options;e&&k&&bh(e,k,j),b.setWithVelocity(g.sample(Math.max(0,h-i)).value,j,i),g.stop()}}let dD=(a,b)=>"zIndex"!==b&&!!("number"==typeof a||Array.isArray(a)||"string"==typeof a&&(an.test(a)||"0"===a)&&!a.startsWith("url("));function dE(a){a.duration=0,a.type="keyframes"}let dF=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,dG=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),dH=bi(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class dI extends bo{constructor(a){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=bq.now();const{keyframes:b,name:c,motionValue:d,element:e}=a;a.autoplay??(a.autoplay=!0),a.delay??(a.delay=0),a.type??(a.type="keyframes"),a.repeat??(a.repeat=0),a.repeatDelay??(a.repeatDelay=0),a.repeatType??(a.repeatType="loop");const f=e?.KeyframeResolver||ba;this.keyframeResolver=new f(b,(b,c,d)=>this.onKeyframesResolved(b,c,a,!d),c,d,e),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(a,b,c,d){let e;this.keyframeResolver=void 0;let{name:f,type:g,velocity:h,delay:i,isHandoff:j,onUpdate:k}=c;this.resolvedAt=bq.now();let l=!0;!function(a,b,c,d){let e=a[0];if(null===e)return!1;if("display"===b||"visibility"===b)return!0;let f=a[a.length-1],g=dD(e,b),h=dD(f,b);return g&&h?function(a){let b=a[0];if(1===a.length)return!0;for(let c=0;c<a.length;c++)if(a[c]!==b)return!0}(a)||("spring"===c||by(c))&&d:(g!==h&&aF(`You are trying to animate ${b} from "${e}" to "${f}". "${g?f:e}" is not an animatable value.`),!1)}(a,f,g,h)&&(l=!1,(B.instantAnimations||!i)&&k?.(bn(a,c,b)),a[0]=a[a.length-1],dE(c),c.repeat=0);let m=d?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,{onComplete:n}=c;if(c.startTime??(c.startTime=m),c.finalKeyframe=b,c.keyframes=a,c.onComplete=()=>{n?.(),this.notifyFinished()},l&&!j&&function(a){let{motionValue:b,name:c,repeatDelay:d,repeatType:e,damping:f,type:g,keyframes:h}=a;if(!c||!(bA.has(c)||dG.has(c)))return!1;let i=b?.owner?.current;if(!(i instanceof HTMLElement)&&!(i instanceof SVGElement))return!1;let{onUpdate:j,transformTemplate:k}=b.owner.getProps();return dH()&&(bA.has(c)||dG.has(c)&&function(a){for(let b=0;b<a.length;b++)if("string"==typeof a[b]&&dF.test(a[b]))return!0;return!1}(h))&&("transform"!==c||!k)&&!j&&!d&&"mirror"!==e&&0!==f&&"inertia"!==g}(c)){c.element=c.motionValue?.owner?.current;try{e=new dC(c)}catch{e=new dA(c)}}else e=new dA(c);this.pendingTimeline&&(this.stopTimeline=e.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=e}get finished(){return this._animation?this._animation.finished:super.finished}then(a,b){return this.finished.finally(a).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),a7=!0,a9(),a8(),a7=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(a){this.animation.time=a}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(a){this.animation.speed=a}get startTime(){return this.animation.startTime}attachTimeline(a){return this._animation?this.stopTimeline=this.animation.attachTimeline(a):this.pendingTimeline=a,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let dJ={type:"spring",stiffness:500,damping:25,restSpeed:10},dK={type:"keyframes",duration:.8},dL={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dM=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),dN=(a,b,c,d={},e,f)=>g=>{let h=cJ(d,a)||{},i=h.delay||d.delay||0,{elapsed:j=0}=d;j-=bd(i);let k={keyframes:Array.isArray(c)?c:[null,c],ease:"easeOut",velocity:b.getVelocity(),...h,delay:-j,onUpdate:a=>{b.set(a),h.onUpdate&&h.onUpdate(a)},onComplete:()=>{g(),h.onComplete&&h.onComplete()},name:a,motionValue:b,element:f?void 0:e};!function(a){for(let b in a)if(!dM.has(b))return!0;return!1}(h)&&Object.assign(k,((a,{keyframes:b})=>b.length>2?dK:M.has(a)?a.startsWith("scale")?{type:"spring",stiffness:550,damping:0===b[1]?2*Math.sqrt(550):30,restSpeed:10}:dJ:dL)(a,k)),k.duration&&(k.duration=bd(k.duration)),k.repeatDelay&&(k.repeatDelay=bd(k.repeatDelay)),void 0!==k.from&&(k.keyframes[0]=k.from);let l=!1;if(!1!==k.type&&(0!==k.duration||k.repeatDelay)||(dE(k),0===k.delay&&(l=!0)),(B.instantAnimations||B.skipAnimations||e?.shouldSkipAnimations||h.skipAnimations)&&(l=!0,dE(k),k.delay=0),k.allowFlatten=!h.type&&!h.ease,l&&!f&&void 0!==b.get()){let a=bn(k.keyframes,h);if(void 0!==a)return void F.update(()=>{k.onUpdate(a),k.onComplete()})}return h.isSync?new dA(k):new dI(k)},dO="u">typeof window;function dP(a,b,{delay:c=0,transitionOverride:d,type:e}={}){let{transition:f,transitionEnd:g,...h}=b,i=a.getDefaultTransition();f=f?cI(f,i):i;let j=f?.reduceMotion,k=f?.skipAnimations;d&&(f=d);let l=[],m=e&&a.animationState&&a.animationState.getState()[e],n=f?.path;for(let b in n&&n.animateVisualElement(a,h,f,c,l),h){let d=a.getValue(b,a.latestValues[b]??null),e=h[b];if(void 0===e||m&&function({protectedKeys:a,needsAnimating:b},c){let d=a.hasOwnProperty(c)&&!0!==b[c];return b[c]=!1,d}(m,b))continue;let g={delay:c,...cJ(f||{},b)};k&&(g.skipAnimations=!0);let i=d.get();if(void 0!==i&&!d.isAnimating()&&!Array.isArray(e)&&e===i&&!g.velocity){F.update(()=>d.set(e));continue}let n=!1;if(dO&&window.MotionHandoffAnimation){let c=a.props[cM];if(c){let a=window.MotionHandoffAnimation(c,b,F);null!==a&&(g.startTime=a,n=!0)}}cL(a,b);let o=j??a.shouldReduceMotion;d.start(dN(b,d,e,o&&aC.has(b)?{type:!1}:g,a,n));let p=d.animation;p&&l.push(p)}if(g){let b=()=>F.update(()=>{g&&function(a,b){let{transitionEnd:c={},transition:d={},...e}=cH(a,b)||{};for(let b in e={...e,...c}){var f;let c=cK(f=e[b])?f[f.length-1]||0:f;a.hasValue(b)?a.getValue(b).set(c):a.addValue(b,bF(c))}}(a,g)});l.length?Promise.all(l).then(b):b()}return l}function dQ(a,b,c,d=0,e=1){let f=Array.from(a).sort((a,b)=>a.sortNodePosition(b)).indexOf(b),g=a.size,h=(g-1)*d;return"function"==typeof c?c(f,g):1===e?f*d:h-f*d}function dR(a,b,c={}){let d=cH(a,b,"exit"===c.type?a.presenceContext?.custom:void 0),{transition:e=a.getDefaultTransition()||{}}=d||{};c.transitionOverride&&(e=c.transitionOverride);let f=d?()=>Promise.all(dP(a,d,c)):()=>Promise.resolve(),g=a.variantChildren&&a.variantChildren.size?(d=0)=>{let{delayChildren:f=0,staggerChildren:g,staggerDirection:h}=e;return function(a,b,c=0,d=0,e=0,f=1,g){let h=[];for(let i of a.variantChildren)i.notify("AnimationStart",b),h.push(dR(i,b,{...g,delay:c+("function"==typeof d?0:d)+dQ(a.variantChildren,i,d,e,f)}).then(()=>i.notify("AnimationComplete",b)));return Promise.all(h)}(a,b,d,f,g,h,c)}:()=>Promise.resolve(),{when:h}=e;if(!h)return Promise.all([f(),g(c.delay)]);{let[a,b]="beforeChildren"===h?[f,g]:[g,f];return a().then(()=>b())}}let dS=bK.length;function dT(a,b){if(!Array.isArray(b))return!1;let c=b.length;if(c!==a.length)return!1;for(let d=0;d<c;d++)if(b[d]!==a[d])return!1;return!0}let dU=[...bJ].reverse(),dV=bJ.length;function dW(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function dX(){return{animate:dW(!0),whileInView:dW(),whileHover:dW(),whileTap:dW(),whileDrag:dW(),whileFocus:dW(),exit:dW()}}class dY extends cG{constructor(a){super(a),a.animationState||(a.animationState=function(a){let b=b=>Promise.all(b.map(({animation:b,options:c})=>(function(a,b,c={}){let d;if(a.notify("AnimationStart",b),Array.isArray(b))d=Promise.all(b.map(b=>dR(a,b,c)));else if("string"==typeof b)d=dR(a,b,c);else{let e="function"==typeof b?cH(a,b,c.custom):b;d=Promise.all(dP(a,e,c))}return d.then(()=>{a.notify("AnimationComplete",b)})})(a,b,c))),c=dX(),d=!0,e=!1,f=b=>(c,d)=>{let e=cH(a,d,"exit"===b?a.presenceContext?.custom:void 0);if(e){let{transition:a,transitionEnd:b,...d}=e;c={...c,...d,...b}}return c};function g(g){let{props:h}=a,i=function a(b){if(!b)return;if(!b.isControllingVariants){let c=b.parent&&a(b.parent)||{};return void 0!==b.props.initial&&(c.initial=b.props.initial),c}let c={};for(let a=0;a<dS;a++){let d=bK[a],e=b.props[d];(bI(e)||!1===e)&&(c[d]=e)}return c}(a.parent)||{},j=[],k=new Set,l={},m=1/0;for(let b=0;b<dV;b++){var n,o;let p=dU[b],q=c[p],r=void 0!==h[p]?h[p]:i[p],s=bI(r),t=p===g?q.isActive:null;!1===t&&(m=b);let u=r===i[p]&&r!==h[p]&&s;if(u&&(d||e)&&a.manuallyAnimateOnMount&&(u=!1),q.protectedKeys={...l},!q.isActive&&null===t||!r&&!q.prevProp||bH(r)||"boolean"==typeof r)continue;if("exit"===p&&q.isActive&&!0!==t){q.prevResolvedValues&&(l={...l,...q.prevResolvedValues});continue}let v=(n=q.prevProp,"string"==typeof(o=r)?o!==n:!!Array.isArray(o)&&!dT(o,n)),w=v||p===g&&q.isActive&&!u&&s||b>m&&s,x=!1,y=Array.isArray(r)?r:[r],z=y.reduce(f(p),{});!1===t&&(z={});let{prevResolvedValues:A={}}=q,B={...A,...z},C=b=>{w=!0,k.has(b)&&(x=!0,k.delete(b)),q.needsAnimating[b]=!0;let c=a.getValue(b);c&&(c.liveStyle=!1)};for(let a in B){let b=z[a],c=A[a];if(!l.hasOwnProperty(a))(cK(b)&&cK(c)?!dT(b,c)||v:b!==c)?null!=b?C(a):k.add(a):void 0!==b&&k.has(a)?C(a):q.protectedKeys[a]=!0}q.prevProp=r,q.prevResolvedValues=z,q.isActive&&(l={...l,...z}),(d||e)&&a.blockInitialAnimation&&(w=!1);let D=u&&v,E=!D||x;w&&E&&j.push(...y.map(b=>{let c={type:p};if("string"==typeof b&&(d||e)&&!D&&a.manuallyAnimateOnMount&&a.parent){let{parent:d}=a,e=cH(d,b);if(d.enteringChildren&&e){let{delayChildren:b}=e.transition||{};c.delay=dQ(d.enteringChildren,a,b)}}return{animation:b,options:c}}))}if(k.size){let b={};if("boolean"!=typeof h.initial){let c=cH(a,Array.isArray(h.initial)?h.initial[0]:h.initial);c&&c.transition&&(b.transition=c.transition)}k.forEach(c=>{let d=a.getBaseTarget(c),e=a.getValue(c);e&&(e.liveStyle=!0),b[c]=d??null}),j.push({animation:b})}let p=!!j.length;return d&&(!1===h.initial||h.initial===h.animate)&&!a.manuallyAnimateOnMount&&(p=!1),d=!1,e=!1,p?b(j):Promise.resolve()}return{animateChanges:g,setActive:function(b,d){if(c[b].isActive===d)return Promise.resolve();a.variantChildren?.forEach(a=>a.animationState?.setActive(b,d)),c[b].isActive=d;let e=g(b);for(let a in c)c[a].protectedKeys={};return e},setAnimateFunction:function(c){b=c(a)},getState:()=>c,reset:()=>{c=dX(),e=!0}}}(a))}updateAnimationControlsSubscription(){let{animate:a}=this.node.getProps();bH(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:a}=this.node.getProps(),{animate:b}=this.node.prevProps||{};a!==b&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let dZ=0;class d$ extends cG{constructor(){super(...arguments),this.id=dZ++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:a,onExitComplete:b}=this.node.presenceContext,{isPresent:c}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===c)return;if(a&&!1===c){if(this.isExitComplete){let{initial:a,custom:b}=this.node.getProps();if("string"==typeof a||"object"==typeof a&&null!==a&&!Array.isArray(a)){let c=cH(this.node,a,b);if(c){let{transition:a,transitionEnd:b,...d}=c;for(let a in d)this.node.getValue(a)?.jump(d[a])}}this.node.blockInitialAnimation=!1,this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1,this.exitAnimation=void 0;return}let d=this.exitAnimation=this.node.animationState.setActive("exit",!a);b&&!a&&d.then(()=>{this.exitAnimation===d&&(this.isExitComplete=!0,b(this.id))})}mount(){let{register:a,onExitComplete:b}=this.node.presenceContext||{};b&&b(this.id),a&&(this.unmount=a(this.id))}unmount(){}}let d_={x:!1,y:!1};function d0(a){return[a("x"),a("y")]}function d1(a){return a.max-a.min}function d2(a,b,c,d=.5){a.origin=d,a.originPoint=b9(b.min,b.max,a.origin),a.scale=d1(c)/d1(b),a.translate=b9(c.min,c.max,a.origin)-a.originPoint,(a.scale>=.9999&&a.scale<=1.0001||isNaN(a.scale))&&(a.scale=1),(a.translate>=-.01&&a.translate<=.01||isNaN(a.translate))&&(a.translate=0)}function d3(a,b,c,d){d2(a.x,b.x,c.x,d?d.originX:void 0),d2(a.y,b.y,c.y,d?d.originY:void 0)}function d4(a,b,c,d=0){a.min=(d?b9(c.min,c.max,d):c.min)+b.min,a.max=a.min+d1(b)}function d5(a,b,c,d=0){let e=d?b9(c.min,c.max,d):c.min;a.min=b.min-e,a.max=a.min+d1(b)}function d6(a,b,c,d){d5(a.x,b.x,c.x,d?.x),d5(a.y,b.y,c.y,d?.y)}let d7=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),d8=new Set(["INPUT","SELECT","TEXTAREA"]);function d9(a,b,c,d={passive:!0}){return a.addEventListener(b,c,d),()=>a.removeEventListener(b,c,d)}let ea=a=>"object"==typeof a&&null!==a;function eb(a){return ea(a)&&"ownerSVGElement"in a}function ec(a,b,c){if(null==a)return[];if(a instanceof EventTarget)return[a];if("string"==typeof a){let d=document;b&&(d=b.current);let e=c?.[a]??d.querySelectorAll(a);return e?Array.from(e):[]}return Array.from(a).filter(a=>null!=a)}let ed=new WeakMap,ee=(a,b,c)=>(d,e)=>e&&e[0]?e[0][a+"Size"]:eb(d)&&"getBBox"in d?d.getBBox()[b]:d[c],ef=ee("inline","width","offsetWidth"),eg=ee("block","height","offsetHeight");function eh({target:a,borderBoxSize:b}){ed.get(a)?.forEach(c=>{c(a,{get width(){return ef(a,b)},get height(){return eg(a,b)}})})}function ei(a){a.forEach(eh)}let ej=new Set;function ek(a,b){let c;return"function"==typeof a?(ej.add(a),f||(f=()=>{let a={get width(){return window.innerWidth},get height(){return window.innerHeight}};ej.forEach(b=>b(a))},window.addEventListener("resize",f)),()=>{ej.delete(a),ej.size||"function"!=typeof f||(window.removeEventListener("resize",f),f=void 0)}):(!e&&"u">typeof ResizeObserver&&(e=new ResizeObserver(ei)),(c=ec(a)).forEach(a=>{let c=ed.get(a);c||(c=new Set,ed.set(a,c)),c.add(b),e?.observe(a)}),()=>{c.forEach(a=>{let c=ed.get(a);c?.delete(b),c?.size||e?.unobserve(a)})})}let el=a=>"mouse"===a.pointerType?"number"!=typeof a.button||a.button<=0:!1!==a.isPrimary;function em(a){return{point:{x:a.pageX,y:a.pageY}}}function en(a,b,c,d){return d9(a,b,a=>el(a)&&c(a,em(a)),d)}let eo=({current:a})=>a?a.ownerDocument.defaultView:null;function ep(a){return a&&"object"==typeof a&&Object.prototype.hasOwnProperty.call(a,"current")}let eq=(a,b)=>Math.abs(a-b),er=new Set(["auto","scroll"]);class es{constructor(a,b,{transformPagePoint:c,contextWindow:d=window,dragSnapToOrigin:e=!1,distanceThreshold:f=3,element:g}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=a=>{this.handleScroll(a.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var a,b;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=et(this.lastRawMoveEventInfo,this.transformPagePoint));let c=ev(this.lastMoveEventInfo,this.history),d=null!==this.startEvent,e=(a=c.offset,b={x:0,y:0},Math.sqrt(eq(a.x,b.x)**2+eq(a.y,b.y)**2)>=this.distanceThreshold);if(!d&&!e)return;let{point:f}=c;this.history.push({...f,timestamp:bq.now()});let{onStart:g,onMove:h}=this.handlers;d||(g&&g(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,c)},this.handlePointerMove=(a,b)=>{this.lastMoveEvent=a,this.lastRawMoveEventInfo=b,this.lastMoveEventInfo=et(b,this.transformPagePoint),this.hasPendingMove=!0,F.update(this.updatePoint,!0)},this.handlePointerUp=(a,b)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:c,onSessionEnd:d,resumeAnimation:e}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&e&&e(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let f=ev("pointercancel"===a.type?this.lastMoveEventInfo:et(b,this.transformPagePoint),this.history);this.startEvent&&c&&c(a,f),d&&d(a,f)},!el(a))return;this.dragSnapToOrigin=e,this.handlers=b,this.transformPagePoint=c,this.distanceThreshold=f,this.contextWindow=d||window;const h=et(em(a),this.transformPagePoint),{point:i}=h,{timestamp:j}=E;this.history=[{...i,timestamp:j}];const{onSessionStart:k}=b;k&&k(a,ev(h,this.history));const l={passive:!0,capture:!0};this.removeListeners=cN(en(this.contextWindow,"pointermove",this.handlePointerMove,l),en(this.contextWindow,"pointerup",this.handlePointerUp,l),en(this.contextWindow,"pointercancel",this.handlePointerUp,l)),g&&this.startScrollTracking(g)}startScrollTracking(a){let b=a.parentElement;for(;b;){let a=getComputedStyle(b);(er.has(a.overflowX)||er.has(a.overflowY))&&this.scrollPositions.set(b,{x:b.scrollLeft,y:b.scrollTop}),b=b.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(a){let b=this.scrollPositions.get(a);if(!b)return;let c=a===window,d=c?{x:window.scrollX,y:window.scrollY}:{x:a.scrollLeft,y:a.scrollTop},e={x:d.x-b.x,y:d.y-b.y};(0!==e.x||0!==e.y)&&(c?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=e.x,this.lastMoveEventInfo.point.y+=e.y):this.history.length>0&&(this.history[0].x-=e.x,this.history[0].y-=e.y),this.scrollPositions.set(a,d),F.update(this.updatePoint,!0))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),G(this.updatePoint)}}function et(a,b){return b?{point:b(a.point)}:a}function eu(a,b){return{x:a.x-b.x,y:a.y-b.y}}function ev({point:a},b){return{point:a,delta:eu(a,ew(b)),offset:eu(a,b[0]),velocity:function(a){if(a.length<2)return{x:0,y:0};let b=a.length-1,c=null,d=ew(a);for(;b>=0&&(c=a[b],!(d.timestamp-c.timestamp>bd(.1)));)b--;if(!c)return{x:0,y:0};c===a[0]&&a.length>2&&d.timestamp-c.timestamp>2*bd(.1)&&(c=a[1]);let e=(d.timestamp-c.timestamp)/1e3;if(0===e)return{x:0,y:0};let f={x:(d.x-c.x)/e,y:(d.y-c.y)/e};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}(b)}}function ew(a){return a[a.length-1]}function ex(a,b,c){return{min:void 0!==b?a.min+b:void 0,max:void 0!==c?a.max+c-(a.max-a.min):void 0}}function ey(a,b){let c=b.min-a.min,d=b.max-a.max;return b.max-b.min<a.max-a.min&&([c,d]=[d,c]),{min:c,max:d}}function ez(a,b,c){return{min:eA(a,b),max:eA(a,c)}}function eA(a,b){return"number"==typeof a?a:a[b]||0}let eB=new WeakMap;class eC{constructor(a){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=aA(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=a}start(a,{snapToCursor:b=!1,distanceThreshold:c}={}){let{presenceContext:d}=this.visualElement;if(d&&!1===d.isPresent)return;let e=a=>{b&&this.snapToCursor(a),this.stopAnimation()},f=(a,b)=>{let{drag:c,dragPropagation:d,onDragStart:e}=this.getProps();if(c&&!d&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(a){if("x"===a||"y"===a)if(d_[a])return null;else return d_[a]=!0,()=>{d_[a]=!1};return d_.x||d_.y?null:(d_.x=d_.y=!0,()=>{d_.x=d_.y=!1})}(c),!this.openDragLock))return;this.latestPointerEvent=a,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),d0(a=>{let b=this.getAxisMotionValue(a).get()||0;if(_.test(b)){let{projection:c}=this.visualElement;if(c&&c.layout){let d=c.layout.layoutBox[a];d&&(b=d1(d)*(parseFloat(b)/100))}}this.originPoint[a]=b}),e&&F.update(()=>e(a,b),!1,!0),cL(this.visualElement,"transform");let{animationState:f}=this.visualElement;f&&f.setActive("whileDrag",!0)},g=(a,b)=>{this.latestPointerEvent=a,this.latestPanInfo=b;let{dragPropagation:c,dragDirectionLock:d,onDirectionLock:e,onDrag:f}=this.getProps();if(!c&&!this.openDragLock)return;let{offset:g}=b;if(d&&null===this.currentDirection){this.currentDirection=function(a,b=10){let c=null;return Math.abs(a.y)>b?c="y":Math.abs(a.x)>b&&(c="x"),c}(g),null!==this.currentDirection&&e&&e(this.currentDirection);return}this.updateAxis("x",b.point,g),this.updateAxis("y",b.point,g),this.visualElement.render(),f&&F.update(()=>f(a,b),!1,!0)},h=(a,b)=>{this.latestPointerEvent=a,this.latestPanInfo=b,this.stop(a,b),this.latestPointerEvent=null,this.latestPanInfo=null},i=()=>{let{dragSnapToOrigin:a}=this.getProps();(a||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:j}=this.getProps();this.panSession=new es(a,{onSessionStart:e,onStart:f,onMove:g,onSessionEnd:h,resumeAnimation:i},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:j,distanceThreshold:c,contextWindow:eo(this.visualElement),element:this.visualElement.current})}stop(a,b){let c=a||this.latestPointerEvent,d=b||this.latestPanInfo,e=this.isDragging;if(this.cancel(),!e||!d||!c)return;let{velocity:f}=d;this.startAnimation(f);let{onDragEnd:g}=this.getProps();g&&F.postRender(()=>g(c,d))}cancel(){this.isDragging=!1;let{projection:a,animationState:b}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:c}=this.getProps();!c&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),b&&b.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(a,b,c){let{drag:d}=this.getProps();if(!c||!eE(a,d,this.currentDirection))return;let e=this.getAxisMotionValue(a),f=this.originPoint[a]+c[a];this.constraints&&this.constraints[a]&&(f=function(a,{min:b,max:c},d){return void 0!==b&&a<b?a=d?b9(b,a,d.min):Math.max(a,b):void 0!==c&&a>c&&(a=d?b9(c,a,d.max):Math.min(a,c)),a}(f,this.constraints[a],this.elastic[a])),e.set(f)}resolveConstraints(){let{dragConstraints:a,dragElastic:b}=this.getProps(),c=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,d=this.constraints;a&&ep(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&c?this.constraints=function(a,{top:b,left:c,bottom:d,right:e}){return{x:ex(a.x,c,e),y:ex(a.y,b,d)}}(c.layoutBox,a):this.constraints=!1,this.elastic=function(a=.35){return!1===a?a=0:!0===a&&(a=.35),{x:ez(a,"left","right"),y:ez(a,"top","bottom")}}(b),d!==this.constraints&&!ep(a)&&c&&this.constraints&&!this.hasMutatedConstraints&&d0(a=>{var b,d;let e;!1!==this.constraints&&this.getAxisMotionValue(a)&&(this.constraints[a]=(b=c.layoutBox[a],d=this.constraints[a],e={},void 0!==d.min&&(e.min=d.min-b.min),void 0!==d.max&&(e.max=d.max-b.min),e))})}resolveRefConstraints(){var a;let{dragConstraints:b,onMeasureDragConstraints:c}=this.getProps();if(!b||!ep(b))return!1;let d=b.current;aG();let{projection:e}=this.visualElement;if(!e||!e.layout)return!1;e.root&&(e.root.scroll=void 0,e.root.updateScroll());let f=function(a,b,c){let d=cl(a,c),{scroll:e}=b;return e&&(ch(d.x,e.offset.x),ch(d.y,e.offset.y)),d}(d,e.root,this.visualElement.getTransformPagePoint()),g=(a=e.layout.layoutBox,{x:ey(a.x,f.x),y:ey(a.y,f.y)});if(c){let a=c(function({x:a,y:b}){return{top:b.min,right:a.max,bottom:b.max,left:a.min}}(g));this.hasMutatedConstraints=!!a,a&&(g=b8(a))}return g}startAnimation(a){let{drag:b,dragMomentum:c,dragElastic:d,dragTransition:e,dragSnapToOrigin:f,onDragTransitionEnd:g}=this.getProps(),h=this.constraints||{};return Promise.all(d0(g=>{if(!eE(g,b,this.currentDirection))return;let i=h&&h[g]||{};(!0===f||f===g)&&(i={min:0,max:0});let j={type:"inertia",velocity:c?a[g]:0,bounceStiffness:d?200:1e6,bounceDamping:d?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...e,...i};return this.startAxisValueAnimation(g,j)})).then(g)}startAxisValueAnimation(a,b){let c=this.getAxisMotionValue(a);return cL(this.visualElement,a),c.start(dN(a,c,0,b,this.visualElement,!1))}stopAnimation(){d0(a=>this.getAxisMotionValue(a).stop())}getAxisMotionValue(a){let b=`_drag${a.toUpperCase()}`;return this.visualElement.getProps()[b]||this.visualElement.getValue(a,this.visualElement.latestValues[a]??0)}snapToCursor({clientX:a,clientY:b}){let{drag:c}=this.getProps(),d={x:a,y:b},e=this.visualElement.getTransformPagePoint()?.(d)||d,f=this.visualElement.measureViewportBox();d0(a=>{if(!eE(a,c,this.currentDirection))return;let b=this.getAxisMotionValue(a),{min:d,max:g}=f[a];b.set((b.get()||0)+e[a]-b9(d,g,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:a,dragConstraints:b}=this.getProps(),{projection:c}=this.visualElement;if(!ep(b)||!c||!this.constraints)return;this.stopAnimation();let d=this.constraints,e={x:0,y:0};d0(a=>{var b,c;let f,g,h,i=this.getAxisMotionValue(a).get();e[a]=(b={min:i,max:i},c=d[a],f=.5,g=d1(b),(h=d1(c))>g?f=dv(c.min,c.max-g,b.min):g>h&&(f=dv(b.min,b.max-h,c.min)),N(0,1,f))});let{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",c.root&&c.root.updateScroll(),c.updateLayout(),this.constraints=!1,this.resolveConstraints(),d0(b=>{let c=this.getAxisMotionValue(b);if(!eE(b,a,null)||!c.get())return;let{min:d,max:f}=this.constraints[b];c.set(b9(d,f,e[b]))}),this.visualElement.render()}addListeners(){let a;if(!this.visualElement.current)return;eB.set(this.visualElement,this);let b=this.visualElement.current,c=en(b,"pointerdown",a=>{let{drag:c,dragListener:d=!0}=this.getProps(),e=a.target,f=e!==b&&(d8.has(e.tagName)||!0===e.isContentEditable);c&&d&&!f&&this.start(a)}),d=()=>{var c,d,e;let f,g,{dragConstraints:h}=this.getProps();ep(h)&&h.current&&(this.constraints=this.resolveRefConstraints(),a||(c=b,d=h.current,f=ek(c,eD(e=()=>this.scalePositionWithinConstraints())),g=ek(d,eD(e)),a=()=>{f(),g()}))},{projection:e}=this.visualElement,f=e.addEventListener("measure",d);e&&!e.layout&&(e.root&&e.root.updateScroll(),e.updateLayout()),F.read(d);let g=d9(window,"resize",()=>this.scalePositionWithinConstraints()),h=e.addEventListener("didUpdate",({delta:a,hasLayoutChanged:b})=>{this.isDragging&&b&&(d0(b=>{let c=this.getAxisMotionValue(b);c&&(this.originPoint[b]+=a[b].translate,c.set(c.get()+a[b].translate))}),this.visualElement.render())});return()=>{g(),c(),f(),h&&h(),a&&a()}}getProps(){let a=this.visualElement.getProps(),{drag:b=!1,dragDirectionLock:c=!1,dragPropagation:d=!1,dragConstraints:e=!1,dragElastic:f=.35,dragMomentum:g=!0}=a;return{...a,drag:b,dragDirectionLock:c,dragPropagation:d,dragConstraints:e,dragElastic:f,dragMomentum:g}}}function eD(a){let b=!0;return()=>{if(b){b=!1;return}a()}}function eE(a,b,c){return(!0===b||b===a)&&(null===c||c===a)}class eF extends cG{constructor(a){super(a),this.removeGroupControls=A,this.removeListeners=A,this.controls=new eC(a)}mount(){let{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||A}update(){let{dragControls:a}=this.node.getProps(),{dragControls:b}=this.node.prevProps||{};a!==b&&(this.removeGroupControls(),a&&(this.removeGroupControls=a.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let eG=a=>(b,c)=>{a&&F.update(()=>a(b,c),!1,!0)};class eH extends cG{constructor(){super(...arguments),this.removePointerDownListener=A}onPointerDown(a){this.session=new es(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eo(this.node)})}createPanHandlers(){let{onPanSessionStart:a,onPanStart:b,onPan:c,onPanEnd:d}=this.node.getProps();return{onSessionStart:eG(a),onStart:eG(b),onMove:eG(c),onEnd:(a,b)=>{delete this.session,d&&F.postRender(()=>d(a,b))}}}mount(){this.removePointerDownListener=en(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let eI={hasAnimatedSinceResize:!0,hasEverUpdated:!1},eJ=(0,h.createContext)({}),eK=!1;class eL extends h.Component{componentDidMount(){let{visualElement:a,layoutGroup:b,switchLayoutGroup:c,layoutId:d}=this.props,{projection:e}=a;e&&(b.group&&b.group.add(e),c&&c.register&&d&&c.register(e),eK&&e.root.didUpdate(),e.addEventListener("animationComplete",()=>{this.safeToRemove()}),e.setOptions({...e.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),eI.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){let{layoutDependency:b,visualElement:c,drag:d,isPresent:e}=this.props,{projection:f}=c;return f&&(f.isPresent=e,a.layoutDependency!==b&&f.setOptions({...f.options,layoutDependency:b}),eK=!0,d||a.layoutDependency!==b||void 0===b||a.isPresent!==e?f.willUpdate():this.safeToRemove(),a.isPresent!==e&&(e?f.promote():f.relegate()||F.postRender(()=>{let a=f.getStack();a&&a.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:a,layoutAnchor:b}=this.props,{projection:c}=a;c&&(c.options.layoutAnchor=b,c.root.didUpdate(),bB.postRender(()=>{!c.currentAnimation&&c.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:a,layoutGroup:b,switchLayoutGroup:c}=this.props,{projection:d}=a;eK=!0,d&&(d.scheduleCheckAfterUnmount(),b&&b.group&&b.group.remove(d),c&&c.deregister&&c.deregister(d))}safeToRemove(){let{safeToRemove:a}=this.props;a&&a()}render(){return null}}function eM(a){let[b,c]=function(a=!0){let b=(0,h.useContext)(cy);if(null===b)return[!0,null];let{isPresent:c,onExitComplete:d,register:e}=b,f=(0,h.useId)(),g=(0,h.useCallback)(()=>a&&d&&d(f),[f,d,a]);return!c&&d?[!1,g]:[!0]}(),d=(0,h.useContext)(y);return(0,g.jsx)(eL,{...a,layoutGroup:d,switchLayoutGroup:(0,h.useContext)(eJ),isPresent:b,safeToRemove:c})}let eN=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],eO=a=>"number"==typeof a?a:parseFloat(a),eP=eN.length,eQ=a=>"number"==typeof a||aa.test(a);function eR(a,b){return void 0!==a[b]?a[b]:a.borderRadius}let eS=eU(0,.5,dr),eT=eU(.5,.95,A);function eU(a,b,c){return d=>d<a?0:d>b?1:c(dv(a,b,d))}function eV(a,b){a.min=b.min,a.max=b.max}function eW(a,b){eV(a.x,b.x),eV(a.y,b.y)}function eX(a,b){a.translate=b.translate,a.scale=b.scale,a.originPoint=b.originPoint,a.origin=b.origin}function eY(a,b,c,d,e){return a-=b,a=d+1/c*(a-d),void 0!==e&&(a=d+1/e*(a-d)),a}function eZ(a,b,[c,d,e],f,g){!function(a,b=0,c=1,d=.5,e,f=a,g=a){if(_.test(b)&&(b=parseFloat(b),b=b9(g.min,g.max,b/100)-g.min),"number"!=typeof b)return;let h=b9(f.min,f.max,d);a===f&&(h-=b),a.min=eY(a.min,b,c,h,e),a.max=eY(a.max,b,c,h,e)}(a,b[c],b[d],b[e],b.scale,f,g)}let e$=["x","scaleX","originX"],e_=["y","scaleY","originY"];function e0(a,b,c,d){eZ(a.x,b,e$,c?c.x:void 0,d?d.x:void 0),eZ(a.y,b,e_,c?c.y:void 0,d?d.y:void 0)}function e1(a){return 0===a.translate&&1===a.scale}function e2(a){return e1(a.x)&&e1(a.y)}function e3(a,b){return a.min===b.min&&a.max===b.max}function e4(a,b){return Math.round(a.min)===Math.round(b.min)&&Math.round(a.max)===Math.round(b.max)}function e5(a,b){return e4(a.x,b.x)&&e4(a.y,b.y)}function e6(a){return d1(a.x)/d1(a.y)}function e7(a,b){return a.translate===b.translate&&a.scale===b.scale&&a.originPoint===b.originPoint}class e8{constructor(){this.members=[]}add(a){be(this.members,a);for(let b=this.members.length-1;b>=0;b--){let c=this.members[b];if(c===a||c===this.lead||c===this.prevLead)continue;let d=c.instance;d&&!1!==d.isConnected||c.snapshot||(bf(this.members,c),c.unmount())}a.scheduleRender()}remove(a){if(bf(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){let a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(a){for(let b=this.members.indexOf(a)-1;b>=0;b--){let a=this.members[b];if(!1!==a.isPresent&&a.instance?.isConnected!==!1)return this.promote(a),!0}return!1}promote(a,b){let c=this.lead;if(a!==c&&(this.prevLead=c,this.lead=a,a.show(),c)){c.updateSnapshot(),a.scheduleRender();let{layoutDependency:d}=c.options,{layoutDependency:e}=a.options;(void 0===d||d!==e)&&(a.resumeFrom=c,b&&(c.preserveOpacity=!0),c.snapshot&&(a.snapshot=c.snapshot,a.snapshot.latestValues=c.animationValues||c.latestValues),a.root?.isUpdating&&(a.isLayoutDirty=!0)),!1===a.options.crossfade&&c.hide()}}exitAnimationComplete(){this.members.forEach(a=>{a.options.onExitComplete?.(),a.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(a=>a.instance&&a.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}function e9(a,b){return b.max===b.min?0:a/(b.max-b.min)*100}let fa={correct:(a,b)=>{if(!b.target)return a;if("string"==typeof a)if(!aa.test(a))return a;else a=parseFloat(a);let c=e9(a,b.target.x),d=e9(a,b.target.y);return`${c}% ${d}%`}},fb={borderRadius:{...fa,applyTo:[...eN]},borderTopLeftRadius:fa,borderTopRightRadius:fa,borderBottomLeftRadius:fa,borderBottomRightRadius:fa,boxShadow:{correct:(a,{treeScale:b,projectionDelta:c})=>{let d=an.parse(a);if(d.length>5)return a;let e=an.createTransformer(a),f=+("number"!=typeof d[0]),g=c.x.scale*b.x,h=c.y.scale*b.y;d[0+f]/=g,d[1+f]/=h;let i=b9(g,h,.5);return"number"==typeof d[2+f]&&(d[2+f]/=i),"number"==typeof d[3+f]&&(d[3+f]/=i),e(d)}}},fc=(a,b)=>a.depth-b.depth;class fd{constructor(){this.children=[],this.isDirty=!1}add(a){be(this.children,a),this.isDirty=!0}remove(a){bf(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(fc),this.isDirty=!1,this.children.forEach(a)}}Object.assign(b3,{...fb,...b3});let fe=["","X","Y","Z"],ff=0;function fg(a,b,c,d){let{latestValues:e}=b;e[a]&&(c[a]=e[a],b.setStaticValue(a,0),d&&(d[a]=0))}function fh({attachResizeListener:a,defaultParent:b,measureScroll:c,checkIsScrollRoot:d,resetTransform:e}){return class{constructor(a={},c=b?.()){this.id=ff++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(fk),this.nodes.forEach(fu),this.nodes.forEach(fv),this.nodes.forEach(fl)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new fd)}addEventListener(a,b){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new bg),this.eventHandlers.get(a).add(b)}notifyListeners(a,...b){let c=this.eventHandlers.get(a);c&&c.notify(...b)}hasListeners(a){return this.eventHandlers.has(a)}mount(b){if(this.instance)return;this.isSVG=eb(b)&&!(eb(b)&&"svg"===b.tagName),this.instance=b;let{layoutId:c,layout:d,visualElement:e}=this.options;if(e&&!e.current&&e.mount(b),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(d||c)&&(this.isLayoutDirty=!0),a){let c,d=0,e=()=>this.root.updateBlockedByResize=!1;F.read(()=>{d=window.innerWidth}),a(b,()=>{let a=window.innerWidth;if(a!==d){let b,f;d=a,this.root.updateBlockedByResize=!0,c&&c(),b=bq.now(),f=({timestamp:a})=>{let c=a-b;c>=250&&(G(f),e())},F.setup(f,!0),c=()=>G(f),eI.hasAnimatedSinceResize&&(eI.hasAnimatedSinceResize=!1,this.nodes.forEach(ft))}})}c&&this.root.registerSharedNode(c,this),!1!==this.options.animate&&e&&(c||d)&&this.addEventListener("didUpdate",({delta:a,hasLayoutChanged:b,hasRelativeLayoutChanged:c,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let f=this.options.transition||e.getDefaultTransition()||fB,{onLayoutAnimationStart:g,onLayoutAnimationComplete:h}=e.getProps(),i=!this.targetLayout||!e5(this.targetLayout,d),j=!b&&c;if(this.options.layoutRoot||this.resumeFrom||j||b&&(i||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let b={...cJ(f,"layout"),onPlay:g,onComplete:h};(e.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(a,j,b.path)}else b||ft(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),G(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(fw),this.animationId++)}getTransformTemplate(){let{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function a(b){if(b.hasCheckedOptimisedAppear=!0,b.root===b)return;let{visualElement:c}=b.options;if(!c)return;let d=c.props[cM];if(window.MotionHasOptimisedAnimation(d,"transform")){let{layout:a,layoutId:c}=b.options;window.MotionCancelOptimisedAnimation(d,"transform",F,!(a||c))}let{parent:e}=b;e&&!e.hasCheckedOptimisedAppear&&a(e)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let a=0;a<this.path.length;a++){let b=this.path[a];b.shouldResetTransform=!0,("string"==typeof b.latestValues.x||"string"==typeof b.latestValues.y)&&(b.isLayoutDirty=!0),b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}let{layoutId:b,layout:c}=this.options;if(void 0===b&&!c)return;let d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let a=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),a&&this.nodes.forEach(fo),this.nodes.forEach(fn);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(fp);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(fq),this.nodes.forEach(fr),this.nodes.forEach(fs),this.nodes.forEach(fi),this.nodes.forEach(fj)):this.nodes.forEach(fp),this.clearAllSnapshots();let a=bq.now();E.delta=N(0,1e3/60,a-E.timestamp),E.timestamp=a,E.isProcessing=!0,H.update.process(E),H.preRender.process(E),H.render.process(E),E.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,bB.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(fm),this.sharedNodes.forEach(fx)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,F.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){F.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||d1(this.snapshot.measuredBox.x)||d1(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let a=0;a<this.path.length;a++)this.path[a].updateScroll();let a=this.layout;this.layout=this.measure(!1),this.layoutCorrected||(this.layoutCorrected=aA()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:b}=this.options;b&&b.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let b=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(b=!1),b&&this.instance){let b=d(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:b,offset:c(this.instance),wasRoot:this.scroll?this.scroll.isRoot:b}}}resetTransform(){if(!e)return;let a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,b=this.projectionDelta&&!e2(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,f=d!==this.prevTransformTemplateValue;a&&this.instance&&(b||cc(this.latestValues)||f)&&(e(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){var b;let c=this.measurePageBox(),d=this.removeElementScroll(c);return a&&(d=this.removeTransform(d)),fE((b=d).x),fE(b.y),{animationId:this.root.animationId,measuredBox:c,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:a}=this.options;if(!a)return aA();let b=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(fG))){let{scroll:a}=this.root;a&&(ch(b.x,a.offset.x),ch(b.y,a.offset.y))}return b}removeElementScroll(a){let b=aA();if(eW(b,a),this.scroll?.wasRoot)return b;for(let c=0;c<this.path.length;c++){let d=this.path[c],{scroll:e,options:f}=d;d!==this.root&&e&&f.layoutScroll&&(e.wasRoot&&eW(b,a),ch(b.x,e.offset.x),ch(b.y,e.offset.y))}return b}applyTransform(a,b=!1,c){let d=c||aA();eW(d,a);for(let a=0;a<this.path.length;a++){let c=this.path[a];!b&&c.options.layoutScroll&&c.scroll&&c!==c.root&&(ch(d.x,-c.scroll.offset.x),ch(d.y,-c.scroll.offset.y)),cc(c.latestValues)&&ck(d,c.latestValues,c.layout?.layoutBox)}return cc(this.latestValues)&&ck(d,this.latestValues,this.layout?.layoutBox),d}removeTransform(a){let b=aA();eW(b,a);for(let a=0;a<this.path.length;a++){let c,d=this.path[a];cc(d.latestValues)&&(d.instance&&(cb(d.latestValues)&&d.updateSnapshot(),eW(c=aA(),d.measurePageBox())),e0(b,d.latestValues,d.snapshot?.layoutBox,c))}return cc(this.latestValues)&&e0(b,this.latestValues),b}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:void 0===a.crossfade||a.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==E.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){let b=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=b.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=b.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=b.isSharedProjectionDirty);let c=!!this.resumingFrom||this!==b;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:d,layoutId:e}=this.options;if(!this.layout||!(d||e))return;this.resolvedRelativeTargetAt=E.timestamp;let f=this.getClosestProjectingParent();if(this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=aA(),this.targetWithTransforms=aA()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var g,h,i,j;this.forceRelativeParentToResolveTarget(),g=this.target,h=this.relativeTarget,i=this.relativeParent.target,j=this.options.layoutAnchor||void 0,d4(g.x,h.x,i.x,j?.x),d4(g.y,h.y,i.y,j?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):eW(this.target,this.layout.layoutBox),cg(this.target,this.targetDelta)):eW(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&1!==this.animationProgress?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||cb(this.parent.latestValues)||cd(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,b,c){this.relativeParent=a,this.forceRelativeParentToResolveTarget(),this.relativeTarget=aA(),this.relativeTargetOrigin=aA(),d6(this.relativeTargetOrigin,b,c,this.options.layoutAnchor||void 0),eW(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let a=this.getLead(),b=!!this.resumingFrom||this!==a,c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),b&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===E.timestamp&&(c=!1),c)return;let{layout:d,layoutId:e}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||e))return;eW(this.layoutCorrected,this.layout.layoutBox);let f=this.treeScale.x,g=this.treeScale.y;!function(a,b,c,d=!1){let e,f,g=c.length;if(g){b.x=b.y=1;for(let h=0;h<g;h++){f=(e=c[h]).projectionDelta;let{visualElement:g}=e.options;(!g||!g.props.style||"contents"!==g.props.style.display)&&(d&&e.options.layoutScroll&&e.scroll&&e!==e.root&&(ch(a.x,-e.scroll.offset.x),ch(a.y,-e.scroll.offset.y)),f&&(b.x*=f.x.scale,b.y*=f.y.scale,cg(a,f)),d&&cc(e.latestValues)&&ck(a,e.latestValues,e.layout?.layoutBox))}b.x<1.0000000000001&&b.x>.999999999999&&(b.x=1),b.y<1.0000000000001&&b.y>.999999999999&&(b.y=1)}}(this.layoutCorrected,this.treeScale,this.path,b),a.layout&&!a.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=aA());let{target:h}=a;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(eX(this.prevProjectionDelta.x,this.projectionDelta.x),eX(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),d3(this.projectionDelta,this.layoutCorrected,h,this.latestValues),this.treeScale.x===f&&this.treeScale.y===g&&e7(this.projectionDelta.x,this.prevProjectionDelta.x)&&e7(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.visualElement?.scheduleRender(),a){let a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ay(),this.projectionDelta=ay(),this.projectionDeltaWithTransform=ay()}setAnimationOrigin(a,b=!1,c){let d,e=this.snapshot,f=e?e.latestValues:{},g={...this.latestValues},h=ay();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!b;let i=aA(),j=(e?e.source:void 0)!==(this.layout?this.layout.source:void 0),k=this.getStack(),l=!k||k.members.length<=1,m=!!(j&&!l&&!0===this.options.crossfade&&!this.path.some(fA));this.animationProgress=0;let n=c?.interpolateProjection(a);this.mixTargetDelta=b=>{let c=b/1e3,e=n?.(c);if(e?(h.x.translate=e.x,h.x.scale=b9(a.x.scale,1,c),h.x.origin=a.x.origin,h.x.originPoint=a.x.originPoint,h.y.translate=e.y,h.y.scale=b9(a.y.scale,1,c),h.y.origin=a.y.origin,h.y.originPoint=a.y.originPoint):(fy(h.x,a.x,c),fy(h.y,a.y,c)),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var k,o,p,q,r,s;d6(i,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),p=this.relativeTarget,q=this.relativeTargetOrigin,r=i,s=c,fz(p.x,q.x,r.x,s),fz(p.y,q.y,r.y,s),d&&(k=this.relativeTarget,o=d,e3(k.x,o.x)&&e3(k.y,o.y))&&(this.isProjectionDirty=!1),d||(d=aA()),eW(d,this.relativeTarget)}j&&(this.animationValues=g,function(a,b,c,d,e,f){e?(a.opacity=b9(0,c.opacity??1,eS(d)),a.opacityExit=b9(b.opacity??1,0,eT(d))):f&&(a.opacity=b9(b.opacity??1,c.opacity??1,d));for(let e=0;e<eP;e++){let f=eN[e],g=eR(b,f),h=eR(c,f);(void 0!==g||void 0!==h)&&(g||(g=0),h||(h=0),0===g||0===h||eQ(g)===eQ(h)?(a[f]=Math.max(b9(eO(g),eO(h),d),0),(_.test(h)||_.test(g))&&(a[f]+="%")):a[f]=h)}(b.rotate||c.rotate)&&(a.rotate=b9(b.rotate||0,c.rotate||0,d))}(g,f,this.latestValues,c,m,l)),e&&void 0!==e.rotate&&(this.animationValues||(this.animationValues=g),this.animationValues.pathRotation=e.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=c},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(G(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=F.update(()=>{var b,c,d;let e;eI.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=bF(0)),this.motionValue.jump(0,!1),this.currentAnimation=(b=this.motionValue,c=[0,1e3],d={...a,velocity:0,isSync:!0,onUpdate:b=>{this.mixTargetDelta(b),a.onUpdate&&a.onUpdate(b)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}},(e=aB(b)?b:bF(b)).start(dN("",e,c,d)),e.animation),function(a,b){let c=globalThis.__MOTION_INSPECT__;if(c)try{c({...br("layout-animation-start",a),node:b})}catch{}}(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let a=this.getLead(),{targetWithTransforms:b,layout:c,latestValues:d}=a,{target:e}=a;if(b&&e&&c){if(this!==a&&this.layout&&c&&fF(this.options.animationType,this.layout.layoutBox,c.layoutBox)){e=this.target||aA();let b=d1(this.layout.layoutBox.x);e.x.min=a.target.x.min,e.x.max=e.x.min+b;let c=d1(this.layout.layoutBox.y);e.y.min=a.target.y.min,e.y.max=e.y.min+c}eW(b,e),ck(b,d),d3(this.projectionDeltaWithTransform,this.layoutCorrected,b,d)}}registerSharedNode(a,b){this.sharedNodes.has(a)||this.sharedNodes.set(a,new e8),this.sharedNodes.get(a).add(b);let c=b.options.initialPromotionConfig;b.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(b):void 0})}isLead(){let a=this.getStack();return!a||a.lead===this}getLead(){let{layoutId:a}=this.options;return a&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:b,preserveFollowOpacity:c}={}){let d=this.getStack();d&&d.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),b&&this.setOptions({transition:b})}relegate(){let a=this.getStack();return!!a&&a.relegate(this)}resetSkewAndRotation(){let{visualElement:a}=this.options;if(!a)return;let b=!1,{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(b=!0),!b)return;let d={};c.z&&fg("z",a,d,this.animationValues);for(let b=0;b<fe.length;b++)fg(`rotate${fe[b]}`,a,d,this.animationValues),fg(`skew${fe[b]}`,a,d,this.animationValues);for(let b in a.render(),d)a.setStaticValue(b,d[b]),this.animationValues&&(this.animationValues[b]=d[b]);a.scheduleRender()}applyProjectionStyles(a,b){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}let c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=cx(b?.pointerEvents)||"",a.transform=c?c(this.latestValues,""):"none";return}let d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(a.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,a.pointerEvents=cx(b?.pointerEvents)||""),this.hasProjected&&!cc(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";let e=d.animationValues||d.latestValues;this.applyTransformsToTarget();let f=function(a,b,c){let d="",e=a.x.translate/b.x,f=a.y.translate/b.y,g=c?.z||0;if((e||f||g)&&(d=`translate3d(${e}px, ${f}px, ${g}px) `),(1!==b.x||1!==b.y)&&(d+=`scale(${1/b.x}, ${1/b.y}) `),c){let{transformPerspective:a,rotate:b,pathRotation:e,rotateX:f,rotateY:g,skewX:h,skewY:i}=c;a&&(d=`perspective(${a}px) ${d}`),b&&(d+=`rotate(${b}deg) `),e&&(d+=`rotate(${e}deg) `),f&&(d+=`rotateX(${f}deg) `),g&&(d+=`rotateY(${g}deg) `),h&&(d+=`skewX(${h}deg) `),i&&(d+=`skewY(${i}deg) `)}let h=a.x.scale*b.x,i=a.y.scale*b.y;return(1!==h||1!==i)&&(d+=`scale(${h}, ${i})`),d||"none"}(this.projectionDeltaWithTransform,this.treeScale,e);c&&(f=c(e,f)),a.transform=f;let{x:g,y:h}=this.projectionDelta;for(let b in a.transformOrigin=`${100*g.origin}% ${100*h.origin}% 0`,d.animationValues?a.opacity=d===this?e.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:e.opacityExit:a.opacity=d===this?void 0!==e.opacity?e.opacity:"":void 0!==e.opacityExit?e.opacityExit:0,b3){if(void 0===e[b])continue;let{correct:c,applyTo:g,isCSSVariable:h}=b3[b],i="none"===f?e[b]:c(e[b],d);if(g){let b=g.length;for(let c=0;c<b;c++)a[g[c]]=i}else h?this.options.visualElement.renderState.vars[b]=i:a[b]=i}this.options.layoutId&&(a.pointerEvents=d===this?cx(b?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(fn),this.root.sharedNodes.clear()}}}function fi(a){a.updateLayout()}function fj(a){let b=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&b&&a.hasListeners("didUpdate")){let{layoutBox:c,measuredBox:d}=a.layout,{animationType:e}=a.options,f=b.source!==a.layout.source;if("size"===e)d0(a=>{let d=f?b.measuredBox[a]:b.layoutBox[a],e=d1(d);d.min=c[a].min,d.max=d.min+e});else if("x"===e||"y"===e){let a="x"===e?"y":"x";eV(f?b.measuredBox[a]:b.layoutBox[a],c[a])}else fF(e,b.layoutBox,c)&&d0(d=>{let e=f?b.measuredBox[d]:b.layoutBox[d],g=d1(c[d]);e.max=e.min+g,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[d].max=a.relativeTarget[d].min+g)});let g=ay();d3(g,c,b.layoutBox);let h=ay();f?d3(h,a.applyTransform(d,!0),b.measuredBox):d3(h,c,b.layoutBox);let i=!e2(g),j=!1;if(!a.resumeFrom){let d=a.getClosestProjectingParent();if(d&&!d.resumeFrom){let{snapshot:e,layout:f}=d;if(e&&f){let g=a.options.layoutAnchor||void 0,h=aA();d6(h,b.layoutBox,e.layoutBox,g);let i=aA();d6(i,c,f.layoutBox,g),e5(h,i)||(j=!0),d.options.layoutRoot&&(a.relativeTarget=i,a.relativeTargetOrigin=h,a.relativeParent=d)}}}a.notifyListeners("didUpdate",{layout:c,snapshot:b,delta:h,layoutDelta:g,hasLayoutChanged:i,hasRelativeLayoutChanged:j})}else if(a.isLead()){let{onExitComplete:b}=a.options;b&&b()}a.options.transition=void 0}function fk(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function fl(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function fm(a){a.clearSnapshot()}function fn(a){a.clearMeasurements()}function fo(a){a.isLayoutDirty=!0,a.updateLayout()}function fp(a){a.isLayoutDirty=!1}function fq(a){a.isAnimationBlocked&&a.layout&&!a.isLayoutDirty&&(a.snapshot=a.layout,a.isLayoutDirty=!0)}function fr(a){a.relativeTarget&&a.relativeParent?.isLayoutDirty&&(a.currentAnimation?a.isLayoutDirty=!0:(a.targetDelta=void 0,a.removeRelativeTarget()))}function fs(a){let{visualElement:b}=a.options;b&&b.getProps().onBeforeLayoutMeasure&&b.notify("BeforeLayoutMeasure"),a.resetTransform()}function ft(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function fu(a){a.resolveTargetDelta()}function fv(a){a.calcProjection()}function fw(a){a.resetSkewAndRotation()}function fx(a){a.removeLeadSnapshot()}function fy(a,b,c){a.translate=b9(b.translate,0,c),a.scale=b9(b.scale,1,c),a.origin=b.origin,a.originPoint=b.originPoint}function fz(a,b,c,d){a.min=b9(b.min,c.min,d),a.max=b9(b.max,c.max,d)}function fA(a){return a.animationValues&&void 0!==a.animationValues.opacityExit}let fB={duration:.45,ease:[.4,0,.1,1]},fC=a=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),fD=fC("applewebkit/")&&!fC("chrome/")?Math.round:A;function fE(a){a.min=fD(a.min),a.max=fD(a.max)}function fF(a,b,c){return"position"===a||"preserve-aspect"===a&&!(.2>=Math.abs(e6(b)-e6(c)))}function fG(a){return a!==a.root&&a.scroll?.wasRoot}let fH=fh({attachResizeListener:(a,b)=>d9(a,"resize",b),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),fI={current:void 0},fJ=fh({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!fI.current){let a=new fH({});a.mount(window),a.setOptions({layoutScroll:!0}),fI.current=a}return fI.current},resetTransform:(a,b)=>{a.style.transform=void 0!==b?b:"none"},checkIsScrollRoot:a=>"fixed"===window.getComputedStyle(a).position});function fK(a,b){let c=ec(a),d=new AbortController;return[c,{passive:!0,...b,signal:d.signal},()=>d.abort()]}function fL(a,b,c){let{props:d}=a;a.animationState&&d.whileHover&&a.animationState.setActive("whileHover","Start"===c);let e=d["onHover"+c];e&&F.postRender(()=>e(b,em(b)))}class fM extends cG{mount(){let{current:a}=this.node;a&&(this.unmount=function(a,b,c={}){let[d,e,f]=fK(a,c);return d.forEach(a=>{let c,d=!1,f=!1,g=b=>{c&&(c(b),c=void 0),a.removeEventListener("pointerleave",i)},h=a=>{d=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),f&&(f=!1,g(a))},i=a=>{if("touch"!==a.pointerType){if(d){f=!0;return}g(a)}};a.addEventListener("pointerenter",d=>{if("touch"===d.pointerType||d_.x||d_.y)return;f=!1;let g=b(a,d);"function"==typeof g&&(c=g,a.addEventListener("pointerleave",i,e))},e),a.addEventListener("pointerdown",()=>{d=!0,window.addEventListener("pointerup",h,e),window.addEventListener("pointercancel",h,e)},e)}),f}(a,(a,b)=>(fL(this.node,b,"Start"),a=>fL(this.node,a,"End"))))}unmount(){}}class fN extends cG{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch(b){a=!0}a&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=cN(d9(this.node.current,"focus",()=>this.onFocus()),d9(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let fO=(a,b)=>!!b&&(a===b||fO(a,b.parentElement)),fP=new WeakSet;function fQ(a){return b=>{"Enter"===b.key&&a(b)}}function fR(a,b){a.dispatchEvent(new PointerEvent("pointer"+b,{isPrimary:!0,bubbles:!0}))}function fS(a){return el(a)&&!(d_.x||d_.y)}let fT=new WeakSet;function fU(a,b,c){let{props:d}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&d.whileTap&&a.animationState.setActive("whileTap","Start"===c);let e=d["onTap"+("End"===c?"":c)];e&&F.postRender(()=>e(b,em(b)))}class fV extends cG{mount(){let{current:a}=this.node;if(!a)return;let{globalTapTarget:b,propagate:c}=this.node.props;this.unmount=function(a,b,c={}){let[d,e,f]=fK(a,c),g=a=>{let d=a.currentTarget;if(!fS(a)||fT.has(a))return;fP.add(d),c.stopPropagation&&fT.add(a);let f=b(d,a),g={...e,capture:!0},h=(a,b)=>{window.removeEventListener("pointerup",i,g),window.removeEventListener("pointercancel",j,g),fP.has(d)&&fP.delete(d),fS(a)&&"function"==typeof f&&f(a,{success:b})},i=a=>{h(a,d===window||d===document||c.useGlobalTarget||fO(d,a.target))},j=a=>{h(a,!1)};window.addEventListener("pointerup",i,g),window.addEventListener("pointercancel",j,g)};return d.forEach(a=>{(c.useGlobalTarget?window:a).addEventListener("pointerdown",g,e),ea(a)&&"offsetHeight"in a&&!("ownerSVGElement"in a)&&(a.addEventListener("focus",a=>((a,b)=>{let c=a.currentTarget;if(!c)return;let d=fQ(()=>{if(fP.has(c))return;fR(c,"down");let a=fQ(()=>{fR(c,"up")});c.addEventListener("keyup",a,b),c.addEventListener("blur",()=>fR(c,"cancel"),b)});c.addEventListener("keydown",d,b),c.addEventListener("blur",()=>c.removeEventListener("keydown",d),b)})(a,e)),d7.has(a.tagName)||!0===a.isContentEditable||a.hasAttribute("tabindex")||(a.tabIndex=0))}),f}(a,(a,b)=>(fU(this.node,b,"Start"),(a,{success:b})=>fU(this.node,a,b?"End":"Cancel")),{useGlobalTarget:b,stopPropagation:c?.tap===!1})}unmount(){}}let fW=new WeakMap,fX=new WeakMap,fY=a=>{let b=fW.get(a.target);b&&b(a)},fZ=a=>{a.forEach(fY)},f$={some:0,all:1};class f_ extends cG{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var a;let b;this.stopObserver?.();let{viewport:c={}}=this.node.getProps(),{root:d,margin:e,amount:f="some",once:g}=c,h={root:d?d.current:void 0,rootMargin:e,threshold:"number"==typeof f?f:f$[f]},i=a=>{let{isIntersecting:b}=a;if(this.isInView===b||(this.isInView=b,g&&!b&&this.hasEnteredView))return;b&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",b);let{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),e=b?c:d;e&&e(a)};this.stopObserver=(a=this.node.current,b=function({root:a,...b}){let c=a||document;fX.has(c)||fX.set(c,{});let d=fX.get(c),e=JSON.stringify(b);return d[e]||(d[e]=new IntersectionObserver(fZ,{root:a,...b})),d[e]}(h),fW.set(a,i),b.observe(a),()=>{fW.delete(a),b.unobserve(a)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:a,prevProps:b}=this.node;["amount","margin","root"].some(function({viewport:a={}},{viewport:b={}}={}){return c=>a[c]!==b[c]}(a,b))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let f0=function(a,b){if("u"<typeof Proxy)return cF;let c=new Map,d=(c,d)=>cF(c,d,a,b);return new Proxy((a,b)=>d(a,b),{get:(e,f)=>"create"===f?d:(c.has(f)||c.set(f,cF(f,void 0,a,b)),c.get(f))})}({animation:{Feature:dY},exit:{Feature:d$},inView:{Feature:f_},tap:{Feature:fV},focus:{Feature:fN},hover:{Feature:fM},pan:{Feature:eH},drag:{Feature:eF,ProjectionNode:fJ,MeasureLayout:eM},layout:{ProjectionNode:fJ,MeasureLayout:eM}},(a,b)=>b.isSVG??co(a)?new b7(b):new cm(b,{allowProjection:a!==h.Fragment})),f1={ease:"easeInOut",duration:.2};function f2({children:a,value:b,defaultValue:c,onValueChange:d,className:e,containerClassName:f,transition:i=f1,"aria-label":j}){let k=(0,h.useId)(),[l,m]=(0,h.useState)(c),n=function(){v.current||x();let[a]=(0,h.useState)(u.current);return a}(),o=void 0!==b,p=o?b:l;return(0,g.jsx)(K,{id:k,children:(0,g.jsx)("div",{role:"group","aria-label":j,className:(0,t.cn)("inline-flex items-center",f),children:h.Children.map(a,a=>{if(!(0,h.isValidElement)(a)||void 0===a.props["data-id"])return a;let b=a.props["data-id"],c=b===p;return(0,h.cloneElement)(a,{"aria-pressed":c,className:(0,t.cn)("relative isolate",a.props.className),onClick:e=>{a.props.onClick?.(e),e.defaultPrevented||a.props.disabled||c||(o||m(b),d?.(b))},children:(0,g.jsxs)(g.Fragment,{children:[c&&(0,g.jsx)(f0.span,{"aria-hidden":"true",layoutId:"active-background",initial:!1,transition:n?{duration:0}:i,className:(0,t.cn)("pointer-events-none absolute inset-0 -z-10",e)}),a.props.children]})})})})})}function f3(a){return!a||a<=0?"0":a>=1e9?`${(a/1e9).toFixed(2)}B`:a>=1e6?`${(a/1e6).toFixed(1)}M`:a>=1e3?`${(a/1e3).toFixed(1)}K`:a.toLocaleString()}function f4(a){return!a||a<=0?"$0.0000":`$${Number(a).toFixed(4)}`}let f5=[{value:"today",label:"Today"},{value:"24h",label:"24h"},{value:"7d",label:"7D"},{value:"30d",label:"30D"},{value:"60d",label:"60D"},{value:"all",label:"All"}];function f6({stats:a,connectionsCount:b=0,nodesCount:c=0,period:d="7d",onPeriodChange:e,fetching:f=!1,onRefresh:h}){let m=a?.totalRequests||0,n=a?.totalPromptTokens||0,p=a?.totalCompletionTokens||0,u=n+p,v=a?.totalCost||0,w=(a?.activeRequests||[]).reduce((a,b)=>a+(b.count||0),0),x=a?.recentRequests||[],y=x.filter(a=>a.status&&"ok"!==a.status&&"success"!==a.status&&"200"!==a.status).length,z=x.length||1,A=x.length>0?((z-y)/z*100).toFixed(1):"100.0",B=u>0?Math.round(n/u*100):50,C=100-B,D=m>0?v/m*1e3:0;return(0,g.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,g.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between py-1",children:[(0,g.jsx)("div",{className:"flex items-center gap-2",children:(0,g.jsx)("div",{className:"ui-eyebrow",children:(0,g.jsx)("span",{children:"Dashboard Telemetry"})})}),(0,g.jsxs)("div",{className:"flex items-center gap-2 self-start sm:self-auto",children:[(0,g.jsx)(f2,{value:d,onValueChange:e,"aria-label":"Telemetry period",containerClassName:"dashboard-segmented-control",className:"dashboard-segment-highlight",children:f5.map(a=>(0,g.jsx)("button",{"data-id":a.value,type:"button","aria-label":`${a.label} telemetry`,className:"dashboard-segment",children:a.label},a.value))}),(0,g.jsx)("button",{type:"button",onClick:h,disabled:f,"aria-label":"Refresh telemetry","aria-busy":f,title:"Refresh telemetry",className:"dashboard-refresh",children:(0,g.jsx)(i.A,{className:(0,t.cn)("size-3.5",f&&"animate-spin motion-reduce:animate-none text-[var(--text)]")})})]})]}),(0,g.jsxs)("div",{className:"grid-stats",children:[(0,g.jsxs)("div",{className:"stat-card p-4 flex flex-col justify-between",children:[(0,g.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,g.jsx)("span",{className:"ui-eyebrow text-[10px] text-[var(--text-2)]",children:"TOTAL REQUESTS"}),(0,g.jsx)(j.A,{className:"size-4 shrink-0 text-[var(--text-2)]"})]}),(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{className:"font-mono text-2xl font-semibold text-[var(--text)] tracking-tight u-tnum",children:m.toLocaleString()}),(0,g.jsx)("div",{className:"mt-1 flex items-center gap-1.5 text-xs font-mono text-[var(--text-3)]",children:w>0?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("span",{className:"size-1.5 rounded-full bg-[var(--pos)] animate-pulse"}),(0,g.jsxs)("span",{className:"text-[var(--pos)] font-medium u-tnum",children:[w," active in-flight"]})]}):(0,g.jsx)("span",{className:"text-[var(--text-3)]",children:"Pipeline idle \xb7 Ready"})})]})]}),(0,g.jsxs)("div",{className:"stat-card p-4 flex flex-col justify-between",children:[(0,g.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,g.jsx)("span",{className:"ui-eyebrow text-[10px] text-[var(--text-2)]",children:"SUCCESS RATE"}),(0,g.jsx)(k.A,{className:"size-4 shrink-0 text-[var(--pos)]"})]}),(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{className:"font-mono text-2xl font-semibold text-[var(--text)] tracking-tight u-tnum flex items-baseline gap-1",children:(0,g.jsxs)("span",{children:[A,"%"]})}),(0,g.jsx)("div",{className:"mt-1 flex items-center gap-1.5 text-xs font-mono",children:0===y?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("span",{className:"text-[var(--pos)] font-medium",children:"0 failure signals"}),(0,g.jsx)("span",{className:"text-[var(--text-3)]",children:"\xb7"}),(0,g.jsx)("span",{className:"text-[var(--pos)]",children:"200 OK"})]}):(0,g.jsxs)("span",{className:"text-[var(--warn)] font-medium u-tnum",children:[y," failure signals"]})})]})]}),(0,g.jsxs)("div",{className:"stat-card p-4 flex flex-col justify-between",children:[(0,g.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,g.jsx)("span",{className:"ui-eyebrow text-[10px] text-[var(--text-2)]",children:"TOTAL TOKENS"}),(0,g.jsx)(l.A,{className:"size-4 shrink-0 text-[var(--text-2)]"})]}),(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{className:"font-mono text-2xl font-semibold text-[var(--text)] tracking-tight u-tnum",children:f3(u)}),(0,g.jsxs)("div",{className:"mt-1 flex items-center justify-between text-[11px] font-mono text-[var(--text-2)]",children:[(0,g.jsxs)("span",{className:"flex items-center gap-0.5 text-[var(--text-2)] u-tnum",children:[(0,g.jsx)(o,{className:"size-3 text-[var(--text-3)]"}),f3(n)," in"]}),(0,g.jsxs)("span",{className:"flex items-center gap-0.5 text-[var(--text-2)] u-tnum",children:[(0,g.jsx)(q,{className:"size-3 text-[var(--pos)]"}),f3(p)," out"]})]}),(0,g.jsxs)("div",{className:"mt-1.5 h-1 w-full bg-[var(--surface-inset)] border border-[var(--line)] rounded-full overflow-hidden flex",children:[(0,g.jsx)("div",{style:{width:`${B}%`},className:"bg-[var(--text-3)] h-full",title:`Prompt: ${B}%`}),(0,g.jsx)("div",{style:{width:`${C}%`},className:"bg-[var(--pos)] h-full",title:`Completion: ${C}%`})]})]})]}),(0,g.jsxs)("div",{className:"stat-card p-4 flex flex-col justify-between",children:[(0,g.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,g.jsx)("span",{className:"ui-eyebrow text-[10px] text-[var(--text-2)]",children:"ESTIMATED COST"}),(0,g.jsx)(r.A,{className:"size-4 shrink-0 text-[var(--text-2)]"})]}),(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{className:"font-mono text-2xl font-semibold text-[var(--text)] tracking-tight u-tnum",children:f4(v)}),(0,g.jsx)("div",{className:"mt-1 flex items-center gap-1.5 text-xs font-mono text-[var(--text-3)]",children:(0,g.jsxs)("span",{className:"u-tnum",children:["Avg ",f4(D),"/1k req"]})})]})]}),(0,g.jsxs)("div",{className:"stat-card p-4 flex flex-col justify-between",children:[(0,g.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,g.jsx)("span",{className:"ui-eyebrow text-[10px] text-[var(--text-2)]",children:"CONNECTIONS & NODES"}),(0,g.jsx)(s.A,{className:"size-4 shrink-0 text-[var(--text-2)]"})]}),(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{className:"font-mono text-2xl font-semibold text-[var(--text)] tracking-tight u-tnum",children:[b," Active"]}),(0,g.jsxs)("div",{className:"mt-1 flex items-center gap-1.5 text-xs font-mono text-[var(--text-3)]",children:[(0,g.jsxs)("span",{className:"u-tnum",children:[c," routing nodes"]}),(0,g.jsx)("span",{className:"text-[var(--text-3)]",children:"\xb7"}),(0,g.jsx)("span",{className:"text-[var(--pos)] font-medium",children:"Ready"})]})]})]})]})]})}var f7=c(48679),f8=c(21621),f9=c(5277),ga=c(22393),gb=c(54206),gc=c(48121),gd=c(71610),ge=c(67254),gf=c(24950);let gg=[{value:"requests",label:"Requests",icon:j.A},{value:"tokens",label:"Tokens",icon:ge.A},{value:"cost",label:"Cost",icon:r.A}];function gh({active:a,payload:b,label:c,mode:d}){if(!a||!b||!b.length)return null;let e=b[0].value;return(0,g.jsxs)("div",{className:"rounded-[var(--r2)] border border-[var(--line-2)] bg-[var(--surface-2)]/95 backdrop-blur-md px-3 py-2 shadow-[var(--shadow-pop)] text-xs font-mono",children:[(0,g.jsx)("div",{className:"text-[var(--text-3)] mb-1 text-[11px]",children:c}),(0,g.jsxs)("div",{className:"flex items-center gap-2",children:[(0,g.jsx)("span",{className:"size-2 rounded-full bg-[var(--text)]"}),(0,g.jsxs)("span",{className:"text-[var(--text-2)] capitalize",children:[d,":"]}),(0,g.jsx)("span",{className:"text-[var(--text)] font-semibold u-tnum",children:"cost"===d?f4(e):"tokens"===d?f3(e):Number(e).toLocaleString()})]})]})}function gi({period:a="7d"}){let[b,c]=(0,h.useState)([]),[d,e]=(0,h.useState)(!0),[f,i]=(0,h.useState)("requests"),[j,k]=(0,h.useState)(!1);(0,h.useCallback)(async()=>{e(!0);try{let b=await fetch(`/api/usage/chart?period=${a}`);if(b.ok){let a=await b.json();c(Array.isArray(a)?a:[])}}catch(a){console.error("Failed to fetch activity chart data:",a)}finally{e(!1)}},[a]);let{total:l,peak:m,avg:n}=(0,h.useMemo)(()=>{if(!b.length)return{total:0,peak:0,avg:0};let a=b.map(a=>Number(a[f]||0)),c=a.reduce((a,b)=>a+b,0),d=Math.max(...a,0),e=c/a.length;return{total:c,peak:d,avg:e}},[b,f]),o=b.some(a=>(a[f]||0)>0);return(0,g.jsxs)("div",{className:"ui-card p-5 flex flex-col justify-between",children:[(0,g.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-4",children:[(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{className:"flex items-center gap-2",children:[(0,g.jsx)("span",{className:"ui-eyebrow text-[10px] text-[var(--text-2)]",children:"ACTIVITY TIMELINE"}),(0,g.jsx)("span",{className:"text-[var(--text-3)]",children:"\xb7"}),(0,g.jsx)("span",{className:"text-xs text-[var(--text-3)]",children:"Throughput over time"})]}),(0,g.jsxs)("div",{className:"mt-1 flex items-center gap-4 text-xs font-mono text-[var(--text-2)]",children:[(0,g.jsxs)("span",{children:["Total:"," ",(0,g.jsx)("strong",{className:"text-[var(--text)] font-semibold u-tnum",children:"cost"===f?f4(l):"tokens"===f?f3(l):l.toLocaleString()})]}),(0,g.jsx)("span",{className:"text-[var(--text-3)]",children:"\xb7"}),(0,g.jsxs)("span",{children:["Peak:"," ",(0,g.jsx)("strong",{className:"text-[var(--text)] font-semibold u-tnum",children:"cost"===f?f4(m):"tokens"===f?f3(m):Math.round(m).toLocaleString()})]}),(0,g.jsx)("span",{className:"text-[var(--text-3)]",children:"\xb7"}),(0,g.jsxs)("span",{children:["Avg:"," ",(0,g.jsx)("strong",{className:"text-[var(--text)] font-semibold u-tnum",children:"cost"===f?f4(n):"tokens"===f?f3(n):Math.round(n).toLocaleString()})]})]})]}),(0,g.jsx)(f2,{value:f,onValueChange:i,"aria-label":"Activity metric",containerClassName:"dashboard-segmented-control self-start sm:self-auto",className:"dashboard-segment-highlight",children:gg.map(a=>{let b=a.icon;return(0,g.jsxs)("button",{"data-id":a.value,type:"button","aria-label":`${a.label} view`,className:"dashboard-segment",children:[(0,g.jsx)(b,{className:"size-3"}),a.label]},a.value)})})]}),(0,g.jsx)("div",{className:"w-full h-[220px] sm:h-[240px]",children:!j||d?(0,g.jsx)("div",{className:"w-full h-full flex items-center justify-center text-xs font-mono text-[var(--text-3)] animate-pulse",children:"Loading timeline telemetry..."}):o?(0,g.jsx)(f7.u,{width:"100%",height:"100%",children:(0,g.jsxs)(f8.Q,{data:b,margin:{top:8,right:8,left:-20,bottom:0},children:[(0,g.jsx)("defs",{children:(0,g.jsxs)("linearGradient",{id:"areaGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,g.jsx)("stop",{offset:"5%",stopColor:"var(--text)",stopOpacity:.14}),(0,g.jsx)("stop",{offset:"95%",stopColor:"var(--text)",stopOpacity:0})]})}),(0,g.jsx)(f9.d,{stroke:"var(--line)",strokeDasharray:"3 3",vertical:!1}),(0,g.jsx)(ga.W,{dataKey:"label",stroke:"var(--text-2)",fontSize:11,fontFamily:"var(--font-mono)",tickLine:!1,axisLine:!1}),(0,g.jsx)(gb.h,{stroke:"var(--text-2)",fontSize:11,fontFamily:"var(--font-mono)",tickLine:!1,axisLine:!1,tickFormatter:a=>"cost"===f?`$${Number(a).toFixed(2)}`:"tokens"===f?f3(a):a>=1e3?`${(a/1e3).toFixed(1)}k`:String(a)}),(0,g.jsx)(gc.m,{content:(0,g.jsx)(gh,{mode:f})}),(0,g.jsx)(gd.Gk,{type:"monotone",dataKey:f,stroke:"var(--text)",strokeWidth:2,fillOpacity:1,fill:"url(#areaGradient)"})]})}):(0,g.jsxs)("div",{className:"dashboard-card-inset w-full h-full flex flex-col items-center justify-center border border-dashed border-[var(--line)] rounded-[var(--r2)] bg-[var(--surface-inset)] p-6 text-center",children:[(0,g.jsx)(gf.A,{className:"size-6 text-[var(--text-3)] mb-2"}),(0,g.jsx)("p",{className:"text-xs font-mono text-[var(--text-2)]",children:"No activity recorded for this period"}),(0,g.jsxs)("p",{className:"text-[11px] text-[var(--text-3)] mt-1",children:["Send requests to ",(0,g.jsx)("code",{className:"text-[var(--text-2)] bg-[var(--surface-2)] px-1 py-0.5 rounded-[var(--r1)] border border-[var(--line)]",children:"/v1/chat/completions"})," to see real-time volume."]})]})})]})}var gj=c(2116),gk=c.n(gj),gl=c(72597);function gm({stats:a}){let b=(0,h.useMemo)(()=>{let b=Object.entries(a?.byModel||{}).map(([a,b])=>({key:a,name:b.rawModel||a.split(" (")[0]||a,provider:b.provider||"Direct",requests:b.requests||0,promptTokens:b.promptTokens||0,completionTokens:b.completionTokens||0,cost:b.cost||0}));return b.sort((a,b)=>b.requests-a.requests),b.slice(0,6)},[a]),c=b.length>0?b[0].requests:1,d=b.reduce((a,b)=>a+b.requests,0)||1;return(0,g.jsxs)("div",{className:"ui-card p-5 flex flex-col justify-between",children:[(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,g.jsx)("div",{className:"flex items-center gap-2",children:(0,g.jsx)("span",{className:"ui-eyebrow text-[10px] text-[var(--text-2)]",children:"TOP MODELS BY VOLUME"})}),(0,g.jsxs)("span",{className:"font-mono text-[11px] text-[var(--text-3)] u-tnum",children:[b.length," active models"]})]}),(0,g.jsx)("div",{className:"space-y-3 mt-3",children:b.length>0?b.map((a,b)=>{let e=Math.round(a.requests/c*100),f=(a.requests/d*100).toFixed(1);return(0,g.jsxs)("div",{className:"space-y-1",children:[(0,g.jsxs)("div",{className:"flex items-center justify-between text-xs font-mono",children:[(0,g.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,g.jsxs)("span",{className:"text-[var(--text-3)] font-semibold w-4 text-[10px] u-tnum",children:["0",b+1]}),(0,g.jsx)("span",{className:"text-[var(--text)] font-medium truncate max-w-[160px] sm:max-w-[220px]",title:a.name,children:a.name}),(0,g.jsx)("span",{className:"px-1.5 py-0.5 rounded-[var(--r1)] bg-transparent border border-white text-[10px] text-white font-mono",children:a.provider})]}),(0,g.jsxs)("div",{className:"flex items-center gap-3 shrink-0 text-right",children:[(0,g.jsx)("span",{className:"text-[var(--text)] u-tnum font-semibold",children:a.requests.toLocaleString()}),(0,g.jsxs)("span",{className:"text-[var(--text-3)] text-[11px] w-9 u-tnum",children:[f,"%"]})]})]}),(0,g.jsx)("div",{className:"h-1 w-full bg-[var(--surface-inset)] border border-[var(--line)] rounded-full overflow-hidden",children:(0,g.jsx)("div",{style:{width:`${e}%`},className:"h-full bg-[var(--text-2)] rounded-full transition-all duration-300"})})]},a.key)}):(0,g.jsx)("div",{className:"dashboard-card-inset text-center py-8 text-xs font-mono text-[var(--text-3)] border border-dashed border-[var(--line)] rounded-[var(--r2)] bg-[var(--surface-inset)]",children:"No model usage records found in this time range."})})]}),(0,g.jsx)("div",{className:"pt-3 mt-4 border-t border-[var(--line)] flex items-center justify-between text-xs font-mono",children:(0,g.jsxs)(gk(),{href:"/dashboard/combos",className:"text-[var(--text-2)] hover:text-[var(--text)] flex items-center gap-1 transition-colors",children:[(0,g.jsx)("span",{children:"View Combos & Adapters"}),(0,g.jsx)(gl.A,{className:"size-3"})]})})]})}let gn=["bg-[var(--text)]","bg-[var(--text-2)]","bg-[var(--text-3)]","bg-[var(--pos)]","bg-[var(--warn)]","bg-[var(--promo-accent)]","bg-zinc-400"];function go({stats:a}){let b=(0,h.useMemo)(()=>{let b=a?.byProvider||{},c=a?.totalRequests||1,d=Object.entries(b).map(([a,b],d)=>{let e=b.requests||0,f=c>0?e/c*100:0;return{name:a,requests:e,tokens:(b.promptTokens||0)+(b.completionTokens||0),cost:b.cost||0,share:f.toFixed(1),shareNum:f,color:gn[d%gn.length]}});return d.sort((a,b)=>b.requests-a.requests),d},[a]);return(0,g.jsxs)("div",{className:"ui-card p-5 flex flex-col justify-between",children:[(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,g.jsx)("div",{className:"flex items-center gap-2",children:(0,g.jsx)("span",{className:"ui-eyebrow text-[10px] text-[var(--text-2)]",children:"PROVIDER DISTRIBUTION"})}),(0,g.jsxs)("span",{className:"font-mono text-[11px] text-[var(--text-3)] u-tnum",children:[b.length," upstream sources"]})]}),b.length>0&&(0,g.jsx)("div",{className:"mb-4",children:(0,g.jsx)("div",{className:"h-2 w-full bg-[var(--surface-inset)] border border-[var(--line)] rounded-full overflow-hidden flex gap-0.5",children:b.map(a=>(0,g.jsx)("div",{style:{width:`${Math.max(a.shareNum,2)}%`},className:`h-full ${a.color} transition-all`,title:`${a.name}: ${a.share}%`},a.name))})}),(0,g.jsx)("div",{className:"space-y-2.5",children:b.length>0?b.slice(0,5).map(a=>(0,g.jsxs)("div",{className:"dashboard-card-inset flex items-center justify-between p-2.5 rounded-[var(--r2)] bg-[var(--surface-inset)] border border-[var(--line)] text-xs font-mono",children:[(0,g.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,g.jsx)("span",{className:`size-2 rounded-full ${a.color}`}),(0,g.jsx)("span",{className:"text-[var(--text)] font-medium capitalize truncate max-w-[140px] sm:max-w-[200px]",children:a.name})]}),(0,g.jsxs)("div",{className:"flex items-center gap-4 text-right shrink-0",children:[(0,g.jsx)("span",{className:"text-[var(--text-3)] text-[11px] u-tnum",children:f3(a.tokens)}),(0,g.jsx)("span",{className:"text-[var(--text-3)] text-[11px] u-tnum",children:f4(a.cost)}),(0,g.jsxs)("span",{className:"text-[var(--text)] font-semibold u-tnum w-12",children:[a.share,"%"]})]})]},a.name)):(0,g.jsx)("div",{className:"dashboard-card-inset text-center py-8 text-xs font-mono text-[var(--text-3)] border border-dashed border-[var(--line)] rounded-[var(--r2)] bg-[var(--surface-inset)]",children:"No provider traffic logged for this period."})})]}),(0,g.jsx)("div",{className:"pt-3 mt-4 border-t border-[var(--line)] flex items-center justify-between text-xs font-mono",children:(0,g.jsxs)(gk(),{href:"/dashboard/providers",className:"text-[var(--text-2)] hover:text-[var(--text)] flex items-center gap-1 transition-colors",children:[(0,g.jsx)("span",{children:"Manage Upstreams"}),(0,g.jsx)(gl.A,{className:"size-3"})]})})]})}var gp=c(78407),gq=c(15828),gr=c(29813),gs=c(90069),gt=c(98153);function gu(a){if(!a)return"just now";let b=Math.floor((Date.now()-new Date(a))/1e3);return b<10?"just now":b<60?`${b}s ago`:b<3600?`${Math.floor(b/60)}m ago`:b<86400?`${Math.floor(b/3600)}h ago`:`${Math.floor(b/86400)}d ago`}function gv(a){let b=String(a||"ok").toLowerCase();return"ok"===b||"success"===b||"200"===b?(0,g.jsx)(gt.A,{variant:"success",children:"OK"}):"partial"===b||b.startsWith("3")||b.includes("stream")?(0,g.jsx)(gt.A,{variant:"warning",children:"Partial"}):(0,g.jsx)(gt.A,{variant:"error",children:b.startsWith("4")||b.startsWith("5")?b:"Error"})}function gw({initialRequests:a=[]}){let[b,c]=(0,h.useState)(a),[d,e]=(0,h.useState)(!1),[f,j]=(0,h.useState)(""),[k,l]=(0,h.useState)(!0),[m,n]=(0,h.useState)("table"),p=(0,h.useCallback)(async()=>{try{let a=await fetch("/api/usage/request-logs?format=json",{cache:"no-store"});if(a.ok){let b=await a.json();Array.isArray(b)&&c(b.slice(0,30))}}catch(a){console.error("Failed to fetch latest request logs:",a)}},[]),r=(0,h.useMemo)(()=>{if(!f.trim())return b;let a=f.toLowerCase().trim();return b.filter(b=>b.model&&b.model.toLowerCase().includes(a)||b.provider&&b.provider.toLowerCase().includes(a)||b.status&&String(b.status).toLowerCase().includes(a))},[b,f]);return(0,g.jsxs)("div",{className:"ui-card p-5 logs-table",children:[(0,g.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-4",children:[(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{className:"flex items-center gap-2",children:[(0,g.jsx)("span",{className:"ui-eyebrow text-[10px] text-[var(--text-2)]",children:"LATEST REQUESTS"}),(0,g.jsx)("span",{className:"text-[var(--text-3)]",children:"\xb7"}),(0,g.jsx)("span",{className:"text-xs text-[var(--text-3)]",children:"Live operational stream"})]}),(0,g.jsx)("p",{className:"text-xs text-[var(--text-3)] font-mono mt-0.5",children:"Real-time payload inspection & token throughput"})]}),(0,g.jsxs)("div",{className:"flex items-center gap-2 self-start sm:self-auto flex-wrap sm:flex-nowrap",children:[(0,g.jsxs)(f2,{value:m,onValueChange:n,"aria-label":"Request logs layout",containerClassName:"dashboard-segmented-control",className:"dashboard-segment-highlight",children:[(0,g.jsx)("button",{"data-id":"table",type:"button","aria-label":"Table view",className:"dashboard-segment",title:"Table View (Desktop analysis)",children:(0,g.jsx)(gp.A,{className:"size-3.5"})}),(0,g.jsx)("button",{"data-id":"cards",type:"button","aria-label":"Cards view",className:"dashboard-segment",title:"Cards View (Touch-friendly)",children:(0,g.jsx)(gq.A,{className:"size-3.5"})})]}),(0,g.jsxs)("div",{className:"relative",children:[(0,g.jsx)(gr.A,{className:"size-3.5 absolute left-2.5 top-1/2 -translate-y-1/2 text-[var(--text-3)]"}),(0,g.jsx)("input",{type:"text",value:f,onChange:a=>j(a.target.value),placeholder:"Filter model / status...",className:"h-8 pl-8 pr-3 text-xs font-mono bg-[var(--surface-2)] border border-[var(--line-2)] rounded-[var(--r1)] text-[var(--text)] placeholder-[var(--text-3)] focus:outline-none focus:border-[var(--accent-line)] transition-colors w-[160px] sm:w-[200px]"})]}),(0,g.jsxs)("button",{type:"button",onClick:()=>l(!k),className:(0,t.cn)("px-2.5 h-8 rounded-[var(--r1)] text-xs font-mono flex items-center gap-1.5 transition-colors cursor-pointer",k?"text-[var(--pos)]":"text-[var(--text-2)] hover:text-[var(--text)]"),title:k?"Live polling active (6s)":"Polling paused",children:[(0,g.jsx)("span",{className:(0,t.cn)("size-1.5 rounded-full",k?"bg-[var(--pos)] animate-pulse":"bg-[var(--text-3)]")}),(0,g.jsx)("span",{children:k?"Live":"Paused"})]}),(0,g.jsx)("button",{type:"button",onClick:()=>{e(!0),p().finally(()=>e(!1))},"aria-label":"Refresh logs","aria-busy":d,className:"dashboard-refresh",title:"Refresh logs",children:(0,g.jsx)(i.A,{className:(0,t.cn)("size-3.5",d&&"animate-spin motion-reduce:animate-none text-[var(--text)]")})})]})]}),"cards"===m?(0,g.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",children:r.length>0?r.slice(0,15).map((a,b)=>{let c=a.promptTokens||a.prompt_tokens||0,d=a.completionTokens||a.completion_tokens||0,e=a.durationMs||a.duration||0,f=a.ttftMs||a.ttft||0;return(0,g.jsxs)("div",{className:"dashboard-card-inset p-3.5 rounded-[var(--r2)] bg-[var(--surface-inset)] border border-[var(--line)] flex flex-col justify-between gap-3 font-mono text-xs hover:border-[var(--line-2)] transition-colors",children:[(0,g.jsxs)("div",{className:"flex items-center justify-between",children:[gv(a.status),(0,g.jsx)("span",{className:"text-[var(--text-3)] text-[11px] u-tnum",children:gu(a.timestamp)})]}),(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{className:"font-semibold text-[var(--text)] truncate text-[13px]",title:a.model,children:a.model||"default"}),(0,g.jsx)("div",{className:"mt-1",children:(0,g.jsx)("span",{className:"px-1.5 py-0.5 rounded-[var(--r1)] bg-[var(--surface-2)] border border-[var(--line-2)] text-[10px] text-[var(--text-3)] uppercase tracking-wider",children:a.provider||"gateway"})})]}),(0,g.jsxs)("div",{className:"pt-2.5 border-t border-[var(--line)] grid grid-cols-3 gap-2 text-[11px]",children:[(0,g.jsxs)("div",{children:[(0,g.jsx)("span",{className:"text-[var(--text-3)] block text-[10px] uppercase",children:"Tokens"}),(0,g.jsxs)("span",{className:"text-[var(--text-2)] u-tnum flex items-center gap-0.5 mt-0.5",children:[(0,g.jsx)("span",{className:"text-[var(--text-3)]",children:f3(c)}),(0,g.jsx)("span",{className:"text-[var(--text-3)]",children:"/"}),(0,g.jsx)("span",{className:"text-[var(--pos)]",children:f3(d)})]})]}),(0,g.jsxs)("div",{children:[(0,g.jsx)("span",{className:"text-[var(--text-3)] block text-[10px] uppercase",children:"TTFT (ms)"}),(0,g.jsx)("span",{className:"text-[var(--text-2)] u-tnum block mt-0.5",children:f>0?`${Math.round(f)}ms`:"—"})]}),(0,g.jsxs)("div",{className:"text-right",children:[(0,g.jsx)("span",{className:"text-[var(--text-3)] block text-[10px] uppercase",children:"Latency"}),(0,g.jsx)("span",{className:"text-[var(--text)] u-tnum font-medium block mt-0.5",children:e>0?e>=1e3?`${(e/1e3).toFixed(2)}s`:`${Math.round(e)}ms`:"—"})]})]})]},a.id||`${a.timestamp}-${b}`)}):(0,g.jsx)("div",{className:"dashboard-card-inset col-span-full py-10 text-center text-[var(--text-3)] text-xs font-mono border border-dashed border-[var(--line)] rounded-[var(--r2)] bg-[var(--surface-inset)]",children:f?"No requests matching filter":"No recent requests logged yet."})}):(0,g.jsx)("div",{className:"overflow-x-auto custom-scrollbar",children:(0,g.jsxs)("table",{className:"w-full text-left border-collapse text-xs font-mono",children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{className:"border-b border-[var(--line-2)] text-[11px] text-[var(--text-3)] uppercase tracking-wider",children:[(0,g.jsx)("th",{className:"py-2.5 px-3 font-medium",children:"Status"}),(0,g.jsx)("th",{className:"py-2.5 px-3 font-medium",children:"Model"}),(0,g.jsx)("th",{className:"py-2.5 px-3 font-medium",children:"Provider"}),(0,g.jsx)("th",{className:"py-2.5 px-3 font-medium text-right",children:"Tokens In / Out"}),(0,g.jsx)("th",{className:"py-2.5 px-3 font-medium text-right",children:"TTFT (ms)"}),(0,g.jsx)("th",{className:"py-2.5 px-3 font-medium text-right",children:"Latency (ms)"}),(0,g.jsx)("th",{className:"py-2.5 px-3 font-medium text-right",children:"Timestamp"})]})}),(0,g.jsx)("tbody",{className:"divide-y divide-[var(--line)]",children:r.length>0?r.slice(0,15).map((a,b)=>{let c=a.promptTokens||a.prompt_tokens||0,d=a.completionTokens||a.completion_tokens||0,e=a.durationMs||a.duration||0,f=a.ttftMs||a.ttft||0;return(0,g.jsxs)("tr",{className:"hover:bg-[var(--surface-2)] transition-colors group",children:[(0,g.jsx)("td",{className:"py-2.5 px-3 whitespace-nowrap",children:gv(a.status)}),(0,g.jsx)("td",{className:"py-2.5 px-3 whitespace-nowrap",children:(0,g.jsx)("span",{className:"font-semibold text-[var(--text)]",title:a.model,children:a.model||"default"})}),(0,g.jsx)("td",{className:"py-2.5 px-3 whitespace-nowrap",children:(0,g.jsx)("span",{className:"px-1.5 py-0.5 rounded-[var(--r1)] bg-[var(--surface-2)] border border-[var(--line-2)] text-[10px] text-[var(--text-3)] uppercase tracking-wider",children:a.provider||"gateway"})}),(0,g.jsx)("td",{className:"py-2.5 px-3 whitespace-nowrap text-right",children:(0,g.jsxs)("div",{className:"inline-flex items-center gap-2 text-[var(--text-2)]",children:[(0,g.jsxs)("span",{className:"text-[var(--text-3)] flex items-center u-tnum",children:[(0,g.jsx)(o,{className:"size-3 text-[var(--text-3)]"}),f3(c)]}),(0,g.jsx)("span",{className:"text-[var(--text-3)]",children:"\xb7"}),(0,g.jsxs)("span",{className:"text-[var(--pos)] flex items-center u-tnum",children:[(0,g.jsx)(q,{className:"size-3 text-[var(--pos)]"}),f3(d)]})]})}),(0,g.jsx)("td",{className:"py-2.5 px-3 whitespace-nowrap text-right text-[var(--text-3)] u-tnum",children:f>0?`${Math.round(f)}ms`:"—"}),(0,g.jsx)("td",{className:"py-2.5 px-3 whitespace-nowrap text-right text-[var(--text)] font-medium u-tnum",children:e>0?e>=1e3?`${(e/1e3).toFixed(2)}s`:`${Math.round(e)}ms`:"—"}),(0,g.jsx)("td",{className:"py-2.5 px-3 whitespace-nowrap text-right text-[var(--text-3)] text-[11px] u-tnum",children:gu(a.timestamp)})]},a.id||`${a.timestamp}-${b}`)}):(0,g.jsx)("tr",{children:(0,g.jsx)("td",{colSpan:7,className:"py-10 text-center text-[var(--text-3)] text-xs",children:f?"No requests matching filter":"No recent requests logged yet."})})})]})}),(0,g.jsxs)("div",{className:"pt-3 mt-3 border-t border-[var(--line)] flex items-center justify-between text-xs font-mono text-[var(--text-3)]",children:[(0,g.jsxs)("span",{children:["Showing ",Math.min(r.length,15)," most recent payloads"]}),(0,g.jsxs)("div",{className:"flex items-center gap-3",children:[(0,g.jsxs)(gk(),{href:"/dashboard/usage?tab=details",className:"text-[var(--text-2)] hover:text-[var(--text)] flex items-center gap-1 transition-colors",children:[(0,g.jsx)("span",{children:"Full Usage Logs"}),(0,g.jsx)(gs.A,{className:"size-3"})]}),(0,g.jsx)("span",{className:"text-[var(--text-3)]",children:"\xb7"}),(0,g.jsxs)(gk(),{href:"/dashboard/console-log",className:"text-[var(--text-2)] hover:text-[var(--text)] flex items-center gap-1 transition-colors",children:[(0,g.jsx)("span",{children:"Console Raw Stream"}),(0,g.jsx)(gs.A,{className:"size-3"})]})]})]})]})}function gx({machineId:a}){let[b,c]=(0,h.useState)("7d"),[d,e]=(0,h.useState)(null),[f,i]=(0,h.useState)([]),[j,k]=(0,h.useState)([]),[l,m]=(0,h.useState)(!0),[n,o]=(0,h.useState)(!1),[p,q]=(0,h.useTransition)(),r=(0,h.useCallback)(async()=>{o(!0);try{let a=await fetch(`/api/usage/stats?period=${b}`);if(a.ok){let b=await a.json();e(b)}}catch(a){console.error("Failed to fetch stats:",a)}finally{m(!1),o(!1)}},[b]);return(0,g.jsxs)("div",{className:"dashboard-overview flex flex-col gap-6 w-full pb-10",children:[(0,g.jsx)(f6,{stats:d,connectionsCount:f.length,nodesCount:j.length,period:b,onPeriodChange:a=>{q(()=>{c(a)})},fetching:n||p,onRefresh:r}),(0,g.jsxs)("div",{className:"overview-analytics",children:[(0,g.jsx)(gi,{period:b}),(0,g.jsx)(gm,{stats:d})]}),(0,g.jsx)(go,{stats:d}),(0,g.jsx)(gw,{initialRequests:d?.recentRequests||[]})]})}},87250:(a,b,c)=>{"use strict";c.d(b,{D:()=>e});var d=c(54603);async function e(){return await (0,d.Xj)()}},87550:a=>{"use strict";a.exports=require("better-sqlite3")},87997:a=>{"use strict";a.exports=require("node:timers")},91645:a=>{"use strict";a.exports=require("net")},94735:a=>{"use strict";a.exports=require("events")},99596:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/root/workspace/JRouter/src/app/(dashboard)/dashboard/DashboardOverviewClient.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.")},"/root/workspace/JRouter/src/app/(dashboard)/dashboard/DashboardOverviewClient.js","default")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1260,2430,1273,9415,379,7911,1306,4642,3192,6070,4864,6457,4123,455,6777,412,6698],()=>b(b.s=7609));module.exports=c})();
|
|
1
|
+
(()=>{var a={};a.id=6337,a.ids=[6337],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")},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")},7609:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>v,handler:()=>x,routeModule:()=>w});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,30508))),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.t.bind(c,95547,23))),t={children:["",{children:["(dashboard)",{children:["dashboard",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,60685))),"/root/workspace/JRouter/src/app/(dashboard)/dashboard/page.js"]}]},{"global-error":[s,"next/dist/client/components/builtin/global-error.js"]},[]]},{layout:[n,"/root/workspace/JRouter/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,"/root/workspace/JRouter/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,u=(0,e.H)({tree:t,page:"/(dashboard)/dashboard/page",pathname:"/dashboard",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),v=u.__next_app__,w=u.routeModule,x=u.handler},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")},21820:a=>{"use strict";a.exports=require("os")},22088:(a,b,c)=>{Promise.resolve().then(c.bind(c,83529))},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},32467:a=>{"use strict";a.exports=require("node:http2")},33873:a=>{"use strict";a.exports=require("path")},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")},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},46293:a=>{"use strict";a.exports=require("sql.js")},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},54603:(a,b,c)=>{"use strict";c.d(b,{Xj:()=>q});var d=c(19713),e=c(73024),f=c.n(e),g=c(76760),h=c.n(g),i=c(77598),j=c.n(i),k=c(49120);let l=h().join(k.n,"machine-id"),m=h().join(k.n,"auth"),n=h().join(m,"cli-secret"),o=null,p=null;async function q(a=null){let b=a||process.env.MACHINE_ID_SALT||"endpoint-proxy-salt",c=function(){if(o)return o;try{if(o=f().readFileSync(l,"utf8").trim())return o}catch{}try{o=(0,d.machineIdSync)()}catch{o=j().randomUUID()}try{f().mkdirSync(k.n,{recursive:!0}),f().writeFileSync(l,o,{mode:384})}catch{}return o}(),e="jr-cli-auth"===b?function(){if(p)return p;try{if(p=f().readFileSync(n,"utf8").trim())return p}catch{}p=j().randomBytes(32).toString("hex");try{f().mkdirSync(m,{recursive:!0}),f().writeFileSync(n,p,{mode:384})}catch{}return p}():"";return j().createHash("sha256").update(c+b+e).digest("hex").substring(0,16)}},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")},58536:(a,b,c)=>{Promise.resolve().then(c.bind(c,99596))},60685:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>g});var d=c(5735),e=c(87250),f=c(99596);async function g(){let a=await (0,e.D)();return(0,d.jsx)(f.default,{machineId:a})}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71553:a=>{"use strict";a.exports=require("node:dns/promises")},71622:a=>{"use strict";a.exports=import("open")},72271:a=>{"use strict";a.exports=require("@aws-sdk/credential-providers")},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")},79868:a=>{"use strict";a.exports=require("node:sqlite")},81630:a=>{"use strict";a.exports=require("http")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},83529:(a,b,c)=>{"use strict";let d,e,f;c.d(b,{default:()=>gx});var g=c(48249),h=c(67484),i=c(27993),j=c(54183),k=c(99646),l=c(26773),m=c(84483);let n={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};n.node;let o=(0,m.A)(n),p={name:"arrow-down-left",size:24,node:[["path",{d:"M17 7 7 17",key:"15tmo1"}],["path",{d:"M17 17H7V7",key:"1org7z"}]]};p.node;let q=(0,m.A)(p);var r=c(12747),s=c(9880),t=c(71404);let u={current:null},v={current:!1},w="u">typeof window;function x(){if(v.current=!0,w)if(window.matchMedia){let a=window.matchMedia("(prefers-reduced-motion)"),b=()=>u.current=a.matches;a.addEventListener("change",b),b()}else u.current=!1}let y=(0,h.createContext)({}),z=(0,h.createContext)(null),A=a=>a,B={},C=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function D(a,b,c={delta:0,timestamp:0,isProcessing:!1}){let d=!1,e=!0,f=()=>d=!0,g=C.reduce((a,b)=>(a[b]=function(a){let b=new Set,c=new Set,d=!1,e=!1,f=new Set,g={delta:0,timestamp:0,isProcessing:!1};function h(b){f.has(b)&&(c.add(b),a()),b(g)}let i={schedule:(a,e=!1,g=!1)=>{let h=g&&d?b:c;return e&&f.add(a),h.add(a),a},cancel:a=>{c.delete(a),f.delete(a)},process:a=>{if(g=a,d){e=!0;return}d=!0;let f=b;b=c,c=f,b.forEach(h),b.clear(),d=!1,e&&(e=!1,i.process(a))}};return i}(f),a),{}),{setup:h,read:i,resolveKeyframes:j,preUpdate:k,update:l,preRender:m,render:n,postRender:o}=g,p=()=>{let f=B.useManualTiming,g=f?c.timestamp:performance.now();d=!1,f||(c.delta=e?1e3/60:Math.max(Math.min(g-c.timestamp,40),1)),c.timestamp=g,c.isProcessing=!0,h.process(c),i.process(c),j.process(c),k.process(c),l.process(c),m.process(c),n.process(c),o.process(c),c.isProcessing=!1,d&&b&&(e=!1,a(p))};return{schedule:C.reduce((b,f)=>{let h=g[f];return b[f]=(b,f=!1,g=!1)=>(!d&&(d=!0,e=!0,c.isProcessing||a(p)),h.schedule(b,f,g)),b},{}),cancel:a=>{for(let b=0;b<C.length;b++)g[C[b]].cancel(a)},state:c,steps:g}}let E={delta:0,timestamp:0,isProcessing:!1},{schedule:F,cancel:G,steps:H}=D("u">typeof requestAnimationFrame?requestAnimationFrame:A,!0,E),I="u">typeof window?h.useLayoutEffect:h.useEffect,J=a=>!a.isLayoutDirty&&a.willUpdate(!1),K=({children:a,id:b,inherit:c=!0})=>{let d=(0,h.useContext)(y),e=(0,h.useContext)(z),[f,i]=function(){let a,b=(a=(0,h.useRef)(!1),I(()=>(a.current=!0,()=>{a.current=!1}),[]),a),[c,d]=(0,h.useState)(0),e=(0,h.useCallback)(()=>{b.current&&d(c+1)},[c]);return[(0,h.useCallback)(()=>F.postRender(e),[e]),c]}(),j=(0,h.useRef)(null),k=d.id||e;if(null===j.current){let a,e,f,g;(!0==(!0===(g=c))||"id"===g)&&k&&(b=b?k+"-"+b:k),j.current={id:b,group:!0===c&&d.group||(a=new Set,e=new WeakMap,{add:b=>{a.add(b),e.set(b,b.addEventListener("willUpdate",f))},remove:b=>{a.delete(b);let c=e.get(b);c&&(c(),e.delete(b)),f()},dirty:f=()=>a.forEach(J)})}}let l=(0,h.useMemo)(()=>({...j.current,forceRender:f}),[i]);return(0,g.jsx)(y.Provider,{value:l,children:a})},L=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],M=new Set([...L,"pathRotation"]),N=(a,b,c)=>c>b?b:c<a?a:c,O={test:a=>"number"==typeof a,parse:parseFloat,transform:a=>a},P={...O,transform:a=>N(0,1,a)},Q={...O,default:1},R=a=>Math.round(1e5*a)/1e5,S=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,T=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,U=(a,b)=>c=>!!("string"==typeof c&&T.test(c)&&c.startsWith(a)||b&&null!=c&&Object.prototype.hasOwnProperty.call(c,b)),V=(a,b,c)=>d=>{if("string"!=typeof d)return d;let[e,f,g,h]=d.match(S);return{[a]:parseFloat(e),[b]:parseFloat(f),[c]:parseFloat(g),alpha:void 0!==h?parseFloat(h):1}},W={...O,transform:a=>Math.round(N(0,255,a))},X={test:U("rgb","red"),parse:V("red","green","blue"),transform:({red:a,green:b,blue:c,alpha:d=1})=>"rgba("+W.transform(a)+", "+W.transform(b)+", "+W.transform(c)+", "+R(P.transform(d))+")"},Y={test:U("#"),parse:function(a){let b="",c="",d="",e="";return a.length>5?(b=a.substring(1,3),c=a.substring(3,5),d=a.substring(5,7),e=a.substring(7,9)):(b=a.substring(1,2),c=a.substring(2,3),d=a.substring(3,4),e=a.substring(4,5),b+=b,c+=c,d+=d,e+=e),{red:parseInt(b,16),green:parseInt(c,16),blue:parseInt(d,16),alpha:e?parseInt(e,16)/255:1}},transform:X.transform},Z=a=>({test:b=>"string"==typeof b&&b.endsWith(a)&&1===b.split(" ").length,parse:parseFloat,transform:b=>`${b}${a}`}),$=Z("deg"),_=Z("%"),aa=Z("px"),ab=Z("vh"),ac=Z("vw"),ad={..._,parse:a=>_.parse(a)/100,transform:a=>_.transform(100*a)},ae={test:U("hsl","hue"),parse:V("hue","saturation","lightness"),transform:({hue:a,saturation:b,lightness:c,alpha:d=1})=>"hsla("+Math.round(a)+", "+_.transform(R(b))+", "+_.transform(R(c))+", "+R(P.transform(d))+")"},af={test:a=>X.test(a)||Y.test(a)||ae.test(a),parse:a=>X.test(a)?X.parse(a):ae.test(a)?ae.parse(a):Y.parse(a),transform:a=>"string"==typeof a?a:a.hasOwnProperty("red")?X.transform(a):ae.transform(a),getAnimatableNone:a=>{let b=af.parse(a);return b.alpha=0,af.transform(b)}},ag=new RegExp(S.source),ah=RegExp(/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu.source,"i"),ai="number",aj="color",ak=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function al(a){let b=a.toString(),c=[],d={color:[],number:[],var:[]},e=[],f=0,g=b.replace(ak,a=>(af.test(a)?(d.color.push(f),e.push(aj),c.push(af.parse(a))):a.startsWith("var(")?(d.var.push(f),e.push("var"),c.push(a)):(d.number.push(f),e.push(ai),c.push(parseFloat(a))),++f,"${}")).split("${}");return{values:c,split:g,indexes:d,types:e}}function am({split:a,types:b}){let c=a.length;return d=>{let e="";for(let f=0;f<c;f++)if(e+=a[f],void 0!==d[f]){let a=b[f];a===ai?e+=R(d[f]):a===aj?e+=af.transform(d[f]):e+=d[f]}return e}}let an={test:function(a){return isNaN(a)&&"string"==typeof a&&(ag.test(a)||ah.test(a))},parse:function(a){return al(a).values},createTransformer:function(a){return am(al(a))},getAnimatableNone:function(a){let b=al(a);return am(b)(b.values.map((a,c)=>((a,b)=>"number"==typeof a?b?.trim().endsWith("/")?a:0:"number"==typeof a?0:af.test(a)?af.getAnimatableNone(a):a)(a,b.split[c])))}},ao=new Set(["brightness","contrast","saturate","opacity"]);function ap(a){let[b,c]=a.slice(0,-1).split("(");if("drop-shadow"===b)return a;let[d]=c.match(S)||[];if(!d)return a;let e=c.replace(d,""),f=+!!ao.has(b);return d!==c&&(f*=100),b+"("+f+e+")"}let aq=/\b([a-z-]*)\(.*?\)/gu,ar={...an,getAnimatableNone:a=>{let b=a.match(aq);return b?b.map(ap).join(" "):a}},as={...an,getAnimatableNone:a=>{let b=an.parse(a);return an.createTransformer(a)(b.map(a=>"number"==typeof a?0:"object"==typeof a?{...a,alpha:1}:a))}},at={...O,transform:Math.round},au={borderWidth:aa,borderTopWidth:aa,borderRightWidth:aa,borderBottomWidth:aa,borderLeftWidth:aa,borderRadius:aa,borderTopLeftRadius:aa,borderTopRightRadius:aa,borderBottomRightRadius:aa,borderBottomLeftRadius:aa,width:aa,maxWidth:aa,height:aa,maxHeight:aa,top:aa,right:aa,bottom:aa,left:aa,inset:aa,insetBlock:aa,insetBlockStart:aa,insetBlockEnd:aa,insetInline:aa,insetInlineStart:aa,insetInlineEnd:aa,padding:aa,paddingTop:aa,paddingRight:aa,paddingBottom:aa,paddingLeft:aa,paddingBlock:aa,paddingBlockStart:aa,paddingBlockEnd:aa,paddingInline:aa,paddingInlineStart:aa,paddingInlineEnd:aa,margin:aa,marginTop:aa,marginRight:aa,marginBottom:aa,marginLeft:aa,marginBlock:aa,marginBlockStart:aa,marginBlockEnd:aa,marginInline:aa,marginInlineStart:aa,marginInlineEnd:aa,fontSize:aa,backgroundPositionX:aa,backgroundPositionY:aa,rotate:$,pathRotation:$,rotateX:$,rotateY:$,rotateZ:$,scale:Q,scaleX:Q,scaleY:Q,scaleZ:Q,skew:$,skewX:$,skewY:$,distance:aa,translateX:aa,translateY:aa,translateZ:aa,x:aa,y:aa,z:aa,perspective:aa,transformPerspective:aa,opacity:P,originX:ad,originY:ad,originZ:aa,zIndex:at,fillOpacity:P,strokeOpacity:P,numOctaves:at},av={...au,color:af,backgroundColor:af,outlineColor:af,fill:af,stroke:af,borderColor:af,borderTopColor:af,borderRightColor:af,borderBottomColor:af,borderLeftColor:af,filter:ar,WebkitFilter:ar,mask:as,WebkitMask:as},aw=a=>av[a],ax=()=>({translate:0,scale:1,origin:0,originPoint:0}),ay=()=>({x:ax(),y:ax()}),az=()=>({min:0,max:0}),aA=()=>({x:az(),y:az()}),aB=a=>!!(a&&a.getVelocity),aC=new Set(["width","height","top","left","right","bottom",...L]),aD=[O,aa,_,$,ac,ab,{test:a=>"auto"===a,parse:a=>a}],aE=a=>aD.find(b=>b.test(a)),aF=()=>{},aG=()=>{},aH=a=>b=>"string"==typeof b&&b.startsWith(a),aI=aH("--"),aJ=aH("var(--"),aK=a=>!!aJ(a)&&aL.test(a.split("/*")[0].trim()),aL=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function aM(a){return"string"==typeof a&&a.split("/*")[0].includes("var(--")}let aN=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,aO=new Set([ar,as]);function aP(a,b){let c=aw(a);return aO.has(c)||(c=an),c.getAnimatableNone?c.getAnimatableNone(b):void 0}let aQ=a=>180*a/Math.PI,aR=a=>aT(aQ(Math.atan2(a[1],a[0]))),aS={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:aR,rotateZ:aR,skewX:a=>aQ(Math.atan(a[1])),skewY:a=>aQ(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},aT=a=>((a%=360)<0&&(a+=360),a),aU=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),aV=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),aW={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:aU,scaleY:aV,scale:a=>(aU(a)+aV(a))/2,rotateX:a=>aT(aQ(Math.atan2(a[6],a[5]))),rotateY:a=>aT(aQ(Math.atan2(-a[2],a[0]))),rotateZ:aR,rotate:aR,skewX:a=>aQ(Math.atan(a[4])),skewY:a=>aQ(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function aX(a){return+!!a.includes("scale")}function aY(a,b){let c,d;if(!a||"none"===a)return aX(b);let e=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(e)c=aW,d=e;else{let b=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);c=aS,d=b}if(!d)return aX(b);let f=c[b],g=d[1].split(",").map(aZ);return"function"==typeof f?f(g):g[f]}function aZ(a){return parseFloat(a.trim())}let a$=a=>a===O||a===aa,a_=new Set(["x","y","z"]),a0=L.filter(a=>!a_.has(a)),a1=new Set(["bottom","right"]);function a2(a,b,c,d,e,f){let g=parseFloat(a);if(!isNaN(g))return g;let{min:h,max:i}=b()[c],j=i-h;return"border-box"===f?j:j-parseFloat(d)-parseFloat(e)}let a3={width:({width:a,paddingLeft:b="0",paddingRight:c="0",boxSizing:d},e)=>a2(a,e,"x",b,c,d),height:({height:a,paddingTop:b="0",paddingBottom:c="0",boxSizing:d},e)=>a2(a,e,"y",b,c,d),top:({top:a})=>parseFloat(a),left:({left:a})=>parseFloat(a),bottom:({top:a},b)=>{let{y:c}=b();return parseFloat(a)+(c.max-c.min)},right:({left:a},b)=>{let{x:c}=b();return parseFloat(a)+(c.max-c.min)},x:({transform:a})=>aY(a,"x"),y:({transform:a})=>aY(a,"y")};a3.translateX=a3.x,a3.translateY=a3.y;let a4=new Set,a5=!1,a6=!1,a7=!1;function a8(){if(a6){let a=[],b=new Set,c=new Set;a4.forEach(d=>{d.needsMeasurement&&(a.push(d),b.add(d.element),a1.has(d.name)&&c.add(d.element))});let d=new Map;c.forEach(a=>{let b,c=(b=[],a0.forEach(c=>{let d=a.getValue(c);if(void 0!==d){let a=d.get(),e=+!!c.startsWith("scale");if(a===e)return;b.push([c,a]),d.set(e)}}),b);c.length&&(d.set(a,c),a.render())}),a.forEach(a=>a.measureInitialState()),b.forEach(a=>{a.render();let b=d.get(a);b&&b.forEach(([b,c])=>{a.getValue(b)?.set(c)})}),a.forEach(a=>a.measureEndState()),a.forEach(a=>{void 0!==a.suspendedScrollY&&window.scrollTo(0,a.suspendedScrollY)})}a6=!1,a5=!1,a4.forEach(a=>a.complete(a7)),a4.clear()}function a9(){a4.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(a6=!0)})}class ba{constructor(a,b,c,d,e,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=b,this.name=c,this.motionValue=d,this.element=e,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(a4.add(this),a5||(a5=!0,F.read(a9),F.resolveKeyframes(a8))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:a,name:b,element:c,motionValue:d}=this;if(null===a[0]){let e=d?.get(),f=a[a.length-1];if(void 0!==e)a[0]=e;else if(c&&b){let d=function(a,b,c){if("string"==typeof a){if(/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a)||/^0[^.\s]+$/u.test(a))return parseFloat(a);if(!an.test(a)&&an.test(c))return aP(b,c)}return a??void 0}(c.readValue(b,f),b,f);void 0!==d&&(a[0]=d)}void 0===a[0]&&(a[0]=f),d&&void 0===e&&d.set(a[0])}for(let b=1;b<a.length;b++)a[b]??(a[b]=a[b-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),a4.delete(this)}cancel(){"scheduled"===this.state&&(a4.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let bb=new Set(["auto","none","0"]);class bc extends ba{constructor(a,b,c,d,e){super(a,b,c,d,e,!0)}readKeyframes(){let{unresolvedKeyframes:a,element:b,name:c}=this;if(!b||!b.current)return;super.readKeyframes();for(let c=0;c<a.length;c++){let d=a[c];if("string"==typeof d&&aK(d=d.trim())){let e=function a(b,c,d=1){aG(`Max CSS variable fallback depth detected in property "${b}". This may indicate a circular fallback dependency.`);let[e,f]=function(a){let b=aN.exec(a);if(!b)return[,];let[,c,d,e]=b;return[`--${c??d}`,e]}(b);if(!e)return;let g=window.getComputedStyle(c).getPropertyValue(e);if(g){let a=g.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a)?parseFloat(a):a}return aK(f)?a(f,c,d+1):f}(d,b.current);void 0!==e&&(a[c]=e),c===a.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!aC.has(c)||2!==a.length)return;let[d,e]=a;if("number"==typeof d&&"number"==typeof e)return;let f=aE(d),g=aE(e);if(aM(d)!==aM(e)&&a3[c]){this.needsMeasurement=!0;return}if(f!==g)if(a$(f)&&a$(g))for(let b=0;b<a.length;b++){let c=a[b];"string"==typeof c&&(a[b]=parseFloat(c))}else a3[c]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:a,name:b}=this,c=[];for(let b=0;b<a.length;b++)(null===a[b]||function(a){if("number"==typeof a)return 0===a;if(null===a)return!0;return"none"===a||"0"===a||/^0[^.\s]+$/u.test(a)}(a[b]))&&c.push(b);c.length&&function(a,b,c){let d,e=0;for(;e<a.length&&!d;){let b=a[e];"string"==typeof b&&!bb.has(b)&&function(a){let b=a.toString();return ag.test(b)||ah.test(b)}(b)&&(d=a[e]),e++}if(d&&c)for(let e of b)a[e]!==d&&(a[e]=aP(c,d))}(a,c,b)}measure(){let{element:a,name:b}=this;return a3[b](window.getComputedStyle(a.current),()=>a.measureViewportBox())}measureInitialState(){let{element:a,unresolvedKeyframes:b,name:c}=this;if(!a||!a.current)return;"height"===c&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),b[0]=this.measuredOrigin;let d=b[b.length-1];void 0!==d&&this.motionValue?.jump(d,!1)}measureEndState(){let{element:a,unresolvedKeyframes:b}=this;if(!a||!a.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let c=b.length-1,d=b[c];b[c]=this.measure(),null!==d&&void 0===this.finalKeyframe&&(this.finalKeyframe=d),this.removedTransforms?.length&&this.removedTransforms.forEach(([b,c])=>{a.getValue(b).set(c)}),this.resolveNoneKeyframes()}}let bd=a=>1e3*a;function be(a,b){-1===a.indexOf(b)&&a.push(b)}function bf(a,b){let c=a.indexOf(b);c>-1&&a.splice(c,1)}class bg{constructor(){this.subscriptions=[]}add(a){return be(this.subscriptions,a),()=>this.remove(a)}remove(a){bf(this.subscriptions,a)}notify(a,b,c){let d=this.subscriptions.length;if(d)if(1===d)this.subscriptions[0](a,b,c);else for(let e=0;e<d;e++){let d=this.subscriptions[e];d&&d(a,b,c)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function bh(a,b,c){b.startsWith("--")?a.style.setProperty(b,c):a.style[b]=c}function bi(a){let b;return()=>(void 0===b&&(b=a()),b)}let bj={};function bk(a,b){let c=bi(a);return()=>bj[b]??c()}let bl=bk(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),bm=a=>null!==a;function bn(a,{repeat:b,repeatType:c="loop"},d,e=1){let f=a.filter(bm),g=e<0||b&&"loop"!==c&&b%2==1?0:f.length-1;return g&&void 0!==d?d:f[g]}class bo{constructor(){this.isResolved=!1}get finished(){return this._finished||(this._finished=this.isResolved?Promise.resolve():new Promise(a=>{this._resolve=a})),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(a,b){return this.finished.then(a,b)}}function bp(){d=void 0}let bq={now:()=>(void 0===d&&bq.set(E.isProcessing||B.useManualTiming?E.timestamp:performance.now()),d),set:a=>{d=a,queueMicrotask(bp)}};function br(a,b){return{kind:a,animation:b,timestamp:bq.now(),frameTimestamp:E.timestamp,frameIsProcessing:E.isProcessing}}function bs(a,b,c){let d=globalThis.__MOTION_INSPECT__;if(d)try{d({...br("animation-start",a),options:c?{...b,...c}:b})}catch{}}let bt=a=>Array.isArray(a)&&"number"==typeof a[0],bu=bk(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(a){return!1}return!0},"linearEasing"),bv=(a,b,c=10)=>{let d="",e=Math.max(Math.round(b/c),2);for(let b=0;b<e;b++)d+=Math.round(1e4*a(b/(e-1)))/1e4+", ";return`linear(${d.substring(0,d.length-2)})`},bw=([a,b,c,d])=>`cubic-bezier(${a}, ${b}, ${c}, ${d})`,bx={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:bw([0,.65,.55,1]),circOut:bw([.55,0,1,.45]),backIn:bw([.31,.01,.66,-.59]),backOut:bw([.33,1.53,.69,.99])};function by(a){return"function"==typeof a&&"applyToOptions"in a}class bz extends bo{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!a)return;const{element:b,name:c,keyframes:d,pseudoElement:e,allowFlatten:f=!1,finalKeyframe:g,onComplete:h}=a;this.isPseudoElement=!!e,this.allowFlatten=f,this.options=a,aG(a.type);const i=function({type:a,...b}){return by(a)&&bu()?a.applyToOptions(b):(b.duration??(b.duration=300),b.ease??(b.ease="easeOut"),b)}(a);this.animation=function(a,b,c,{delay:d=0,duration:e=300,repeat:f=0,repeatType:g="loop",ease:h="easeOut",times:i}={},j){let k={[b]:c};i&&(k.offset=i);let l=function a(b,c){if(b)return"function"==typeof b?bu()?bv(b,c):"ease-out":bt(b)?bw(b):Array.isArray(b)?b.map(b=>a(b,c)||bx.easeOut):bx[b]}(h,e);Array.isArray(l)&&(k.easing=l);let m={delay:d,duration:e,easing:Array.isArray(l)?"linear":l,fill:"both",iterations:f+1,direction:"reverse"===g?"alternate":"normal"};return j&&(m.pseudoElement=j),a.animate(k,m)}(b,c,d,i,e),!1===i.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!e){let a=bn(d,this.options,g,this.speed);this.updateMotionValue&&this.updateMotionValue(a),bh(b,c,a),this.animation.cancel()}h?.(),this.notifyFinished()},bs(this,a,i)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(a){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:a}=this;"idle"!==a&&"finished"!==a&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let a=this.options?.element;!this.isPseudoElement&&a?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:a=0}=this.options||{};return this.duration+a/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(a){let b=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=bd(a),b&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(a){a<0&&(this.finishedTime=null),this.animation.playbackRate=a}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(a){this.manualStartTime=this.animation.startTime=a}attachTimeline({timeline:a,onAttach:b,observe:c}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,a&&bl())?(this.animation.timeline=a,b?.(this.animation),A):c(this)}}let bA=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:bB}=D(queueMicrotask,!1),bC=(a,b)=>b?1e3/b*a:0,bD;class bE{constructor(a,b={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{let b=bq.now();if(this.updatedAt!==b&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(let a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(a),this.owner=b.owner}setCurrent(a){this.current=a,this.updatedAt=bq.now(),null===this.canTrackVelocity&&void 0!==a&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,b){var c;return"change"===a?this.onChangeSubscribe(b):((c=this.events)[a]||(c[a]=new bg)).add(b)}onChangeSubscribe(a){let{events:b}=this;return b.change||this.changeSubscriber?(b.change||(b.change=new bg,b.change.add(this.changeSubscriber),this.changeSubscriber=void 0),b.change.add(a)):this.changeSubscriber=a,()=>{this.changeSubscriber===a?this.changeSubscriber=void 0:b.change?.remove(a),this.stopIfUnobserved()}}stopIfUnobserved(){F.read(()=>{this.changeSubscriber||this.events.change?.getSize()||this.stop()})}clearListeners(){for(let a in this.changeSubscriber=void 0,this.events)this.events[a].clear()}attach(a,b){this.passiveEffect=a,this.stopPassiveEffect=b}set(a){this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a)}setWithVelocity(a,b,c){this.set(b),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-c}jump(a,b=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,b&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){let{current:a,changeSubscriber:b}=this;b?b(a):this.events.change?.notify(a)}addDependent(a){this.dependents||(this.dependents=new Set),this.dependents.add(a)}removeDependent(a){this.dependents&&this.dependents.delete(a)}get(){return bD&&bD.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let a=bq.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||a-this.updatedAt>30)return 0;let b=Math.min(this.updatedAt-this.prevUpdatedAt,30);return bC(parseFloat(this.current)-parseFloat(this.prevFrameValue),b)}start(a){return this.stop(),new Promise(b=>{let c;this.hasAnimated=!0;let d=!1;c=a(()=>{d=!0,this.events.animationComplete?.notify(),this.animation===c&&this.clearAnimation(),b()}),d||(this.animation=c),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function bF(a,b){return new bE(a,b)}let bG=new WeakMap;function bH(a){return null!==a&&"object"==typeof a&&"function"==typeof a.start}function bI(a){return"string"==typeof a||Array.isArray(a)}let bJ=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],bK=["initial",...bJ];function bL(a){if(bH(a.animate))return!0;for(let b=0;b<bK.length;b++)if(bI(a[bK[b]]))return!0;return!1}function bM(a){return!!(bL(a)||a.variants)}function bN(a){let b=[{},{}];return a?.values.forEach((a,c)=>{b[0][c]=a.get(),b[1][c]=a.getVelocity()}),b}function bO(a,b,c,d){if("function"==typeof b){let[e,f]=bN(d);b=b(void 0!==c?c:a.custom,e,f)}if("string"==typeof b&&(b=a.variants&&a.variants[b]),"function"==typeof b){let[e,f]=bN(d);b=b(void 0!==c?c:a.custom,e,f)}return b}let bP=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],bQ={};class bR{scrapeMotionValuesFromProps(a,b,c){return{}}constructor({parent:a,props:b,presenceContext:c,reducedMotionConfig:d,skipAnimations:e,blockInitialAnimation:f,visualState:g},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=ba,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let a=bq.now();this.renderScheduledAt<a&&(this.renderScheduledAt=a,F.render(this.render,!1,!0))};const{latestValues:i,renderState:j}=g;this.latestValues=i,this.baseTarget={...i},this.initialValues=b.initial?{...i}:{},this.renderState=j,this.parent=a,this.props=b,this.presenceContext=c,this.depth=a?a.depth+1:0,this.reducedMotionConfig=d,this.skipAnimationsConfig=e,this.options=h,this.blockInitialAnimation=!!f,this.isControllingVariants=bL(b),this.isVariantNode=bM(b),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const{willChange:k,...l}=this.scrapeMotionValuesFromProps(b,{},this);for(const a in l){const b=l[a];void 0!==i[a]&&aB(b)&&b.set(i[a])}}mount(a){if(this.hasBeenMounted)for(let a in this.initialValues)this.values.get(a)?.jump(this.initialValues[a]),this.latestValues[a]=this.initialValues[a];this.current=a,bG.set(a,this),this.projection&&!this.projection.instance&&this.projection.mount(a),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,b)=>this.bindToMotionValue(b,a)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(v.current||x(),this.shouldReduceMotion=u.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let a in this.projection&&this.projection.unmount(),G(this.notifyUpdate),G(this.render),this.valueSubscriptions.forEach(a=>a()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[a].clear();for(let a in this.features){let b=this.features[a];b&&(b.unmount(),b.isMounted=!1)}this.current=null}addChild(a){this.children.add(a),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(a)}removeChild(a){this.children.delete(a),this.enteringChildren&&this.enteringChildren.delete(a)}bindToMotionValue(a,b){let c;if(this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)(),b.accelerate&&bA.has(a)&&this.current instanceof HTMLElement){let{factory:c,keyframes:d,times:e,ease:f,duration:g}=b.accelerate,h=new bz({element:this.current,name:a,keyframes:d,times:e,ease:f,duration:bd(g)}),i=c(h);this.valueSubscriptions.set(a,()=>{i(),h.cancel()});return}let d=M.has(a);d&&this.onBindTransform&&this.onBindTransform();let e=b.on("change",b=>{this.latestValues[a]=b,this.props.onUpdate&&F.preRender(this.notifyUpdate),d&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,a,b)),this.valueSubscriptions.set(a,()=>{e(),c&&c()})}sortNodePosition(a){return this.current&&this.sortInstanceNodePosition&&this.type===a.type?this.sortInstanceNodePosition(this.current,a.current):0}updateFeatures(){let a="animation";for(a in bQ){let b=bQ[a];if(!b)continue;let{isEnabled:c,Feature:d}=b;if(!this.features[a]&&d&&c(this.props)&&(this.features[a]=new d(this)),this.features[a]){let b=this.features[a];b.isMounted?b.update():(b.mount(),b.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):aA()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,b){this.latestValues[a]=b}update(a,b){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=b;for(let b=0;b<bP.length;b++){let c=bP[b];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);let d=a["on"+c];d&&(this.propEventSubscriptions[c]=this.on(c,d))}this.prevMotionValues=function(a,b,c){for(let d in b){let e=b[d],f=c[d];if(aB(e))a.addValue(d,e);else if(aB(f))a.addValue(d,bF(e,{owner:a}));else if(f!==e)if(a.hasValue(d)){let b=a.getValue(d);!0===b.liveStyle?b.jump(e):b.hasAnimated||b.set(e)}else{let b=a.getStaticValue(d);a.addValue(d,bF(void 0!==b?b:e,{owner:a}))}}for(let d in c)void 0===b[d]&&a.removeValue(d);return b}(this,this.scrapeMotionValuesFromProps(a,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(a){return this.props.variants?this.props.variants[a]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(a){let b=this.getClosestVariantNode();if(b)return b.variantChildren&&b.variantChildren.add(a),()=>b.variantChildren.delete(a)}addValue(a,b){let c=this.values.get(a);if(b!==c){c&&this.removeValue(a),this.bindToMotionValue(a,b),this.values.set(a,b);let d=b.get();void 0!==d&&(this.latestValues[a]=d)}}removeValue(a){this.values.delete(a);let b=this.valueSubscriptions.get(a);b&&(b(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,b){if(this.props.values&&this.props.values[a])return this.props.values[a];let c=this.values.get(a);return void 0===c&&void 0!==b&&(c=bF(b??this.getDefaultValue?.(a),{owner:this}),this.addValue(a,c)),c}readValue(a,b){let c=void 0===this.latestValues[a]&&this.current?this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options):this.latestValues[a];if(null!=c){let d,e;"string"==typeof c&&(d=c,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(d)||(e=c,/^0[^.\s]+$/u.test(e)))?c=parseFloat(c):"number"!=typeof c&&!an.test(c)&&an.test(b)&&(c=aP(a,b)),this.setBaseTarget(a,aB(c)?c.get():c)}return aB(c)?c.get():c}setBaseTarget(a,b){this.baseTarget[a]=b}getBaseTarget(a){let b,{initial:c}=this.props;if("string"==typeof c||"object"==typeof c){let d=bO(this.props,c,this.presenceContext?.custom);d&&(b=d[a])}if(c&&void 0!==b)return b;let d=this.getBaseTargetFromProps(this.props,a);return void 0===d||aB(d)?void 0!==this.initialValues[a]&&void 0===b?void 0:this.baseTarget[a]:d}on(a,b){return this.events[a]||(this.events[a]=new bg),this.events[a].add(b)}notify(a,...b){this.events[a]&&this.events[a].notify(...b)}scheduleRenderMicrotask(){bB.render(this.render)}}class bS extends bR{constructor(){super(...arguments),this.KeyframeResolver=bc}sortInstanceNodePosition(a,b){return 2&a.compareDocumentPosition(b)?1:-1}getBaseTargetFromProps(a,b){let c=a.style;return c?c[b]:void 0}removeValueFromRenderState(a,{vars:b,style:c}){delete b[a],delete c[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:a}=this.props;aB(a)&&(this.childSubscription=a.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}function bT(a){return a.replace(/([A-Z])/g,a=>`-${a.toLowerCase()}`)}let bU=(a,b)=>b&&"number"==typeof a?b.transform(a):a,bV={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bW=L.length;function bX(a,b,c){let{style:d,vars:e,transformOrigin:f}=a,g=!1,h=!1;for(let a in b){let c=b[a];if(M.has(a)){g=!0;continue}if(aI(a)){e[a]=c;continue}{let b=bU(c,au[a]);a.startsWith("origin")?(h=!0,f[a]=b):d[a]=b}}if(!b.transform&&(g||c?d.transform=function(a,b,c){let d="",e=!0;for(let f=0;f<bW;f++){let g=L[f],h=a[g];if(void 0===h)continue;let i=!0;if("number"==typeof h)i=h===+!!g.startsWith("scale");else{let a=parseFloat(h);i=g.startsWith("scale")?1===a:0===a}if(!i||c){let a=bU(h,au[g]);if(!i){e=!1;let b=bV[g]||g;d+=`${b}(${a}) `}c&&(b[g]=a)}}let f=a.pathRotation;return f&&(e=!1,d+=`rotate(${bU(f,au.pathRotation)}) `),d=d.trim(),c?d=c(b,e?"":d):e&&(d="none"),d}(b,a.transform,c):d.transform&&(d.transform="none")),h){let{originX:a="50%",originY:b="50%",originZ:c=0}=f;d.transformOrigin=`${a} ${b} ${c}`}}let bY={offset:"stroke-dashoffset",array:"stroke-dasharray"},bZ={offset:"strokeDashoffset",array:"strokeDasharray"},b$=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function b_(a,{attrX:b,attrY:c,attrScale:d,pathLength:e,pathSpacing:f=1,pathOffset:g=0,...h},i,j,k){if(bX(a,h,j),i){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};let{attrs:l,style:m}=a;for(let a of b$)void 0!==l[a]&&(m[a]=l[a],delete l[a]);(m.transform||l.transformOrigin)&&(m.transformOrigin=l.transformOrigin??"50% 50%",delete l.transformOrigin),m.transform&&(m.transformBox=k?.transformBox??"fill-box",delete l.transformBox),void 0!==b&&(l.x=b),void 0!==c&&(l.y=c),void 0!==d&&(l.scale=d),void 0!==e&&function(a,b,c=1,d=0,e=!0){a.pathLength=1;let f=e?bY:bZ;a[f.offset]=`${-d}`,a[f.array]=`${b} ${c}`}(l,e,f,g,!1)}let b0=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),b1=a=>"string"==typeof a&&"svg"===a.toLowerCase();function b2(a,{style:b,vars:c},d,e){let f,g=a.style;for(f in b)g[f]=b[f];for(f in e?.applyProjectionStyles(g,d),c)g.setProperty(f,c[f])}let b3={};function b4(a,{layout:b,layoutId:c}){return M.has(a)||a.startsWith("origin")||(b||void 0!==c)&&(!!b3[a]||"opacity"===a)}function b5(a,b,c){let d=a.style,e=b?.style,f={};if(!d)return f;for(let b in d)(aB(d[b])||e&&aB(e[b])||b4(b,a)||c?.getValue(b)?.liveStyle!==void 0)&&(f[b]=d[b]);return f}function b6(a,b,c){let d=b5(a,b,c);for(let c in a)(aB(a[c])||aB(b[c]))&&(d[-1!==L.indexOf(c)?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c]=a[c]);return d}class b7 extends bS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=aA}getBaseTargetFromProps(a,b){return M.has(b)?super.getBaseTargetFromProps(a,b)??aX(b):a[b]}getDefaultValue(a){return M.has(a)?this.latestValues[a]??aX(a):void 0}readValueFromInstance(a,b){if(M.has(b)){let a=aw(b);return a&&a.default||0}if(b$.includes(b)){let c=getComputedStyle(a)[b];if("string"==typeof c&&c)return c.trim()}return b=b0.has(b)?b:bT(b),a.getAttribute(b)}scrapeMotionValuesFromProps(a,b,c){return b6(a,b,c)}build(a,b,c){b_(a,b,this.isSVGTag,c.transformTemplate,c.style)}renderInstance(a,b,c,d){for(let c in b2(a,b,void 0,d),b.attrs)a.setAttribute(b0.has(c)?c:bT(c),b.attrs[c])}mount(a){this.isSVGTag=b1(a.tagName),super.mount(a)}}function b8({top:a,left:b,right:c,bottom:d}){return{x:{min:b,max:c},y:{min:a,max:d}}}let b9=(a,b,c)=>a+(b-a)*c;function ca(a){return void 0===a||1===a}function cb({scale:a,scaleX:b,scaleY:c}){return!ca(a)||!ca(b)||!ca(c)}function cc(a){return cb(a)||cd(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function cd(a){var b,c;return(b=a.x)&&"0%"!==b||(c=a.y)&&"0%"!==c}function ce(a,b,c,d,e){return void 0!==e&&(a=d+e*(a-d)),d+c*(a-d)+b}function cf(a,b=0,c=1,d,e){a.min=ce(a.min,b,c,d,e),a.max=ce(a.max,b,c,d,e)}function cg(a,{x:b,y:c}){cf(a.x,b.translate,b.scale,b.originPoint),cf(a.y,c.translate,c.scale,c.originPoint)}function ch(a,b){a.min+=b,a.max+=b}function ci(a,b,c,d,e=.5){let f=b9(a.min,a.max,e);cf(a,b,c,f,d)}function cj(a,b){return"string"==typeof a?parseFloat(a)/100*(b.max-b.min):a}function ck(a,b,c){let d=c??a;ci(a.x,cj(b.x,d.x),b.scaleX,b.scale,b.originX),ci(a.y,cj(b.y,d.y),b.scaleY,b.scale,b.originY)}function cl(a,b){return b8(function(a,b){if(!b)return a;let c=b({x:a.left,y:a.top}),d=b({x:a.right,y:a.bottom});return{top:c.y,left:c.x,bottom:d.y,right:d.x}}(a.getBoundingClientRect(),b))}class cm extends bS{constructor(){super(...arguments),this.type="html",this.renderInstance=b2}mount(a){aG(a.style),super.mount(a)}readValueFromInstance(a,b){if(M.has(b))return this.projection?.isProjecting?aX(b):((a,b)=>{let{transform:c="none"}=getComputedStyle(a);return aY(c,b)})(a,b);{let c=window.getComputedStyle(a),d=(aI(b)?c.getPropertyValue(b):c[b])||0;return"string"==typeof d?d.trim():d}}measureInstanceViewportBox(a,{transformPagePoint:b}){return cl(a,b)}build(a,b,c){bX(a,b,c.transformTemplate)}scrapeMotionValuesFromProps(a,b,c){return b5(a,b,c)}}let cn=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function co(a){if("string"!=typeof a||a.includes("-"));else if(cn.indexOf(a)>-1||/[A-Z]/u.test(a))return!0;return!1}let cp=(0,h.createContext)({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"}),cq=(0,h.createContext)({});function cr(a){return Array.isArray(a)?a.join(" "):a}let cs=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ct(a,b,c){for(let d in b)aB(b[d])||b4(d,c)||(a[d]=b[d])}let cu=()=>({...cs(),attrs:{}}),cv=new Set(["animate","exit","variants","initial","style","values","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function cw(a){return a.startsWith("while")||a.startsWith("drag")&&"draggable"!==a||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||cv.has(a)}function cx(a){return aB(a)?a.get():a}let cy=(0,h.createContext)(null),cz=a=>(b,c)=>{let d,e=(0,h.useContext)(cq),f=(0,h.useContext)(cy),g=()=>(function({scrapeMotionValuesFromProps:a,createRenderState:b},c,d,e){return{latestValues:function(a,b,c,d){let e={},f=d(a,{});for(let a in f)e[a]=cx(f[a]);let{initial:g,animate:h}=a,i=bL(a),j=bM(a);b&&j&&!i&&!1!==a.inherit&&(void 0===g&&(g=b.initial),void 0===h&&(h=b.animate));let k=!!c&&!1===c.initial,l=(k=k||!1===g)?h:g;if(l&&"boolean"!=typeof l&&!bH(l)){let b=Array.isArray(l)?l:[l];for(let c=0;c<b.length;c++){let d=bO(a,b[c]);if(d){let{transitionEnd:a,transition:b,...c}=d;for(let a in c){let b=c[a];if(Array.isArray(b)){let a=k?b.length-1:0;b=b[a]}null!==b&&(e[a]=b)}for(let b in a)e[b]=a[b]}}}return e}(c,d,e,a),renderState:b()}})(a,b,e,f);return c?g():(null===(d=(0,h.useRef)(null)).current&&(d.current=g()),d.current)},cA=cz({scrapeMotionValuesFromProps:b5,createRenderState:cs}),cB=cz({scrapeMotionValuesFromProps:b6,createRenderState:cu}),cC={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},cD=!1,cE=Symbol.for("motionComponentSymbol");function cF(a,{forwardMotionProps:b=!1,type:c}={},d,e){d&&function(a){let b=(!function(){if(cD)return;let a={};for(let b in cC)a[b]={isEnabled:a=>cC[b].some(b=>!!a[b])};bQ=a,cD=!0}(),bQ);for(let c in a)b[c]={...b[c],...a[c]};bQ=b}(d);let f=c?"svg"===c:co(a),i=f?cB:cA;function j(c,d){var e;let j,k,l,m={...(0,h.useContext)(cp),...c,layoutId:function({layoutId:a}){let b=(0,h.useContext)(y).id;return b&&void 0!==a?b+"-"+a:a}(c)},{isStatic:n,isValidProp:o}=m,p=function(a){let{initial:b,animate:c}=function(a,b){if(bL(a)){let{initial:b,animate:c}=a;return{initial:!1===b||bI(b)?b:void 0,animate:bI(c)?c:void 0}}return!1!==a.inherit?b:{}}(a,(0,h.useContext)(cq));return(0,h.useMemo)(()=>({initial:b,animate:c}),[cr(b),cr(c)])}(c),q=i(c,n);return(0,g.jsxs)(cq.Provider,{value:p,children:[j&&p.visualElement?(0,g.jsx)(j,{visualElement:p.visualElement,...m}):null,function(a,b,c,{latestValues:d},e,f=!1,g,i){let j=(g??co(a)?function(a,b,c,d){let e=(0,h.useMemo)(()=>{let c=cu();return b_(c,b,b1(d),a.transformTemplate,a.style),{...c.attrs,style:{...c.style}}},[b]);if(a.style){let b={};ct(b,a.style,a),e.style={...b,...e.style}}return e}:function(a,b){let c,d,e={},f=(c=a.style||{},ct(d={},c,a),Object.assign(d,function({transformTemplate:a},b){return(0,h.useMemo)(()=>{let c=cs();return bX(c,b,a),Object.assign({},c.vars,c.style)},[b])}(a,b)),d);return a.drag&&!1!==a.dragListener&&(e.draggable=!1,f.userSelect=f.WebkitUserSelect=f.WebkitTouchCallout="none",f.touchAction=!0===a.drag?"none":`pan-${"x"===a.drag?"y":"x"}`),void 0===a.tabIndex&&(a.onTap||a.onTapStart||a.whileTap)&&(e.tabIndex=0),e.style=f,e})(b,d,e,a),k=function(a,b,c,d){let e={};for(let f in a)("values"!==f||"object"!=typeof a.values)&&!aB(a[f])&&((f.startsWith("on")?!cw(f):d?.(f)??!cw(f))||!0===c&&cw(f)||!b&&!cw(f)||a.draggable&&f.startsWith("onDrag"))&&(e[f]=a[f]);return e}(b,"string"==typeof a,f,i),l=a!==h.Fragment?{...k,...j,ref:c}:{},{children:m}=b,n=(0,h.useMemo)(()=>aB(m)?m.get():m,[m]);return(0,h.createElement)(a,{...l,children:n})}(a,c,(e=p.visualElement,k=(0,h.useRef)(d),(0,h.useInsertionEffect)(()=>{k.current=d}),l=(0,h.useRef)(null),(0,h.useCallback)(a=>{a&&q.onMount?.(a),e&&(a?e.mount(a):e.unmount());let b=k.current;if("function"==typeof b)if(a){let c=b(a);"function"==typeof c&&(l.current=c)}else l.current?(l.current(),l.current=null):b(a);else b&&(b.current=a)},[e])),q,n,b,f,o)]})}j.displayName=`motion.${"string"==typeof a?a:`create(${a.displayName??a.name??""})`}`;let k=(0,h.forwardRef)(j);return k[cE]=a,k}class cG{constructor(a){this.isMounted=!1,this.node=a}update(){}}function cH(a,b,c){let d=a.getProps();return bO(d,b,void 0!==c?c:d.custom,a)}function cI(a,b){if(a?.inherit&&b){let{inherit:c,...d}=a;return{...b,...d}}return a}function cJ(a,b){let c=a?.[b]??a?.default??a;return c!==a?cI(c,a):c}let cK=a=>Array.isArray(a);function cL(a,b){let c=a.getValue("willChange");if(aB(c)&&c.add)return c.add(b);if(!c&&B.WillChange){let c=new B.WillChange("auto");a.addValue("willChange",c),c.add(b)}}let cM="data-"+bT("framerAppearId"),cN=(...a)=>a.reduce((a,b)=>c=>b(a(c)));function cO(a,b,c){return(c<0&&(c+=1),c>1&&(c-=1),c<1/6)?a+(b-a)*6*c:c<.5?b:c<2/3?a+(b-a)*(2/3-c)*6:a}function cP(a,b){return c=>c>0?b:a}let cQ=(a,b,c)=>{let d=a*a,e=c*(b*b-d)+d;return e<0?0:Math.sqrt(e)},cR=[Y,X,ae];function cS(a){let b=cR.find(b=>b.test(a));if(!b)return aF(`'${a}' is not an animatable color. Use the equivalent color code instead.`),!1;let c=b.parse(a);return b===ae&&(c=function({hue:a,saturation:b,lightness:c,alpha:d}){a/=360,c/=100;let e=0,f=0,g=0;if(b/=100){let d=c<.5?c*(1+b):c+b-c*b,h=2*c-d;e=cO(h,d,a+1/3),f=cO(h,d,a),g=cO(h,d,a-1/3)}else e=f=g=c;return{red:Math.round(255*e),green:Math.round(255*f),blue:Math.round(255*g),alpha:d}}(c)),c}let cT=(a,b)=>{let c=cS(a),d=cS(b);if(!c||!d)return cP(a,b);let e={...c};return a=>(e.red=cQ(c.red,d.red,a),e.green=cQ(c.green,d.green,a),e.blue=cQ(c.blue,d.blue,a),e.alpha=b9(c.alpha,d.alpha,a),X.transform(e))},cU=new Set(["none","hidden"]);function cV(a,b){return c=>b9(a,b,c)}function cW(a){return"number"==typeof a?cV:"string"==typeof a?aK(a)?cP:af.test(a)?cT:cZ:Array.isArray(a)?cX:"object"==typeof a?af.test(a)?cT:cY:cP}function cX(a,b){let c=[...a],d=c.length,e=a.map((a,c)=>cW(a)(a,b[c]));return a=>{for(let b=0;b<d;b++)c[b]=e[b](a);return c}}function cY(a,b){let c={...a,...b},d={};for(let e in c)void 0!==a[e]&&void 0!==b[e]&&(d[e]=cW(a[e])(a[e],b[e]));return a=>{for(let b in d)c[b]=d[b](a);return c}}let cZ=(a,b)=>{let c=an.createTransformer(b),d=al(a),e=al(b);if(!(d.indexes.var.length===e.indexes.var.length&&d.indexes.color.length===e.indexes.color.length&&d.indexes.number.length>=e.indexes.number.length))return aF(`Complex values '${a}' and '${b}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),cP(a,b);if(cU.has(a)&&!e.values.length||cU.has(b)&&!d.values.length)return cU.has(a)?c=>c<=0?a:b:c=>c>=1?b:a;return cN(cX(function(a,b){let c=[],d={color:0,var:0,number:0};for(let e=0;e<b.values.length;e++){let f=b.types[e],g=a.indexes[f][d[f]],h=a.values[g]??0;c[e]=h,d[f]++}return c}(d,e),e.values),c)},c$=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function c_(a,b,c){if("number"==typeof a&&"number"==typeof b&&"number"==typeof c)return b9(a,b,c);if("string"==typeof a&&"string"==typeof b){let c=function(a,b){let c=c$.exec(a);if(!c)return;let d=c$.exec(b);if(!d||c[2]!==d[2])return;let e=c[2],f=parseFloat(c[1]),g=parseFloat(d[1]);return a=>R(b9(f,g,a))+e}(a,b);if(c)return c}return cW(a)(a,b)}let c0=a=>{let b=({timestamp:b})=>a(b);return{start:(a=!0)=>F.update(b,a),stop:()=>G(b),now:()=>E.isProcessing?E.timestamp:bq.now()}};function c1(a,b=50,c=2e4,d){let e=0,f=a.next(e);for(d?.push(f.value);!f.done&&e<c;)e+=b,f=a.next(e),d?.push(f.value);return e>=c?1/0:e}let c2=.01,c3=2,c4=.005,c5=.5,c6=a=>a<0?1/Math.max(1+a,.05):Math.max(1-a,.05);function c7(a,b){if(!(a>1))return 1;let c=Math.sqrt(a*a-1),d=a-c,e=a+c,f=2*c*Math.exp(-b)*(1+b);return c9(a=>e*Math.exp(-d*a)-d*Math.exp(-e*a)-f,a=>Math.exp(-e*a)-Math.exp(-d*a),b)/b}function c8(a,b){return a*Math.sqrt(1-b*b)}function c9(a,b,c){let d=c;for(let c=1;c<12;c++)d-=a(d)/b(d);return d}let da=(a,b)=>(b?a>=0:a>0)&&a<1/0;function db(a,b){if(da(a,b))return a}function dc(a=.3,b=.3){let c,d,e,f="object"!=typeof a?{visualDuration:a,keyframes:[0,1],bounce:b}:a,g=f.keyframes[0],h=f.keyframes[f.keyframes.length-1],i={done:!1,value:g},{stiffness:j,damping:k,mass:l,duration:m,isResolvedFromDuration:n,isTimeDefined:o}=function(a){let b=db(a.stiffness),c=db(a.damping,!0),d=db(a.mass),e={...a,stiffness:b??100,damping:c??10,mass:d??1,isResolvedFromDuration:!1,isTimeDefined:(b??c??d)===void 0&&(void 0!==a.duration||void 0!==a.bounce)};if(e.isTimeDefined){if(a.visualDuration){let b=c6(a.bounce||0),c=2*Math.PI/(1.2*a.visualDuration)*c7(b,2*Math.PI/1.2);e.stiffness=c*c,e.damping=2*b*Math.sqrt(e.stiffness)}else Object.assign(e,function({duration:a=800,bounce:b=.3}){let c,d;aF(bd(10));let e=c6(b);a=N(.01,10,a/1e3),e<1?(c=b=>{let c=b*e,d=c*a;return .001-c/c8(b,e)*Math.exp(-d)},d=b=>{let d=b*e*a,f=e*e*b*b*a,g=Math.exp(-d),h=c8(b*b,e);return-((-c(b)+.001>0?-1:1)*f)*g/h}):(c=b=>-.001+Math.exp(-b*a)*(b*a+1),d=b=>-(a*a*b*Math.exp(-b*a)));let f=c9(c,d,5/a),g=f*c7(e,f*a),h=g*g;return{stiffness:h,damping:2*e*Math.sqrt(h),duration:bd(a)}}(e)),e.isResolvedFromDuration=!0;da(e.stiffness)&&da(e.damping,!0)||(e.stiffness=100,e.damping=10)}return e}({...f}),p=a=>o?0:-(a/1e3),q=k/(2*Math.sqrt(j*l)),r=Math.sqrt(j/l)/1e3,s=q*r,t={target:h,delta:h-g,velocity:p(f.velocity||0)||0,restSpeed:0,restDelta:0},u=()=>{let a=5>Math.abs(t.delta);t.restSpeed=f.restSpeed||(a?c2:c3),t.restDelta=f.restDelta||(a?c4:c5)};if(u(),q<1){let a=c8(r,q),b={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};e=()=>{b.A=(t.velocity+s*t.delta)/a,b.sinC=s*b.A+t.delta*a,b.cosC=s*t.delta-b.A*a};let f=c=>{c!==b.t&&(b.t=c,b.env=Math.exp(-s*c),b.sin=Math.sin(a*c),b.cos=Math.cos(a*c))};c=a=>(f(a),t.target-b.env*(b.A*b.sin+t.delta*b.cos)),d=a=>(f(a),b.env*(b.sinC*b.sin+b.cosC*b.cos))}else if(1===q){c=a=>t.target-Math.exp(-r*a)*(t.delta+(t.velocity+r*t.delta)*a);let a={C:0};e=()=>{a.C=t.velocity+r*t.delta},d=b=>Math.exp(-r*b)*(r*a.C*b-t.velocity)}else{let a=r*Math.sqrt(q*q-1),b=s-a,f=s+a,g=o?1/0:300/a,h=(a,b)=>Math.exp(b>g?-a*g-s*(b-g):-a*b),i={S:0,F:0};e=()=>{let b=(t.velocity+s*t.delta)/a;i.S=(t.delta+b)/2,i.F=(t.delta-b)/2},c=a=>t.target-i.S*h(b,a)-i.F*h(f,a),d=a=>b*i.S*h(b,a)+f*i.F*h(f,a)}e();let v=n&&m||null,w={calculatedDuration:v,retarget:(a,b)=>{t.target=a[a.length-1],t.delta=t.target-a[0],t.velocity=p(b),f.restSpeed&&f.restDelta||u(),w.calculatedDuration=v,i.done=!1,e()},velocity:a=>bd(d(a)),next:a=>{let b=c(a);return n?i.done=a>=m:i.done=Math.abs(bd(d(a)))<=t.restSpeed&&Math.abs(t.target-b)<=t.restDelta,i.value=i.done?t.target:b,i},toString:()=>{let a=Math.min(c1(w),2e4),b=bv(b=>w.next(a*b).value,a,30);return a+"ms "+b},toTransition:()=>{}};return w}function dd({keyframes:a,velocity:b=0,power:c=.8,timeConstant:d=325,bounceDamping:e=10,bounceStiffness:f=500,modifyTarget:g,min:h,max:i,restDelta:j=.5,restSpeed:k}){let l,m,n=a[0],o={done:!1,value:n},p=c*b,q=n+p,r=void 0===g?q:g(q);r!==q&&(p=r-n);let s=a=>-p*Math.exp(-a/d),t=a=>{let b=s(a);o.done=Math.abs(b)<=j,o.value=o.done?r:r+b},u=a=>{let b;if((b=o.value)<h||b>i){var c;l=a,m=dc({keyframes:[o.value,(c=o.value,void 0===h?i:void 0===i||Math.abs(h-c)<Math.abs(i-c)?h:i)],velocity:-s(a)/d*1e3,damping:e,stiffness:f,restDelta:j,restSpeed:k})}};return u(0),{calculatedDuration:null,next:a=>{let b=!1;return(m||void 0!==l||(b=!0,t(a),u(a)),void 0!==l&&a>=l)?m.next(a-l):(b||t(a),o)}}}dc.applyToOptions=a=>{let b=function(a,b=100,c){let d=c({...a,keyframes:[0,b]}),e=Math.min(c1(d),2e4);return{type:"keyframes",ease:a=>d.next(e*a).value/b,duration:e/1e3}}(a,100,dc);return a.ease=b.ease,a.duration=bd(b.duration),a.type="keyframes",a};let de=(a,b,c)=>(((1-3*c+3*b)*a+(3*c-6*b))*a+3*b)*a;function df(a,b,c,d){return a===b&&c===d?A:e=>0===e||1===e?e:de(function(a,b,c,d,e){let f,g,h=0;do(f=de(g=b+(c-b)/2,d,e)-a)>0?c=g:b=g;while(Math.abs(f)>1e-7&&++h<12);return g}(e,0,1,a,c),b,d)}let dg=df(.42,0,1,1),dh=df(0,0,.58,1),di=df(.42,0,.58,1),dj=a=>b=>b<=.5?a(2*b)/2:(2-a(2*(1-b)))/2,dk=a=>b=>1-a(1-b),dl=df(.33,1.53,.69,.99),dm=dk(dl),dn=dj(dm),dp=a=>a>=1?1:(a*=2)<1?.5*dm(a):.5*(2-Math.pow(2,-10*(a-1))),dq=a=>1-Math.sin(Math.acos(a)),dr=dk(dq),ds=dj(dq),dt={linear:A,easeIn:dg,easeInOut:di,easeOut:dh,circIn:dq,circInOut:ds,circOut:dr,backIn:dm,backInOut:dn,backOut:dl,anticipate:dp},du=a=>{if(bt(a)){aG(a.length);let[b,c,d,e]=a;return df(b,c,d,e)}return"string"==typeof a?(aG(dt[a],`Invalid easing type '${a}'`),dt[a]):a},dv=(a,b,c)=>{let d=b-a;return d?(c-a)/d:1};function dw({duration:a=300,keyframes:b,times:c,ease:d="easeInOut"}){var e;let f,g=Array.isArray(d)&&"number"!=typeof d[0]?d.map(du):du(d)||di,h={done:!1,value:b[0]};if(2===b.length&&!Array.isArray(g)&&(!c||2!==c.length||0===c[0]&&1===c[1])){let[c,d]=b,e=c===d?void 0:(B.mix||c_)(c,d);return{calculatedDuration:a,next:b=>(h.value=e?e(g(a>0?N(0,1,b/a):1)):d,h.done=b>=a,h)}}let i=function(a,b,{clamp:c=!0,ease:d,mixer:e}={}){let f=a.length;if(aG(b.length),1===f)return()=>b[0];if(2===f&&b[0]===b[1])return()=>b[1];let g=a[0]===a[1];a[0]>a[f-1]&&(a=[...a].reverse(),b=[...b].reverse());let h=function(a,b,c){let d=[],e=c||B.mix||c_,f=a.length-1;for(let c=0;c<f;c++){let f=e(a[c],a[c+1]);b&&(f=cN(Array.isArray(b)?b[c]||A:b,f)),d.push(f)}return d}(b,d,e),i=h.length,j=c=>{if(g&&c<a[0])return b[0];let d=0;if(i>1)for(;d<a.length-2&&!(c<a[d+1]);d++);let e=dv(a[d],a[d+1],c);return h[d](e)};return c?b=>j(N(a[0],a[f-1],b)):j}((e=c&&c.length===b.length?c:(!function(a,b){let c=a[a.length-1];for(let d=1;d<=b;d++){let e=dv(0,b,d);a.push(b9(c,1,e))}}(f=[0],b.length-1),f),e.map(b=>b*a)),b,{ease:Array.isArray(g)?g:b.map(()=>g||di).splice(0,b.length-1)});return{calculatedDuration:a,next:b=>(h.value=i(b),h.done=b>=a,h)}}let dx={decay:dd,inertia:dd,tween:dw,keyframes:dw,spring:dc};function dy(a){"string"==typeof a.type&&(a.type=dx[a.type])}let dz=a=>a/100;class dA extends bo{constructor(a){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:a}=this.options;a&&a.updatedAt!==bq.now()&&this.tick(bq.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=a,this.initAnimation(),this.play(),!1===a.autoplay&&this.pause(),bs(this,this.options)}initAnimation(){let{options:a}=this;dy(a);let{type:b=dw,repeat:c=0,repeatDelay:d=0,repeatType:e,velocity:f=0}=a,{keyframes:g}=a,h=b||dw;h!==dw&&"number"!=typeof g[0]&&(this.mixKeyframes=cN(dz,c_(g[0],g[1])),g=[0,100]);let i=h(g===a.keyframes?a:{...a,keyframes:g});"mirror"===e&&(this.mirroredGenerator=h({...a,keyframes:[...g].reverse(),velocity:-f})),null===i.calculatedDuration&&(i.calculatedDuration=c1(i));let{calculatedDuration:j}=i;this.calculatedDuration=j,this.resolvedDuration=j+d,this.totalDuration=this.resolvedDuration*(c+1)-d,this.generator=i}updateTime(a){let b=Math.round(a-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=b}tick(a,b=!1){let c,{generator:d,totalDuration:e,mixKeyframes:f,mirroredGenerator:g,resolvedDuration:h,calculatedDuration:i}=this;if(null===this.startTime)return d.next(0);let{delay:j=0,keyframes:k,repeat:l,repeatType:m,repeatDelay:n,type:o,onUpdate:p,finalKeyframe:q}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-e/this.speed,this.startTime)),b?this.currentTime=a:this.updateTime(a);let r=this.currentTime-j*(this.playbackSpeed>=0?1:-1),s=this.playbackSpeed>=0?r<0:r>e;this.currentTime=Math.max(r,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=e);let t=this.currentTime,u=d;if(l){let a=Math.min(this.currentTime,e)/h,b=Math.floor(a),c=a%1;!c&&a>=1&&(c=1),1===c&&b--,(b=Math.min(b,l+1))%2&&("reverse"===m?(c=1-c,n&&(c-=n/h)):"mirror"===m&&(u=g)),t=N(0,1,c)*h}s?(this.delayState.value=k[0],c=this.delayState):c=u.next(t),f&&!s&&(c.value=f(c.value));let{done:v}=c;s||null===i||(v=this.playbackSpeed>=0?this.currentTime>=e:this.currentTime<=0);let w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&v);return w&&o!==dd&&(c.value=bn(k,this.options,q,this.speed)),p&&p(c.value),w&&this.finish(),c}then(a,b){return this.finished.then(a,b)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:a=0}=this.options||{};return this.duration+a/1e3}get time(){return this.currentTime/1e3}set time(a){a=bd(a),this.currentTime=a,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=a,this.tick(a))}getGeneratorVelocity(){return function(a,b,c=0){var d,e;let f;return b<=0?c:a.velocity?a.velocity(b):(d=b=>a.next(b).value,e=a.next(b).value,bC(e-d(f=Math.max(b-5,0)),b-f))}(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(a){let b=this.playbackSpeed!==a;b&&this.driver&&this.updateTime(bq.now()),this.playbackSpeed=a,b&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:a=c0,startTime:b}=this.options;this.driver||(this.driver=a(a=>this.tick(a))),this.options.onPlay?.();let c=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=c):null!==this.holdTime?this.startTime=c-this.holdTime:this.startTime||(this.startTime=b??c),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(bq.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(a){return this.startTime=0,this.tick(a,!0)}attachTimeline(a){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),a.observe(this)}}let dB={anticipate:dp,backInOut:dn,circInOut:ds};class dC extends bz{constructor(a){!function(a){"string"==typeof a.ease&&a.ease in dB&&(a.ease=dB[a.ease])}(a),dy(a),super(a),void 0!==a.startTime&&!1!==a.autoplay&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){let{motionValue:b,onUpdate:c,onComplete:d,element:e,...f}=this.options;if(!b)return;if(void 0!==a)return void b.set(a);let g=new dA({...f,autoplay:!1}),h=Math.max(10,bq.now()-this.startTime),i=N(0,10,h-10),j=g.sample(h).value,{name:k}=this.options;e&&k&&bh(e,k,j),b.setWithVelocity(g.sample(Math.max(0,h-i)).value,j,i),g.stop()}}let dD=(a,b)=>"zIndex"!==b&&!!("number"==typeof a||Array.isArray(a)||"string"==typeof a&&(an.test(a)||"0"===a)&&!a.startsWith("url("));function dE(a){a.duration=0,a.type="keyframes"}let dF=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,dG=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),dH=bi(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class dI extends bo{constructor(a){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=bq.now();const{keyframes:b,name:c,motionValue:d,element:e}=a;a.autoplay??(a.autoplay=!0),a.delay??(a.delay=0),a.type??(a.type="keyframes"),a.repeat??(a.repeat=0),a.repeatDelay??(a.repeatDelay=0),a.repeatType??(a.repeatType="loop");const f=e?.KeyframeResolver||ba;this.keyframeResolver=new f(b,(b,c,d)=>this.onKeyframesResolved(b,c,a,!d),c,d,e),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(a,b,c,d){let e;this.keyframeResolver=void 0;let{name:f,type:g,velocity:h,delay:i,isHandoff:j,onUpdate:k}=c;this.resolvedAt=bq.now();let l=!0;!function(a,b,c,d){let e=a[0];if(null===e)return!1;if("display"===b||"visibility"===b)return!0;let f=a[a.length-1],g=dD(e,b),h=dD(f,b);return g&&h?function(a){let b=a[0];if(1===a.length)return!0;for(let c=0;c<a.length;c++)if(a[c]!==b)return!0}(a)||("spring"===c||by(c))&&d:(g!==h&&aF(`You are trying to animate ${b} from "${e}" to "${f}". "${g?f:e}" is not an animatable value.`),!1)}(a,f,g,h)&&(l=!1,(B.instantAnimations||!i)&&k?.(bn(a,c,b)),a[0]=a[a.length-1],dE(c),c.repeat=0);let m=d?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,{onComplete:n}=c;if(c.startTime??(c.startTime=m),c.finalKeyframe=b,c.keyframes=a,c.onComplete=()=>{n?.(),this.notifyFinished()},l&&!j&&function(a){let{motionValue:b,name:c,repeatDelay:d,repeatType:e,damping:f,type:g,keyframes:h}=a;if(!c||!(bA.has(c)||dG.has(c)))return!1;let i=b?.owner?.current;if(!(i instanceof HTMLElement)&&!(i instanceof SVGElement))return!1;let{onUpdate:j,transformTemplate:k}=b.owner.getProps();return dH()&&(bA.has(c)||dG.has(c)&&function(a){for(let b=0;b<a.length;b++)if("string"==typeof a[b]&&dF.test(a[b]))return!0;return!1}(h))&&("transform"!==c||!k)&&!j&&!d&&"mirror"!==e&&0!==f&&"inertia"!==g}(c)){c.element=c.motionValue?.owner?.current;try{e=new dC(c)}catch{e=new dA(c)}}else e=new dA(c);this.pendingTimeline&&(this.stopTimeline=e.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=e}get finished(){return this._animation?this._animation.finished:super.finished}then(a,b){return this.finished.finally(a).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),a7=!0,a9(),a8(),a7=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(a){this.animation.time=a}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(a){this.animation.speed=a}get startTime(){return this.animation.startTime}attachTimeline(a){return this._animation?this.stopTimeline=this.animation.attachTimeline(a):this.pendingTimeline=a,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let dJ={type:"spring",stiffness:500,damping:25,restSpeed:10},dK={type:"keyframes",duration:.8},dL={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dM=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),dN=(a,b,c,d={},e,f)=>g=>{let h=cJ(d,a)||{},i=h.delay||d.delay||0,{elapsed:j=0}=d;j-=bd(i);let k={keyframes:Array.isArray(c)?c:[null,c],ease:"easeOut",velocity:b.getVelocity(),...h,delay:-j,onUpdate:a=>{b.set(a),h.onUpdate&&h.onUpdate(a)},onComplete:()=>{g(),h.onComplete&&h.onComplete()},name:a,motionValue:b,element:f?void 0:e};!function(a){for(let b in a)if(!dM.has(b))return!0;return!1}(h)&&Object.assign(k,((a,{keyframes:b})=>b.length>2?dK:M.has(a)?a.startsWith("scale")?{type:"spring",stiffness:550,damping:0===b[1]?2*Math.sqrt(550):30,restSpeed:10}:dJ:dL)(a,k)),k.duration&&(k.duration=bd(k.duration)),k.repeatDelay&&(k.repeatDelay=bd(k.repeatDelay)),void 0!==k.from&&(k.keyframes[0]=k.from);let l=!1;if(!1!==k.type&&(0!==k.duration||k.repeatDelay)||(dE(k),0===k.delay&&(l=!0)),(B.instantAnimations||B.skipAnimations||e?.shouldSkipAnimations||h.skipAnimations)&&(l=!0,dE(k),k.delay=0),k.allowFlatten=!h.type&&!h.ease,l&&!f&&void 0!==b.get()){let a=bn(k.keyframes,h);if(void 0!==a)return void F.update(()=>{k.onUpdate(a),k.onComplete()})}return h.isSync?new dA(k):new dI(k)},dO="u">typeof window;function dP(a,b,{delay:c=0,transitionOverride:d,type:e}={}){let{transition:f,transitionEnd:g,...h}=b,i=a.getDefaultTransition();f=f?cI(f,i):i;let j=f?.reduceMotion,k=f?.skipAnimations;d&&(f=d);let l=[],m=e&&a.animationState&&a.animationState.getState()[e],n=f?.path;for(let b in n&&n.animateVisualElement(a,h,f,c,l),h){let d=a.getValue(b,a.latestValues[b]??null),e=h[b];if(void 0===e||m&&function({protectedKeys:a,needsAnimating:b},c){let d=a.hasOwnProperty(c)&&!0!==b[c];return b[c]=!1,d}(m,b))continue;let g={delay:c,...cJ(f||{},b)};k&&(g.skipAnimations=!0);let i=d.get();if(void 0!==i&&!d.isAnimating()&&!Array.isArray(e)&&e===i&&!g.velocity){F.update(()=>d.set(e));continue}let n=!1;if(dO&&window.MotionHandoffAnimation){let c=a.props[cM];if(c){let a=window.MotionHandoffAnimation(c,b,F);null!==a&&(g.startTime=a,n=!0)}}cL(a,b);let o=j??a.shouldReduceMotion;d.start(dN(b,d,e,o&&aC.has(b)?{type:!1}:g,a,n));let p=d.animation;p&&l.push(p)}if(g){let b=()=>F.update(()=>{g&&function(a,b){let{transitionEnd:c={},transition:d={},...e}=cH(a,b)||{};for(let b in e={...e,...c}){var f;let c=cK(f=e[b])?f[f.length-1]||0:f;a.hasValue(b)?a.getValue(b).set(c):a.addValue(b,bF(c))}}(a,g)});l.length?Promise.all(l).then(b):b()}return l}function dQ(a,b,c,d=0,e=1){let f=Array.from(a).sort((a,b)=>a.sortNodePosition(b)).indexOf(b),g=a.size,h=(g-1)*d;return"function"==typeof c?c(f,g):1===e?f*d:h-f*d}function dR(a,b,c={}){let d=cH(a,b,"exit"===c.type?a.presenceContext?.custom:void 0),{transition:e=a.getDefaultTransition()||{}}=d||{};c.transitionOverride&&(e=c.transitionOverride);let f=d?()=>Promise.all(dP(a,d,c)):()=>Promise.resolve(),g=a.variantChildren&&a.variantChildren.size?(d=0)=>{let{delayChildren:f=0,staggerChildren:g,staggerDirection:h}=e;return function(a,b,c=0,d=0,e=0,f=1,g){let h=[];for(let i of a.variantChildren)i.notify("AnimationStart",b),h.push(dR(i,b,{...g,delay:c+("function"==typeof d?0:d)+dQ(a.variantChildren,i,d,e,f)}).then(()=>i.notify("AnimationComplete",b)));return Promise.all(h)}(a,b,d,f,g,h,c)}:()=>Promise.resolve(),{when:h}=e;if(!h)return Promise.all([f(),g(c.delay)]);{let[a,b]="beforeChildren"===h?[f,g]:[g,f];return a().then(()=>b())}}let dS=bK.length;function dT(a,b){if(!Array.isArray(b))return!1;let c=b.length;if(c!==a.length)return!1;for(let d=0;d<c;d++)if(b[d]!==a[d])return!1;return!0}let dU=[...bJ].reverse(),dV=bJ.length;function dW(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function dX(){return{animate:dW(!0),whileInView:dW(),whileHover:dW(),whileTap:dW(),whileDrag:dW(),whileFocus:dW(),exit:dW()}}class dY extends cG{constructor(a){super(a),a.animationState||(a.animationState=function(a){let b=b=>Promise.all(b.map(({animation:b,options:c})=>(function(a,b,c={}){let d;if(a.notify("AnimationStart",b),Array.isArray(b))d=Promise.all(b.map(b=>dR(a,b,c)));else if("string"==typeof b)d=dR(a,b,c);else{let e="function"==typeof b?cH(a,b,c.custom):b;d=Promise.all(dP(a,e,c))}return d.then(()=>{a.notify("AnimationComplete",b)})})(a,b,c))),c=dX(),d=!0,e=!1,f=b=>(c,d)=>{let e=cH(a,d,"exit"===b?a.presenceContext?.custom:void 0);if(e){let{transition:a,transitionEnd:b,...d}=e;c={...c,...d,...b}}return c};function g(g){let{props:h}=a,i=function a(b){if(!b)return;if(!b.isControllingVariants){let c=b.parent&&a(b.parent)||{};return void 0!==b.props.initial&&(c.initial=b.props.initial),c}let c={};for(let a=0;a<dS;a++){let d=bK[a],e=b.props[d];(bI(e)||!1===e)&&(c[d]=e)}return c}(a.parent)||{},j=[],k=new Set,l={},m=1/0;for(let b=0;b<dV;b++){var n,o;let p=dU[b],q=c[p],r=void 0!==h[p]?h[p]:i[p],s=bI(r),t=p===g?q.isActive:null;!1===t&&(m=b);let u=r===i[p]&&r!==h[p]&&s;if(u&&(d||e)&&a.manuallyAnimateOnMount&&(u=!1),q.protectedKeys={...l},!q.isActive&&null===t||!r&&!q.prevProp||bH(r)||"boolean"==typeof r)continue;if("exit"===p&&q.isActive&&!0!==t){q.prevResolvedValues&&(l={...l,...q.prevResolvedValues});continue}let v=(n=q.prevProp,"string"==typeof(o=r)?o!==n:!!Array.isArray(o)&&!dT(o,n)),w=v||p===g&&q.isActive&&!u&&s||b>m&&s,x=!1,y=Array.isArray(r)?r:[r],z=y.reduce(f(p),{});!1===t&&(z={});let{prevResolvedValues:A={}}=q,B={...A,...z},C=b=>{w=!0,k.has(b)&&(x=!0,k.delete(b)),q.needsAnimating[b]=!0;let c=a.getValue(b);c&&(c.liveStyle=!1)};for(let a in B){let b=z[a],c=A[a];if(!l.hasOwnProperty(a))(cK(b)&&cK(c)?!dT(b,c)||v:b!==c)?null!=b?C(a):k.add(a):void 0!==b&&k.has(a)?C(a):q.protectedKeys[a]=!0}q.prevProp=r,q.prevResolvedValues=z,q.isActive&&(l={...l,...z}),(d||e)&&a.blockInitialAnimation&&(w=!1);let D=u&&v,E=!D||x;w&&E&&j.push(...y.map(b=>{let c={type:p};if("string"==typeof b&&(d||e)&&!D&&a.manuallyAnimateOnMount&&a.parent){let{parent:d}=a,e=cH(d,b);if(d.enteringChildren&&e){let{delayChildren:b}=e.transition||{};c.delay=dQ(d.enteringChildren,a,b)}}return{animation:b,options:c}}))}if(k.size){let b={};if("boolean"!=typeof h.initial){let c=cH(a,Array.isArray(h.initial)?h.initial[0]:h.initial);c&&c.transition&&(b.transition=c.transition)}k.forEach(c=>{let d=a.getBaseTarget(c),e=a.getValue(c);e&&(e.liveStyle=!0),b[c]=d??null}),j.push({animation:b})}let p=!!j.length;return d&&(!1===h.initial||h.initial===h.animate)&&!a.manuallyAnimateOnMount&&(p=!1),d=!1,e=!1,p?b(j):Promise.resolve()}return{animateChanges:g,setActive:function(b,d){if(c[b].isActive===d)return Promise.resolve();a.variantChildren?.forEach(a=>a.animationState?.setActive(b,d)),c[b].isActive=d;let e=g(b);for(let a in c)c[a].protectedKeys={};return e},setAnimateFunction:function(c){b=c(a)},getState:()=>c,reset:()=>{c=dX(),e=!0}}}(a))}updateAnimationControlsSubscription(){let{animate:a}=this.node.getProps();bH(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:a}=this.node.getProps(),{animate:b}=this.node.prevProps||{};a!==b&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let dZ=0;class d$ extends cG{constructor(){super(...arguments),this.id=dZ++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:a,onExitComplete:b}=this.node.presenceContext,{isPresent:c}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===c)return;if(a&&!1===c){if(this.isExitComplete){let{initial:a,custom:b}=this.node.getProps();if("string"==typeof a||"object"==typeof a&&null!==a&&!Array.isArray(a)){let c=cH(this.node,a,b);if(c){let{transition:a,transitionEnd:b,...d}=c;for(let a in d)this.node.getValue(a)?.jump(d[a])}}this.node.blockInitialAnimation=!1,this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1,this.exitAnimation=void 0;return}let d=this.exitAnimation=this.node.animationState.setActive("exit",!a);b&&!a&&d.then(()=>{this.exitAnimation===d&&(this.isExitComplete=!0,b(this.id))})}mount(){let{register:a,onExitComplete:b}=this.node.presenceContext||{};b&&b(this.id),a&&(this.unmount=a(this.id))}unmount(){}}let d_={x:!1,y:!1};function d0(a){return[a("x"),a("y")]}function d1(a){return a.max-a.min}function d2(a,b,c,d=.5){a.origin=d,a.originPoint=b9(b.min,b.max,a.origin),a.scale=d1(c)/d1(b),a.translate=b9(c.min,c.max,a.origin)-a.originPoint,(a.scale>=.9999&&a.scale<=1.0001||isNaN(a.scale))&&(a.scale=1),(a.translate>=-.01&&a.translate<=.01||isNaN(a.translate))&&(a.translate=0)}function d3(a,b,c,d){d2(a.x,b.x,c.x,d?d.originX:void 0),d2(a.y,b.y,c.y,d?d.originY:void 0)}function d4(a,b,c,d=0){a.min=(d?b9(c.min,c.max,d):c.min)+b.min,a.max=a.min+d1(b)}function d5(a,b,c,d=0){let e=d?b9(c.min,c.max,d):c.min;a.min=b.min-e,a.max=a.min+d1(b)}function d6(a,b,c,d){d5(a.x,b.x,c.x,d?.x),d5(a.y,b.y,c.y,d?.y)}let d7=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),d8=new Set(["INPUT","SELECT","TEXTAREA"]);function d9(a,b,c,d={passive:!0}){return a.addEventListener(b,c,d),()=>a.removeEventListener(b,c,d)}let ea=a=>"object"==typeof a&&null!==a;function eb(a){return ea(a)&&"ownerSVGElement"in a}function ec(a,b,c){if(null==a)return[];if(a instanceof EventTarget)return[a];if("string"==typeof a){let d=document;b&&(d=b.current);let e=c?.[a]??d.querySelectorAll(a);return e?Array.from(e):[]}return Array.from(a).filter(a=>null!=a)}let ed=new WeakMap,ee=(a,b,c)=>(d,e)=>e&&e[0]?e[0][a+"Size"]:eb(d)&&"getBBox"in d?d.getBBox()[b]:d[c],ef=ee("inline","width","offsetWidth"),eg=ee("block","height","offsetHeight");function eh({target:a,borderBoxSize:b}){ed.get(a)?.forEach(c=>{c(a,{get width(){return ef(a,b)},get height(){return eg(a,b)}})})}function ei(a){a.forEach(eh)}let ej=new Set;function ek(a,b){let c;return"function"==typeof a?(ej.add(a),f||(f=()=>{let a={get width(){return window.innerWidth},get height(){return window.innerHeight}};ej.forEach(b=>b(a))},window.addEventListener("resize",f)),()=>{ej.delete(a),ej.size||"function"!=typeof f||(window.removeEventListener("resize",f),f=void 0)}):(!e&&"u">typeof ResizeObserver&&(e=new ResizeObserver(ei)),(c=ec(a)).forEach(a=>{let c=ed.get(a);c||(c=new Set,ed.set(a,c)),c.add(b),e?.observe(a)}),()=>{c.forEach(a=>{let c=ed.get(a);c?.delete(b),c?.size||e?.unobserve(a)})})}let el=a=>"mouse"===a.pointerType?"number"!=typeof a.button||a.button<=0:!1!==a.isPrimary;function em(a){return{point:{x:a.pageX,y:a.pageY}}}function en(a,b,c,d){return d9(a,b,a=>el(a)&&c(a,em(a)),d)}let eo=({current:a})=>a?a.ownerDocument.defaultView:null;function ep(a){return a&&"object"==typeof a&&Object.prototype.hasOwnProperty.call(a,"current")}let eq=(a,b)=>Math.abs(a-b),er=new Set(["auto","scroll"]);class es{constructor(a,b,{transformPagePoint:c,contextWindow:d=window,dragSnapToOrigin:e=!1,distanceThreshold:f=3,element:g}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=a=>{this.handleScroll(a.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var a,b;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=et(this.lastRawMoveEventInfo,this.transformPagePoint));let c=ev(this.lastMoveEventInfo,this.history),d=null!==this.startEvent,e=(a=c.offset,b={x:0,y:0},Math.sqrt(eq(a.x,b.x)**2+eq(a.y,b.y)**2)>=this.distanceThreshold);if(!d&&!e)return;let{point:f}=c;this.history.push({...f,timestamp:bq.now()});let{onStart:g,onMove:h}=this.handlers;d||(g&&g(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,c)},this.handlePointerMove=(a,b)=>{this.lastMoveEvent=a,this.lastRawMoveEventInfo=b,this.lastMoveEventInfo=et(b,this.transformPagePoint),this.hasPendingMove=!0,F.update(this.updatePoint,!0)},this.handlePointerUp=(a,b)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:c,onSessionEnd:d,resumeAnimation:e}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&e&&e(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let f=ev("pointercancel"===a.type?this.lastMoveEventInfo:et(b,this.transformPagePoint),this.history);this.startEvent&&c&&c(a,f),d&&d(a,f)},!el(a))return;this.dragSnapToOrigin=e,this.handlers=b,this.transformPagePoint=c,this.distanceThreshold=f,this.contextWindow=d||window;const h=et(em(a),this.transformPagePoint),{point:i}=h,{timestamp:j}=E;this.history=[{...i,timestamp:j}];const{onSessionStart:k}=b;k&&k(a,ev(h,this.history));const l={passive:!0,capture:!0};this.removeListeners=cN(en(this.contextWindow,"pointermove",this.handlePointerMove,l),en(this.contextWindow,"pointerup",this.handlePointerUp,l),en(this.contextWindow,"pointercancel",this.handlePointerUp,l)),g&&this.startScrollTracking(g)}startScrollTracking(a){let b=a.parentElement;for(;b;){let a=getComputedStyle(b);(er.has(a.overflowX)||er.has(a.overflowY))&&this.scrollPositions.set(b,{x:b.scrollLeft,y:b.scrollTop}),b=b.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(a){let b=this.scrollPositions.get(a);if(!b)return;let c=a===window,d=c?{x:window.scrollX,y:window.scrollY}:{x:a.scrollLeft,y:a.scrollTop},e={x:d.x-b.x,y:d.y-b.y};(0!==e.x||0!==e.y)&&(c?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=e.x,this.lastMoveEventInfo.point.y+=e.y):this.history.length>0&&(this.history[0].x-=e.x,this.history[0].y-=e.y),this.scrollPositions.set(a,d),F.update(this.updatePoint,!0))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),G(this.updatePoint)}}function et(a,b){return b?{point:b(a.point)}:a}function eu(a,b){return{x:a.x-b.x,y:a.y-b.y}}function ev({point:a},b){return{point:a,delta:eu(a,ew(b)),offset:eu(a,b[0]),velocity:function(a){if(a.length<2)return{x:0,y:0};let b=a.length-1,c=null,d=ew(a);for(;b>=0&&(c=a[b],!(d.timestamp-c.timestamp>bd(.1)));)b--;if(!c)return{x:0,y:0};c===a[0]&&a.length>2&&d.timestamp-c.timestamp>2*bd(.1)&&(c=a[1]);let e=(d.timestamp-c.timestamp)/1e3;if(0===e)return{x:0,y:0};let f={x:(d.x-c.x)/e,y:(d.y-c.y)/e};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}(b)}}function ew(a){return a[a.length-1]}function ex(a,b,c){return{min:void 0!==b?a.min+b:void 0,max:void 0!==c?a.max+c-(a.max-a.min):void 0}}function ey(a,b){let c=b.min-a.min,d=b.max-a.max;return b.max-b.min<a.max-a.min&&([c,d]=[d,c]),{min:c,max:d}}function ez(a,b,c){return{min:eA(a,b),max:eA(a,c)}}function eA(a,b){return"number"==typeof a?a:a[b]||0}let eB=new WeakMap;class eC{constructor(a){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=aA(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=a}start(a,{snapToCursor:b=!1,distanceThreshold:c}={}){let{presenceContext:d}=this.visualElement;if(d&&!1===d.isPresent)return;let e=a=>{b&&this.snapToCursor(a),this.stopAnimation()},f=(a,b)=>{let{drag:c,dragPropagation:d,onDragStart:e}=this.getProps();if(c&&!d&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(a){if("x"===a||"y"===a)if(d_[a])return null;else return d_[a]=!0,()=>{d_[a]=!1};return d_.x||d_.y?null:(d_.x=d_.y=!0,()=>{d_.x=d_.y=!1})}(c),!this.openDragLock))return;this.latestPointerEvent=a,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),d0(a=>{let b=this.getAxisMotionValue(a).get()||0;if(_.test(b)){let{projection:c}=this.visualElement;if(c&&c.layout){let d=c.layout.layoutBox[a];d&&(b=d1(d)*(parseFloat(b)/100))}}this.originPoint[a]=b}),e&&F.update(()=>e(a,b),!1,!0),cL(this.visualElement,"transform");let{animationState:f}=this.visualElement;f&&f.setActive("whileDrag",!0)},g=(a,b)=>{this.latestPointerEvent=a,this.latestPanInfo=b;let{dragPropagation:c,dragDirectionLock:d,onDirectionLock:e,onDrag:f}=this.getProps();if(!c&&!this.openDragLock)return;let{offset:g}=b;if(d&&null===this.currentDirection){this.currentDirection=function(a,b=10){let c=null;return Math.abs(a.y)>b?c="y":Math.abs(a.x)>b&&(c="x"),c}(g),null!==this.currentDirection&&e&&e(this.currentDirection);return}this.updateAxis("x",b.point,g),this.updateAxis("y",b.point,g),this.visualElement.render(),f&&F.update(()=>f(a,b),!1,!0)},h=(a,b)=>{this.latestPointerEvent=a,this.latestPanInfo=b,this.stop(a,b),this.latestPointerEvent=null,this.latestPanInfo=null},i=()=>{let{dragSnapToOrigin:a}=this.getProps();(a||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:j}=this.getProps();this.panSession=new es(a,{onSessionStart:e,onStart:f,onMove:g,onSessionEnd:h,resumeAnimation:i},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:j,distanceThreshold:c,contextWindow:eo(this.visualElement),element:this.visualElement.current})}stop(a,b){let c=a||this.latestPointerEvent,d=b||this.latestPanInfo,e=this.isDragging;if(this.cancel(),!e||!d||!c)return;let{velocity:f}=d;this.startAnimation(f);let{onDragEnd:g}=this.getProps();g&&F.postRender(()=>g(c,d))}cancel(){this.isDragging=!1;let{projection:a,animationState:b}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:c}=this.getProps();!c&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),b&&b.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(a,b,c){let{drag:d}=this.getProps();if(!c||!eE(a,d,this.currentDirection))return;let e=this.getAxisMotionValue(a),f=this.originPoint[a]+c[a];this.constraints&&this.constraints[a]&&(f=function(a,{min:b,max:c},d){return void 0!==b&&a<b?a=d?b9(b,a,d.min):Math.max(a,b):void 0!==c&&a>c&&(a=d?b9(c,a,d.max):Math.min(a,c)),a}(f,this.constraints[a],this.elastic[a])),e.set(f)}resolveConstraints(){let{dragConstraints:a,dragElastic:b}=this.getProps(),c=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,d=this.constraints;a&&ep(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&c?this.constraints=function(a,{top:b,left:c,bottom:d,right:e}){return{x:ex(a.x,c,e),y:ex(a.y,b,d)}}(c.layoutBox,a):this.constraints=!1,this.elastic=function(a=.35){return!1===a?a=0:!0===a&&(a=.35),{x:ez(a,"left","right"),y:ez(a,"top","bottom")}}(b),d!==this.constraints&&!ep(a)&&c&&this.constraints&&!this.hasMutatedConstraints&&d0(a=>{var b,d;let e;!1!==this.constraints&&this.getAxisMotionValue(a)&&(this.constraints[a]=(b=c.layoutBox[a],d=this.constraints[a],e={},void 0!==d.min&&(e.min=d.min-b.min),void 0!==d.max&&(e.max=d.max-b.min),e))})}resolveRefConstraints(){var a;let{dragConstraints:b,onMeasureDragConstraints:c}=this.getProps();if(!b||!ep(b))return!1;let d=b.current;aG();let{projection:e}=this.visualElement;if(!e||!e.layout)return!1;e.root&&(e.root.scroll=void 0,e.root.updateScroll());let f=function(a,b,c){let d=cl(a,c),{scroll:e}=b;return e&&(ch(d.x,e.offset.x),ch(d.y,e.offset.y)),d}(d,e.root,this.visualElement.getTransformPagePoint()),g=(a=e.layout.layoutBox,{x:ey(a.x,f.x),y:ey(a.y,f.y)});if(c){let a=c(function({x:a,y:b}){return{top:b.min,right:a.max,bottom:b.max,left:a.min}}(g));this.hasMutatedConstraints=!!a,a&&(g=b8(a))}return g}startAnimation(a){let{drag:b,dragMomentum:c,dragElastic:d,dragTransition:e,dragSnapToOrigin:f,onDragTransitionEnd:g}=this.getProps(),h=this.constraints||{};return Promise.all(d0(g=>{if(!eE(g,b,this.currentDirection))return;let i=h&&h[g]||{};(!0===f||f===g)&&(i={min:0,max:0});let j={type:"inertia",velocity:c?a[g]:0,bounceStiffness:d?200:1e6,bounceDamping:d?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...e,...i};return this.startAxisValueAnimation(g,j)})).then(g)}startAxisValueAnimation(a,b){let c=this.getAxisMotionValue(a);return cL(this.visualElement,a),c.start(dN(a,c,0,b,this.visualElement,!1))}stopAnimation(){d0(a=>this.getAxisMotionValue(a).stop())}getAxisMotionValue(a){let b=`_drag${a.toUpperCase()}`;return this.visualElement.getProps()[b]||this.visualElement.getValue(a,this.visualElement.latestValues[a]??0)}snapToCursor({clientX:a,clientY:b}){let{drag:c}=this.getProps(),d={x:a,y:b},e=this.visualElement.getTransformPagePoint()?.(d)||d,f=this.visualElement.measureViewportBox();d0(a=>{if(!eE(a,c,this.currentDirection))return;let b=this.getAxisMotionValue(a),{min:d,max:g}=f[a];b.set((b.get()||0)+e[a]-b9(d,g,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:a,dragConstraints:b}=this.getProps(),{projection:c}=this.visualElement;if(!ep(b)||!c||!this.constraints)return;this.stopAnimation();let d=this.constraints,e={x:0,y:0};d0(a=>{var b,c;let f,g,h,i=this.getAxisMotionValue(a).get();e[a]=(b={min:i,max:i},c=d[a],f=.5,g=d1(b),(h=d1(c))>g?f=dv(c.min,c.max-g,b.min):g>h&&(f=dv(b.min,b.max-h,c.min)),N(0,1,f))});let{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",c.root&&c.root.updateScroll(),c.updateLayout(),this.constraints=!1,this.resolveConstraints(),d0(b=>{let c=this.getAxisMotionValue(b);if(!eE(b,a,null)||!c.get())return;let{min:d,max:f}=this.constraints[b];c.set(b9(d,f,e[b]))}),this.visualElement.render()}addListeners(){let a;if(!this.visualElement.current)return;eB.set(this.visualElement,this);let b=this.visualElement.current,c=en(b,"pointerdown",a=>{let{drag:c,dragListener:d=!0}=this.getProps(),e=a.target,f=e!==b&&(d8.has(e.tagName)||!0===e.isContentEditable);c&&d&&!f&&this.start(a)}),d=()=>{var c,d,e;let f,g,{dragConstraints:h}=this.getProps();ep(h)&&h.current&&(this.constraints=this.resolveRefConstraints(),a||(c=b,d=h.current,f=ek(c,eD(e=()=>this.scalePositionWithinConstraints())),g=ek(d,eD(e)),a=()=>{f(),g()}))},{projection:e}=this.visualElement,f=e.addEventListener("measure",d);e&&!e.layout&&(e.root&&e.root.updateScroll(),e.updateLayout()),F.read(d);let g=d9(window,"resize",()=>this.scalePositionWithinConstraints()),h=e.addEventListener("didUpdate",({delta:a,hasLayoutChanged:b})=>{this.isDragging&&b&&(d0(b=>{let c=this.getAxisMotionValue(b);c&&(this.originPoint[b]+=a[b].translate,c.set(c.get()+a[b].translate))}),this.visualElement.render())});return()=>{g(),c(),f(),h&&h(),a&&a()}}getProps(){let a=this.visualElement.getProps(),{drag:b=!1,dragDirectionLock:c=!1,dragPropagation:d=!1,dragConstraints:e=!1,dragElastic:f=.35,dragMomentum:g=!0}=a;return{...a,drag:b,dragDirectionLock:c,dragPropagation:d,dragConstraints:e,dragElastic:f,dragMomentum:g}}}function eD(a){let b=!0;return()=>{if(b){b=!1;return}a()}}function eE(a,b,c){return(!0===b||b===a)&&(null===c||c===a)}class eF extends cG{constructor(a){super(a),this.removeGroupControls=A,this.removeListeners=A,this.controls=new eC(a)}mount(){let{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||A}update(){let{dragControls:a}=this.node.getProps(),{dragControls:b}=this.node.prevProps||{};a!==b&&(this.removeGroupControls(),a&&(this.removeGroupControls=a.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let eG=a=>(b,c)=>{a&&F.update(()=>a(b,c),!1,!0)};class eH extends cG{constructor(){super(...arguments),this.removePointerDownListener=A}onPointerDown(a){this.session=new es(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eo(this.node)})}createPanHandlers(){let{onPanSessionStart:a,onPanStart:b,onPan:c,onPanEnd:d}=this.node.getProps();return{onSessionStart:eG(a),onStart:eG(b),onMove:eG(c),onEnd:(a,b)=>{delete this.session,d&&F.postRender(()=>d(a,b))}}}mount(){this.removePointerDownListener=en(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let eI={hasAnimatedSinceResize:!0,hasEverUpdated:!1},eJ=(0,h.createContext)({}),eK=!1;class eL extends h.Component{componentDidMount(){let{visualElement:a,layoutGroup:b,switchLayoutGroup:c,layoutId:d}=this.props,{projection:e}=a;e&&(b.group&&b.group.add(e),c&&c.register&&d&&c.register(e),eK&&e.root.didUpdate(),e.addEventListener("animationComplete",()=>{this.safeToRemove()}),e.setOptions({...e.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),eI.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){let{layoutDependency:b,visualElement:c,drag:d,isPresent:e}=this.props,{projection:f}=c;return f&&(f.isPresent=e,a.layoutDependency!==b&&f.setOptions({...f.options,layoutDependency:b}),eK=!0,d||a.layoutDependency!==b||void 0===b||a.isPresent!==e?f.willUpdate():this.safeToRemove(),a.isPresent!==e&&(e?f.promote():f.relegate()||F.postRender(()=>{let a=f.getStack();a&&a.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:a,layoutAnchor:b}=this.props,{projection:c}=a;c&&(c.options.layoutAnchor=b,c.root.didUpdate(),bB.postRender(()=>{!c.currentAnimation&&c.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:a,layoutGroup:b,switchLayoutGroup:c}=this.props,{projection:d}=a;eK=!0,d&&(d.scheduleCheckAfterUnmount(),b&&b.group&&b.group.remove(d),c&&c.deregister&&c.deregister(d))}safeToRemove(){let{safeToRemove:a}=this.props;a&&a()}render(){return null}}function eM(a){let[b,c]=function(a=!0){let b=(0,h.useContext)(cy);if(null===b)return[!0,null];let{isPresent:c,onExitComplete:d,register:e}=b,f=(0,h.useId)(),g=(0,h.useCallback)(()=>a&&d&&d(f),[f,d,a]);return!c&&d?[!1,g]:[!0]}(),d=(0,h.useContext)(y);return(0,g.jsx)(eL,{...a,layoutGroup:d,switchLayoutGroup:(0,h.useContext)(eJ),isPresent:b,safeToRemove:c})}let eN=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],eO=a=>"number"==typeof a?a:parseFloat(a),eP=eN.length,eQ=a=>"number"==typeof a||aa.test(a);function eR(a,b){return void 0!==a[b]?a[b]:a.borderRadius}let eS=eU(0,.5,dr),eT=eU(.5,.95,A);function eU(a,b,c){return d=>d<a?0:d>b?1:c(dv(a,b,d))}function eV(a,b){a.min=b.min,a.max=b.max}function eW(a,b){eV(a.x,b.x),eV(a.y,b.y)}function eX(a,b){a.translate=b.translate,a.scale=b.scale,a.originPoint=b.originPoint,a.origin=b.origin}function eY(a,b,c,d,e){return a-=b,a=d+1/c*(a-d),void 0!==e&&(a=d+1/e*(a-d)),a}function eZ(a,b,[c,d,e],f,g){!function(a,b=0,c=1,d=.5,e,f=a,g=a){if(_.test(b)&&(b=parseFloat(b),b=b9(g.min,g.max,b/100)-g.min),"number"!=typeof b)return;let h=b9(f.min,f.max,d);a===f&&(h-=b),a.min=eY(a.min,b,c,h,e),a.max=eY(a.max,b,c,h,e)}(a,b[c],b[d],b[e],b.scale,f,g)}let e$=["x","scaleX","originX"],e_=["y","scaleY","originY"];function e0(a,b,c,d){eZ(a.x,b,e$,c?c.x:void 0,d?d.x:void 0),eZ(a.y,b,e_,c?c.y:void 0,d?d.y:void 0)}function e1(a){return 0===a.translate&&1===a.scale}function e2(a){return e1(a.x)&&e1(a.y)}function e3(a,b){return a.min===b.min&&a.max===b.max}function e4(a,b){return Math.round(a.min)===Math.round(b.min)&&Math.round(a.max)===Math.round(b.max)}function e5(a,b){return e4(a.x,b.x)&&e4(a.y,b.y)}function e6(a){return d1(a.x)/d1(a.y)}function e7(a,b){return a.translate===b.translate&&a.scale===b.scale&&a.originPoint===b.originPoint}class e8{constructor(){this.members=[]}add(a){be(this.members,a);for(let b=this.members.length-1;b>=0;b--){let c=this.members[b];if(c===a||c===this.lead||c===this.prevLead)continue;let d=c.instance;d&&!1!==d.isConnected||c.snapshot||(bf(this.members,c),c.unmount())}a.scheduleRender()}remove(a){if(bf(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){let a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(a){for(let b=this.members.indexOf(a)-1;b>=0;b--){let a=this.members[b];if(!1!==a.isPresent&&a.instance?.isConnected!==!1)return this.promote(a),!0}return!1}promote(a,b){let c=this.lead;if(a!==c&&(this.prevLead=c,this.lead=a,a.show(),c)){c.updateSnapshot(),a.scheduleRender();let{layoutDependency:d}=c.options,{layoutDependency:e}=a.options;(void 0===d||d!==e)&&(a.resumeFrom=c,b&&(c.preserveOpacity=!0),c.snapshot&&(a.snapshot=c.snapshot,a.snapshot.latestValues=c.animationValues||c.latestValues),a.root?.isUpdating&&(a.isLayoutDirty=!0)),!1===a.options.crossfade&&c.hide()}}exitAnimationComplete(){this.members.forEach(a=>{a.options.onExitComplete?.(),a.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(a=>a.instance&&a.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}function e9(a,b){return b.max===b.min?0:a/(b.max-b.min)*100}let fa={correct:(a,b)=>{if(!b.target)return a;if("string"==typeof a)if(!aa.test(a))return a;else a=parseFloat(a);let c=e9(a,b.target.x),d=e9(a,b.target.y);return`${c}% ${d}%`}},fb={borderRadius:{...fa,applyTo:[...eN]},borderTopLeftRadius:fa,borderTopRightRadius:fa,borderBottomLeftRadius:fa,borderBottomRightRadius:fa,boxShadow:{correct:(a,{treeScale:b,projectionDelta:c})=>{let d=an.parse(a);if(d.length>5)return a;let e=an.createTransformer(a),f=+("number"!=typeof d[0]),g=c.x.scale*b.x,h=c.y.scale*b.y;d[0+f]/=g,d[1+f]/=h;let i=b9(g,h,.5);return"number"==typeof d[2+f]&&(d[2+f]/=i),"number"==typeof d[3+f]&&(d[3+f]/=i),e(d)}}},fc=(a,b)=>a.depth-b.depth;class fd{constructor(){this.children=[],this.isDirty=!1}add(a){be(this.children,a),this.isDirty=!0}remove(a){bf(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(fc),this.isDirty=!1,this.children.forEach(a)}}Object.assign(b3,{...fb,...b3});let fe=["","X","Y","Z"],ff=0;function fg(a,b,c,d){let{latestValues:e}=b;e[a]&&(c[a]=e[a],b.setStaticValue(a,0),d&&(d[a]=0))}function fh({attachResizeListener:a,defaultParent:b,measureScroll:c,checkIsScrollRoot:d,resetTransform:e}){return class{constructor(a={},c=b?.()){this.id=ff++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(fk),this.nodes.forEach(fu),this.nodes.forEach(fv),this.nodes.forEach(fl)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new fd)}addEventListener(a,b){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new bg),this.eventHandlers.get(a).add(b)}notifyListeners(a,...b){let c=this.eventHandlers.get(a);c&&c.notify(...b)}hasListeners(a){return this.eventHandlers.has(a)}mount(b){if(this.instance)return;this.isSVG=eb(b)&&!(eb(b)&&"svg"===b.tagName),this.instance=b;let{layoutId:c,layout:d,visualElement:e}=this.options;if(e&&!e.current&&e.mount(b),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(d||c)&&(this.isLayoutDirty=!0),a){let c,d=0,e=()=>this.root.updateBlockedByResize=!1;F.read(()=>{d=window.innerWidth}),a(b,()=>{let a=window.innerWidth;if(a!==d){let b,f;d=a,this.root.updateBlockedByResize=!0,c&&c(),b=bq.now(),f=({timestamp:a})=>{let c=a-b;c>=250&&(G(f),e())},F.setup(f,!0),c=()=>G(f),eI.hasAnimatedSinceResize&&(eI.hasAnimatedSinceResize=!1,this.nodes.forEach(ft))}})}c&&this.root.registerSharedNode(c,this),!1!==this.options.animate&&e&&(c||d)&&this.addEventListener("didUpdate",({delta:a,hasLayoutChanged:b,hasRelativeLayoutChanged:c,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let f=this.options.transition||e.getDefaultTransition()||fB,{onLayoutAnimationStart:g,onLayoutAnimationComplete:h}=e.getProps(),i=!this.targetLayout||!e5(this.targetLayout,d),j=!b&&c;if(this.options.layoutRoot||this.resumeFrom||j||b&&(i||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let b={...cJ(f,"layout"),onPlay:g,onComplete:h};(e.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(a,j,b.path)}else b||ft(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),G(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(fw),this.animationId++)}getTransformTemplate(){let{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function a(b){if(b.hasCheckedOptimisedAppear=!0,b.root===b)return;let{visualElement:c}=b.options;if(!c)return;let d=c.props[cM];if(window.MotionHasOptimisedAnimation(d,"transform")){let{layout:a,layoutId:c}=b.options;window.MotionCancelOptimisedAnimation(d,"transform",F,!(a||c))}let{parent:e}=b;e&&!e.hasCheckedOptimisedAppear&&a(e)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let a=0;a<this.path.length;a++){let b=this.path[a];b.shouldResetTransform=!0,("string"==typeof b.latestValues.x||"string"==typeof b.latestValues.y)&&(b.isLayoutDirty=!0),b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}let{layoutId:b,layout:c}=this.options;if(void 0===b&&!c)return;let d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let a=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),a&&this.nodes.forEach(fo),this.nodes.forEach(fn);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(fp);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(fq),this.nodes.forEach(fr),this.nodes.forEach(fs),this.nodes.forEach(fi),this.nodes.forEach(fj)):this.nodes.forEach(fp),this.clearAllSnapshots();let a=bq.now();E.delta=N(0,1e3/60,a-E.timestamp),E.timestamp=a,E.isProcessing=!0,H.update.process(E),H.preRender.process(E),H.render.process(E),E.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,bB.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(fm),this.sharedNodes.forEach(fx)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,F.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){F.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||d1(this.snapshot.measuredBox.x)||d1(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let a=0;a<this.path.length;a++)this.path[a].updateScroll();let a=this.layout;this.layout=this.measure(!1),this.layoutCorrected||(this.layoutCorrected=aA()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:b}=this.options;b&&b.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let b=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(b=!1),b&&this.instance){let b=d(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:b,offset:c(this.instance),wasRoot:this.scroll?this.scroll.isRoot:b}}}resetTransform(){if(!e)return;let a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,b=this.projectionDelta&&!e2(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,f=d!==this.prevTransformTemplateValue;a&&this.instance&&(b||cc(this.latestValues)||f)&&(e(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){var b;let c=this.measurePageBox(),d=this.removeElementScroll(c);return a&&(d=this.removeTransform(d)),fE((b=d).x),fE(b.y),{animationId:this.root.animationId,measuredBox:c,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:a}=this.options;if(!a)return aA();let b=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(fG))){let{scroll:a}=this.root;a&&(ch(b.x,a.offset.x),ch(b.y,a.offset.y))}return b}removeElementScroll(a){let b=aA();if(eW(b,a),this.scroll?.wasRoot)return b;for(let c=0;c<this.path.length;c++){let d=this.path[c],{scroll:e,options:f}=d;d!==this.root&&e&&f.layoutScroll&&(e.wasRoot&&eW(b,a),ch(b.x,e.offset.x),ch(b.y,e.offset.y))}return b}applyTransform(a,b=!1,c){let d=c||aA();eW(d,a);for(let a=0;a<this.path.length;a++){let c=this.path[a];!b&&c.options.layoutScroll&&c.scroll&&c!==c.root&&(ch(d.x,-c.scroll.offset.x),ch(d.y,-c.scroll.offset.y)),cc(c.latestValues)&&ck(d,c.latestValues,c.layout?.layoutBox)}return cc(this.latestValues)&&ck(d,this.latestValues,this.layout?.layoutBox),d}removeTransform(a){let b=aA();eW(b,a);for(let a=0;a<this.path.length;a++){let c,d=this.path[a];cc(d.latestValues)&&(d.instance&&(cb(d.latestValues)&&d.updateSnapshot(),eW(c=aA(),d.measurePageBox())),e0(b,d.latestValues,d.snapshot?.layoutBox,c))}return cc(this.latestValues)&&e0(b,this.latestValues),b}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:void 0===a.crossfade||a.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==E.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){let b=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=b.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=b.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=b.isSharedProjectionDirty);let c=!!this.resumingFrom||this!==b;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:d,layoutId:e}=this.options;if(!this.layout||!(d||e))return;this.resolvedRelativeTargetAt=E.timestamp;let f=this.getClosestProjectingParent();if(this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=aA(),this.targetWithTransforms=aA()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var g,h,i,j;this.forceRelativeParentToResolveTarget(),g=this.target,h=this.relativeTarget,i=this.relativeParent.target,j=this.options.layoutAnchor||void 0,d4(g.x,h.x,i.x,j?.x),d4(g.y,h.y,i.y,j?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):eW(this.target,this.layout.layoutBox),cg(this.target,this.targetDelta)):eW(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&1!==this.animationProgress?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||cb(this.parent.latestValues)||cd(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,b,c){this.relativeParent=a,this.forceRelativeParentToResolveTarget(),this.relativeTarget=aA(),this.relativeTargetOrigin=aA(),d6(this.relativeTargetOrigin,b,c,this.options.layoutAnchor||void 0),eW(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let a=this.getLead(),b=!!this.resumingFrom||this!==a,c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),b&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===E.timestamp&&(c=!1),c)return;let{layout:d,layoutId:e}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||e))return;eW(this.layoutCorrected,this.layout.layoutBox);let f=this.treeScale.x,g=this.treeScale.y;!function(a,b,c,d=!1){let e,f,g=c.length;if(g){b.x=b.y=1;for(let h=0;h<g;h++){f=(e=c[h]).projectionDelta;let{visualElement:g}=e.options;(!g||!g.props.style||"contents"!==g.props.style.display)&&(d&&e.options.layoutScroll&&e.scroll&&e!==e.root&&(ch(a.x,-e.scroll.offset.x),ch(a.y,-e.scroll.offset.y)),f&&(b.x*=f.x.scale,b.y*=f.y.scale,cg(a,f)),d&&cc(e.latestValues)&&ck(a,e.latestValues,e.layout?.layoutBox))}b.x<1.0000000000001&&b.x>.999999999999&&(b.x=1),b.y<1.0000000000001&&b.y>.999999999999&&(b.y=1)}}(this.layoutCorrected,this.treeScale,this.path,b),a.layout&&!a.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=aA());let{target:h}=a;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(eX(this.prevProjectionDelta.x,this.projectionDelta.x),eX(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),d3(this.projectionDelta,this.layoutCorrected,h,this.latestValues),this.treeScale.x===f&&this.treeScale.y===g&&e7(this.projectionDelta.x,this.prevProjectionDelta.x)&&e7(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.visualElement?.scheduleRender(),a){let a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ay(),this.projectionDelta=ay(),this.projectionDeltaWithTransform=ay()}setAnimationOrigin(a,b=!1,c){let d,e=this.snapshot,f=e?e.latestValues:{},g={...this.latestValues},h=ay();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!b;let i=aA(),j=(e?e.source:void 0)!==(this.layout?this.layout.source:void 0),k=this.getStack(),l=!k||k.members.length<=1,m=!!(j&&!l&&!0===this.options.crossfade&&!this.path.some(fA));this.animationProgress=0;let n=c?.interpolateProjection(a);this.mixTargetDelta=b=>{let c=b/1e3,e=n?.(c);if(e?(h.x.translate=e.x,h.x.scale=b9(a.x.scale,1,c),h.x.origin=a.x.origin,h.x.originPoint=a.x.originPoint,h.y.translate=e.y,h.y.scale=b9(a.y.scale,1,c),h.y.origin=a.y.origin,h.y.originPoint=a.y.originPoint):(fy(h.x,a.x,c),fy(h.y,a.y,c)),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var k,o,p,q,r,s;d6(i,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),p=this.relativeTarget,q=this.relativeTargetOrigin,r=i,s=c,fz(p.x,q.x,r.x,s),fz(p.y,q.y,r.y,s),d&&(k=this.relativeTarget,o=d,e3(k.x,o.x)&&e3(k.y,o.y))&&(this.isProjectionDirty=!1),d||(d=aA()),eW(d,this.relativeTarget)}j&&(this.animationValues=g,function(a,b,c,d,e,f){e?(a.opacity=b9(0,c.opacity??1,eS(d)),a.opacityExit=b9(b.opacity??1,0,eT(d))):f&&(a.opacity=b9(b.opacity??1,c.opacity??1,d));for(let e=0;e<eP;e++){let f=eN[e],g=eR(b,f),h=eR(c,f);(void 0!==g||void 0!==h)&&(g||(g=0),h||(h=0),0===g||0===h||eQ(g)===eQ(h)?(a[f]=Math.max(b9(eO(g),eO(h),d),0),(_.test(h)||_.test(g))&&(a[f]+="%")):a[f]=h)}(b.rotate||c.rotate)&&(a.rotate=b9(b.rotate||0,c.rotate||0,d))}(g,f,this.latestValues,c,m,l)),e&&void 0!==e.rotate&&(this.animationValues||(this.animationValues=g),this.animationValues.pathRotation=e.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=c},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(G(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=F.update(()=>{var b,c,d;let e;eI.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=bF(0)),this.motionValue.jump(0,!1),this.currentAnimation=(b=this.motionValue,c=[0,1e3],d={...a,velocity:0,isSync:!0,onUpdate:b=>{this.mixTargetDelta(b),a.onUpdate&&a.onUpdate(b)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}},(e=aB(b)?b:bF(b)).start(dN("",e,c,d)),e.animation),function(a,b){let c=globalThis.__MOTION_INSPECT__;if(c)try{c({...br("layout-animation-start",a),node:b})}catch{}}(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let a=this.getLead(),{targetWithTransforms:b,layout:c,latestValues:d}=a,{target:e}=a;if(b&&e&&c){if(this!==a&&this.layout&&c&&fF(this.options.animationType,this.layout.layoutBox,c.layoutBox)){e=this.target||aA();let b=d1(this.layout.layoutBox.x);e.x.min=a.target.x.min,e.x.max=e.x.min+b;let c=d1(this.layout.layoutBox.y);e.y.min=a.target.y.min,e.y.max=e.y.min+c}eW(b,e),ck(b,d),d3(this.projectionDeltaWithTransform,this.layoutCorrected,b,d)}}registerSharedNode(a,b){this.sharedNodes.has(a)||this.sharedNodes.set(a,new e8),this.sharedNodes.get(a).add(b);let c=b.options.initialPromotionConfig;b.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(b):void 0})}isLead(){let a=this.getStack();return!a||a.lead===this}getLead(){let{layoutId:a}=this.options;return a&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:b,preserveFollowOpacity:c}={}){let d=this.getStack();d&&d.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),b&&this.setOptions({transition:b})}relegate(){let a=this.getStack();return!!a&&a.relegate(this)}resetSkewAndRotation(){let{visualElement:a}=this.options;if(!a)return;let b=!1,{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(b=!0),!b)return;let d={};c.z&&fg("z",a,d,this.animationValues);for(let b=0;b<fe.length;b++)fg(`rotate${fe[b]}`,a,d,this.animationValues),fg(`skew${fe[b]}`,a,d,this.animationValues);for(let b in a.render(),d)a.setStaticValue(b,d[b]),this.animationValues&&(this.animationValues[b]=d[b]);a.scheduleRender()}applyProjectionStyles(a,b){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}let c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=cx(b?.pointerEvents)||"",a.transform=c?c(this.latestValues,""):"none";return}let d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(a.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,a.pointerEvents=cx(b?.pointerEvents)||""),this.hasProjected&&!cc(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";let e=d.animationValues||d.latestValues;this.applyTransformsToTarget();let f=function(a,b,c){let d="",e=a.x.translate/b.x,f=a.y.translate/b.y,g=c?.z||0;if((e||f||g)&&(d=`translate3d(${e}px, ${f}px, ${g}px) `),(1!==b.x||1!==b.y)&&(d+=`scale(${1/b.x}, ${1/b.y}) `),c){let{transformPerspective:a,rotate:b,pathRotation:e,rotateX:f,rotateY:g,skewX:h,skewY:i}=c;a&&(d=`perspective(${a}px) ${d}`),b&&(d+=`rotate(${b}deg) `),e&&(d+=`rotate(${e}deg) `),f&&(d+=`rotateX(${f}deg) `),g&&(d+=`rotateY(${g}deg) `),h&&(d+=`skewX(${h}deg) `),i&&(d+=`skewY(${i}deg) `)}let h=a.x.scale*b.x,i=a.y.scale*b.y;return(1!==h||1!==i)&&(d+=`scale(${h}, ${i})`),d||"none"}(this.projectionDeltaWithTransform,this.treeScale,e);c&&(f=c(e,f)),a.transform=f;let{x:g,y:h}=this.projectionDelta;for(let b in a.transformOrigin=`${100*g.origin}% ${100*h.origin}% 0`,d.animationValues?a.opacity=d===this?e.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:e.opacityExit:a.opacity=d===this?void 0!==e.opacity?e.opacity:"":void 0!==e.opacityExit?e.opacityExit:0,b3){if(void 0===e[b])continue;let{correct:c,applyTo:g,isCSSVariable:h}=b3[b],i="none"===f?e[b]:c(e[b],d);if(g){let b=g.length;for(let c=0;c<b;c++)a[g[c]]=i}else h?this.options.visualElement.renderState.vars[b]=i:a[b]=i}this.options.layoutId&&(a.pointerEvents=d===this?cx(b?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(fn),this.root.sharedNodes.clear()}}}function fi(a){a.updateLayout()}function fj(a){let b=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&b&&a.hasListeners("didUpdate")){let{layoutBox:c,measuredBox:d}=a.layout,{animationType:e}=a.options,f=b.source!==a.layout.source;if("size"===e)d0(a=>{let d=f?b.measuredBox[a]:b.layoutBox[a],e=d1(d);d.min=c[a].min,d.max=d.min+e});else if("x"===e||"y"===e){let a="x"===e?"y":"x";eV(f?b.measuredBox[a]:b.layoutBox[a],c[a])}else fF(e,b.layoutBox,c)&&d0(d=>{let e=f?b.measuredBox[d]:b.layoutBox[d],g=d1(c[d]);e.max=e.min+g,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[d].max=a.relativeTarget[d].min+g)});let g=ay();d3(g,c,b.layoutBox);let h=ay();f?d3(h,a.applyTransform(d,!0),b.measuredBox):d3(h,c,b.layoutBox);let i=!e2(g),j=!1;if(!a.resumeFrom){let d=a.getClosestProjectingParent();if(d&&!d.resumeFrom){let{snapshot:e,layout:f}=d;if(e&&f){let g=a.options.layoutAnchor||void 0,h=aA();d6(h,b.layoutBox,e.layoutBox,g);let i=aA();d6(i,c,f.layoutBox,g),e5(h,i)||(j=!0),d.options.layoutRoot&&(a.relativeTarget=i,a.relativeTargetOrigin=h,a.relativeParent=d)}}}a.notifyListeners("didUpdate",{layout:c,snapshot:b,delta:h,layoutDelta:g,hasLayoutChanged:i,hasRelativeLayoutChanged:j})}else if(a.isLead()){let{onExitComplete:b}=a.options;b&&b()}a.options.transition=void 0}function fk(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function fl(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function fm(a){a.clearSnapshot()}function fn(a){a.clearMeasurements()}function fo(a){a.isLayoutDirty=!0,a.updateLayout()}function fp(a){a.isLayoutDirty=!1}function fq(a){a.isAnimationBlocked&&a.layout&&!a.isLayoutDirty&&(a.snapshot=a.layout,a.isLayoutDirty=!0)}function fr(a){a.relativeTarget&&a.relativeParent?.isLayoutDirty&&(a.currentAnimation?a.isLayoutDirty=!0:(a.targetDelta=void 0,a.removeRelativeTarget()))}function fs(a){let{visualElement:b}=a.options;b&&b.getProps().onBeforeLayoutMeasure&&b.notify("BeforeLayoutMeasure"),a.resetTransform()}function ft(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function fu(a){a.resolveTargetDelta()}function fv(a){a.calcProjection()}function fw(a){a.resetSkewAndRotation()}function fx(a){a.removeLeadSnapshot()}function fy(a,b,c){a.translate=b9(b.translate,0,c),a.scale=b9(b.scale,1,c),a.origin=b.origin,a.originPoint=b.originPoint}function fz(a,b,c,d){a.min=b9(b.min,c.min,d),a.max=b9(b.max,c.max,d)}function fA(a){return a.animationValues&&void 0!==a.animationValues.opacityExit}let fB={duration:.45,ease:[.4,0,.1,1]},fC=a=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),fD=fC("applewebkit/")&&!fC("chrome/")?Math.round:A;function fE(a){a.min=fD(a.min),a.max=fD(a.max)}function fF(a,b,c){return"position"===a||"preserve-aspect"===a&&!(.2>=Math.abs(e6(b)-e6(c)))}function fG(a){return a!==a.root&&a.scroll?.wasRoot}let fH=fh({attachResizeListener:(a,b)=>d9(a,"resize",b),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),fI={current:void 0},fJ=fh({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!fI.current){let a=new fH({});a.mount(window),a.setOptions({layoutScroll:!0}),fI.current=a}return fI.current},resetTransform:(a,b)=>{a.style.transform=void 0!==b?b:"none"},checkIsScrollRoot:a=>"fixed"===window.getComputedStyle(a).position});function fK(a,b){let c=ec(a),d=new AbortController;return[c,{passive:!0,...b,signal:d.signal},()=>d.abort()]}function fL(a,b,c){let{props:d}=a;a.animationState&&d.whileHover&&a.animationState.setActive("whileHover","Start"===c);let e=d["onHover"+c];e&&F.postRender(()=>e(b,em(b)))}class fM extends cG{mount(){let{current:a}=this.node;a&&(this.unmount=function(a,b,c={}){let[d,e,f]=fK(a,c);return d.forEach(a=>{let c,d=!1,f=!1,g=b=>{c&&(c(b),c=void 0),a.removeEventListener("pointerleave",i)},h=a=>{d=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),f&&(f=!1,g(a))},i=a=>{if("touch"!==a.pointerType){if(d){f=!0;return}g(a)}};a.addEventListener("pointerenter",d=>{if("touch"===d.pointerType||d_.x||d_.y)return;f=!1;let g=b(a,d);"function"==typeof g&&(c=g,a.addEventListener("pointerleave",i,e))},e),a.addEventListener("pointerdown",()=>{d=!0,window.addEventListener("pointerup",h,e),window.addEventListener("pointercancel",h,e)},e)}),f}(a,(a,b)=>(fL(this.node,b,"Start"),a=>fL(this.node,a,"End"))))}unmount(){}}class fN extends cG{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch(b){a=!0}a&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=cN(d9(this.node.current,"focus",()=>this.onFocus()),d9(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let fO=(a,b)=>!!b&&(a===b||fO(a,b.parentElement)),fP=new WeakSet;function fQ(a){return b=>{"Enter"===b.key&&a(b)}}function fR(a,b){a.dispatchEvent(new PointerEvent("pointer"+b,{isPrimary:!0,bubbles:!0}))}function fS(a){return el(a)&&!(d_.x||d_.y)}let fT=new WeakSet;function fU(a,b,c){let{props:d}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&d.whileTap&&a.animationState.setActive("whileTap","Start"===c);let e=d["onTap"+("End"===c?"":c)];e&&F.postRender(()=>e(b,em(b)))}class fV extends cG{mount(){let{current:a}=this.node;if(!a)return;let{globalTapTarget:b,propagate:c}=this.node.props;this.unmount=function(a,b,c={}){let[d,e,f]=fK(a,c),g=a=>{let d=a.currentTarget;if(!fS(a)||fT.has(a))return;fP.add(d),c.stopPropagation&&fT.add(a);let f=b(d,a),g={...e,capture:!0},h=(a,b)=>{window.removeEventListener("pointerup",i,g),window.removeEventListener("pointercancel",j,g),fP.has(d)&&fP.delete(d),fS(a)&&"function"==typeof f&&f(a,{success:b})},i=a=>{h(a,d===window||d===document||c.useGlobalTarget||fO(d,a.target))},j=a=>{h(a,!1)};window.addEventListener("pointerup",i,g),window.addEventListener("pointercancel",j,g)};return d.forEach(a=>{(c.useGlobalTarget?window:a).addEventListener("pointerdown",g,e),ea(a)&&"offsetHeight"in a&&!("ownerSVGElement"in a)&&(a.addEventListener("focus",a=>((a,b)=>{let c=a.currentTarget;if(!c)return;let d=fQ(()=>{if(fP.has(c))return;fR(c,"down");let a=fQ(()=>{fR(c,"up")});c.addEventListener("keyup",a,b),c.addEventListener("blur",()=>fR(c,"cancel"),b)});c.addEventListener("keydown",d,b),c.addEventListener("blur",()=>c.removeEventListener("keydown",d),b)})(a,e)),d7.has(a.tagName)||!0===a.isContentEditable||a.hasAttribute("tabindex")||(a.tabIndex=0))}),f}(a,(a,b)=>(fU(this.node,b,"Start"),(a,{success:b})=>fU(this.node,a,b?"End":"Cancel")),{useGlobalTarget:b,stopPropagation:c?.tap===!1})}unmount(){}}let fW=new WeakMap,fX=new WeakMap,fY=a=>{let b=fW.get(a.target);b&&b(a)},fZ=a=>{a.forEach(fY)},f$={some:0,all:1};class f_ extends cG{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var a;let b;this.stopObserver?.();let{viewport:c={}}=this.node.getProps(),{root:d,margin:e,amount:f="some",once:g}=c,h={root:d?d.current:void 0,rootMargin:e,threshold:"number"==typeof f?f:f$[f]},i=a=>{let{isIntersecting:b}=a;if(this.isInView===b||(this.isInView=b,g&&!b&&this.hasEnteredView))return;b&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",b);let{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),e=b?c:d;e&&e(a)};this.stopObserver=(a=this.node.current,b=function({root:a,...b}){let c=a||document;fX.has(c)||fX.set(c,{});let d=fX.get(c),e=JSON.stringify(b);return d[e]||(d[e]=new IntersectionObserver(fZ,{root:a,...b})),d[e]}(h),fW.set(a,i),b.observe(a),()=>{fW.delete(a),b.unobserve(a)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:a,prevProps:b}=this.node;["amount","margin","root"].some(function({viewport:a={}},{viewport:b={}}={}){return c=>a[c]!==b[c]}(a,b))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let f0=function(a,b){if("u"<typeof Proxy)return cF;let c=new Map,d=(c,d)=>cF(c,d,a,b);return new Proxy((a,b)=>d(a,b),{get:(e,f)=>"create"===f?d:(c.has(f)||c.set(f,cF(f,void 0,a,b)),c.get(f))})}({animation:{Feature:dY},exit:{Feature:d$},inView:{Feature:f_},tap:{Feature:fV},focus:{Feature:fN},hover:{Feature:fM},pan:{Feature:eH},drag:{Feature:eF,ProjectionNode:fJ,MeasureLayout:eM},layout:{ProjectionNode:fJ,MeasureLayout:eM}},(a,b)=>b.isSVG??co(a)?new b7(b):new cm(b,{allowProjection:a!==h.Fragment})),f1={ease:"easeInOut",duration:.2};function f2({children:a,value:b,defaultValue:c,onValueChange:d,className:e,containerClassName:f,transition:i=f1,"aria-label":j}){let k=(0,h.useId)(),[l,m]=(0,h.useState)(c),n=function(){v.current||x();let[a]=(0,h.useState)(u.current);return a}(),o=void 0!==b,p=o?b:l;return(0,g.jsx)(K,{id:k,children:(0,g.jsx)("div",{role:"group","aria-label":j,className:(0,t.cn)("inline-flex items-center",f),children:h.Children.map(a,a=>{if(!(0,h.isValidElement)(a)||void 0===a.props["data-id"])return a;let b=a.props["data-id"],c=b===p;return(0,h.cloneElement)(a,{"aria-pressed":c,className:(0,t.cn)("relative isolate",a.props.className),onClick:e=>{a.props.onClick?.(e),e.defaultPrevented||a.props.disabled||c||(o||m(b),d?.(b))},children:(0,g.jsxs)(g.Fragment,{children:[c&&(0,g.jsx)(f0.span,{"aria-hidden":"true",layoutId:"active-background",initial:!1,transition:n?{duration:0}:i,className:(0,t.cn)("pointer-events-none absolute inset-0 -z-10",e)}),a.props.children]})})})})})}function f3(a){return!a||a<=0?"0":a>=1e9?`${(a/1e9).toFixed(2)}B`:a>=1e6?`${(a/1e6).toFixed(1)}M`:a>=1e3?`${(a/1e3).toFixed(1)}K`:a.toLocaleString()}function f4(a){return!a||a<=0?"$0.0000":`$${Number(a).toFixed(4)}`}let f5=[{value:"today",label:"Today"},{value:"24h",label:"24h"},{value:"7d",label:"7D"},{value:"30d",label:"30D"},{value:"60d",label:"60D"},{value:"all",label:"All"}];function f6({stats:a,connectionsCount:b=0,nodesCount:c=0,period:d="7d",onPeriodChange:e,fetching:f=!1,onRefresh:h}){let m=a?.totalRequests||0,n=a?.totalPromptTokens||0,p=a?.totalCompletionTokens||0,u=n+p,v=a?.totalCost||0,w=(a?.activeRequests||[]).reduce((a,b)=>a+(b.count||0),0),x=a?.recentRequests||[],y=x.filter(a=>a.status&&"ok"!==a.status&&"success"!==a.status&&"200"!==a.status).length,z=x.length||1,A=x.length>0?((z-y)/z*100).toFixed(1):"100.0",B=u>0?Math.round(n/u*100):50,C=100-B,D=m>0?v/m*1e3:0;return(0,g.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,g.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between py-1",children:[(0,g.jsx)("div",{className:"flex items-center gap-2",children:(0,g.jsx)("div",{className:"ui-eyebrow",children:(0,g.jsx)("span",{children:"Dashboard Telemetry"})})}),(0,g.jsxs)("div",{className:"flex items-center gap-2 self-start sm:self-auto",children:[(0,g.jsx)(f2,{value:d,onValueChange:e,"aria-label":"Telemetry period",containerClassName:"dashboard-segmented-control",className:"dashboard-segment-highlight",children:f5.map(a=>(0,g.jsx)("button",{"data-id":a.value,type:"button","aria-label":`${a.label} telemetry`,className:"dashboard-segment",children:a.label},a.value))}),(0,g.jsx)("button",{type:"button",onClick:h,disabled:f,"aria-label":"Refresh telemetry","aria-busy":f,title:"Refresh telemetry",className:"dashboard-refresh",children:(0,g.jsx)(i.A,{className:(0,t.cn)("size-3.5",f&&"animate-spin motion-reduce:animate-none text-[var(--text)]")})})]})]}),(0,g.jsxs)("div",{className:"grid-stats",children:[(0,g.jsxs)("div",{className:"stat-card p-4 flex flex-col justify-between",children:[(0,g.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,g.jsx)("span",{className:"ui-eyebrow text-[10px] text-[var(--text-2)]",children:"TOTAL REQUESTS"}),(0,g.jsx)(j.A,{className:"size-4 shrink-0 text-[var(--text-2)]"})]}),(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{className:"font-mono text-2xl font-semibold text-[var(--text)] tracking-tight u-tnum",children:m.toLocaleString()}),(0,g.jsx)("div",{className:"mt-1 flex items-center gap-1.5 text-xs font-mono text-[var(--text-3)]",children:w>0?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("span",{className:"size-1.5 rounded-full bg-[var(--pos)] animate-pulse"}),(0,g.jsxs)("span",{className:"text-[var(--pos)] font-medium u-tnum",children:[w," active in-flight"]})]}):(0,g.jsx)("span",{className:"text-[var(--text-3)]",children:"Pipeline idle \xb7 Ready"})})]})]}),(0,g.jsxs)("div",{className:"stat-card p-4 flex flex-col justify-between",children:[(0,g.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,g.jsx)("span",{className:"ui-eyebrow text-[10px] text-[var(--text-2)]",children:"SUCCESS RATE"}),(0,g.jsx)(k.A,{className:"size-4 shrink-0 text-[var(--pos)]"})]}),(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{className:"font-mono text-2xl font-semibold text-[var(--text)] tracking-tight u-tnum flex items-baseline gap-1",children:(0,g.jsxs)("span",{children:[A,"%"]})}),(0,g.jsx)("div",{className:"mt-1 flex items-center gap-1.5 text-xs font-mono",children:0===y?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("span",{className:"text-[var(--pos)] font-medium",children:"0 failure signals"}),(0,g.jsx)("span",{className:"text-[var(--text-3)]",children:"\xb7"}),(0,g.jsx)("span",{className:"text-[var(--pos)]",children:"200 OK"})]}):(0,g.jsxs)("span",{className:"text-[var(--warn)] font-medium u-tnum",children:[y," failure signals"]})})]})]}),(0,g.jsxs)("div",{className:"stat-card p-4 flex flex-col justify-between",children:[(0,g.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,g.jsx)("span",{className:"ui-eyebrow text-[10px] text-[var(--text-2)]",children:"TOTAL TOKENS"}),(0,g.jsx)(l.A,{className:"size-4 shrink-0 text-[var(--text-2)]"})]}),(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{className:"font-mono text-2xl font-semibold text-[var(--text)] tracking-tight u-tnum",children:f3(u)}),(0,g.jsxs)("div",{className:"mt-1 flex items-center justify-between text-[11px] font-mono text-[var(--text-2)]",children:[(0,g.jsxs)("span",{className:"flex items-center gap-0.5 text-[var(--text-2)] u-tnum",children:[(0,g.jsx)(o,{className:"size-3 text-[var(--text-3)]"}),f3(n)," in"]}),(0,g.jsxs)("span",{className:"flex items-center gap-0.5 text-[var(--text-2)] u-tnum",children:[(0,g.jsx)(q,{className:"size-3 text-[var(--pos)]"}),f3(p)," out"]})]}),(0,g.jsxs)("div",{className:"mt-1.5 h-1 w-full bg-[var(--surface-inset)] border border-[var(--line)] rounded-full overflow-hidden flex",children:[(0,g.jsx)("div",{style:{width:`${B}%`},className:"bg-[var(--text-3)] h-full",title:`Prompt: ${B}%`}),(0,g.jsx)("div",{style:{width:`${C}%`},className:"bg-[var(--pos)] h-full",title:`Completion: ${C}%`})]})]})]}),(0,g.jsxs)("div",{className:"stat-card p-4 flex flex-col justify-between",children:[(0,g.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,g.jsx)("span",{className:"ui-eyebrow text-[10px] text-[var(--text-2)]",children:"ESTIMATED COST"}),(0,g.jsx)(r.A,{className:"size-4 shrink-0 text-[var(--text-2)]"})]}),(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{className:"font-mono text-2xl font-semibold text-[var(--text)] tracking-tight u-tnum",children:f4(v)}),(0,g.jsx)("div",{className:"mt-1 flex items-center gap-1.5 text-xs font-mono text-[var(--text-3)]",children:(0,g.jsxs)("span",{className:"u-tnum",children:["Avg ",f4(D),"/1k req"]})})]})]}),(0,g.jsxs)("div",{className:"stat-card p-4 flex flex-col justify-between",children:[(0,g.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,g.jsx)("span",{className:"ui-eyebrow text-[10px] text-[var(--text-2)]",children:"CONNECTIONS & NODES"}),(0,g.jsx)(s.A,{className:"size-4 shrink-0 text-[var(--text-2)]"})]}),(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{className:"font-mono text-2xl font-semibold text-[var(--text)] tracking-tight u-tnum",children:[b," Active"]}),(0,g.jsxs)("div",{className:"mt-1 flex items-center gap-1.5 text-xs font-mono text-[var(--text-3)]",children:[(0,g.jsxs)("span",{className:"u-tnum",children:[c," routing nodes"]}),(0,g.jsx)("span",{className:"text-[var(--text-3)]",children:"\xb7"}),(0,g.jsx)("span",{className:"text-[var(--pos)] font-medium",children:"Ready"})]})]})]})]})]})}var f7=c(48679),f8=c(21621),f9=c(5277),ga=c(22393),gb=c(54206),gc=c(48121),gd=c(71610),ge=c(67254),gf=c(24950);let gg=[{value:"requests",label:"Requests",icon:j.A},{value:"tokens",label:"Tokens",icon:ge.A},{value:"cost",label:"Cost",icon:r.A}];function gh({active:a,payload:b,label:c,mode:d}){if(!a||!b||!b.length)return null;let e=b[0].value;return(0,g.jsxs)("div",{className:"rounded-[var(--r2)] border border-[var(--line-2)] bg-[var(--surface-2)]/95 backdrop-blur-md px-3 py-2 shadow-[var(--shadow-pop)] text-xs font-mono",children:[(0,g.jsx)("div",{className:"text-[var(--text-3)] mb-1 text-[11px]",children:c}),(0,g.jsxs)("div",{className:"flex items-center gap-2",children:[(0,g.jsx)("span",{className:"size-2 rounded-full bg-[var(--text)]"}),(0,g.jsxs)("span",{className:"text-[var(--text-2)] capitalize",children:[d,":"]}),(0,g.jsx)("span",{className:"text-[var(--text)] font-semibold u-tnum",children:"cost"===d?f4(e):"tokens"===d?f3(e):Number(e).toLocaleString()})]})]})}function gi({period:a="7d"}){let[b,c]=(0,h.useState)([]),[d,e]=(0,h.useState)(!0),[f,i]=(0,h.useState)("requests"),[j,k]=(0,h.useState)(!1);(0,h.useCallback)(async()=>{e(!0);try{let b=await fetch(`/api/usage/chart?period=${a}`);if(b.ok){let a=await b.json();c(Array.isArray(a)?a:[])}}catch(a){console.error("Failed to fetch activity chart data:",a)}finally{e(!1)}},[a]);let{total:l,peak:m,avg:n}=(0,h.useMemo)(()=>{if(!b.length)return{total:0,peak:0,avg:0};let a=b.map(a=>Number(a[f]||0)),c=a.reduce((a,b)=>a+b,0),d=Math.max(...a,0),e=c/a.length;return{total:c,peak:d,avg:e}},[b,f]),o=b.some(a=>(a[f]||0)>0);return(0,g.jsxs)("div",{className:"ui-card p-5 flex flex-col justify-between",children:[(0,g.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-4",children:[(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{className:"flex items-center gap-2",children:[(0,g.jsx)("span",{className:"ui-eyebrow text-[10px] text-[var(--text-2)]",children:"ACTIVITY TIMELINE"}),(0,g.jsx)("span",{className:"text-[var(--text-3)]",children:"\xb7"}),(0,g.jsx)("span",{className:"text-xs text-[var(--text-3)]",children:"Throughput over time"})]}),(0,g.jsxs)("div",{className:"mt-1 flex items-center gap-4 text-xs font-mono text-[var(--text-2)]",children:[(0,g.jsxs)("span",{children:["Total:"," ",(0,g.jsx)("strong",{className:"text-[var(--text)] font-semibold u-tnum",children:"cost"===f?f4(l):"tokens"===f?f3(l):l.toLocaleString()})]}),(0,g.jsx)("span",{className:"text-[var(--text-3)]",children:"\xb7"}),(0,g.jsxs)("span",{children:["Peak:"," ",(0,g.jsx)("strong",{className:"text-[var(--text)] font-semibold u-tnum",children:"cost"===f?f4(m):"tokens"===f?f3(m):Math.round(m).toLocaleString()})]}),(0,g.jsx)("span",{className:"text-[var(--text-3)]",children:"\xb7"}),(0,g.jsxs)("span",{children:["Avg:"," ",(0,g.jsx)("strong",{className:"text-[var(--text)] font-semibold u-tnum",children:"cost"===f?f4(n):"tokens"===f?f3(n):Math.round(n).toLocaleString()})]})]})]}),(0,g.jsx)(f2,{value:f,onValueChange:i,"aria-label":"Activity metric",containerClassName:"dashboard-segmented-control self-start sm:self-auto",className:"dashboard-segment-highlight",children:gg.map(a=>{let b=a.icon;return(0,g.jsxs)("button",{"data-id":a.value,type:"button","aria-label":`${a.label} view`,className:"dashboard-segment",children:[(0,g.jsx)(b,{className:"size-3"}),a.label]},a.value)})})]}),(0,g.jsx)("div",{className:"w-full h-[220px] sm:h-[240px]",children:!j||d?(0,g.jsx)("div",{className:"w-full h-full flex items-center justify-center text-xs font-mono text-[var(--text-3)] animate-pulse",children:"Loading timeline telemetry..."}):o?(0,g.jsx)(f7.u,{width:"100%",height:"100%",children:(0,g.jsxs)(f8.Q,{data:b,margin:{top:8,right:8,left:-20,bottom:0},children:[(0,g.jsx)("defs",{children:(0,g.jsxs)("linearGradient",{id:"areaGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,g.jsx)("stop",{offset:"5%",stopColor:"var(--text)",stopOpacity:.14}),(0,g.jsx)("stop",{offset:"95%",stopColor:"var(--text)",stopOpacity:0})]})}),(0,g.jsx)(f9.d,{stroke:"var(--line)",strokeDasharray:"3 3",vertical:!1}),(0,g.jsx)(ga.W,{dataKey:"label",stroke:"var(--text-2)",fontSize:11,fontFamily:"var(--font-mono)",tickLine:!1,axisLine:!1}),(0,g.jsx)(gb.h,{stroke:"var(--text-2)",fontSize:11,fontFamily:"var(--font-mono)",tickLine:!1,axisLine:!1,tickFormatter:a=>"cost"===f?`$${Number(a).toFixed(2)}`:"tokens"===f?f3(a):a>=1e3?`${(a/1e3).toFixed(1)}k`:String(a)}),(0,g.jsx)(gc.m,{content:(0,g.jsx)(gh,{mode:f})}),(0,g.jsx)(gd.Gk,{type:"monotone",dataKey:f,stroke:"var(--text)",strokeWidth:2,fillOpacity:1,fill:"url(#areaGradient)"})]})}):(0,g.jsxs)("div",{className:"dashboard-card-inset w-full h-full flex flex-col items-center justify-center border border-dashed border-[var(--line)] rounded-[var(--r2)] bg-[var(--surface-inset)] p-6 text-center",children:[(0,g.jsx)(gf.A,{className:"size-6 text-[var(--text-3)] mb-2"}),(0,g.jsx)("p",{className:"text-xs font-mono text-[var(--text-2)]",children:"No activity recorded for this period"}),(0,g.jsxs)("p",{className:"text-[11px] text-[var(--text-3)] mt-1",children:["Send requests to ",(0,g.jsx)("code",{className:"text-[var(--text-2)] bg-[var(--surface-2)] px-1 py-0.5 rounded-[var(--r1)] border border-[var(--line)]",children:"/v1/chat/completions"})," to see real-time volume."]})]})})]})}var gj=c(2116),gk=c.n(gj),gl=c(72597);function gm({stats:a}){let b=(0,h.useMemo)(()=>{let b=Object.entries(a?.byModel||{}).map(([a,b])=>({key:a,name:b.rawModel||a.split(" (")[0]||a,provider:b.provider||"Direct",requests:b.requests||0,promptTokens:b.promptTokens||0,completionTokens:b.completionTokens||0,cost:b.cost||0}));return b.sort((a,b)=>b.requests-a.requests),b.slice(0,6)},[a]),c=b.length>0?b[0].requests:1,d=b.reduce((a,b)=>a+b.requests,0)||1;return(0,g.jsxs)("div",{className:"ui-card p-5 flex flex-col justify-between",children:[(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,g.jsx)("div",{className:"flex items-center gap-2",children:(0,g.jsx)("span",{className:"ui-eyebrow text-[10px] text-[var(--text-2)]",children:"TOP MODELS BY VOLUME"})}),(0,g.jsxs)("span",{className:"font-mono text-[11px] text-[var(--text-3)] u-tnum",children:[b.length," active models"]})]}),(0,g.jsx)("div",{className:"space-y-3 mt-3",children:b.length>0?b.map((a,b)=>{let e=Math.round(a.requests/c*100),f=(a.requests/d*100).toFixed(1);return(0,g.jsxs)("div",{className:"space-y-1",children:[(0,g.jsxs)("div",{className:"flex items-center justify-between text-xs font-mono",children:[(0,g.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,g.jsxs)("span",{className:"text-[var(--text-3)] font-semibold w-4 text-[10px] u-tnum",children:["0",b+1]}),(0,g.jsx)("span",{className:"text-[var(--text)] font-medium truncate max-w-[160px] sm:max-w-[220px]",title:a.name,children:a.name}),(0,g.jsx)("span",{className:"px-1.5 py-0.5 rounded-[var(--r1)] bg-transparent border border-white text-[10px] text-white font-mono",children:a.provider})]}),(0,g.jsxs)("div",{className:"flex items-center gap-3 shrink-0 text-right",children:[(0,g.jsx)("span",{className:"text-[var(--text)] u-tnum font-semibold",children:a.requests.toLocaleString()}),(0,g.jsxs)("span",{className:"text-[var(--text-3)] text-[11px] w-9 u-tnum",children:[f,"%"]})]})]}),(0,g.jsx)("div",{className:"h-1 w-full bg-[var(--surface-inset)] border border-[var(--line)] rounded-full overflow-hidden",children:(0,g.jsx)("div",{style:{width:`${e}%`},className:"h-full bg-[var(--text-2)] rounded-full transition-all duration-300"})})]},a.key)}):(0,g.jsx)("div",{className:"dashboard-card-inset text-center py-8 text-xs font-mono text-[var(--text-3)] border border-dashed border-[var(--line)] rounded-[var(--r2)] bg-[var(--surface-inset)]",children:"No model usage records found in this time range."})})]}),(0,g.jsx)("div",{className:"pt-3 mt-4 border-t border-[var(--line)] flex items-center justify-between text-xs font-mono",children:(0,g.jsxs)(gk(),{href:"/dashboard/combos",className:"text-[var(--text-2)] hover:text-[var(--text)] flex items-center gap-1 transition-colors",children:[(0,g.jsx)("span",{children:"View Combos & Adapters"}),(0,g.jsx)(gl.A,{className:"size-3"})]})})]})}let gn=["bg-[var(--text)]","bg-[var(--text-2)]","bg-[var(--text-3)]","bg-[var(--pos)]","bg-[var(--warn)]","bg-[var(--promo-accent)]","bg-zinc-400"];function go({stats:a}){let b=(0,h.useMemo)(()=>{let b=a?.byProvider||{},c=a?.totalRequests||1,d=Object.entries(b).map(([a,b],d)=>{let e=b.requests||0,f=c>0?e/c*100:0;return{name:a,requests:e,tokens:(b.promptTokens||0)+(b.completionTokens||0),cost:b.cost||0,share:f.toFixed(1),shareNum:f,color:gn[d%gn.length]}});return d.sort((a,b)=>b.requests-a.requests),d},[a]);return(0,g.jsxs)("div",{className:"ui-card p-5 flex flex-col justify-between",children:[(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,g.jsx)("div",{className:"flex items-center gap-2",children:(0,g.jsx)("span",{className:"ui-eyebrow text-[10px] text-[var(--text-2)]",children:"PROVIDER DISTRIBUTION"})}),(0,g.jsxs)("span",{className:"font-mono text-[11px] text-[var(--text-3)] u-tnum",children:[b.length," upstream sources"]})]}),b.length>0&&(0,g.jsx)("div",{className:"mb-4",children:(0,g.jsx)("div",{className:"h-2 w-full bg-[var(--surface-inset)] border border-[var(--line)] rounded-full overflow-hidden flex gap-0.5",children:b.map(a=>(0,g.jsx)("div",{style:{width:`${Math.max(a.shareNum,2)}%`},className:`h-full ${a.color} transition-all`,title:`${a.name}: ${a.share}%`},a.name))})}),(0,g.jsx)("div",{className:"space-y-2.5",children:b.length>0?b.slice(0,5).map(a=>(0,g.jsxs)("div",{className:"dashboard-card-inset flex items-center justify-between p-2.5 rounded-[var(--r2)] bg-[var(--surface-inset)] border border-[var(--line)] text-xs font-mono",children:[(0,g.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,g.jsx)("span",{className:`size-2 rounded-full ${a.color}`}),(0,g.jsx)("span",{className:"text-[var(--text)] font-medium capitalize truncate max-w-[140px] sm:max-w-[200px]",children:a.name})]}),(0,g.jsxs)("div",{className:"flex items-center gap-4 text-right shrink-0",children:[(0,g.jsx)("span",{className:"text-[var(--text-3)] text-[11px] u-tnum",children:f3(a.tokens)}),(0,g.jsx)("span",{className:"text-[var(--text-3)] text-[11px] u-tnum",children:f4(a.cost)}),(0,g.jsxs)("span",{className:"text-[var(--text)] font-semibold u-tnum w-12",children:[a.share,"%"]})]})]},a.name)):(0,g.jsx)("div",{className:"dashboard-card-inset text-center py-8 text-xs font-mono text-[var(--text-3)] border border-dashed border-[var(--line)] rounded-[var(--r2)] bg-[var(--surface-inset)]",children:"No provider traffic logged for this period."})})]}),(0,g.jsx)("div",{className:"pt-3 mt-4 border-t border-[var(--line)] flex items-center justify-between text-xs font-mono",children:(0,g.jsxs)(gk(),{href:"/dashboard/providers",className:"text-[var(--text-2)] hover:text-[var(--text)] flex items-center gap-1 transition-colors",children:[(0,g.jsx)("span",{children:"Manage Upstreams"}),(0,g.jsx)(gl.A,{className:"size-3"})]})})]})}var gp=c(78407),gq=c(15828),gr=c(29813),gs=c(90069),gt=c(98153);function gu(a){if(!a)return"just now";let b=Math.floor((Date.now()-new Date(a))/1e3);return b<10?"just now":b<60?`${b}s ago`:b<3600?`${Math.floor(b/60)}m ago`:b<86400?`${Math.floor(b/3600)}h ago`:`${Math.floor(b/86400)}d ago`}function gv(a){let b=String(a||"ok").toLowerCase();return"ok"===b||"success"===b||"200"===b?(0,g.jsx)(gt.A,{variant:"success",children:"OK"}):"partial"===b||b.startsWith("3")||b.includes("stream")?(0,g.jsx)(gt.A,{variant:"warning",children:"Partial"}):(0,g.jsx)(gt.A,{variant:"error",children:b.startsWith("4")||b.startsWith("5")?b:"Error"})}function gw({initialRequests:a=[]}){let[b,c]=(0,h.useState)(a),[d,e]=(0,h.useState)(!1),[f,j]=(0,h.useState)(""),[k,l]=(0,h.useState)(!0),[m,n]=(0,h.useState)("table"),p=(0,h.useCallback)(async()=>{try{let a=await fetch("/api/usage/request-logs?format=json",{cache:"no-store"});if(a.ok){let b=await a.json();Array.isArray(b)&&c(b.slice(0,30))}}catch(a){console.error("Failed to fetch latest request logs:",a)}},[]),r=(0,h.useMemo)(()=>{if(!f.trim())return b;let a=f.toLowerCase().trim();return b.filter(b=>b.model&&b.model.toLowerCase().includes(a)||b.provider&&b.provider.toLowerCase().includes(a)||b.status&&String(b.status).toLowerCase().includes(a))},[b,f]);return(0,g.jsxs)("div",{className:"ui-card p-5 logs-table",children:[(0,g.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-4",children:[(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{className:"flex items-center gap-2",children:[(0,g.jsx)("span",{className:"ui-eyebrow text-[10px] text-[var(--text-2)]",children:"LATEST REQUESTS"}),(0,g.jsx)("span",{className:"text-[var(--text-3)]",children:"\xb7"}),(0,g.jsx)("span",{className:"text-xs text-[var(--text-3)]",children:"Live operational stream"})]}),(0,g.jsx)("p",{className:"text-xs text-[var(--text-3)] font-mono mt-0.5",children:"Real-time payload inspection & token throughput"})]}),(0,g.jsxs)("div",{className:"flex items-center gap-2 self-start sm:self-auto flex-wrap sm:flex-nowrap",children:[(0,g.jsxs)(f2,{value:m,onValueChange:n,"aria-label":"Request logs layout",containerClassName:"dashboard-segmented-control",className:"dashboard-segment-highlight",children:[(0,g.jsx)("button",{"data-id":"table",type:"button","aria-label":"Table view",className:"dashboard-segment",title:"Table View (Desktop analysis)",children:(0,g.jsx)(gp.A,{className:"size-3.5"})}),(0,g.jsx)("button",{"data-id":"cards",type:"button","aria-label":"Cards view",className:"dashboard-segment",title:"Cards View (Touch-friendly)",children:(0,g.jsx)(gq.A,{className:"size-3.5"})})]}),(0,g.jsxs)("div",{className:"relative",children:[(0,g.jsx)(gr.A,{className:"size-3.5 absolute left-2.5 top-1/2 -translate-y-1/2 text-[var(--text-3)]"}),(0,g.jsx)("input",{type:"text",value:f,onChange:a=>j(a.target.value),placeholder:"Filter model / status...",className:"h-8 pl-8 pr-3 text-xs font-mono bg-[var(--surface-2)] border border-[var(--line-2)] rounded-[var(--r1)] text-[var(--text)] placeholder-[var(--text-3)] focus:outline-none focus:border-[var(--accent-line)] transition-colors w-[160px] sm:w-[200px]"})]}),(0,g.jsxs)("button",{type:"button",onClick:()=>l(!k),className:(0,t.cn)("px-2.5 h-8 rounded-[var(--r1)] text-xs font-mono flex items-center gap-1.5 transition-colors cursor-pointer",k?"text-[var(--pos)]":"text-[var(--text-2)] hover:text-[var(--text)]"),title:k?"Live polling active (6s)":"Polling paused",children:[(0,g.jsx)("span",{className:(0,t.cn)("size-1.5 rounded-full",k?"bg-[var(--pos)] animate-pulse":"bg-[var(--text-3)]")}),(0,g.jsx)("span",{children:k?"Live":"Paused"})]}),(0,g.jsx)("button",{type:"button",onClick:()=>{e(!0),p().finally(()=>e(!1))},"aria-label":"Refresh logs","aria-busy":d,className:"dashboard-refresh",title:"Refresh logs",children:(0,g.jsx)(i.A,{className:(0,t.cn)("size-3.5",d&&"animate-spin motion-reduce:animate-none text-[var(--text)]")})})]})]}),"cards"===m?(0,g.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",children:r.length>0?r.slice(0,15).map((a,b)=>{let c=a.promptTokens||a.prompt_tokens||0,d=a.completionTokens||a.completion_tokens||0,e=a.durationMs||a.duration||0,f=a.ttftMs||a.ttft||0;return(0,g.jsxs)("div",{className:"dashboard-card-inset p-3.5 rounded-[var(--r2)] bg-[var(--surface-inset)] border border-[var(--line)] flex flex-col justify-between gap-3 font-mono text-xs hover:border-[var(--line-2)] transition-colors",children:[(0,g.jsxs)("div",{className:"flex items-center justify-between",children:[gv(a.status),(0,g.jsx)("span",{className:"text-[var(--text-3)] text-[11px] u-tnum",children:gu(a.timestamp)})]}),(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{className:"font-semibold text-[var(--text)] truncate text-[13px]",title:a.model,children:a.model||"default"}),(0,g.jsx)("div",{className:"mt-1",children:(0,g.jsx)("span",{className:"px-1.5 py-0.5 rounded-[var(--r1)] bg-[var(--surface-2)] border border-[var(--line-2)] text-[10px] text-[var(--text-3)] uppercase tracking-wider",children:a.provider||"gateway"})})]}),(0,g.jsxs)("div",{className:"pt-2.5 border-t border-[var(--line)] grid grid-cols-3 gap-2 text-[11px]",children:[(0,g.jsxs)("div",{children:[(0,g.jsx)("span",{className:"text-[var(--text-3)] block text-[10px] uppercase",children:"Tokens"}),(0,g.jsxs)("span",{className:"text-[var(--text-2)] u-tnum flex items-center gap-0.5 mt-0.5",children:[(0,g.jsx)("span",{className:"text-[var(--text-3)]",children:f3(c)}),(0,g.jsx)("span",{className:"text-[var(--text-3)]",children:"/"}),(0,g.jsx)("span",{className:"text-[var(--pos)]",children:f3(d)})]})]}),(0,g.jsxs)("div",{children:[(0,g.jsx)("span",{className:"text-[var(--text-3)] block text-[10px] uppercase",children:"TTFT (ms)"}),(0,g.jsx)("span",{className:"text-[var(--text-2)] u-tnum block mt-0.5",children:f>0?`${Math.round(f)}ms`:"—"})]}),(0,g.jsxs)("div",{className:"text-right",children:[(0,g.jsx)("span",{className:"text-[var(--text-3)] block text-[10px] uppercase",children:"Latency"}),(0,g.jsx)("span",{className:"text-[var(--text)] u-tnum font-medium block mt-0.5",children:e>0?e>=1e3?`${(e/1e3).toFixed(2)}s`:`${Math.round(e)}ms`:"—"})]})]})]},a.id||`${a.timestamp}-${b}`)}):(0,g.jsx)("div",{className:"dashboard-card-inset col-span-full py-10 text-center text-[var(--text-3)] text-xs font-mono border border-dashed border-[var(--line)] rounded-[var(--r2)] bg-[var(--surface-inset)]",children:f?"No requests matching filter":"No recent requests logged yet."})}):(0,g.jsx)("div",{className:"overflow-x-auto custom-scrollbar",children:(0,g.jsxs)("table",{className:"w-full text-left border-collapse text-xs font-mono",children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{className:"border-b border-[var(--line-2)] text-[11px] text-[var(--text-3)] uppercase tracking-wider",children:[(0,g.jsx)("th",{className:"py-2.5 px-3 font-medium",children:"Status"}),(0,g.jsx)("th",{className:"py-2.5 px-3 font-medium",children:"Model"}),(0,g.jsx)("th",{className:"py-2.5 px-3 font-medium",children:"Provider"}),(0,g.jsx)("th",{className:"py-2.5 px-3 font-medium text-right",children:"Tokens In / Out"}),(0,g.jsx)("th",{className:"py-2.5 px-3 font-medium text-right",children:"TTFT (ms)"}),(0,g.jsx)("th",{className:"py-2.5 px-3 font-medium text-right",children:"Latency (ms)"}),(0,g.jsx)("th",{className:"py-2.5 px-3 font-medium text-right",children:"Timestamp"})]})}),(0,g.jsx)("tbody",{className:"divide-y divide-[var(--line)]",children:r.length>0?r.slice(0,15).map((a,b)=>{let c=a.promptTokens||a.prompt_tokens||0,d=a.completionTokens||a.completion_tokens||0,e=a.durationMs||a.duration||0,f=a.ttftMs||a.ttft||0;return(0,g.jsxs)("tr",{className:"hover:bg-[var(--surface-2)] transition-colors group",children:[(0,g.jsx)("td",{className:"py-2.5 px-3 whitespace-nowrap",children:gv(a.status)}),(0,g.jsx)("td",{className:"py-2.5 px-3 whitespace-nowrap",children:(0,g.jsx)("span",{className:"font-semibold text-[var(--text)]",title:a.model,children:a.model||"default"})}),(0,g.jsx)("td",{className:"py-2.5 px-3 whitespace-nowrap",children:(0,g.jsx)("span",{className:"px-1.5 py-0.5 rounded-[var(--r1)] bg-[var(--surface-2)] border border-[var(--line-2)] text-[10px] text-[var(--text-3)] uppercase tracking-wider",children:a.provider||"gateway"})}),(0,g.jsx)("td",{className:"py-2.5 px-3 whitespace-nowrap text-right",children:(0,g.jsxs)("div",{className:"inline-flex items-center gap-2 text-[var(--text-2)]",children:[(0,g.jsxs)("span",{className:"text-[var(--text-3)] flex items-center u-tnum",children:[(0,g.jsx)(o,{className:"size-3 text-[var(--text-3)]"}),f3(c)]}),(0,g.jsx)("span",{className:"text-[var(--text-3)]",children:"\xb7"}),(0,g.jsxs)("span",{className:"text-[var(--pos)] flex items-center u-tnum",children:[(0,g.jsx)(q,{className:"size-3 text-[var(--pos)]"}),f3(d)]})]})}),(0,g.jsx)("td",{className:"py-2.5 px-3 whitespace-nowrap text-right text-[var(--text-3)] u-tnum",children:f>0?`${Math.round(f)}ms`:"—"}),(0,g.jsx)("td",{className:"py-2.5 px-3 whitespace-nowrap text-right text-[var(--text)] font-medium u-tnum",children:e>0?e>=1e3?`${(e/1e3).toFixed(2)}s`:`${Math.round(e)}ms`:"—"}),(0,g.jsx)("td",{className:"py-2.5 px-3 whitespace-nowrap text-right text-[var(--text-3)] text-[11px] u-tnum",children:gu(a.timestamp)})]},a.id||`${a.timestamp}-${b}`)}):(0,g.jsx)("tr",{children:(0,g.jsx)("td",{colSpan:7,className:"py-10 text-center text-[var(--text-3)] text-xs",children:f?"No requests matching filter":"No recent requests logged yet."})})})]})}),(0,g.jsxs)("div",{className:"pt-3 mt-3 border-t border-[var(--line)] flex items-center justify-between text-xs font-mono text-[var(--text-3)]",children:[(0,g.jsxs)("span",{children:["Showing ",Math.min(r.length,15)," most recent payloads"]}),(0,g.jsxs)("div",{className:"flex items-center gap-3",children:[(0,g.jsxs)(gk(),{href:"/dashboard/usage?tab=details",className:"text-[var(--text-2)] hover:text-[var(--text)] flex items-center gap-1 transition-colors",children:[(0,g.jsx)("span",{children:"Full Usage Logs"}),(0,g.jsx)(gs.A,{className:"size-3"})]}),(0,g.jsx)("span",{className:"text-[var(--text-3)]",children:"\xb7"}),(0,g.jsxs)(gk(),{href:"/dashboard/console-log",className:"text-[var(--text-2)] hover:text-[var(--text)] flex items-center gap-1 transition-colors",children:[(0,g.jsx)("span",{children:"Console Raw Stream"}),(0,g.jsx)(gs.A,{className:"size-3"})]})]})]})]})}function gx({machineId:a}){let[b,c]=(0,h.useState)("7d"),[d,e]=(0,h.useState)(null),[f,i]=(0,h.useState)([]),[j,k]=(0,h.useState)([]),[l,m]=(0,h.useState)(!0),[n,o]=(0,h.useState)(!1),[p,q]=(0,h.useTransition)(),r=(0,h.useCallback)(async()=>{o(!0);try{let a=await fetch(`/api/usage/stats?period=${b}`);if(a.ok){let b=await a.json();e(b)}}catch(a){console.error("Failed to fetch stats:",a)}finally{m(!1),o(!1)}},[b]);return(0,g.jsxs)("div",{className:"dashboard-overview flex flex-col gap-6 w-full pb-10",children:[(0,g.jsx)(f6,{stats:d,connectionsCount:f.length,nodesCount:j.length,period:b,onPeriodChange:a=>{q(()=>{c(a)})},fetching:n||p,onRefresh:r}),(0,g.jsxs)("div",{className:"overview-analytics",children:[(0,g.jsx)(gi,{period:b}),(0,g.jsx)(gm,{stats:d})]}),(0,g.jsx)(go,{stats:d}),(0,g.jsx)(gw,{initialRequests:d?.recentRequests||[]})]})}},87250:(a,b,c)=>{"use strict";c.d(b,{D:()=>e});var d=c(54603);async function e(){return await (0,d.Xj)()}},87550:a=>{"use strict";a.exports=require("better-sqlite3")},87997:a=>{"use strict";a.exports=require("node:timers")},91645:a=>{"use strict";a.exports=require("net")},94735:a=>{"use strict";a.exports=require("events")},99596:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/root/workspace/JRouter/src/app/(dashboard)/dashboard/DashboardOverviewClient.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.")},"/root/workspace/JRouter/src/app/(dashboard)/dashboard/DashboardOverviewClient.js","default")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1260,2430,1273,9415,2760,7911,1306,4406,5665,6070,4864,6457,4123,455,6777,412,6698],()=>b(b.s=7609));module.exports=c})();
|